diff --git a/crates/typst-library/src/math/style.rs b/crates/typst-library/src/math/style.rs index 1f84076ca3..925ce8cec2 100644 --- a/crates/typst-library/src/math/style.rs +++ b/crates/typst-library/src/math/style.rs @@ -1,38 +1,38 @@ use crate::foundations::{func, Cast, Content, Smart}; use crate::math::EquationElem; -/// Bold font style in math. +/// 数式中の太字フォントスタイル。 /// /// ```example /// $ bold(A) := B^+ $ /// ``` #[func(keywords = ["mathbf"])] pub fn bold( - /// The content to style. + /// スタイルを適用するコンテンツ。 body: Content, ) -> Content { body.styled(EquationElem::set_bold(true)) } -/// Upright (non-italic) font style in math. +/// 数式中の立体(非斜体)フォントスタイル。 /// /// ```example /// $ upright(A) != A $ /// ``` #[func(keywords = ["mathup"])] pub fn upright( - /// The content to style. + /// スタイルを適用するコンテンツ。 body: Content, ) -> Content { body.styled(EquationElem::set_italic(Smart::Custom(false))) } -/// Italic font style in math. +/// 数式中の斜体フォントスタイル。 /// -/// For roman letters and greek lowercase letters, this is already the default. +/// これがローマ字とギリシャ文字の小文字のデフォルトです。 #[func(keywords = ["mathit"])] pub fn italic( - /// The content to style. + /// スタイルを適用するコンテンツ。 body: Content, ) -> Content { body.styled(EquationElem::set_italic(Smart::Custom(true))) diff --git a/docs/reference/groups.yml b/docs/reference/groups.yml index 1886e2748f..2554ef4cc5 100644 --- a/docs/reference/groups.yml +++ b/docs/reference/groups.yml @@ -18,10 +18,9 @@ path: ["math"] filter: ["upright", "italic", "bold"] details: | - Alternate letterforms within formulas. + 数式中の別字体。 - These functions are distinct from the [`text`] function because math fonts - contain multiple variants of each letter. + 数式フォントは各文字に対して複数の異体字を持つため、これらの関数は[`text`]関数とは異なります。 - name: sizes title: Sizes diff --git a/website/translation-status.json b/website/translation-status.json index 63cd9215d7..89354d8bb2 100644 --- a/website/translation-status.json +++ b/website/translation-status.json @@ -92,7 +92,7 @@ "/docs/reference/math/roots/": "translated", "/docs/reference/math/sizes/": "translated", "/docs/reference/math/stretch/": "translated", - "/docs/reference/math/styles/": "untranslated", + "/docs/reference/math/styles/": "translated", "/docs/reference/math/op/": "translated", "/docs/reference/math/underover/": "untranslated", "/docs/reference/math/variants/": "untranslated",