Skip to content

Commit 71715cf

Browse files
committed
Documentation: Round 3 of syntax updates.
1 parent d6c2df8 commit 71715cf

28 files changed

Lines changed: 121 additions & 132 deletions

docs/annot.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -365,7 +365,7 @@ There is a parent-child relationship between an annotation and its page. If the
365365

366366
:rtype: bool
367367

368-
This method is the only way to change the colors of a FreeText annotation. You cannot use `:meth:Annot.set_colors` for this purpose. But be aware that for rich-text annotations, the text color is never changed. The text color is set by the *text_color* entry of the *info* dictionary. This is a limitation of MuPDF and not a bug.
368+
This method is the only way to change the colors of a FreeText annotation. You cannot use :meth:`Annot.set_colors` for this purpose. But be aware that for rich-text annotations, the text color is never changed. The text color is set by the ``text_color`` entry of the ``info`` dictionary. This is a limitation of |MuPDF| and not a bug.
369369

370370
.. caution:: Using this method inside a :meth:`Page.annots` loop is **not recommended!** This is because most annotation updates require the owning page to be reloaded -- which cannot be done inside this loop. Please use the example coding pattern given in the documentation of this generator.
371371

docs/app4.rst

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -55,63 +55,63 @@ A set of eight files is used for the performance testing. With each file we have
5555
- **KB/page**
5656
- **Textsize/page**
5757
- **Notes**
58-
* - `adobe.pdf`_
58+
* - `adobe.pdf`
5959
- 32,472,771
6060
- 1,310
6161
- 794
6262
- 32,096
6363
- 24
6464
- 1,942
6565
- linearized, many links / bookmarks
66-
* - `artifex-website.pdf`_
66+
* - `artifex-website.pdf`
6767
- 31,570,732
6868
- 47
6969
- 46
7070
- 2,035
7171
- 656
7272
- 3,538
7373
- graphics oriented
74-
* - `db-systems.pdf`_
74+
* - `db-systems.pdf`
7575
- 29,326,355
7676
- 1,241
7777
- 0
7878
- 0
7979
- 23
8080
- 2,142
8181
-
82-
* - `fontforge.pdf`_
82+
* - `fontforge.pdf`
8383
- 8,222,384
8484
- 214
8585
- 31
8686
- 242
8787
- 38
8888
- 1,058
8989
- mix of text & graphics
90-
* - `pandas.pdf`_
90+
* - `pandas.pdf`
9191
- 10,585,962
9292
- 3,071
9393
- 536
9494
- 16,554
9595
- 3
9696
- 1,539
9797
- many pages
98-
* - `pymupdf.pdf`_
98+
* - `pymupdf.pdf`
9999
- 6,805,176
100100
- 478
101101
- 276
102102
- 5,277
103103
- 14
104104
- 1,937
105105
- text oriented
106-
* - `pythonbook.pdf`_
106+
* - `pythonbook.pdf`
107107
- 9,983,856
108108
- 669
109109
- 198
110110
- 1,953
111111
- 15
112112
- 1,929
113113
-
114-
* - `sample-50-MB-pdf-file.pdf`_
114+
* - `sample-50-MB-pdf-file.pdf`
115115
- 52,521,850
116116
- 1
117117
- 0
-9 Bytes
Binary file not shown.

docs/locales/ja/LC_MESSAGES/about.po

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -111,13 +111,13 @@ msgstr "ライセンスと著作権"
111111

112112
#: ../../about.rst:90 d2b1eb94b7a9461b9b9bd6171afc1f0c
113113
msgid ""
114-
"|PyMuPDF| and :title:`MuPDF` are now available under both, open-source "
115-
":title:`AGPL` and commercial license agreements. Please read the full "
116-
"text of the :title:`AGPL` license agreement, available in the "
117-
"distribution material (file COPYING) and `here "
114+
"|PyMuPDF| and |MuPDF| are now available under both, open-source "
115+
"|AGPL| and commercial license agreements. Please read the full "
116+
"text of the |AGPL| license agreement, available in the "
117+
"distribution material (file COPYING) and `on the GNU license page "
118118
"<https://www.gnu.org/licenses/agpl-3.0.html>`_, to ensure that your use "
119119
"case complies with the guidelines of the license. If you determine you "
120-
"cannot meet the requirements of the :title:`AGPL`, please contact "
120+
"cannot meet the requirements of the |AGPL|, please contact "
121121
"`Artifex <https://artifex.com/contact/pymupdf-inquiry.php?utm_source=rtd-"
122122
"pymupdf&utm_medium=rtd&utm_content=inline-link>`_ for more information "
123123
"regarding a commercial license."
3.6 KB
Binary file not shown.

