From 011ee8ff393630e3adbed735e14193a9a1a3e468 Mon Sep 17 00:00:00 2001 From: gomazarashi Date: Thu, 14 Aug 2025 01:28:40 +0900 Subject: [PATCH 1/8] =?UTF-8?q?`/docs/reference/pdf/`=E3=81=AE=E7=BF=BB?= =?UTF-8?q?=E8=A8=B3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- website/translation-status.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/website/translation-status.json b/website/translation-status.json index 5ad986555b..32af8f3f0e 100644 --- a/website/translation-status.json +++ b/website/translation-status.json @@ -159,7 +159,7 @@ "/docs/reference/data-loading/toml/": "untranslated", "/docs/reference/data-loading/xml/": "untranslated", "/docs/reference/data-loading/yaml/": "untranslated", - "/docs/reference/pdf/": "untranslated", + "/docs/reference/pdf/": "translated", "/docs/reference/pdf/embed/": "untranslated", "/docs/reference/html/": "untranslated", "/docs/reference/html/elem/": "untranslated", From 9fb6fcf296c4771635471af3e6efa9cc054d2bd9 Mon Sep 17 00:00:00 2001 From: gomazarashi Date: Sat, 16 Aug 2025 17:07:49 +0900 Subject: [PATCH 2/8] =?UTF-8?q?=E7=BF=BB=E8=A8=B3=E5=AE=8C=E4=BA=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- crates/typst-library/src/pdf/embed.rs | 2 +- docs/reference/export/pdf.md | 114 +++++++++++++------------- 2 files changed, 58 insertions(+), 58 deletions(-) diff --git a/crates/typst-library/src/pdf/embed.rs b/crates/typst-library/src/pdf/embed.rs index f902e7f14a..2fbc200343 100644 --- a/crates/typst-library/src/pdf/embed.rs +++ b/crates/typst-library/src/pdf/embed.rs @@ -10,7 +10,7 @@ use crate::foundations::{ use crate::introspection::Locatable; use crate::World; -/// A file that will be embedded into the output PDF. +/// 出力されるPDFに埋め込まれるファイル。 /// /// This can be used to distribute additional files that are related to the PDF /// within it. PDF readers will display the files in a file listing. diff --git a/docs/reference/export/pdf.md b/docs/reference/export/pdf.md index b220ae9469..bb4d7cdee6 100644 --- a/docs/reference/export/pdf.md +++ b/docs/reference/export/pdf.md @@ -1,71 +1,71 @@ -PDF files focus on accurately describing documents visually, but also have -facilities for annotating their structure. This hybrid approach makes -them a good fit for document exchange: They render exactly the same on every -device, but also support extraction of a document's content and structure (at -least to an extent). Unlike PNG files, PDFs are not bound to a specific -resolution. Hence, you can view them at any size without incurring a loss of -quality. +PDFファイルは文書を視覚的に正確に記述することに重点を置いていますが、文書構造に注釈をつける機能も備えています。 +このハイブリッドなアプローチにより、 +PDFファイルは文書交換に適した形式となっています。 +どの端末でもまったく同じ見た目で表示される一方、 +内容や構造を(少なくともある程度は)抽出することも可能であるためです。 +PNGファイルとは異なり、PDFファイルは特定の解像度に縛られません。 +これによって、品質を損なうことなく任意のサイズでファイルを閲覧することができます。 -# PDF standards -The International Standards Organization (ISO) has published the base PDF -standard and various standards that extend it to make PDFs more suitable for -specific use-cases. By default, Typst exports PDF 1.7 files. Adobe Acrobat 8 and -later as well as all other commonly used PDF viewers are compatible with this -PDF version. +# PDF規格 +国際標準化機構(ISO)は、基本となるPDF規格に加え、 +特定の用途により適した形でPDFを利用できるようにする各種拡張規格を公開しています。 +TypstはデフォルトでPDF 1.7形式のファイルをエクスポートします。 +Adobe Acrobat 8以降および一般的に使用されているほとんどのPDFビューアーは +このPDFバージョンとの互換性があります。 ## PDF/A -Typst optionally supports emitting PDF/A-conformant files. PDF/A files are -geared towards maximum compatibility with current and future PDF tooling. They -do not rely on difficult-to-implement or proprietary features and contain -exhaustive metadata. This makes them suitable for long-term archival. +TypstはオプションでPDF/A準拠ファイルの出力をサポートしています。 +PDF/Aファイルは、現在および将来のPDF用ツールとの最大限の互換性を目的として設計された形式です。 +この形式は実装が困難な機能や独自仕様に依存せず、網羅的なメタデータを含みます。 +これにより、長期的なアーカイブに適した形式となっています。 -The PDF/A Standard has multiple versions (_parts_ in ISO terminology) and most -parts have multiple profiles that indicate the file's conformance level. -Currently, Typst supports these PDF/A output profiles: +PDF/A規格には複数のバージョン(ISOにおける用語では _パート_)があり、 +ほとんどのパートにはファイルの適合レベルを示す複数のプロファイルが存在します。 +現在、Typstは以下のPDF/A出力プロファイルをサポートしています。 -- PDF/A-2b: The basic conformance level of ISO 19005-2. This version of PDF/A is - based on PDF 1.7 and results in self-contained, archivable PDF files. +- PDF/A-2b: ISO 19005-2における基本適合レベル。 + このPDF/AバージョンはPDF 1.7を基盤としており、自己完結型でアーカイブ可能なPDFファイルを生成します。 -- PDF/A-3b: The basic conformance level of ISO 19005-3. This version of PDF/A is - based on PDF 1.7 and results in archivable PDF files that can contain - arbitrary other related files as [attachments]($pdf.embed). The only - difference between it and PDF/A-2b is the capability to embed - non-PDF/A-conformant files within. +- PDF/A-3b: ISO 19005-3における基本適合レベル。 + このPDF/AバージョンはPDF 1.7を基盤としており、 + 任意の関連ファイルを[添付ファイル]($pdf.embed)として含むことができるアーカイブ可能なPDFファイルを生成します。 + PDF/A-2bとの違いは、 + PDF/A非準拠のファイルを埋め込む機能がある点です。 -When choosing between exporting PDF/A and regular PDF, keep in mind that PDF/A -files contain additional metadata, and that some readers will prevent the user -from modifying a PDF/A file. Some features of Typst may be disabled depending on -the PDF standard you choose. +PDF/Aと通常のPDF/Aのどちらをエクスポートするかを選択する際には、 +PDF/Aファイルには追加のメタデータが含まれ、 +また一部のリーダーはユーザーによるPDF/Aファイルの修正を阻止することに留意してください。 +一部のTypstの機能は、選択したPDF規格によって無効化される場合があります。 -# Exporting as PDF -## Command Line -PDF is Typst's default export format. Running the `compile` or `watch` -subcommand without specifying a format will create a PDF. When exporting to PDF, -you have the following configuration options: +# PDF形式でのエクスポート +## コマンドライン +PDFはTypstのデフォルトのエクスポート形式です。 +`compile`または`watch`サブコマンドをフォーマットを指定せずに実行すると、PDFが作成されます。 +PDF形式でエクスポートする際には、以下の設定オプションが指定可能です。 -- Which PDF standards Typst should enforce conformance with by specifying - `--pdf-standard` followed by one or multiple comma-separated standards. Valid - standards are `1.7`, `a-2b`, and `a-3b`. By default, Typst outputs - PDF-1.7-compliant files. +- `--pdf-standard`の後に1つまたは複数のカンマ区切りの規格を指定することで、 + Typstが準拠を強制するPDF規格を指定します。 + 指定可能な規格は`1.7`、`a-2b`、`a-3b`です。 + デフォルトではPDF-1.7に準拠したファイルが出力されます。 -- Which pages to export by specifying `--pages` followed by a comma-separated - list of numbers or dash-separated number ranges. Ranges can be half-open. - Example: `2,3,7-9,11-`. +- `--pages` の後に、カンマ区切りのページ番号またはダッシュによる番号範囲を指定することで、エクスポートするページを指定します。 + 範囲指定は半開区間にすることもできます。 + 例:2,3,7-9,11-。 -## Web App -Click the quick download button at the top right to export a PDF with default -settings. For further configuration, click "File" > "Export as" > "PDF" or click -the downwards-facing arrow next to the quick download button and select "Export -as PDF". When exporting to PDF, you have the following configuration options: +## Webアプリ +右上のクイックダウンロードボタンをクリックすると、デフォルト設定でPDFがエクスポートされます。 +さらに設定を行う場合は、「File」>「Export as」>「PDF」を選択するか、 +クイックダウンロードボタンの横にある下向き矢印をクリックして「Export as PDF」を選択します。 +PDF形式でエクスポートする際には、以下の設定項目を指定できます。 -- Which PDF standards Typst should enforce conformance with. By default, Typst - outputs PDF-1.7-compliant files. Valid additional standards are `A-2b` and - `A-3b`. +- Typstが準拠を強制するPDF規格。 + デフォルトではPDF-1.7準拠のファイルが出力されます。 + 指定可能な追加規格は`A-2b`と`A-3b`です。 -- Which pages to export. Valid options are "All pages", "Current page", and - "Custom ranges". Custom ranges are a comma-separated list of numbers or - dash-separated number ranges. Ranges can be half-open. Example: `2,3,7-9,11-`. +- エクスポートするページ。有効なオプションは「All pages(全てのページ)」、「Current page(現在のページ)」、および「Custom ranges(カスタム範囲)」です。 + カスタム範囲は、カンマ区切りの番号リストまたはダッシュで区切られた番号範囲です。 + 範囲は半開区間にすることもできます。例:`2,3,7-9,11-`。 -# PDF-specific functionality -Typst exposes PDF-specific functionality in the global `pdf` module. See below -for the definitions it contains. +# PDF固有の機能 +Typstでは、グローバルな`pdf`モジュールを通じてPDFに特化した機能を提供しています。 +そのモジュールに含まれる定義については、以下を参照してください。 From c7e3c4acc53b04ab41bef62f15cb4835840b9993 Mon Sep 17 00:00:00 2001 From: gomazarashi <60730277+gomazarashi@users.noreply.github.com> Date: Sat, 16 Aug 2025 17:19:16 +0900 Subject: [PATCH 3/8] Update docs/reference/export/pdf.md Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- docs/reference/export/pdf.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/reference/export/pdf.md b/docs/reference/export/pdf.md index bb4d7cdee6..77c044aa0d 100644 --- a/docs/reference/export/pdf.md +++ b/docs/reference/export/pdf.md @@ -32,7 +32,7 @@ PDF/A規格には複数のバージョン(ISOにおける用語では _パー PDF/A-2bとの違いは、 PDF/A非準拠のファイルを埋め込む機能がある点です。 -PDF/Aと通常のPDF/Aのどちらをエクスポートするかを選択する際には、 +PDF/Aと通常のPDFのどちらをエクスポートするかを選択する際には、 PDF/Aファイルには追加のメタデータが含まれ、 また一部のリーダーはユーザーによるPDF/Aファイルの修正を阻止することに留意してください。 一部のTypstの機能は、選択したPDF規格によって無効化される場合があります。 From b830bd2b6d7875a2d5e912b2b8da4a1ca28d1188 Mon Sep 17 00:00:00 2001 From: gomazarashi <60730277+gomazarashi@users.noreply.github.com> Date: Sat, 16 Aug 2025 22:16:56 +0900 Subject: [PATCH 4/8] =?UTF-8?q?"only"=E3=81=AE=E8=A8=B3=E6=8A=9C=E3=81=91?= =?UTF-8?q?=E3=82=92=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: ultimatile --- docs/reference/export/pdf.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/reference/export/pdf.md b/docs/reference/export/pdf.md index 77c044aa0d..bafddb5d1e 100644 --- a/docs/reference/export/pdf.md +++ b/docs/reference/export/pdf.md @@ -30,7 +30,7 @@ PDF/A規格には複数のバージョン(ISOにおける用語では _パー このPDF/AバージョンはPDF 1.7を基盤としており、 任意の関連ファイルを[添付ファイル]($pdf.embed)として含むことができるアーカイブ可能なPDFファイルを生成します。 PDF/A-2bとの違いは、 - PDF/A非準拠のファイルを埋め込む機能がある点です。 + PDF/A非準拠のファイルを埋め込む機能がある点のみです。 PDF/Aと通常のPDFのどちらをエクスポートするかを選択する際には、 PDF/Aファイルには追加のメタデータが含まれ、 From 3759106597b9a61efcfac6facbaf9886a7122c47 Mon Sep 17 00:00:00 2001 From: gomazarashi Date: Sat, 16 Aug 2025 22:21:39 +0900 Subject: [PATCH 5/8] =?UTF-8?q?=E8=AA=A4=E8=A7=A3=E3=82=92=E6=8B=9B?= =?UTF-8?q?=E3=81=8F=E8=A1=A8=E7=8F=BE=E3=81=AE=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 「よって」→「よっては」に修正しました --- docs/reference/export/pdf.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/reference/export/pdf.md b/docs/reference/export/pdf.md index bafddb5d1e..2b64aa6e39 100644 --- a/docs/reference/export/pdf.md +++ b/docs/reference/export/pdf.md @@ -35,7 +35,7 @@ PDF/A規格には複数のバージョン(ISOにおける用語では _パー PDF/Aと通常のPDFのどちらをエクスポートするかを選択する際には、 PDF/Aファイルには追加のメタデータが含まれ、 また一部のリーダーはユーザーによるPDF/Aファイルの修正を阻止することに留意してください。 -一部のTypstの機能は、選択したPDF規格によって無効化される場合があります。 +一部のTypstの機能は、選択したPDF規格によっては無効化される場合があります。 # PDF形式でのエクスポート ## コマンドライン From 0ebe0cc9e23dda63b75dff08bf18dddac2d2f22f Mon Sep 17 00:00:00 2001 From: gomazarashi <60730277+gomazarashi@users.noreply.github.com> Date: Sat, 16 Aug 2025 22:25:24 +0900 Subject: [PATCH 6/8] =?UTF-8?q?=E4=B8=8D=E8=A6=81=E3=81=AA=E3=83=8F?= =?UTF-8?q?=E3=82=A4=E3=83=95=E3=83=B3=E3=82=92=E5=89=8A=E9=99=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: ultimatile --- docs/reference/export/pdf.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/reference/export/pdf.md b/docs/reference/export/pdf.md index 2b64aa6e39..86a9b24596 100644 --- a/docs/reference/export/pdf.md +++ b/docs/reference/export/pdf.md @@ -46,7 +46,7 @@ PDF形式でエクスポートする際には、以下の設定オプション - `--pdf-standard`の後に1つまたは複数のカンマ区切りの規格を指定することで、 Typstが準拠を強制するPDF規格を指定します。 指定可能な規格は`1.7`、`a-2b`、`a-3b`です。 - デフォルトではPDF-1.7に準拠したファイルが出力されます。 + デフォルトではPDF 1.7に準拠したファイルが出力されます。 - `--pages` の後に、カンマ区切りのページ番号またはダッシュによる番号範囲を指定することで、エクスポートするページを指定します。 範囲指定は半開区間にすることもできます。 From 9152521b4a7e149237de3052445ee3390d1aa944 Mon Sep 17 00:00:00 2001 From: gomazarashi <60730277+gomazarashi@users.noreply.github.com> Date: Sun, 17 Aug 2025 09:10:11 +0900 Subject: [PATCH 7/8] =?UTF-8?q?=E4=B8=8D=E8=A6=81=E3=81=AA=E3=83=8F?= =?UTF-8?q?=E3=82=A4=E3=83=95=E3=83=B3=E3=82=92=E5=89=8A=E9=99=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: ultimatile --- docs/reference/export/pdf.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/reference/export/pdf.md b/docs/reference/export/pdf.md index 86a9b24596..82c9c3c7ad 100644 --- a/docs/reference/export/pdf.md +++ b/docs/reference/export/pdf.md @@ -59,7 +59,7 @@ PDF形式でエクスポートする際には、以下の設定オプション PDF形式でエクスポートする際には、以下の設定項目を指定できます。 - Typstが準拠を強制するPDF規格。 - デフォルトではPDF-1.7準拠のファイルが出力されます。 + デフォルトではPDF 1.7準拠のファイルが出力されます。 指定可能な追加規格は`A-2b`と`A-3b`です。 - エクスポートするページ。有効なオプションは「All pages(全てのページ)」、「Current page(現在のページ)」、および「Custom ranges(カスタム範囲)」です。 From de509e55087c3915e88452129619e724b14aefb6 Mon Sep 17 00:00:00 2001 From: gomazarashi <60730277+gomazarashi@users.noreply.github.com> Date: Mon, 18 Aug 2025 00:44:34 +0900 Subject: [PATCH 8/8] =?UTF-8?q?=E3=83=90=E3=83=83=E3=82=AF=E3=82=AF?= =?UTF-8?q?=E3=82=A9=E3=83=BC=E3=83=88=E3=81=8C=E5=A4=96=E3=82=8C=E3=81=A6?= =?UTF-8?q?=E3=81=84=E3=81=9F=E3=81=AE=E3=82=92=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Shunsuke KIMURA --- docs/reference/export/pdf.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/reference/export/pdf.md b/docs/reference/export/pdf.md index 82c9c3c7ad..0059bb0b4a 100644 --- a/docs/reference/export/pdf.md +++ b/docs/reference/export/pdf.md @@ -50,7 +50,7 @@ PDF形式でエクスポートする際には、以下の設定オプション - `--pages` の後に、カンマ区切りのページ番号またはダッシュによる番号範囲を指定することで、エクスポートするページを指定します。 範囲指定は半開区間にすることもできます。 - 例:2,3,7-9,11-。 + 例:`2,3,7-9,11-`。 ## Webアプリ 右上のクイックダウンロードボタンをクリックすると、デフォルト設定でPDFがエクスポートされます。