mirror of
https://github.com/ciromattia/kcc
synced 2025-12-13 01:36:27 +00:00
split then rotate (#966)
This commit is contained in:
@@ -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"<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>", None))
|
||||
self.rotateBox.setToolTip(QCoreApplication.translate("mainWindow", u"<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>", None))
|
||||
#endif // QT_CONFIG(tooltip)
|
||||
self.rotateBox.setText(QCoreApplication.translate("mainWindow", u"Spread splitter", None))
|
||||
#if QT_CONFIG(tooltip)
|
||||
|
||||
@@ -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:
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user