docs/locales/ja/LC_MESSAGES/algebra.po

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ msgid ""
7575
msgstr "演算子は2つのオブジェクトを含むバイナリ演算子または単項演算子になります。"
7676

7777
#: ../../algebra.rst:22 ff83ad4ef4924a928f7fe7c91f007de7
78-
#, fuzzy
78+
7979
msgid ""
8080
"The resulting type of **binary** operations is either a **new object of "
8181
"the left operand's class,** a bool or (for dot products) a float."
@@ -88,7 +88,7 @@ msgid ""
8888
msgstr "単項演算の結果は、同じクラスの新しいオブジェクト、bool型、またはfloat型のいずれかです。"
8989

9090
#: ../../algebra.rst:26 a1336f1afec74044ada260ccd870436a
91-
#, fuzzy
91+
9292
msgid ""
9393
"The binary operators `+, -, *, /` are defined for all classes. They "
9494
"*roughly* do what you would expect -- **except, that the second operand "
@@ -113,7 +113,7 @@ msgstr ""
113113
" 、 :data:`rect_like` 、 :data:`quad_like` 、または :data:`matrix_like` と呼びます。"
114114

115115
#: ../../algebra.rst:31 d93daa3887f04faead0f46a53b4c2a9a
116-
#, fuzzy
116+
117117
msgid ""
118118
"Rectangles support **additional binary** operations: **intersection** "
119119
"(operator `\"&\"`), **union** (operator `\"|\"`) and **containment** "
@@ -126,7 +126,7 @@ msgid ""
126126
"binary operator then the expression `a °= b` is always valid and the same"
127127
" as `a = a ° b`. Therefore, be careful and do **not** do `p1 *= p2` for "
128128
"two points, because thereafter \"p1\" is a **float**."
129-
msgstr ""
129+
msgstr "バイナリ演算子は「インプレース演算」を完全にサポートしています。つまり、"°"がバイナリ演算子である場合、式 ``a °= b`` は常に有効であり、 ``a = a ° b`` と同じです。したがって、2つの点に対して ``p1 *= p2`` を行わないように注意してください。なぜなら、その後「p1」は浮動小数点数になってしまうからです。"
130130

131131
#: ../../algebra.rst:37 b197551ac91841fba96a5406efd0e076
132132
msgid "Unary Operations"
@@ -199,14 +199,14 @@ msgid ""
199199
"These are expressions like `a ° b` where \"°\" is any of the operators "
200200
"`+, -, *, /`. Also binary operations are expressions of the form `a == b`"
201201
" and `b in a`."
202-
msgstr ""
202+
msgstr "これらは ``a ° b`` のような式であり、ここで「°」は ``+``, ``-``, ``*``, ``/`` などの演算子のいずれかです。また、バイナリ演算には ``a == b`` や ``b in a`` のような形式の式も含まれます。"
203203

204204
#: ../../algebra.rst:55 347337c08b6e49ba8133b876c65de703
205205
msgid ""
206206
"If \"b\" is a number, then the respective operation is executed for each "
207207
"component of \"a\". Otherwise, if \"b\" is **not a number,** then the "
208208
"following happens:"
209-
msgstr ""
209+
msgstr "もし「b」が数値である場合、それぞれの演算は「a」の各コンポーネントに対して実行されます。一方、「b」が数値ではない場合、以下のことが起こります:"
210210

211211
#: ../../algebra.rst:61 882647f50a3548ada51850492e59336c
212212
msgid "a+b, a-b"
@@ -221,7 +221,7 @@ msgid "a*m, a/m"
221221
msgstr ""
222222

