diff --git a/crates/typst-library/src/math/underover.rs b/crates/typst-library/src/math/underover.rs index 302c51afea..e0269be003 100644 --- a/crates/typst-library/src/math/underover.rs +++ b/crates/typst-library/src/math/underover.rs @@ -1,156 +1,154 @@ use crate::foundations::{elem, Content}; use crate::math::Mathy; -/// A horizontal line under content. +/// コンテンツの下にある水平方向の線。 /// /// ```example /// $ underline(1 + 2 + ... + 5) $ /// ``` #[elem(Mathy)] pub struct UnderlineElem { - /// The content above the line. + /// 線の上にあるコンテンツ。 #[required] pub body: Content, } -/// A horizontal line over content. +/// コンテンツの上にある水平方向の線。 /// /// ```example /// $ overline(1 + 2 + ... + 5) $ /// ``` #[elem(Mathy)] pub struct OverlineElem { - /// The content below the line. + /// 線の下にあるコンテンツ。 #[required] pub body: Content, } -/// A horizontal brace under content, with an optional annotation below. +/// コンテンツの下にある水平方向の波括弧。その下にオプションで注釈ができます。 /// /// ```example /// $ underbrace(1 + 2 + ... + 5, "numbers") $ /// ``` #[elem(Mathy)] pub struct UnderbraceElem { - /// The content above the brace. + /// 波括弧の上にあるコンテンツ。 #[required] pub body: Content, - /// The optional content below the brace. + /// 波括弧の下にあるオプションのコンテンツ。 #[positional] pub annotation: Option, } -/// A horizontal brace over content, with an optional annotation above. +/// コンテンツの上にある水平方向の波括弧。その上にオプションで注釈ができます。 /// /// ```example /// $ overbrace(1 + 2 + ... + 5, "numbers") $ /// ``` #[elem(Mathy)] pub struct OverbraceElem { - /// The content below the brace. + /// 波括弧の下にあるコンテンツ。 #[required] pub body: Content, - /// The optional content above the brace. + /// 波括弧の上にあるオプションのコンテンツ。 #[positional] pub annotation: Option, } -/// A horizontal bracket under content, with an optional annotation below. +/// コンテンツの下にある水平方向の角括弧。その下にオプションで注釈ができます。 /// /// ```example /// $ underbracket(1 + 2 + ... + 5, "numbers") $ /// ``` #[elem(Mathy)] pub struct UnderbracketElem { - /// The content above the bracket. + /// 角括弧の上にあるコンテンツ。 #[required] pub body: Content, - /// The optional content below the bracket. + /// 角括弧の下にあるオプションのコンテンツ。 #[positional] pub annotation: Option, } -/// A horizontal bracket over content, with an optional annotation above. +/// コンテンツの上にある水平方向の角括弧。その上にオプションで注釈ができます。 /// /// ```example /// $ overbracket(1 + 2 + ... + 5, "numbers") $ /// ``` #[elem(Mathy)] pub struct OverbracketElem { - /// The content below the bracket. + /// 角括弧の下にあるコンテンツ。 #[required] pub body: Content, - /// The optional content above the bracket. + /// 角括弧の上にあるオプションのコンテンツ。 #[positional] pub annotation: Option, } -/// A horizontal parenthesis under content, with an optional annotation below. +/// コンテンツの下にある水平方向の丸括弧。その下にオプションで注釈ができます。 /// /// ```example /// $ underparen(1 + 2 + ... + 5, "numbers") $ /// ``` #[elem(Mathy)] pub struct UnderparenElem { - /// The content above the parenthesis. + /// 丸括弧の上にあるコンテンツ。 #[required] pub body: Content, - /// The optional content below the parenthesis. + /// 丸括弧の下にあるオプションのコンテンツ。 #[positional] pub annotation: Option, } -/// A horizontal parenthesis over content, with an optional annotation above. +/// コンテンツの上にある水平方向の丸括弧。その上にオプションで注釈ができます。 /// /// ```example /// $ overparen(1 + 2 + ... + 5, "numbers") $ /// ``` #[elem(Mathy)] pub struct OverparenElem { - /// The content below the parenthesis. + /// 丸括弧の下にあるコンテンツ。 #[required] pub body: Content, - /// The optional content above the parenthesis. + /// 丸括弧の上にあるオプションのコンテンツ。 #[positional] pub annotation: Option, } -/// A horizontal tortoise shell bracket under content, with an optional -/// annotation below. +/// コンテンツの下にある水平方向の亀甲括弧。その下にオプションで注釈ができます。 /// /// ```example /// $ undershell(1 + 2 + ... + 5, "numbers") $ /// ``` #[elem(Mathy)] pub struct UndershellElem { - /// The content above the tortoise shell bracket. + /// 亀甲括弧の上にあるコンテンツ。 #[required] pub body: Content, - /// The optional content below the tortoise shell bracket. + /// 亀甲括弧の下にあるオプションのコンテンツ。 #[positional] pub annotation: Option, } -/// A horizontal tortoise shell bracket over content, with an optional -/// annotation above. +/// コンテンツの上にある水平方向の亀甲括弧。その上にオプションで注釈ができます。 /// /// ```example /// $ overshell(1 + 2 + ... + 5, "numbers") $ /// ``` #[elem(Mathy)] pub struct OvershellElem { - /// The content below the tortoise shell bracket. + /// 亀甲括弧の下にあるコンテンツ。 #[required] pub body: Content, - /// The optional content above the tortoise shell bracket. + /// 亀甲括弧の上にあるオプションのコンテンツ。 #[positional] pub annotation: Option, } diff --git a/docs/reference/groups.yml b/docs/reference/groups.yml index 8738b41fb2..96b50a9d7d 100644 --- a/docs/reference/groups.yml +++ b/docs/reference/groups.yml @@ -49,10 +49,9 @@ "overshell", ] details: | - Delimiters above or below parts of an equation. + 数式の一部の上部または下部の区切り文字。 - The braces and brackets further allow you to add an optional annotation - below or above themselves. + 波括弧や角括弧を用いると、それら自身の上部または下部にオプションの注釈を追加できます。 - name: roots title: Roots diff --git a/website/translation-status.json b/website/translation-status.json index d98817cdda..cec5976569 100644 --- a/website/translation-status.json +++ b/website/translation-status.json @@ -94,7 +94,7 @@ "/docs/reference/math/stretch/": "translated", "/docs/reference/math/styles/": "translated", "/docs/reference/math/op/": "translated", - "/docs/reference/math/underover/": "untranslated", + "/docs/reference/math/underover/": "translated", "/docs/reference/math/variants/": "translated", "/docs/reference/math/vec/": "translated", "/docs/reference/symbols/": "untranslated",