novelWriter 2.6b2__py3-none-any.whl → 2.6.1__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {novelWriter-2.6b2.dist-info → novelWriter-2.6.1.dist-info}/METADATA +2 -2
- {novelWriter-2.6b2.dist-info → novelWriter-2.6.1.dist-info}/RECORD +107 -106
- {novelWriter-2.6b2.dist-info → novelWriter-2.6.1.dist-info}/WHEEL +1 -1
- novelwriter/__init__.py +4 -4
- novelwriter/assets/i18n/nw_de_DE.qm +0 -0
- novelwriter/assets/i18n/nw_en_US.qm +0 -0
- novelwriter/assets/i18n/nw_es_419.qm +0 -0
- novelwriter/assets/i18n/nw_fr_FR.qm +0 -0
- novelwriter/assets/i18n/nw_it_IT.qm +0 -0
- novelwriter/assets/i18n/nw_ja_JP.qm +0 -0
- novelwriter/assets/i18n/nw_nb_NO.qm +0 -0
- novelwriter/assets/i18n/nw_nl_NL.qm +0 -0
- novelwriter/assets/i18n/nw_pl_PL.qm +0 -0
- novelwriter/assets/i18n/nw_pt_BR.qm +0 -0
- novelwriter/assets/i18n/nw_ru_RU.qm +0 -0
- novelwriter/assets/i18n/nw_zh_CN.qm +0 -0
- novelwriter/assets/i18n/project_de_DE.json +2 -0
- novelwriter/assets/i18n/project_en_US.json +2 -0
- novelwriter/assets/i18n/project_es_419.json +2 -0
- novelwriter/assets/i18n/project_fr_FR.json +3 -1
- novelwriter/assets/i18n/project_it_IT.json +2 -0
- novelwriter/assets/i18n/project_ja_JP.json +2 -0
- novelwriter/assets/i18n/project_nb_NO.json +2 -0
- novelwriter/assets/i18n/project_nl_NL.json +2 -0
- novelwriter/assets/i18n/project_pl_PL.json +2 -0
- novelwriter/assets/i18n/project_pt_BR.json +2 -0
- novelwriter/assets/i18n/project_zh_CN.json +2 -0
- novelwriter/assets/manual.pdf +0 -0
- novelwriter/assets/manual_fr_FR.pdf +0 -0
- novelwriter/assets/sample.zip +0 -0
- novelwriter/common.py +1 -1
- novelwriter/config.py +45 -20
- novelwriter/constants.py +40 -36
- novelwriter/core/buildsettings.py +8 -1
- novelwriter/core/coretools.py +1 -1
- novelwriter/core/docbuild.py +1 -1
- novelwriter/core/document.py +1 -1
- novelwriter/core/index.py +1 -1
- novelwriter/core/item.py +1 -1
- novelwriter/core/itemmodel.py +1 -1
- novelwriter/core/options.py +1 -1
- novelwriter/core/project.py +3 -7
- novelwriter/core/projectdata.py +8 -2
- novelwriter/core/projectxml.py +1 -1
- novelwriter/core/sessions.py +1 -1
- novelwriter/core/spellcheck.py +1 -1
- novelwriter/core/status.py +17 -3
- novelwriter/core/storage.py +1 -1
- novelwriter/core/tree.py +1 -1
- novelwriter/dialogs/about.py +1 -1
- novelwriter/dialogs/docmerge.py +1 -1
- novelwriter/dialogs/docsplit.py +1 -1
- novelwriter/dialogs/editlabel.py +1 -1
- novelwriter/dialogs/preferences.py +16 -7
- novelwriter/dialogs/projectsettings.py +146 -96
- novelwriter/dialogs/quotes.py +1 -1
- novelwriter/dialogs/wordlist.py +11 -10
- novelwriter/enum.py +1 -8
- novelwriter/error.py +2 -2
- novelwriter/extensions/configlayout.py +1 -1
- novelwriter/extensions/eventfilters.py +1 -1
- novelwriter/extensions/modified.py +17 -5
- novelwriter/extensions/novelselector.py +4 -3
- novelwriter/extensions/pagedsidebar.py +4 -4
- novelwriter/extensions/progressbars.py +4 -4
- novelwriter/extensions/statusled.py +8 -9
- novelwriter/extensions/switch.py +3 -3
- novelwriter/extensions/switchbox.py +1 -1
- novelwriter/extensions/versioninfo.py +1 -1
- novelwriter/formats/shared.py +13 -12
- novelwriter/formats/todocx.py +2 -2
- novelwriter/formats/tohtml.py +31 -28
- novelwriter/formats/tokenizer.py +19 -13
- novelwriter/formats/tomarkdown.py +4 -3
- novelwriter/formats/toodt.py +2 -2
- novelwriter/formats/toqdoc.py +3 -1
- novelwriter/formats/toraw.py +1 -1
- novelwriter/gui/doceditor.py +39 -21
- novelwriter/gui/dochighlight.py +1 -1
- novelwriter/gui/docviewer.py +2 -2
- novelwriter/gui/docviewerpanel.py +1 -1
- novelwriter/gui/editordocument.py +1 -1
- novelwriter/gui/itemdetails.py +4 -3
- novelwriter/gui/mainmenu.py +1 -1
- novelwriter/gui/noveltree.py +1 -1
- novelwriter/gui/outline.py +8 -9
- novelwriter/gui/projtree.py +20 -25
- novelwriter/gui/search.py +2 -9
- novelwriter/gui/sidebar.py +1 -1
- novelwriter/gui/statusbar.py +26 -10
- novelwriter/gui/theme.py +1 -1
- novelwriter/guimain.py +2 -6
- novelwriter/shared.py +1 -1
- novelwriter/text/counting.py +1 -1
- novelwriter/text/patterns.py +1 -1
- novelwriter/tools/dictionaries.py +3 -3
- novelwriter/tools/lipsum.py +1 -1
- novelwriter/tools/manusbuild.py +1 -1
- novelwriter/tools/manuscript.py +7 -7
- novelwriter/tools/manussettings.py +9 -9
- novelwriter/tools/noveldetails.py +1 -1
- novelwriter/tools/welcome.py +2 -2
- novelwriter/tools/writingstats.py +1 -1
- novelwriter/types.py +2 -2
- {novelWriter-2.6b2.dist-info → novelWriter-2.6.1.dist-info}/LICENSE.md +0 -0
- {novelWriter-2.6b2.dist-info → novelWriter-2.6.1.dist-info}/entry_points.txt +0 -0
- {novelWriter-2.6b2.dist-info → novelWriter-2.6.1.dist-info}/top_level.txt +0 -0
novelwriter/tools/manuscript.py
CHANGED
@@ -6,7 +6,7 @@ File History:
|
|
6
6
|
Created: 2023-05-13 [2.1b1] GuiManuscript
|
7
7
|
|
8
8
|
This file is a part of novelWriter
|
9
|
-
Copyright
|
9
|
+
Copyright (C) 2023 Veronica Berglyd Olsen and novelWriter contributors
|
10
10
|
|
11
11
|
This program is free software: you can redistribute it and/or modify
|
12
12
|
it under the terms of the GNU General Public License as published by
|
@@ -986,17 +986,17 @@ class _StatsWidget(QWidget):
|
|
986
986
|
def updateStats(self, data: dict[str, int]) -> None:
|
987
987
|
"""Update the stats values from a Tokenizer stats dict."""
|
988
988
|
# Minimal
|
989
|
-
self.minWordCount.setText("{0:n}".format(data.get(nwStats.
|
990
|
-
self.minCharCount.setText("{0:n}".format(data.get(nwStats.
|
989
|
+
self.minWordCount.setText("{0:n}".format(data.get(nwStats.WORDS, 0)))
|
990
|
+
self.minCharCount.setText("{0:n}".format(data.get(nwStats.CHARS, 0)))
|
991
991
|
|
992
992
|
# Maximal
|
993
|
-
self.maxTotalWords.setText("{0:n}".format(data.get(nwStats.
|
993
|
+
self.maxTotalWords.setText("{0:n}".format(data.get(nwStats.WORDS, 0)))
|
994
994
|
self.maxHeadWords.setText("{0:n}".format(data.get(nwStats.WORDS_TITLE, 0)))
|
995
995
|
self.maxTextWords.setText("{0:n}".format(data.get(nwStats.WORDS_TEXT, 0)))
|
996
996
|
self.maxTitleCount.setText("{0:n}".format(data.get(nwStats.TITLES, 0)))
|
997
997
|
self.maxParCount.setText("{0:n}".format(data.get(nwStats.PARAGRAPHS, 0)))
|
998
998
|
|
999
|
-
self.maxTotalChars.setText("{0:n}".format(data.get(nwStats.
|
999
|
+
self.maxTotalChars.setText("{0:n}".format(data.get(nwStats.CHARS, 0)))
|
1000
1000
|
self.maxHeaderChars.setText("{0:n}".format(data.get(nwStats.CHARS_TITLE, 0)))
|
1001
1001
|
self.maxTextChars.setText("{0:n}".format(data.get(nwStats.CHARS_TEXT, 0)))
|
1002
1002
|
|
@@ -1037,7 +1037,7 @@ class _StatsWidget(QWidget):
|
|
1037
1037
|
hPx = CONFIG.pxInt(12)
|
1038
1038
|
vPx = CONFIG.pxInt(4)
|
1039
1039
|
|
1040
|
-
trAllChars = trConst(nwLabels.STATS_NAME[nwStats.
|
1040
|
+
trAllChars = trConst(nwLabels.STATS_NAME[nwStats.CHARS])
|
1041
1041
|
trTextChars = trConst(nwLabels.STATS_NAME[nwStats.CHARS_TEXT])
|
1042
1042
|
trTitleChars = trConst(nwLabels.STATS_NAME[nwStats.CHARS_TITLE])
|
1043
1043
|
trParagraphCount = trConst(nwLabels.STATS_NAME[nwStats.PARAGRAPHS])
|
@@ -1045,7 +1045,7 @@ class _StatsWidget(QWidget):
|
|
1045
1045
|
trAllWordChars = trConst(nwLabels.STATS_NAME[nwStats.WCHARS_ALL])
|
1046
1046
|
trTextWordChars = trConst(nwLabels.STATS_NAME[nwStats.WCHARS_TEXT])
|
1047
1047
|
trTitleWordChars = trConst(nwLabels.STATS_NAME[nwStats.WCHARS_TITLE])
|
1048
|
-
trAllWords = trConst(nwLabels.STATS_NAME[nwStats.
|
1048
|
+
trAllWords = trConst(nwLabels.STATS_NAME[nwStats.WORDS])
|
1049
1049
|
trTextWords = trConst(nwLabels.STATS_NAME[nwStats.WORDS_TEXT])
|
1050
1050
|
trTitleWords = trConst(nwLabels.STATS_NAME[nwStats.WORDS_TITLE])
|
1051
1051
|
|
@@ -6,7 +6,7 @@ File History:
|
|
6
6
|
Created: 2023-02-13 [2.1b1] GuiBuildSettings
|
7
7
|
|
8
8
|
This file is a part of novelWriter
|
9
|
-
Copyright
|
9
|
+
Copyright (C) 2023 Veronica Berglyd Olsen and novelWriter contributors
|
10
10
|
|
11
11
|
This program is free software: you can redistribute it and/or modify
|
12
12
|
it under the terms of the GNU General Public License as published by
|
@@ -38,7 +38,7 @@ from PyQt5.QtWidgets import (
|
|
38
38
|
|
39
39
|
from novelwriter import CONFIG, SHARED
|
40
40
|
from novelwriter.common import describeFont, fontMatcher, qtLambda
|
41
|
-
from novelwriter.constants import nwHeadFmt, nwKeyWords, nwLabels,
|
41
|
+
from novelwriter.constants import nwHeadFmt, nwKeyWords, nwLabels, trConst
|
42
42
|
from novelwriter.core.buildsettings import BuildSettings, FilterMode
|
43
43
|
from novelwriter.extensions.configlayout import (
|
44
44
|
NColourLabel, NFixedPage, NScrollableForm, NScrollablePage
|
@@ -1074,7 +1074,7 @@ class _FormattingTab(NScrollableForm):
|
|
1074
1074
|
self.titleMarginB.setFixedWidth(dbW)
|
1075
1075
|
|
1076
1076
|
self.addRow(
|
1077
|
-
|
1077
|
+
self._build.getLabel("format.titleMargin"),
|
1078
1078
|
[pixT, self.titleMarginT, 6, pixB, self.titleMarginB],
|
1079
1079
|
unit="em",
|
1080
1080
|
)
|
@@ -1087,7 +1087,7 @@ class _FormattingTab(NScrollableForm):
|
|
1087
1087
|
self.h1MarginB.setFixedWidth(dbW)
|
1088
1088
|
|
1089
1089
|
self.addRow(
|
1090
|
-
|
1090
|
+
self._build.getLabel("format.h1Margin"),
|
1091
1091
|
[pixT, self.h1MarginT, 6, pixB, self.h1MarginB],
|
1092
1092
|
unit="em",
|
1093
1093
|
)
|
@@ -1100,7 +1100,7 @@ class _FormattingTab(NScrollableForm):
|
|
1100
1100
|
self.h2MarginB.setFixedWidth(dbW)
|
1101
1101
|
|
1102
1102
|
self.addRow(
|
1103
|
-
|
1103
|
+
self._build.getLabel("format.h2Margin"),
|
1104
1104
|
[pixT, self.h2MarginT, 6, pixB, self.h2MarginB],
|
1105
1105
|
unit="em",
|
1106
1106
|
)
|
@@ -1113,7 +1113,7 @@ class _FormattingTab(NScrollableForm):
|
|
1113
1113
|
self.h3MarginB.setFixedWidth(dbW)
|
1114
1114
|
|
1115
1115
|
self.addRow(
|
1116
|
-
|
1116
|
+
self._build.getLabel("format.h3Margin"),
|
1117
1117
|
[pixT, self.h3MarginT, 6, pixB, self.h3MarginB],
|
1118
1118
|
unit="em",
|
1119
1119
|
)
|
@@ -1126,7 +1126,7 @@ class _FormattingTab(NScrollableForm):
|
|
1126
1126
|
self.h4MarginB.setFixedWidth(dbW)
|
1127
1127
|
|
1128
1128
|
self.addRow(
|
1129
|
-
|
1129
|
+
self._build.getLabel("format.h4Margin"),
|
1130
1130
|
[pixT, self.h4MarginT, 6, pixB, self.h4MarginB],
|
1131
1131
|
unit="em",
|
1132
1132
|
)
|
@@ -1139,7 +1139,7 @@ class _FormattingTab(NScrollableForm):
|
|
1139
1139
|
self.textMarginB.setFixedWidth(dbW)
|
1140
1140
|
|
1141
1141
|
self.addRow(
|
1142
|
-
|
1142
|
+
self._build.getLabel("format.textMargin"),
|
1143
1143
|
[pixT, self.textMarginT, 6, pixB, self.textMarginB],
|
1144
1144
|
unit="em",
|
1145
1145
|
)
|
@@ -1152,7 +1152,7 @@ class _FormattingTab(NScrollableForm):
|
|
1152
1152
|
self.sepMarginB.setFixedWidth(dbW)
|
1153
1153
|
|
1154
1154
|
self.addRow(
|
1155
|
-
|
1155
|
+
self._build.getLabel("format.sepMargin"),
|
1156
1156
|
[pixT, self.sepMarginT, 6, pixB, self.sepMarginB],
|
1157
1157
|
unit="em",
|
1158
1158
|
)
|
@@ -6,7 +6,7 @@ File History:
|
|
6
6
|
Created: 2024-01-18 [2.3b1] GuiNovelDetails
|
7
7
|
|
8
8
|
This file is a part of novelWriter
|
9
|
-
Copyright
|
9
|
+
Copyright (C) 2024 Veronica Berglyd Olsen and novelWriter contributors
|
10
10
|
|
11
11
|
This program is free software: you can redistribute it and/or modify
|
12
12
|
it under the terms of the GNU General Public License as published by
|
novelwriter/tools/welcome.py
CHANGED
@@ -6,7 +6,7 @@ File History:
|
|
6
6
|
Created: 2023-12-14 [2.3b1] GuiWelcome
|
7
7
|
|
8
8
|
This file is a part of novelWriter
|
9
|
-
Copyright
|
9
|
+
Copyright (C) 2023 Veronica Berglyd Olsen and novelWriter contributors
|
10
10
|
|
11
11
|
This program is free software: you can redistribute it and/or modify
|
12
12
|
it under the terms of the GNU General Public License as published by
|
@@ -376,7 +376,7 @@ class _OpenProjectPage(QWidget):
|
|
376
376
|
action = ctxMenu.addAction(self.tr("Remove Project"))
|
377
377
|
action.triggered.connect(self._deleteSelectedItem)
|
378
378
|
ctxMenu.exec(self.mapToGlobal(pos))
|
379
|
-
ctxMenu.
|
379
|
+
ctxMenu.setParent(None)
|
380
380
|
return
|
381
381
|
|
382
382
|
##
|
@@ -6,7 +6,7 @@ File History:
|
|
6
6
|
Created: 2019-10-20 [0.3.0] GuiWritingStats
|
7
7
|
|
8
8
|
This file is a part of novelWriter
|
9
|
-
Copyright
|
9
|
+
Copyright (C) 2019 Veronica Berglyd Olsen and novelWriter contributors
|
10
10
|
|
11
11
|
This program is free software: you can redistribute it and/or modify
|
12
12
|
it under the terms of the GNU General Public License as published by
|
novelwriter/types.py
CHANGED
@@ -6,7 +6,7 @@ File History:
|
|
6
6
|
Created: 2024-04-01 [2.4rc1]
|
7
7
|
|
8
8
|
This file is a part of novelWriter
|
9
|
-
Copyright
|
9
|
+
Copyright (C) 2024 Veronica Berglyd Olsen and novelWriter contributors
|
10
10
|
|
11
11
|
This program is free software: you can redistribute it and/or modify
|
12
12
|
it under the terms of the GNU General Public License as published by
|
@@ -66,7 +66,7 @@ QtNoBrush = Qt.BrushStyle.NoBrush
|
|
66
66
|
QtNoPen = Qt.PenStyle.NoPen
|
67
67
|
QtRoundCap = Qt.PenCapStyle.RoundCap
|
68
68
|
QtSolidLine = Qt.PenStyle.SolidLine
|
69
|
-
|
69
|
+
QtPaintAntiAlias = QPainter.RenderHint.Antialiasing
|
70
70
|
QtMouseOver = QStyle.StateFlag.State_MouseOver
|
71
71
|
QtSelected = QStyle.StateFlag.State_Selected
|
72
72
|
|
File without changes
|
File without changes
|
File without changes
|