Sorry about the duplication - this is the correct version. No idea what happened!
As a long-time user of Calibre, I am very excited to have found the Hyphenate This! plug-in as it has long been a frustration of mine that Kindles do not seemingly hyphenate side-loaded books. This is particularly annoying when one uses a fairly large character size (senior eyes!) and a line contains a long word (perhaps even containing a hard hyphen) which causes the justification rule to break the line about half-way across the page.
As I have a substantial library of such books (all, regrettably, converted from epub to mobi already and not azw3) I wonder if anyone could provide me with some advice on how to address the following issues I have encountered while experimenting with Hyphenate This!:
- Despite books being in English, I sometimes find that the plugin reports that the book is in some other language and refuses to hyphenate. (Book's "NK3" language is Arabic. There is no dictionary installed for this language. Book won't be hyphenated.) Also, sometimes it reports errors such as "TypeError: 'NoneType' object is not iterable. p, li { white-space: pre-wra File "calibre_plugins.hyphenatethis.hyphenatethisaction ", line 118, in hyphenate
File "calibre_plugins.hyphenatethis.hyphenatethisaction ", line 71, in _select_books
TypeError: 'NoneType' object is not iterable
Any thoughts as to why this might be, and what to do to address this?
- Many of my existing books seem to have hard-coded hyphenation (as someone suggested, this may be an artifact of the PDF to epub conversion). Is there a ready way to remove these hard hyphens so the soft hyphenation can do its magic?
- I would like to be able to select (say) 100 books or more at a time and have the following series of processes happen in a consecutive fashion (preferably without human intervention):
- Remove hard hyphenation
- Run Hyphenate
- Remove the mobi version
- Run the Calibre epub to azw3 conversion
It would seem to me that this would require a form of scripting that I am not aware of Calibre possessing, but again, others may know far more than I!
Many thanks in advance.