From f1db31205b61c720a80cddb75a1d1919fd80aaab Mon Sep 17 00:00:00 2001 From: Alex Xu Date: Mon, 16 Jun 2025 14:47:55 -0700 Subject: [PATCH] split then rotate (#966) --- gui/KCC.ui | 2 +- kindlecomicconverter/KCC_ui.py | 2 +- kindlecomicconverter/comic2ebook.py | 4 ++-- kindlecomicconverter/image.py | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/gui/KCC.ui b/gui/KCC.ui index 3ab1972..96b205a 100644 --- a/gui/KCC.ui +++ b/gui/KCC.ui @@ -446,7 +446,7 @@ - <html><head/><body><p><span style=" font-weight:600; text-decoration: underline;">Unchecked - Split<br/></span>Double page spreads will be cut into two separate pages.</p><p><span style=" font-weight:600; text-decoration: underline;">Indeterminate - Rotate and split<br/></span>Double page spreads will be displayed twice. First rotated and then split. </p><p><span style=" font-weight:600; text-decoration: underline;">Checked - Rotate<br/></span>Double page spreads will be rotated.</p></body></html> + <html><head/><body><p><span style=" font-weight:600; text-decoration: underline;">Unchecked - Split<br/></span>Double page spreads will be cut into two separate pages.</p><p><span style=" font-weight:600; text-decoration: underline;">Indeterminate - Rotate and split<br/></span>Double page spreads will be displayed twice. First split and then rotated. </p><p><span style=" font-weight:600; text-decoration: underline;">Checked - Rotate<br/></span>Double page spreads will be rotated.</p></body></html> Spread splitter diff --git a/kindlecomicconverter/KCC_ui.py b/kindlecomicconverter/KCC_ui.py index 6f3a1e2..b08d3bb 100644 --- a/kindlecomicconverter/KCC_ui.py +++ b/kindlecomicconverter/KCC_ui.py @@ -518,7 +518,7 @@ class Ui_mainWindow(object): #endif // QT_CONFIG(tooltip) self.webtoonBox.setText(QCoreApplication.translate("mainWindow", u"Webtoon mode", None)) #if QT_CONFIG(tooltip) - self.rotateBox.setToolTip(QCoreApplication.translate("mainWindow", u"

Unchecked - Split
Double page spreads will be cut into two separate pages.

Indeterminate - Rotate and split
Double page spreads will be displayed twice. First rotated and then split.

Checked - Rotate
Double page spreads will be rotated.

", None)) + self.rotateBox.setToolTip(QCoreApplication.translate("mainWindow", u"

Unchecked - Split
Double page spreads will be cut into two separate pages.

Indeterminate - Rotate and split
Double page spreads will be displayed twice. First split and then rotated.

Checked - Rotate
Double page spreads will be rotated.

", None)) #endif // QT_CONFIG(tooltip) self.rotateBox.setText(QCoreApplication.translate("mainWindow", u"Spread splitter", None)) #if QT_CONFIG(tooltip) diff --git a/kindlecomicconverter/comic2ebook.py b/kindlecomicconverter/comic2ebook.py index 302624e..ba1e1ab 100755 --- a/kindlecomicconverter/comic2ebook.py +++ b/kindlecomicconverter/comic2ebook.py @@ -371,7 +371,7 @@ def buildOPF(dstdir, title, filelist, cover=None): page_spread_property_list = [] for entry in reflist: if options.righttoleft: - if "-kcc-a" in entry: + if "-kcc-a" in entry or "-kcc-d" in entry: page_spread_property_list.append("center") pageside = "right" elif "-kcc-b" in entry: @@ -387,7 +387,7 @@ def buildOPF(dstdir, title, filelist, cover=None): else: pageside = "right" else: - if "-kcc-a" in entry: + if "-kcc-a" in entry or "-kcc-d" in entry: page_spread_property_list.append("center") pageside = "left" elif "-kcc-b" in entry: diff --git a/kindlecomicconverter/image.py b/kindlecomicconverter/image.py index 86f1815..8c758ec 100755 --- a/kindlecomicconverter/image.py +++ b/kindlecomicconverter/image.py @@ -290,7 +290,7 @@ class ComicPage: if 'N' in mode: self.targetPathOrder = '-kcc-x' elif 'R' in mode: - self.targetPathOrder = '-kcc-a' + self.targetPathOrder = '-kcc-d' if not options.norotate: self.rotated = True elif 'S1' in mode: