From 16113db6299b9ad7fd0d61de1807bced01095c11 Mon Sep 17 00:00:00 2001 From: ultimatile Date: Fri, 8 May 2026 01:41:00 +0900 Subject: [PATCH 1/2] =?UTF-8?q?`/docs/reference/layout/box/`=E3=81=AE?= =?UTF-8?q?=E5=86=8D=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/container.rs | 28 +++++++------------- website/translation-status.json | 2 +- 2 files changed, 11 insertions(+), 19 deletions(-) diff --git a/crates/typst-library/src/layout/container.rs b/crates/typst-library/src/layout/container.rs index c78f0b7494..6ab8467dc5 100644 --- a/crates/typst-library/src/layout/container.rs +++ b/crates/typst-library/src/layout/container.rs @@ -66,22 +66,15 @@ pub struct BoxElem { /// ボックスのコンテンツのパディング量。 /// - /// _注意:_ ボックスがテキストを含むとき、その正確な大きさは現在の[テキストの端]($text.top-edge)に依存します。 - /// How much to pad the box's content. - /// - /// This can be a single length for all sides or a dictionary of lengths - /// for individual sides. When passing a dictionary, it can contain the - /// following keys in order of precedence: `top`, `right`, `bottom`, `left` - /// (controlling the respective cell sides), `x`, `y` (controlling vertical - /// and horizontal insets), and `rest` (covers all insets not styled by - /// other dictionary entries). All keys are optional; omitted keys will use - /// their previously set value, or the default value if never set. + /// 全ての辺に対する単一の長さ、または辺ごとの長さの辞書を指定できます。 + /// 辞書を渡す場合、以下のキーを優先度順に含めることができます。 + /// `top`、`right`、`bottom`、`left`(それぞれ対応する辺を制御)、`x`、`y`(それぞれ水平方向および垂直方向のインセットを制御)、`rest`(辞書の他のエントリーで設定されない全てのインセットを対象とする)です。 + /// 全てのキーはオプションで、省略されたキーは以前に設定された値、または一度も設定されていなければデフォルト値が使用されます。 /// - /// [Relative lengths]($relative) are relative to the box size without - /// outset. + /// このパラメーターで指定する[相対的な長さ]($relative)は[アウトセット]($box.outset)を除いたボックスサイズに対する相対値です。 + /// 相対的なインセットやアウトセットは、コンテナを基準とする[幅]($box.width)や[高さ](box.height)の相対値とは基準が異なることに注意してください。 /// - /// _Note:_ When the box contains text, its exact size depends on the - /// current [text edges]($text.top-edge). + /// _注意:_ ボックスがテキストを含むとき、その正確な大きさは現在の[テキストの端]($text.top-edge)に依存します。 /// /// ```example /// #rect(inset: 0pt)[Tight] @@ -90,10 +83,9 @@ pub struct BoxElem { pub inset: Sides>>, /// レイアウトに影響を与えずにボックスの大きさを拡大する量。 /// - /// This can be a single length for all sides or a dictionary of lengths for - /// individual sides. [Relative lengths]($relative) are relative to the box - /// size without outset. See the documentation for [inset]($box.inset) above - /// for further details. + /// 全ての辺に対する単一の長さ、または辺ごとの長さの辞書を指定できます。 + /// [相対的な長さ]($relative)はアウトセットを除いたボックスサイズに対する相対値です。 + /// 詳細は上記の[インセット]($box.inset)のドキュメントを参照してください。 /// /// これはパディングが行のレイアウトに影響を与えるのを防ぐために便利です。 /// 以下の例より一般的な場合については、[未加工テキストのblockパラメーター]($raw.block)のドキュメントを参照してください。 diff --git a/website/translation-status.json b/website/translation-status.json index ae55208954..d329d064a0 100644 --- a/website/translation-status.json +++ b/website/translation-status.json @@ -107,7 +107,7 @@ "/docs/reference/layout/alignment/": "translated", "/docs/reference/layout/angle/": "translated", "/docs/reference/layout/block/": "translated", - "/docs/reference/layout/box/": "partially_translated", + "/docs/reference/layout/box/": "translated", "/docs/reference/layout/colbreak/": "translated", "/docs/reference/layout/columns/": "translated", "/docs/reference/layout/direction/": "partially_translated", From a3f7da3d22115eeebe10de7c016c499288f7cab7 Mon Sep 17 00:00:00 2001 From: ultimatile Date: Tue, 26 May 2026 01:47:17 +0900 Subject: [PATCH 2/2] Potential fix for pull request finding Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> --- crates/typst-library/src/layout/container.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/typst-library/src/layout/container.rs b/crates/typst-library/src/layout/container.rs index 6ab8467dc5..e60957f6f8 100644 --- a/crates/typst-library/src/layout/container.rs +++ b/crates/typst-library/src/layout/container.rs @@ -72,7 +72,7 @@ pub struct BoxElem { /// 全てのキーはオプションで、省略されたキーは以前に設定された値、または一度も設定されていなければデフォルト値が使用されます。 /// /// このパラメーターで指定する[相対的な長さ]($relative)は[アウトセット]($box.outset)を除いたボックスサイズに対する相対値です。 - /// 相対的なインセットやアウトセットは、コンテナを基準とする[幅]($box.width)や[高さ](box.height)の相対値とは基準が異なることに注意してください。 + /// 相対的なインセットやアウトセットは、コンテナを基準とする[幅]($box.width)や[高さ]($box.height)の相対値とは基準が異なることに注意してください。 /// /// _注意:_ ボックスがテキストを含むとき、その正確な大きさは現在の[テキストの端]($text.top-edge)に依存します。 ///