From 75f2a220bc1d52aba229f590f62ba4eb0f25feff Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Thu, 18 Dec 2008 14:25:42 -0800 Subject: [PATCH] Strip soft hyphens before creating LRF as the SONY LRF renderer renders them as hard hyphens --- src/calibre/ebooks/lrf/html/convert_from.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/calibre/ebooks/lrf/html/convert_from.py b/src/calibre/ebooks/lrf/html/convert_from.py index 8eeff46d79..ae2ab233a5 100644 --- a/src/calibre/ebooks/lrf/html/convert_from.py +++ b/src/calibre/ebooks/lrf/html/convert_from.py @@ -813,7 +813,7 @@ class HTMLConverter(object, LoggingInterface): def append_text(src): fp, key, variant = self.font_properties(css) - for x, y in [(u'\xa0', ' '), (u'\ufb00', 'ff'), (u'\ufb01', 'fi'), (u'\ufb02', 'fl'), (u'\ufb03', 'ffi'), (u'\ufb04', 'ffl')]: + for x, y in [(u'\xad', ''), (u'\xa0', ' '), (u'\ufb00', 'ff'), (u'\ufb01', 'fi'), (u'\ufb02', 'fl'), (u'\ufb03', 'ffi'), (u'\ufb04', 'ffl')]: src = src.replace(x, y) valigner = lambda x: x