mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-01-04 22:57:01 +01:00
EPUB Output:Replace non breaking hyphens with ordinary hyphens as the default fonts that come with ADE don't suport them.
This commit is contained in:
parent
654462faba
commit
94ab0efc68
2 changed files with 4 additions and 0 deletions
|
|
@ -285,8 +285,10 @@ def workaround_ade_quirks(self):
|
|||
for elem in root.iterdescendants():
|
||||
if getattr(elem, 'text', False):
|
||||
elem.text = special_chars.sub('', elem.text)
|
||||
elem.text = elem.text.replace(u'\u2011', '-')
|
||||
if getattr(elem, 'tail', False):
|
||||
elem.tail = special_chars.sub('', elem.tail)
|
||||
elem.tail = elem.tail.replace(u'\u2011', '-')
|
||||
|
||||
|
||||
|
||||
|
|
|
|||
2
todo
2
todo
|
|
@ -12,3 +12,5 @@
|
|||
- Use a process pool for speed or multiple process for stability (20 per process?)
|
||||
|
||||
* Change mobi metadata setter to use author_sort setting from MOBI output plugin instead of mobi.py
|
||||
|
||||
* Fix HTML-to-ZIP plugin
|
||||
|
|
|
|||
Loading…
Reference in a new issue