mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
a9a207b47b
commit
96dfd3d550
@ -514,16 +514,15 @@ class LrfObject(object):
|
|||||||
# belongs somewhere, so here it is.
|
# belongs somewhere, so here it is.
|
||||||
#
|
#
|
||||||
composites = {}
|
composites = {}
|
||||||
for name, value in tagDict.items():
|
for name, value in tagDict.iteritems():
|
||||||
if name == 'rubyAlignAndAdjust':
|
if name == 'rubyAlignAndAdjust':
|
||||||
continue
|
continue
|
||||||
if name not in ["bgimagemode", "bgimageid",
|
if name in {
|
||||||
"rubyalign", "rubyadjust",
|
"bgimagemode", "bgimageid", "rubyalign", "rubyadjust",
|
||||||
"empdotscode", "empdotsfontname",
|
"empdotscode", "empdotsfontname", "refempdotsfont"}:
|
||||||
"refempdotsfont"]:
|
|
||||||
self.append(LrfTag(name, value))
|
|
||||||
else:
|
|
||||||
composites[name] = value
|
composites[name] = value
|
||||||
|
else:
|
||||||
|
self.append(LrfTag(name, value))
|
||||||
|
|
||||||
if "rubyalign" in composites or "rubyadjust" in composites:
|
if "rubyalign" in composites or "rubyadjust" in composites:
|
||||||
ralign = composites.get("rubyalign", "none")
|
ralign = composites.get("rubyalign", "none")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user