From 2f17150908542f9e5911c5ccd8b3e88284580821 Mon Sep 17 00:00:00 2001 From: ultimatile Date: Wed, 6 Aug 2025 22:41:34 +0900 Subject: [PATCH 1/2] =?UTF-8?q?`/docs/reference/math/styles`=E3=81=AE?= =?UTF-8?q?=E7=BF=BB=E8=A8=B3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- crates/typst-library/src/math/style.rs | 14 +++++++------- docs/reference/groups.yml | 5 ++--- website/translation-status.json | 2 +- 3 files changed, 10 insertions(+), 11 deletions(-) diff --git a/crates/typst-library/src/math/style.rs b/crates/typst-library/src/math/style.rs index f3d28f2a96..b1bc51855c 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 0c052ad298..e8205f9c1b 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 641c3d901b..511377cd51 100644 --- a/website/translation-status.json +++ b/website/translation-status.json @@ -92,7 +92,7 @@ "/docs/reference/math/roots/": "translated", "/docs/reference/math/sizes/": "untranslated", "/docs/reference/math/stretch/": "untranslated", - "/docs/reference/math/styles/": "untranslated", + "/docs/reference/math/styles/": "translated", "/docs/reference/math/op/": "untranslated", "/docs/reference/math/underover/": "untranslated", "/docs/reference/math/variants/": "untranslated", From 667cf0beca1050dfbe9989dea5b33ae8f9021638 Mon Sep 17 00:00:00 2001 From: ultimatile Date: Fri, 15 Aug 2025 01:54:13 +0900 Subject: [PATCH 2/2] Update docs/reference/groups.yml Co-authored-by: Shunsuke KIMURA --- docs/reference/groups.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/reference/groups.yml b/docs/reference/groups.yml index e8205f9c1b..d9e2b12deb 100644 --- a/docs/reference/groups.yml +++ b/docs/reference/groups.yml @@ -20,7 +20,7 @@ details: | 数式中の別字体。 - 数式フォントは各文字に対して複数の異体字を備えているため、これらの関数は[`text`]関数とは異なります。 + 数式フォントは各文字に対して複数の異体字を持つため、これらの関数は[`text`]関数とは異なります。 - name: sizes title: Sizes