You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/// 将来的にTypst will annotate 出力 such that スクリーンリーダー will announce コンテンツ in `table` as tabular while a グリッドのコンテンツ will be announced no different than multiple コンテンツブロック in the 文書の流れ
31
+
/// これらの要素に対するsetルールとshowルールは、互いに影響しません。
38
32
///
39
-
/// A grid's sizing is determined by the track sizes specified in the arguments.
40
-
/// Because each of the sizing parameters accepts the same values, we will
41
-
/// explain them just once, here. Each sizing argument accepts an array of
42
-
/// individual track sizes. A track size is either:
33
+
/// グリッドの大きさは引数に指定されたトラックサイズによって決定されます。
34
+
/// 大きさを設定する各パラメーターは同じ値を受け入れるため、ここでまとめて説明します。
35
+
/// 各sizing引数は個々のトラックサイズの配列を受け入れます。
36
+
/// トラックサイズは以下のいずれかです。
43
37
///
44
-
/// - `{auto}`: The track will be sized to fit its contents. It will be at most
45
-
/// as large as the remaining space. If there is more than one `{auto}` track
46
-
/// width, and together they claim more than the available space, the `{auto}`
47
-
/// tracks will fairly distribute the available space among themselves.
38
+
/// - `{auto}`: トラックはコンテンツに合わせた大きさになります。
39
+
/// It will be at most as large as the remaining space.
40
+
/// 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.
48
41
///
49
-
/// - A fixed or relative length (e.g. `{10pt}` or `{20% - 1cm}`): The track
50
-
/// will be exactly of this size.
42
+
/// - A fixed or relative length (e.g. `{10pt}` or `{20% - 1cm}`): The track will be exactly of this size.
51
43
///
52
-
/// - A fractional length (e.g. `{1fr}`): Once all other tracks have been sized,
53
-
/// the remaining space will be divided among the fractional tracks according
54
-
/// to their fractions. For example, if there are two fractional tracks, each
55
-
/// with a fraction of `{1fr}`, they will each take up half of the remaining
56
-
/// space.
44
+
/// - 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.
57
46
///
58
-
/// To specify a single track, the array can be omitted in favor of a single
59
-
/// value. To specify multiple `{auto}` tracks, enter the number of tracks
60
-
/// instead of an array. For example, `columns:` `{3}` is equivalent to
/// Alternatively, if you need the appearance options to depend on a cell's
119
-
/// position (column and row), you may specify a function to `fill` or `align`
120
-
/// of the form `(column, row) => value`. You may also use a show rule on
121
-
/// [`grid.cell`]($grid.cell) - see that element's examples or the examples
122
-
/// below for more information.
101
+
/// 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.
123
103
///
124
-
/// Locating most of your styling in set and show rules is recommended, as it
125
-
/// keeps the grid's or table's actual usages clean and easy to read. It also
126
-
/// allows you to easily change the grid's appearance in one place.
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.
105
+
/// It also allows you to easily change the grid's appearance in one place.
127
106
///
128
107
/// ## Stroke styling precedence
129
-
/// There are three ways to set the stroke of a grid cell: through
130
-
/// [`{grid.cell}`'s `stroke` field]($grid.cell.stroke), by using
131
-
/// [`{grid.hline}`]($grid.hline) and [`{grid.vline}`]($grid.vline), or by
132
-
/// setting the [`{grid}`'s `stroke` field]($grid.stroke). When multiple of
133
-
/// these settings are present and conflict, the `hline` and `vline` settings
134
-
/// take the highest precedence, followed by the `cell` settings, and finally
135
-
/// the `grid` settings.
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).
109
+
/// 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.
136
110
///
137
-
/// Furthermore, strokes of a repeated grid header or footer will take
138
-
/// precedence over regular cell strokes.
111
+
/// Furthermore, strokes of a repeated grid header or footer will take precedence over regular cell strokes.
139
112
#[elem(scope,Show)]
140
113
pubstructGridElem{
141
114
/// The column sizes.
142
115
///
143
-
/// Either specify a track size array or provide an integer to create a grid
144
-
/// with that many `{auto}`-sized columns. Note that opposed to rows and
145
-
/// gutters, providing a single track size will only ever create a single
146
-
/// column.
116
+
/// Either specify a track size array or provide an integer to create a grid with that many `{auto}`-sized columns.
117
+
/// Note that opposed to rows and gutters, providing a single track size will only ever create a single column.
147
118
#[borrowed]
148
119
pubcolumns:TrackSizings,
149
120
150
121
/// The row sizes.
151
122
///
152
-
/// If there are more cells than fit the defined rows, the last row is
153
-
/// repeated until there are no more cells.
123
+
/// If there are more cells than fit the defined rows, the last row is repeated until there are no more cells.
154
124
#[borrowed]
155
125
pubrows:TrackSizings,
156
126
157
-
/// The gaps between rows and columns.
127
+
/// 行間と列間の間隔。
158
128
///
159
-
/// If there are more gutters than defined sizes, the last gutter is
160
-
/// repeated.
129
+
/// If there are more gutters than defined sizes, the last gutter is repeated.
161
130
///
162
-
/// This is a shorthand to set `column-gutter` and `row-gutter` to the same
/// If it is necessary to place lines which can cross spacing between cells
221
-
/// produced by the `gutter` option, or to override the stroke between
222
-
/// multiple specific cells, consider specifying one or more of
223
-
/// [`grid.hline`]($grid.hline) and [`grid.vline`]($grid.vline) alongside
224
-
/// your grid cells.
185
+
/// If it is necessary to place lines which can cross spacing between cells produced by the `gutter` option, or to override the stroke between multiple specific cells, consider specifying one or more of [`grid.hline`]($grid.hline) and [`grid.vline`]($grid.vline) alongside your grid cells.
225
186
///
226
187
/// ```example
227
188
/// #set page(height: 13em, width: 26em)
@@ -295,14 +256,11 @@ pub struct GridElem {
295
256
296
257
/// How much to pad the cells' content.
297
258
///
298
-
/// You can find an example for this argument at the
299
-
/// [`table.inset`]($table.inset) parameter.
259
+
/// You can find an example for this argument at the [`table.inset`]($table.inset) parameter.
300
260
#[fold]
301
261
pubinset:Celled<Sides<Option<Rel<Length>>>>,
302
262
303
-
/// The contents of the grid cells, plus any extra grid lines specified
304
-
/// with the [`grid.hline`]($grid.hline) and [`grid.vline`]($grid.vline)
305
-
/// elements.
263
+
/// The contents of the grid cells, plus any extra grid lines specified with the [`grid.hline`]($grid.hline) and [`grid.vline`]($grid.vline) elements.
0 commit comments