@@ -7,18 +7,17 @@ use crate::layout::{Abs, Corners, Length, Rel, Sides};
77use crate :: text:: { BottomEdge , BottomEdgeMetric , TextElem , TopEdge , TopEdgeMetric } ;
88use crate :: visualize:: { Color , FixedStroke , Paint , Stroke } ;
99
10- /// Underlines text.
10+ /// テキスト下部に線を追加。
1111///
12- /// # Example
12+ /// # 例
1313/// ```example
1414/// This is #underline[important].
1515/// ```
1616#[ elem( Show ) ]
1717pub struct UnderlineElem {
18- /// How to [stroke] the line.
18+ /// 線の [stroke]をどうするか。
1919 ///
20- /// If set to `{auto}`, takes on the text's color and a thickness defined in
21- /// the current font.
20+ /// `{auto}`に設定された場合、現在のテキストフォントで使用されているテキストの太さと色が使用されます。
2221 ///
2322 /// ```example
2423 /// Take #underline(
@@ -31,8 +30,8 @@ pub struct UnderlineElem {
3130 #[ fold]
3231 pub stroke : Smart < Stroke > ,
3332
34- /// The position of the line relative to the baseline, read from the font
35- /// tables if `{auto}`.
33+ /// ベースラインを基準とする線の位置。
34+ /// `{auto}`の場合、フォントテーブルから読まれます。
3635 ///
3736 /// ```example
3837 /// #underline(offset: 5pt)[
@@ -42,8 +41,7 @@ pub struct UnderlineElem {
4241 #[ resolve]
4342 pub offset : Smart < Length > ,
4443
45- /// The amount by which to extend the line beyond (or within if negative)
46- /// the content.
44+ /// コンテンツの外側に(負の値のときは内側に)線を左右に拡張する量。
4745 ///
4846 /// ```example
4947 /// #align(center,
@@ -53,8 +51,7 @@ pub struct UnderlineElem {
5351 #[ resolve]
5452 pub extent : Length ,
5553
56- /// Whether the line skips sections in which it would collide with the
57- /// glyphs.
54+ /// 字形と衝突する線の部分を省略するかどうか。
5855 ///
5956 /// ```example
6057 /// This #underline(evade: true)[is great].
@@ -63,7 +60,7 @@ pub struct UnderlineElem {
6360 #[ default( true ) ]
6461 pub evade : bool ,
6562
66- /// Whether the line is placed behind the content it underlines.
63+ /// 線をコンテンツの背後に置くかどうか。
6764 ///
6865 /// ```example
6966 /// #set underline(stroke: (thickness: 1em, paint: maroon, cap: "round"))
@@ -73,7 +70,7 @@ pub struct UnderlineElem {
7370 #[ default( false ) ]
7471 pub background : bool ,
7572
76- /// The content to underline.
73+ /// 下部に線を置くコンテンツ。
7774 #[ required]
7875 pub body : Content ,
7976}
0 commit comments