223223
#: ../../algebra.rst:62 7d3849829e3b4508827663e012314f30
224-
#, fuzzy
224+
225225
msgid ""
226226
"\"a\" can be a point, rectangle or matrix and \"m\" is a "
227227
":data:`matrix_like`. *\"a/m\"* is treated as *\"a*~m\"* (see note below "
@@ -239,7 +239,7 @@ msgstr ""
239239

240240
#: ../../algebra.rst:67 55f9b0922451482484ef7fe2110fefb7
241241
msgid "returns the **vector dot product** for a point \"a\" and point-like \"b\"."
242-
msgstr ""
242+
msgstr "点「a」と点のような「b」に対して、ベクトルの内積を返します。"
243243

244244
#: ../../algebra.rst:68 2c02e64b04dd47a89a57341e5557c6f4
245245
msgid "a&b"
@@ -385,7 +385,7 @@ msgstr "以下は、点 `p1` と点 `p2` を結ぶ直線の中点を求めます
385385
msgid ""
386386
"Compute the **vector dot product** of two points. You can compute the "
387387
"**cosine of angles** and check orthogonality."
388-
msgstr ""
388+
msgstr "2つの点のベクトル内積を計算します。これにより、角度のコサインを計算したり、直交性を確認したりすることができます。"
389389

390390
#: ../../algebra.rst:149 05936628739f4f5392d49359e0f8860d
391391
msgid "Manipulation with \"like\" Objects"
2.83 KB
Binary file not shown.

docs/locales/ja/LC_MESSAGES/annot.po

Lines changed: 27 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -45,14 +45,20 @@ msgstr "PDFのみ。"
4545

4646
#: ../../annot.rst:11 58f32778ecd843849cffbac30da6580a
4747
msgid ""
48-
"Quote from the :ref:`AdobeManual`: \"An annotation associates an object "
48+
"Quote from the :ref:`AdobeManual`:"
49+
msgstr ""
50+
":ref:`AdobeManual` からの引用: "
51+
52+
msgid ""
53+
"*\"An annotation associates an object "
4954
"such as a note, sound, or movie with a location on a page of a PDF "
5055
"document, or provides a way to interact with the user by means of the "
51-
"mouse and keyboard.\""
56+
"mouse and keyboard.\"*"
5257
msgstr ""
53-
":ref:`AdobeManual` からの引用: "
5458
"「注釈は、ノート、音声、動画などのオブジェクトをPDFドキュメントのページ上の位置に関連付けるか、マウスとキーボードを介してユーザーと対話する手段を提供します。」"
5559

60+
61+
5662
#: ../../annot.rst:13 a1ef865437ed4e5b8622fb4c309b374d
5763
msgid ""
5864
"There is a parent-child relationship between an annotation and its page. "
@@ -128,7 +134,6 @@ msgid ":meth:`Annot.get_textpage`"
128134
msgstr ""
129135

130136
#: ../../annot.rst:25 f960592668bb4d61a14db7770f245ff7
131-
#, fuzzy
132137
msgid "create a TextPage for the annotation"
133138
msgstr "アノテーションのためのポップアップを作成します"
134139

@@ -442,8 +447,8 @@ msgid ""
442447
msgstr "(v1.19.2で新規追加)インチあたりのドット数で指定された解像度。 `None` でない場合、matrixパラメータは無視されます。"
443448

444449
#: ../../annot.rst:81 b77081c57af64088978ad2f41b248bd4
445-
msgid "a colorspace to be used for image creation. Default is *pymupdf.csRGB*."
446-
msgstr "画像の作成に使用されるカラースペース。デフォルトは *pymupdf.csRGB* です。"
450+
msgid "a colorspace to be used for image creation. Default is ``pymupdf.csRGB``."
451+
msgstr "画像の作成に使用されるカラースペース。デフォルトは ``pymupdf.csRGB`` です。"
447452

448453
#: ../../annot.rst:84 2dcd533cb5c24787bf3ef2ea667576c1
449454
msgid "whether to include transparency information. Default is ``False``."
@@ -470,19 +475,18 @@ msgid ":ref:`Pixmap`"
470475
msgstr ""
471476

