@@ -44,39 +44,33 @@ use crate::text::{
4444use crate :: utils:: { LazyHash , NonZeroExt , PicoStr } ;
4545use crate :: World ;
4646
47- /// A bibliography / reference listing.
47+ /// 参考文献 / 引用文献リスト。
4848///
49- /// You can create a new bibliography by calling this function with a path
50- /// to a bibliography file in either one of two formats:
49+ /// 次の2つの形式のどちらかの参考文献ファイルへのパスを指定してこの関数を呼び出すと、新しい引用文献リストを作成できます。
5150///
52- /// - A Hayagriva `.yml` file. Hayagriva is a new bibliography file format
53- /// designed for use with Typst. Visit its
54- /// [documentation](https://github.com/typst/hayagriva/blob/main/docs/file-format.md)
55- /// for more details.
56- /// - A BibLaTeX `.bib` file.
51+ /// - Hayagriva `.yml` ファイル。
52+ /// HayagrivaはTypstで使用するためにデザインされた新しい書誌ファイルフォーマットです。
53+ /// 詳しくは[ドキュメント](https://github.com/typst/hayagriva/blob/main/docs/file-format.md)をご覧ください。
54+ /// - BibLaTeX `.bib` ファイル。
5755///
58- /// As soon as you add a bibliography somewhere in your document, you can start
59- /// citing things with reference syntax (`[@key]`) or explicit calls to the
60- /// [citation]($cite) function (`[#cite(<key>)]`). The bibliography will only
61- /// show entries for works that were referenced in the document.
56+ /// 文書内に参考文献を追加すると、参照構文(`[@key]`)や引用関数の明示的な呼び出し(`[#cite(<key>)]`)を使って[引用]($cite)を始めることができます。
57+ /// 参考文献リストには、文書内で参照された作品の文献だけが表示されます。
6258///
63- /// # Styles
64- /// Typst offers a wide selection of built-in
65- /// [citation and bibliography styles]($bibliography.style). Beyond those, you
66- /// can add and use custom [CSL](https://citationstyles.org/) (Citation Style
67- /// Language) files. Wondering which style to use? Here are some good defaults
68- /// based on what discipline you're working in:
59+ /// # スタイル
60+ /// Typstは、内蔵の[引用と文献スタイル]($bibliography.style)を幅広く取り揃えています。
61+ /// さらに、独自の[CSL](https://citationstyles.org/)(Citation Style Language)ファイルを追加して使用することもできます。
62+ /// どのスタイルを使えばいいか迷う方のために、分野ごとによく使われるスタイルを以下の表にまとめています。
6963///
70- /// | Fields | Typical Styles |
64+ /// | 分野 | Typical Styles |
7165/// |-----------------|--------------------------------------------------------|
72- /// | Engineering, IT | `{"ieee"}` |
73- /// | Psychology, Life Sciences | `{"apa"}` |
74- /// | Social sciences | `{"chicago-author-date"}` |
75- /// | Humanities | `{"mla"}`, `{"chicago-notes"}`, `{"harvard-cite-them-right"}` |
76- /// | Economics | `{"harvard-cite-them-right"}` |
77- /// | Physics | `{"american-physics-society"}` |
66+ /// | 工学、 IT | `{"ieee"}` |
67+ /// | 心理学、ライフサイエンス | `{"apa"}` |
68+ /// | 社会科学 | `{"chicago-author-date"}` |
69+ /// | 人文学 | `{"mla"}`, `{"chicago-notes"}`, `{"harvard-cite-them-right"}` |
70+ /// | 経済学 | `{"harvard-cite-them-right"}` |
71+ /// | 物理学 | `{"american-physics-society"}` |
7872///
79- /// # Example
73+ /// # 例
8074/// ```example
8175/// This was already noted by
8276/// pirates long ago. @arrgh
@@ -88,40 +82,34 @@ use crate::World;
8882/// ```
8983#[ elem( Locatable , Synthesize , Show , ShowSet , LocalName ) ]
9084pub struct BibliographyElem {
91- /// Path(s) to Hayagriva `.yml` and/or BibLaTeX `.bib` files.
85+ /// Hayagriva `.yml`やBibLaTeX `.bib`などのファイルパス。
9286 #[ required]
9387 #[ parse(
9488 let ( paths, bibliography) = Bibliography :: parse( engine, args) ?;
9589 paths
9690 ) ]
9791 pub path : BibliographyPaths ,
9892
99- /// The title of the bibliography.
93+ /// 参考文献のタイトル。
10094 ///
101- /// - When set to `{auto}`, an appropriate title for the
102- /// [text language]($text.lang) will be used. This is the default.
103- /// - When set to `{none}`, the bibliography will not have a title.
104- /// - A custom title can be set by passing content.
95+ /// - `{auto}`に設定すると、[テキストの言語]($text.lang)に適したタイトルが表示されます。これがデフォルトです。
96+ /// - `{none}`に設定すると、参考文献のタイトルは何も表示されません。
97+ /// - 独自のタイトルはコンテンツで渡します。
10598 ///
106- /// The bibliography's heading will not be numbered by default, but you can
107- /// force it to be with a show-set rule:
99+ /// 参考文献の見出しはデフォルトでは番号が振られませんが、show-setルールで強制的に見出し番号をつけることも可能です。
108100 /// `{show bibliography: set heading(numbering: "1.")}`
109101 pub title : Smart < Option < Content > > ,
110102
111- /// Whether to include all works from the given bibliography files, even
112- /// those that weren't cited in the document.
103+ /// 文書内で引用されていないものも含めて、参考文献ファイルにあるすべての文献を出力するかどうか。
113104 ///
114- /// To selectively add individual cited works without showing them, you can
115- /// also use the `cite` function with [`form`]($cite.form) set to `{none}`.
105+ /// 個々の引用文献を表示させずに追加するには、 [`form`]($cite.form) を `{none}`として [`cite`]($cite) 関数を使用します。
116106 #[ default( false ) ]
117107 pub full : bool ,
118108
119- /// The bibliography style.
109+ /// 参考文献スタイル。
120110 ///
121- /// Should be either one of the built-in styles (see below) or a path to
122- /// a [CSL file](https://citationstyles.org/). Some of the styles listed
123- /// below appear twice, once with their full name and once with a short
124- /// alias.
111+ /// 下記にある内蔵スタイルや [CSL ファイル](https://citationstyles.org/)へのパスを指定します。
112+ /// 以下に挙げるスタイルのいくつかは、フルネームと短いエイリアスの2回表示されています。
125113 #[ parse( CslStyle :: parse( engine, args) ?) ]
126114 #[ default( CslStyle :: from_name( "ieee" ) . unwrap( ) ) ]
127115 pub style : CslStyle ,
0 commit comments