mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-08 18:54:09 -04:00
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:
parent
bce0c6296c
commit
043c5cbfe5
@ -341,6 +341,9 @@ class Stylizer(object):
|
|||||||
size = 'xx-small'
|
size = 'xx-small'
|
||||||
if size in FONT_SIZE_NAMES:
|
if size in FONT_SIZE_NAMES:
|
||||||
style['font-size'] = "%dpt" % self.profile.fnames[size]
|
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
|
return style
|
||||||
|
|
||||||
def _apply_text_align(self, text):
|
def _apply_text_align(self, text):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user