Skip to content

Commit e76bf05

Browse files
authored
/docs/reference/math/vecの翻訳 (#251)
1 parent a26c964 commit e76bf05

File tree

2 files changed

+10
-12
lines changed

2 files changed

+10
-12
lines changed

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

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -15,23 +15,21 @@ use crate::visualize::Stroke;
1515
const DEFAULT_ROW_GAP: Em = Em::new(0.2);
1616
const DEFAULT_COL_GAP: Em = Em::new(0.5);
1717

18-
/// A column vector.
18+
/// 列ベクトル。
1919
///
20-
/// Content in the vector's elements can be aligned with the
21-
/// [`align`]($math.vec.align) parameter, or the `&` symbol.
20+
/// ベクトルの要素内のコンテンツは[`align`]($math.vec.align)パラメーターか`&`記号を用いて配置できます。
2221
///
23-
/// # Example
22+
/// #
2423
/// ```example
2524
/// $ vec(a, b, c) dot vec(1, 2, 3)
2625
/// = a + 2b + 3c $
2726
/// ```
2827
#[elem(title = "Vector", Mathy)]
2928
pub struct VecElem {
30-
/// The delimiter to use.
29+
/// 用いる区切り文字。
3130
///
32-
/// Can be a single character specifying the left delimiter, in which case
33-
/// the right delimiter is inferred. Otherwise, can be an array containing a
34-
/// left and a right delimiter.
31+
/// 単一の文字で左区切り文字を指定する場合、右区切り文字は自動的に推論されます。
32+
/// それ以外の場合は、左区切り文字と右区切り文字を含む配列を指定します。
3533
///
3634
/// ```example
3735
/// #set math.vec(delim: "[")
@@ -40,7 +38,7 @@ pub struct VecElem {
4038
#[default(DelimiterPair::PAREN)]
4139
pub delim: DelimiterPair,
4240

43-
/// The horizontal alignment that each element should have.
41+
/// 各要素の水平方向の配置。
4442
///
4543
/// ```example
4644
/// #set math.vec(align: right)
@@ -50,7 +48,7 @@ pub struct VecElem {
5048
#[default(HAlignment::Center)]
5149
pub align: HAlignment,
5250

53-
/// The gap between elements.
51+
/// 要素間の間隔。
5452
///
5553
/// ```example
5654
/// #set math.vec(gap: 1em)
@@ -60,7 +58,7 @@ pub struct VecElem {
6058
#[default(DEFAULT_ROW_GAP.into())]
6159
pub gap: Rel<Length>,
6260

63-
/// The elements of the vector.
61+
/// ベクトルの要素。
6462
#[variadic]
6563
pub children: Vec<Content>,
6664
}

website/translation-status.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@
9696
"/docs/reference/math/op/": "translated",
9797
"/docs/reference/math/underover/": "untranslated",
9898
"/docs/reference/math/variants/": "untranslated",
99-
"/docs/reference/math/vec/": "untranslated",
99+
"/docs/reference/math/vec/": "translated",
100100
"/docs/reference/symbols/": "untranslated",
101101
"/docs/reference/symbols/sym/": "untranslated",
102102
"/docs/reference/symbols/emoji/": "untranslated",

0 commit comments

Comments
 (0)