Skip to content

Commit e3e351b

Browse files
/docs/reference/math/frac/の翻訳 (#168)
Co-authored-by: Shunsuke KIMURA <[email protected]>
1 parent 63777c1 commit e3e351b

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

crates/typst-library/src/math/frac.rs

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,26 +4,26 @@ use crate::diag::bail;
44
use crate::foundations::{elem, Content, Value};
55
use crate::math::Mathy;
66

7-
/// A mathematical fraction.
7+
/// 分数。
88
///
9-
/// # Example
9+
/// #
1010
/// ```example
1111
/// $ 1/2 < (x+1)/2 $
1212
/// $ ((x+1)) / 2 = frac(a, b) $
1313
/// ```
1414
///
15-
/// # Syntax
16-
/// This function also has dedicated syntax: Use a slash to turn neighbouring
17-
/// expressions into a fraction. Multiple atoms can be grouped into a single
18-
/// expression using round grouping parenthesis. Such parentheses are removed
19-
/// from the output, but you can nest multiple to force them.
15+
/// # 構文
16+
/// この関数には専用の構文もあります。
17+
/// 隣接する式をスラッシュで区切ると、分数になります。
18+
/// また、丸括弧で複数の式要素を囲うと、単一の式として扱えます。
19+
/// そのような丸括弧は出力からは削除されますが、複数重ねてネストすることで、丸括弧を表示させることも可能です。
2020
#[elem(title = "Fraction", Mathy)]
2121
pub struct FracElem {
22-
/// The fraction's numerator.
22+
/// 分数の分子。
2323
#[required]
2424
pub num: Content,
2525

26-
/// The fraction's denominator.
26+
/// 分数の分母。
2727
#[required]
2828
pub denom: Content,
2929
}

website/translation-status.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@
8585
"/docs/reference/math/cases/": "untranslated",
8686
"/docs/reference/math/class/": "untranslated",
8787
"/docs/reference/math/equation/": "translated",
88-
"/docs/reference/math/frac/": "untranslated",
88+
"/docs/reference/math/frac/": "translated",
8989
"/docs/reference/math/lr": "untranslated",
9090
"/docs/reference/math/mat/": "untranslated",
9191
"/docs/reference/math/primes/": "untranslated",

0 commit comments

Comments
 (0)