@@ -8,12 +8,11 @@ use crate::model::bibliography::Works;
88use crate :: model:: CslStyle ;
99use crate :: text:: { Lang , Region , TextElem } ;
1010
11- /// Cite a work from the bibliography.
11+ /// 参考文献の引用。
1212///
13- /// Before you starting citing, you need to add a [bibliography] somewhere in
14- /// your document.
13+ /// 引用を始める前に、文書のどこかで[bibliography]を追加しておく必要があります。
1514///
16- /// # Example
15+ /// # 例
1716/// ```example
1817/// This was already noted by
1918/// pirates long ago. @arrgh
@@ -27,23 +26,21 @@ use crate::text::{Lang, Region, TextElem};
2726/// #bibliography("works.bib")
2827/// ```
2928///
30- /// If your source name contains certain characters such as slashes, which are
31- /// not recognized by the `<>` syntax, you can explicitly call `label` instead.
29+ /// ソース名にスラッシュなど`<>`構文では認識されない文字が含まれている場合は、代わりにlabelを明示的に呼び出すことで参照できます。
3230///
3331/// ```typ
3432/// Computer Modern is an example of a modernist serif typeface.
3533/// #cite(label("DBLP:books/lib/Knuth86a")).
3634/// >>> #bibliography("works.bib")
3735/// ```
3836///
39- /// # Syntax
40- /// This function indirectly has dedicated syntax. [References]($ref) can be
41- /// used to cite works from the bibliography. The label then corresponds to the
42- /// citation key.
37+ /// # 構文
38+ /// この関数は間接的に専用の構文を持っています。
39+ /// [References]($ref)は参考文献を引用するために使用可能です。
40+ /// ラベルは参照キーに対応します。
4341#[ elem( Synthesize ) ]
4442pub struct CiteElem {
45- /// The citation key that identifies the entry in the bibliography that
46- /// shall be cited, as a label.
43+ /// 引用する文献を特定するラベルである参照キー。
4744 ///
4845 /// ```example
4946 /// // All the same
@@ -56,9 +53,9 @@ pub struct CiteElem {
5653 #[ required]
5754 pub key : Label ,
5855
59- /// A supplement for the citation such as page or chapter number.
56+ /// ページ番号や章番号などの引用の補足。
6057 ///
61- /// In reference syntax, the supplement can be added in square brackets:
58+ /// [References]($ref)の構文では、角括弧で囲むことで補足を追加できます。
6259 ///
6360 /// ```example
6461 /// This has been proven. @distress[p.~7]
@@ -67,13 +64,10 @@ pub struct CiteElem {
6764 /// ```
6865 pub supplement : Option < Content > ,
6966
70- /// The kind of citation to produce. Different forms are useful in different
71- /// scenarios: A normal citation is useful as a source at the end of a
72- /// sentence, while a "prose" citation is more suitable for inclusion in the
73- /// flow of text.
67+ /// 作成する引用の種類。異なる形式は異なるシナリオで有用です。
68+ /// 通常の引用は文末に置くソースとして有用ですが、"prose"引用は文章の途中に置くのに適しています。
7469 ///
75- /// If set to `{none}`, the cited work is included in the bibliography, but
76- /// nothing will be displayed.
70+ /// もし`{none}`と設定すると、引用文献は参考文献リストに含まれますが、文章内には表示されません。
7771 ///
7872 /// ```example
7973 /// #cite(<netwok>, form: "prose")
@@ -84,16 +78,13 @@ pub struct CiteElem {
8478 /// ```
8579 #[ default( Some ( CitationForm :: Normal ) ) ]
8680 pub form : Option < CitationForm > ,
87-
88- /// The citation style.
81+ /// 引用スタイル。
82+ ///
83+ /// `{auto}`か、組み込みスタイル(下記参照)、[CSLファイル](https://citationstyles.org/)へのパス、のいずれかを指定してください。
84+ /// 下記のスタイルの中には、2回表示されるものがあり、1回はフルネームで、もう1回は略名で表示されています。
8985 ///
90- /// Should be either `{auto}`, one of the built-in styles (see below) or a
91- /// path to a [CSL file](https://citationstyles.org/). Some of the styles
92- /// listed below appear twice, once with their full name and once with a
93- /// short alias.
86+ /// `{auto}`に設定すると、[bibliography関数のstyleパラメーター]($bibliography.style)で設定したスタイルが自動的に使用されます。
9487 ///
95- /// When set to `{auto}`, automatically use the
96- /// [bibliography's style]($bibliography.style) for the citations.
9788 #[ parse( CslStyle :: parse_smart( engine, args) ?) ]
9889 pub style : Smart < CslStyle > ,
9990
@@ -125,16 +116,16 @@ cast! {
125116/// The form of the citation.
126117#[ derive( Debug , Default , Copy , Clone , Eq , PartialEq , Hash , Cast ) ]
127118pub enum CitationForm {
128- /// Display in the standard way for the active style.
119+ /// 現在設定しているスタイルの標準的な方法で表示する。
129120 #[ default]
130121 Normal ,
131- /// Produces a citation that is suitable for inclusion in a sentence.
122+ /// 文章に含めるのに適した引用を作成する。
132123 Prose ,
133- /// Mimics a bibliography entry, with full information about the cited work.
124+ /// 参考文献リストと同じく、引用された文献の完全な情報を表示する。
134125 Full ,
135- /// Shows only the cited work's author(s).
126+ /// 引用文献の著者らのみを表示する。
136127 Author ,
137- /// Shows only the cited work's year.
128+ /// 引用文献の発行年のみを表示する。
138129 Year ,
139130}
140131
0 commit comments