Skip to content

Commit ca0d642

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

File tree

1 file changed

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

1 file changed

+12
-11
lines changed

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

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -27,22 +27,23 @@ use crate::visualize::{Paint, Stroke};
2727
///
2828
/// グリッド要素とテーブル要素はとてもよく似た挙動をする一方で、これらは異なるユースケースが想定されており、異なる意味論が提供されています。
2929
/// グリッド要素はプレゼンテーションおよびレイアウトに使われることが想定されている一方で、[`{table}`]($table)要素は複数の関係データ点を表す広い用途が想定されています。
30-
/// 将来的にTypst will annotate 出力 such that スクリーンリーダー will announce コンテンツ in `table` as tabular while a グリッドのコンテンツ will be announced no different than multiple コンテンツブロック in the 文書の流れ
30+
/// 将来、Typstは出力に注釈を付与し、スクリーンリーダーが`table`要素の内容を表として読み上げられるようになる予定です。
31+
/// 一方、グリッドのコンテンツは、文書の流れに沿った複数のコンテンツブロックと同様に読み上げられる予定です。
32+
3133
/// これらの要素に対するsetルールとshowルールは、互いに影響しません。
3234
///
3335
/// グリッドの大きさは引数に指定されたトラックサイズによって決定されます。
3436
/// 大きさを設定する各パラメーターは同じ値を受け入れるため、ここでまとめて説明します。
3537
/// 各sizing引数は個々のトラックサイズの配列を受け入れます。
3638
/// トラックサイズは以下のいずれかです。
3739
///
38-
/// - `{auto}`: トラックはコンテンツに合わせた大きさになります。
39-
/// 残されたスペース全体まで大きくなります。
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.
40+
/// - `{auto}`: トラックはコンテンツに合わせた大きさとなり、残りのスペース全体まで大きくなります。
41+
/// `{auto}`トラック幅が複数指定され、利用可能なスペースより大きなスペースが要求された場合、利用可能なスペースが`{auto}`トラックに等分配されます。
4142
///
42-
/// - A fixed or relative length (`{10pt}`や`{20% - 1cm}`など):トラックは厳密にその大きさになります。
43+
/// - 固定あるいは相対長さ(`{10pt}`や`{20% - 1cm}`など): トラックは厳密にその大きさになります。
4344
///
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-
/// 例えば、if there are two fractional tracks, each with a fraction of `{1fr}`, they will each take up half of the remaining space.
45+
/// - 比率長さ(例えば`{1fr}`): 他のトラック全ての大きさが確定し次第、残りのスペースは比率指定のトラックに指定された比率に応じて分配されます。
46+
/// 例えば、`{1fr}`で比率指定されたトラックが2つある場合、それぞれ残りのスペースの半分になります。
4647
///
4748
/// 単一のトラックを指定する場合は、配列を省略して単一の値を指定できます。
4849
/// 複数の`{auto}`のトラックを指定する場合は、配列の代わりにトラックの数を入力して下さい。
@@ -76,7 +77,7 @@ use crate::visualize::{Paint, Stroke};
7677
/// )
7778
/// ```
7879
///
79-
/// You can also [spread]($arguments/#spreading) an array of strings or content into a grid to populate its cells.
80+
/// また、文字列やコンテンツの配列をグリッドに[展開](#arguments/#spreading)して、セルを埋めることもできます。
8081
///
8182
/// ```example
8283
/// #grid(
@@ -92,7 +93,7 @@ use crate::visualize::{Paint, Stroke};
9293
///
9394
/// - [`fill`]($grid.fill)は全てのセルに背景を設定します。
9495
/// - [`align`]($grid.align)はセルの配置方法を変更します。
95-
/// - [`inset`]($grid.inset) to optionally add internal padding to each cell
96+
/// - [`inset`]($grid.inset)はオプションで各セル内のパディングを追加します。
9697
/// - [`stroke`]($grid.stroke)は特定のストロークでグリッドの線をオプションで有効化します。
9798
///
9899
/// もし単一セルに対して上記のオプションの1つを上書きしなければならない場合は、[`grid.cell`]($grid.cell)要素が使用できます。
@@ -127,7 +128,7 @@ pub struct GridElem {
127128

128129
/// 行間と列間の間隔。
129130
///
130-
/// 定義した数よりもgutterがある場合、最後のgutterが繰り返されます。If there are more gutters than defined sizes, the last gutter is repeated.
131+
/// 定義した数よりも多くgutterがある場合、最後のgutterが繰り返されます。
131132
///
132133
/// これは`column-gutter`と`row-gutter`を同じ値で設定する省略記法です。
133134
#[external]
@@ -255,7 +256,7 @@ pub struct GridElem {
255256
#[fold]
256257
pub stroke: Celled<Sides<Option<Option<Arc<Stroke>>>>>,
257258

258-
/// How much to pad the cells' content.
259+
/// セル内のコンテンツに対するパディングの大きさ。
259260
///
260261
/// この引数に関する例は[`table.inset`]($table.inset)パラメーターにあります。
261262
#[fold]

0 commit comments

Comments
 (0)