mirror of
https://github.com/ciromattia/kcc
synced 2025-12-27 00:22:54 +00:00
Added page-progression-direction tag to EPUB spine
This commit is contained in:
@@ -293,7 +293,10 @@ def buildOPF(dstdir, title, filelist, cover=None):
|
||||
f.write("<item id=\"img_" + str(uniqueid) + "\" href=\"" + folder + "/" + path[1] + "\" media-type=\""
|
||||
+ mt + "\"/>\n")
|
||||
f.write("<item id=\"css\" href=\"Text/style.css\" media-type=\"text/css\"/>\n")
|
||||
f.write("</manifest>\n<spine toc=\"ncx\">\n")
|
||||
if options.righttoleft:
|
||||
f.write("</manifest>\n<spine page-progression-direction=\"rtl\" toc=\"ncx\">\n")
|
||||
else:
|
||||
f.write("</manifest>\n<spine page-progression-direction=\"ltr\" toc=\"ncx\">\n")
|
||||
for entry in reflist:
|
||||
f.write("<itemref idref=\"page_" + entry + "\"/>\n")
|
||||
f.write("</spine>\n<guide>\n</guide>\n</package>\n")
|
||||
|
||||
Reference in New Issue
Block a user