Skip to content

Commit dd3d8ab

Browse files
committed
[docs] Fix a handful of spelling issues
1 parent d716e5f commit dd3d8ab

4 files changed

Lines changed: 29 additions & 29 deletions

File tree

wand/api.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -169,11 +169,11 @@ def load_library():
169169
else:
170170
msg += '#install-imagemagick-on-mac'
171171
elif hasattr(platform, 'linux_distribution'):
172-
distname, _, __ = platform.linux_distribution()
173-
distname = (distname or '').lower()
174-
if distname in ('debian', 'ubuntu'):
172+
distro_name, _, __ = platform.linux_distribution()
173+
distro_name = (distro_name or '').lower()
174+
if distro_name in ('debian', 'ubuntu'):
175175
msg = 'apt-get install libmagickwand-dev'
176-
elif distname in ('fedora', 'centos', 'redhat'):
176+
elif distro_name in ('fedora', 'centos', 'redhat'):
177177
msg = 'yum install ImageMagick-devel'
178178
raise ImportError('MagickWand shared library not found.\n'
179179
'You probably had not installed ImageMagick library.\n'

wand/display.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
1717
.. sourcecode:: console
1818
19-
$ python -m wand.display wandtests/assets/mona-lisa.jpg
19+
$ python -m wand.display tests/assets/mona-lisa.jpg
2020
2121
.. versionadded:: 0.1.9
2222

wand/drawing.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -484,7 +484,7 @@ def opacity(self, opaque):
484484
def stroke_antialias(self):
485485
"""(:class:`bool`) Controls whether stroked outlines are antialiased.
486486
Stroked outlines are antialiased by default. When antialiasing is
487-
disabled stroked pixels are thresholded to determine if the stroke
487+
disabled stroked pixels are threshold to determine if the stroke
488488
color or underlying canvas color should be used.
489489
490490
It also can be set.
@@ -1365,7 +1365,7 @@ def path_elliptic_arc(self, to=None, radius=None, rotation=0.0,
13651365
two radii (rx, ry) in ``radius`` and an ``rotation`` parameters,
13661366
which indicates how the ellipse as a whole is
13671367
rotated relative to the current coordinate system. The center of the
1368-
ellipse is calculated automagically to satisfy the constraints imposed
1368+
ellipse is calculated automatically to satisfy the constraints imposed
13691369
by the other parameters. ``large_arc`` and ``clockwise`` contribute to
13701370
the automatic calculations and help determine how the arc is drawn.
13711371
If ``large_arc`` is True then draw the larger of the available arcs.

wand/image.py

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,7 @@
332332
#: - ``'screen'``
333333
#: - ``'seamless_blend'`` - Added with ImageMagick-7.1.1
334334
#: - ``'soft_burn'`` - Added with ImageMagick-7.0.10
335-
#: - ``'soft_dudge'`` - Added with ImageMagick-7.0.10
335+
#: - ``'soft_dodge'`` - Added with ImageMagick-7.0.10
336336
#: - ``'soft_light'``
337337
#: - ``'src_atop'``
338338
#: - ``'src'``
@@ -3103,7 +3103,7 @@ def auto_threshold(self, method='kapur'):
31033103
@trap_exception
31043104
def bilateral_blur(self, width=1.0, height=None, intensity=None,
31053105
spatial=None):
3106-
"""Noise-reducing Gaussian distrbution filter. Preserves edges by
3106+
"""Noise-reducing Gaussian distribution filter. Preserves edges by
31073107
replacing pixel intensity with weighted averages of neighboring
31083108
pixels. Parameters ``width`` & ``height`` define the area-size around
31093109
each pixel to include in the neighboring sample.
@@ -3201,7 +3201,7 @@ def blur(self, radius=0.0, sigma=0.0, channel=None):
32013201
Added optional ``channel`` argument.
32023202
32033203
.. versionchanged:: 0.5.7
3204-
Positional arguments ``radius`` & ``sigman`` have been converted to
3204+
Positional arguments ``radius`` & ``sigma`` have been converted to
32053205
key-word arguments.
32063206
"""
32073207
assertions.assert_real(radius=radius, sigma=sigma)
@@ -5269,11 +5269,11 @@ def floodfill(self, fill='none', fuzz=0.1, bordercolor=None,
52695269
x=0, y=0, invert=False, channel='default_channels'):
52705270
"""Changes pixel value to ``fill`` color at (``x``, ``y``) coordinate,
52715271
and repeats for all neighboring pixels until border is reached. Use
5272-
``fuzz`` and/or ``bordercolor`` to defined tolarance & border values.
5272+
``fuzz`` and/or ``bordercolor`` to defined tolerance & border values.
52735273
52745274
:param fill: New target color value.
52755275
:type fill: :class:`wand.color.Color` or :class:`str`
5276-
:param fuzz: Fill threashold. Values between `0.0` and `1.0`. Default
5276+
:param fuzz: Fill threshold. Values between `0.0` and `1.0`. Default
52775277
`0.1` (10%).
52785278
:type fuzz: :class:`numbers.Real`
52795279
:param bordercolor: Optional color to use as a border. Default
@@ -5641,7 +5641,7 @@ def get_image_distortion(self, image, metric='undefined'):
56415641
56425642
:param image: Image to reference.
56435643
:type image: :class:`wand.image.BaseImage`
5644-
:param metric: Compare disortion metric to use. See
5644+
:param metric: Compare distortion metric to use. See
56455645
:const:`COMPARE_METRICS`.
56465646
:type metric: :class:`str`
56475647
:returns: Computed value of the distortion metric used.
@@ -6004,7 +6004,7 @@ def kmeans(self, number_colors=None, max_iterations=100, tolerance=0.01):
60046004
:param max_iterations: maximum number of iterations needed until
60056005
convergence. Default ``100``.
60066006
:type max_iterations: :class:`numbers.Integral`
6007-
:param tolerance: maximum tolerance between distrotion iterations.
6007+
:param tolerance: maximum tolerance between distortion iterations.
60086008
Default ``0.01``
60096009
:type tolerance: :class:`numbers.Real`
60106010
@@ -6100,7 +6100,7 @@ def kuwahara(self, radius=1.0, sigma=None):
61006100
def label(self, text, left=None, top=None, font=None, gravity=None,
61016101
background_color='transparent'):
61026102
"""Writes a label ``text`` into the position on top of the existing
6103-
canvas. This method doesn't autofit text like :meth:`caption`. Use
6103+
canvas. This method doesn't auto-fit text like :meth:`caption`. Use
61046104
``left`` & ``top``, or ``gravity``, to position the text.
61056105
61066106
:param text: text to write.
@@ -7224,7 +7224,7 @@ def percent_escape(self, string_format):
72247224
Not all percent escaped values can be populated as I/O operations
72257225
are managed by Python, and not the CLI utility.
72267226
7227-
:param string_format: The precent escaped string to be translated.
7227+
:param string_format: The percent escaped string to be translated.
72287228
:type string_format: :class:`str`
72297229
:returns: String of expanded values.
72307230
:rtype: :class:`str`
@@ -7406,7 +7406,7 @@ def quantize(self, number_colors, colorspace_type='undefined',
74067406
74077407
.. versionchanged:: 0.7.0
74087408
The default value for ``colorspace_type`` argument
7409-
is now set to ``"undefeined"`` to match CLI behavior.
7409+
is now set to ``"undefined"`` to match CLI behavior.
74107410
"""
74117411
assertions.assert_integer(number_colors=number_colors)
74127412
assertions.string_in_list(COLORSPACE_TYPES,
@@ -7435,7 +7435,7 @@ def quantize(self, number_colors, colorspace_type='undefined',
74357435
@trap_exception
74367436
def random_threshold(self, low=0.0, high=1.0, channel=None):
74377437
"""Performs a random dither to force a pixel into a binary black &
7438-
white state. Each color channel operarates independently from each
7438+
white state. Each color channel operates independently from each
74397439
other.
74407440
74417441
:param low: bottom threshold. Any pixel value below the given value
@@ -7519,14 +7519,14 @@ def range_channel(self, channel='default_channels'):
75197519
@trap_exception
75207520
def range_threshold(self, low_black=0.0, low_white=None, high_white=None,
75217521
high_black=None):
7522-
"""Applies soft & hard thresholding.
7522+
"""Applies soft & hard threshold.
75237523
7524-
For a soft thresholding, parameters should be monotonically increasing:
7524+
For a soft threshold, parameters should be monotonically increasing:
75257525
75267526
with Image(filename='text.png') as img:
75277527
img.range_threshold(0.2, 0.4, 0.6, 0.8)
75287528
7529-
For a hard thresholding, parameters should be the same:
7529+
For a hard threshold, parameters should be the same:
75307530
75317531
with Image(filename='text.png') as img:
75327532
img.range_threshold(0.4, 0.4, 0.6, 0.6)
@@ -7854,7 +7854,7 @@ def roll(self, x=0, y=0):
78547854
:type x: :class:`numbers.Integral`
78557855
:param y: Number of rows to roll over. Negative value will roll
78567856
pixels from bottom-to-top, and positive value will roll
7857-
pixels from top-to-bottm. Default value: ``0``.
7857+
pixels from top-to-bottom. Default value: ``0``.
78587858
:type y: :class:`numbers.Integral`
78597859
78607860
.. versionadded:: 0.6.8
@@ -8869,10 +8869,10 @@ def transform(self, crop='', resize=''):
88698869
Only one % symbol is needed.
88708870
88718871
**width**
8872-
Width given, height automagically selected to preserve aspect ratio.
8872+
Width given, height automatically selected to preserve aspect ratio.
88738873
88748874
``x``\\ \\ **height**
8875-
Height given, width automagically selected to preserve aspect ratio.
8875+
Height given, width automatically selected to preserve aspect ratio.
88768876
88778877
**width**\\ ``x``\\ **height**
88788878
Maximum values of width and height given; aspect ratio preserved.
@@ -9697,7 +9697,7 @@ def _preamble_read(self, background=None, colorspace=None, depth=None,
96979697
:type units: :class:`numbers.Integral`
96989698
:param width: Defines how wide a blank canvas should be. Only used if
96999699
``height`` is also defined.
9700-
:type width: :class:`numbers.Intragal`
9700+
:type width: :class:`numbers.Integral`
97019701
97029702
.. versionadded:: 0.6.3
97039703
"""
@@ -10296,7 +10296,7 @@ def montage(self, font=None, tile=None, thumbnail=None, mode='unframe',
1029610296
Thumbnail labeling will only be rendered if ``'label'``
1029710297
value in :attr:`options` dict is defined.
1029810298
:type font: :class:`~wand.font.Font`
10299-
:param tile: The number of thunbnails per rows & column on a page.
10299+
:param tile: The number of thumbnails per rows & column on a page.
1030010300
Example: ``"6x4"``.
1030110301
:type tile: :class:`str`
1030210302
:param thumbnail: Preferred image size. Montage will attempt to
@@ -10307,7 +10307,7 @@ def montage(self, font=None, tile=None, thumbnail=None, mode='unframe',
1030710307
:param mode: Which effect to render. Options include ``"frame"``,
1030810308
``"unframe"``, and ``"concatenate"``. Default ``"frame"``.
1030910309
:type mode: :class:`str`
10310-
:param frame: Define ornamental boarder around each thrumbnail.
10310+
:param frame: Define ornamental boarder around each thumbnail.
1031110311
The color of the frame is defined by the image's matte
1031210312
color. Example: ``"15x15+3+3"``.
1031310313
:type frame: :class:`str`
@@ -10437,7 +10437,7 @@ def read(self, file=None, filename=None, blob=None, background=None,
1043710437
useful for vectorial formats (like PDF)
1043810438
:type resolution: :class:`collections.abc.Sequence`,
1043910439
:class:`numbers.Integral`
10440-
:param sampling_factors: set up/down stampling factors for YUV data
10440+
:param sampling_factors: set up/down sampling factors for YUV data
1044110441
stream. Usually ``"4:2:2"``
1044210442
:type sampling_factors: :class:`collections.abc.Sequence`,
1044310443
:class:`str`
@@ -10825,7 +10825,7 @@ def __len__(self):
1082510825

1082610826
class ArtifactTree(ImageProperty, abc.MutableMapping):
1082710827
"""Splay tree to map image artifacts. Values defined here
10828-
are intended to be used elseware, and will not be written
10828+
are intended to be used elsewhere, and will not be written
1082910829
to the encoded image.
1083010830
1083110831
For example::

0 commit comments

Comments
 (0)