@@ -11,10 +11,10 @@ use crate::layout::{BlockElem, Em, Length, VElem};
1111use crate :: model:: { ParElem , ParbreakElem } ;
1212use crate :: text:: TextElem ;
1313
14- /// A bullet list.
14+ /// 箇条書きリスト。
1515///
16- /// Displays a sequence of items vertically, with each item introduced by a
17- /// marker.
16+ /// 各項目の先頭にマーカーを付け、
17+ /// 一連の項目を縦に並べて表示します。
1818///
1919/// # Example
2020/// ```example
@@ -37,24 +37,24 @@ use crate::text::TextElem;
3737/// )
3838/// ```
3939///
40- /// # Syntax
41- /// This functions also has dedicated syntax: Start a line with a hyphen,
42- /// followed by a space to create a list item. A list item can contain multiple
43- /// paragraphs and other block-level content. All content that is indented
44- /// more than an item's marker becomes part of that item.
40+ /// # 構文
41+ /// この関数には専用の構文もあります。
42+ /// 行頭にハイフンとスペースを置くことでリスト項目を作成します。
43+ /// リスト項目には複数の段落や、他のブロックレベルコンテンツを含めることができます。
44+ /// リスト項目の記号よりも深く字下げされた全てのコンテンツは、そのリスト項目の一部になります。
4545#[ elem( scope, title = "Bullet List" , Show ) ]
4646pub struct ListElem {
47- /// Defines the default [spacing]($list.spacing) of the list. If it is
48- /// `{false}`, the items are spaced apart with
49- /// [paragraph spacing ]($par.spacing). If it is `{true}`, they use
50- /// [paragraph leading]($par.leading) instead. This makes the list more
51- /// compact, which can look better if the items are short.
47+ /// リストのデフォルトの [spacing]($list.spacing)を定義します。
48+ /// これが `{false}`の場合、 項目の間隔は[paragraph spacing]($par.spacing)によって決まります。
49+ /// `{true}`の場合、代わりに [paragraph leading ]($par.leading)が使用されます。
50+ /// これによりリストがよりコンパクトになり、
51+ /// 各項目が短い場合に見栄えが良くなります。
5252 ///
53- /// In markup mode, the value of this parameter is determined based on
54- /// whether items are separated with a blank line. If items directly follow
55- /// each other, this is set to `{true}`; if items are separated by a blank
56- /// line, this is set to `{false}`. The markup-defined tightness cannot be
57- /// overridden with set rules.
53+ /// マークアップモードでは、
54+ /// この引数の値は項目が空行で区切られているかどうかに基づいて決定されます。
55+ /// 項目間に空行がなく連続している場合、この値は `{true}`に設定されますが、
56+ /// 項目間が空行で区切られている場合は `{false}`に設定されます。
57+ /// マークアップで定義された間隔はsetルールで上書きすることはできません。
5858 ///
5959 /// ```example
6060 /// - If a list has a lot of text, and
@@ -67,13 +67,13 @@ pub struct ListElem {
6767 #[ default( true ) ]
6868 pub tight : bool ,
6969
70- /// The marker which introduces each item.
70+ /// 各項目の先頭に付けるマーカー。
7171 ///
72- /// Instead of plain content, you can also pass an array with multiple
73- /// markers that should be used for nested lists. If the list nesting depth
74- /// exceeds the number of markers, the markers are cycled. For total
75- /// control, you may pass a function that maps the list's nesting depth
76- /// (starting from `{0}`) to a desired marker.
72+ /// 単純なコンテンツの代わりに、ネストされたリストに使用する、
73+ /// 複数のマーカーを持つ配列を渡すこともできます。
74+ /// リストのネストの深さがマーカーの数を超えた場合、使用されるマーカーは循環します。
75+ /// 完全に制御したい場合は、
76+ /// リストのネストの深さ( `{0}`から開始する)に応じて、使用するマーカーを決める関数を渡すこともできます。
7777 ///
7878 /// ```example
7979 /// #set list(marker: [--])
@@ -97,26 +97,26 @@ pub struct ListElem {
9797 ] ) ) ]
9898 pub marker : ListMarker ,
9999
100- /// The indent of each item.
100+ /// 各項目のインデント。
101101 #[ resolve]
102102 pub indent : Length ,
103103
104- /// The spacing between the marker and the body of each item.
104+ /// 各項目のマーカーと本文の間隔を指定します。
105105 #[ resolve]
106106 #[ default( Em :: new( 0.5 ) . into( ) ) ]
107107 pub body_indent : Length ,
108108
109- /// The spacing between the items of the list.
109+ /// リストの項目同士の間隔を指定します。
110110 ///
111- /// If set to `{auto}`, uses paragraph [`leading`]($par.leading) for tight
112- /// lists and paragraph [`spacing `]($par.spacing) for wide (non-tight)
113- /// lists.
111+ /// `{auto}`に設定すると、
112+ /// コンパクトなリストの場合は[`leading `]($par.leading)を、
113+ /// 幅のある(コンパクトでない)リストの場合は段落の[`spacing`]($par.spacing)を使用します。
114114 pub spacing : Smart < Length > ,
115115
116- /// The bullet list's children.
116+ /// 箇条書きリストの項目。
117117 ///
118- /// When using the list syntax, adjacent items are automatically collected
119- /// into lists, even through constructs like for loops.
118+ /// list構文を使用する場合、forループのような構造を挟んでも、
119+ /// 隣接する項目は自動的にリストとしてまとめられます。
120120 ///
121121 /// ```example
122122 /// #for letter in "ABC" [
@@ -176,10 +176,10 @@ impl Show for Packed<ListElem> {
176176 }
177177}
178178
179- /// A bullet list item.
179+ /// 箇条書きリストの項目。
180180#[ elem( name = "item" , title = "Bullet List Item" ) ]
181181pub struct ListItem {
182- /// The item's body.
182+ /// 項目の本文。
183183 #[ required]
184184 pub body : Content ,
185185}
0 commit comments