From 51924805153d8c8b9f217b61f126536bebfb6221 Mon Sep 17 00:00:00 2001 From: gomazarashi Date: Mon, 28 Apr 2025 11:00:04 +0900 Subject: [PATCH 1/5] =?UTF-8?q?`docs/reference/model/list/`=E3=81=AE?= =?UTF-8?q?=E7=BF=BB=E8=A8=B3=E9=96=8B=E5=A7=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- crates/typst-library/src/model/list.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/typst-library/src/model/list.rs b/crates/typst-library/src/model/list.rs index d93ec9172..ae45d2e5c 100644 --- a/crates/typst-library/src/model/list.rs +++ b/crates/typst-library/src/model/list.rs @@ -11,7 +11,7 @@ use crate::layout::{BlockElem, Em, Length, VElem}; use crate::model::{ParElem, ParbreakElem}; use crate::text::TextElem; -/// A bullet list. +/// 箇条書きリスト。 /// /// Displays a sequence of items vertically, with each item introduced by a /// marker. From 3ea03d456ff53cd1e0bbfa642b6092aabfbb4fc9 Mon Sep 17 00:00:00 2001 From: gomazarashi Date: Mon, 28 Apr 2025 13:47:14 +0900 Subject: [PATCH 2/5] =?UTF-8?q?=E7=BF=BB=E8=A8=B3=E5=AE=8C=E4=BA=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- crates/typst-library/src/model/list.rs | 68 +++++++++++++------------- 1 file changed, 34 insertions(+), 34 deletions(-) diff --git a/crates/typst-library/src/model/list.rs b/crates/typst-library/src/model/list.rs index ae45d2e5c..a4b6173b7 100644 --- a/crates/typst-library/src/model/list.rs +++ b/crates/typst-library/src/model/list.rs @@ -13,8 +13,8 @@ use crate::text::TextElem; /// 箇条書きリスト。 /// -/// Displays a sequence of items vertically, with each item introduced by a -/// marker. +/// 各項目の先頭に記号を付け、 +/// 一連の項目を縦に並べて表示します。 /// /// # Example /// ```example @@ -37,24 +37,24 @@ use crate::text::TextElem; /// ) /// ``` /// -/// # Syntax -/// This functions also has dedicated syntax: Start a line with a hyphen, -/// followed by a space to create a list item. A list item can contain multiple -/// paragraphs and other block-level content. All content that is indented -/// more than an item's marker becomes part of that item. +/// # 構文 +/// この関数には専用の構文もあります。 +/// 行頭にハイフンとスペースを置くことでリスト項目を作成します。 +/// リスト項目には複数の段落や、他のブロックレベルコンテンツを含めることができます。 +/// リスト項目の記号よりも深く字下げされた全てのコンテンツは、そのリスト項目の一部になります。 #[elem(scope, title = "Bullet List", Show)] pub struct ListElem { - /// Defines the default [spacing]($list.spacing) of the list. If it is - /// `{false}`, the items are spaced apart with - /// [paragraph spacing]($par.spacing). If it is `{true}`, they use - /// [paragraph leading]($par.leading) instead. This makes the list more - /// compact, which can look better if the items are short. + /// リストのデフォルトの[spacing]($list.spacing)を定義します。 + /// これが`{false}`の場合、 項目の間隔は[paragraph spacing]($par.spacing)によって決まります。 + /// `{true}`の場合、代わりに[paragraph leading]($par.leading)が使用されます。 + /// これによりリストがよりコンパクトになり、 + /// 各項目が短い場合に見栄えが良くなります。 /// - /// In markup mode, the value of this parameter is determined based on - /// whether items are separated with a blank line. If items directly follow - /// each other, this is set to `{true}`; if items are separated by a blank - /// line, this is set to `{false}`. The markup-defined tightness cannot be - /// overridden with set rules. + /// マークアップモードでは、 + /// この引数の値は項目が空行で区切られているかどうかに基づいて決定されます。 + /// 項目間に空行がなく連続している場合、この値は`{true}`に設定されますが、 + /// 項目間が空行で区切られている場合は`{false}`に設定されます。 + /// マークアップで定義された間隔はsetルールで上書きすることは出来ません。 /// /// ```example /// - If a list has a lot of text, and @@ -67,13 +67,13 @@ pub struct ListElem { #[default(true)] pub tight: bool, - /// The marker which introduces each item. + /// 各項目の先頭に付ける記号。 /// - /// Instead of plain content, you can also pass an array with multiple - /// markers that should be used for nested lists. If the list nesting depth - /// exceeds the number of markers, the markers are cycled. For total - /// control, you may pass a function that maps the list's nesting depth - /// (starting from `{0}`) to a desired marker. + /// 単純なコンテンツの代わりに、ネストされたリストに使用する、 + /// 複数の記号を持つ配列を渡すこともできます。 + /// リストのネストの深さが記号の数を超えた場合、使用される記号は循環します。 + /// 完全な制御を行いたい場合は、 + /// リストのネストの深さ(`{0}`から開始する)を希望する記号にマッピングする関数を渡すことができます。 /// /// ```example /// #set list(marker: [--]) @@ -97,26 +97,26 @@ pub struct ListElem { ]))] pub marker: ListMarker, - /// The indent of each item. + /// 各項目のインデント。 #[resolve] pub indent: Length, - /// The spacing between the marker and the body of each item. + /// 各項目の記号と本文の間隔を指定します。 #[resolve] #[default(Em::new(0.5).into())] pub body_indent: Length, - /// The spacing between the items of the list. + /// リストの項目同士の間隔を指定します。 /// - /// If set to `{auto}`, uses paragraph [`leading`]($par.leading) for tight - /// lists and paragraph [`spacing`]($par.spacing) for wide (non-tight) - /// lists. + /// `{auto}`に設定すると、 + /// コンパクトなリストの場合は[`leading`]($par.leading)を、 + /// 幅のある(コンパクトでない)リストの場合は段落の[`spacing`]($par.spacing)を使用します。 pub spacing: Smart, - /// The bullet list's children. + /// 箇条書きリストの項目。 /// - /// When using the list syntax, adjacent items are automatically collected - /// into lists, even through constructs like for loops. + /// list構文を使用する場合、forループのような構造を挟んでも、 + /// 隣接する項目は自動的にリストとしてまとめられます。 /// /// ```example /// #for letter in "ABC" [ @@ -176,10 +176,10 @@ impl Show for Packed { } } -/// A bullet list item. +/// 箇条書きリストの項目。 #[elem(name = "item", title = "Bullet List Item")] pub struct ListItem { - /// The item's body. + /// 項目の本文。 #[required] pub body: Content, } From e5e785a2c896ed4ace1994709ad5970daa0600c4 Mon Sep 17 00:00:00 2001 From: gomazarashi Date: Fri, 2 May 2025 10:43:51 +0900 Subject: [PATCH 3/5] =?UTF-8?q?=E3=82=B3=E3=83=B3=E3=83=91=E3=82=A4?= =?UTF-8?q?=E3=83=AB=E5=BE=8C=E3=81=AB=E5=90=84=E9=A0=85=E7=9B=AE=E3=81=AE?= =?UTF-8?q?=E8=A1=8C=E9=A0=AD=E3=81=AB=E8=A1=A8=E7=A4=BA=E3=81=95=E3=82=8C?= =?UTF-8?q?=E3=82=8B=E8=A8=98=E5=8F=B7=E3=82=92=E3=80=8C=E3=83=9E=E3=83=BC?= =?UTF-8?q?=E3=82=AB=E3=83=BC=E3=80=8D=E3=81=A8=E8=A8=B3=E3=81=99=E3=82=88?= =?UTF-8?q?=E3=81=86=E5=A4=89=E6=9B=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- crates/typst-library/src/model/list.rs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/crates/typst-library/src/model/list.rs b/crates/typst-library/src/model/list.rs index a4b6173b7..cdfa84720 100644 --- a/crates/typst-library/src/model/list.rs +++ b/crates/typst-library/src/model/list.rs @@ -13,7 +13,7 @@ use crate::text::TextElem; /// 箇条書きリスト。 /// -/// 各項目の先頭に記号を付け、 +/// 各項目の先頭にマーカーを付け、 /// 一連の項目を縦に並べて表示します。 /// /// # Example @@ -67,13 +67,13 @@ pub struct ListElem { #[default(true)] pub tight: bool, - /// 各項目の先頭に付ける記号。 + /// 各項目の先頭に付けるマーカー。 /// /// 単純なコンテンツの代わりに、ネストされたリストに使用する、 - /// 複数の記号を持つ配列を渡すこともできます。 - /// リストのネストの深さが記号の数を超えた場合、使用される記号は循環します。 + /// 複数のマーカーを持つ配列を渡すこともできます。 + /// リストのネストの深さがマーカーの数を超えた場合、使用されるマーカーは循環します。 /// 完全な制御を行いたい場合は、 - /// リストのネストの深さ(`{0}`から開始する)を希望する記号にマッピングする関数を渡すことができます。 + /// リストのネストの深さ(`{0}`から開始する)を希望するマーカーにマッピングする関数を渡すことができます。 /// /// ```example /// #set list(marker: [--]) @@ -101,7 +101,7 @@ pub struct ListElem { #[resolve] pub indent: Length, - /// 各項目の記号と本文の間隔を指定します。 + /// 各項目のマーカーと本文の間隔を指定します。 #[resolve] #[default(Em::new(0.5).into())] pub body_indent: Length, From f431a1b75d4efa3ca1cc32cf388b5938f3d5e27a Mon Sep 17 00:00:00 2001 From: gomazarashi Date: Fri, 2 May 2025 10:45:14 +0900 Subject: [PATCH 4/5] =?UTF-8?q?=E7=B4=B0=E3=81=8B=E3=81=AA=E8=A1=A8?= =?UTF-8?q?=E7=8F=BE=E3=82=92=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- crates/typst-library/src/model/list.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/typst-library/src/model/list.rs b/crates/typst-library/src/model/list.rs index cdfa84720..e41b1f997 100644 --- a/crates/typst-library/src/model/list.rs +++ b/crates/typst-library/src/model/list.rs @@ -54,7 +54,7 @@ pub struct ListElem { /// この引数の値は項目が空行で区切られているかどうかに基づいて決定されます。 /// 項目間に空行がなく連続している場合、この値は`{true}`に設定されますが、 /// 項目間が空行で区切られている場合は`{false}`に設定されます。 - /// マークアップで定義された間隔はsetルールで上書きすることは出来ません。 + /// マークアップで定義された間隔はsetルールで上書きすることはできません。 /// /// ```example /// - If a list has a lot of text, and @@ -72,7 +72,7 @@ pub struct ListElem { /// 単純なコンテンツの代わりに、ネストされたリストに使用する、 /// 複数のマーカーを持つ配列を渡すこともできます。 /// リストのネストの深さがマーカーの数を超えた場合、使用されるマーカーは循環します。 - /// 完全な制御を行いたい場合は、 + /// 完全に制御したい場合は、 /// リストのネストの深さ(`{0}`から開始する)を希望するマーカーにマッピングする関数を渡すことができます。 /// /// ```example From a753aa488f3b5d5c8c61374013c715488b867410 Mon Sep 17 00:00:00 2001 From: gomazarashi Date: Fri, 2 May 2025 10:46:26 +0900 Subject: [PATCH 5/5] =?UTF-8?q?"map"=E3=82=92=E3=83=9E=E3=83=83=E3=83=94?= =?UTF-8?q?=E3=83=B3=E3=82=B0=E3=81=A8=E3=81=97=E3=81=A6=E8=A8=B3=E3=81=97?= =?UTF-8?q?=E3=81=A6=E3=81=84=E3=81=9F=E7=AE=87=E6=89=80=E3=82=92=E6=84=8F?= =?UTF-8?q?=E8=A8=B3=E3=81=99=E3=82=8B=E3=82=88=E3=81=86=E5=A4=89=E6=9B=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- crates/typst-library/src/model/list.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/typst-library/src/model/list.rs b/crates/typst-library/src/model/list.rs index e41b1f997..8bb4413a1 100644 --- a/crates/typst-library/src/model/list.rs +++ b/crates/typst-library/src/model/list.rs @@ -73,7 +73,7 @@ pub struct ListElem { /// 複数のマーカーを持つ配列を渡すこともできます。 /// リストのネストの深さがマーカーの数を超えた場合、使用されるマーカーは循環します。 /// 完全に制御したい場合は、 - /// リストのネストの深さ(`{0}`から開始する)を希望するマーカーにマッピングする関数を渡すことができます。 + /// リストのネストの深さ(`{0}`から開始する)に応じて、使用するマーカーを決める関数を渡すこともできます。 /// /// ```example /// #set list(marker: [--])