Skip to content
Merged
Show file tree
Hide file tree
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion crates/typst-library/src/layout/page.rs
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ pub struct PageElem {
/// 印刷規模が大きい場合は、このプロパティを設定せず、あらかじめ染色された用紙を調達したほうが環境にも優しくコスト削減もできるでしょう。
///
/// `{none}`に設定すると背景は透明になります。
/// ビューワーではPDFのページに(通常は白色の)背景があるように見えますが、実際は透明であることに注意してください(印刷時には背景に色が使用されません)。
/// ビューアーではPDFのページに(通常は白色の)背景があるように見えますが、実際は透明であることに注意してください(印刷時には背景に色が使用されません)。
///
/// デフォルト値の`{auto}`は、PDF出力の場合は`{none}`となり、PNGおよびSVG出力の場合は`{white}`になります。
///
Expand Down
40 changes: 18 additions & 22 deletions crates/typst-library/src/model/document.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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])
Expand All @@ -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<Content>,

/// The document's authors.
/// 文書の著者。
#[ghost]
pub author: OneOrMultiple<EcoString>,

/// The document's description.
/// 文書の説明。
#[ghost]
pub description: Option<Content>,

/// The document's keywords.
/// 文書のキーワード。
#[ghost]
pub keywords: OneOrMultiple<EcoString>,

/// 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<Option<Datetime>>,
}
Expand Down
3 changes: 2 additions & 1 deletion docs/glossary.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)を参照 |
Expand Down
2 changes: 1 addition & 1 deletion website/translation-status.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down