diff --git a/setup.py b/setup.py index 01bc391fd..763cc097e 100755 --- a/setup.py +++ b/setup.py @@ -752,7 +752,7 @@ def env_add(env, name, value, sep=' ', prepend=False, verbose=False): ''' v = env.get(name) if verbose: - log(f'Initally: {name}={v!r}') + log(f'Initially: {name}={v!r}') if v is None: v = os.environ.get(name) if v is None: diff --git a/src/__init__.py b/src/__init__.py index 8d48ce717..f5cedfe43 100644 --- a/src/__init__.py +++ b/src/__init__.py @@ -8099,7 +8099,7 @@ def _insert_image(self, if do_have_imask: # `fz_compressed_buffer` is reference counted and # `mupdf.fz_new_image_from_compressed_buffer2()` - # is povided as a Swig-friendly wrapper for + # is provided as a Swig-friendly wrapper for # `fz_new_image_from_compressed_buffer()`, so we can do things # straightfowardly. # @@ -19739,7 +19739,7 @@ def get_highlight_selection(page, start: point_like =None, stop: point_like =Non Notes: The default of 'start' is top-left of 'clip'. The default of 'stop' - is bottom-reight of 'clip'. + is bottom-right of 'clip'. Args: start: start point_like diff --git a/src/__main__.py b/src/__main__.py index 35914d6c7..e80a1f037 100644 --- a/src/__main__.py +++ b/src/__main__.py @@ -579,7 +579,7 @@ def find_line_index(values: List[int], value: int) -> int: values: (list) y-coordinates of rows. value: (int) lookup for this value (y-origin of char). Returns: - y-ccordinate of appropriate line for value. + y-coordinate of appropriate line for value. """ i = bisect.bisect_right(values, value) if i: @@ -743,7 +743,7 @@ def make_textline(left, slot, minslot, lchars): chars.sort(key=lambda c: c[1]) # populate the lines with their char info - lines = {} # key: y1-ccordinate, value: char list + lines = {} # key: y1-coordinate, value: char list for c in chars: _, _, oy, _ = c y = find_line_index(rows, oy) # y-coord of the right line diff --git a/src/_apply_pages.py b/src/_apply_pages.py index 0aae54c78..4edfcd8ae 100644 --- a/src/_apply_pages.py +++ b/src/_apply_pages.py @@ -250,4 +250,4 @@ def childfn(): if verbose: pymupdf.log(f'{pid=} => {e=}') if stats: - _stats_write(t, 'Join all child proceses') + _stats_write(t, 'Join all child processes')