Skip to content

Commit 63f045e

Browse files
ultimatilekimushun11013w36zj6
authored
/docs/reference/math/stylesの翻訳 (#246)
Co-authored-by: Shunsuke KIMURA <[email protected]> Co-authored-by: 3w36zj6 <[email protected]>
1 parent bd05fb2 commit 63f045e

File tree

3 files changed

+10
-11
lines changed

3 files changed

+10
-11
lines changed

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

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,38 @@
11
use crate::foundations::{func, Cast, Content, Smart};
22
use crate::math::EquationElem;
33

4-
/// Bold font style in math.
4+
/// 数式中の太字フォントスタイル。
55
///
66
/// ```example
77
/// $ bold(A) := B^+ $
88
/// ```
99
#[func(keywords = ["mathbf"])]
1010
pub fn bold(
11-
/// The content to style.
11+
/// スタイルを適用するコンテンツ。
1212
body: Content,
1313
) -> Content {
1414
body.styled(EquationElem::set_bold(true))
1515
}
1616

17-
/// Upright (non-italic) font style in math.
17+
/// 数式中の立体(非斜体)フォントスタイル。
1818
///
1919
/// ```example
2020
/// $ upright(A) != A $
2121
/// ```
2222
#[func(keywords = ["mathup"])]
2323
pub fn upright(
24-
/// The content to style.
24+
/// スタイルを適用するコンテンツ。
2525
body: Content,
2626
) -> Content {
2727
body.styled(EquationElem::set_italic(Smart::Custom(false)))
2828
}
2929

30-
/// Italic font style in math.
30+
/// 数式中の斜体フォントスタイル。
3131
///
32-
/// For roman letters and greek lowercase letters, this is already the default.
32+
/// これがローマ字とギリシャ文字の小文字のデフォルトです。
3333
#[func(keywords = ["mathit"])]
3434
pub fn italic(
35-
/// The content to style.
35+
/// スタイルを適用するコンテンツ。
3636
body: Content,
3737
) -> Content {
3838
body.styled(EquationElem::set_italic(Smart::Custom(true)))

docs/reference/groups.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,9 @@
1818
path: ["math"]
1919
filter: ["upright", "italic", "bold"]
2020
details: |
21-
Alternate letterforms within formulas.
21+
数式中の別字体。
2222
23-
These functions are distinct from the [`text`] function because math fonts
24-
contain multiple variants of each letter.
23+
数式フォントは各文字に対して複数の異体字を持つため、これらの関数は[`text`]関数とは異なります。
2524
2625
- name: sizes
2726
title: Sizes

website/translation-status.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@
9292
"/docs/reference/math/roots/": "translated",
9393
"/docs/reference/math/sizes/": "translated",
9494
"/docs/reference/math/stretch/": "translated",
95-
"/docs/reference/math/styles/": "untranslated",
95+
"/docs/reference/math/styles/": "translated",
9696
"/docs/reference/math/op/": "translated",
9797
"/docs/reference/math/underover/": "untranslated",
9898
"/docs/reference/math/variants/": "untranslated",

0 commit comments

Comments
 (0)