From 37a9fd7effeb7980c5356fb873de1b998dfba28a Mon Sep 17 00:00:00 2001 From: ultimatile Date: Fri, 8 May 2026 01:36:27 +0900 Subject: [PATCH 1/3] =?UTF-8?q?`/docs/reference/math/variants/`=E3=81=AE?= =?UTF-8?q?=E5=86=8D=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 | 22 ++++++++++------------ website/translation-status.json | 2 +- 2 files changed, 11 insertions(+), 13 deletions(-) diff --git a/crates/typst-library/src/math/style.rs b/crates/typst-library/src/math/style.rs index c12f196a58..4866ff604e 100644 --- a/crates/typst-library/src/math/style.rs +++ b/crates/typst-library/src/math/style.rs @@ -70,32 +70,30 @@ pub fn sans( /// Let $cal(P)$ be the set of ... /// ``` /// -/// This is the default calligraphic/script style for most math fonts. See -/// [`scr`]($math.scr) for more on how to get the other style (roundhand). +/// これは大半の数式フォントにおけるデフォルトのカリグラフィー/スクリプトスタイルです。 +/// もう一方のスタイル(roundhand)の指定方法については[`scr`]($math.scr)を参照してください。 #[func(title = "Calligraphic", keywords = ["mathcal", "chancery"])] pub fn cal( - /// The content to style. + /// スタイルを適用するコンテンツ。 body: Content, ) -> Content { body.set(EquationElem::variant, Some(MathVariant::Chancery)) } -/// Script (roundhand) font style in math. +/// 数式中のスクリプト(roundhand)フォントスタイル。 /// /// ```example /// $scr(L)$ is not the set of linear /// maps $cal(L)$. /// ``` /// -/// There are two ways that fonts can support differentiating `cal` and `scr`. -/// The first is using Unicode variation sequences. This works out of the box -/// in Typst, however only a few math fonts currently support this. +/// フォントが`cal`と`scr`を区別できるようにする方法は2つあります。 +/// 1つはUnicodeの異体シーケンスを用いる方法です。 +/// これはTypstでそのまま動作しますが、現時点でこの方式をサポートする数式フォントはわずかです。 /// -/// The other way is using [font features]($text.features). For example, the -/// roundhand style might be available in a font through the -/// _[stylistic set]($text.stylistic-set) 1_ (`ss01`) feature. To use it in -/// Typst, you could then define your own version of `scr` like in the example -/// below. +/// もう1つは[フォントフィーチャー]($text.features)を用いる方法です。 +/// 例えば、roundhandスタイルがフォントの_[スタイリスティックセット]($text.stylistic-set)1_(`ss01`)フィーチャーを通じて利用できる場合があります。 +/// 以下の例のように独自の`scr`関数を定義するとTypstで使用できます。 /// /// ```example:"Recreation using stylistic set 1" /// #let scr(it) = text( diff --git a/website/translation-status.json b/website/translation-status.json index ae55208954..07cc6749cb 100644 --- a/website/translation-status.json +++ b/website/translation-status.json @@ -97,7 +97,7 @@ "/docs/reference/math/styles/": "translated", "/docs/reference/math/op/": "translated", "/docs/reference/math/underover/": "translated", - "/docs/reference/math/variants/": "partially_translated", + "/docs/reference/math/variants/": "translated", "/docs/reference/math/vec/": "translated", "/docs/reference/symbols/": "untranslated", "/docs/reference/symbols/sym/": "untranslated", From c8c61bf943e7989f9c398683b18eb3c784bd4372 Mon Sep 17 00:00:00 2001 From: ultimatile Date: Wed, 10 Jun 2026 04:05:27 +0900 Subject: [PATCH 2/3] Update crates/typst-library/src/math/style.rs --- crates/typst-library/src/math/style.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/typst-library/src/math/style.rs b/crates/typst-library/src/math/style.rs index 4866ff604e..e4740fc31c 100644 --- a/crates/typst-library/src/math/style.rs +++ b/crates/typst-library/src/math/style.rs @@ -88,14 +88,14 @@ pub fn cal( /// ``` /// /// フォントが`cal`と`scr`を区別できるようにする方法は2つあります。 -/// 1つはUnicodeの異体シーケンスを用いる方法です。 +/// 1つはUnicodeの字形指示列を用いる方法です。 /// これはTypstでそのまま動作しますが、現時点でこの方式をサポートする数式フォントはわずかです。 /// /// もう1つは[フォントフィーチャー]($text.features)を用いる方法です。 /// 例えば、roundhandスタイルがフォントの_[スタイリスティックセット]($text.stylistic-set)1_(`ss01`)フィーチャーを通じて利用できる場合があります。 /// 以下の例のように独自の`scr`関数を定義するとTypstで使用できます。 /// -/// ```example:"Recreation using stylistic set 1" +/// ```example:"スタイリスティックセット1による再現" /// #let scr(it) = text( /// stylistic-set: 1, /// $cal(it)$, From 4fa32f7aeb41de1a4be472291a223a1055b7b9be Mon Sep 17 00:00:00 2001 From: ultimatile Date: Wed, 10 Jun 2026 21:48:14 +0900 Subject: [PATCH 3/3] Update docs/glossary.md --- docs/glossary.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/glossary.md b/docs/glossary.md index 22f801d522..fde5428445 100644 --- a/docs/glossary.md +++ b/docs/glossary.md @@ -84,3 +84,5 @@ description: | | coverage | カバレッジ | フォントの[カバレッジ]($text.font)設定 | | variable font | バリアブルフォント | 可変フォント、現在未サポート | | grapheme cluster | 書記素クラスター | 1つの文字として認識される文字の組み合わせ | +| variation sequence | 字形指示列 | 基底文字と字形選択子の並び。訳語は[JIS X 0221(国際符号化文字集合(UCS))](https://www.jisc.go.jp/app/jis/general/GnrJISNumberNameSearchList?show&jisStdNo=X0221)に準拠 | +| variation selector | 字形選択子 | 直前の文字の字形を指定する制御用文字。訳語は[JIS X 0221(国際符号化文字集合(UCS))](https://www.jisc.go.jp/app/jis/general/GnrJISNumberNameSearchList?show&jisStdNo=X0221)に準拠 |