472477
#: ../../annot.rst:90 0b7db7e99f7746abad597233349afdaf
473-
#, fuzzy
474478
msgid ""
475479
"If the annotation has just been created or modified, you should "
476480
":meth:`Document.reload_page` the page first via `page = "
477481
"doc.reload_page(page)`."
478482
msgstr ""
479-
"注釈が作成または変更されたばかりの場合、まず *page = doc.reload_page(page)* "
483+
"注釈が作成または変更されたばかりの場合、まず ``page = doc.reload_page(page)`` "
480484
"を使用してページを再読み込みする必要があります。"
481485

482486
#: ../../annot.rst:92 672b6b5650554da988247bd501528456
483487
msgid ""
484488
"The pixmap will have *\"premultiplied\"* pixels if `alpha=True`. To learn"
485-
" about some background, e.g. look for \"Premultiplied alpha\" `here "
489+
" about some background, e.g. look for \"Premultiplied alpha\" `in this online glossary "
486490
"<https://en.wikipedia.org/wiki/Glossary_of_computer_graphics#P>`_."
487491
msgstr ""
488492

@@ -590,11 +594,11 @@ msgstr "アノテーションのためのポップアップを作成します"
590594
msgid ""
591595
"indicator bits controlling the content available for subsequent text "
592596
"extractions and searches -- see the parameter of :meth:`Annot.get_text`."
593-
msgstr ""
597+
msgstr "後続のテキスト抽出や検索に利用可能なコンテンツを制御する指標ビット -- :meth:`Annot.get_text` のパラメータを参照してください。"
594598

595599
#: ../../annot.rst:144 a0916e69962b40559ccefc18b36fe7ab
596600
msgid "restrict extracted text to this area."
597-
msgstr ""
601+
msgstr "抽出されるテキストをこのエリアに制限します。"
598602

599603
#: ../../annot.rst 10c25cc74cf14a4487da85267fd798e1
600604
#: 23ab237bc68240aab0c5942ffd105dbc 491acd8d88934a05b86aa6b039da0c4b
@@ -1008,9 +1012,9 @@ msgstr "バージョン1.16.9で変更: 色を直接設定できるようにし
10081012

10091013
#: ../../annot.rst:310 d388c00f532d4aecafa4def64bd6c525
10101014
msgid ""
1011-
"Changes the \"stroke\" and \"fill\" colors for supported annotation types"
1012-
" -- not all annotations accept both."
1013-
msgstr "サポートされている注釈タイプに対して「ストローク」と「塗りつぶし」の色を変更します – すべての注釈が両方を受け入れるわけではありません。"
1015+
"Changes the \"stroke\" and \"fill\" colors for supported annotation types -- not all annotation types accept both. **Do not use this method at all for FreeText annotations** because it has its special conventions to deal with up to three colors (border, fill, text)."
1016+
msgstr "サポートされている注釈タイプに対して「ストローク」と「塗りつぶし」の色を変更します – すべての注釈が両方を受け入れるわけではありません。FreeText注釈にはこのメソッドを一切使用しないでください。
1017+
このタイプの注釈は、境界線、塗りつぶし、テキストの最大3つの色を扱うための特別な規則があるためです。"
10141018

10151019
#: ../../annot.rst:312 6de264581c6f4f85a50cbe3ab18a7397
10161020
msgid ""
@@ -1029,11 +1033,9 @@ msgstr "上記を参照してください。"
10291033

10301034
#: ../../annot.rst:316 13a268dfb4a44682b64f2e122fe775e3
10311035
msgid ""
1032-
"*Changed in v1.18.5:* To completely remove a color specification, use an "
1033-
"empty sequence like `[]`. If you specify `None`, an existing "
1034-
"specification will not be changed."
1036+
"To completely remove a color specification, use an empty sequence like `[]`. If you specify `None`, an existing specification will not be changed."
10351037
msgstr ""
1036-
"*バージョン1.18.5で変更:* 色の仕様を完全に削除するには、`[]` のような空のシーケンスを使用してください。`None` "
1038+
"色の仕様を完全に削除するには、`[]` のような空のシーケンスを使用してください。`None` "
10371039
"を指定した場合、既存の仕様は変更されません。"
10381040

