Skip to content

Commit

Permalink
add center spread property
Browse files Browse the repository at this point in the history
  • Loading branch information
axu2 committed Dec 13, 2024
1 parent e1a3181 commit dbe6043
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions kindlecomicconverter/comic2ebook.py
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,13 @@ def pageSpreadProperty(pageside):
if options.iskindle or options.supportSyntheticSpread:
for entry in reflist:
if options.righttoleft:
if entry.endswith("-b"):
if entry.endswith("-a"):
f.write(
"<itemref idref=\"page_%s\" %s/>\n" % (entry,
pageSpreadProperty("center"))
)
pageside = "right"
elif entry.endswith("-b"):
f.write(
"<itemref idref=\"page_%s\" %s/>\n" % (entry,
pageSpreadProperty("right"))
Expand All @@ -383,7 +389,13 @@ def pageSpreadProperty(pageside):
else:
pageside = "right"
else:
if entry.endswith("-b"):
if entry.endswith("-a"):
f.write(
"<itemref idref=\"page_%s\" %s/>\n" % (entry,
pageSpreadProperty("center"))
)
pageside = "left"
elif entry.endswith("-b"):
f.write(
"<itemref idref=\"page_%s\" %s/>\n" % (entry,
pageSpreadProperty("left"))
Expand Down

0 comments on commit dbe6043

Please sign in to comment.