Skip to content

Commit 23bfcf8

Browse files
docs/reference/model/emph/の翻訳 (#95)
Co-authored-by: Shunsuke KIMURA <[email protected]>
1 parent 9887fbf commit 23bfcf8

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

crates/typst/src/model/emph.rs

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,14 @@ use crate::engine::Engine;
33
use crate::foundations::{elem, Content, Packed, Show, StyleChain};
44
use crate::text::{ItalicToggle, TextElem};
55

6-
/// Emphasizes content by toggling italics.
6+
/// イタリック体への切り替えによるコンテンツの強調。
77
///
8-
/// - If the current [text style]($text.style) is `{"normal"}`, this turns it
9-
/// into `{"italic"}`.
10-
/// - If it is already `{"italic"}` or `{"oblique"}`, it turns it back to
11-
/// `{"normal"}`.
8+
/// - 現在の[テキストスタイル]($text.style)`{"normal"}`の場合、これを
9+
/// `{"italic"}`に変更します。
10+
/// - 現在のテキストスタイルが既に`{"italic"}`あるいは`{"oblique"}`の場合、
11+
/// `{"normal"}`に戻します。
1212
///
13-
/// # Example
13+
/// #
1414
/// ```example
1515
/// This is _emphasized._ \
1616
/// This is #emph[too.]
@@ -22,13 +22,13 @@ use crate::text::{ItalicToggle, TextElem};
2222
/// This is _emphasized_ differently.
2323
/// ```
2424
///
25-
/// # Syntax
26-
/// This function also has dedicated syntax: To emphasize content, simply
27-
/// enclose it in underscores (`_`). Note that this only works at word
28-
/// boundaries. To emphasize part of a word, you have to use the function.
25+
/// # 構文
26+
/// この関数には専用の構文もあります。
27+
/// コンテンツを強調するには、単にアンダースコア(`_`)で囲みます。ただし、これは単語の区切りにおいてのみ機能します。
28+
/// 単語の一部を強調する場合は、この関数を使用する必要があります。
2929
#[elem(title = "Emphasis", keywords = ["italic"], Show)]
3030
pub struct EmphElem {
31-
/// The content to emphasize.
31+
/// 強調するコンテンツ。
3232
#[required]
3333
pub body: Content,
3434
}

0 commit comments

Comments
 (0)