1
0
mirror of https://github.com/ciromattia/kcc synced 2025-12-13 01:36:27 +00:00

add center spread property

This commit is contained in:
Alex Xu
2024-12-13 10:09:49 -08:00
parent e1a318145d
commit dbe6043542

View File

@@ -361,7 +361,13 @@ def buildOPF(dstdir, title, filelist, cover=None):
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"))
@@ -383,7 +389,13 @@ def buildOPF(dstdir, title, filelist, cover=None):
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"))