diff --git a/crates/typst-library/src/math/frac.rs b/crates/typst-library/src/math/frac.rs index f5c4514d68..db91b7a585 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, } diff --git a/website/translation-status.json b/website/translation-status.json index a20bd54383..d97c9c81cf 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/": "translated", - "/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",