From bb24d3ca30baa900c0fd1e09de109b6202cf769b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Jastrz=C4=99bski?= Date: Mon, 29 Apr 2013 22:38:24 +0200 Subject: [PATCH] Preliminary support for horizontal Panel View. --- kcc/comic2ebook.py | 61 +++++++++++++++++++++++++++++++--------------- 1 file changed, 42 insertions(+), 19 deletions(-) diff --git a/kcc/comic2ebook.py b/kcc/comic2ebook.py index 6be5da3..f4fa71c 100755 --- a/kcc/comic2ebook.py +++ b/kcc/comic2ebook.py @@ -70,26 +70,49 @@ def buildHTML(path, imgfile): imgfile, "\" class=\"singlePage\"/>\n" ]) if options.panelview: - if options.righttoleft: - f.writelines(["
\n", - "
\n", - "
\n", - "
\n" - ]) + if options.panelviewhorizontal: + if options.righttoleft: + f.writelines(["
\n", + "
\n", + "
\n", + "
\n" + ]) + else: + f.writelines(["
\n", + "
\n", + "
\n", + "
\n" + ]) else: - f.writelines(["
\n", - "
\n", - "
\n", - "
\n" - ]) + if options.righttoleft: + f.writelines(["
\n", + "
\n", + "
\n", + "
\n" + ]) + else: + f.writelines(["
\n", + "
\n", + "
\n", + "
\n" + ]) + f.writelines(["
\"",
\n",