File tree Expand file tree Collapse file tree 2 files changed +11
-13
lines changed
crates/typst-library/src/text Expand file tree Collapse file tree 2 files changed +11
-13
lines changed Original file line number Diff line number Diff line change @@ -2,29 +2,27 @@ use typst_utils::singleton;
22
33use crate :: foundations:: { elem, Content , NativeElement } ;
44
5- /// Inserts a line break.
5+ /// 改行の挿入。
66///
7- /// Advances the paragraph to the next line. A single trailing line break at the
8- /// end of a paragraph is ignored, but more than one creates additional empty
9- /// lines.
7+ /// 段落を次の行へ進めます。
8+ /// 段落の終わりにある単一の改行は無視されますが、それより多くある場合は空行が作成されます。
109///
11- /// # Example
10+ /// # 例
1211/// ```example
1312/// *Date:* 26.12.2022 \
1413/// *Topic:* Infrastructure Test \
1514/// *Severity:* High \
1615/// ```
1716///
18- /// # Syntax
19- /// This function also has dedicated syntax: To insert a line break, simply write
20- /// a backslash followed by whitespace. This always creates an unjustified
21- /// break.
17+ /// # 構文
18+ /// この関数は専用の構文も持っています。
19+ /// 改行を挿入するには、単にバックスラッシュと空白を書いてください。
20+ /// これは常に両端揃えではない改行を作成します。
2221#[ elem( title = "Line Break" ) ]
2322pub struct LinebreakElem {
24- /// Whether to justify the line before the break.
23+ /// 改行の前の行を両端揃えするかどうか。
2524 ///
26- /// This is useful if you found a better line break opportunity in your
27- /// justified text than Typst did.
25+ /// これは、Typstが両端揃え行ったテキストよりも良い改行位置が見つかった場合に便利です。
2826 ///
2927 /// ```example
3028 /// #set par(justify: true)
Original file line number Diff line number Diff line change 6464 "/docs/reference/model/terms/" : " untranslated" ,
6565 "/docs/reference/text/" : " untranslated" ,
6666 "/docs/reference/text/highlight/" : " untranslated" ,
67- "/docs/reference/text/linebreak/" : " untranslated " ,
67+ "/docs/reference/text/linebreak/" : " translated " ,
6868 "/docs/reference/text/lorem/" : " untranslated" ,
6969 "/docs/reference/text/lower/" : " untranslated" ,
7070 "/docs/reference/text/overline/" : " untranslated" ,
You can’t perform that action at this time.
0 commit comments