@@ -15,30 +15,30 @@ use crate::model::{Destination, Numbering, NumberingPattern, ParElem};
1515use crate :: text:: { SuperElem , TextElem , TextSize } ;
1616use crate :: visualize:: { LineElem , Stroke } ;
1717
18- /// A footnote.
18+ /// 脚注。
1919///
20- /// Includes additional remarks and references on the same page with footnotes.
21- /// A footnote will insert a superscript number that links to the note at the
22- /// bottom of the page. Notes are numbered sequentially throughout your document
23- /// and can break across multiple pages.
20+ /// 脚注を用いて追加のコメントや参考文献を同じページに記述します。
21+ /// 脚注は、ページ下部の注釈にリンクする上付きの番号を挿入します。
22+ /// 注釈は文書全体で連続して番号付けされ、
23+ /// 複数のページにまたがることができます。
2424///
25- /// To customize the appearance of the entry in the footnote listing, see
26- /// [`footnote.entry`]($footnote.entry). The footnote itself is realized as a
27- /// normal superscript, so you can use a set rule on the [`super`] function to
28- /// customize it. You can also apply a show rule to customize only the footnote
29- /// marker (superscript number) in the running text.
25+ /// 脚注リストの項目の外観をカスタマイズするには、
26+ /// [`footnote.entry`]($footnote.entry)を参照してください。
27+ /// 脚注自体は通常の上付き文字として実現されているため、
28+ /// [`super`]関数に対してsetルールを適用してカスタマイズできます。
29+ /// また、showルールを適用して、本文中の脚注マーカー(上付き番号)のみをカスタマイズすることもできます。
3030///
31- /// # Example
31+ /// # 例
3232/// ```example
3333/// Check the docs for more details.
3434/// #footnote[https://typst.app/docs]
3535/// ```
3636///
37- /// The footnote automatically attaches itself to the preceding word, even if
38- /// there is a space before it in the markup. To force space, you can use the
39- /// string `[#" "]` or explicit [horizontal spacing]($h).
37+ /// 脚注は、マークアップにおいて前の単語との間にスペースがあったとしても、
38+ /// 自動的にその単語に付加されます。
39+ /// スペースを強制するには、文字列の `[#" "]`や明示的な [horizontal spacing]($h)を使用できます。
4040///
41- /// By giving a label to a footnote, you can have multiple references to it.
41+ /// 脚注にラベルをつけることにより、脚注に対して複数の参照を持つことができます。
4242///
4343/// ```example
4444/// You can edit Typst documents online.
@@ -47,18 +47,18 @@ use crate::visualize::{LineElem, Stroke};
4747/// And the online app. #footnote(<fn>)
4848/// ```
4949///
50- /// _Note :_ Set and show rules in the scope where `footnote` is called may not
51- /// apply to the footnote's content. See [here ][issue] for more information.
50+ /// _注意 :_ `footnote`が呼び出されるスコープ内でのsetルールやshowルールは、脚注の内容に適用されない場合があります。
51+ /// 詳細については[こちら ][issue]を参照してください。
5252///
5353/// [issue]: https://github.com/typst/typst/issues/1467#issuecomment-1588799440
5454#[ elem( scope, Locatable , Show , Count ) ]
5555pub struct FootnoteElem {
56- /// How to number footnotes.
56+ /// 脚注の番号付け方法。
5757 ///
58- /// By default, the footnote numbering continues throughout your document.
59- /// If you prefer per-page footnote numbering, you can reset the footnote
60- /// [counter] in the page [ header]($page.header). In the future, there might
61- /// be a simpler way to achieve this.
58+ /// デフォルトでは、脚注の番号付けは文書全体で連続します。
59+ /// ページごとに脚注の番号付けを行いたい場合は、
60+ /// ページの[ header]($page.header)で脚注の[counter]をリセットできます。
61+ /// 将来的には、これを簡単に実現する方法が提供されるかもしれません。
6262 ///
6363 /// ```example
6464 /// #set footnote(numbering: "*")
@@ -71,8 +71,8 @@ pub struct FootnoteElem {
7171 #[ default( Numbering :: Pattern ( NumberingPattern :: from_str( "1" ) . unwrap( ) ) ) ]
7272 pub numbering : Numbering ,
7373
74- /// The content to put into the footnote. Can also be the label of another
75- /// footnote this one should point to.
74+ /// 脚注に挿入するコンテンツ。
75+ /// この脚注が参照すべき他の脚注のラベルを指定することもできます。
7676 #[ required]
7777 pub body : FootnoteBody ,
7878}
@@ -175,10 +175,10 @@ cast! {
175175 v: Label => Self :: Reference ( v) ,
176176}
177177
178- /// An entry in a footnote list.
178+ /// 脚注リストの項目。
179179///
180- /// This function is not intended to be called directly. Instead, it is used in
181- /// set and show rules to customize footnote listings.
180+ /// この関数は直接呼び出されることを意図されていません。
181+ /// 代わりに、setルールやshowルールで脚注リストをカスタマイズするために使用されます。
182182///
183183/// ```example
184184/// #show footnote.entry: set text(red)
@@ -188,14 +188,14 @@ cast! {
188188/// has red text!
189189/// ```
190190///
191- /// _Note :_ Footnote entry properties must be uniform across each page run (a
192- /// page run is a sequence of pages without an explicit pagebreak in between).
193- /// For this reason, set and show rules for footnote entries should be defined
194- /// before any page content, typically at the very start of the document.
191+ /// _注意 :_ 脚注項目のプロパティは、
192+ /// 各ページラン(ページ間に明示的な改ページがないページ群)全体で一貫している必要があります。
193+ /// このため、脚注項目に対するsetルールやshowルールは通常はドキュメントの最初の部分など、
194+ /// ページコンテンツの前に定義される必要があります。
195195#[ elem( name = "entry" , title = "Footnote Entry" , Show , ShowSet ) ]
196196pub struct FootnoteEntry {
197- /// The footnote for this entry. Its location can be used to determine
198- /// the footnote counter state.
197+ /// この項目の脚注。
198+ /// その位置を指定して、脚注カウンターの状態を決定する事ができます。
199199 ///
200200 /// ```example
201201 /// #show footnote.entry: it => {
@@ -213,7 +213,7 @@ pub struct FootnoteEntry {
213213 #[ required]
214214 pub note : Packed < FootnoteElem > ,
215215
216- /// The separator between the document body and the footnote listing.
216+ /// 文書の本文と脚注リストの間の区切り記号。
217217 ///
218218 /// ```example
219219 /// #set footnote.entry(
@@ -237,7 +237,7 @@ pub struct FootnoteEntry {
237237 ) ]
238238 pub separator : Content ,
239239
240- /// The amount of clearance between the document body and the separator.
240+ /// 文書の本文と区切り記号の間の余白の量。
241241 ///
242242 /// ```example
243243 /// #set footnote.entry(clearance: 3em)
@@ -251,7 +251,7 @@ pub struct FootnoteEntry {
251251 #[ resolve]
252252 pub clearance : Length ,
253253
254- /// The gap between footnote entries.
254+ /// 脚注項目同士の間隔。
255255 ///
256256 /// ```example
257257 /// #set footnote.entry(gap: 0.8em)
@@ -264,7 +264,7 @@ pub struct FootnoteEntry {
264264 #[ resolve]
265265 pub gap : Length ,
266266
267- /// The indent of each footnote entry.
267+ /// 各脚注項目の字下げ。
268268 ///
269269 /// ```example
270270 /// #set footnote.entry(indent: 0em)
0 commit comments