Skip to content

Commit fd062cf

Browse files
committed
fixup! /docs/reference/layout/gridの翻訳
1 parent 3adb593 commit fd062cf

File tree

1 file changed

+8
-7
lines changed
  • crates/typst-library/src/layout/grid

1 file changed

+8
-7
lines changed

crates/typst-library/src/layout/grid/mod.rs

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ use crate::visualize::{Paint, Stroke};
2121

2222
/// グリッド状にコンテンツを配置。
2323
///
24-
/// グリッド要素を用いるとコンテンツをグリッド状に配置することができます
25-
/// 行と列の数に加えて、それらの間隔を定義することができます
24+
/// グリッド要素を用いるとコンテンツをグリッド状に配置できます
25+
/// 行と列の数に加えて、それらの間隔を定義できます
2626
/// 複雑なレイアウトが作成できるような、列と行の大きさに関するモードが複数あります。
2727
///
2828
/// グリッド要素とテーブル要素はとてもよく似た挙動をする一方で、これらは異なるユースケースが想定されており、異なる意味論が提供されています。
@@ -36,20 +36,20 @@ use crate::visualize::{Paint, Stroke};
3636
/// トラックサイズは以下のいずれかです。
3737
///
3838
/// - `{auto}`: トラックはコンテンツに合わせた大きさになります。
39-
/// It will be at most as large as the remaining space.
39+
/// 残されたスペース全体まで大きくなります。
4040
/// If there is more than one `{auto}` track width, and together they claim more than the available space, the `{auto}` tracks will fairly distribute the available space among themselves.
4141
///
42-
/// - A fixed or relative length (e.g. `{10pt}` or `{20% - 1cm}`): The track will be exactly of this size.
42+
/// - A fixed or relative length `{10pt}``{20% - 1cm}`など):トラックは厳密にその大きさになります。
4343
///
4444
/// - A fractional length (e.g. `{1fr}`): Once all other tracks have been sized, the remaining space will be divided among the fractional tracks according to their fractions.
45-
/// For example, if there are two fractional tracks, each with a fraction of `{1fr}`, they will each take up half of the remaining space.
45+
/// 例えば、if there are two fractional tracks, each with a fraction of `{1fr}`, they will each take up half of the remaining space.
4646
///
4747
/// 単一のトラックを指定する場合は、配列を省略して単一の値を指定できます。
4848
/// 複数の`{auto}`のトラックを指定する場合は、配列の代わりにトラックの数を入力して下さい。
4949
/// 例えば、`columns:` `{3}`は`columns:` `{(auto, auto, auto)}`と同じ意味になります。
5050
///
5151
/// # 例
52-
/// The example below demonstrates the different track sizing options.以下の例は異なるトラックサイズオプションの実演です。
52+
/// 以下の例は異なるトラックサイズオプションの実演です。
5353
/// また、1つのセルをグリッドの2つのトラックに跨がせるために[`grid.cell`]($grid.cell)をどう使うのかも示しています。
5454
///
5555
/// ```example
@@ -105,7 +105,8 @@ use crate::visualize::{Paint, Stroke};
105105
/// It also allows you to easily change the grid's appearance in one place.
106106
///
107107
/// ## Stroke styling precedence
108-
/// There are three ways to set the stroke of a grid cell: through [`{grid.cell}`'s `stroke` field]($grid.cell.stroke), by using [`{grid.hline}`]($grid.hline) and [`{grid.vline}`]($grid.vline), or by setting the [`{grid}`'s `stroke` field]($grid.stroke).
108+
/// グリッドセルのストローク指定法は3種類あります。
109+
/// [`{grid.cell}`の`stroke`フィールド]($grid.cell.stroke)を用いる方法、[`{grid.hline}`]($grid.hline)と[`{grid.vline}`]($grid.vline)を用いる方法、[`{grid}`の`stroke`フィールド]($grid.stroke)を用いる方法です。
109110
/// When multiple of these settings are present and conflict, the `hline` and `vline` settings take the highest precedence, followed by the `cell` settings, and finally the `grid` settings.
110111
///
111112
/// Furthermore, strokes of a repeated grid header or footer will take precedence over regular cell strokes.

0 commit comments

Comments
 (0)