@@ -11,12 +11,11 @@ use crate::model::bibliography::Works;
1111use crate :: model:: { CslSource , CslStyle } ;
1212use crate :: text:: { Lang , Region , TextElem } ;
1313
14- /// Cite a work from the bibliography.
14+ /// 参考文献の引用。
1515///
16- /// Before you starting citing, you need to add a [bibliography] somewhere in
17- /// your document.
16+ /// 引用を始める前に、文書のどこかで[bibliography]を追加しておく必要があります。
1817///
19- /// # Example
18+ /// # 例
2019/// ```example
2120/// This was already noted by
2221/// pirates long ago. @arrgh
@@ -30,23 +29,21 @@ use crate::text::{Lang, Region, TextElem};
3029/// #bibliography("works.bib")
3130/// ```
3231///
33- /// If your source name contains certain characters such as slashes, which are
34- /// not recognized by the `<>` syntax, you can explicitly call `label` instead.
32+ /// ソース名にスラッシュなど`<>`構文では認識されない文字が含まれている場合は、代わりにlabelを明示的に呼び出すことで参照できます。
3533///
3634/// ```typ
3735/// Computer Modern is an example of a modernist serif typeface.
3836/// #cite(label("DBLP:books/lib/Knuth86a")).
3937/// >>> #bibliography("works.bib")
4038/// ```
4139///
42- /// # Syntax
43- /// This function indirectly has dedicated syntax. [References]($ref) can be
44- /// used to cite works from the bibliography. The label then corresponds to the
45- /// citation key.
40+ /// # 構文
41+ /// この関数は間接的に専用の構文を持っています。
42+ /// [References]($ref)は参考文献を引用するために使用可能です。
43+ /// ラベルは参照キーに対応します。
4644#[ elem( Synthesize ) ]
4745pub struct CiteElem {
48- /// The citation key that identifies the entry in the bibliography that
49- /// shall be cited, as a label.
46+ /// 引用する文献を特定するラベルである参照キー。
5047 ///
5148 /// ```example
5249 /// // All the same
@@ -59,9 +56,9 @@ pub struct CiteElem {
5956 #[ required]
6057 pub key : Label ,
6158
62- /// A supplement for the citation such as page or chapter number.
59+ /// ページ番号や章番号などの引用の補足。
6360 ///
64- /// In reference syntax, the supplement can be added in square brackets:
61+ /// [References]($ref)の構文では、角括弧で囲むことで補足を追加できます。
6562 ///
6663 /// ```example
6764 /// This has been proven. @distress[p.~7]
@@ -70,13 +67,10 @@ pub struct CiteElem {
7067 /// ```
7168 pub supplement : Option < Content > ,
7269
73- /// The kind of citation to produce. Different forms are useful in different
74- /// scenarios: A normal citation is useful as a source at the end of a
75- /// sentence, while a "prose" citation is more suitable for inclusion in the
76- /// flow of text.
70+ /// 作成する引用の種類。異なる形式は異なるシナリオで有用です。
71+ /// 通常の引用は文末に置くソースとして有用ですが、"prose"引用は文章の途中に置くのに適しています。
7772 ///
78- /// If set to `{none}`, the cited work is included in the bibliography, but
79- /// nothing will be displayed.
73+ /// もし`{none}`と設定すると、引用文献は参考文献リストに含まれますが、文章内には表示されません。
8074 ///
8175 /// ```example
8276 /// #cite(<netwok>, form: "prose")
@@ -87,8 +81,7 @@ pub struct CiteElem {
8781 /// ```
8882 #[ default( Some ( CitationForm :: Normal ) ) ]
8983 pub form : Option < CitationForm > ,
90-
91- /// The citation style.
84+ /// 引用スタイル。
9285 ///
9386 /// This can be:
9487 /// - `{auto}` to automatically use the
@@ -137,16 +130,16 @@ cast! {
137130/// The form of the citation.
138131#[ derive( Debug , Default , Copy , Clone , Eq , PartialEq , Hash , Cast ) ]
139132pub enum CitationForm {
140- /// Display in the standard way for the active style.
133+ /// 現在設定しているスタイルの標準的な方法で表示する。
141134 #[ default]
142135 Normal ,
143- /// Produces a citation that is suitable for inclusion in a sentence.
136+ /// 文章に含めるのに適した引用を作成する。
144137 Prose ,
145- /// Mimics a bibliography entry, with full information about the cited work.
138+ /// 参考文献リストと同じく、引用された文献の完全な情報を表示する。
146139 Full ,
147- /// Shows only the cited work's author(s).
140+ /// 引用文献の著者らのみを表示する。
148141 Author ,
149- /// Shows only the cited work's year.
142+ /// 引用文献の発行年のみを表示する。
150143 Year ,
151144}
152145
0 commit comments