Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
4 changes: 2 additions & 2 deletions src/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
#
Expand Down Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions src/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/_apply_pages.py
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Loading