Skip to content

Commit a7e8f3f

Browse files
committed
fixing typos
1 parent a7a3a71 commit a7e8f3f

File tree

3 files changed

+18
-14
lines changed

3 files changed

+18
-14
lines changed

docs/algebra.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ The following will deliver the **middle point of a line** connecting two points
104104

105105
>>> p1 = fitz.Point(1, 2)
106106
>>> p2 = fitz.Point(4711, 3141)
107-
>>> mp = p1 + (p2 - p1) / 2
107+
>>> mp = (p1 + p2) / 2
108108
>>> mp
109109
Point(2356.0, 1571.5)
110110
>>>

docs/document.rst

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -474,7 +474,11 @@ For details on **embedded files** refer to Appendix 3.
474474
- ``style``: (str) the numbering style. Available are "D" (decimal), "r"/"R" (Roman numbers, lower or upper case), and "a"/"A" (alphabetical, lower/upper case). If "", then no numbering will take place and the pages in that range will receive the same label consisting of the ``prefix`` value. If prefix is also omitted, then the label will be "".
475475
- ``firstpagenum``: (int) start numbering with this value. Must be 1 or greater.
476476

477-
For example ``{'startpage': 6, 'prefix': 'A-', 'style': 'D', 'firstpagenum': 10}`` will generate the labels "A-10", "A-11", ... for pages 6, 7 and so on.
477+
For example::
478+
479+
{'startpage': 6, 'prefix': 'A-', 'style': 'D', 'firstpagenum': 10}
480+
481+
will generate the labels "A-10", "A-11", ... for pages 6, 7 and so on.
478482

479483
.. note:: This is an expert function and requires knowledge of how PDF page labelling works. See :ref:`AdobeManual` page 595.
480484

docs/page.rst

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -502,7 +502,7 @@ In a nutshell, this is what you can do with PyMuPDF:
502502
pair: fill_opacity; insertText
503503
pair: oc; insertText
504504

505-
.. method:: insertText(point, text, fontsize=11, fontname="helv", fontfile=None, idx=0, color=None, fill=None, render_mode=0, border_width=1, encoding=TEXT_ENCODING_LATIN, rotate=0, morph=None, stroke_opacity=1, fill_opaity=1, overlay=True, oc=0)
505+
.. method:: insertText(point, text, fontsize=11, fontname="helv", fontfile=None, idx=0, color=None, fill=None, render_mode=0, border_width=1, encoding=TEXT_ENCODING_LATIN, rotate=0, morph=None, stroke_opacity=1, fill_opacity=1, overlay=True, oc=0)
506506

507507
*(Changed in v1.18.4)*
508508

@@ -526,7 +526,7 @@ In a nutshell, this is what you can do with PyMuPDF:
526526
pair: fill_opacity; insertTextbox
527527
pair: oc; insertTextbox
528528

529-
.. method:: insertTextbox(rect, buffer, fontsize=11, fontname="helv", fontfile=None, idx=0, color=None, fill=None, render_mode=0, border_width=1, encoding=TEXT_ENCODING_LATIN, expandtabs=8, align=TEXT_ALIGN_LEFT, charwidths=None, rotate=0, morph=None, stroke_opacity=1, fill_opaity=1, oc=0, overlay=True)
529+
.. method:: insertTextbox(rect, buffer, fontsize=11, fontname="helv", fontfile=None, idx=0, color=None, fill=None, render_mode=0, border_width=1, encoding=TEXT_ENCODING_LATIN, expandtabs=8, align=TEXT_ALIGN_LEFT, charwidths=None, rotate=0, morph=None, stroke_opacity=1, fill_opacity=1, oc=0, overlay=True)
530530

531531
*(Changed in v1.18.4)*
532532

@@ -547,7 +547,7 @@ In a nutshell, this is what you can do with PyMuPDF:
547547
pair: fill_opacity; drawLine
548548
pair: oc; drawLine
549549

550-
.. method:: drawLine(p1, p2, color=None, width=1, dashes=None, lineCap=0, lineJoin=0, overlay=True, morph=None, stroke_opacity=1, fill_opaity=1, oc=0)
550+
.. method:: drawLine(p1, p2, color=None, width=1, dashes=None, lineCap=0, lineJoin=0, overlay=True, morph=None, stroke_opacity=1, fill_opacity=1, oc=0)
551551

552552
*(Changed in v1.18.4)*
553553

@@ -568,7 +568,7 @@ In a nutshell, this is what you can do with PyMuPDF:
568568
pair: fill_opacity; drawZigzag
569569
pair: oc; drawZigzag
570570

571-
.. method:: drawZigzag(p1, p2, breadth=2, color=None, width=1, dashes=None, lineCap=0, lineJoin=0, overlay=True, morph=None, stroke_opacity=1, fill_opaity=1, oc=0)
571+
.. method:: drawZigzag(p1, p2, breadth=2, color=None, width=1, dashes=None, lineCap=0, lineJoin=0, overlay=True, morph=None, stroke_opacity=1, fill_opacity=1, oc=0)
572572

573573
*(Changed in v1.18.4)*
574574

@@ -589,7 +589,7 @@ In a nutshell, this is what you can do with PyMuPDF:
589589
pair: fill_opacity; drawSquiggle
590590
pair: oc; drawSquiggle
591591

