Skip to content

Commit 305c752

Browse files
committed
/docs/reference/text/underlineの翻訳
1 parent c0bb4de commit 305c752

File tree

2 files changed

+11
-14
lines changed

2 files changed

+11
-14
lines changed

crates/typst-library/src/text/deco.rs

Lines changed: 10 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -7,18 +7,17 @@ use crate::layout::{Abs, Corners, Length, Rel, Sides};
77
use crate::text::{BottomEdge, BottomEdgeMetric, TextElem, TopEdge, TopEdgeMetric};
88
use 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)]
1717
pub 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
}

website/translation-status.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@
7575
"/docs/reference/text/sub/": "untranslated",
7676
"/docs/reference/text/super/": "untranslated",
7777
"/docs/reference/text/text/": "untranslated",
78-
"/docs/reference/text/underline/": "untranslated",
78+
"/docs/reference/text/underline/": "translated",
7979
"/docs/reference/text/upper/": "untranslated",
8080
"/docs/reference/math/": "untranslated",
8181
"/docs/reference/math/accent/": "translated",

0 commit comments

Comments
 (0)