From 381e264e18dd119dbec5094ef3390635a5881efe Mon Sep 17 00:00:00 2001 From: Andrew Murray Date: Wed, 13 May 2026 19:13:21 +1000 Subject: [PATCH] Consistently use "coordinates" instead of "co-ordinates" Co-authored-by: mokashang --- Tests/test_imagefont.py | 4 ++-- docs/releasenotes/8.2.0.rst | 2 +- src/libImaging/Jpeg2KDecode.c | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Tests/test_imagefont.py b/Tests/test_imagefont.py index d0b458d6b77..40947470708 100644 --- a/Tests/test_imagefont.py +++ b/Tests/test_imagefont.py @@ -365,7 +365,7 @@ def test_rotated_transposed_font( bbox_b[2] - bbox_b[0], ) - # Check top left co-ordinates are correct + # Check top left coordinates are correct assert bbox_b[:2] == (20, 20) # text length is undefined for vertical text @@ -410,7 +410,7 @@ def test_unrotated_transposed_font( bbox_b[3] - bbox_b[1], ) - # Check top left co-ordinates are correct + # Check top left coordinates are correct assert bbox_b[:2] == (20, 20) assert length_a == length_b diff --git a/docs/releasenotes/8.2.0.rst b/docs/releasenotes/8.2.0.rst index a59560695eb..abd3e0e0477 100644 --- a/docs/releasenotes/8.2.0.rst +++ b/docs/releasenotes/8.2.0.rst @@ -81,7 +81,7 @@ Image.alpha_composite: dest ^^^^^^^^^^^^^^^^^^^^^^^^^^^ When calling :py:meth:`~PIL.Image.Image.alpha_composite`, the ``dest`` argument now -accepts negative co-ordinates, like the upper left corner of the ``box`` argument of +accepts negative coordinates, like the upper left corner of the ``box`` argument of :py:meth:`~PIL.Image.Image.paste` can be negative. Naturally, this has effect of cropping the overlaid image. diff --git a/src/libImaging/Jpeg2KDecode.c b/src/libImaging/Jpeg2KDecode.c index 1123d7bc915..ccb6a199cc2 100644 --- a/src/libImaging/Jpeg2KDecode.c +++ b/src/libImaging/Jpeg2KDecode.c @@ -812,7 +812,7 @@ j2k_decode_entry(Imaging im, ImagingCodecState state) { break; } - /* Adjust the tile co-ordinates based on the reduction (OpenJPEG + /* Adjust the tile coordinates based on the reduction (OpenJPEG doesn't do this for us) */ tile_info.x0 = (tile_info.x0 + correction) >> context->reduce; tile_info.y0 = (tile_info.y0 + correction) >> context->reduce;