Skip to content

Commit fe6e672

Browse files
committed
Docs: Fixes some error warnings when building
also updates the version translations for Japanese
1 parent d19bdbb commit fe6e672

File tree

8 files changed

+23
-33
lines changed

8 files changed

+23
-33
lines changed

changes.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -672,7 +672,7 @@ Other:
672672

673673
* Other:
674674

675-
* Fixed bug in set_xml_metadata(), PR `3112 https://github.com/pymupdf/PyMuPDF/pull/3112>`_: Fix pdf_add_stream metadata error
675+
* Fixed bug in set_xml_metadata(), PR `3112 <https://github.com/pymupdf/PyMuPDF/pull/3112>`_: Fix pdf_add_stream metadata error
676676
* Fixed lack of `.parent` member in `TextPage` from `Annot.get_textpage()`.
677677
* Fixed bug in `Page.add_widget()`.
678678

docs/footer.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
.. _documentation_footer:
2+
13
----
24

35
.. raw:: html

docs/header.rst

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,6 @@
2828

2929
<cite>PyMuPDF Pro</cite>
3030

31-
.. |PDF| raw:: html
32-
33-
<cite>PDF</cite>
34-
3531
.. |PyMuPDF4LLM| raw:: html
3632

3733
<cite>PyMuPDF4LLM</cite>
@@ -40,6 +36,14 @@
4036

4137
<cite>PyMuPDF Layout</cite>
4238

39+
.. |MuPDF| raw:: html
40+
41+
<cite>MuPDF</cite>
42+
43+
.. |PDF| raw:: html
44+
45+
<cite>PDF</cite>
46+
4347
.. |Markdown| raw:: html
4448

4549
<cite>Markdown</cite>
@@ -52,14 +56,6 @@
5256

5357
<cite>TXT</cite>
5458

55-
.. |MuPDF| raw:: html
56-
57-
<cite>MuPDF</cite>
58-
59-
.. |PDF| raw:: html
60-
61-
<cite>PDF</cite>
62-
6359
.. |AGPL| raw:: html
6460

6561
<cite>AGPL</cite>
0 Bytes
Binary file not shown.
629 Bytes
Binary file not shown.

docs/locales/ja/LC_MESSAGES/version.po

Lines changed: 10 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -19,33 +19,29 @@ msgstr ""
1919
"Content-Transfer-Encoding: 8bit\n"
2020
"Generated-By: Babel 2.10.3\n"
2121

22-
#: ../../version.rst:3 d1fbe6ff1d5549fb8be875f6d37c584b
22+
#: ../../version.rst:1 d1fbe6ff1d5549fb8be875f6d37c584b
2323
msgid "This documentation covers PyMuPDF |version|."
2424
msgstr "このドキュメントは |version| までのすべてのバージョンを対象としています。"
2525

26-
#: ../../version.rst:5 133bf913bb004c8ca82964184ed7628c
26+
#: ../../version.rst:3 133bf913bb004c8ca82964184ed7628c
2727
msgid ""
28-
"The major and minor versions of |PyMuPDF| and |MuPDF| will always be the "
29-
"same. Only the third qualifier (patch level) may deviate from that of "
30-
"|MuPDF|."
31-
msgstr ""
32-
"|PyMuPDF| と |MuPDF| のメジャーおよびマイナーバージョンは常に同じになります。第三の修飾子(パッチレベル)のみが |MuPDF|"
33-
" のものと異なる場合があります。"
28+
"The major and minor versions of PyMuPDF and MuPDF will always be the same. Only the third qualifier (patch level) may deviate from that of MuPDF."
29+
msgstr "PyMuPDF と MuPDF のメジャーおよびマイナーバージョンは常に同じになります。第三の修飾子(パッチレベル)のみが MuPDF のものと異なる場合があります。"
3430

35-
#: ../../version.rst:7 994720d99f72419ebd711b2cf71dcefb
31+
#: ../../version.rst:5 994720d99f72419ebd711b2cf71dcefb
3632
msgid ""
3733
"Typically PyMuPDF is released more frequently than MuPDF so it will often"
3834
" be the case that the patch level of PyMuPDF will be greater than the "
3935
"embedded MuPDF."
40-
msgstr ""
36+
msgstr "通常、PyMuPDFはMuPDFよりも頻繁にリリースされるため、PyMuPDFのパッチレベルが組み込まれたMuPDFのパッチレベルよりも大きくなることがよくあります。"
4137

42-
#: ../../version.rst:11 371aa251e8314b9aad7c870f54636f80
38+
#: ../../version.rst:9 371aa251e8314b9aad7c870f54636f80
4339
msgid "For example PyMuPDF-1.24.5 contains MuPDF-1.24.2."
44-
msgstr ""
40+
msgstr "例えば、PyMuPDF-1.24.5にはMuPDF-1.24.2が含まれています。"
4541

46-
#: ../../version.rst:13 7c7d7d87d7e14441959c236fee7d2ee5
42+
#: ../../version.rst:11 7c7d7d87d7e14441959c236fee7d2ee5
4743
msgid "Also see `pymupdf_version` and `mupdf_version`."
48-
msgstr ""
44+
msgstr "pymupdf_versionとmupdf_versionも参照してください。"
4945

5046
#~ msgid ""
5147
#~ "This documentation covers **PyMuPDF "

docs/the-basics.rst

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -444,8 +444,6 @@ To delete a page from a document, do the following:
444444
445445
To delete a multiple pages from a document, do the following:
446446

447-
.. raw:: html
448-
449447
.. code-block:: python
450448
451449
import pymupdf
@@ -670,7 +668,7 @@ To add a blank page, do the following:
670668
Inserting Pages with Text Content
671669
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
672670

673-
Using the :meth:`Document.insert_page` method also inserts a new page and accepts the same `width` and `height` parameters. But it lets you also insert arbitrary text into the new page and returns the number of inserted lines.
671+
Using the :meth:`Document.insert_page` method also inserts a new page and accepts the same ``width`` and ``height`` parameters. But it lets you also insert arbitrary text into the new page and returns the number of inserted lines.
674672

675673
.. code-block:: python
676674

docs/version.rst

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
1-
----
2-
31
This documentation covers PyMuPDF |version|.
42

5-
The major and minor versions of |PyMuPDF| and |MuPDF| will always be the same. Only the third qualifier (patch level) may deviate from that of |MuPDF|.
3+
The major and minor versions of PyMuPDF and MuPDF will always be the same. Only the third qualifier (patch level) may deviate from that of MuPDF.
64

75
Typically PyMuPDF is released more frequently than MuPDF so it will often be
86
the case that the patch level of PyMuPDF will be greater than the embedded

0 commit comments

Comments
 (0)