Skip to content

Commit c333fbd

Browse files
authored
/docs/reference/math/equation/の翻訳 (#164)
1 parent 098f2fe commit c333fbd

File tree

2 files changed

+26
-26
lines changed

2 files changed

+26
-26
lines changed

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

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,13 @@ use crate::math::{MathSize, MathVariant};
1818
use crate::model::{Numbering, Outlinable, ParLine, Refable, Supplement};
1919
use crate::text::{FontFamily, FontList, FontWeight, LocalName, TextElem};
2020

21-
/// A mathematical equation.
21+
/// 数式。
2222
///
23-
/// Can be displayed inline with text or as a separate block. An equation
24-
/// becomes block-level through the presence of at least one space after the
25-
/// opening dollar sign and one space before the closing dollar sign.
23+
/// 数式は、テキスト内にインラインで表示することも、独立したブロックとして表示することもできます。
24+
/// 数式をブロックレベルにするには、
25+
/// 開始ドル記号の直後と終了ドル記号の直前に少なくとも1つのスペースを挿入してください。
2626
///
27-
/// # Example
27+
/// #
2828
/// ```example
2929
/// #set text(font: "New Computer Modern")
3030
///
@@ -37,22 +37,22 @@ use crate::text::{FontFamily, FontList, FontWeight, LocalName, TextElem};
3737
/// $ sum_(k=1)^n k = (n(n+1)) / 2 $
3838
/// ```
3939
///
40-
/// By default, block-level equations will not break across pages. This can be
41-
/// changed through `{show math.equation: set block(breakable: true)}`.
40+
/// デフォルトでは、ブロックレベルの数式はページをまたいで分割されません。
41+
/// これは`{show math.equation: set block(breakable: true)}`を使用して変更できます。
4242
///
43-
/// # Syntax
44-
/// This function also has dedicated syntax: Write mathematical markup within
45-
/// dollar signs to create an equation. Starting and ending the equation with at
46-
/// least one space lifts it into a separate block that is centered
47-
/// horizontally. For more details about math syntax, see the
48-
/// [main math page]($category/math).
43+
/// # 構文
44+
/// この関数には専用の構文もあります。
45+
/// 数式のマークアップをドル記号で囲むことで、数式を作成します。
46+
/// 式の先頭と末尾にそれぞれ少なくとも1つのスペースを挿入すると、
47+
/// 数式は独立したブロックとして扱われ、水平中央に配置されます。
48+
/// 数式の構文の詳細については、[数式のメインページ]($category/math)を参照してください。
4949
#[elem(Locatable, Synthesize, Show, ShowSet, Count, LocalName, Refable, Outlinable)]
5050
pub struct EquationElem {
51-
/// Whether the equation is displayed as a separate block.
51+
/// 数式が独立したブロックとして表示されるかどうか。
5252
#[default(false)]
5353
pub block: bool,
5454

55-
/// How to [number]($numbering) block-level equations.
55+
/// ブロックレベル数式への[番号付け]($numbering)方法。
5656
///
5757
/// ```example
5858
/// #set math.equation(numbering: "(1)")
@@ -66,12 +66,12 @@ pub struct EquationElem {
6666
#[borrowed]
6767
pub numbering: Option<Numbering>,
6868

69-
/// The alignment of the equation numbering.
69+
/// 数式番号の配置。
7070
///
71-
/// By default, the alignment is `{end + horizon}`. For the horizontal
72-
/// component, you can use `{right}`, `{left}`, or `{start}` and `{end}`
73-
/// of the text direction; for the vertical component, you can use
74-
/// `{top}`, `{horizon}`, or `{bottom}`.
71+
/// デフォルトでは、数式の配置は`{end + horizon}`です。
72+
/// 水平方向の成分には`{right}``{left}`
73+
/// またはテキスト方向の`{start}`と`{end}`を使用できます。
74+
/// 垂直方向の成分には、`{top}``{horizon}`、または`{bottom}`を使用できます。
7575
///
7676
/// ```example
7777
/// #set math.equation(numbering: "(1)", number-align: bottom)
@@ -83,12 +83,12 @@ pub struct EquationElem {
8383
#[default(SpecificAlignment::Both(OuterHAlignment::End, VAlignment::Horizon))]
8484
pub number_align: SpecificAlignment<OuterHAlignment, VAlignment>,
8585

86-
/// A supplement for the equation.
86+
/// 数式に用いる補足語。
8787
///
88-
/// For references to equations, this is added before the referenced number.
88+
/// 見出しを参照する際、補足語が参照番号の前に追加されます。
8989
///
90-
/// If a function is specified, it is passed the referenced equation and
91-
/// should return content.
90+
/// 関数を指定した場合、参照された数式が引数として渡され、
91+
/// その関数は表示されるコンテンツを返す必要があります。
9292
///
9393
/// ```example
9494
/// #set math.equation(numbering: "(1)", supplement: [Eq.])
@@ -101,7 +101,7 @@ pub struct EquationElem {
101101
/// ```
102102
pub supplement: Smart<Option<Supplement>>,
103103

104-
/// The contents of the equation.
104+
/// 数式の内容。
105105
#[required]
106106
pub body: Content,
107107

website/translation-status.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@
8484
"/docs/reference/math/cancel/": "untranslated",
8585
"/docs/reference/math/cases/": "untranslated",
8686
"/docs/reference/math/class/": "untranslated",
87-
"/docs/reference/math/equation/": "untranslated",
87+
"/docs/reference/math/equation/": "translated",
8888
"/docs/reference/math/frac/": "untranslated",
8989
"/docs/reference/math/lr": "untranslated",
9090
"/docs/reference/math/mat/": "untranslated",

0 commit comments

Comments
 (0)