mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-05 00:13:45 +02: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
1 changed files with 3 additions and 0 deletions
|
|
@ -341,6 +341,9 @@ def flatten_style(self, cssstyle):
|
|||
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):
|
||||
|
|
|
|||
Loading…
Reference in a new issue