Strip soft hyphens before creating LRF as the SONY LRF renderer renders them as hard hyphens

This commit is contained in:
Kovid Goyal 2008-12-18 14:25:42 -08:00
parent 5d4e587272
commit 75f2a220bc

View File

@ -813,7 +813,7 @@ class HTMLConverter(object, LoggingInterface):
def append_text(src): def append_text(src):
fp, key, variant = self.font_properties(css) 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) src = src.replace(x, y)
valigner = lambda x: x valigner = lambda x: x