10391041
#: ../../annot.rst:321 941d573346c9417a9e600b67f4c4cdfb
@@ -1094,16 +1096,15 @@ msgstr ""
10941096
"注釈のブレンドモードを変更または設定します。有効な値についてはPDF標準のブレンドモードを参照してください。"
10951097

10961098
#: ../../annot.rst:353 ae8e841246674f4ab53acaa575475903
1097-
#, fuzzy
10981099
msgid "change :data:`fontsize` of the text. 'FreeText' annotations only."
10991100
msgstr "テキストのフォントサイズを変更します。 'FreeText' 注釈のみです。"
11001101

11011102
#: ../../annot.rst:354 26cc7f290781487ea2c8260b485b91f9
1102-
msgid "change the text color. 'FreeText' annotations only."
1103+
msgid "change the text color. 'FreeText' annotations only. This has the same effect as ``border_color``. Note that the text color of rich-text annotations cannot be changed at all because it is set by HTML / CSS syntax and part of the text itself."
11031104
msgstr "テキストの色を変更します。 'FreeText' 注釈のみです。"
11041105

11051106
#: ../../annot.rst:355 b98848bcd4c84b94b4f2339e929facdb
1106-
msgid "change the border color. 'FreeText' annotations only."
1107+
msgid "change the border color. 'FreeText' annotations only. This has the same effect as ``text_color``."
11071108
msgstr "境界線の色を変更します。 'FreeText' 注釈のみです。"
11081109

11091110
#: ../../annot.rst:356 ea1d7e13b3fc45dcaeaa3bd564ccba38
@@ -1156,6 +1157,10 @@ msgstr ""
11561157
":meth:`Page.annots` ループ内でこのメソッドを使用することは **お勧めしません!** "
11571158
"これは、ほとんどの注釈の更新には所有ページの再読み込みが必要であり、このループ内で行うことはできないためです。このジェネレータのドキュメントで提供されている例のコーディングパターンを使用してください。"
11581159

1160+
#: ../../annot.rst:368
1161+
msgid "This method is the only way to change the colors of a FreeText annotation. You cannot use :meth:`Annot.set_colors` for this purpose. But be aware that for rich-text annotations, the text color is never changed. The text color is set by the ``text_color`` entry of the ``info`` dictionary. This is a limitation of |MuPDF| and not a bug."
1162+
msgstr "このメソッドは、FreeText注釈の色を変更する唯一の方法です。この目的には、 :meth:`Annot.set_colors()` を使用することはできません。 ただし、リッチテキスト注釈の場合は注意が必要です。テキストの色は変更されず、 ``info`` 辞書の ``text_color`` エントリによって設定されます。 これは |MuPDF| の制限であり、不具合ではありません。"
1163+
11591164
#: ../../annot.rst:370 ff9bc4bf0cdd4acc976c156f5a315306
11601165
msgid "Basic information of the annot's attached file."
11611166
msgstr "アノットが添付されたファイルの基本情報。"
@@ -1561,7 +1566,7 @@ msgstr ""
15611566
"ページの表面よりも下に凹んだように見える模擬的な浮き彫りの矩形、 **\"U\"** (Underline)= 注釈矩形の底部に沿った単一の線。"
15621567

15631568
#: ../../annot.rst:557 43804865211f4957b4ab00f844766472
1564-
#, fuzzy
1569+
15651570
msgid ""
15661571
"*clouds* -- an integer indicating a \"cloudy\" border, where ``n`` is an "
15671572
"integer `-1 <= n <= 2`. A value `n = 0` indicates a straight line (no "
177 Bytes
Binary file not shown.

docs/locales/ja/LC_MESSAGES/app1.po

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -523,7 +523,6 @@ msgid ""
523523
msgstr "画像を含む出力バリアントを使用する際に画像に興味がない場合、必ず該当するビットをオフに設定してください。これにより、パフォーマンスが向上し、スペース要件が大幅に削減されます。"
524524

525525
#: ../../app1.rst:304 4babe75226f64adeb13494c473d77bda
526-
#, fuzzy
527526
msgid "To show the effect of `TEXT_INHIBIT_SPACES` have a look at this example::"
528527
msgstr "`TEXT_INHIBIT_SPACES` の効果を示すために、この例をご覧ください:"
529528

0 commit comments

Comments
 (0)