@@ -93,18 +93,17 @@ impl Show for Packed<UnderlineElem> {
9393 }
9494}
9595
96- /// Adds a line over text.
96+ /// テキスト上部に線を追加。
9797///
98- /// # Example
98+ /// # 例
9999/// ```example
100100/// #overline[A line over text.]
101101/// ```
102102#[ elem( Show ) ]
103103pub struct OverlineElem {
104- /// How to [stroke] the line.
104+ /// 線の [stroke]をどうするか。
105105 ///
106- /// If set to `{auto}`, takes on the text's color and a thickness defined in
107- /// the current font.
106+ /// `{auto}`に設定された場合、現在のテキストフォントで使用されているテキストの太さと色が使用されます。
108107 ///
109108 /// ```example
110109 /// #set text(fill: olive)
@@ -118,8 +117,8 @@ pub struct OverlineElem {
118117 #[ fold]
119118 pub stroke : Smart < Stroke > ,
120119
121- /// The position of the line relative to the baseline. Read from the font
122- /// tables if `{auto}`.
120+ /// ベースラインを基準とする線の位置。
121+ /// `{auto}`の場合、フォントテーブルから読まれます。
123122 ///
124123 /// ```example
125124 /// #overline(offset: -1.2em)[
@@ -129,8 +128,7 @@ pub struct OverlineElem {
129128 #[ resolve]
130129 pub offset : Smart < Length > ,
131130
132- /// The amount by which to extend the line beyond (or within if negative)
133- /// the content.
131+ /// コンテンツの外側に(負の値のときは内側に)線を左右に拡張する量。
134132 ///
135133 /// ```example
136134 /// #set overline(extent: 4pt)
@@ -140,8 +138,7 @@ pub struct OverlineElem {
140138 #[ resolve]
141139 pub extent : Length ,
142140
143- /// Whether the line skips sections in which it would collide with the
144- /// glyphs.
141+ /// 字形と衝突する線の部分を省略するかどうか。
145142 ///
146143 /// ```example
147144 /// #overline(
@@ -155,7 +152,7 @@ pub struct OverlineElem {
155152 #[ default( true ) ]
156153 pub evade : bool ,
157154
158- /// Whether the line is placed behind the content it overlines.
155+ /// 線をコンテンツの背後に置くかどうか。
159156 ///
160157 /// ```example
161158 /// #set overline(stroke: (thickness: 1em, paint: maroon, cap: "round"))
@@ -165,7 +162,7 @@ pub struct OverlineElem {
165162 #[ default( false ) ]
166163 pub background : bool ,
167164
168- /// The content to add a line over.
165+ /// 上部に線を置くコンテンツ。
169166 #[ required]
170167 pub body : Content ,
171168}
0 commit comments