@@ -7,12 +7,12 @@ use crate::foundations::{
77 StyleChain , Styles , Value ,
88} ;
99
10- /// The root element of a document and its metadata.
10+ /// 文書とそのメタデータのルート要素。
1111///
12- /// All documents are automatically wrapped in a `document` element. You cannot
13- /// create a document element yourself. This function is only used with
14- /// [set rules ]($styling/#set-rules) to specify document metadata. Such a set
15- /// rule must not occur inside of any layout container.
12+ /// すべての文書は、自動的に `document`(文書)要素でラップされます。
13+ /// この文書要素は自分で作成することはできません。
14+ /// この関数は、[setルール ]($styling/#set-rules)と組み合わせて文書のメタデータを指定する場合にのみ使用されます。
15+ /// setルールは、レイアウトコンテナの内部に置いてはいけません。
1616///
1717/// ```example
1818/// #set document(title: [Hello])
@@ -21,41 +21,37 @@ use crate::foundations::{
2121/// embeds metadata into the PDF!
2222/// ```
2323///
24- /// Note that metadata set with this function is not rendered within the
25- /// document. Instead, it is embedded in the compiled PDF file.
24+ /// この関数で設定したメタデータは、文書内には表示されません。
25+ /// 代わりに、コンパイルされたPDFファイル内に埋め込まれます。
2626#[ elem( Construct ) ]
2727pub struct DocumentElem {
28- /// The document's title. This is often rendered as the title of the
29- /// PDF viewer window.
28+ /// 文書のタイトル。
29+ /// これはPDFビューアーのウィンドウタイトルとして表示されることが多いです。
3030 ///
31- /// While this can be arbitrary content, PDF viewers only support plain text
32- /// titles, so the conversion might be lossy.
31+ /// これはコンテンツで指定可能ですが、PDFビューアーがプレーンテキストのタイトルしかサポートしないために、変換時に情報が失われる可能性があります。
3332 #[ ghost]
3433 pub title : Option < Content > ,
3534
36- /// The document's authors.
35+ /// 文書の著者。
3736 #[ ghost]
3837 pub author : OneOrMultiple < EcoString > ,
3938
40- /// The document's description.
39+ /// 文書の説明。
4140 #[ ghost]
4241 pub description : Option < Content > ,
4342
44- /// The document's keywords.
43+ /// 文書のキーワード。
4544 #[ ghost]
4645 pub keywords : OneOrMultiple < EcoString > ,
4746
48- /// The document's creation date.
47+ /// 文書の作成日。
4948 ///
50- /// If this is `{auto}` (default), Typst uses the current date and time.
51- /// Setting it to `{none}` prevents Typst from embedding any creation date
52- /// into the PDF metadata.
49+ /// これを`{auto}`(デフォルト設定)とすると、Typstは現在の日時を使用します。
50+ /// `{none}`とすると、PDFメタデータに作成日時を埋め込まなくなります。
5351 ///
54- /// The year component must be at least zero in order to be embedded into a
55- /// PDF.
52+ /// PDFに埋め込むためには、yearの値が0以上でなくてはなりません。
5653 ///
57- /// If you want to create byte-by-byte reproducible PDFs, set this to
58- /// something other than `{auto}`.
54+ /// バイト単位で同一に再現できるPDFを出力したい場合には、`{auto}`以外の値を設定してください。
5955 #[ ghost]
6056 pub date : Smart < Option < Datetime > > ,
6157}
0 commit comments