Skip to content

Commit bd23a5f

Browse files
committed
/docs/reference/text/subの翻訳
1 parent 7550dfa commit bd23a5f

File tree

2 files changed

+12
-15
lines changed

2 files changed

+12
-15
lines changed

crates/typst-library/src/text/shift.rs

Lines changed: 11 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -7,21 +7,20 @@ use crate::layout::{Em, Length};
77
use crate::text::{variant, SpaceElem, TextElem, TextSize};
88
use crate::World;
99

10-
/// Renders text in subscript.
10+
/// テキストを下付き文字でレンダリング。
1111
///
12-
/// The text is rendered smaller and its baseline is lowered.
12+
/// テキストは小さくレンダリングされ、ベースラインは低くなります。
1313
///
14-
/// # Example
14+
/// #
1515
/// ```example
1616
/// Revenue#sub[yearly]
1717
/// ```
1818
#[elem(title = "Subscript", Show)]
1919
pub struct SubElem {
20-
/// Whether to prefer the dedicated subscript characters of the font.
20+
/// フォントの下付き文字専用の字形を優先するかどうか。
2121
///
22-
/// If this is enabled, Typst first tries to transform the text to subscript
23-
/// codepoints. If that fails, it falls back to rendering lowered and shrunk
24-
/// normal letters.
22+
/// 有効化された場合、Typstは最初にテキストを下付き文字のコードポイントに変換できるか試します。
23+
/// 失敗した場合は、通常の文字を縮小し、位置を下げる挙動にフォールバックします。
2524
///
2625
/// ```example
2726
/// N#sub(typographic: true)[1]
@@ -30,19 +29,17 @@ pub struct SubElem {
3029
#[default(true)]
3130
pub typographic: bool,
3231

33-
/// The baseline shift for synthetic subscripts. Does not apply if
34-
/// `typographic` is true and the font has subscript codepoints for the
35-
/// given `body`.
32+
/// 下付き文字の合成に用いるベースラインのシフト。
33+
/// `typographic`がtrueかつフォントが与えられた`body`に対して下付き文字のコードポイントを持っている場合は使用しないでください。
3634
#[default(Em::new(0.2).into())]
3735
pub baseline: Length,
3836

39-
/// The font size for synthetic subscripts. Does not apply if
40-
/// `typographic` is true and the font has subscript codepoints for the
41-
/// given `body`.
37+
/// 下付き文字の合成に用いるフォントの大きさ。
38+
/// `typographic`がtrueかつフォントが与えられた`body`に対して下付き文字のコードポイントを持っている場合は使用しないでください。
4239
#[default(TextSize(Em::new(0.6).into()))]
4340
pub size: TextSize,
4441

45-
/// The text to display in subscript.
42+
/// 下付き文字で表示するテキスト。
4643
#[required]
4744
pub body: Content,
4845
}

website/translation-status.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@
7272
"/docs/reference/text/smallcaps/": "translated",
7373
"/docs/reference/text/smartquote/": "untranslated",
7474
"/docs/reference/text/strike/": "translated",
75-
"/docs/reference/text/sub/": "untranslated",
75+
"/docs/reference/text/sub/": "translated",
7676
"/docs/reference/text/super/": "untranslated",
7777
"/docs/reference/text/text/": "untranslated",
7878
"/docs/reference/text/underline/": "translated",

0 commit comments

Comments
 (0)