Conversion: Expand -epub-writing-mode to -webkit-writing-mode and writing-mode properties for maximum compatibility. Fixes #1713509 [epub's -webkit-writing-mode not converted to -webkit-writing-mode in azw3](https://bugs.launchpad.net/calibre/+bug/1713509)

This commit is contained in:
Kovid Goyal 2017-08-29 08:39:45 +05:30
parent bce0c6296c
commit 043c5cbfe5
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -341,6 +341,9 @@ class Stylizer(object):
size = 'xx-small'
if size in FONT_SIZE_NAMES:
style['font-size'] = "%dpt" % self.profile.fnames[size]
if '-epub-writing-mode' in style:
for x in ('-webkit-writing-mode', 'writing-mode'):
style[x] = style.get(x, style['-epub-writing-mode'])
return style
def _apply_text_align(self, text):