Skip to content

Commit a8df441

Browse files
committed
/docs/reference/text/superの翻訳
1 parent bd23a5f commit a8df441

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
@@ -63,21 +63,20 @@ impl Show for Packed<SubElem> {
6363
}
6464
}
6565

66-
/// Renders text in superscript.
66+
/// テキストを上付き文字でレンダリング。
6767
///
68-
/// The text is rendered smaller and its baseline is raised.
68+
/// テキストは小さくレンダリングされ、ベースラインは高くなります。
6969
///
70-
/// # Example
70+
/// #
7171
/// ```example
7272
/// 1#super[st] try!
7373
/// ```
7474
#[elem(title = "Superscript", Show)]
7575
pub struct SuperElem {
76-
/// Whether to prefer the dedicated superscript characters of the font.
76+
/// フォントの上付き文字専用の字形を優先するかどうか。
7777
///
78-
/// If this is enabled, Typst first tries to transform the text to
79-
/// superscript codepoints. If that fails, it falls back to rendering
80-
/// raised and shrunk normal letters.
78+
/// 有効化された場合、Typstは最初にテキストを上付き文字のコードポイントに変換できるか試します。
79+
/// 失敗した場合は、通常の文字を縮小し、位置を上げる挙動にフォールバックします。
8180
///
8281
/// ```example
8382
/// N#super(typographic: true)[1]
@@ -86,19 +85,17 @@ pub struct SuperElem {
8685
#[default(true)]
8786
pub typographic: bool,
8887

89-
/// The baseline shift for synthetic superscripts. Does not apply if
90-
/// `typographic` is true and the font has superscript codepoints for the
91-
/// given `body`.
88+
/// 上付き文字の合成に用いるベースラインのシフト。
89+
/// `typographic`がtrueかつフォントが与えられた`body`に対して上付き文字のコードポイントを持っている場合は使用しないでください。
9290
#[default(Em::new(-0.5).into())]
9391
pub baseline: Length,
9492

95-
/// The font size for synthetic superscripts. Does not apply if
96-
/// `typographic` is true and the font has superscript codepoints for the
97-
/// given `body`.
93+
/// 上付き文字の合成に用いるフォントの大きさ。
94+
/// `typographic`がtrueかつフォントが与えられた`body`に対して上付き文字のコードポイントを持っている場合は使用しないでください。
9895
#[default(TextSize(Em::new(0.6).into()))]
9996
pub size: TextSize,
10097

101-
/// The text to display in superscript.
98+
/// 上付き文字で表示するテキスト。
10299
#[required]
103100
pub body: Content,
104101
}

website/translation-status.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@
7373
"/docs/reference/text/smartquote/": "untranslated",
7474
"/docs/reference/text/strike/": "translated",
7575
"/docs/reference/text/sub/": "translated",
76-
"/docs/reference/text/super/": "untranslated",
76+
"/docs/reference/text/super/": "translated",
7777
"/docs/reference/text/text/": "untranslated",
7878
"/docs/reference/text/underline/": "translated",
7979
"/docs/reference/text/upper/": "translated",

0 commit comments

Comments
 (0)