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.
|
||||
#
|
||||
composites = {}
|
||||
for name, value in tagDict.items():
|
||||
for name, value in tagDict.iteritems():
|
||||
if name == 'rubyAlignAndAdjust':
|
||||
continue
|
||||
if name not in ["bgimagemode", "bgimageid",
|
||||
"rubyalign", "rubyadjust",
|
||||
"empdotscode", "empdotsfontname",
|
||||
"refempdotsfont"]:
|
||||
self.append(LrfTag(name, value))
|
||||
else:
|
||||
if name in {
|
||||
"bgimagemode", "bgimageid", "rubyalign", "rubyadjust",
|
||||
"empdotscode", "empdotsfontname", "refempdotsfont"}:
|
||||
composites[name] = value
|
||||
else:
|
||||
self.append(LrfTag(name, value))
|
||||
|
||||
if "rubyalign" in composites or "rubyadjust" in composites:
|
||||
ralign = composites.get("rubyalign", "none")
|
||||
|
Loading…
x
Reference in New Issue
Block a user