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:
@@ -361,7 +361,13 @@ def buildOPF(dstdir, title, filelist, cover=None):
|
|||||||
if options.iskindle or options.supportSyntheticSpread:
|
if options.iskindle or options.supportSyntheticSpread:
|
||||||
for entry in reflist:
|
for entry in reflist:
|
||||||
if options.righttoleft:
|
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(
|
f.write(
|
||||||
"<itemref idref=\"page_%s\" %s/>\n" % (entry,
|
"<itemref idref=\"page_%s\" %s/>\n" % (entry,
|
||||||
pageSpreadProperty("right"))
|
pageSpreadProperty("right"))
|
||||||
@@ -383,7 +389,13 @@ def buildOPF(dstdir, title, filelist, cover=None):
|
|||||||
else:
|
else:
|
||||||
pageside = "right"
|
pageside = "right"
|
||||||
else:
|
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(
|
f.write(
|
||||||
"<itemref idref=\"page_%s\" %s/>\n" % (entry,
|
"<itemref idref=\"page_%s\" %s/>\n" % (entry,
|
||||||
pageSpreadProperty("left"))
|
pageSpreadProperty("left"))
|
||||||
|
|||||||
Reference in New Issue
Block a user