| 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-04-17 15:00+0100\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 db5f378b70004af590010a41f0163be1 |
| 23 |
msgid "Artifex" |
| 24 |
msgstr "" |
| 25 |
|
| 26 |
#: ../../header.rst:-1 148acec04cbf474bb41f5d5e3c1ec508 |
| 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 e6b3ab82dcbf41f687b68d59732a00a5 |
| 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 |
#: ../../recipes-text.rst:7 70700f14953047898a918c1a07026ce4 |
| 39 |
msgid "Text" |
| 40 |
msgstr "テキスト" |
| 41 |
|
| 42 |
#: ../../recipes-text.rst:13 83030b51505549bba2596e8da94111a2 |
| 43 |
msgid "How to Extract all Document Text" |
| 44 |
msgstr "すべてのドキュメントテキストを抽出する方法" |
| 45 |
|
| 46 |
#: ../../recipes-text.rst:15 d8d7d26a27a346a5b03d28e400fed598 |
| 47 |
msgid "" |
| 48 |
"This script will take a document filename and generate a text file from " |
| 49 |
"all of its text." |
| 50 |
msgstr "このスクリプトは、ドキュメントのファイル名を受け取り、そのテキストからテキストファイルを生成します。" |
| 51 |
|
| 52 |
#: ../../recipes-text.rst:17 c4c73613ac86439c93304a2549dbad7f |
| 53 |
msgid "The document can be any :ref:`supported type<Supported_File_Types>`." |
| 54 |
msgstr "ドキュメントは、:ref:`サポートされている <Supported_File_Types>` 任意のタイプのものが使用できます。" |
| 55 |
|
| 56 |
#: ../../recipes-text.rst:19 8a339400b648449eab4a10cf290842dc |
| 57 |
msgid "" |
| 58 |
"The script works as a command line tool which expects the document " |
| 59 |
"filename supplied as a parameter. It generates one text file named " |
| 60 |
"\"filename.txt\" in the script directory. Text of pages is separated by a" |
| 61 |
" form feed character::" |
| 62 |
msgstr "このスクリプトはコマンドラインツールとして機能し、ドキュメントのファイル名をパラメータとして受け取ります。スクリプトのディレクトリに「filename.txt」という名前のテキストファイルが生成されます。ページのテキストはフォームフィード文字で区切られます。" |
| 63 |
|
| 64 |
#: ../../recipes-text.rst:28 8a4f5ec777ce40e8a27b5ef06541f000 |
| 65 |
msgid "" |
| 66 |
"The output will be plain text as it is coded in the document. No effort " |
| 67 |
"is made to prettify in any way. Specifically for PDF, this may mean " |
| 68 |
"output not in usual reading order, unexpected line breaks and so forth." |
| 69 |
msgstr "出力はドキュメント内でコード化された通りのプレーンテキストになるため、見栄えの調整は行いません。特にPDFの場合、通常の読み順にならない出力や予期せぬ改行などが発生するかもしれません。" |
| 70 |
|
| 71 |
#: ../../recipes-text.rst:30 fa3eea374680406b9a9fba35f66055ca |
| 72 |
msgid "" |
| 73 |
"You have many options to rectify this -- see chapter :ref:`Appendix2`. " |
| 74 |
"Among them are:" |
| 75 |
msgstr "" |
| 76 |
"これを修正するための多くのオプションがあります。詳細は :ref:`Appendix2` " |
| 77 |
"章「埋め込みファイルに関する考慮事項」を参照してください。以下の方法があります:" |
| 78 |
|
| 79 |
#: ../../recipes-text.rst:32 93321f1d110c45879711cddd65ff7248 |
| 80 |
msgid "" |
| 81 |
"Extract text in HTML format and store it as a HTML document, so it can be" |
| 82 |
" viewed in any browser." |
| 83 |
msgstr "テキストをHTML形式で抽出し、HTMLドキュメントとして保存することで、任意のブラウザで表示できるようにします。" |
| 84 |
|
| 85 |
#: ../../recipes-text.rst:33 d31ce8ccb61f4333b9485c37ae95f7a1 |
| 86 |
msgid "" |
| 87 |
"Extract text as a list of text blocks via *Page.get_text(\"blocks\")*. " |
| 88 |
"Each item of this list contains position information for its text, which " |
| 89 |
"can be used to establish a convenient reading order." |
| 90 |
msgstr "Page.get_text(\"blocks\")を使ってテキストブロックのリストとして抽出します。リストの各アイテムにはテキストの位置情報が含まれており、便利な読み順を確立するのに使用できます。" |
| 91 |
|
| 92 |
#: ../../recipes-text.rst:34 97d77e0ecd494eb89e58bf1dfd6f89b0 |
| 93 |
msgid "" |
| 94 |
"Extract a list of single words via *Page.get_text(\"words\")*. Its items " |
| 95 |
"are words with position information. Use it to determine text contained " |
| 96 |
"in a given rectangle -- see next section." |
| 97 |
msgstr "Page.get_text(\"words\")を使って単語のリストを抽出します。各アイテムには位置情報が含まれています。これを使用して特定の四角形に含まれるテキストを決定します。" |
| 98 |
|
| 99 |
#: ../../recipes-text.rst:36 f695a7c93e504149bb7de0f587892b2a |
| 100 |
msgid "See the following two sections for examples and further explanations." |
| 101 |
msgstr "以下の2つのセクションを見て、例と詳細な説明をご覧ください。" |
| 102 |
|
| 103 |
#: ../../recipes-text.rst:44 37809012042b408fab85b6b39de8e823 |
| 104 |
msgid "How to Extract Text as Markdown" |
| 105 |
msgstr "テキストをMarkdown形式で抽出する方法" |
| 106 |
|
| 107 |
#: ../../recipes-text.rst:46 5c0dcdf0ae704f9aa9fd1bc738b0c185 |
| 108 |
msgid "" |
| 109 |
"This is especially useful for :title:`RAG/LLM` environments - please see " |
| 110 |
":ref:`Outputting as Markdown <rag_outputting_as_md>`." |
| 111 |
msgstr "" |
| 112 |
"これは、特に :title:`RAG/LLM` 環境にとって便利です - :ref:`Outputting as Markdown " |
| 113 |
"<rag_outputting_as_md>` を参照してください。" |
| 114 |
|
| 115 |
#: ../../recipes-text.rst:52 442230f4e860484f83323c6a20d08e08 |
| 116 |
msgid "How to Extract Key-Value Pairs from a Page" |
| 117 |
msgstr "ページからキーと値のペアを抽出する方法" |
| 118 |
|
| 119 |
#: ../../recipes-text.rst:53 9555400172a34d69bae562156d51b80c |
| 120 |
msgid "" |
| 121 |
"If the layout of a page is *\"predictable\"* in some sense, then there is" |
| 122 |
" a simple way to find the values for a given set of keywords fast and " |
| 123 |
"easily -- without using regular expressions. Please see `this example " |
| 124 |
"script <https://github.com/pymupdf/PyMuPDF-Utilities/tree/master/text-" |
| 125 |
"extraction/lookup-keywords.py>`_." |
| 126 |
msgstr "" |
| 127 |
"もしページのレイアウトがある程度予測可能であれば、正規表現を使用せずに、特定のキーワードに対する値を迅速かつ簡単に見つける方法があります。 " |
| 128 |
"`以下の例のスクリプト <https://github.com/pymupdf/PyMuPDF-Utilities/tree/master" |
| 129 |
"/text-extraction/lookup-keywords.py>`_ を参照してください。" |
| 130 |
|
| 131 |
#: ../../recipes-text.rst:55 f8548ec2c56441c0aa02ed28f3607350 |
| 132 |
msgid "\"Predictable\" in this context means:" |
| 133 |
msgstr "ここでの「予測可能」とは、次のような意味です:" |
| 134 |
|
| 135 |
#: ../../recipes-text.rst:57 0e297df5b4ed4548956122fabdd7e963 |
| 136 |
msgid "" |
| 137 |
"Every keyword is followed by its value -- no other text is present in " |
| 138 |
"between them." |
| 139 |
msgstr "各キーワードの後にはその値が続きます。それらの間に他のテキストはありません。" |
| 140 |
|
| 141 |
#: ../../recipes-text.rst:58 f9375ed8400040619728b9f1d3031882 |
| 142 |
msgid "" |
| 143 |
"The bottom of the value's boundary box is **not above** the one of the " |
| 144 |
"keyword." |
| 145 |
msgstr "値の境界ボックスの下端は、キーワードの境界ボックスよりも上にありません。" |
| 146 |
|
| 147 |
#: ../../recipes-text.rst:59 be1d806d61424c179b103fbdfef14d11 |
| 148 |
msgid "" |
| 149 |
"There are **no other restrictions**: the page layout may or may not be " |
| 150 |
"fixed, and the text may also have been stored as one string. Key and " |
| 151 |
"value may have any distance from each other." |
| 152 |
msgstr "他の制約はありません:ページのレイアウトが固定されているかどうかは問いませんし、テキストは1つの文字列として保存されている可能性もあります。キーと値はお互いに任意の距離を持つかもしれません。" |
| 153 |
|
| 154 |
#: ../../recipes-text.rst:61 05731f2a8f5b4e72a99dbd3afb4628ff |
| 155 |
msgid "" |
| 156 |
"For example, the following five key-value pairs will be correctly " |
| 157 |
"identified::" |
| 158 |
msgstr "例として、以下の5つのキーと値のペアが正しく識別されます::" |
| 159 |
|
| 160 |
#: ../../recipes-text.rst:77 635adbc1c75c4e019220ca2fafd16863 |
| 161 |
msgid "How to Extract Text from within a Rectangle" |
| 162 |
msgstr "四角形内のテキストを抽出する方法" |
| 163 |
|
| 164 |
#: ../../recipes-text.rst:78 c66f827c3b4e4d40937891f31bca0ed8 |
| 165 |
msgid "" |
| 166 |
"There is now (v1.18.0) more than one way to achieve this. We therefore " |
| 167 |
"have created a `folder <https://github.com/pymupdf/PyMuPDF-" |
| 168 |
"Utilities/tree/master/textbox-extraction>`_ in the PyMuPDF-Utilities " |
| 169 |
"repository specifically dealing with this topic." |
| 170 |
msgstr "" |
| 171 |
"現在(v1.18.0)では、これを実現するための複数の方法があります。そのため、私たちは `PyMuPDF-Utilities " |
| 172 |
"<https://github.com/pymupdf/PyMuPDF-Utilities/tree/master/textbox-" |
| 173 |
"extraction>`_ リポジトリに、この特定のトピックに対応するフォルダを作成しました。" |
| 174 |
|
| 175 |
#: ../../recipes-text.rst:88 d80121123daf4bf2a3e069027d837c3f |
| 176 |
msgid "How to Extract Text in Natural Reading Order" |
| 177 |
msgstr "自然な読み順でテキストを抽出する方法" |
| 178 |
|
| 179 |
#: ../../recipes-text.rst:90 c1cc039bb3804acebad6d1f03565e6be |
| 180 |
msgid "" |
| 181 |
"One of the common issues with PDF text extraction is, that text may not " |
| 182 |
"appear in any particular reading order." |
| 183 |
msgstr "PDFのテキスト抽出によくある問題の1つは、テキストが特定の読み順に表示されないことです。" |
| 184 |
|
| 185 |
#: ../../recipes-text.rst:92 16fbf3e452294bcd88f4d82c83bc87d6 |
| 186 |
msgid "" |
| 187 |
"This is the responsibility of the PDF creator (software or a human). For " |
| 188 |
"example, page headers may have been inserted in a separate step -- after " |
| 189 |
"the document had been produced. In such a case, the header text will " |
| 190 |
"appear at the end of a page text extraction (although it will be " |
| 191 |
"correctly shown by PDF viewer software). For example, the following " |
| 192 |
"snippet will add some header and footer lines to an existing PDF::" |
| 193 |
msgstr "これはPDFの作成者(ソフトウェアまたは人間)の責任です。たとえば、ページヘッダーはドキュメントが作成された後の別のステップで挿入された可能性があります。そのような場合、ヘッダーテキストはページテキストの抽出の最後に表示されることがあります(ただし、PDFビューアソフトウェアでは正しく表示されます)。以下のスニペットは、既存のPDFにいくつかのヘッダーとフッターの行を追加します::" |
| 194 |
|
| 195 |
#: ../../recipes-text.rst:104 978688d53bd949cc898416980acbc003 |
| 196 |
msgid "" |
| 197 |
"The text sequence extracted from a page modified in this way will look " |
| 198 |
"like this:" |
| 199 |
msgstr "このように変更されたページから抽出されたテキストのシーケンスは次のようになります:" |
| 200 |
|
| 201 |
#: ../../recipes-text.rst:106 ef048f5a008646e991b0568de7841cb2 |
| 202 |
msgid "original text" |
| 203 |
msgstr "元のテキスト" |
| 204 |
|
| 205 |
#: ../../recipes-text.rst:107 dc14bb8d05724f89a619b2d3cceb4926 |
| 206 |
msgid "header line" |
| 207 |
msgstr "ヘッダーライン" |
| 208 |
|
| 209 |
#: ../../recipes-text.rst:108 babbbbad94c4402ea4effe7f7adbca5d |
| 210 |
msgid "footer line" |
| 211 |
msgstr "フッターライン" |
| 212 |
|
| 213 |
#: ../../recipes-text.rst:110 e694010b792d4eb0855e2f6564a46a67 |
| 214 |
msgid "" |
| 215 |
"PyMuPDF has several means to re-establish some reading sequence or even " |
| 216 |
"to re-generate a layout close to the original:" |
| 217 |
msgstr "PyMuPDFには、いくつかの方法で読み順を再確立したり、元のレイアウトに近い形で再生成する手段があります:" |
| 218 |
|
| 219 |
#: ../../recipes-text.rst:112 716e99c2ff9344fe81fafd78de2007c3 |
| 220 |
msgid "" |
| 221 |
"Use `sort` parameter of :meth:`Page.get_text`. It will sort the output " |
| 222 |
"from top-left to bottom-right (ignored for XHTML, HTML and XML output)." |
| 223 |
msgstr "" |
| 224 |
":meth:`Page.get_text` の `sort` " |
| 225 |
"パラメーターを使用します。これにより、出力が左上から右下に向かってソートされます(XHTML、HTML、XML出力には無効です)。" |
| 226 |
|
| 227 |
#: ../../recipes-text.rst:113 bcd2685affe8476281c9b4f6df0f6ff9 |
| 228 |
msgid "" |
| 229 |
"Use the `pymupdf` module in CLI: `python -m pymupdf gettext ...`, which " |
| 230 |
"produces a text file where text has been re-arranged in layout-preserving" |
| 231 |
" mode. Many options are available to control the output." |
| 232 |
msgstr "" |
| 233 |
"CLIで `pymupdf` モジュールを使用します: `python -m pymupdf gettext ...` " |
| 234 |
"。これにより、テキストがレイアウトを保持するモードで再配置されたテキストファイルが生成されます。出力を制御するための多くのオプションが利用可能です。" |
| 235 |
|
| 236 |
#: ../../recipes-text.rst:115 b14412bcce2e4fabab0f9c2421c08934 |
| 237 |
msgid "" |
| 238 |
"You can also use the above mentioned `script " |
| 239 |
"<https://github.com/pymupdf/PyMuPDF/wiki/How-to-extract-text-" |
| 240 |
"from-a-rectangle>`_ with your modifications." |
| 241 |
msgstr "" |
| 242 |
"また、上記の `スクリプト <https://github.com/pymupdf/PyMuPDF/wiki/How-to-extract-" |
| 243 |
"text-from-a-rectangle>`_ を自分の変更とともに使用することもできます。" |
| 244 |
|
| 245 |
#: ../../recipes-text.rst:122 6fb4548c9a0a42da9939b9ba59fee62a |
| 246 |
msgid "" |
| 247 |
"How to :index:`Extract Table Content <pair: extract; table>` from " |
| 248 |
"Documents" |
| 249 |
msgstr "ドキュメントから表の内容を抽出する方法" |
| 250 |
|
| 251 |
#: ../../recipes-text.rst:123 b9aeb958d874414a8dfbe817d7e491be |
| 252 |
msgid "" |
| 253 |
"If you see a table in a document, you are normally not looking at " |
| 254 |
"something like an embedded Excel or other identifiable object. It usually" |
| 255 |
" is just normal, standard text, formatted to appear as tabular data." |
| 256 |
msgstr "文書で表を見る場合、通常は埋め込まれたExcelなどの識別可能なオブジェクトのようなものではありません。通常、単なる通常の標準テキストで、表のデータとして表示されるようにフォーマットされています。" |
| 257 |
|
| 258 |
#: ../../recipes-text.rst:125 48f2b8ac5dc54b469a4fac3b57e95083 |
| 259 |
msgid "" |
| 260 |
"Extracting tabular data from such a page area therefore means that you " |
| 261 |
"must find a way to **identify** the table area (i.e. its boundary box), " |
| 262 |
"then **(1)** graphically indicate table and column borders, and **(2)** " |
| 263 |
"then extract text based on this information." |
| 264 |
msgstr "したがって、そのようなページ領域から表のデータを抽出するには、まず表の領域(つまり、その境界ボックス)を特定する方法を見つける必要があり、その後(1)グラフィカルに表と列の境界を示し、(2)この情報に基づいてテキストを抽出する必要があります。" |
| 265 |
|
| 266 |
#: ../../recipes-text.rst:127 b55a6db346bb4df3adb269cd4da2d2a1 |
| 267 |
msgid "" |
| 268 |
"This can be a very complex task, depending on details like the presence " |
| 269 |
"or absence of lines, rectangles or other supporting vector graphics." |
| 270 |
msgstr "これは、線、四角形、またはその他のサポートベクトルグラフィックの存在または不在などの詳細に依存するため、非常に複雑なタスクになる可能性があります。" |
| 271 |
|
| 272 |
#: ../../recipes-text.rst:129 2ab382191b1e4c8dbcb05ab17b9a6f16 |
| 273 |
msgid "" |
| 274 |
"Method :meth:`Page.find_tables` does all that for you, with a high table " |
| 275 |
"detection precision. Its great advantage is that there are no external " |
| 276 |
"library dependencies, nor the need to employ artificial intelligence or " |
| 277 |
"machine learning technologies. It also provides an integrated interface " |
| 278 |
"to the well-known Python package for data analysis `pandas " |
| 279 |
"<https://pypi.org/project/pandas/>`_." |
| 280 |
msgstr "" |
| 281 |
"Method :meth:`Page.find_tables` " |
| 282 |
"は、高い表検出精度を備えて、すべてをあなたのために行います。その大きな利点は、外部ライブラリの依存関係がないこと、人工知能や機械学習技術を使用する必要がないことです。また、データ分析のためのPythonパッケージである" |
| 283 |
" `pandas <https://pypi.org/project/pandas/>`_ のための統合されたインターフェースも提供します。" |
| 284 |
|
| 285 |
#: ../../recipes-text.rst:131 b620d2150671401698d7a280f56ee3cc |
| 286 |
msgid "" |
| 287 |
"Please have a look at example `Jupyter notebooks " |
| 288 |
"<https://github.com/pymupdf/PyMuPDF-Utilities/tree/master/table-" |
| 289 |
"analysis>`_, which cover standard situations like multiple tables on one " |
| 290 |
"page or joining table fragments across multiple pages." |
| 291 |
msgstr "" |
| 292 |
"標準的な状況をカバーする例の `Jupyter <https://github.com/pymupdf/PyMuPDF-" |
| 293 |
"Utilities/tree/master/table-analysis>`_ " |
| 294 |
"ノートブックをご覧いただければ幸いです。これには、1つのページに複数の表や複数のページにまたがる表の断片を結合するなどの状況が含まれています。" |
| 295 |
|
| 296 |
#: ../../recipes-text.rst:138 259587f74c604a45bd83bdba19dbfdd9 |
| 297 |
msgid "How to Mark Extracted Text" |
| 298 |
msgstr "抽出したテキストをマークする方法" |
| 299 |
|
| 300 |
#: ../../recipes-text.rst:139 b7f64cd47ccb4f889b2a09f74c66564f |
| 301 |
msgid "" |
| 302 |
"There is a standard search function to search for arbitrary text on a " |
| 303 |
"page: :meth:`Page.search_for`. It returns a list of :ref:`Rect` objects " |
| 304 |
"which surround a found occurrence. These rectangles can for example be " |
| 305 |
"used to automatically insert annotations which visibly mark the found " |
| 306 |
"text." |
| 307 |
msgstr "" |
| 308 |
"ページ上で任意のテキストを検索するための標準的な検索機能があります: :meth:`Page.search_for` " |
| 309 |
"です。これは、見つかったテキストを囲む :ref:`Rect` " |
| 310 |
"オブジェクトのリストを返します。これらの四角形は、見つかったテキストを目に見えるようにマークするために自動的に注釈を挿入するのに使用できます。" |
| 311 |
|
| 312 |
#: ../../recipes-text.rst:141 febfc5dbb25f420dbf6c3ef3e88b24c4 |
| 313 |
msgid "This method has advantages and drawbacks. Pros are:" |
| 314 |
msgstr "この方法には利点と欠点があります。利点は次のとおりです:" |
| 315 |
|
| 316 |
#: ../../recipes-text.rst:143 101f473976a74f1c9ab424859e8862dd |
| 317 |
msgid "The search string can contain blanks and wrap across lines" |
| 318 |
msgstr "検索文字列には空白を含めることができ、行をまたぐことができます。" |
| 319 |
|
| 320 |
#: ../../recipes-text.rst:144 6ad25d7b6043421a8142042b3b9a3ec9 |
| 321 |
msgid "Upper or lower case characters are treated equal" |
| 322 |
msgstr "大文字と小文字は同じように扱われます。" |
| 323 |
|
| 324 |
#: ../../recipes-text.rst:145 b3efeff8f1c9463ab435a4742bc0c5bd |
| 325 |
msgid "Word hyphenation at line ends is detected and resolved" |
| 326 |
msgstr "行末での単語のハイフネーションが検出され、解決されます。" |
| 327 |
|
| 328 |
#: ../../recipes-text.rst:146 7a50b0a1eba54da5a0cbd913bde35367 |
| 329 |
msgid "" |
| 330 |
"Return may also be a list of :ref:`Quad` objects to precisely locate text" |
| 331 |
" that is **not parallel** to either axis -- using :ref:`Quad` output is " |
| 332 |
"also recommended, when page rotation is not zero." |
| 333 |
msgstr "" |
| 334 |
"返り値は :ref:`Quad` " |
| 335 |
"オブジェクトのリストになる場合もあり、これにより軸に対して平行でないテキストを正確に位置付けることができます。ページの回転がゼロでない場合には、 " |
| 336 |
":ref:`Quad` の出力を使用することも推奨されます。" |
| 337 |
|
| 338 |
#: ../../recipes-text.rst:148 9f60ccd5aee74a1bb2f791ed857906ac |
| 339 |
msgid "But you also have other options::" |
| 340 |
msgstr "ただし、他にも選択肢があります::" |
| 341 |
|
| 342 |
#: ../../recipes-text.rst:182 324f957419b2409787a7496e75b13dee |
| 343 |
msgid "" |
| 344 |
"This script uses `Page.get_text(\"words\")` to look for a string, handed " |
| 345 |
"in via cli parameter. This method separates a page's text into \"words\" " |
| 346 |
"using white spaces as delimiters. Further remarks:" |
| 347 |
msgstr "このスクリプトは、cliパラメーターを介して渡された文字列を検索するためにPage.get_text(\"words\")を使用します。この方法では、ページのテキストがスペースと改行を区切りとして「単語」に分割されます。さらなる注釈:" |
| 348 |
|
| 349 |
#: ../../recipes-text.rst:184 e11b43b6869e46b89ed4021f9ca781ea |
| 350 |
msgid "" |
| 351 |
"If found, the **complete word containing the string** is marked " |
| 352 |
"(underlined) -- not only the search string." |
| 353 |
msgstr "文字列が見つかった場合、検索文字列だけでなく、その文字列を含む完全な単語がマークされます(アンダーラインが引かれます)。" |
| 354 |
|
| 355 |
#: ../../recipes-text.rst:185 04e60745b3b34c6b91dcf325e659bc11 |
| 356 |
msgid "" |
| 357 |
"The search string may **not contain word delimiters**. By default, word " |
| 358 |
"delimiters are white spaces and the non-breaking space `chr(0xA0)`. If " |
| 359 |
"you use extra delimiting characters like `page.get_text(\"words\", " |
| 360 |
"delimiters=\"./,\")` then none of these characters should be included in " |
| 361 |
"your search string either." |
| 362 |
msgstr "" |
| 363 |
"検索文字列には単語の区切り文字を含めることはできません。デフォルトでは、単語の区切り文字は空白と非改行空白 `chr(0xA0)` です。もし、 " |
| 364 |
"`page.get_text(\"words\", delimiters=\"./,\")` " |
| 365 |
"のような追加の区切り文字を使用する場合は、これらの文字を検索文字列に含めてはいけません。" |
| 366 |
|
| 367 |
#: ../../recipes-text.rst:186 d2efc0fb67834d26a4980492e4ba653b |
| 368 |
msgid "" |
| 369 |
"As shown here, upper / lower cases are **respected**. But this can be " |
| 370 |
"changed by using the string method *lower()* (or even regular " |
| 371 |
"expressions) in function *mark_word*." |
| 372 |
msgstr "" |
| 373 |
"ここで示したように、大文字と小文字は区別されますが、`mark_word` 関数で `lower()` " |
| 374 |
"メソッド(または正規表現)を使用することで変更できます。" |
| 375 |
|
| 376 |
#: ../../recipes-text.rst:187 f1f92985f2ae49809306e7b57ba6c5b1 |
| 377 |
msgid "There is **no upper limit**: all occurrences will be detected." |
| 378 |
msgstr "上限はありません。すべての出現を検出します。" |
| 379 |
|
| 380 |
#: ../../recipes-text.rst:188 6639bc0b294042f3b7da287582d935d1 |
| 381 |
msgid "" |
| 382 |
"You can use **anything** to mark the word: 'Underline', 'Highlight', " |
| 383 |
"'StrikeThrough' or 'Square' annotations, etc." |
| 384 |
msgstr "単語をマークするために何を使用しても構いません:「アンダーライン」、「ハイライト」、「取り消し線」、「四角」の注釈などがあります。" |
| 385 |
|
| 386 |
#: ../../recipes-text.rst:189 f003fe97efd4436285d6bc3016b36180 |
| 387 |
msgid "" |
| 388 |
"Here is an example snippet of a page of this manual, where \"MuPDF\" has " |
| 389 |
"been used as the search string. Note that all strings **containing " |
| 390 |
"\"MuPDF\"** have been completely underlined (not just the search string)." |
| 391 |
msgstr "以下は、このマニュアルのページの一部の例スニペットで、「MuPDF」が検索文字列として使用されています。注意:「MuPDF」を含むすべての文字列が完全にアンダーラインで引かれていることに注意してください(検索文字列だけでなく)。" |
| 392 |
|
| 393 |
#: ../../recipes-text.rst:200 07364170c89f43d7a469ec584d3f4f06 |
| 394 |
msgid "How to Mark Searched Text" |
| 395 |
msgstr "検索したテキストをマークする方法" |
| 396 |
|
| 397 |
#: ../../recipes-text.rst:204 11638cbd201f4578b319a8b04e773026 |
| 398 |
msgid "This script searches for text and marks it::" |
| 399 |
msgstr "このスクリプトはテキストを検索してマークします::" |
| 400 |
|
| 401 |
#: ../../recipes-text.rst:230 15b785bdfebf418aba157f4f78a77e4b |
| 402 |
msgid "The result looks like this:" |
| 403 |
msgstr "結果は以下のようになります:" |
| 404 |
|
| 405 |
#: ../../recipes-text.rst:241 080eb1dc215a426e9e7a03e134dc4fa2 |
| 406 |
msgid "How to Mark Non-horizontal Text" |
| 407 |
msgstr "非水平テキストをマークする方法" |
| 408 |
|
| 409 |
#: ../../recipes-text.rst:242 6fe2ff76b1d0421d8ab98c926c234cb0 |
| 410 |
msgid "" |
| 411 |
"The previous section already shows an example for marking non-horizontal " |
| 412 |
"text, that was detected by text **searching**." |
| 413 |
msgstr "前のセクションでは、テキスト検索によって検出された非水平テキストのマークの例が既に示されています。" |
| 414 |
|
| 415 |
#: ../../recipes-text.rst:244 9f3587b3ee80418e80f13b3ad91233ec |
| 416 |
msgid "" |
| 417 |
"But text **extraction** with the \"dict\" / \"rawdict\" options of " |
| 418 |
":meth:`Page.get_text` may also return text with a non-zero angle to the " |
| 419 |
"x-axis. This is indicated by the value of the line dictionary's `\"dir\"`" |
| 420 |
" key: it is the tuple `(cosine, sine)` for that angle. If `line[\"dir\"] " |
| 421 |
"!= (1, 0)`, then the text of all its spans is rotated by (the same) angle" |
| 422 |
" != 0." |
| 423 |
msgstr "" |
| 424 |
"しかし、 :meth:`Page.get_text` " |
| 425 |
"の「dict」/「rawdict」オプションを使用したテキスト抽出では、x軸に対してゼロでない角度のテキストも返される場合があります。これは、行の辞書の" |
| 426 |
" \"dir\" キーの値によって示されます:それはその角度に対する `(cosine, sine)` のタプルです。 " |
| 427 |
"`line[\"dir\"] != (1, 0)` であれば、すべてのスパンのテキストは (同じ) 角度 != 0 によって回転しています。" |
| 428 |
|
| 429 |
#: ../../recipes-text.rst:246 b5ac4e18122a4f8985e80cf88f3152b4 |
| 430 |
msgid "" |
| 431 |
"The \"bboxes\" returned by the method however are rectangles only -- not " |
| 432 |
"quads. So, to mark span text correctly, its quad must be recovered from " |
| 433 |
"the data contained in the line and span dictionary. Do this with the " |
| 434 |
"following utility function (new in v1.18.9)::" |
| 435 |
msgstr "ただし、このメソッドによって返される「bboxes」は四角形のみであり、クワッドではありません。したがって、スパンテキストを正しくマークするには、行とスパンの辞書に含まれるデータからクワッドを回復する必要があります。以下のユーティリティ関数を使用してください(v1.18.9で新しく追加されました)::" |
| 436 |
|
| 437 |
#: ../../recipes-text.rst:251 220c8fb8fa4b46c781ff32905bc0a24e |
| 438 |
msgid "" |
| 439 |
"If you want to **mark the complete line** or a subset of its spans in one" |
| 440 |
" go, use the following snippet (works for v1.18.10 or later)::" |
| 441 |
msgstr "一度に完全な行またはその一部のスパンをマークしたい場合は、以下のスニペットを使用してください(v1.18.10以降で動作します)" |
| 442 |
|
| 443 |
#: ../../recipes-text.rst:258 85d1dfa0969b4848b83f9b2f117d981c |
| 444 |
msgid "" |
| 445 |
"The `spans` argument above may specify any sub-list of `line[\"spans\"]`." |
| 446 |
" In the example above, the second to second-to-last span are marked. If " |
| 447 |
"omitted, the complete line is taken." |
| 448 |
msgstr "" |
| 449 |
"上記の `spans` 引数は、`line[\"spans\"]` " |
| 450 |
"の任意の部分リストを指定できます。上記の例では、2番目から最後から2番目のスパンがマークされます。省略すると、完全な行が取得されます" |
| 451 |
|
| 452 |
#: ../../recipes-text.rst:265 b4aaece1bac342df88b2588a53b1488f |
| 453 |
msgid "How to Analyze Font Characteristics" |
| 454 |
msgstr "フォントの特性を分析する方法" |
| 455 |
|
| 456 |
#: ../../recipes-text.rst:266 3d03a051124b43d1bae8d901b0aecd28 |
| 457 |
msgid "" |
| 458 |
"To analyze the characteristics of text in a PDF use this elementary " |
| 459 |
"script as a starting point:" |
| 460 |
msgstr "PDF内のテキストの特性を分析するには、以下の初歩的なスクリプトを出発点として使用します::" |
| 461 |
|
| 462 |
#: ../../recipes-text.rst:271 f055a412baca41b5a95b0ecadafe2e3e |
| 463 |
msgid "Here is the PDF page and the script output:" |
| 464 |
msgstr "以下はPDFページとスクリプトの出力です。" |
| 465 |
|
| 466 |
#: ../../recipes-text.rst:282 66219ea8cab542688f83c1bd81f081c1 |
| 467 |
msgid "How to Insert Text" |
| 468 |
msgstr "テキストの挿入方法" |
| 469 |
|
| 470 |
#: ../../recipes-text.rst:283 4e0c636dd4ac4eb387bcde62a6a2a175 |
| 471 |
msgid "" |
| 472 |
"PyMuPDF provides ways to insert text on new or existing PDF pages with " |
| 473 |
"the following features:" |
| 474 |
msgstr "PyMuPDFは、以下の機能を備えて新しいまたは既存のPDFページにテキストを挿入する方法を提供しています:" |
| 475 |
|
| 476 |
#: ../../recipes-text.rst:285 155bbc5aa1454c93b980b30ac316c0b0 |
| 477 |
msgid "" |
| 478 |
"choose the font, including built-in fonts and fonts that are available as" |
| 479 |
" files" |
| 480 |
msgstr "フォントの選択:組み込みのフォントやファイルとして利用可能なフォントを選択できます。" |
| 481 |
|
| 482 |
#: ../../recipes-text.rst:286 b9dd50f8a43d417ea405cd07b235088d |
| 483 |
msgid "choose text characteristics like bold, italic, font size, font color, etc." |
| 484 |
msgstr "テキストの特性の選択:太字、斜体、フォントサイズ、フォントカラーなど、テキストの特性を選択できます。" |
| 485 |
|
| 486 |
#: ../../recipes-text.rst:287 f938ab7b656c436297d8120a887e4fcc |
| 487 |
msgid "position the text in multiple ways:" |
| 488 |
msgstr "テキストの配置方法:" |
| 489 |
|
| 490 |
#: ../../recipes-text.rst:289 96ff2b06077841bf82fb23104230f9ed |
| 491 |
msgid "either as simple line-oriented output starting at a certain point," |
| 492 |
msgstr "特定のポイントを起点として単純な行指向の出力として配置することができます。 " |
| 493 |
|
| 494 |
#: ../../recipes-text.rst:290 dcf40c10ea294dc8a656732166297259 |
| 495 |
msgid "" |
| 496 |
"or fitting text in a box provided as a rectangle, in which case text " |
| 497 |
"alignment choices are also available," |
| 498 |
msgstr "ボックスにテキストをフィットさせる場合は、テキストの配置を選択することもできます。この場合、テキストの整列オプションも利用できます。" |
| 499 |
|
| 500 |
#: ../../recipes-text.rst:291 056f2e92f23f4d41beb702386a246a80 |
| 501 |
msgid "" |
| 502 |
"choose whether text should be put in foreground (overlay existing " |
| 503 |
"content)," |
| 504 |
msgstr "テキストを前面に配置するか選択できます(既存のコンテンツをオーバーレイします)。" |
| 505 |
|
| 506 |
#: ../../recipes-text.rst:292 5999867be03a4be495cbfd225913c3d4 |
| 507 |
msgid "" |
| 508 |
"all text can be arbitrarily \"morphed\", i.e. its appearance can be " |
| 509 |
"changed via a :ref:`Matrix`, to achieve effects like scaling, shearing or" |
| 510 |
" mirroring," |
| 511 |
msgstr "テキストは任意に「変形」されることができます。つまり、行列を使用して拡大、せん断、反転などの効果を得ることができます。" |
| 512 |
|
| 513 |
#: ../../recipes-text.rst:293 25c6fa1fb2344a02a3a693135a7b5ad4 |
| 514 |
msgid "" |
| 515 |
"independently from morphing and in addition to that, text can be rotated " |
| 516 |
"by integer multiples of 90 degrees." |
| 517 |
msgstr "変形とは別に、テキストを90度の整数倍で回転させることもできます。" |
| 518 |
|
| 519 |
#: ../../recipes-text.rst:295 2190abc125234360a3e1fab88ef34947 |
| 520 |
msgid "" |
| 521 |
"All of the above is provided by three basic :ref:`Page`, resp. " |
| 522 |
":ref:`Shape` methods:" |
| 523 |
msgstr "以上のすべては、それぞれの基本的な :ref:`Page` 、:ref:`Shape` メソッドによって提供されています。" |
| 524 |
|
| 525 |
#: ../../recipes-text.rst:297 4fb036ddb792472197216092b9eefddb |
| 526 |
msgid "" |
| 527 |
":meth:`Page.insert_font` -- install a font for the page for later " |
| 528 |
"reference. The result is reflected in the output of " |
| 529 |
":meth:`Document.get_page_fonts`. The font can be:" |
| 530 |
msgstr "" |
| 531 |
":meth:`Page.insert_font` - ページにフォントをインストールして後で参照できるようにします。その結果は、 " |
| 532 |
":meth:`Document.get_page_fonts` の出力に反映されます。フォントは以下の方法で提供できます:" |
| 533 |
|
| 534 |
#: ../../recipes-text.rst:299 3c7f3dadc700412b9396227e3e8b9ff6 |
| 535 |
msgid "provided as a file," |
| 536 |
msgstr "ファイルとして提供する。" |
| 537 |
|
| 538 |
#: ../../recipes-text.rst:300 40d5ff2c32c44c6584f3112ed978abef |
| 539 |
msgid "via :ref:`Font` (then use :attr:`Font.buffer`)" |
| 540 |
msgstr ":ref:`Font` を使用して提供する(その場合、 :attr:`Font.buffer` を使用します)。" |
| 541 |
|
| 542 |
#: ../../recipes-text.rst:301 6267fd1e928e41658810a84d52de31c7 |
| 543 |
msgid "already present somewhere in **this or another** PDF, or" |
| 544 |
msgstr "既にこのPDFまたは別のPDFのどこかに存在する。" |
| 545 |
|
| 546 |
#: ../../recipes-text.rst:302 2ebf7edb3c7e4c4482334300df5af372 |
| 547 |
msgid "be a **built-in** font." |
| 548 |
msgstr "組み込みフォントである。" |
| 549 |
|
| 550 |
#: ../../recipes-text.rst:304 e6a884a850ad4cb49e2a74eeb2f5bc61 |
| 551 |
msgid "" |
| 552 |
":meth:`Page.insert_text` -- write some lines of text. Internally, this " |
| 553 |
"uses :meth:`Shape.insert_text`." |
| 554 |
msgstr "" |
| 555 |
":meth:`Page.insert_text` - テキストの行を書き込みます。内部的には :meth:`Shape.insert_text`" |
| 556 |
" を使用します。" |
| 557 |
|
| 558 |
#: ../../recipes-text.rst:306 5252e3a0b80e49a4af1e7a62b8a2cc00 |
| 559 |
msgid "" |
| 560 |
":meth:`Page.insert_textbox` -- fit text in a given rectangle. Here you " |
| 561 |
"can choose text alignment features (left, right, centered, justified) and" |
| 562 |
" you keep control as to whether text actually fits. Internally, this uses" |
| 563 |
" :meth:`Shape.insert_textbox`." |
| 564 |
msgstr "" |
| 565 |
":meth:`Page.insert_textbox` - " |
| 566 |
"指定された矩形にテキストをフィットさせます。ここでは、テキストの整列機能(左揃え、右揃え、中央揃え、両端揃え)を選択できます。また、テキストが実際にフィットするかどうかの制御もできます。内部的には" |
| 567 |
" :meth:`Shape.insert_textbox` を使用します。" |
| 568 |
|
| 569 |
#: ../../recipes-text.rst:308 0d6285e91b3c45608b972b2de7612705 |
| 570 |
msgid "Both text insertion methods automatically install the font as necessary." |
| 571 |
msgstr "テキスト挿入の両方の方法は、必要に応じてフォントを自動的にインストールします。" |
| 572 |
|
| 573 |
#: ../../recipes-text.rst:314 4615115cc7ec417e9025309e87d5c912 |
| 574 |
msgid "How to Write Text Lines" |
| 575 |
msgstr "テキスト行を書く方法" |
| 576 |
|
| 577 |
#: ../../recipes-text.rst:315 c5ec955ab13243b49f36ee01f5a5e363 |
| 578 |
msgid "Output some text lines on a page::" |
| 579 |
msgstr "ページにいくつかのテキスト行を出力する方法::" |
| 580 |
|
| 581 |
#: ../../recipes-text.rst:336 8385d05c2aaf4baf89657017938f1841 |
| 582 |
msgid "" |
| 583 |
"With this method, only the **number of lines** will be controlled to not " |
| 584 |
"go beyond page height. Surplus lines will not be written and the number " |
| 585 |
"of actual lines will be returned. The calculation uses a line height " |
| 586 |
"calculated from the :data:`fontsize` and 36 points (0.5 inches) as bottom" |
| 587 |
" margin." |
| 588 |
msgstr "" |
| 589 |
"この方法では、ページの高さを超えないように行の数だけを制御します。余剰の行は書き込まれず、実際の行数が返されます。計算には、:data:`fontsize`" |
| 590 |
" と36ポイント(0.5インチ)のボトムマージンから計算された行の高さが使用されます。" |
| 591 |
|
| 592 |
#: ../../recipes-text.rst:338 86eb433806094945b5d70882c088708a |
| 593 |
msgid "" |
| 594 |
"Line **width is ignored**. The surplus part of a line will simply be " |
| 595 |
"invisible." |
| 596 |
msgstr "行の幅は無視されます。行の余剰部分は単に見えなくなります。" |
| 597 |
|
| 598 |
#: ../../recipes-text.rst:340 a76488ed16d54e53b404c6f7a09d9313 |
| 599 |
msgid "" |
| 600 |
"However, for built-in fonts there are ways to calculate the line width " |
| 601 |
"beforehand - see :meth:`get_text_length`." |
| 602 |
msgstr "ただし、組み込みのフォントには、行の幅を事前に計算する方法があります。 :meth:`get_text_length` を参照してください。" |
| 603 |
|
| 604 |
#: ../../recipes-text.rst:342 b366c349b7114db78ed6f108144468f9 |
| 605 |
msgid "" |
| 606 |
"Here is another example. It inserts 4 text strings using the four " |
| 607 |
"different rotation options, and thereby explains, how the text insertion " |
| 608 |
"point must be chosen to achieve the desired result::" |
| 609 |
msgstr "以下は別の例です。4つの異なる回転オプションを使用してテキスト文字列を挿入し、それにより、望む結果を得るためにどのようにテキスト挿入ポイントを選択すべきかを説明しています::" |
| 610 |
|
| 611 |
#: ../../recipes-text.rst:378 fb820c64521f4522a238d2ce77dcaf18 |
| 612 |
msgid "This is the result:" |
| 613 |
msgstr "これが結果です。" |
| 614 |
|
| 615 |
#: ../../recipes-text.rst:390 541c84709e8840f99fe3aba0b40495a5 |
| 616 |
msgid "How to Fill a Text Box" |
| 617 |
msgstr "テキストボックスの塗りつぶし方" |
| 618 |
|
| 619 |
#: ../../recipes-text.rst:391 c6dcf5cccb0044f8b35d759a5221dfae |
| 620 |
msgid "" |
| 621 |
"This script fills 4 different rectangles with text, each time choosing a " |
| 622 |
"different rotation value::" |
| 623 |
msgstr "このスクリプトは、異なる回転値を選択して、4つの異なる長方形にテキストを塗りつぶします。" |
| 624 |
|
| 625 |
#: ../../recipes-text.rst:428 2e957f827c5b40aaa4e166eb9499bfbb |
| 626 |
msgid "" |
| 627 |
"Some default values were used above: font size 11 and text alignment " |
| 628 |
"\"left\". The result will look like this:" |
| 629 |
msgstr "上記ではいくつかのデフォルト値が使用されました:フォント「Helvetica」、フォントサイズ11、テキストの配置は「左寄せ」です。結果は以下のようになります。" |
| 630 |
|
| 631 |
#: ../../recipes-text.rst:438 c7e2172b7c074d11b35164dc32c22e23 |
| 632 |
msgid "How to Fill a Box with HTML Text" |
| 633 |
msgstr "HTMLテキストでボックスを埋める方法" |
| 634 |
|
| 635 |
#: ../../recipes-text.rst:439 42df2d56d1f34d98823882e630fe1cf7 |
| 636 |
msgid "" |
| 637 |
"Method :meth:`Page.insert_htmlbox` offers a **much more powerful** way to" |
| 638 |
" insert text in a rectangle." |
| 639 |
msgstr "メソッド :meth:`Page.insert_htmlbox` は、矩形にテキストを挿入するための **より強力な** 方法を提供します。" |
| 640 |
|
| 641 |
#: ../../recipes-text.rst:441 d5759271e33d478eae11f568d17338fc |
| 642 |
msgid "" |
| 643 |
"Instead of simple, plain text, this method accepts HTML source, which may" |
| 644 |
" not only contain HTML tags but also styling instructions to influence " |
| 645 |
"things like font, font weight (bold) and style (italic), color and much " |
| 646 |
"more." |
| 647 |
msgstr "このメソッドは、単純なプレーンテキストではなく、HTMLソースを受け入れます。HTMLタグのみならず、フォント、フォントの太さ(太字)、スタイル(イタリック)、色などを含むスタイル指示も含まれます。" |
| 648 |
|
| 649 |
#: ../../recipes-text.rst:443 ba663f954c914a1a8d20788c385f392c |
| 650 |
msgid "" |
| 651 |
"It is also possible to mix multiple fonts and languages, to output HTML " |
| 652 |
"tables and to insert images and URI links." |
| 653 |
msgstr "複数のフォントや言語を混在させ、HTMLテーブルを出力し、画像やURIリンクを挿入することも可能です。" |
| 654 |
|
| 655 |
#: ../../recipes-text.rst:445 e592608d0a5348499aff8a592bb61837 |
| 656 |
msgid "" |
| 657 |
"For even more styling flexibility, an additional CSS source may also be " |
| 658 |
"given." |
| 659 |
msgstr "さらなるスタイリングの柔軟性を求める場合、追加のCSSソースを指定することもできます。" |
| 660 |
|
| 661 |
#: ../../recipes-text.rst:447 11d3134828ab455a9beb1bd08b3eedc9 |
| 662 |
msgid "" |
| 663 |
"The method is based on the :ref:`Story` class. Therefore, complex script " |
| 664 |
"systems like Devanagari, Nepali, Tamil and many are supported and written" |
| 665 |
" correctly thanks to using the HarfBuzz library - which provides this so-" |
| 666 |
"called **\"text shaping\"** feature." |
| 667 |
msgstr "" |
| 668 |
"このメソッドは、 :ref:`Story` " |
| 669 |
"(ストーリー)クラスに基づいています。そのため、デーヴァナーガリ、ネパール語、タミル語などの複雑な文字体系がサポートされ、HarfBuzzライブラリを使用して正しく書き込まれています" |
| 670 |
" - これがいわゆる **「テキストの形成」** 機能を提供します。" |
| 671 |
|
| 672 |
#: ../../recipes-text.rst:449 702e632bbb1846448ff097d413da8fb7 |
| 673 |
msgid "" |
| 674 |
"Any required fonts to output characters are automatically pulled in from " |
| 675 |
"the Google NOTO font library - as a fallback (when the -- optionally " |
| 676 |
"supplied -- user font(s) do not contain some glyphs)." |
| 677 |
msgstr "" |
| 678 |
"文字を出力するために必要なフォントは、--オプションで提供される--" |
| 679 |
"ユーザーフォントが一部のグリフを含んでいない場合のフォールバックとして、Google NOTOフォントライブラリから自動的に取得されます。" |
| 680 |
|
| 681 |
#: ../../recipes-text.rst:451 6c11c27cd47042e2974d9dad0680a2a9 |
| 682 |
msgid "" |
| 683 |
"As a small glimpse into the features offered here, we will output the " |
| 684 |
"following HTML-enriched text::" |
| 685 |
msgstr "ここで提供される機能の一端をご覧いただくために、以下のHTMLエンリッチされたテキストを出力します:" |
| 686 |
|
| 687 |
#: ../../recipes-text.rst:476 2ad55055659d456fabde0186e22d4e26 |
| 688 |
msgid "" |
| 689 |
"Please note how the \"css\" parameter is used to globally select the " |
| 690 |
"default \"sans-serif\" font and a font size of 14." |
| 691 |
msgstr "「css」パラメータが、デフォルトの「sans-serif」フォントとフォントサイズ14をグローバルに選択する方法に注意してください。" |
| 692 |
|
| 693 |
#: ../../recipes-text.rst:478 ../../recipes-text.rst:546 |
| 694 |
#: 3c4cca1121d6405eb83e0cb2871b7570 8e7f4fe263f24763bbf69efa19489d99 |
| 695 |
msgid "The result will look like this:" |
| 696 |
msgstr "結果は以下のようになります:" |
| 697 |
|
| 698 |
#: ../../recipes-text.rst:483 b7f446683eca4524b8fc2bd988191712 |
| 699 |
msgid "How to output HTML tables and images" |
| 700 |
msgstr "HTMLテーブルや画像を出力する方法" |
| 701 |
|
| 702 |
#: ../../recipes-text.rst:485 ed6bb1a3fe524fbda24f9c97da319399 |
| 703 |
msgid "" |
| 704 |
"Here is another example that outputs a table with this method. This time," |
| 705 |
" we are including all the styling in the HTML source itself. Please also " |
| 706 |
"note, how it works to include an image - even within a table cell::" |
| 707 |
msgstr "以下は、このメソッドを使用してテーブルを出力する別の例です。今回は、すべてのスタイリングをHTMLソース自体に含めています。また、テーブルセル内に画像を含める方法についても、ご注意ください::" |
| 708 |
|
| 709 |
#: ../../recipes-text.rst:552 4cd24c13bbba4d8d8b0887c53d530e7e |
| 710 |
msgid "How to Output Languages of the World" |
| 711 |
msgstr "世界の言語を出力する方法" |
| 712 |
|
| 713 |
#: ../../recipes-text.rst:554 5e1849ae29cd4ee787b3105c593def1a |
| 714 |
msgid "" |
| 715 |
"Our third example will demonstrate the automatic multi-language support. " |
| 716 |
"It includes automatic **text shaping** for complex scripting systems like" |
| 717 |
" Devanagari and right-to-left languages::" |
| 718 |
msgstr "" |
| 719 |
"3つ目の例では、自動多言語サポートを示します。これには、デーヴァナーガリや右から左への言語などの複雑なスクリプトシステムに対する自動 " |
| 720 |
"**テキスト整形** も含まれます:" |
| 721 |
|
| 722 |
#: ../../recipes-text.rst:584 7f93ecf38f45410098070b9c478823f0 |
| 723 |
msgid "And this is the output:" |
| 724 |
msgstr "これが結果です。" |
| 725 |
|
| 726 |
#: ../../recipes-text.rst:589 0fc8a571f2164e8b8fa47da93210cc9b |
| 727 |
msgid "How to Specify your Own Fonts" |
| 728 |
msgstr "独自のフォントを指定する方法" |
| 729 |
|
| 730 |
#: ../../recipes-text.rst:591 f4ddad35adde440a9851a6e69fcfcf35 |
| 731 |
msgid "" |
| 732 |
"Define your font files in CSS syntax using the `@font-face` statement. " |
| 733 |
"You need a separate `@font-face` for every combination of font weight and" |
| 734 |
" font style (e.g. bold or italic) you want to be supported. The following" |
| 735 |
" example uses the famous MS Comic Sans font in its four variants regular," |
| 736 |
" bold, italic and bold-italic." |
| 737 |
msgstr "" |
| 738 |
"`@font-face` " |
| 739 |
"ステートメントを使用して、CSS構文でフォントファイルを定義します。サポートされるフォントのウェイトとスタイル(太字や斜体など)の組み合わせごとに、個別の" |
| 740 |
" `@font-face` が必要です。以下の例では、有名な MS Comic Sans フォントの 4 " |
| 741 |
"つのバリアント(通常、太字、斜体、太字斜体)を使用しています。" |
| 742 |
|
| 743 |
#: ../../recipes-text.rst:593 f8779468c07c47ef9000fb2979f5214c |
| 744 |
msgid "" |
| 745 |
"As these four font files are located in the system's folder " |
| 746 |
"`C:/Windows/Fonts` the method needs an :ref:`Archive` definition that " |
| 747 |
"points to that folder::" |
| 748 |
msgstr "" |
| 749 |
"これらの 4 つのフォントファイルがシステムのフォルダ `C:/Windows/Fonts` にあるため、このメソッドには、そのフォルダを指す " |
| 750 |
":ref:`Archive` (アーカイブ)の定義が必要です。" |
| 751 |
|
| 752 |
#: ../../recipes-text.rst:642 06ab66e236cc4a2ea7d4c5a99612f4dd |
| 753 |
msgid "How to Request Text Alignment" |
| 754 |
msgstr "テキストの配置をリクエストする方法" |
| 755 |
|
| 756 |
#: ../../recipes-text.rst:644 7795bb870b4f42f187a0efe85b6c761d |
| 757 |
msgid "This example combines multiple requirements:" |
| 758 |
msgstr "この例では、複数の要件を組み合わせています" |
| 759 |
|
| 760 |
#: ../../recipes-text.rst:646 ff142aa60660494db8d4272e60183ff1 |
| 761 |
msgid "Rotate the text by 90 degrees anti-clockwise." |
| 762 |
msgstr "テキストを90度反時計回りに回転させます。" |
| 763 |
|
| 764 |
#: ../../recipes-text.rst:647 c1627013d8474a4f82eb9fcc874f012c |
| 765 |
msgid "" |
| 766 |
"Use a font from package `pymupdf-fonts <https://pypi.org/project/pymupdf-" |
| 767 |
"fonts/>`_. You will see that the respective CSS definitions are a lot " |
| 768 |
"easier in this case." |
| 769 |
msgstr "" |
| 770 |
"`pymupdf-fonts <https://pypi.org/project/pymupdf-fonts/>`_ " |
| 771 |
"パッケージからフォントを使用します。この場合、該当するCSS定義がはるかに簡単であることに気付くでしょう。" |
| 772 |
|
| 773 |
#: ../../recipes-text.rst:648 827ab2e55bb64443b6dcbb706662051a |
| 774 |
msgid "Align the text with the \"justify\" option." |
| 775 |
msgstr "テキストを \"justify\" オプションで配置します。" |
| 776 |
|
| 777 |
#: ../../recipes-text.rst:698 424d197ff94d4b4f9c4c0cc4513a960d |
| 778 |
msgid "How to Extract Text with Color" |
| 779 |
msgstr "色付きのテキストを抽出する方法" |
| 780 |
|
| 781 |
#: ../../recipes-text.rst:700 a842d1070655423986ddbb7afdbb289b |
| 782 |
msgid "" |
| 783 |
"Iterate through your text blocks and find the spans of text you need for " |
| 784 |
"this information." |
| 785 |
msgstr "テキストブロックを繰り返し処理し、必要な情報のテキストスパンを見つけます。" |
| 786 |
|
| 787 |
#: ../../footer.rst:60 b02445d3686f4215969d2dff8b922af2 |
| 788 |
msgid "This documentation covers all versions up to |version|." |
| 789 |
msgstr "このドキュメントは |version| までのすべてのバージョンを対象としています。" |
| 790 |
|
| 791 |
#~ msgid "PyMuPDF は、PDF (およびその他の)ドキュメントのデータ抽出、分析、変換、操作のための高性能な Python ライブラリです。" |
| 792 |
#~ msgstr "" |
| 793 |
|
| 794 |
#~ msgid "PDFテキスト抽出、PDFイメージ抽出、PDF変換、PDFテーブル、PDF分割、PDF作成, Pyodide, PyScript" |
| 795 |
#~ msgstr "" |
| 796 |
|
| 797 |
#~ msgid "The search string may **not contain spaces** or other white space." |
| 798 |
#~ msgstr "検索文字列にはスペースや他の空白文字を含めることはできません。" |
| 799 |
|
| 800 |
#~ msgid "How to Use Non-Standard Encoding" |
| 801 |
#~ msgstr "非標準エンコーディングの使用方法" |
| 802 |
|
| 803 |
#~ msgid "" |
| 804 |
#~ "Since v1.14, MuPDF allows Greek and " |
| 805 |
#~ "Russian encoding variants for the " |
| 806 |
#~ ":data:`Base14_Fonts`. In PyMuPDF this is " |
| 807 |
#~ "supported via an additional *encoding* " |
| 808 |
#~ "argument. Effectively, this is relevant " |
| 809 |
#~ "for Helvetica, Times-Roman and Courier" |
| 810 |
#~ " (and their bold / italic forms) " |
| 811 |
#~ "and characters outside the ASCII code" |
| 812 |
#~ " range only. Elsewhere, the argument " |
| 813 |
#~ "is ignored. Here is how to request" |
| 814 |
#~ " Russian encoding with the standard " |
| 815 |
#~ "font Helvetica::" |
| 816 |
#~ msgstr "" |
| 817 |
#~ "v1.14以降、MuPDFでは :data:`Base14_Fonts` " |
| 818 |
#~ "のギリシャ語およびロシア語のエンコーディングバリアントが許可されています。PyMuPDFでは、これは追加のエンコーディング引数を介してサポートされています。これは実際にはHelvetica" |
| 819 |
#~ "、Times-" |
| 820 |
#~ "Roman、Courier(およびそれらの太字/斜体形式)およびASCIIコード範囲外の文字にのみ影響します。他の場所では、この引数は無視されます。以下は、標準フォントHelveticaでロシア語のエンコーディングを要求する方法です::" |
| 821 |
|
| 822 |
#~ msgid "" |
| 823 |
#~ "The valid encoding values are " |
| 824 |
#~ "TEXT_ENCODING_LATIN (0), TEXT_ENCODING_GREEK (1)," |
| 825 |
#~ " and TEXT_ENCODING_CYRILLIC (2, Russian) " |
| 826 |
#~ "with Latin being the default. Encoding" |
| 827 |
#~ " can be specified by all relevant " |
| 828 |
#~ "font and text insertion methods." |
| 829 |
#~ msgstr "有効なエンコーディング値は、TEXT_ENCODING_LATIN(0)、TEXT_ENCODING_GREEK(1)、TEXT_ENCODING_CYRILLIC(2、ロシア語)であり、デフォルトはLatinです。エンコーディングは、すべての関連するフォントおよびテキスト挿入メソッドで指定できます。" |
| 830 |
|
| 831 |
#~ msgid "" |
| 832 |
#~ "By the above statement, the fontname " |
| 833 |
#~ "*helv* is automatically connected to the" |
| 834 |
#~ " Russian font variant of Helvetica. " |
| 835 |
#~ "Any subsequent text insertion with " |
| 836 |
#~ "**this fontname** will use the Russian" |
| 837 |
#~ " Helvetica encoding." |
| 838 |
#~ msgstr "上記の記述により、フォント名「helv」は自動的にHelveticaのロシア語バリアントに接続されます。このフォント名を使用して以降のテキスト挿入では、ロシア語のHelveticaエンコーディングが使用されます。" |
| 839 |
|
| 840 |
#~ msgid "" |
| 841 |
#~ "If you change the fontname just " |
| 842 |
#~ "slightly, you can also achieve an " |
| 843 |
#~ "**encoding \"mixture\"** for the **same " |
| 844 |
#~ "base font** on the same page::" |
| 845 |
#~ msgstr "フォント名をわずかに変更することで、同じベースフォントの同じページ上でエンコーディングの「混合」を実現することもできます。" |
| 846 |
|
| 847 |
#~ msgid "The result:" |
| 848 |
#~ msgstr "結果は以下の通りです。" |
| 849 |
|
| 850 |
#~ msgid "" |
| 851 |
#~ "The snippet above indeed leads to " |
| 852 |
#~ "three different copies of the Helvetica" |
| 853 |
#~ " font in the PDF. Each copy is" |
| 854 |
#~ " uniquely identified (and referenceable) by" |
| 855 |
#~ " using the correct upper-lower case" |
| 856 |
#~ " spelling of the reserved word " |
| 857 |
#~ "\"helv\"::" |
| 858 |
#~ msgstr "上記のスニペットは実際にPDF内にHelveticaフォントの3つの異なるコピーを生成します。各コピーは正しい大文字小文字のスペル(\"helv\")を使用して一意に識別され、参照が可能です。" |
| 859 |
|
| 860 |
#~ msgid "Discord logo" |
| 861 |
#~ msgstr "" |
| 862 |
|