Skip to content

Commit 569763a

Browse files
ultimatile3w36zj6
andauthored
/docs/reference/math/casesの翻訳 (#225)
Co-authored-by: 3w36zj6 <[email protected]>
1 parent c8ba304 commit 569763a

File tree

2 files changed

+10
-11
lines changed

2 files changed

+10
-11
lines changed

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

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -216,11 +216,11 @@ pub struct MatElem {
216216
pub rows: Vec<Vec<Content>>,
217217
}
218218

219-
/// A case distinction.
219+
/// 場合分け。
220220
///
221-
/// Content across different branches can be aligned with the `&` symbol.
221+
/// `&`記号を用いると異なる分岐に属するコンテンツを整列できます。
222222
///
223-
/// # Example
223+
/// #
224224
/// ```example
225225
/// $ f(x, y) := cases(
226226
/// 1 "if" (x dot y)/2 <= 0,
@@ -231,11 +231,10 @@ pub struct MatElem {
231231
/// ```
232232
#[elem(Mathy)]
233233
pub struct CasesElem {
234-
/// The delimiter to use.
234+
/// 使用する区切り文字。
235235
///
236-
/// Can be a single character specifying the left delimiter, in which case
237-
/// the right delimiter is inferred. Otherwise, can be an array containing a
238-
/// left and a right delimiter.
236+
/// 単一の文字で左区切り文字を指定する場合、右区切り文字は自動的に推論されます。
237+
/// それ以外の場合は、左区切り文字と右区切り文字を含む配列を指定します。
239238
///
240239
/// ```example
241240
/// #set math.cases(delim: "[")
@@ -244,7 +243,7 @@ pub struct CasesElem {
244243
#[default(DelimiterPair::BRACE)]
245244
pub delim: DelimiterPair,
246245

247-
/// Whether the direction of cases should be reversed.
246+
/// 場合分けの向きを反転させるかどうか。
248247
///
249248
/// ```example
250249
/// #set math.cases(reverse: true)
@@ -253,7 +252,7 @@ pub struct CasesElem {
253252
#[default(false)]
254253
pub reverse: bool,
255254

256-
/// The gap between branches.
255+
/// 分岐間の間隔。
257256
///
258257
/// ```example
259258
/// #set math.cases(gap: 1em)
@@ -263,7 +262,7 @@ pub struct CasesElem {
263262
#[default(DEFAULT_ROW_GAP.into())]
264263
pub gap: Rel<Length>,
265264

266-
/// The branches of the case distinction.
265+
/// 場合分けの各分岐を表す子要素。
267266
#[variadic]
268267
pub children: Vec<Content>,
269268
}

website/translation-status.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@
8282
"/docs/reference/math/attach/": "untranslated",
8383
"/docs/reference/math/binom/": "untranslated",
8484
"/docs/reference/math/cancel/": "untranslated",
85-
"/docs/reference/math/cases/": "untranslated",
85+
"/docs/reference/math/cases/": "translated",
8686
"/docs/reference/math/class/": "untranslated",
8787
"/docs/reference/math/equation/": "translated",
8888
"/docs/reference/math/frac/": "translated",

0 commit comments

Comments
 (0)