Skip to content

Commit 1d79c75

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

File tree

1 file changed

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

1 file changed

+11
-11
lines changed

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

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -99,35 +99,35 @@ use crate::visualize::{Paint, Stroke};
9999
/// 同様に、個々のグリッドの線も[`grid.hline`]($grid.hline)要素や[`grid.vline`]($grid.vline)要素を用いて上書きできます。
100100
///
101101
/// Alternatively, if you need the appearance options to depend on a cell's position (column and row), you may specify a function to `fill` or `align` of the form `(column, row) => value`.
102-
/// You may also use a showルール on [`grid.cell`]($grid.cell) - see that element's examples or the examples below for more information.
102+
/// [`grid.cell`]($grid.cell)に対してもshowルールを使用できます。 - see that element's examples or the examples below for more information.
103103
///
104-
/// Locating most of your styling in set and show rules is recommended, as it keeps the grid's or table's actual usages clean and easy to read.
104+
/// スタイル設定の多くはsetルールとshowルールを用いることを推奨します。 is recommended, as it keeps the grid's or table's actual usages clean and easy to read.
105105
/// It also allows you to easily change the grid's appearance in one place.
106106
///
107-
/// ## Stroke styling precedence
108-
/// グリッドセルのストローク指定法は3種類あります
107+
/// ## ストロークのスタイル設定の優先順位
108+
/// グリッドセルのストローク指定方法は3種類あります
109109
/// [`{grid.cell}`の`stroke`フィールド]($grid.cell.stroke)を用いる方法、[`{grid.hline}`]($grid.hline)と[`{grid.vline}`]($grid.vline)を用いる方法、[`{grid}`の`stroke`フィールド]($grid.stroke)を用いる方法です。
110-
/// 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.
110+
/// これらの設定が複数存在し、競合する場合、`hline``vline`の設定が最優先となり、続いて優先されるのが`cell`の設定で、最後に`grid`の設定が適用されます。
111111
///
112112
/// Furthermore, strokes of a repeated grid header or footer will take precedence over regular cell strokes.
113113
#[elem(scope, Show)]
114114
pub struct GridElem {
115-
/// The column sizes.
115+
/// 列の数。
116116
///
117117
/// Either specify a track size array or provide an integer to create a grid with that many `{auto}`-sized columns.
118118
/// Note that opposed to rows and gutters, providing a single track size will only ever create a single column.
119119
#[borrowed]
120120
pub columns: TrackSizings,
121121

122-
/// The row sizes.
122+
/// 行の数。
123123
///
124124
/// If there are more cells than fit the defined rows, the last row is repeated until there are no more cells.
125125
#[borrowed]
126126
pub rows: TrackSizings,
127127

128128
/// 行間と列間の間隔。
129129
///
130-
/// If there are more gutters than defined sizes, the last gutter is repeated.
130+
/// 定義した数よりもgutterがある場合、最後のgutterが繰り返されます。If there are more gutters than defined sizes, the last gutter is repeated.
131131
///
132132
/// これは`column-gutter`と`row-gutter`を同じ値で設定する省略記法です。
133133
#[external]
@@ -173,9 +173,9 @@ pub struct GridElem {
173173
///
174174
/// 単一の配置、(各列に対応する)配置の配列、配置を返す関数のいずれかが使用可能です。
175175
/// The function receives the cells' column and row indices, starting from zero.
176-
/// `{auto}`に設定された場合外側の配置が使用されます
176+
/// `{auto}`に設定された場合は外側の配置が使用されます
177177
///
178-
/// You can find an example for this argument at the [`table.align`]($table.align) parameter.
178+
/// この引数に関する例は[`table.align`]($table.align)パラメーターにあります。
179179
#[borrowed]
180180
pub align: Celled<Smart<Alignment>>,
181181

@@ -257,7 +257,7 @@ pub struct GridElem {
257257

258258
/// How much to pad the cells' content.
259259
///
260-
/// You can find an example for this argument at the [`table.inset`]($table.inset) parameter.
260+
/// この引数に関する例は[`table.inset`]($table.inset)パラメーターにあります。
261261
#[fold]
262262
pub inset: Celled<Sides<Option<Rel<Length>>>>,
263263

0 commit comments

Comments
 (0)