@@ -3,32 +3,30 @@ use crate::engine::Engine;
33use crate :: foundations:: { elem, Content , Packed , Show , StyleChain } ;
44use crate :: text:: TextElem ;
55
6- /// Displays text in small capitals.
6+ /// スモールキャピタルでテキストを表示。
77///
8- /// # Example
8+ /// # 例
99/// ```example
1010/// Hello \
1111/// #smallcaps[Hello]
1212/// ```
1313///
14- /// # Smallcaps fonts
15- /// By default, this uses the `smcp` and `c2sc` OpenType features on the font.
16- /// Not all fonts support these features. Sometimes, smallcaps are part of a
17- /// dedicated font. This is, for example, the case for the _Latin Modern_ family
18- /// of fonts. In those cases, you can use a show-set rule to customize the
19- /// appearance of the text in smallcaps:
14+ /// # スモールキャピタルのフォント
15+ /// デフォルトでは、この関数はフォントのOpenTypeフィーチャーの `smcp`および `c2sc`を使用します。
16+ /// すべてのフォントがこれらのフィーチャーをサポートしているわけではありません。
17+ /// スモールキャピタルは専用のフォントとして提供されることがあります。
18+ /// この例として _Latin Modern_ フォントファミリーが該当します。
19+ /// この場合、show-setルールを用いてスモールキャピタルでのテキストの見た目がカスタマイズできます。
2020///
2121/// ```typ
2222/// #show smallcaps: set text(font: "Latin Modern Roman Caps")
2323/// ```
2424///
25- /// In the future, this function will support synthesizing smallcaps from normal
26- /// letters, but this is not yet implemented.
25+ /// 将来的に、この関数は標準サイズの文字からスモールキャピタルの文字を合成することをサポートする予定ですが、まだ実装されていません。
2726///
28- /// # Smallcaps headings
29- /// You can use a [show rule]($styling/#show-rules) to apply smallcaps
30- /// formatting to all your headings. In the example below, we also center-align
31- /// our headings and disable the standard bold font.
27+ /// # スモールキャピタルの見出し
28+ /// [showルール]($styling/#show-rules)を用いて見出しすべてにスモールキャピタルを適用できます。
29+ /// 以下の例では、見出しを中央揃えにし、通常の太字フォントの無効化も行っています。
3230///
3331/// ```example
3432/// #set par(justify: true)
@@ -45,18 +43,17 @@ use crate::text::TextElem;
4543/// ```
4644#[ elem( title = "Small Capitals" , Show ) ]
4745pub struct SmallcapsElem {
48- /// Whether to turn uppercase letters into small capitals as well.
46+ /// 大文字も同様にスモールキャピタルに変更するかどうか。
4947 ///
50- /// Unless overridden by a show rule, this enables the `c2sc` OpenType
51- /// feature.
48+ /// showルールで上書きされない限り、これはOpenTypeフィーチャーの`c2sc`を有効化します。
5249 ///
5350 /// ```example
5451 /// #smallcaps(all: true)[UNICEF] is an
5552 /// agency of #smallcaps(all: true)[UN].
5653 /// ```
5754 #[ default( false ) ]
5855 pub all : bool ,
59- /// The content to display in small capitals.
56+ /// スモールキャピタルで表示するコンテンツ。
6057 #[ required]
6158 pub body : Content ,
6259}
0 commit comments