diff --git a/crates/typst-library/src/layout/page.rs b/crates/typst-library/src/layout/page.rs index 46ad139e6a..af420d9f61 100644 --- a/crates/typst-library/src/layout/page.rs +++ b/crates/typst-library/src/layout/page.rs @@ -175,7 +175,7 @@ pub struct PageElem { /// 印刷規模が大きい場合は、このプロパティを設定せず、あらかじめ染色された用紙を調達したほうが環境にも優しくコスト削減もできるでしょう。 /// /// `{none}`に設定すると背景は透明になります。 - /// ビューワーではPDFのページに(通常は白色の)背景があるように見えますが、実際は透明であることに注意してください(印刷時には背景に色が使用されません)。 + /// ビューアーではPDFのページに(通常は白色の)背景があるように見えますが、実際は透明であることに注意してください(印刷時には背景に色が使用されません)。 /// /// デフォルト値の`{auto}`は、PDF出力の場合は`{none}`となり、PNGおよびSVG出力の場合は`{white}`になります。 /// diff --git a/crates/typst-library/src/model/document.rs b/crates/typst-library/src/model/document.rs index 1bce6b3575..c3ce706195 100644 --- a/crates/typst-library/src/model/document.rs +++ b/crates/typst-library/src/model/document.rs @@ -7,12 +7,12 @@ use crate::foundations::{ StyleChain, Styles, Value, }; -/// The root element of a document and its metadata. +/// 文書とそのメタデータのルート要素。 /// -/// All documents are automatically wrapped in a `document` element. You cannot -/// create a document element yourself. This function is only used with -/// [set rules]($styling/#set-rules) to specify document metadata. Such a set -/// rule must not occur inside of any layout container. +/// すべての文書は、自動的に`document`(文書)要素でラップされます。 +/// この文書要素は自分で作成することはできません。 +/// この関数は、[setルール]($styling/#set-rules)と組み合わせて文書のメタデータを指定する場合にのみ使用されます。 +/// setルールは、レイアウトコンテナの内部に置いてはいけません。 /// /// ```example /// #set document(title: [Hello]) @@ -21,41 +21,37 @@ use crate::foundations::{ /// embeds metadata into the PDF! /// ``` /// -/// Note that metadata set with this function is not rendered within the -/// document. Instead, it is embedded in the compiled PDF file. +/// この関数で設定したメタデータは、文書内には表示されません。 +/// 代わりに、コンパイルされたPDFファイル内に埋め込まれます。 #[elem(Construct)] pub struct DocumentElem { - /// The document's title. This is often rendered as the title of the - /// PDF viewer window. + /// 文書のタイトル。 + /// これはPDFビューアーのウィンドウタイトルとして表示されることが多いです。 /// - /// While this can be arbitrary content, PDF viewers only support plain text - /// titles, so the conversion might be lossy. + /// これはコンテンツで指定可能ですが、PDFビューアーがプレーンテキストのタイトルしかサポートしないために、変換時に情報が失われる可能性があります。 #[ghost] pub title: Option, - /// The document's authors. + /// 文書の著者。 #[ghost] pub author: OneOrMultiple, - /// The document's description. + /// 文書の説明。 #[ghost] pub description: Option, - /// The document's keywords. + /// 文書のキーワード。 #[ghost] pub keywords: OneOrMultiple, - /// The document's creation date. + /// 文書の作成日。 /// - /// If this is `{auto}` (default), Typst uses the current date and time. - /// Setting it to `{none}` prevents Typst from embedding any creation date - /// into the PDF metadata. + /// これを`{auto}`(デフォルト設定)とすると、Typstは現在の日時を使用します。 + /// `{none}`とすると、PDFメタデータに作成日時を埋め込まなくなります。 /// - /// The year component must be at least zero in order to be embedded into a - /// PDF. + /// PDFに埋め込むためには、yearの値が0以上でなくてはなりません。 /// - /// If you want to create byte-by-byte reproducible PDFs, set this to - /// something other than `{auto}`. + /// バイト単位で同一に再現できるPDFを出力したい場合には、`{auto}`以外の値を設定してください。 #[ghost] pub date: Smart>, } diff --git a/docs/glossary.md b/docs/glossary.md index 4279516b4c..47ef874c6c 100644 --- a/docs/glossary.md +++ b/docs/glossary.md @@ -11,7 +11,8 @@ description: | | --- | --- | --- | | Typst | Typst | 翻訳対象のプロジェクト名、訳しません | | typesetting | 組版 | Typstの主要機能 | -| documentation | ドキュメント | | +| documentation | ドキュメント | [公式ドキュメント](https://typst.app/docs)、[日本語ドキュメント](https://typst-jp.github.io/docs/)など | +| document | 文書 | [文書]($document)を参照 | | content | コンテンツ | 型の一種で、マークアップによって表される | | element | 要素 | 見出し、数式、表などの文書を構成する要素 | | element function | 要素関数 | [要素関数]($function/#element-functions)を参照 | diff --git a/website/translation-status.json b/website/translation-status.json index 770b682bff..7fc0304ffe 100644 --- a/website/translation-status.json +++ b/website/translation-status.json @@ -46,7 +46,7 @@ "/docs/reference/model/bibliography/": "translated", "/docs/reference/model/list/": "translated", "/docs/reference/model/cite/": "translated", - "/docs/reference/model/document/": "untranslated", + "/docs/reference/model/document/": "translated", "/docs/reference/model/emph/": "translated", "/docs/reference/model/figure/": "translated", "/docs/reference/model/footnote/": "translated",