1
0
mirror of https://github.com/ciromattia/kcc synced 2026-05-18 21:41:49 +00:00

Revert to POSIX path - win kindlegen seems to work

This commit is contained in:
Ciro Mattia Gonano
2013-03-05 17:31:34 +01:00
parent e7e87d03cd
commit 074e31cb2e

View File

@@ -189,11 +189,10 @@ def buildOPF(profile, dstdir, title, filelist, cover=None, righttoleft=False):
+ mt + "\"/>\n") + mt + "\"/>\n")
if (options.profile == 'K4' or options.profile == 'KHD') and splitCount > 0: if (options.profile == 'K4' or options.profile == 'KHD') and splitCount > 0:
splitCountUsed = 1 splitCountUsed = 1
while (splitCountUsed <= splitCount): while splitCountUsed <= splitCount:
f.write("<item id=\"blank-page" + str(splitCountUsed) + "\" href=\"" f.write("<item id=\"blank-page" + str(splitCountUsed) +
+ os.path.join('Text', 'blank.html') "\" href=\"Text/blank.html\" media-type=\"application/xhtml+xml\"/>\n")
+ "\" media-type=\"application/xhtml+xml\"/>\n") splitCountUsed += 1
splitCountUsed += 1
f.write("</manifest>\n<spine toc=\"ncx\">\n") f.write("</manifest>\n<spine toc=\"ncx\">\n")
splitCountUsed = 1 splitCountUsed = 1
for entry in reflist: for entry in reflist:
@@ -279,7 +278,7 @@ def dirImgProcess(path):
print ".", print ".",
img = image.ComicPage(os.path.join(dirpath, afile), options.profile) img = image.ComicPage(os.path.join(dirpath, afile), options.profile)
split = img.splitPage(dirpath, options.righttoleft, options.rotate) split = img.splitPage(dirpath, options.righttoleft, options.rotate)
if split is not None: if split is not None:
if options.verbose: if options.verbose:
print "Splitted " + afile print "Splitted " + afile
if options.righttoleft: if options.righttoleft: