Skip to content

Commit 533c756

Browse files
ultimatileCopilotkimushun11013w36zj6
authored
/docs/reference/math/classの翻訳 (#247)
Co-authored-by: Copilot <[email protected]> Co-authored-by: Shunsuke KIMURA <[email protected]> Co-authored-by: 3w36zj6 <[email protected]>
1 parent 7550dfa commit 533c756

File tree

3 files changed

+18
-20
lines changed

3 files changed

+18
-20
lines changed

crates/typst-library/src/foundations/cast.rs

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -478,25 +478,25 @@ cast! {
478478
MathClass::Vary => "vary",
479479
MathClass::Special => "special",
480480
}),
481-
/// The default class for non-special things.
481+
/// 特別でない要素のデフォルトクラス。
482482
"normal" => MathClass::Normal,
483-
/// Punctuation, e.g. a comma.
483+
/// カンマなどの句読点。
484484
"punctuation" => MathClass::Punctuation,
485-
/// An opening delimiter, e.g. `(`.
485+
/// `(`などの開き区切り文字。
486486
"opening" => MathClass::Opening,
487-
/// A closing delimiter, e.g. `)`.
487+
/// `)`などの閉じ区切り文字。
488488
"closing" => MathClass::Closing,
489-
/// A delimiter that is the same on both sides, e.g. `|`.
489+
/// `|`などの両側が同じ区切り文字。
490490
"fence" => MathClass::Fence,
491-
/// A large operator like `sum`.
491+
/// `sum`のような大型演算子。
492492
"large" => MathClass::Large,
493-
/// A relation like `=` or `prec`.
493+
/// `=``prec`のような関係記号。
494494
"relation" => MathClass::Relation,
495-
/// A unary operator like `not`.
495+
/// `not`のような単項演算子。
496496
"unary" => MathClass::Unary,
497-
/// A binary operator like `times`.
497+
/// `times`のような二項演算子。
498498
"binary" => MathClass::Binary,
499-
/// An operator that can be both unary or binary like `+`.
499+
/// `+`のような単項にも二項にもなる演算子。
500500
"vary" => MathClass::Vary,
501501
}
502502

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

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -119,15 +119,13 @@ impl AlignPointElem {
119119
}
120120
}
121121

122-
/// Forced use of a certain math class.
122+
/// 特定の数式クラスを強制的に適用。
123123
///
124-
/// This is useful to treat certain symbols as if they were of a different
125-
/// class, e.g. to make a symbol behave like a relation. The class of a symbol
126-
/// defines the way it is laid out, including spacing around it, and how its
127-
/// scripts are attached by default. Note that the latter can always be
128-
/// overridden using [`{limits}`](math.limits) and [`{scripts}`](math.scripts).
124+
/// これは、特定の記号を異なるクラスのように扱うのに便利です。例えば、ある記号を関係のように振る舞わせることができます。
125+
/// 記号のクラスは、レイアウトのされ方、周囲の空白の入れ方、添え字がデフォルトでどのように取り付けられるかを定義します。
126+
/// 添え字の取り付け方は[`{limits}`](math.limits)や[`{scripts}`](math.scripts)を使って常に上書きできることに注意してください。
129127
///
130-
/// # Example
128+
/// #
131129
/// ```example
132130
/// #let loves = math.class(
133131
/// "relation",
@@ -138,11 +136,11 @@ impl AlignPointElem {
138136
/// ```
139137
#[elem(Mathy)]
140138
pub struct ClassElem {
141-
/// The class to apply to the content.
139+
/// コンテンツに適用するクラス。
142140
#[required]
143141
pub class: MathClass,
144142

145-
/// The content to which the class is applied.
143+
/// クラスを適用するコンテンツ。
146144
#[required]
147145
pub body: Content,
148146
}

website/translation-status.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@
8383
"/docs/reference/math/binom/": "translated",
8484
"/docs/reference/math/cancel/": "translated",
8585
"/docs/reference/math/cases/": "translated",
86-
"/docs/reference/math/class/": "untranslated",
86+
"/docs/reference/math/class/": "translated",
8787
"/docs/reference/math/equation/": "translated",
8888
"/docs/reference/math/frac/": "translated",
8989
"/docs/reference/math/lr/": "translated",

0 commit comments

Comments
 (0)