From 31723b00b9d258c82531fb7b83d5e6db9b63aa8c Mon Sep 17 00:00:00 2001 From: ultimatile Date: Mon, 16 Jun 2025 23:02:40 +0900 Subject: [PATCH 1/8] =?UTF-8?q?`/docs/reference/layout/grid`=E3=81=AE?= =?UTF-8?q?=E7=BF=BB=E8=A8=B3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- crates/typst-library/src/layout/grid/mod.rs | 164 ++++++++------------ website/translation-status.json | 2 +- 2 files changed, 62 insertions(+), 104 deletions(-) diff --git a/crates/typst-library/src/layout/grid/mod.rs b/crates/typst-library/src/layout/grid/mod.rs index 6616c33114..5eb9a1c3aa 100644 --- a/crates/typst-library/src/layout/grid/mod.rs +++ b/crates/typst-library/src/layout/grid/mod.rs @@ -19,51 +19,38 @@ use crate::layout::{ use crate::model::{TableCell, TableFooter, TableHLine, TableHeader, TableVLine}; use crate::visualize::{Paint, Stroke}; -/// Arranges content in a grid. +/// グリッド状にコンテンツを配置。 /// -/// The grid element allows you to arrange content in a grid. You can define the -/// number of rows and columns, as well as the size of the gutters between them. -/// There are multiple sizing modes for columns and rows that can be used to -/// create complex layouts. +/// グリッド要素を用いるとコンテンツをグリッド状に配置することができます。 +/// 行と列の数に加えて、それらの間隔を定義することができます。 +/// 複雑なレイアウトが作成できるような、列と行の大きさに関するモードが複数あります。 /// -/// While the grid and table elements work very similarly, they are intended for -/// different use cases and carry different semantics. The grid element is -/// intended for presentational and layout purposes, while the -/// [`{table}`]($table) element is intended for, in broad terms, presenting -/// multiple related data points. In the future, Typst will annotate its output -/// such that screenreaders will announce content in `table` as tabular while a -/// grid's content will be announced no different than multiple content blocks -/// in the document flow. Set and show rules on one of these elements do not -/// affect the other. +/// グリッド要素とテーブル要素はとてもよく似た挙動をする一方で、これらは異なるユースケースが想定されており、異なる意味論が提供されています。 +/// グリッド要素はプレゼンテーションおよびレイアウトに使われることが想定されている一方で、[`{table}`]($table)要素は複数の関係データ点を表す広い用途が想定されています。 +/// 将来的にTypst will annotate 出力 such that スクリーンリーダー will announce コンテンツ in `table` as tabular while a グリッドのコンテンツ will be announced no different than multiple コンテンツブロック in the 文書の流れ +/// これらの要素に対するsetルールとshowルールは、互いに影響しません。 /// -/// A grid's sizing is determined by the track sizes specified in the arguments. -/// Because each of the sizing parameters accepts the same values, we will -/// explain them just once, here. Each sizing argument accepts an array of -/// individual track sizes. A track size is either: +/// グリッドの大きさは引数に指定されたトラックサイズによって決定されます。 +/// 大きさを設定する各パラメーターは同じ値を受け入れるため、ここでまとめて説明します。 +/// 各sizing引数は個々のトラックサイズの配列を受け入れます。 +/// トラックサイズは以下のいずれかです。 /// -/// - `{auto}`: The track will be sized to fit its contents. It will be at most -/// as large as the remaining space. 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. +/// - `{auto}`: トラックはコンテンツに合わせた大きさになります。 +/// It will be at most as large as the remaining space. +/// 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. /// -/// - A fixed or relative length (e.g. `{10pt}` or `{20% - 1cm}`): The track -/// will be exactly of this size. +/// - A fixed or relative length (e.g. `{10pt}` or `{20% - 1cm}`): The track will be exactly of this size. /// -/// - 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. For example, if there are two fractional tracks, each -/// with a fraction of `{1fr}`, they will each take up half of the remaining -/// space. +/// - 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. +/// For example, if there are two fractional tracks, each with a fraction of `{1fr}`, they will each take up half of the remaining space. /// -/// To specify a single track, the array can be omitted in favor of a single -/// value. To specify multiple `{auto}` tracks, enter the number of tracks -/// instead of an array. For example, `columns:` `{3}` is equivalent to -/// `columns:` `{(auto, auto, auto)}`. +/// 単一のトラックを指定する場合は、配列を省略して単一の値を指定できます。 +/// 複数の`{auto}`のトラックを指定する場合は、配列の代わりにトラックの数を入力して下さい。 +/// 例えば、`columns:` `{3}`は`columns:` `{(auto, auto, auto)}`と同じ意味になります。 /// -/// # Examples -/// The example below demonstrates the different track sizing options. It also -/// shows how you can use [`grid.cell`]($grid.cell) to make an individual cell -/// span two grid tracks. +/// # 例 +/// The example below demonstrates the different track sizing options.以下の例は異なるトラックサイズオプションの実演です。 +/// また、1つのセルをグリッドの2つのトラックに跨がせるために[`grid.cell`]($grid.cell)をどう使うのかも示しています。 /// /// ```example /// // We use `rect` to emphasize the @@ -89,8 +76,7 @@ use crate::visualize::{Paint, Stroke}; /// ) /// ``` /// -/// You can also [spread]($arguments/#spreading) an array of strings or content -/// into a grid to populate its cells. +/// You can also [spread]($arguments/#spreading) an array of strings or content into a grid to populate its cells. /// /// ```example /// #grid( @@ -100,71 +86,53 @@ use crate::visualize::{Paint, Stroke}; /// ) /// ``` /// -/// # Styling the grid -/// The grid's appearance can be customized through different parameters. These -/// are the most important ones: +/// # グリッドのスタイル設定 +/// グリッドの外観は様々なパラメーターでカスタマイズできます。 +/// 以下のものが最も重要です。 /// -/// - [`fill`]($grid.fill) to give all cells a background -/// - [`align`]($grid.align) to change how cells are aligned +/// - [`fill`]($grid.fill)は全てのセルに背景を設定します。 +/// - [`align`]($grid.align)はセルの配置方法を変更します。 /// - [`inset`]($grid.inset) to optionally add internal padding to each cell -/// - [`stroke`]($grid.stroke) to optionally enable grid lines with a certain -/// stroke +/// - [`stroke`]($grid.stroke)は特定のストロークでグリッドの線をオプションで有効化します。 /// -/// If you need to override one of the above options for a single cell, you can -/// use the [`grid.cell`]($grid.cell) element. Likewise, you can override -/// individual grid lines with the [`grid.hline`]($grid.hline) and -/// [`grid.vline`]($grid.vline) elements. +/// もし単一セルに対して上記のオプションの1つを上書きしなければならない場合は、[`grid.cell`]($grid.cell)要素が使用できます。 +/// 同様に、個々のグリッドの線も[`grid.hline`]($grid.hline)要素や[`grid.vline`]($grid.vline)要素を用いて上書きできます。 /// -/// 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`. You may also use a show rule on -/// [`grid.cell`]($grid.cell) - see that element's examples or the examples -/// below for more information. +/// 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`. +/// You may also use a showルール on [`grid.cell`]($grid.cell) - see that element's examples or the examples below for more information. /// -/// 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. It also -/// allows you to easily change the grid's appearance in one place. +/// 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. +/// It also allows you to easily change the grid's appearance in one place. /// /// ## Stroke styling precedence -/// 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). 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. +/// 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). +/// 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. /// -/// Furthermore, strokes of a repeated grid header or footer will take -/// precedence over regular cell strokes. +/// Furthermore, strokes of a repeated grid header or footer will take precedence over regular cell strokes. #[elem(scope, Show)] pub struct GridElem { /// The column sizes. /// - /// Either specify a track size array or provide an integer to create a grid - /// with that many `{auto}`-sized columns. Note that opposed to rows and - /// gutters, providing a single track size will only ever create a single - /// column. + /// Either specify a track size array or provide an integer to create a grid with that many `{auto}`-sized columns. + /// Note that opposed to rows and gutters, providing a single track size will only ever create a single column. #[borrowed] pub columns: TrackSizings, /// The row sizes. /// - /// If there are more cells than fit the defined rows, the last row is - /// repeated until there are no more cells. + /// If there are more cells than fit the defined rows, the last row is repeated until there are no more cells. #[borrowed] pub rows: TrackSizings, - /// The gaps between rows and columns. + /// 行間と列間の間隔。 /// - /// If there are more gutters than defined sizes, the last gutter is - /// repeated. + /// If there are more gutters than defined sizes, the last gutter is repeated. /// - /// This is a shorthand to set `column-gutter` and `row-gutter` to the same - /// value. + /// これは`column-gutter`と`row-gutter`を同じ値で設定する省略記法です。 #[external] pub gutter: TrackSizings, - /// The gaps between columns. + /// 列間の間隔。 #[parse( let gutter = args.named("gutter")?; args.named("column-gutter")?.or_else(|| gutter.clone()) @@ -172,16 +140,16 @@ pub struct GridElem { #[borrowed] pub column_gutter: TrackSizings, - /// The gaps between rows. + /// 行間の間隔。 #[parse(args.named("row-gutter")?.or_else(|| gutter.clone()))] #[borrowed] pub row_gutter: TrackSizings, - /// How to fill the cells. + /// セルの塗り潰し方。 /// - /// This can be a color or a function that returns a color. The function - /// receives the cells' column and row indices, starting from zero. This can - /// be used to implement striped grids. + /// これはcolorかcolorを返す関数が使用可能です。 + /// 関数は0始まりの列番号と行番号を受け取ります。 + /// これは縞模様のグリッドの実装に使えます。 /// /// ```example /// #grid( @@ -200,28 +168,21 @@ pub struct GridElem { #[borrowed] pub fill: Celled>, - /// How to align the cells' content. + /// セルのコンテンツをどう配置するか。 /// - /// This can either be a single alignment, an array of alignments - /// (corresponding to each column) or a function that returns an alignment. - /// The function receives the cells' column and row indices, starting from - /// zero. If set to `{auto}`, the outer alignment is used. + /// 単一の配置、(各列に対応する)配置の配列、配置を返す関数のいずれかが使用可能です。 + /// The function receives the cells' column and row indices, starting from zero. + /// `{auto}`に設定された場合外側の配置が使用されます。 /// - /// You can find an example for this argument at the - /// [`table.align`]($table.align) parameter. + /// You can find an example for this argument at the [`table.align`]($table.align) parameter. #[borrowed] pub align: Celled>, /// How to [stroke]($stroke) the cells. /// - /// Grids have no strokes by default, which can be changed by setting this - /// option to the desired stroke. + /// デフォルトではグリッドにストロークはありませんが、このオプションを所望のストロークに設定すれば変更できます。 /// - /// 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. + /// 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. /// /// ```example /// #set page(height: 13em, width: 26em) @@ -295,14 +256,11 @@ pub struct GridElem { /// How much to pad the cells' content. /// - /// You can find an example for this argument at the - /// [`table.inset`]($table.inset) parameter. + /// You can find an example for this argument at the [`table.inset`]($table.inset) parameter. #[fold] pub inset: Celled>>>, - /// The contents of the grid cells, plus any extra grid lines specified - /// with the [`grid.hline`]($grid.hline) and [`grid.vline`]($grid.vline) - /// elements. + /// The contents of the grid cells, plus any extra grid lines specified with the [`grid.hline`]($grid.hline) and [`grid.vline`]($grid.vline) elements. /// /// The cells are populated in row-major order. #[variadic] diff --git a/website/translation-status.json b/website/translation-status.json index 4c1a15e43f..c6cb423d42 100644 --- a/website/translation-status.json +++ b/website/translation-status.json @@ -110,7 +110,7 @@ "/docs/reference/layout/columns/": "translated", "/docs/reference/layout/direction/": "translated", "/docs/reference/layout/fraction/": "translated", - "/docs/reference/layout/grid/": "untranslated", + "/docs/reference/layout/grid/": "translated", "/docs/reference/layout/hide/": "translated", "/docs/reference/layout/layout/": "translated", "/docs/reference/layout/length/": "translated", From 3c619334ad6a6e6325da16f8a89b26d4960b323a Mon Sep 17 00:00:00 2001 From: ultimatile Date: Fri, 2 Jan 2026 10:53:56 +0900 Subject: [PATCH 2/8] fix textlint --- crates/typst-library/src/layout/grid/mod.rs | 22 ++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/crates/typst-library/src/layout/grid/mod.rs b/crates/typst-library/src/layout/grid/mod.rs index 834db4a7ca..b277a3e71a 100644 --- a/crates/typst-library/src/layout/grid/mod.rs +++ b/crates/typst-library/src/layout/grid/mod.rs @@ -88,7 +88,7 @@ use crate::visualize::{Paint, Stroke}; /// ``` /// /// # グリッドのスタイル設定 -/// グリッドの外観は様々なパラメーターでカスタマイズできます。 +/// グリッドの外観はさまざまなパラメーターでカスタマイズできます。 /// 以下のものが最も重要です。 /// /// - [`fill`]($grid.fill)は全てのセルに背景を設定します。 @@ -186,7 +186,7 @@ pub struct GridElem { /// /// デフォルトではグリッドにストロークはありませんが、このオプションを所望のストロークに設定すれば変更できます。 /// - /// `gutter`オプションによって作成されたセル間の空白を横切る線を配置する必要がある場合や、複数の特定のセル間のストロークを上書きする必要がある場合は、グリッドセルに合わせて[`grid.hline`]($grid.hline)および[`grid.vline`]($grid.vline)のいずれか、または両方を指定することを検討してください。 + /// `gutter`オプションによって作成されたセル間の空白を横切る線を配置する必要がある場合や、複数の特定のセル間のストロークを上書きする必要がある場合は、グリッドセルにあわせて[`grid.hline`]($grid.hline)および[`grid.vline`]($grid.vline)のいずれか、または両方を指定することを検討してください。 /// /// ```example /// #set page(height: 13em, width: 26em) @@ -421,11 +421,11 @@ impl TryFrom for GridItem { /// 繰り返し可能なグリッドのヘッダー。 /// -/// `repeat`が`true`に設定されている場合、ヘッダーは改ページ毎に繰り返されます。 +/// `repeat`が`true`に設定されている場合、ヘッダーは改ページごとに繰り返されます。 /// 例として[`table.header`]($table.header)要素および[`grid.stroke`]($grid.stroke)パラメーターのドキュメントを参照してください。 #[elem(name = "header", title = "Grid Header")] pub struct GridHeader { - /// ページ毎にヘッダーを繰り返すかどうか。 + /// ページごとにヘッダーを繰り返すかどうか。 #[default(true)] pub repeat: bool, @@ -441,7 +441,7 @@ pub struct GridHeader { /// フッターの後に他のグリッドセルを配置できません。 #[elem(name = "footer", title = "Grid Footer")] pub struct GridFooter { - /// ページ毎にフッターを繰り返すかどうか。 + /// ページごとにフッターを繰り返すかどうか。 #[default(true)] pub repeat: bool, @@ -452,7 +452,7 @@ pub struct GridFooter { /// グリッドの水平方向の線。 /// -/// グリッドの`stroke`フィールドを用いて指定されたものを含めてセル毎に設定されたストロークを上書きします。 +/// グリッドの`stroke`フィールドを用いて指定されたものを含めてセルごとに設定されたストロークを上書きします。 /// グリッドの`column-gutter`オプションで作成されたセル間の間隔を跨げます。 /// /// この関数の例は[`table.hline`]($table.hline)要素のドキュメントにあります。 @@ -477,8 +477,8 @@ pub struct GridHLine { /// 線のストローク。 /// - /// `{none}`を指定すると、水平方向の線の範囲にこれまで配置されたすべての線が削除されます。 - /// これには水平方向の線の下にあるhlineやセル毎のストロークが含まれます。 + /// `{none}`を指定すると、水平方向の線の範囲にこれまで配置された全ての線が削除されます。 + /// これには水平方向の線の下にあるhlineやセルごとのストロークが含まれます。 #[resolve] #[fold] #[default(Some(Arc::new(Stroke::default())))] @@ -495,7 +495,7 @@ pub struct GridHLine { /// グリッドの垂直方向の線。 /// -/// グリッドのstrokeフィールドを用いて指定されたものを含めてセル毎に設定されたストロークを上書きします。 グリッドの`row-gutter`オプションで作成されたセル間の間隔を跨げます。 +/// グリッドのstrokeフィールドを用いて指定されたものを含めてセルごとに設定されたストロークを上書きします。 グリッドの`row-gutter`オプションで作成されたセル間の間隔を跨げます。 #[elem(name = "vline", title = "Grid Vertical Line")] pub struct GridVLine { /// 配置される垂直方向の線の前にある列(0始まり)。 @@ -516,8 +516,8 @@ pub struct GridVLine { /// 線のストローク。 /// - /// `{none}`を指定すると、垂直方向の線の範囲にこれまで配置されたすべての線が削除されます。 - /// これには垂直方向の線の下にあるvlineやセル毎のストロークが含まれます。 + /// `{none}`を指定すると、垂直方向の線の範囲にこれまで配置された全ての線が削除されます。 + /// これには垂直方向の線の下にあるvlineやセルごとのストロークが含まれます。 #[resolve] #[fold] #[default(Some(Arc::new(Stroke::default())))] From 20b2ed31e9cf38a035f09cc050c3e34cd476c020 Mon Sep 17 00:00:00 2001 From: ultimatile Date: Fri, 2 Jan 2026 10:57:21 +0900 Subject: [PATCH 3/8] Update crates/typst-library/src/layout/grid/mod.rs Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- crates/typst-library/src/layout/grid/mod.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/crates/typst-library/src/layout/grid/mod.rs b/crates/typst-library/src/layout/grid/mod.rs index b277a3e71a..0efa5fb220 100644 --- a/crates/typst-library/src/layout/grid/mod.rs +++ b/crates/typst-library/src/layout/grid/mod.rs @@ -495,7 +495,8 @@ pub struct GridHLine { /// グリッドの垂直方向の線。 /// -/// グリッドのstrokeフィールドを用いて指定されたものを含めてセルごとに設定されたストロークを上書きします。 グリッドの`row-gutter`オプションで作成されたセル間の間隔を跨げます。 +/// グリッドのstrokeフィールドを用いて指定されたものを含めてセルごとに設定されたストロークを上書きします。 +/// グリッドの`row-gutter`オプションで作成されたセル間の間隔を跨げます。 #[elem(name = "vline", title = "Grid Vertical Line")] pub struct GridVLine { /// 配置される垂直方向の線の前にある列(0始まり)。 From 276d29c0373b984d441822e0af0bd9ea7e7bc196 Mon Sep 17 00:00:00 2001 From: ultimatile Date: Fri, 2 Jan 2026 10:58:57 +0900 Subject: [PATCH 4/8] Update crates/typst-library/src/layout/grid/mod.rs Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- crates/typst-library/src/layout/grid/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/typst-library/src/layout/grid/mod.rs b/crates/typst-library/src/layout/grid/mod.rs index 0efa5fb220..ba34dd9e9f 100644 --- a/crates/typst-library/src/layout/grid/mod.rs +++ b/crates/typst-library/src/layout/grid/mod.rs @@ -470,7 +470,7 @@ pub struct GridHLine { pub start: usize, /// 水平方向の線が終了する直前の列(0始まりで、指定した列は含まない)。 - /// したがって、水平方向の線はend - 1`列目まで引かれます。 + /// したがって、水平方向の線は`end - 1`列目まで引かれます。 /// /// 値を`{none}`または列の数と同じにすると、線はグリッドの終端まで延びます。 pub end: Option, From d59771c69032faa069341098ac9b3f24cdc605d4 Mon Sep 17 00:00:00 2001 From: ultimatile Date: Fri, 2 Jan 2026 10:59:15 +0900 Subject: [PATCH 5/8] Update crates/typst-library/src/layout/grid/mod.rs Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- crates/typst-library/src/layout/grid/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/typst-library/src/layout/grid/mod.rs b/crates/typst-library/src/layout/grid/mod.rs index ba34dd9e9f..9e6c5e40b0 100644 --- a/crates/typst-library/src/layout/grid/mod.rs +++ b/crates/typst-library/src/layout/grid/mod.rs @@ -612,7 +612,7 @@ pub struct GridCell { /// このフィールドをshowルールで用いるとセルの行に応じたスタイルを適用できます。 /// /// このフィールドを上書きすることでセルを配置する行を選択できます。 - /// 行(`x`)が選択されていない場合、セルは(0列目から始まる)使用可能な最初の列に配置されます。 + /// 列(`x`)が選択されていない場合、セルは(0列目から始まる)使用可能な最初の列に配置されます。 /// 選ばれた行にある全ての列が既に埋まっている場合、エラーが発生します。 /// /// ```example From 0c229abf5da7323d94258a03879f088eb04f7efd Mon Sep 17 00:00:00 2001 From: ultimatile Date: Fri, 2 Jan 2026 10:59:26 +0900 Subject: [PATCH 6/8] Update crates/typst-library/src/layout/grid/mod.rs Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- crates/typst-library/src/layout/grid/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/typst-library/src/layout/grid/mod.rs b/crates/typst-library/src/layout/grid/mod.rs index 9e6c5e40b0..dfd8f15d2f 100644 --- a/crates/typst-library/src/layout/grid/mod.rs +++ b/crates/typst-library/src/layout/grid/mod.rs @@ -524,7 +524,7 @@ pub struct GridVLine { #[default(Some(Arc::new(Stroke::default())))] pub stroke: Option>, - /// 行(`x`)が与えられた場合の線が配置される位置。 + /// 列(`x`)が与えられた場合の線が配置される位置。 /// `{start}`か`{end}`のいずれかを指定し、それぞれその前またはその後に描画します。 /// /// `{left}`および`{right}`の値も使用可能ですが、左から右に書く文書と右から左に書く文書間でグリッドの挙動が一貫しなくなるため、非推奨です。 From 7e569cc66492deebc86765f113e1c84d291e4907 Mon Sep 17 00:00:00 2001 From: ultimatile Date: Fri, 2 Jan 2026 10:59:41 +0900 Subject: [PATCH 7/8] Update crates/typst-library/src/layout/grid/mod.rs Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- crates/typst-library/src/layout/grid/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/typst-library/src/layout/grid/mod.rs b/crates/typst-library/src/layout/grid/mod.rs index dfd8f15d2f..65c3c7ca4d 100644 --- a/crates/typst-library/src/layout/grid/mod.rs +++ b/crates/typst-library/src/layout/grid/mod.rs @@ -511,7 +511,7 @@ pub struct GridVLine { pub start: usize, /// 垂直方向の線が終了する直前の行(0始まりで、指定した行は含まない)。 - /// したがって、垂直方向の線はend - 1`行目まで引かれます。 + /// したがって、垂直方向の線は`end - 1`行目まで引かれます。 /// `{none}`または行数と同じ値を指定すると、線はグリッドの一番下まで延びます。 pub end: Option, From a3d23a176bbdc17d5e3939e2e6a6e93ac1b9ee53 Mon Sep 17 00:00:00 2001 From: ultimatile Date: Fri, 2 Jan 2026 11:02:10 +0900 Subject: [PATCH 8/8] Update crates/typst-library/src/layout/grid/mod.rs Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- crates/typst-library/src/layout/grid/mod.rs | 1 - 1 file changed, 1 deletion(-) diff --git a/crates/typst-library/src/layout/grid/mod.rs b/crates/typst-library/src/layout/grid/mod.rs index 65c3c7ca4d..a94b9a00b5 100644 --- a/crates/typst-library/src/layout/grid/mod.rs +++ b/crates/typst-library/src/layout/grid/mod.rs @@ -29,7 +29,6 @@ use crate::visualize::{Paint, Stroke}; /// グリッド要素はプレゼンテーションおよびレイアウトに使われることが想定されている一方で、[`{table}`]($table)要素は複数の関係データ点を表す広い用途が想定されています。 /// 将来、Typstは出力に注釈を付与し、スクリーンリーダーが`table`要素の内容を表として読み上げられるようになる予定です。 /// 一方、グリッドのコンテンツは、文書の流れに沿った複数のコンテンツブロックと同様に読み上げられる予定です。 - /// これらの要素に対するsetルールとshowルールは、互いに影響しません。 /// /// グリッドの大きさは引数に指定されたトラックサイズによって決定されます。