Skip to content
This repository has been archived by the owner on Aug 14, 2023. It is now read-only.

PyHyphen throws Exceptions for certain chunks of text #7

Open
rwev opened this issue Feb 11, 2021 · 0 comments
Open

PyHyphen throws Exceptions for certain chunks of text #7

rwev opened this issue Feb 11, 2021 · 0 comments

Comments

@rwev
Copy link
Owner

rwev commented Feb 11, 2021

Traceback (most recent call last):
File "/usr/local/bin/bible", line 8, in <module>
sys.exit(main())
File "/usr/local/lib/python3.9/site-packages/bible/main.py", line 203, in main
curses.wrapper(Main)
File "/usr/local/Cellar/python@3.9/3.9.0_1/Frameworks/Python.framework/Versions/3.9/lib/python3.9/curses/__init__.py", line 94, in wrapper
return func(stdscr, *args, **kwds)
File "/usr/local/lib/python3.9/site-packages/bible/main.py", line 37, in __init__
self.start_input_loop()
File "/usr/local/lib/python3.9/site-packages/bible/main.py", line 199, in start_input_loop
self.update_text()
File "/usr/local/lib/python3.9/site-packages/bible/main.py", line 123, in update_text
wrap(
    File "/usr/local/lib/python3.9/site-packages/textwrap2/__init__.py", line 13, in wrap
return w.wrap(text)
File "/usr/local/Cellar/python@3.9/3.9.0_1/Frameworks/Python.framework/Versions/3.9/lib/python3.9/textwrap.py", line 354, in wrap
return self._wrap_chunks(chunks)
File "/usr/local/lib/python3.9/site-packages/textwrap2/python3.py", line 67, in _wrap_chunks
hyphenated_chunk = self.use_hyphenator.wrap(chunks[-1], width - cur_len)
File "/usr/local/lib/python3.9/site-packages/hyphen/hyphenator.py", line 123, in wrap
p = self.pairs(word)
File "/usr/local/lib/python3.9/site-packages/hyphen/hyphenator.py", line 81, in pairs
return self.apply(word, 1)
IndexError: list assignment index out of range
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant