From 331141c8ee9d166e91837bc603cc05283c51828f Mon Sep 17 00:00:00 2001 From: gomazarashi Date: Tue, 27 May 2025 15:03:21 +0900 Subject: [PATCH 1/5] =?UTF-8?q?`/docs/reference/math/frac/`=E3=81=AE?= =?UTF-8?q?=E7=BF=BB=E8=A8=B3=E9=96=8B=E5=A7=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- website/translation-status.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/website/translation-status.json b/website/translation-status.json index d1ff89a391..4e14057689 100644 --- a/website/translation-status.json +++ b/website/translation-status.json @@ -85,7 +85,7 @@ "/docs/reference/math/cases/": "untranslated", "/docs/reference/math/class/": "untranslated", "/docs/reference/math/equation/": "untranslated", - "/docs/reference/math/frac/": "untranslated", + "/docs/reference/math/frac/": "translated", "/docs/reference/math/lr": "untranslated", "/docs/reference/math/mat/": "untranslated", "/docs/reference/math/primes/": "untranslated", From fc5a3b29fbdf7929a05ee8f4771647f7fa2319c2 Mon Sep 17 00:00:00 2001 From: gomazarashi Date: Tue, 27 May 2025 15:36:57 +0900 Subject: [PATCH 2/5] =?UTF-8?q?=E7=BF=BB=E8=A8=B3=E5=AE=8C=E4=BA=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- crates/typst-library/src/math/frac.rs | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/crates/typst-library/src/math/frac.rs b/crates/typst-library/src/math/frac.rs index f5c4514d68..7b8a759df9 100644 --- a/crates/typst-library/src/math/frac.rs +++ b/crates/typst-library/src/math/frac.rs @@ -4,26 +4,26 @@ use crate::diag::bail; use crate::foundations::{elem, Content, Value}; use crate::math::Mathy; -/// A mathematical fraction. +/// 分数。 /// -/// # Example +/// # 例 /// ```example /// $ 1/2 < (x+1)/2 $ /// $ ((x+1)) / 2 = frac(a, b) $ /// ``` /// -/// # Syntax -/// This function also has dedicated syntax: Use a slash to turn neighbouring -/// expressions into a fraction. Multiple atoms can be grouped into a single -/// expression using round grouping parenthesis. Such parentheses are removed -/// from the output, but you can nest multiple to force them. +/// # 構文 +/// この関数には専用の構文もあります。 +/// 隣接する式をスラッシュで区切ると、分数になります。 +/// また、丸括弧で複数の要素を囲うと、単一の式として扱えます。 +/// そのような丸括弧は出力からは削除されますが、複数の丸括弧をネストすることにより丸括弧を残すことができます。 #[elem(title = "Fraction", Mathy)] pub struct FracElem { - /// The fraction's numerator. + /// 分数の分子。 #[required] pub num: Content, - /// The fraction's denominator. + /// 分数の分母。 #[required] pub denom: Content, } From a581f2845c8b9f2139a777731b601d5ed5bfb7ef Mon Sep 17 00:00:00 2001 From: gomazarashi <60730277+gomazarashi@users.noreply.github.com> Date: Wed, 28 May 2025 08:47:44 +0900 Subject: [PATCH 3/5] =?UTF-8?q?=E4=B8=B8=E6=8B=AC=E5=BC=A7=E3=81=AE?= =?UTF-8?q?=E3=83=8D=E3=82=B9=E3=83=88=E3=81=AB=E9=96=A2=E3=81=99=E3=82=8B?= =?UTF-8?q?=E8=A1=A8=E7=8F=BE=E3=82=92=E6=94=B9=E5=96=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 7b8a759df9..1a463055d7 100644 --- a/crates/typst-library/src/math/frac.rs +++ b/crates/typst-library/src/math/frac.rs @@ -16,7 +16,7 @@ use crate::math::Mathy; /// この関数には専用の構文もあります。 /// 隣接する式をスラッシュで区切ると、分数になります。 /// また、丸括弧で複数の要素を囲うと、単一の式として扱えます。 -/// そのような丸括弧は出力からは削除されますが、複数の丸括弧をネストすることにより丸括弧を残すことができます。 +/// そのような丸括弧は出力からは削除されますが、複数重ねてネストすることで、丸括弧を表示させることも可能です。 #[elem(title = "Fraction", Mathy)] pub struct FracElem { /// 分数の分子。 From 1f515092dc3a6e0f5ae1ddcb3757f527079a0a10 Mon Sep 17 00:00:00 2001 From: gomazarashi <60730277+gomazarashi@users.noreply.github.com> Date: Thu, 29 May 2025 11:25:44 +0900 Subject: [PATCH 4/5] 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 1a463055d7..db91b7a585 100644 --- a/crates/typst-library/src/math/frac.rs +++ b/crates/typst-library/src/math/frac.rs @@ -15,7 +15,7 @@ use crate::math::Mathy; /// # 構文 /// この関数には専用の構文もあります。 /// 隣接する式をスラッシュで区切ると、分数になります。 -/// また、丸括弧で複数の要素を囲うと、単一の式として扱えます。 +/// また、丸括弧で複数の式要素を囲うと、単一の式として扱えます。 /// そのような丸括弧は出力からは削除されますが、複数重ねてネストすることで、丸括弧を表示させることも可能です。 #[elem(title = "Fraction", Mathy)] pub struct FracElem { From 1685ad034ef72ec7cbe28d5ea64b7ecc142c6439 Mon Sep 17 00:00:00 2001 From: gomazarashi Date: Thu, 29 May 2025 11:31:20 +0900 Subject: [PATCH 5/5] =?UTF-8?q?=E3=82=B3=E3=83=B3=E3=83=95=E3=83=AA?= =?UTF-8?q?=E3=82=AF=E3=83=88=E5=AF=BE=E5=BF=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- website/translation-status.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/website/translation-status.json b/website/translation-status.json index 4e14057689..d97c9c81cf 100644 --- a/website/translation-status.json +++ b/website/translation-status.json @@ -84,7 +84,7 @@ "/docs/reference/math/cancel/": "untranslated", "/docs/reference/math/cases/": "untranslated", "/docs/reference/math/class/": "untranslated", - "/docs/reference/math/equation/": "untranslated", + "/docs/reference/math/equation/": "translated", "/docs/reference/math/frac/": "translated", "/docs/reference/math/lr": "untranslated", "/docs/reference/math/mat/": "untranslated",