1
0
mirror of https://github.com/ciromattia/kcc synced 2026-01-05 04:49:36 +00:00

Don't create blank-page records for older Kindle.

Kindle without Landscape mode show blank-page records incorrectly.
This commit is contained in:
Paweł Jastrzębski
2013-03-04 16:14:11 +01:00
parent 7275856549
commit 0398d7bf93

View File

@@ -196,7 +196,7 @@ def buildOPF(profile, dstdir, title, filelist, cover=None, righttoleft=False):
f.write("</manifest>\n<spine toc=\"ncx\">\n")
for entry in reflist:
if entry.endswith("-1"):
if (righttoleft and facing == 'left') or (not righttoleft and facing == 'right'):
if ((righttoleft and facing == 'left') or (not righttoleft and facing == 'right')) and (options.profile == 'K4' or options.profile == 'KHD'):
f.write("<itemref idref=\"blank-page\" properties=\"layout-blank\"/>\n")
f.write("<itemref idref=\"page_" + entry + "\" properties=\"page-spread-" + facing1 + "\"/>\n")
elif entry.endswith("-2"):