592-
.. method:: drawSquiggle(p1, p2, breadth=2, color=None, width=1, dashes=None, lineCap=0, lineJoin=0, overlay=True, morph=None, stroke_opacity=1, fill_opaity=1, oc=0)
592+
.. method:: drawSquiggle(p1, p2, breadth=2, color=None, width=1, dashes=None, lineCap=0, lineJoin=0, overlay=True, morph=None, stroke_opacity=1, fill_opacity=1, oc=0)
593593

594594
*(Changed in v1.18.4)*
595595

@@ -609,7 +609,7 @@ In a nutshell, this is what you can do with PyMuPDF:
609609
pair: fill_opacity; drawCircle
610610
pair: oc; drawCircle
611611

612-
.. method:: drawCircle(center, radius, color=None, fill=None, width=1, dashes=None, lineCap=0, lineJoin=0, overlay=True, morph=None, stroke_opacity=1, fill_opaity=1, oc=0)
612+
.. method:: drawCircle(center, radius, color=None, fill=None, width=1, dashes=None, lineCap=0, lineJoin=0, overlay=True, morph=None, stroke_opacity=1, fill_opacity=1, oc=0)
613613

614614
*(Changed in v1.18.4)*
615615

@@ -629,7 +629,7 @@ In a nutshell, this is what you can do with PyMuPDF:
629629
pair: fill_opacity; drawOval
630630
pair: oc; drawOval
631631

632-
.. method:: drawOval(quad, color=None, fill=None, width=1, dashes=None, lineCap=0, lineJoin=0, overlay=True, morph=None, stroke_opacity=1, fill_opaity=1, oc=0)
632+
.. method:: drawOval(quad, color=None, fill=None, width=1, dashes=None, lineCap=0, lineJoin=0, overlay=True, morph=None, stroke_opacity=1, fill_opacity=1, oc=0)
633633

634634
*(Changed in v1.18.4)*
635635

@@ -650,7 +650,7 @@ In a nutshell, this is what you can do with PyMuPDF:
650650
pair: fill_opacity; drawSector
651651
pair: oc; drawSector
652652

653-
.. method:: drawSector(center, point, angle, color=None, fill=None, width=1, dashes=None, lineCap=0, lineJoin=0, fullSector=True, overlay=True, closePath=False, morph=None, stroke_opacity=1, fill_opaity=1, oc=0)
653+
.. method:: drawSector(center, point, angle, color=None, fill=None, width=1, dashes=None, lineCap=0, lineJoin=0, fullSector=True, overlay=True, closePath=False, morph=None, stroke_opacity=1, fill_opacity=1, oc=0)
654654

655655
*(Changed in v1.18.4)*
656656

@@ -670,7 +670,7 @@ In a nutshell, this is what you can do with PyMuPDF:
670670
pair: fill_opacity; drawPolyline
671671
pair: oc; drawPolyline
672672

673-
.. method:: drawPolyline(points, color=None, fill=None, width=1, dashes=None, lineCap=0, lineJoin=0, overlay=True, closePath=False, morph=None, stroke_opacity=1, fill_opaity=1, oc=0)
673+
.. method:: drawPolyline(points, color=None, fill=None, width=1, dashes=None, lineCap=0, lineJoin=0, overlay=True, closePath=False, morph=None, stroke_opacity=1, fill_opacity=1, oc=0)
674674

675675
*(Changed in v1.18.4)*
676676

@@ -691,7 +691,7 @@ In a nutshell, this is what you can do with PyMuPDF:
691691
pair: fill_opacity; drawBezier
692692
pair: oc; drawBezier
693693

694-
.. method:: drawBezier(p1, p2, p3, p4, color=None, fill=None, width=1, dashes=None, lineCap=0, lineJoin=0, overlay=True, closePath=False, morph=None, stroke_opacity=1, fill_opaity=1, oc=0)
694+
.. method:: drawBezier(p1, p2, p3, p4, color=None, fill=None, width=1, dashes=None, lineCap=0, lineJoin=0, overlay=True, closePath=False, morph=None, stroke_opacity=1, fill_opacity=1, oc=0)
695695

696696
*(Changed in v1.18.4)*
697697

@@ -711,7 +711,7 @@ In a nutshell, this is what you can do with PyMuPDF:
711711
pair: fill_opacity; drawCurve
712712
pair: oc; drawCurve
713713

714-
.. method:: drawCurve(p1, p2, p3, color=None, fill=None, width=1, dashes=None, lineCap=0, lineJoin=0, overlay=True, closePath=False, morph=None, stroke_opacity=1, fill_opaity=1, oc=0)
714+
.. method:: drawCurve(p1, p2, p3, color=None, fill=None, width=1, dashes=None, lineCap=0, lineJoin=0, overlay=True, closePath=False, morph=None, stroke_opacity=1, fill_opacity=1, oc=0)
715715

716716
*(Changed in v1.18.4)*
717717

@@ -731,7 +731,7 @@ In a nutshell, this is what you can do with PyMuPDF:
731731
pair: fill_opacity; drawRect
732732
pair: oc; drawRect
733733

734-
.. method:: drawRect(rect, color=None, fill=None, width=1, dashes=None, lineCap=0, lineJoin=0, overlay=True, morph=None, stroke_opacity=1, fill_opaity=1, oc=0)
734+
.. method:: drawRect(rect, color=None, fill=None, width=1, dashes=None, lineCap=0, lineJoin=0, overlay=True, morph=None, stroke_opacity=1, fill_opacity=1, oc=0)
735735

736736
*(Changed in v1.18.4)*
737737

0 commit comments

Comments
 (0)