Debian Codegraph @

docs/locales/ja/LC_MESSAGES/tutorial.po

raw
1 # PyMuPDF Japanese documentation
2 # Copyright (C) 2015-2023, Artifex
3 # This file is distributed under the same license as the PyMuPDF package.
4 # Jamie Lemon <[email protected]>, 2023.
5 #
6 #, fuzzy
7 msgid ""
8 msgstr ""
9 "Project-Id-Version: PyMuPDF 1.23.0rc1\n"
10 "Report-Msgid-Bugs-To: \n"
11 "POT-Creation-Date: 2025-11-25 23:33+0000\n"
12 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
13 "Last-Translator: Suzan Sanver <[email protected]>\n"
14 "Language: ja\n"
15 "Language-Team: ja <[email protected]>\n"
16 "Plural-Forms: nplurals=1; plural=0;\n"
17 "MIME-Version: 1.0\n"
18 "Content-Type: text/plain; charset=utf-8\n"
19 "Content-Transfer-Encoding: 8bit\n"
20 "Generated-By: Babel 2.10.3\n"
21
22 #: ../../header.rst:-1 af1c872c0c8149488a828ec57db0d05a
23 msgid "Artifex"
24 msgstr ""
25
26 #: ../../header.rst:-1 5f296e40a5a84c7db71c20c23cf034c9
27 msgid ""
28 "PyMuPDF is a high-performance Python library for data extraction, "
29 "analysis, conversion & manipulation of PDF (and other) documents."
30 msgstr "PyMuPDF は、PDF (およびその他の)ドキュメントのデータ抽出、分析、変換、操作のための高性能な Python ライブラリです。"
31
32 #: ../../header.rst:-1 6ce8107c629e456a909666cce87fe6bd
33 msgid ""
34 "PDF Text Extraction, PDF Image Extraction, PDF Conversion, PDF Tables, "
35 "PDF Splitting, PDF Creation, Pyodide, PyScript"
36 msgstr "PDFテキスト抽出、PDFイメージ抽出、PDF変換、PDFテーブル、PDF分割、PDF作成, Pyodide, PyScript"
37
38 #: ../../tutorial.rst:8 939af6d1c28b485eb4ff9f7d7027d32c
39 msgid "Tutorial"
40 msgstr "チュートリアル"
41
42 #: ../../tutorial.rst:12 4f39e913a37d45aaaae25d581b6b21a5
43 msgid ""
44 "This tutorial will show you the use of |PyMuPDF|, |MuPDF| in Python, step"
45 " by step."
46 msgstr "このチュートリアルでは、PythonでのPyMuPDF、MuPDFのステップバイステップの使用方法を紹介します。"
47
48 #: ../../tutorial.rst:14 5a427c507e6b44479862e8eb2c0a69ba
49 msgid ""
50 "Because |MuPDF| supports not only PDF, but also XPS, OpenXPS, CBZ, CBR, "
51 "FB2 and EPUB formats, so does |PyMuPDF| [#f1]_. Nevertheless, for the "
52 "sake of brevity we will only talk about PDF files. At places where indeed"
53 " only PDF files are supported, this will be mentioned explicitly."
54 msgstr "MuPDFはPDFだけでなく、XPS、OpenXPS、CBZ、CBR、FB2、EPUB形式もサポートしており、PyMuPDFも同様です[1]。ただし、簡潔さのために、ここではPDFファイルについてのみ話を進めます。本当にPDFファイルのみがサポートされている場所では、明示的にその旨を記述します。"
55
56 #: ../../tutorial.rst:16 b2c324e1eda6484681a5b98002f9f022
57 msgid ""
58 "In addition to this introduction, please do visit PyMuPDF's `YouTube "
59 "Channel <https://www.youtube.com/@PyMuPDF>`_ which covers most of the "
60 "following in the form of YouTube \"Shorts\" and longer videos."
61 msgstr ""
62 "このイントロダクションに加えて、ぜひ `PyMuPDF の YouTube "
63 "<https://www.youtube.com/@PyMuPDF>`_ チャンネル "
64 "もご覧ください。以下の内容の多くが、YouTubeの「ショート動画」や長編動画の形式で紹介されています。"
65
66 #: ../../tutorial.rst:19 c23da3317c5d43fdadba3fa7c99c3afc
67 msgid "Importing the Bindings"
68 msgstr "バインディングのインポート"
69
70 #: ../../tutorial.rst:20 a04dcd4a09c3420f950b46d664276cd8
71 msgid ""
72 "The Python bindings to MuPDF are made available by this import statement."
73 " We also show here how your version can be checked::"
74 msgstr "MuPDFへのPythonバインディングは、このインポート文によって利用可能になります。また、ここではあなたのバージョンを確認する方法も示します::"
75
76 #: ../../tutorial.rst:30 56adbb5b22484758912815cc290316d8
77 msgid "Note on the Name *fitz*"
78 msgstr "*fitz* という名前についての注意事項"
79
80 #: ../../tutorial.rst:32 3b2a413d1d2040d38bbc841d83f98d16
81 msgid ""
82 "Old versions of |PyMuPDF| had their **Python** import name as `fitz`. "
83 "Newer versions use `pymupdf` instead, and offer `fitz` as a fallback so "
84 "that old code will still work."
85 msgstr "このライブラリのPythonのトップレベルインポート名は **\"fitz\"** です。 これには歴史的な理由があります:"
86
87 #: ../../tutorial.rst:34 e7ad072736bc434da33243355f43a143
88 msgid "The reason for the name `fitz` is a historical curiosity:"
89 msgstr "これには歴史的な理由があります:"
90
91 #: ../../tutorial.rst:36 0a1388985e214bc8803f67a3cdc99664
92 msgid "The original rendering library for MuPDF was called *Libart*."
93 msgstr "MuPDFの元々のレンダリングライブラリは *Libart* と呼ばれていました。"
94
95 #: ../../tutorial.rst:38 6bb98d1d5fd843a9a823b5a023f389e8
96 msgid ""
97 "*\"After Artifex Software acquired the MuPDF project, the development "
98 "focus shifted on writing a new modern graphics library called \"Fitz\". "
99 "Fitz was originally intended as an R&D project to replace the aging "
100 "Ghostscript graphics library, but has instead become the rendering engine"
101 " powering MuPDF.\"* (Quoted from `Wikipedia "
102 "<https://en.wikipedia.org/wiki/MuPDF>`_)."
103 msgstr ""
104 "「 Artifex SoftwareがMuPDFプロジェクトを取得した後、開発の焦点は新しいモダンなグラフィックスライブラリ "
105 "\"Fitz\"の開発に移りました。 "
106 "Fitzの開発に移りました。Fitzは元々古くなったGhostscriptグラフィックスライブラリを置き換えるためのR&Dプロジェクトとして意図されていましたが、代わりにMuPDFを駆動するレンダリングエンジンになりました。」*"
107 " ( `Wikipedia <https://en.wikipedia.org/wiki/MuPDF>`_ より引用 ) 。"
108
109 #: ../../tutorial.rst:42 f0b608072e0948f0a8d5019e86f78ae4
110 msgid ""
111 "Use of legacy name `fitz` can fail if defunct pypi.org package `fitz` is "
112 "installed; see :ref:`problems-after-installation`."
113 msgstr ""
114
115 #: ../../tutorial.rst:48 5b6f4f47d3d14b3dabbafb6419e1bfd3
116 msgid "Opening a Document"
117 msgstr "ドキュメントの開く"
118
119 #: ../../tutorial.rst:50 bad87b705ed349689aeb233740a2a4dd
120 msgid ""
121 "To access a :ref:`supported document<Supported_File_Types>`, it must be "
122 "opened with the following statement::"
123 msgstr ":ref:`サポートされているドキュメント <Supported_File_Types>` にアクセスするには、次の文で開く必要があります::"
124
125 #: ../../tutorial.rst:54 8ee29d11c6664eaba2d74e39fe256992
126 msgid ""
127 "This creates the :ref:`Document` object *doc*. *filename* must be a "
128 "Python string (or a `pathlib.Path`) specifying the name of an existing "
129 "file."
130 msgstr ""
131 "これにより、 :ref:`Document` "
132 "オブジェクトdocが作成されます。filenameは、既存のファイルの名前を指定するPythonの文字列(または `pathlib.Path` "
133 ")である必要があります。"
134
135 #: ../../tutorial.rst:56 fd7dc22114c4467ea703f11c5e4ddad9
136 msgid ""
137 "It is also possible to open a document from memory data, or to create a "
138 "new, empty PDF. See :ref:`Document` for details. You can also use "
139 ":ref:`Document` as a *context manager*."
140 msgstr ""
141 "また、メモリデータからドキュメントを開くことや、新しい空のPDFを作成することも可能です。詳細については、 :ref:`Document` "
142 "を参照してください。 :ref:`Document` はコンテキストマネージャとしても使用できます。"
143
144 #: ../../tutorial.rst:58 e53b2ee3b09744bba7d0a597e3110a06
145 msgid ""
146 "A document contains many attributes and functions. Among them are meta "
147 "information (like \"author\" or \"subject\"), number of total pages, "
148 "outline and encryption information."
149 msgstr "ドキュメントには多くの属性と関数が含まれています。その中には、メタ情報(「author」や「subject」など)、総ページ数、アウトライン、暗号化情報などがあります。"
150
151 #: ../../tutorial.rst:61 ed2d7a85b35c446faacb3600235eef21
152 msgid "Some :ref:`Document` Methods and Attributes"
153 msgstr "いくつかの :ref:`Document` メソッドと属"
154
155 #: ../../tutorial.rst:64 3b4470725538483087f6877a0b238a75
156 msgid "**Method / Attribute**"
157 msgstr "**メソッド / 属性**"
158
159 #: ../../tutorial.rst:64 348a919c08be4e7bacbcbdebf6aadceb
160 msgid "**Description**"
161 msgstr "説明"
162
163 #: ../../tutorial.rst:66 3c58bb5e0cfd4357bf595f5730c490f5
164 msgid ":attr:`Document.page_count`"
165 msgstr ""
166
167 #: ../../tutorial.rst:66 71bcf48456184a0a864819c5c6c6b639
168 msgid "the number of pages (*int*)"
169 msgstr "ページ数 (*int*)"
170
171 #: ../../tutorial.rst:67 a9ca3bea8587466696f8c3a412c51474
172 msgid ":attr:`Document.metadata`"
173 msgstr ""
174
175 #: ../../tutorial.rst:67 5d63c2f5c2bf442da412566cddc8f0da
176 msgid "the metadata (*dict*)"
177 msgstr "メタデータ (*dict*)"
178
179 #: ../../tutorial.rst:68 3a230f9d11cf49c8abaabfc21332281a
180 msgid ":meth:`Document.get_toc`"
181 msgstr ""
182
183 #: ../../tutorial.rst:68 670c25d439184b3d864535494e4bc345
184 msgid "get the table of contents (*list*)"
185 msgstr "目次を取得する (*list*)"
186
187 #: ../../tutorial.rst:69 4dbf36bdcc774cfe94f6fe488e23ab70
188 msgid ":meth:`Document.load_page`"
189 msgstr ""
190
191 #: ../../tutorial.rst:69 6a5260a61382415882e9d006c179fe90
192 msgid "read a :ref:`Page`"
193 msgstr ":ref:`Page` を読む"
194
195 #: ../../tutorial.rst:73 d6bc5b209b1c4e7aa5b367e616992438
196 msgid "Accessing Meta Data"
197 msgstr "メタデータへのアクセス"
198
199 #: ../../tutorial.rst:74 5eeb7a67a3834701bda60567079af358
200 msgid ""
201 "PyMuPDF fully supports standard metadata. :attr:`Document.metadata` is a "
202 "Python dictionary with the following keys. It is available for **all "
203 "document types**, though not all entries may always contain data. For "
204 "details of their meanings and formats consult the respective manuals, "
205 "e.g. :ref:`AdobeManual` for PDF. Further information can also be found in"
206 " chapter :ref:`Document`. The meta data fields are strings or ``None`` if"
207 " not otherwise indicated. Also be aware that not all of them always "
208 "contain meaningful data -- even if they are not ``None``."
209 msgstr ""
210 "PyMuPDFは標準的なメタデータを完全にサポートしています。 :attr:`Document.metadata` "
211 "はPythonの辞書で、次のキーが含まれています。これはすべてのドキュメントタイプで利用可能ですが、すべてのエントリが常にデータを含むわけではありません。それらの意味や形式の詳細については、対応するマニュアルを参照してください。例えば、PDFの場合は"
212 " :ref:`AdobeManual` を参照してください。さらなる情報は :ref:`Document` "
213 "の章でも見つけることができます。メタデータのフィールドは文字列または ``None`` "
214 "です(特に指定がない場合)。また、それらのすべてが常に意味のあるデータを含んでいるわけではないことにも注意してください。"
215
216 #: ../../tutorial.rst:77 6c9a21d704a241029ce9b7f001b7bac5
217 msgid "Key"
218 msgstr "キー"
219
220 #: ../../tutorial.rst:77 8400973337594bcf8e3da33817744ccf
221 msgid "Value"
222 msgstr "値"
223
224 #: ../../tutorial.rst:79 6aa5ce470f8642c4af491e28af8bc999
225 msgid "producer"
226 msgstr ""
227
228 #: ../../tutorial.rst:79 52ee9d5cf1d94e4e824f1486804c0a49
229 msgid "producer (producing software)"
230 msgstr "プロデューサー(生成ソフトウェア)"
231
232 #: ../../tutorial.rst:80 85a0fa96090940f499052abc68aac361
233 msgid "format"
234 msgstr ""
235
236 #: ../../tutorial.rst:80 cd1a7dc5cfca479ca59b0e5e2b00f5bb
237 msgid "format: 'PDF-1.4', 'EPUB', etc."
238 msgstr "形式:'PDF-1.4'、'EPUB'など"
239
240 #: ../../tutorial.rst:81 96773e4fde41492a8fbc9d8e0dfffe01
241 msgid "encryption"
242 msgstr ""
243
244 #: ../../tutorial.rst:81 4b242b9f88fb40e4847a8ad0358789ec
245 msgid "encryption method used if any"
246 msgstr "暗号化方法(適用されている場合)"
247
248 #: ../../tutorial.rst:82 520e1f5cffc3419faccbecacb778ad88
249 #: adc5542c41534ce68fe9d02192b1f9e0
250 msgid "author"
251 msgstr ""
252
253 #: ../../tutorial.rst:83 d593bfa2f3f1464ca98020a5d8cc2d74
254 msgid "modDate"
255 msgstr ""
256
257 #: ../../tutorial.rst:83 49db626a877e41699ba02058512b97d9
258 msgid "date of last modification"
259 msgstr "最終更新日"
260
261 #: ../../tutorial.rst:84 ac0f4c311d9d4f91b366556afa0eac07
262 #: cad667882e9247ed9a8465e9e8f6f30e
263 msgid "keywords"
264 msgstr ""
265
266 #: ../../tutorial.rst:85 4a12c1d082794891871985009346217e
267 #: 9afee53342a24f749bd6b1695ceba4ca
268 msgid "title"
269 msgstr ""
270
271 #: ../../tutorial.rst:86 0659f2376ae84f0694559432c6acc6ab
272 msgid "creationDate"
273 msgstr ""
274
275 #: ../../tutorial.rst:86 c3e9c7f2af964de1a4ea55d6dfc87ae7
276 msgid "date of creation"
277 msgstr "作成日"
278
279 #: ../../tutorial.rst:87 f7336bfddb6c47da8c979a965fd0e200
280 msgid "creator"
281 msgstr ""
282
283 #: ../../tutorial.rst:87 cde7dc3a8d604edeb4df81869876cc12
284 msgid "creating application"
285 msgstr "作成アプリケーション"
286
287 #: ../../tutorial.rst:88 59f646e95f21440aab80a6d9eaee2cb5
288 #: dfcc9986b7404e3ea4869973f3300afb
289 msgid "subject"
290 msgstr ""
291
292 #: ../../tutorial.rst:91 e212f47f482f4ba086c347c1ee602818
293 msgid ""
294 "Apart from these standard metadata, **PDF documents** starting from PDF "
295 "version 1.4 may also contain so-called *\"metadata streams\"* (see also "
296 ":data:`stream`). Information in such streams is coded in XML. PyMuPDF "
297 "deliberately contains no XML components for this purpose (the "
298 ":ref:`PyMuPDF Xml class<Xml>` is a helper class intended to access the "
299 "DOM content of a :ref:`Story` object), so we do not directly support "
300 "access to information contained therein. But you can extract the stream "
301 "as a whole, inspect or modify it using a package like `lxml`_ and then "
302 "store the result back into the PDF. If you want, you can also delete this"
303 " data altogether."
304 msgstr ""
305 "PDFバージョン1.4以降のPDFドキュメントには、これらの標準的なメタデータに加えて、いわゆる「メタデータストリーム」(streamも参照)が含まれていることがあります。このようなストリームに含まれる情報はXMLでコード化されています。PyMuPDFは意図的にこの目的のためにXMLコンポーネントを含んでいないため("
306 " :ref:`PyMuPDF Xml class<Xml>` クラスは :ref:`Story` "
307 "オブジェクトのDOMコンテンツにアクセスするためのヘルパークラスです)、その情報への直接的なアクセスをサポートしていません。しかし、 "
308 "`lxml`_ "
309 "などのパッケージを使用してストリーム全体を抽出し、検査または変更し、その結果をPDFに再格納することはできます。必要な場合は、このデータを完全に削除することもできます。"
310
311 #: ../../tutorial.rst:93 5ec202ac5c494be3bf62e68bf5ba28b1
312 msgid ""
313 "There are two utility scripts in the repository that `metadata import "
314 "(PDF only)`_ resp. `metadata export`_ metadata from resp. to CSV files."
315 msgstr ""
316 "リポジトリには、`metadata import(PDF only)`_ および `metadata export`_ "
317 "をCSVファイルに行うための2つのユーティリティスクリプトがあります"
318
319 #: ../../tutorial.rst:96 1d31369f6b884d08a61b700b01e9e7b1
320 msgid "Working with Outlines"
321 msgstr "アウトラインと一緒に作業する"
322
323 #: ../../tutorial.rst:97 fe8e22242a324f349fca363f8d0f6348
324 msgid ""
325 "The easiest way to get all outlines (also called \"bookmarks\") of a "
326 "document, is by loading its *table of contents*::"
327 msgstr "アウトライン(または「ブックマーク」とも呼ばれる)を取得する最も簡単な方法は、そのドキュメントの目次を読み込むことです::"
328
329 #: ../../tutorial.rst:101 4fe54a9ca0244cd9871ba72a155cbe95
330 msgid ""
331 "This will return a Python list of lists *[[lvl, title, page, ...], ...]* "
332 "which looks much like a conventional table of contents found in books."
333 msgstr ""
334 "これにより、Pythonのリストであるリスト [[lvl, title, page, ...], ...] "
335 "が返されます。これは、本に見られる伝統的な目次に非常によく似たものです。"
336
337 #: ../../tutorial.rst:103 a0df1526a42e4d88bf1fb24bf14c2392
338 msgid ""
339 "*lvl* is the hierarchy level of the entry (starting from 1), *title* is "
340 "the entry's title, and *page* the page number (1-based!). Other "
341 "parameters describe details of the bookmark target."
342 msgstr ""
343 "lvl はエントリーの階層レベル(1から開始)を示し、title はエントリーのタイトル、page "
344 "はページ番号(1から始まる)を示します。その他のパラメータはブックマークのターゲットの詳細を説明します。"
345
346 #: ../../tutorial.rst:105 f60efb5302364edfb64c7775c185929b
347 msgid ""
348 "There are two utility scripts in the repository that `toc import (PDF "
349 "only)`_ resp. `toc export`_ table of contents from resp. to CSV files."
350 msgstr ""
351 "リポジトリ内には、CSVファイルから目次をインポートおよびエクスポートするためのユーティリティスクリプトが2つあります。詳細は、 `toc "
352 "import (PDF only)`_ および `toc export`_ をご覧ください。"
353
354 #: ../../tutorial.rst:108 f7e0d8ac5cd64bbfb19d5a7680f37840
355 msgid "Working with Pages"
356 msgstr "ページの操作"
357
358 #: ../../tutorial.rst:109 bea68ab57a6a4ec49fa98a57625daec3
359 msgid ":ref:`Page` handling is at the core of MuPDF's functionality."
360 msgstr ":ref:`Page` の処理はMuPDFの機能の中核です。"
361
362 #: ../../tutorial.rst:111 705fbd37cfd04f5eb2725ee74973716c
363 msgid ""
364 "You can render a page into a raster or vector (SVG) image, optionally "
365 "zooming, rotating, shifting or shearing it."
366 msgstr "ページをラスターまたはベクター(SVG)イメージにレンダリングすることができます。オプションでズーム、回転、シフト、またはシアーを行うこともできます"
367
368 #: ../../tutorial.rst:112 07346e73ca2f4851bcb7243ed707f0c5
369 msgid ""
370 "You can extract a page's text and images in many formats and search for "
371 "text strings."
372 msgstr "テキストと画像を多くの形式で抽出し、テキスト文字列を検索することができます。"
373
374 #: ../../tutorial.rst:113 b10390460b7e469d933d4b0bca64cbd8
375 msgid ""
376 "For PDF documents many more methods are available to add text or images "
377 "to pages."
378 msgstr "PDFドキュメントの場合、さらに多くのメソッドが利用可能で、テキストや画像をページに追加することができます"
379
380 #: ../../tutorial.rst:115 634af7e840c34aba910ebc8b50aac6b1
381 msgid ""
382 "First, a :ref:`Page` must be created. This is a method of "
383 ":ref:`Document`::"
384 msgstr "最初に :ref:`Page` を作成する必要があります。これは :ref:`Document` のメソッドです::"
385
386 #: ../../tutorial.rst:120 e13781020ec34c48a1d29405c5d4063b
387 msgid ""
388 "Any integer `-∞ < pno < page_count` is possible here. Negative numbers "
389 "count backwards from the end, so *doc[-1]* is the last page, like with "
390 "Python sequences."
391 msgstr ""
392 "ここでは、どんな整数 `-∞ < pno < page_count` でも可能です。負の数は末尾から逆に数えますので、doc[-1] "
393 "はPythonのシーケンスと同様に最後のページになります"
394
395 #: ../../tutorial.rst:122 4e28316907e444489cfbf10a12e27bba
396 msgid ""
397 "Some more advanced way would be using the document as an **iterator** "
398 "over its pages::"
399 msgstr "より高度な方法として、ドキュメントをそのページの **イテレータ** として使用することもできます::"
400
401 #: ../../tutorial.rst:136 84e73234fd424852a2b36c0bc15b2d9d
402 msgid "Once you have your page, here is what you would typically do with it:"
403 msgstr "ページを取得したら、通常は次のようなことを行います:"
404
405 #: ../../tutorial.rst:139 088737b71af34948b17fbe30a60a9dc4
406 msgid "Inspecting the Links, Annotations or Form Fields of a Page"
407 msgstr "リンク、注釈、またはフォームフィールドをページで調査する"
408
409 #: ../../tutorial.rst:140 80600b8ed5664159a8aad4e5b6706037
410 msgid ""
411 "Links are shown as \"hot areas\" when a document is displayed with some "
412 "viewer software. If you click while your cursor shows a hand symbol, you "
413 "will usually be taken to the target that is encoded in that hot area. "
414 "Here is how to get all links::"
415 msgstr "リンクは、ドキュメントがビューアソフトウェアで表示されるときに「ホットエリア」として表示されます。カーソルが手のシンボルを示すときにクリックすると、通常、そのホットエリアにエンコードされたターゲットに移動します。以下はすべてのリンクを取得する方法です::"
416
417 #: ../../tutorial.rst:145 5b90391005b24d46b953ffde747dbd80
418 msgid ""
419 "*links* is a Python list of dictionaries. For details see "
420 ":meth:`Page.get_links`."
421 msgstr "`links` はPythonの辞書のリストです。詳細は :meth:`Page.get_links` を参照してください。"
422
423 #: ../../tutorial.rst:147 19b388140fd44ace88779d4d2f85e3f5
424 msgid "You can also use an iterator which emits one link at a time::"
425 msgstr "また、一度に1つのリンクを生成するイテレータを使用することもできます::"
426
427 #: ../../tutorial.rst:152 972adb409c6b4d1781d1976cb040f944
428 msgid ""
429 "If dealing with a PDF document page, there may also exist annotations "
430 "(:ref:`Annot`) or form fields (:ref:`Widget`), each of which have their "
431 "own iterators::"
432 msgstr "PDFドキュメントのページを扱う場合、注釈(:ref:`Annot`)やフォームフィールド(:ref:`Widget`)も存在する場合があります。それぞれに独自のイテレータがあります::"
433
434 #: ../../tutorial.rst:162 354960511fbd4e299b3561f27464ffa6
435 msgid "Rendering a Page"
436 msgstr "ページのレンダリング"
437
438 #: ../../tutorial.rst:163 4b29e0e4b9f04b54a4b12db45462cebe
439 msgid "This example creates a **raster** image of a page's content::"
440 msgstr "以下の例は、ページの内容をラスター画像として作成します::"
441
442 #: ../../tutorial.rst:167 b23c4b5d3b5345f0add5cb0dffaa6255
443 msgid ""
444 "``pix`` is a :ref:`Pixmap` object which (in this case) contains an "
445 "**RGB** image of the page, ready to be used for many purposes. Method "
446 ":meth:`Page.get_pixmap` offers lots of variations for controlling the "
447 "image: resolution / DPI, colorspace (e.g. to produce a grayscale image or"
448 " an image with a subtractive color scheme), transparency, rotation, "
449 "mirroring, shifting, shearing, etc. For example: to create an **RGBA** "
450 "image (i.e. containing an alpha channel), specify *pix = "
451 "page.get_pixmap(alpha=True)*."
452 msgstr ""
453 "`pix` はページのRGBイメージを含む :ref:`Pixmap` "
454 "オブジェクトです。このイメージは多くの目的に使用する準備ができています。:meth:`Page.get_pixmap` "
455 "メソッドには、画像を制御するためのさまざまなオプションが用意されています:解像度/DPI、カラースペース(例えば、グレースケールイメージや減色カラースキームのイメージを作成するために)、透明度、回転、ミラーリング、シフト、シアーなどがあります。例えば、RGBAイメージ(アルファチャネルを含むイメージ)を作成する場合は、`pix"
456 " = page.get_pixmap(alpha=True)` と指定します。"
457
458 #: ../../tutorial.rst:169 e2331fb68ff848cab6245b27ba5f4079
459 msgid ""
460 "A :ref:`Pixmap` contains a number of methods and attributes which are "
461 "referenced below. Among them are the integers ``width``, ``height`` (each"
462 " in pixels) and ``stride`` (number of bytes of one horizontal image "
463 "line). Attribute ``samples`` represents a rectangular area of bytes "
464 "representing the image data (a Python ``bytes`` object)."
465 msgstr ""
466 ":ref:`Pixmap` "
467 "には、以下で参照されるいくつかのメソッドと属性が含まれています。その中には、ピクセル単位の整数である幅、高さ(それぞれピクセル単位)および "
468 "`stride` (1つの水平イメージラインのバイト数)があります。属性 `samples` "
469 "は、イメージデータを表すバイトの長方形領域(Pythonの `bytes` オブジェクト)を表します。"
470
471 #: ../../tutorial.rst:171 03e8c67cd34a4299bbacfe8abd40de63
472 msgid ""
473 "You can also create a **vector** image of a page by using "
474 ":meth:`Page.get_svg_image`. Refer to this `Vector Image Support page`_ "
475 "for details."
476 msgstr ""
477 ":meth:`Page.get_svg_image` "
478 "を使用することで、ページのベクターイメージを作成することもできます。詳細については、`Vector Image Support page`_ "
479 "ページを参照してください。"
480
481 #: ../../tutorial.rst:174 c887d409be174ceca947d6b32e881d03
482 msgid "Saving the Page Image in a File"
483 msgstr "ページのイメージをファイルに保存する"
484
485 #: ../../tutorial.rst:175 5e39659faf42451083abd892ba3bdb4e
486 msgid "We can simply store the image in a PNG file::"
487 msgstr "簡単にページのイメージをPNGファイルに保存できます::"
488
489 #: ../../tutorial.rst:180 7ef7b19218354906a6c5d511a0672a1f
490 msgid "Displaying the Image in GUIs"
491 msgstr "GUIでイメージを表示する"
492
493 #: ../../tutorial.rst:181 f6651c84f3d54689abdaff0d00a3095e
494 msgid ""
495 "We can also use it in GUI dialog managers. :attr:`Pixmap.samples` "
496 "represents an area of bytes of all the pixels as a Python bytes object. "
497 "Here are some examples, find more in the `examples`_ directory."
498 msgstr ""
499 "GUIダイアログマネージャーでも使用できます。 :attr:`Pixmap.samples` "
500 "は、すべてのピクセルのバイトの領域をPythonのbytesオブジェクトとして表します。以下はいくつかの例ですが、さらに多くの例は "
501 "`examples`_ ディレクトリで見つけることができます。"
502
503 #: ../../tutorial.rst:184 93b0ff029516467ca4a36bb526aeb687
504 msgid "wxPython"
505 msgstr ""
506
507 #: ../../tutorial.rst:185 6f03843027834dda8394ee85d04238d5
508 msgid ""
509 "Consult their documentation for adjustments to RGB(A) pixmaps and, "
510 "potentially, specifics for your wxPython release::"
511 msgstr "RGB(A)のピクセルマップに対する調整や、可能な場合はwxPythonのリリースに特有の詳細については、関連するドキュメントを参照してください。"
512
513 #: ../../tutorial.rst:193 b6f1e9b15675411e9bd7023777e4b99a
514 msgid "Tkinter"
515 msgstr ""
516
517 #: ../../tutorial.rst:194 c11e72b65c0e4368a0fe00c748909105
518 msgid "Please also see section 3.19 of the `Pillow documentation`_::"
519 msgstr "`Pillow documentation`_ ドキュメントのセクション3.19も参照してください。"
520
521 #: ../../tutorial.rst:203 41e53493133b4606b75fc48aa4b02d6b
522 msgid "The following **avoids using Pillow**::"
523 msgstr "以下の方法では、Pillowを使用しないようにしています。"
524
525 #: ../../tutorial.rst:210 2d36aa26bccf4e5ba49ede95aef20a49
526 msgid ""
527 "If you are looking for a complete Tkinter script paging through **any "
528 "supported** document, `here it is!`_. It can also zoom into pages, and it"
529 " runs under Python 2 or 3. It requires the extremely handy `PySimpleGUI`_"
530 " pure Python package."
531 msgstr ""
532 "もし、サポートされている任意のドキュメントをページ送りで表示する完全なTkinterスクリプトをお探しでしたら、`こちらがあります! "
533 "<https://github.com/pymupdf/PyMuPDF-Utilities/blob/master/examples"
534 "/browse-document/browse.py>`_ また、このスクリプトではページをズームインすることもでき、Python "
535 "2または3で動作します。非常に便利な純粋なPythonパッケージである `PySimpleGUI`_ が必要です。"
536
537 #: ../../tutorial.rst:213 9a88cb97b2d9452ab197250569501e5f
538 msgid "PyQt4, PyQt5, PySide"
539 msgstr ""
540
541 #: ../../tutorial.rst:214 daeac83261ba4066a7dc604d3aa562f2
542 msgid "Please also see section 3.16 of the `Pillow documentation`_::"
543 msgstr "Pillowドキュメントのセクション3.16も参照してください。"
544
545 #: ../../tutorial.rst:223 b85add3e93e4499b89e82f1646430a26
546 msgid ""
547 "Again, you also can get along **without using Pillow.** Qt's `QImage` "
548 "luckily supports native Python pointers, so the following is the "
549 "recommended way to create Qt images::"
550 msgstr "Pillowを使用せずに進めることもできます。幸運なことに、QtのQImageはネイティブなPythonポインタをサポートしているので、以下はQtイメージを作成する推奨される方法です。"
551
552 #: ../../tutorial.rst:233 0fcb7bc54009424fa20575e22fb06d0e
553 msgid "Extracting Text and Images"
554 msgstr "テキストや画像を抽出する"
555
556 #: ../../tutorial.rst:234 f5900cc6c4924334a0f4bf4d1bdae4ae
557 msgid ""
558 "We can also extract all text, images and other information of a page in "
559 "many different forms, and levels of detail::"
560 msgstr "ページのすべてのテキスト、画像、およびその他の情報を、さまざまな形式や詳細レベルで抽出することもできます。::"
561
562 #: ../../tutorial.rst:238 48bff694040b45549010d3b53435733b
563 msgid ""
564 "Use one of the following strings for *opt* to obtain different formats "
565 "[#f2]_:"
566 msgstr "異なるフォーマットを得るために、以下の文字列のうち1つをoptに使用できます [#f2]_:"
567
568 #: ../../tutorial.rst:240 3c9203fe338a46629695295936dc44a4
569 msgid ""
570 "**\"text\"**: (default) plain text with line breaks. No formatting, no "
571 "text position details, no images."
572 msgstr "**\"text\"**: (デフォルト) 行送りのプレーンテキスト。書式設定やテキストの位置の詳細、画像は含まれません。"
573
574 #: ../../tutorial.rst:242 ef523faacbb4433e9599b78451f9a623
575 msgid "**\"blocks\"**: generate a list of text blocks (= paragraphs)."
576 msgstr "**\"blocks\"**: テキストブロック(段落)のリストを生成します。"
577
578 #: ../../tutorial.rst:244 494f2cbaf4dc4d3595b54a18d8165a4f
579 msgid "**\"words\"**: generate a list of words (strings not containing spaces)."
580 msgstr "**\"words\"**: 単語(スペースを含まない文字列)のリストを生成します。"
581
582 #: ../../tutorial.rst:246 f95d696f7efa4e48a4fe4018638ee139
583 msgid ""
584 "**\"html\"**: creates a full visual version of the page including any "
585 "images. This can be displayed with your internet browser."
586 msgstr "**\"html\"**: 画像を含むページの完全な視覚的バージョンを作成します。これはインターネットブラウザで表示できます。"
587
588 #: ../../tutorial.rst:248 8f24748d78b04cc6b92c29fcae8ff8ca
589 msgid ""
590 "**\"dict\"** / **\"json\"**: same information level as HTML, but provided"
591 " as a Python dictionary or resp. JSON string. See "
592 ":meth:`TextPage.extractDICT` for details of its structure."
593 msgstr ""
594 "**\"dict\"** / **\"json\"**: "
595 "HTMLと同じ情報レベルですが、Pythonの辞書またはJSON文字列として提供されます。その構造の詳細については、:meth:`TextPage.extractDICT`"
596 " を参照してください。"
597
598 #: ../../tutorial.rst:250 266283a205584bb98dd88e0282b81b8a
599 msgid ""
600 "**\"rawdict\"** / **\"rawjson\"**: a super-set of **\"dict\"** / "
601 "**\"json\"**. It additionally provides character detail information like "
602 "XML. See :meth:`TextPage.extractRAWDICT` for details of its structure."
603 msgstr ""
604 "**\"rawdict\"** / **\"rawjson\"**: \"dict\" / "
605 "\"json\"のスーパーセットです。これにはXMLのような文字の詳細情報も含まれます。その構造の詳細については、:meth:`TextPage.extractRAWDICT`"
606 " を参照してください。"
607
608 #: ../../tutorial.rst:252 be5015a7daf84be89659b718295dcaf6
609 msgid ""
610 "**\"xhtml\"**: text information level as the TEXT version but includes "
611 "images. Can also be displayed by internet browsers."
612 msgstr "**\"xhtml\"**: TEXTバージョンのテキスト情報レベルを含み、画像も含まれます。インターネットブラウザでも表示できます。"
613
614 #: ../../tutorial.rst:254 6a9fccccc2af470dbe418b64d95196fb
615 msgid ""
616 "**\"xml\"**: contains no images, but full position and font information "
617 "down to each single text character. Use an XML module to interpret."
618 msgstr ""
619 "**\"xml\"**: "
620 "画像は含まれませんが、各テキスト文字までの完全な位置とフォント情報を含みます。XMLモジュールを使用して解釈することができます。"
621
622 #: ../../tutorial.rst:256 c2fb29629d574544ba6240118706a993
623 msgid ""
624 "To give you an idea about the output of these alternatives, we did text "
625 "example extracts. See :ref:`Appendix1`."
626 msgstr "これらの代替方法の出力のイメージを示すために、テキストの例抽出を行いました。:ref:`Appendix1` を参照してください"
627
628 #: ../../tutorial.rst:259 6fcbe8fa549f4672940aa6a7baa43298
629 msgid "Searching for Text"
630 msgstr "テキストを検索す"
631
632 #: ../../tutorial.rst:260 055f0da706d34efba1868870cc7ac25e
633 msgid "You can find out, exactly where on a page a certain text string appears::"
634 msgstr "特定のテキスト文字列がページのどこに現れるかを正確に調べることができます。::"
635
636 #: ../../tutorial.rst:264 fa6460b021d44b8aba602b1940777f99
637 msgid ""
638 "This delivers a list of rectangles (see :ref:`Rect`), each of which "
639 "surrounds one occurrence of the string \"mupdf\" (case insensitive). You "
640 "could use this information to e.g. highlight those areas (PDF only) or "
641 "create a cross reference of the document."
642 msgstr ""
643 "このコードは、\"mupdf\"(大文字と小文字を区別しない)という文字列が含まれる各領域を囲む長方形( :ref:`Rect` "
644 "参照)のリストを生成します。この情報を使って、それらの領域を強調表示したり(PDFのみ)、文書のクロスリファレンスを作成したりすることができます。"
645
646 #: ../../tutorial.rst:266 9602ff0fbee54febb5a9bce0eb7643a8
647 msgid ""
648 "Please also do have a look at chapter :ref:`cooperation` and at demo "
649 "programs `demo.py`_ and `demo-lowlevel.py`_. Among other things they "
650 "contain details on how the :ref:`TextPage`, :ref:`Device` and "
651 ":ref:`DisplayList` classes can be used for a more direct control, e.g. "
652 "when performance considerations suggest it."
653 msgstr ""
654 "また、:ref:`cooperation` という章、およびデモプログラム `demo.py`_ と `demo-lowlevel.py`_ "
655 "も参照してください。これらには、:ref:`TextPage` 、 :ref:`Device` 、:ref:`DisplayList` "
656 "クラスをより直接的に制御する方法に関する詳細な情報が含まれています。例えば、パフォーマンスを考慮する必要がある場合などに役立ちます"
657
658 #: ../../tutorial.rst:273 d532b1e3d0b249d5863b7d1af292f56f
659 msgid "Stories: Generating PDF from HTML Source"
660 msgstr "ストーリー: HTMLソースからPDFを生成する"
661
662 #: ../../tutorial.rst:275 416352710d134781921a3400fd5b5ef0
663 msgid ""
664 "The :ref:`Story` class is a new feature of PyMuPDF version 1.21.0. It "
665 "represents support for MuPDF's **\"story\"** interface."
666 msgstr ""
667 "ストーリークラスはPyMuPDFバージョン1.21.0の新機能です。これはMuPDFの :ref:`Story` "
668 "インターフェースに対するサポートを表しています。"
669
670 #: ../../tutorial.rst:277 accd3e3fc6d547b78b274237642033d6
671 msgid ""
672 "The following is a quote from the book `\"MuPDF Explored\"`_ by Robin "
673 "Watts from `Artifex`_:"
674 msgstr "以下はArtifexのRobin Wattsによる書籍「MuPDF Explored」からの引用です。"
675
676 #: ../../tutorial.rst:281 47e500970eb842949a968db6adee0910
677 msgid ""
678 "*Stories provide a way to easily layout styled content for use with "
679 "devices, such as those offered by Document Writers (...). The concept of "
680 "a story comes from desktop publishing, which in turn (...) gets it from "
681 "newspapers. If you consider a traditional newspaper layout, it will "
682 "consist of various news articles (stories) that are laid out into "
683 "multiple columns, possibly across multiple pages.*"
684 msgstr "*ストーリーは、ドキュメントライターなどのデバイスで使用するためのスタイル付きコンテンツを簡単にレイアウトする方法を提供します。ストーリーという概念は、デスクトップパブリッシングから来ており、それ自体が新聞から取り入れられています。伝統的な新聞のレイアウトを考えると、複数の列や複数のページにわたって配置されたさまざまなニュース記事(ストーリー)で構成されています。*"
685
686 #: ../../tutorial.rst:283 27ebf650cfb746b6ae9e42bdde508478
687 msgid ""
688 "*Accordingly, MuPDF uses a story to represent a flow of text with styling"
689 " information. The user of the story can then supply a sequence of "
690 "rectangles into which the story will be laid out, and the positioned text"
691 " can then be drawn to an output device. This keeps the concept of the "
692 "text itself (the story) to be separated from the areas into which the "
693 "text should be flowed (the layout).*"
694 msgstr "*それに応じて、MuPDFでは、テキストのフローとスタイリング情報を表すためにストーリーを使用しています。ストーリーのユーザーは、ストーリーをレイアウトするための矩形のシーケンスを提供し、配置されたテキストを出力デバイスに描画できます。これにより、テキスト自体(ストーリー)がテキストを配置する領域(レイアウト)から分離されるという概念が保持されます*"
695
696 #: ../../tutorial.rst:287 7da64d937fe84390a33b56158c76d219
697 msgid ""
698 "A Story works somewhat similar to an internet browser: It faithfully "
699 "parses and renders HTML hypertext and also optional stylesheets (CSS). "
700 "But its **output is a PDF** -- not web pages."
701 msgstr "ストーリーは、インターネットブラウザといくつかの点で似ています。それは忠実にHTMLハイパーテキストとオプションのスタイルシート(CSS)を解析してレンダリングします。ただし、出力されるのはPDFであり、ウェブページではありません。"
702
703 #: ../../tutorial.rst:290 290d5414b6754a0a8cec4ef553811e70
704 msgid ""
705 "When creating a :ref:`Story`, the input from up to three different "
706 "information sources is taken into account. All these items are optional."
707 msgstr "ストーリーを作成する際には、最大3つの異なる情報源からの入力が考慮されます。これらのすべてのアイテムはオプションです。"
708
709 #: ../../tutorial.rst:292 b76811f3a6e94ca48849af027b1e4aa7
710 msgid ""
711 "HTML source code, either a Python string or **created by the script** "
712 "using methods of :ref:`Xml`."
713 msgstr "HTMLソースコード:Pythonの文字列として提供されるか、 :ref:`Xml` のメソッドを使用してスクリプトによって作成されます。"
714
715 #: ../../tutorial.rst:294 631005d36d9d478eb1222c6746a62f78
716 msgid ""
717 "CSS (Cascaded Style Sheet) source code, provided as a Python string. CSS "
718 "can be used to provide styling information (text font size, color, etc.) "
719 "like it would happen for web pages. Obviously, this string may also be "
720 "read from a file."
721 msgstr "CSS(カスケーディングスタイルシート)ソースコード:Pythonの文字列として提供されます。CSSは、ウェブページにおけるように、スタイリング情報(テキストフォントサイズ、色など)を提供するために使用できます。もちろん、この文字列はファイルから読み込むこともできます。"
722
723 #: ../../tutorial.rst:296 b555903aaf064df4ac02bf4379ecd84b
724 msgid ""
725 "An :ref:`Archive` **must be used** whenever the DOM references images, or"
726 " uses text fonts except the standard :ref:`Base-14-Fonts`, CJK fonts and "
727 "the NOTO fonts generated into the PyMuPDF binary."
728 msgstr ""
729 "DOMが画像を参照する場合や、標準の :ref:`Base-14-Fonts` "
730 "、CJKフォント、およびPyMuPDFバイナリに生成されたNOTOフォント以外のテキストフォントを使用する場合、 :ref:`Archive` "
731 "を使用する必要があります。"
732
733 #: ../../tutorial.rst:299 5a5a7775caf44157ab99d4fb18a08da0
734 msgid ""
735 "The :ref:`API<Xml>` allows creating DOMs completely from scratch, "
736 "including desired styling information. It can also be used to modify or "
737 "extend **provided** HTML: text can be deleted or replaced, or its styling"
738 " can be changed. Text -- for example extracted from databases -- can also"
739 " be added and fill template-like HTML documents."
740 msgstr ""
741 "この :ref:`API<Xml>` "
742 "では、望むスタイル情報を含めて、DOMを完全にゼロから作成することができます。また、提供されたHTMLを変更したり拡張したりするためにも使用できます。テキストは削除や置換ができ、スタイルも変更できます。データベースから抽出されたテキストを追加して、テンプレートのようなHTMLドキュメントを作成することもできます。"
743
744 #: ../../tutorial.rst:301 eff1f356f57a4a5baa32893df82ccc7f
745 msgid ""
746 "It is **not required** to provide syntactically complete HTML documents: "
747 "snippets like `<b>Hello <i>World!</i></b>` are fully accepted, and many /"
748 " most syntax errors are automatically corrected."
749 msgstr ""
750 "文法的に完全なHTMLドキュメントを提供する必要はありません。例えば ``<b>Hello<i>World!</i></b>`` "
751 "のような断片も完全に受け入れられ、多くの場合、構文エラーは自動的に修正されます。"
752
753 #: ../../tutorial.rst:303 365fa2cc06434ed8ad7429aaf3a63265
754 msgid ""
755 "After the HTML is considered complete, it can be used to create a PDF "
756 "document. This happens via the new :ref:`DocumentWriter` class. The "
757 "programmer calls its methods to create a new empty page, and passes "
758 "rectangles to the Story to fill them."
759 msgstr ""
760 "HTMLが完成したと見なされた後、それを使用してPDF文書を作成できます。これは新しい :ref:`DocumentWriter` "
761 "クラスを介して行われます。プログラマーはそのメソッドを呼び出して新しい空のページを作成し、:ref:`Story` "
762 "に矩形を渡してそれらを埋めることができます。"
763
764 #: ../../tutorial.rst:305 3291ca47108e47b19f4b0bc0a5a4027b
765 msgid ""
766 "The story in turn will return completion codes indicating whether or not "
767 "more content is waiting to be written. Which part of the content will "
768 "land in which rectangle or on which page is automatically determined by "
769 "the story itself -- it cannot be influenced other than by providing the "
770 "rectangles."
771 msgstr ""
772 ":ref:`Story` "
773 "は、書き込まれる待機中のコンテンツがあるかどうかを示す完了コードを返します。コンテンツのどの部分がどの矩形またはどのページに配置されるかは、:ref:`Story`"
774 " 自体によって自動的に決定されます。矩形を提供すること以外では影響を与えることはできません。"
775
776 #: ../../tutorial.rst:307 bd9d9dd769be42d4b2431ad4fac946e4
777 msgid ""
778 "Please see the :ref:`Stories recipes<RecipesStories>` for a number of "
779 "typical use cases."
780 msgstr "典型的な使用例については、 :ref:`Stories recipes<RecipesStories>` レシピをご覧ください。"
781
782 #: ../../tutorial.rst:311 b4514f2b40064533bbf026420a0260d7
783 msgid "PDF Maintenance"
784 msgstr "PDFメンテナンス"
785
786 #: ../../tutorial.rst:312 76f8cae636954def812f6bd6aa4d9077
787 msgid ""
788 "PDFs are the only document type that can be **modified** using PyMuPDF. "
789 "Other file types are read-only."
790 msgstr "PDFはPyMuPDFを使用して変更できる唯一のドキュメントタイプです。他のファイルタイプは読み取り専用です。"
791
792 #: ../../tutorial.rst:314 6d192d43c9e24232be29c65e1e0c1018
793 msgid ""
794 "However, you can convert **any document** (including images) to a PDF and"
795 " then apply all PyMuPDF features to the conversion result. Find out more "
796 "here :meth:`Document.convert_to_pdf`, and also look at the demo script "
797 "`pdf-converter.py`_ which can convert any :ref:`supported "
798 "document<Supported_File_Types>` to PDF."
799 msgstr ""
800 "ただし、任意のドキュメント(画像を含む)をPDFに変換し、変換結果にすべてのPyMuPDF機能を適用することができます。 "
801 ":meth:`Document.convert_to_pdf` "
802 "で詳細を確認できます。また、任意のサポートされているドキュメントをPDFに変換できるデモスクリプト `pdf-converter.py`_ "
803 "も確認してください。"
804
805 #: ../../tutorial.rst:316 05d7bbe4027a4e9b98372c4707c22cd4
806 msgid ""
807 ":meth:`Document.save()` always stores a PDF in its current (potentially "
808 "modified) state on disk."
809 msgstr ":meth:`Document.save()` は常に現在の(変更された可能性のある)PDFをディスクに保存します。"
810
811 #: ../../tutorial.rst:318 400c516b51f0441a9c6ac7d433101329
812 msgid ""
813 "You normally can choose whether to save to a new file, or just append "
814 "your modifications to the existing one (\"incremental save\"), which "
815 "often is very much faster."
816 msgstr "通常、新しいファイルに保存するか、既存のファイルに変更内容を追加するか(「増分保存」)を選択できます。増分保存は非常に高速な場合があります。"
817
818 #: ../../tutorial.rst:320 57fdfcd11a1245249d7e837f37b43094
819 msgid ""
820 "The following describes ways how you can manipulate PDF documents. This "
821 "description is by no means complete: much more can be found in the "
822 "following chapters."
823 msgstr "以下にPDFドキュメントを操作する方法を示しますが、これに限らず、詳細は次の章でさらに見つけることができます。"
824
825 #: ../../tutorial.rst:323 ec4c85ec57124203b67f52652f082b88
826 msgid "Modifying, Creating, Re-arranging and Deleting Pages"
827 msgstr "ページの修正、作成、再配置、および削"
828
829 #: ../../tutorial.rst:324 625ab390c172404fbdc7aa9520874495
830 msgid ""
831 "There are several ways to manipulate the so-called **page tree** (a "
832 "structure describing all the pages) of a PDF:"
833 msgstr "PDFの**ページツリー** (すべてのページを記述する構造)を操作するためには、いくつかの方法があります。"
834
835 #: ../../tutorial.rst:326 159259eb9e4145daa6c13b2ad767f12e
836 msgid ""
837 ":meth:`Document.delete_page` and :meth:`Document.delete_pages` delete "
838 "pages."
839 msgstr ":meth:`Document.delete_page` と :meth:`Document.delete_pages` はページを削除します。"
840
841 #: ../../tutorial.rst:328 473d5897fff649019f539d6232e91f44
842 msgid ""
843 ":meth:`Document.copy_page`, :meth:`Document.fullcopy_page` and "
844 ":meth:`Document.move_page` copy or move a page to other locations within "
845 "the same document."
846 msgstr ""
847 ":meth:`Document.copy_page` 、 :meth:`Document.fullcopy_page` 、 "
848 ":meth:`Document.move_page` は、ページを同じドキュメント内の他の場所にコピーしたり移動したりします。"
849
850 #: ../../tutorial.rst:330 1e6c19e64c734426bec58da4dfbe7e0b
851 msgid ""
852 ":meth:`Document.select` shrinks a PDF down to selected pages. Parameter "
853 "is a sequence [#f3]_ of the page numbers that you want to keep. These "
854 "integers must all be in range *0 <= i < page_count*. When executed, all "
855 "pages **missing** in this list will be deleted. Remaining pages will "
856 "occur **in the sequence and as many times (!) as you specify them**."
857 msgstr ""
858 ":meth:`Document.select` "
859 "はPDFを選択したページに縮小します。パラメータは[3]のページ番号のシーケンスで、保持したいページの番号を指定します。これらの整数はすべて範囲 "
860 "`0 <= i < page_count` "
861 "にある必要があります。実行されると、このリストに含まれていないすべてのページが削除されます。残ったページは指定した順序通りに(指定回数分!)現れます。"
862
863 #: ../../tutorial.rst:332 1032d54636274cfab2c769409afa76e0
864 msgid "So you can easily create new PDFs with"
865 msgstr "したがって、次のような簡単な方法で新しいPDFを作成できます:"
866
867 #: ../../tutorial.rst:334 e8415caf00594110bef2b948c89abcbd
868 msgid "the first or last 10 pages,"
869 msgstr "最初または最後の10ページ"
870
871 #: ../../tutorial.rst:335 fc336f721207413b95dce987329adfad
872 msgid "only the odd or only the even pages (for doing double-sided printing),"
873 msgstr "奇数ページのみまたは偶数ページのみ(両面印刷用)"
874
875 #: ../../tutorial.rst:336 3a6929bd1e7d4e178ef1549c9c67d87a
876 msgid "pages that **do** or **don't** contain a given text,"
877 msgstr "特定のテキストを含むまたは含まないページ"
878
879 #: ../../tutorial.rst:337 968ba746356447208207a1cee391ea52
880 msgid "reverse the page sequence, ..."
881 msgstr "ページの順序を逆にする"
882
883 #: ../../tutorial.rst:339 1c2ed724e9564be1a8841011462e53a1
884 msgid "... whatever you can think of."
885 msgstr "... など、思いつく限りのことができます。"
886
887 #: ../../tutorial.rst:341 3a7dc1aa206e4858a930d0cc0ce437cf
888 msgid ""
889 "The saved new document will contain links, annotations and bookmarks that"
890 " are still valid (i.a.w. either pointing to a selected page or to some "
891 "external resource)."
892 msgstr "保存された新しいドキュメントには、まだ有効なリンク、注釈、およびブックマークが含まれています(選択したページを指すか、あるいは外部リソースを指すかを問わず)。"
893
894 #: ../../tutorial.rst:343 62273df02f3a43edaca93b7b9899b551
895 msgid ""
896 ":meth:`Document.insert_page` and :meth:`Document.new_page` insert new "
897 "pages."
898 msgstr ":meth:`Document.insert_page` および :meth:`Document.new_page` は新しいページを挿入します。"
899
900 #: ../../tutorial.rst:345 62ec5bdcc4854cc0ab7b5a9c5de8295e
901 msgid ""
902 "Pages themselves can moreover be modified by a range of methods (e.g. "
903 "page rotation, annotation and link maintenance, text and image "
904 "insertion)."
905 msgstr "さらに、ページ自体はさまざまな方法で変更できます(ページの回転、注釈とリンクの維持、テキストと画像の挿入など)"
906
907 #: ../../tutorial.rst:348 f481a1f85523458ba716bfffa017ecc2
908 msgid "Joining and Splitting PDF Documents"
909 msgstr "PDF文書の結合と分割"
910
911 #: ../../tutorial.rst:350 5c4f9e715c364f99ab85e02a35390a54
912 msgid ""
913 "Method :meth:`Document.insert_pdf` copies pages **between different** PDF"
914 " documents. Here is a simple **joiner** example (*doc1* and *doc2* being "
915 "opened PDFs)::"
916 msgstr ""
917 "メソッド :meth:`Document.insert_pdf` は異なるPDF文書間でページをコピーします。以下は簡単な結合の例です( "
918 "`doc1` と `doc2` は開かれたPDF文書です)::"
919
920 #: ../../tutorial.rst:355 76e1ca6378be4c7780b008c6aa0147b1
921 msgid ""
922 "Here is a snippet that **splits** *doc1*. It creates a new document of "
923 "its first and its last 10 pages::"
924 msgstr "以下は、 `doc1` を分割するスニペットです。最初の10ページと最後の10ページを含む新しいドキュメントを作成します。"
925
926 #: ../../tutorial.rst:362 425d928677684aaebd2c13acc306cc3a
927 msgid ""
928 "More can be found in the :ref:`Document` chapter. Also have a look at "
929 "`PDFjoiner.py`_."
930 msgstr ":ref:`Document` の章にはさらに詳細が記載されています。また、 `PDFjoiner.py`_ も確認してください。"
931
932 #: ../../tutorial.rst:365 3a32f81f55af4ff2942e6a5bda5351e4
933 msgid "Embedding Data"
934 msgstr "データの埋め込み"
935
936 #: ../../tutorial.rst:367 e8c1a07274464e69b5716d2cfcd333a2
937 msgid ""
938 "PDFs can be used as containers for arbitrary data (executables, other "
939 "PDFs, text or binary files, etc.) much like ZIP archives."
940 msgstr "PDFはZIPアーカイブのように、任意のデータ(実行可能ファイル、他のPDF、テキストファイル、バイナリファイルなど)をコンテナとして使用できます。"
941
942 #: ../../tutorial.rst:369 e53116859c304e5d8cae52bca7615d49
943 #, fuzzy
944 msgid ""
945 "PyMuPDF fully supports this feature via :ref:`Document` ``embfile_*`` "
946 "methods and attributes. For some detail read :ref:`Appendix 3`, consult "
947 "the Wiki on `dealing with embedding files`_, or the example scripts "
948 "`embedded-copy.py`_, `embedded-export.py`_, `embedded-import.py`_, and "
949 "`embedded-list.py`_."
950 msgstr ""
951 "PyMuPDFは :ref:`Document` *embfile_** "
952 "メソッドと属性を介して、この機能を完全にサポートしています。詳細については、 :ref:`Appendix3` "
953 "を読むか、ファイルの埋め込みに対処するためのウィキを参照してください。また、exampleスクリプトの `embedded-copy.py`_ "
954 "、`embedded-export.py`_ 、`embedded-import.py`_ 、および `embedded-list.py`_ "
955 "も参考になるでしょう。"
956
957 #: ../../tutorial.rst:373 7e063cc85bf74b67af328699883eabcd
958 msgid "Saving"
959 msgstr "保存"
960
961 #: ../../tutorial.rst:375 ddc980f323444d9a888df621e5e4413a
962 msgid ""
963 "As mentioned above, :meth:`Document.save` will **always** save the "
964 "document in its current state."
965 msgstr "前述のように、 :meth:`Document.save` は常にドキュメントを現在の状態で保存します。"
966
967 #: ../../tutorial.rst:377 938eb4bca93d44e7ad9d9db6a21b0197
968 msgid ""
969 "You can write changes back to the **original PDF** by specifying option "
970 "``incremental=True``. This process is (usually) **extremely fast**, since"
971 " changes are **appended to the original file** without completely "
972 "rewriting it."
973 msgstr ""
974 "オプション `incremental=True` "
975 "を指定することで、変更を元のPDFに書き戻すことができます。このプロセスは(通常)非常に高速です。変更は元のファイルに追加されるため、完全に書き直す必要がありません。"
976
977 #: ../../tutorial.rst:379 34a90e8b41204457b27c7bf4c896ed07
978 msgid ""
979 ":meth:`Document.save` options correspond to options of MuPDF's command "
980 "line utility *mutool clean*, see the following table."
981 msgstr ""
982 ":meth:`Document.save` のオプションは、MuPDFのコマンドラインユーティリティmutool "
983 "cleanのオプションと対応しています。以下の表を参照してください。"
984
985 #: ../../tutorial.rst:382 1163070c3e2e478c9edfeeef99960201
986 msgid "**Save Option**"
987 msgstr "**保存オプション**"
988
989 #: ../../tutorial.rst:382 94311b1ebca3478a8d7bf6f6d522fd8b
990 msgid "**mutool**"
991 msgstr ""
992
993 #: ../../tutorial.rst:382 962d3ef8846c431c8e9dfdf9d487bfb1
994 msgid "**Effect**"
995 msgstr "**効果**"
996
997 #: ../../tutorial.rst:384 b65cf8acc8bc476f8334931a4c8a17b8
998 msgid "garbage=1"
999 msgstr ""
1000
1001 #: ../../tutorial.rst:384 6b4221531c1b4915975145d5a46840f9
1002 msgid "g"
1003 msgstr ""
1004
1005 #: ../../tutorial.rst:384 b773213735d5433a912d7d50de094b58
1006 msgid "garbage collect unused objects"
1007 msgstr "未使用のオブジェクトをガベージコレクションします"
1008
1009 #: ../../tutorial.rst:385 9bb3557107484b32b9d48ee883975e41
1010 msgid "garbage=2"
1011 msgstr ""
1012
1013 #: ../../tutorial.rst:385 e5d8266ec4434156843ae8d329cb1234
1014 msgid "gg"
1015 msgstr ""
1016
1017 #: ../../tutorial.rst:385 5d1cd64ee4a44495b52e5808a4c51ebf
1018 msgid "in addition to 1, compact :data:`xref` tables"
1019 msgstr "1に加えて、xrefテーブルをコンパクトにします"
1020
1021 #: ../../tutorial.rst:386 5846a30c454d494b9cb77c2612b7e3ba
1022 msgid "garbage=3"
1023 msgstr ""
1024
1025 #: ../../tutorial.rst:386 8499a2c0b7254ddfbc44cba627532452
1026 msgid "ggg"
1027 msgstr ""
1028
1029 #: ../../tutorial.rst:386 349d1afd120c468c8663d3467baf0a1d
1030 msgid "in addition to 2, merge duplicate objects"
1031 msgstr "2に加えて、重複したオブジェクトをマージします"
1032
1033 #: ../../tutorial.rst:387 f97513200d184db2818ef3272e06659d
1034 msgid "garbage=4"
1035 msgstr ""
1036
1037 #: ../../tutorial.rst:387 8818b59f9bf3464e8ff2acae77c152f2
1038 msgid "gggg"
1039 msgstr ""
1040
1041 #: ../../tutorial.rst:387 c284ddf0b0794e979bfa728c57373d83
1042 msgid "in addition to 3, merge duplicate stream content"
1043 msgstr "3に加えて、重複したストリームの内容をマージします"
1044
1045 #: ../../tutorial.rst:388 7874a21a2a374610abddf1cbd7efb717
1046 msgid "clean=True"
1047 msgstr ""
1048
1049 #: ../../tutorial.rst:388 c1e6bac1097a452a8399150c1e9c8279
1050 msgid "cs"
1051 msgstr ""
1052
1053 #: ../../tutorial.rst:388 9ddc64830c9040ed8451f02ed2741816
1054 msgid "clean and sanitize content streams"
1055 msgstr "コンテンツストリームをクリーンアップしてサニタイズします"
1056
1057 #: ../../tutorial.rst:389 c2f486c396c84db0ba07db1c9ee5a7ae
1058 msgid "deflate=True"
1059 msgstr ""
1060
1061 #: ../../tutorial.rst:389 49a98a67d15747c98e6ca70bb53f3c51
1062 msgid "z"
1063 msgstr ""
1064
1065 #: ../../tutorial.rst:389 37e910e46f2247d3a69e36dbd0748d94
1066 msgid "deflate uncompressed streams"
1067 msgstr "非圧縮のストリームをdeflate圧縮します"
1068
1069 #: ../../tutorial.rst:390 7ffbd7aa96264ff1902b58f73b4fd092
1070 msgid "deflate_images=True"
1071 msgstr ""
1072
1073 #: ../../tutorial.rst:390 83ea4c4b317d488092885540eb84f939
1074 msgid "i"
1075 msgstr ""
1076
1077 #: ../../tutorial.rst:390 4e719956c06a4d49bb8d10a19576ee42
1078 msgid "deflate image streams"
1079 msgstr "画像ストリームをdeflate圧縮します"
1080
1081 #: ../../tutorial.rst:391 c33f6052e9494538ae7f4e1191c64fd2
1082 msgid "deflate_fonts=True"
1083 msgstr ""
1084
1085 #: ../../tutorial.rst:391 9786f972e1be4a16b85ffee8b754ec19
1086 msgid "f"
1087 msgstr ""
1088
1089 #: ../../tutorial.rst:391 79fefb0533874ecb8a096e7db7f10332
1090 msgid "deflate fontfile streams"
1091 msgstr "フォントファイルストリームをdeflate圧縮します"
1092
1093 #: ../../tutorial.rst:392 423d166f2fc54b4498a9377a2dd30960
1094 msgid "ascii=True"
1095 msgstr ""
1096
1097 #: ../../tutorial.rst:392 a67143a6cbe040c590ae0a63a0fe9234
1098 msgid "a"
1099 msgstr ""
1100
1101 #: ../../tutorial.rst:392 59590f861522439b8f81250d3941e06c
1102 msgid "convert binary data to ASCII format"
1103 msgstr "バイナリデータをASCII形式に変換します"
1104
1105 #: ../../tutorial.rst:393 86236a9e66cf4150970d92080d6e1583
1106 msgid "linear=True"
1107 msgstr ""
1108
1109 #: ../../tutorial.rst:393 5893e24f2faa4060ba0c43aa63dbd263
1110 msgid "l"
1111 msgstr ""
1112
1113 #: ../../tutorial.rst:393 0dec5675398e49978e78651893a99395
1114 msgid "create a linearized version"
1115 msgstr "線形化バージョンを作成します"
1116
1117 #: ../../tutorial.rst:394 febbe58d4b104f8bbe950ccccccb1859
1118 msgid "expand=True"
1119 msgstr ""
1120
1121 #: ../../tutorial.rst:394 ef0e028a01314e21a0d744ca0d2ad01f
1122 msgid "d"
1123 msgstr ""
1124
1125 #: ../../tutorial.rst:394 09ec7a0736e34a67aa68a9542195d17e
1126 msgid "decompress all streams"
1127 msgstr "すべてのストリームを解凍します"
1128
1129 #: ../../tutorial.rst:397 e917b060c085407fb80a474e3bec75e9
1130 #, fuzzy
1131 msgid ""
1132 "For an explanation of terms like ``object``, ``stream``, ``xref`` consult"
1133 " the :ref:`Glossary` chapter."
1134 msgstr "オブジェクト、ストリーム、xrefなどの用語の詳細については、 :ref:`Glossary` の章を参照してください。"
1135
1136 #: ../../tutorial.rst:399 dcb5dc3e6c3a41349a7db5e5052ed2e0
1137 msgid ""
1138 "For example, ``mutool clean -ggggz file.pdf`` yields excellent "
1139 "compression results. It corresponds to ``doc.save(filename, garbage=4, "
1140 "deflate=True)``."
1141 msgstr ""
1142 "例えば、 `mutool clean -ggggz file.pdf` は優れた圧縮結果をもたらします。これは "
1143 "`doc.save(filename, garbage=4, deflate=True)` に対応しています。"
1144
1145 #: ../../tutorial.rst:402 c79ea0512d3b44e78f142255268af6ac
1146 msgid "Closing"
1147 msgstr "クローズ"
1148
1149 #: ../../tutorial.rst:403 f745b8b8cfd64cd0955b6d9c72baa5f3
1150 msgid ""
1151 "It is often desirable to \"close\" a document to relinquish control of "
1152 "the underlying file to the OS, while your program continues."
1153 msgstr "プログラムが継続する間に、基になるファイルの制御をOSに戻すために、ドキュメントを「クローズ」することがしばしば望まれます。"
1154
1155 #: ../../tutorial.rst:405 6ec44b753b01413a9bcbd6b21a1310d7
1156 msgid ""
1157 "This can be achieved by the :meth:`Document.close` method. Apart from "
1158 "closing the underlying file, buffer areas associated with the document "
1159 "will be freed."
1160 msgstr ""
1161 "これは :meth:`Document.close` "
1162 "メソッドによって実現できます。基になるファイルをクローズするだけでなく、ドキュメントに関連するバッファ領域も解放されます。"
1163
1164 #: ../../tutorial.rst:408 88cb960755d5457da5441939ff0c836d
1165 msgid "Further Reading"
1166 msgstr "さらなる情報"
1167
1168 #: ../../tutorial.rst:409 079337447add4588b00679495c0756c6
1169 msgid ""
1170 "Also have a look at PyMuPDF's `Wiki`_ pages. Especially those named in "
1171 "the sidebar under title **\"Recipes\"** cover over 15 topics written in "
1172 "\"How-To\" style."
1173 msgstr ""
1174 "また、PyMuPDFの `Wiki`_ "
1175 "ページもご覧ください。特に、サイドバーのタイトル「Recipes」の下に名前が挙げられているものは、15以上のトピックが「How-"
1176 "To」スタイルで書かれています。"
1177
1178 #: ../../tutorial.rst:411 4ff206365d3c46319f8786732294335f
1179 msgid ""
1180 "This document also contains a :ref:`FAQ`. This chapter has close "
1181 "connection to the aforementioned recipes, and it will be extended with "
1182 "more content over time."
1183 msgstr ":ref:`Recipes: Table of Contents<RecipesTOC>` をご覧ください。"
1184
1185 #: ../../tutorial.rst:418 8469cb98a4bc46da95e015537403452d
1186 msgid "Footnotes"
1187 msgstr "脚注"
1188
1189 #: ../../tutorial.rst:419 7abfecf3e58542b0859cd575498948f7
1190 msgid ""
1191 "PyMuPDF lets you also open several image file types just like normal "
1192 "documents. See section :ref:`ImageFiles` in chapter :ref:`Pixmap` for "
1193 "more comments."
1194 msgstr ""
1195 "PyMuPDFは通常のドキュメントと同様に、いくつかの画像ファイル形式も開くことができます。詳細は、章 :ref:`Pixmap` のセクション "
1196 ":ref:`ImageFiles` を参照してください。"
1197
1198 #: ../../tutorial.rst:421 70b740aad28644b395c85b6a12f20f0e
1199 msgid ""
1200 ":meth:`Page.get_text` is a convenience wrapper for several methods of "
1201 "another PyMuPDF class, :ref:`TextPage`. The names of these methods "
1202 "correspond to the argument string passed to :meth:`Page.get_text` \\: "
1203 "*Page.get_text(\"dict\")* is equivalent to *TextPage.extractDICT()* \\."
1204 msgstr ""
1205 ":meth:`Page.get_text` は、別のPyMuPDFクラス、:ref:`TextPage` "
1206 "のいくつかのメソッドの便利なラッパーです。これらのメソッドの名前は、 :meth:`Page.get_text` "
1207 "に渡された引数文字列に対応しています。例えば、 `Page.get_text(“dict”)` は "
1208 "`TextPage.extractDICT()` と同等です。"
1209
1210 #: ../../tutorial.rst:423 13eddbfd7bd64cd49e523d76972c7368
1211 msgid ""
1212 "\"Sequences\" are Python objects conforming to the sequence protocol. "
1213 "These objects implement a method named *__getitem__()*. Best known "
1214 "examples are Python tuples and lists. But *array.array*, *numpy.array* "
1215 "and PyMuPDF's \"geometry\" objects (:ref:`Algebra`) are sequences, too. "
1216 "Refer to :ref:`SequenceTypes` for details."
1217 msgstr "\"シーケンス\"とは、シーケンスプロトコルに準拠したPythonオブジェクトのことを指します。これらのオブジェクトは、getitem()という名前のメソッドを実装しています。よく知られた例としては、Pythonのタプルやリストがあります。しかし、array.array、numpy.array、およびPyMuPDFの「geometry」オブジェクト(幾何オブジェクトのためのオペレーター代数)もシーケンスです。詳細については、「PyMuPDFにおけるPythonシーケンスの引数の使用」を参照してください"
1218
1219 #: ../../footer.rst:46 34f591e7f8ab491b884b15a32b4f508e
1220 msgid "This documentation covers all versions up to |version|."
1221 msgstr "このドキュメントは |version| までのすべてのバージョンを対象としています。"
1222
1223 #~ msgid "PyMuPDF は、PDF (およびその他の)ドキュメントのデータ抽出、分析、変換、操作のための高性能な Python ライブラリです。"
1224 #~ msgstr ""
1225
1226 #~ msgid "PDFテキスト抽出、PDFイメージ抽出、PDF変換、PDFテーブル、PDF分割、PDF作成, Pyodide, PyScript"
1227 #~ msgstr ""
1228
1229 #~ msgid ""
1230 #~ "Importing |PyMuPDF| as `fitz` still "
1231 #~ "works however |PyMuPDF| **cannot coexist** "
1232 #~ "with other packages named \"fitz\" in"
1233 #~ " the same Python environment."
1234 #~ msgstr "したがって、PyMuPDFは同じPython環境で「fitz」という名前のパッケージと共存することはできません"
1235
1236 #~ msgid "Discord logo"
1237 #~ msgstr ""
1238