mirror of
https://github.com/ciromattia/kcc
synced 2026-09-01 08:27:06 +00:00
Kindle: Fixed high quality mode (close #106)
This commit is contained in:
+2
-5
@@ -214,10 +214,6 @@ def buildNCX(dstdir, title, chapters, chapterNames):
|
|||||||
def buildOPF(dstdir, title, filelist, cover=None):
|
def buildOPF(dstdir, title, filelist, cover=None):
|
||||||
opffile = os.path.join(dstdir, 'OEBPS', 'content.opf')
|
opffile = os.path.join(dstdir, 'OEBPS', 'content.opf')
|
||||||
profilelabel, deviceres, palette, gamma, panelviewsize = options.profileData
|
profilelabel, deviceres, palette, gamma, panelviewsize = options.profileData
|
||||||
if options.quality == 1:
|
|
||||||
imgres = str(panelviewsize[0]) + "x" + str(panelviewsize[1])
|
|
||||||
else:
|
|
||||||
imgres = str(deviceres[0]) + "x" + str(deviceres[1])
|
|
||||||
if options.righttoleft:
|
if options.righttoleft:
|
||||||
writingmode = "horizontal-rl"
|
writingmode = "horizontal-rl"
|
||||||
else:
|
else:
|
||||||
@@ -244,7 +240,8 @@ def buildOPF(dstdir, title, filelist, cover=None):
|
|||||||
"<meta name=\"fixed-layout\" content=\"true\"/>\n"
|
"<meta name=\"fixed-layout\" content=\"true\"/>\n"
|
||||||
"<meta name=\"rendition:orientation\" content=\"portrait\"/>\n",
|
"<meta name=\"rendition:orientation\" content=\"portrait\"/>\n",
|
||||||
"<meta name=\"orientation-lock\" content=\"portrait\"/>\n",
|
"<meta name=\"orientation-lock\" content=\"portrait\"/>\n",
|
||||||
"<meta name=\"original-resolution\" content=\"", imgres, "\"/>\n",
|
"<meta name=\"original-resolution\" content=\"",
|
||||||
|
str(deviceres[0]) + "x" + str(deviceres[1]), "\"/>\n",
|
||||||
"<meta name=\"primary-writing-mode\" content=\"", writingmode, "\"/>\n",
|
"<meta name=\"primary-writing-mode\" content=\"", writingmode, "\"/>\n",
|
||||||
"<meta name=\"ke-border-color\" content=\"#ffffff\"/>\n",
|
"<meta name=\"ke-border-color\" content=\"#ffffff\"/>\n",
|
||||||
"<meta name=\"ke-border-width\" content=\"0\"/>\n",
|
"<meta name=\"ke-border-width\" content=\"0\"/>\n",
|
||||||
|
|||||||
Reference in New Issue
Block a user