@@ -15,11 +15,11 @@ use crate::model::{
1515 ListItemLike , ListLike , Numbering , NumberingPattern , ParElem , ParbreakElem ,
1616} ;
1717
18- /// A numbered list.
18+ /// 番号付きリスト。
1919///
20- /// Displays a sequence of items vertically and numbers them consecutively.
20+ /// 一連の項目を縦に並べて表示し、それぞれに連番を付けます。
2121///
22- /// # Example
22+ /// # 例
2323/// ```example
2424/// Automatically numbered:
2525/// + Preparations
@@ -40,17 +40,17 @@ use crate::model::{
4040/// #enum[First][Second]
4141/// ```
4242///
43- /// You can easily switch all your enumerations to a different numbering style
44- /// with a set rule.
43+ /// setルールを用いることで、
44+ /// すべてのリストを異なるナンバリングスタイルに簡単に切り替えることができます。
4545/// ```example
4646/// #set enum(numbering: "a)")
4747///
4848/// + Starting off ...
4949/// + Don't forget step two
5050/// ```
5151///
52- /// You can also use [`enum.item`]($enum.item) to programmatically customize the
53- /// number of each item in the enumeration:
52+ /// また、 [`enum.item`]($enum.item)を使用して、
53+ /// リストの各項目の番号を自由にカスタマイズすることもできます。
5454///
5555/// ```example
5656/// #enum(
@@ -60,30 +60,30 @@ use crate::model::{
6060/// )
6161/// ```
6262///
63- /// # Syntax
64- /// This functions also has dedicated syntax:
63+ /// # 構文
64+ /// この関数には専用の構文もあります。
6565///
66- /// - Starting a line with a plus sign creates an automatically numbered
67- /// enumeration item.
68- /// - Starting a line with a number followed by a dot creates an explicitly
69- /// numbered enumeration item.
66+ /// - 行の先頭にプラス記号をつけると、
67+ /// 自動的にナンバリングされたリスト項目が作成されます。
68+ /// - 行の先頭に数字とピリオドを付けると、
69+ /// 明示的に番号を指定したリスト項目が作成されます。
7070///
71- /// Enumeration items can contain multiple paragraphs and other block-level
72- /// content. All content that is indented more than an item's marker becomes
73- /// part of that item.
71+ /// リストの項目には、複数の段落やその他のブロックレベルのコンテンツを含めることができます。
72+ /// 項目のマーカーよりもインデントが深いコンテンツはすべて、
73+ /// その項目の一部となります。
7474#[ elem( scope, title = "Numbered List" , Show ) ]
7575pub struct EnumElem {
76- /// Defines the default [spacing]($enum.spacing) of the enumeration. If it
77- /// is `{false}`, the items are spaced apart with
78- /// [paragraph spacing]($par.spacing). If it is `{true}`, they use
79- /// [paragraph leading]($par.leading) instead. This makes the list more
80- /// compact, which can look better if the items are short.
76+ /// リストのデフォルトの [spacing]($enum.spacing)を定義します。
77+ /// これが `{false}`の場合、
78+ /// 項目の間隔は [paragraph spacing]($par.spacing)によって決まります。
79+ /// `{true}`の場合、代わりに [paragraph leading]($par.leading)が使用されます。
80+ /// これによりリストがよりコンパクトになり、各項目が短い場合に見栄えが良くなります。
8181 ///
82- /// In markup mode, the value of this parameter is determined based on
83- /// whether items are separated with a blank line. If items directly follow
84- /// each other, this is set to `{true}`; if items are separated by a blank
85- /// line, this is set to `{false}`. The markup-defined tightness cannot be
86- /// overridden with set rules.
82+ /// マークアップモードでは、
83+ /// この引数の値は項目が空行で区切られているかどうかに基づいて決定されます。
84+ /// 項目間に空行がなく連続している場合、この値は `{true}`に設定されますが、
85+ /// 項目間が空行で区切られている場合は `{false}`に設定されます。
86+ /// マークアップで定義された間隔はsetルールで上書きすることは出来ません。
8787 ///
8888 /// ```example
8989 /// + If an enum has a lot of text, and
@@ -97,12 +97,12 @@ pub struct EnumElem {
9797 #[ default( true ) ]
9898 pub tight : bool ,
9999
100- /// How to number the enumeration. Accepts a
101- /// [numbering pattern or function ]($numbering).
100+ /// リストをどのようにナンバリングするかを指定します。
101+ /// [ナンバリングパターンまたは関数 ]($numbering)を受け付けます。
102102 ///
103- /// If the numbering pattern contains multiple counting symbols, they apply
104- /// to nested enums. If given a function, the function receives one argument
105- /// if `full` is `{false}` and multiple arguments if `full` is ` {true}`.
103+ /// ナンバリングのパターンに複数のカウント記号が含まれている場合、
104+ /// それらはネストされたリストに適用されます。
105+ /// 関数が指定された場合、 `full`が `{false}`の場合は1つの引数を受け取り、` {true}`の場合は複数の引数を受け取ります。
106106 ///
107107 /// ```example
108108 /// #set enum(numbering: "1.a)")
@@ -120,7 +120,7 @@ pub struct EnumElem {
120120 #[ borrowed]
121121 pub numbering : Numbering ,
122122
123- /// Which number to start the enumeration with.
123+ /// リストの開始番号を指定します。
124124 ///
125125 /// ```example
126126 /// #enum(
@@ -131,8 +131,8 @@ pub struct EnumElem {
131131 /// ```
132132 pub start : Smart < usize > ,
133133
134- /// Whether to display the full numbering, including the numbers of
135- /// all parent enumerations.
134+ /// 親リストの番号も含めて、
135+ /// 完全なナンバリングを表示するかどうかを指定します。
136136 ///
137137 ///
138138 /// ```example
@@ -145,7 +145,7 @@ pub struct EnumElem {
145145 #[ default( false ) ]
146146 pub full : bool ,
147147
148- /// Whether to reverse the numbering for this enumeration.
148+ /// このリストのナンバリングを逆順にするかどうかを指定します。
149149 ///
150150 /// ```example
151151 /// #set enum(reversed: true)
@@ -156,33 +156,33 @@ pub struct EnumElem {
156156 #[ default( false ) ]
157157 pub reversed : bool ,
158158
159- /// The indentation of each item.
159+ /// 各項目のインデント。
160160 #[ resolve]
161161 pub indent : Length ,
162162
163- /// The space between the numbering and the body of each item.
163+ /// 各項目のナンバリングと本文の間隔を指定します。
164164 #[ resolve]
165165 #[ default( Em :: new( 0.5 ) . into( ) ) ]
166166 pub body_indent : Length ,
167167
168- /// The spacing between the items of the enumeration.
168+ /// リストの項目同士の間隔を指定します。
169169 ///
170- /// If set to `{auto}`, uses paragraph [`leading`]($par.leading) for tight
171- /// enumerations and paragraph [`spacing` ]($par.spacing) for wide
172- /// (non-tight) enumerations.
170+ /// `{auto}`に設定すると、
171+ /// コンパクトなリストの場合は段落の[leading ]($par.leading)を、
172+ /// 幅のある(コンパクトでない)リストの場合は段落の[spacing]($par.spacing)を使用します。
173173 pub spacing : Smart < Length > ,
174174
175- /// The alignment that enum numbers should have.
175+ /// リストの番号の配置を指定します。
176176 ///
177- /// By default, this is set to `{end + top}`, which aligns enum numbers
178- /// towards end of the current text direction (in left-to- right script,
179- /// for example, this is the same as `{right}`) and at the top of the line.
180- /// The choice of `{ end}` for horizontal alignment of enum numbers is
181- /// usually preferred over `{start}`, as numbers then grow away from the
182- /// text instead of towards it, avoiding certain visual issues. This option
183- /// lets you override this behaviour, however. (Also to note is that the
184- /// [unordered list]($list) uses a different method for this, by giving the
185- /// `marker` content an alignment directly.).
177+ /// デフォルトでは、この値は `{end + top}`に設定されており、これはリストの番号を
178+ /// 現在のテキスト方向の終端(例えば、左から右へ書く文書では、これは`{ right}`と同じ)と、
179+ /// 行の上部に揃えます。
180+ /// 一般的に、水平方向の番号の配置には`{start}`よりも`{ end}`を選択することが推奨されます。
181+ /// なぜなら、番号がテキストに向かってではなくテキストから離れる方向に伸びることによって、
182+ /// 特定の視覚的な問題を回避できるからです。
183+ /// しかし、このオプションを使用することで、この動作を上書きすることができます。
184+ /// (また、 [unordered list]($list)は異なる方法を用いており、直接`marker`コンテンツに配置を指定することで、
185+ /// これを行っていることに注意してください)
186186 ///
187187 /// ````example
188188 /// #set enum(number-align: start + bottom)
@@ -198,10 +198,10 @@ pub struct EnumElem {
198198 #[ default( HAlignment :: End + VAlignment :: Top ) ]
199199 pub number_align : Alignment ,
200200
201- /// The numbered list's items.
201+ /// 番号付きリストの項目。
202202 ///
203- /// When using the enum syntax, adjacent items are automatically collected
204- /// into enumerations, even through constructs like for loops.
203+ /// enum構文を使用する場合、forループのような構造を挟んでも、
204+ /// 隣接する項目は自動的にリストとしてまとめられます。
205205 ///
206206 /// ```example
207207 /// #for phase in (
@@ -269,14 +269,14 @@ impl Show for Packed<EnumElem> {
269269 }
270270}
271271
272- /// An enumeration item.
272+ /// 番号付きリストの項目。
273273#[ elem( name = "item" , title = "Numbered List Item" ) ]
274274pub struct EnumItem {
275- /// The item's number.
275+ /// 項目の番号。
276276 #[ positional]
277277 pub number : Option < usize > ,
278278
279- /// The item's body.
279+ /// 項目の本文。
280280 #[ required]
281281 pub body : Content ,
282282}
0 commit comments