From 9b96031a5f07a4128ebff55fd5772c782831c19f Mon Sep 17 00:00:00 2001 From: ultimatile Date: Fri, 8 May 2026 01:35:37 +0900 Subject: [PATCH 1/2] =?UTF-8?q?`/docs/reference/math/frac/`=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/math/frac.rs | 17 ++++++++--------- website/translation-status.json | 2 +- 2 files changed, 9 insertions(+), 10 deletions(-) diff --git a/crates/typst-library/src/math/frac.rs b/crates/typst-library/src/math/frac.rs index 7cada815d5..f5f4cfdfc2 100644 --- a/crates/typst-library/src/math/frac.rs +++ b/crates/typst-library/src/math/frac.rs @@ -27,20 +27,20 @@ pub struct FracElem { #[required] pub denom: Content, - /// How the fraction should be laid out. + /// 分数のレイアウト方法。 /// - /// ```example:"Styles" + /// ```example:"スタイル" /// $ frac(x, y, style: "vertical") $ /// $ frac(x, y, style: "skewed") $ /// $ frac(x, y, style: "horizontal") $ /// ``` /// - /// ```example:"Setting the default" + /// ```example:"デフォルトの設定" /// #set math.frac(style: "skewed") /// $ a / b $ /// ``` /// - /// ```example:"Handling of grouping parentheses" + /// ```example:"グループ化括弧の扱い" /// // Grouping parentheses are removed. /// #set math.frac(style: "vertical") /// $ (a + b) / b $ @@ -54,7 +54,7 @@ pub struct FracElem { /// $ (a + b) / b $ /// ``` /// - /// ```example:"Different styles in inline vs block equations" + /// ```example:"インライン数式とブロック数式でのスタイル" /// // This changes the style for inline equations only. /// #show math.equation.where(block: false): set math.frac(style: "horizontal") /// @@ -82,13 +82,12 @@ pub struct FracElem { /// Fraction style #[derive(Debug, Default, Copy, Clone, Eq, PartialEq, Hash, Cast)] pub enum FracStyle { - /// Stacked numerator and denominator with a bar. + /// 分子と分母を横棒で重ねます。 #[default] Vertical, - /// Numerator and denominator separated by a slash. + /// 分子と分母をスラッシュで区切ります。 Skewed, - /// Numerator and denominator placed inline and parentheses are not - /// absorbed. + /// 分子と分母をインラインで配置し、丸括弧をそのまま保持します。 Horizontal, } diff --git a/website/translation-status.json b/website/translation-status.json index ae55208954..a63dc0bff3 100644 --- a/website/translation-status.json +++ b/website/translation-status.json @@ -87,7 +87,7 @@ "/docs/reference/math/cases/": "translated", "/docs/reference/math/class/": "translated", "/docs/reference/math/equation/": "translated", - "/docs/reference/math/frac/": "partially_translated", + "/docs/reference/math/frac/": "translated", "/docs/reference/math/lr/": "translated", "/docs/reference/math/mat/": "translated", "/docs/reference/math/primes/": "translated", From bb7c1c40543bddd3b181765fb3b790f685b1fe2e Mon Sep 17 00:00:00 2001 From: ultimatile Date: Wed, 3 Jun 2026 04:38:25 +0900 Subject: [PATCH 2/2] Update crates/typst-library/src/math/frac.rs Co-authored-by: Shunsuke KIMURA --- crates/typst-library/src/math/frac.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/typst-library/src/math/frac.rs b/crates/typst-library/src/math/frac.rs index f5f4cfdfc2..e1b3347364 100644 --- a/crates/typst-library/src/math/frac.rs +++ b/crates/typst-library/src/math/frac.rs @@ -82,7 +82,7 @@ pub struct FracElem { /// Fraction style #[derive(Debug, Default, Copy, Clone, Eq, PartialEq, Hash, Cast)] pub enum FracStyle { - /// 分子と分母を横棒で重ねます。 + /// 分子と分母を上下に配置し、横棒で区切ります。 #[default] Vertical, /// 分子と分母をスラッシュで区切ります。