novelWriter 2.7b1__tar.gz → 2.7rc1__tar.gz

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.
Files changed (235) hide show
  1. {novelwriter-2.7b1 → novelwriter-2.7rc1}/CHANGELOG.md +81 -3
  2. {novelwriter-2.7b1 → novelwriter-2.7rc1}/PKG-INFO +1 -1
  3. {novelwriter-2.7b1 → novelwriter-2.7rc1}/novelWriter.egg-info/PKG-INFO +1 -1
  4. {novelwriter-2.7b1 → novelwriter-2.7rc1}/novelWriter.egg-info/SOURCES.txt +3 -0
  5. {novelwriter-2.7b1 → novelwriter-2.7rc1}/novelwriter/__init__.py +17 -4
  6. {novelwriter-2.7b1 → novelwriter-2.7rc1}/novelwriter/assets/i18n/project_en_GB.json +1 -0
  7. {novelwriter-2.7b1 → novelwriter-2.7rc1}/novelwriter/assets/icons/remix_filled.icons +1 -0
  8. {novelwriter-2.7b1 → novelwriter-2.7rc1}/novelwriter/assets/icons/remix_outline.icons +1 -0
  9. novelwriter-2.7rc1/novelwriter/assets/images/splash.png +0 -0
  10. {novelwriter-2.7b1 → novelwriter-2.7rc1}/novelwriter/assets/manual.pdf +0 -0
  11. {novelwriter-2.7b1 → novelwriter-2.7rc1}/novelwriter/assets/manual_fr.pdf +0 -0
  12. {novelwriter-2.7b1 → novelwriter-2.7rc1}/novelwriter/assets/sample.zip +0 -0
  13. {novelwriter-2.7b1 → novelwriter-2.7rc1}/novelwriter/assets/syntax/snazzy.conf +3 -3
  14. novelwriter-2.7rc1/novelwriter/assets/themes/snazzy.conf +48 -0
  15. {novelwriter-2.7b1 → novelwriter-2.7rc1}/novelwriter/common.py +10 -1
  16. {novelwriter-2.7b1 → novelwriter-2.7rc1}/novelwriter/config.py +96 -25
  17. {novelwriter-2.7b1 → novelwriter-2.7rc1}/novelwriter/constants.py +17 -0
  18. {novelwriter-2.7b1 → novelwriter-2.7rc1}/novelwriter/core/buildsettings.py +2 -0
  19. {novelwriter-2.7b1 → novelwriter-2.7rc1}/novelwriter/core/coretools.py +41 -34
  20. {novelwriter-2.7b1 → novelwriter-2.7rc1}/novelwriter/core/docbuild.py +1 -0
  21. {novelwriter-2.7b1 → novelwriter-2.7rc1}/novelwriter/core/index.py +25 -1
  22. {novelwriter-2.7b1 → novelwriter-2.7rc1}/novelwriter/core/indexdata.py +4 -1
  23. {novelwriter-2.7b1 → novelwriter-2.7rc1}/novelwriter/core/item.py +35 -24
  24. {novelwriter-2.7b1 → novelwriter-2.7rc1}/novelwriter/core/itemmodel.py +17 -13
  25. {novelwriter-2.7b1 → novelwriter-2.7rc1}/novelwriter/core/novelmodel.py +2 -0
  26. {novelwriter-2.7b1 → novelwriter-2.7rc1}/novelwriter/core/project.py +14 -14
  27. {novelwriter-2.7b1 → novelwriter-2.7rc1}/novelwriter/core/projectdata.py +42 -24
  28. {novelwriter-2.7b1 → novelwriter-2.7rc1}/novelwriter/core/projectxml.py +17 -7
  29. {novelwriter-2.7b1 → novelwriter-2.7rc1}/novelwriter/core/sessions.py +29 -13
  30. {novelwriter-2.7b1 → novelwriter-2.7rc1}/novelwriter/core/tree.py +9 -5
  31. {novelwriter-2.7b1 → novelwriter-2.7rc1}/novelwriter/dialogs/docmerge.py +2 -1
  32. {novelwriter-2.7b1 → novelwriter-2.7rc1}/novelwriter/dialogs/docsplit.py +6 -3
  33. {novelwriter-2.7b1 → novelwriter-2.7rc1}/novelwriter/dialogs/editlabel.py +11 -8
  34. {novelwriter-2.7b1 → novelwriter-2.7rc1}/novelwriter/dialogs/preferences.py +37 -26
  35. {novelwriter-2.7b1 → novelwriter-2.7rc1}/novelwriter/dialogs/projectsettings.py +3 -0
  36. {novelwriter-2.7b1 → novelwriter-2.7rc1}/novelwriter/extensions/configlayout.py +6 -2
  37. {novelwriter-2.7b1 → novelwriter-2.7rc1}/novelwriter/extensions/switch.py +16 -15
  38. {novelwriter-2.7b1 → novelwriter-2.7rc1}/novelwriter/extensions/switchbox.py +1 -0
  39. {novelwriter-2.7b1 → novelwriter-2.7rc1}/novelwriter/formats/tokenizer.py +2 -1
  40. {novelwriter-2.7b1 → novelwriter-2.7rc1}/novelwriter/gui/doceditor.py +98 -40
  41. {novelwriter-2.7b1 → novelwriter-2.7rc1}/novelwriter/gui/noveltree.py +11 -5
  42. {novelwriter-2.7b1 → novelwriter-2.7rc1}/novelwriter/gui/outline.py +9 -1
  43. {novelwriter-2.7b1 → novelwriter-2.7rc1}/novelwriter/gui/projtree.py +1 -0
  44. {novelwriter-2.7b1 → novelwriter-2.7rc1}/novelwriter/gui/search.py +1 -0
  45. {novelwriter-2.7b1 → novelwriter-2.7rc1}/novelwriter/gui/statusbar.py +14 -6
  46. {novelwriter-2.7b1 → novelwriter-2.7rc1}/novelwriter/gui/theme.py +25 -10
  47. {novelwriter-2.7b1 → novelwriter-2.7rc1}/novelwriter/guimain.py +29 -9
  48. novelwriter-2.7rc1/novelwriter/splash.py +74 -0
  49. {novelwriter-2.7b1 → novelwriter-2.7rc1}/novelwriter/tools/lipsum.py +2 -1
  50. {novelwriter-2.7b1 → novelwriter-2.7rc1}/novelwriter/tools/manuscript.py +1 -1
  51. {novelwriter-2.7b1 → novelwriter-2.7rc1}/novelwriter/tools/manussettings.py +38 -13
  52. {novelwriter-2.7b1 → novelwriter-2.7rc1}/novelwriter/tools/noveldetails.py +9 -8
  53. {novelwriter-2.7b1 → novelwriter-2.7rc1}/novelwriter/tools/welcome.py +1 -0
  54. {novelwriter-2.7b1 → novelwriter-2.7rc1}/novelwriter/tools/writingstats.py +68 -45
  55. {novelwriter-2.7b1 → novelwriter-2.7rc1}/CREDITS.md +0 -0
  56. {novelwriter-2.7b1 → novelwriter-2.7rc1}/LICENSE.md +0 -0
  57. {novelwriter-2.7b1 → novelwriter-2.7rc1}/MANIFEST.in +0 -0
  58. {novelwriter-2.7b1 → novelwriter-2.7rc1}/README.md +0 -0
  59. {novelwriter-2.7b1 → novelwriter-2.7rc1}/novelWriter.egg-info/dependency_links.txt +0 -0
  60. {novelwriter-2.7b1 → novelwriter-2.7rc1}/novelWriter.egg-info/entry_points.txt +0 -0
  61. {novelwriter-2.7b1 → novelwriter-2.7rc1}/novelWriter.egg-info/requires.txt +0 -0
  62. {novelwriter-2.7b1 → novelwriter-2.7rc1}/novelWriter.egg-info/top_level.txt +0 -0
  63. {novelwriter-2.7b1 → novelwriter-2.7rc1}/novelwriter/assets/i18n/nw_cs_CZ.qm +0 -0
  64. {novelwriter-2.7b1 → novelwriter-2.7rc1}/novelwriter/assets/i18n/nw_de_DE.qm +0 -0
  65. {novelwriter-2.7b1 → novelwriter-2.7rc1}/novelwriter/assets/i18n/nw_en_US.qm +0 -0
  66. {novelwriter-2.7b1 → novelwriter-2.7rc1}/novelwriter/assets/i18n/nw_es_419.qm +0 -0
  67. {novelwriter-2.7b1 → novelwriter-2.7rc1}/novelwriter/assets/i18n/nw_fr_FR.qm +0 -0
  68. {novelwriter-2.7b1 → novelwriter-2.7rc1}/novelwriter/assets/i18n/nw_it_IT.qm +0 -0
  69. {novelwriter-2.7b1 → novelwriter-2.7rc1}/novelwriter/assets/i18n/nw_ja_JP.qm +0 -0
  70. {novelwriter-2.7b1 → novelwriter-2.7rc1}/novelwriter/assets/i18n/nw_nb_NO.qm +0 -0
  71. {novelwriter-2.7b1 → novelwriter-2.7rc1}/novelwriter/assets/i18n/nw_nl_NL.qm +0 -0
  72. {novelwriter-2.7b1 → novelwriter-2.7rc1}/novelwriter/assets/i18n/nw_pl_PL.qm +0 -0
  73. {novelwriter-2.7b1 → novelwriter-2.7rc1}/novelwriter/assets/i18n/nw_pt_BR.qm +0 -0
  74. {novelwriter-2.7b1 → novelwriter-2.7rc1}/novelwriter/assets/i18n/nw_ru_RU.qm +0 -0
  75. {novelwriter-2.7b1 → novelwriter-2.7rc1}/novelwriter/assets/i18n/nw_zh_CN.qm +0 -0
  76. {novelwriter-2.7b1 → novelwriter-2.7rc1}/novelwriter/assets/i18n/project_cs_CZ.json +0 -0
  77. {novelwriter-2.7b1 → novelwriter-2.7rc1}/novelwriter/assets/i18n/project_de_DE.json +0 -0
  78. {novelwriter-2.7b1 → novelwriter-2.7rc1}/novelwriter/assets/i18n/project_en_US.json +0 -0
  79. {novelwriter-2.7b1 → novelwriter-2.7rc1}/novelwriter/assets/i18n/project_es_419.json +0 -0
  80. {novelwriter-2.7b1 → novelwriter-2.7rc1}/novelwriter/assets/i18n/project_fr_FR.json +0 -0
  81. {novelwriter-2.7b1 → novelwriter-2.7rc1}/novelwriter/assets/i18n/project_it_IT.json +0 -0
  82. {novelwriter-2.7b1 → novelwriter-2.7rc1}/novelwriter/assets/i18n/project_ja_JP.json +0 -0
  83. {novelwriter-2.7b1 → novelwriter-2.7rc1}/novelwriter/assets/i18n/project_nb_NO.json +0 -0
  84. {novelwriter-2.7b1 → novelwriter-2.7rc1}/novelwriter/assets/i18n/project_nl_NL.json +0 -0
  85. {novelwriter-2.7b1 → novelwriter-2.7rc1}/novelwriter/assets/i18n/project_nn_NO.json +0 -0
  86. {novelwriter-2.7b1 → novelwriter-2.7rc1}/novelwriter/assets/i18n/project_pl_PL.json +0 -0
  87. {novelwriter-2.7b1 → novelwriter-2.7rc1}/novelwriter/assets/i18n/project_pt_BR.json +0 -0
  88. {novelwriter-2.7b1 → novelwriter-2.7rc1}/novelwriter/assets/i18n/project_ru_RU.json +0 -0
  89. {novelwriter-2.7b1 → novelwriter-2.7rc1}/novelwriter/assets/i18n/project_zh_CN.json +0 -0
  90. {novelwriter-2.7b1 → novelwriter-2.7rc1}/novelwriter/assets/icons/font_awesome.icons +0 -0
  91. {novelwriter-2.7b1 → novelwriter-2.7rc1}/novelwriter/assets/icons/material_filled_bold.icons +0 -0
  92. {novelwriter-2.7b1 → novelwriter-2.7rc1}/novelwriter/assets/icons/material_filled_normal.icons +0 -0
  93. {novelwriter-2.7b1 → novelwriter-2.7rc1}/novelwriter/assets/icons/material_filled_thin.icons +0 -0
  94. {novelwriter-2.7b1 → novelwriter-2.7rc1}/novelwriter/assets/icons/material_rounded_bold.icons +0 -0
  95. {novelwriter-2.7b1 → novelwriter-2.7rc1}/novelwriter/assets/icons/material_rounded_normal.icons +0 -0
  96. {novelwriter-2.7b1 → novelwriter-2.7rc1}/novelwriter/assets/icons/material_rounded_thin.icons +0 -0
  97. {novelwriter-2.7b1 → novelwriter-2.7rc1}/novelwriter/assets/icons/none.svg +0 -0
  98. {novelwriter-2.7b1 → novelwriter-2.7rc1}/novelwriter/assets/icons/novelwriter.ico +0 -0
  99. {novelwriter-2.7b1 → novelwriter-2.7rc1}/novelwriter/assets/icons/novelwriter.svg +0 -0
  100. {novelwriter-2.7b1 → novelwriter-2.7rc1}/novelwriter/assets/icons/x-novelwriter-project.ico +0 -0
  101. {novelwriter-2.7b1 → novelwriter-2.7rc1}/novelwriter/assets/icons/x-novelwriter-project.svg +0 -0
  102. {novelwriter-2.7b1 → novelwriter-2.7rc1}/novelwriter/assets/images/novelwriter-text-dark.svg +0 -0
  103. {novelwriter-2.7b1 → novelwriter-2.7rc1}/novelwriter/assets/images/novelwriter-text-light.svg +0 -0
  104. {novelwriter-2.7b1 → novelwriter-2.7rc1}/novelwriter/assets/images/welcome-dark.jpg +0 -0
  105. {novelwriter-2.7b1 → novelwriter-2.7rc1}/novelwriter/assets/images/welcome-light.jpg +0 -0
  106. {novelwriter-2.7b1 → novelwriter-2.7rc1}/novelwriter/assets/syntax/cyberpunk_night.conf +0 -0
  107. {novelwriter-2.7b1 → novelwriter-2.7rc1}/novelwriter/assets/syntax/default_dark.conf +0 -0
  108. {novelwriter-2.7b1 → novelwriter-2.7rc1}/novelwriter/assets/syntax/default_light.conf +0 -0
  109. {novelwriter-2.7b1 → novelwriter-2.7rc1}/novelwriter/assets/syntax/dracula.conf +0 -0
  110. {novelwriter-2.7b1 → novelwriter-2.7rc1}/novelwriter/assets/syntax/grey_dark.conf +0 -0
  111. {novelwriter-2.7b1 → novelwriter-2.7rc1}/novelwriter/assets/syntax/grey_light.conf +0 -0
  112. {novelwriter-2.7b1 → novelwriter-2.7rc1}/novelwriter/assets/syntax/light_owl.conf +0 -0
  113. {novelwriter-2.7b1 → novelwriter-2.7rc1}/novelwriter/assets/syntax/night_owl.conf +0 -0
  114. {novelwriter-2.7b1 → novelwriter-2.7rc1}/novelwriter/assets/syntax/solarized_dark.conf +0 -0
  115. {novelwriter-2.7b1 → novelwriter-2.7rc1}/novelwriter/assets/syntax/solarized_light.conf +0 -0
  116. {novelwriter-2.7b1 → novelwriter-2.7rc1}/novelwriter/assets/syntax/tango.conf +0 -0
  117. {novelwriter-2.7b1 → novelwriter-2.7rc1}/novelwriter/assets/syntax/tomorrow.conf +0 -0
  118. {novelwriter-2.7b1 → novelwriter-2.7rc1}/novelwriter/assets/syntax/tomorrow_night.conf +0 -0
  119. {novelwriter-2.7b1 → novelwriter-2.7rc1}/novelwriter/assets/syntax/tomorrow_night_blue.conf +0 -0
  120. {novelwriter-2.7b1 → novelwriter-2.7rc1}/novelwriter/assets/syntax/tomorrow_night_bright.conf +0 -0
  121. {novelwriter-2.7b1 → novelwriter-2.7rc1}/novelwriter/assets/syntax/tomorrow_night_eighties.conf +0 -0
  122. {novelwriter-2.7b1 → novelwriter-2.7rc1}/novelwriter/assets/text/credits_en.htm +0 -0
  123. {novelwriter-2.7b1 → novelwriter-2.7rc1}/novelwriter/assets/text/lipsum.txt +0 -0
  124. {novelwriter-2.7b1 → novelwriter-2.7rc1}/novelwriter/assets/themes/cyberpunk_night.conf +0 -0
  125. {novelwriter-2.7b1 → novelwriter-2.7rc1}/novelwriter/assets/themes/default.conf +0 -0
  126. {novelwriter-2.7b1 → novelwriter-2.7rc1}/novelwriter/assets/themes/default_dark.conf +0 -0
  127. {novelwriter-2.7b1 → novelwriter-2.7rc1}/novelwriter/assets/themes/default_light.conf +0 -0
  128. {novelwriter-2.7b1 → novelwriter-2.7rc1}/novelwriter/assets/themes/dracula.conf +0 -0
  129. {novelwriter-2.7b1 → novelwriter-2.7rc1}/novelwriter/assets/themes/solarized_dark.conf +0 -0
  130. {novelwriter-2.7b1 → novelwriter-2.7rc1}/novelwriter/assets/themes/solarized_light.conf +0 -0
  131. {novelwriter-2.7b1 → novelwriter-2.7rc1}/novelwriter/core/document.py +0 -0
  132. {novelwriter-2.7b1 → novelwriter-2.7rc1}/novelwriter/core/options.py +0 -0
  133. {novelwriter-2.7b1 → novelwriter-2.7rc1}/novelwriter/core/spellcheck.py +0 -0
  134. {novelwriter-2.7b1 → novelwriter-2.7rc1}/novelwriter/core/status.py +0 -0
  135. {novelwriter-2.7b1 → novelwriter-2.7rc1}/novelwriter/core/storage.py +0 -0
  136. {novelwriter-2.7b1 → novelwriter-2.7rc1}/novelwriter/dialogs/about.py +0 -0
  137. {novelwriter-2.7b1 → novelwriter-2.7rc1}/novelwriter/dialogs/quotes.py +0 -0
  138. {novelwriter-2.7b1 → novelwriter-2.7rc1}/novelwriter/dialogs/wordlist.py +0 -0
  139. {novelwriter-2.7b1 → novelwriter-2.7rc1}/novelwriter/enum.py +0 -0
  140. {novelwriter-2.7b1 → novelwriter-2.7rc1}/novelwriter/error.py +0 -0
  141. {novelwriter-2.7b1 → novelwriter-2.7rc1}/novelwriter/extensions/eventfilters.py +0 -0
  142. {novelwriter-2.7b1 → novelwriter-2.7rc1}/novelwriter/extensions/modified.py +0 -0
  143. {novelwriter-2.7b1 → novelwriter-2.7rc1}/novelwriter/extensions/novelselector.py +0 -0
  144. {novelwriter-2.7b1 → novelwriter-2.7rc1}/novelwriter/extensions/pagedsidebar.py +0 -0
  145. {novelwriter-2.7b1 → novelwriter-2.7rc1}/novelwriter/extensions/progressbars.py +0 -0
  146. {novelwriter-2.7b1 → novelwriter-2.7rc1}/novelwriter/extensions/statusled.py +0 -0
  147. {novelwriter-2.7b1 → novelwriter-2.7rc1}/novelwriter/extensions/versioninfo.py +0 -0
  148. {novelwriter-2.7b1 → novelwriter-2.7rc1}/novelwriter/formats/shared.py +0 -0
  149. {novelwriter-2.7b1 → novelwriter-2.7rc1}/novelwriter/formats/todocx.py +0 -0
  150. {novelwriter-2.7b1 → novelwriter-2.7rc1}/novelwriter/formats/tohtml.py +0 -0
  151. {novelwriter-2.7b1 → novelwriter-2.7rc1}/novelwriter/formats/tomarkdown.py +0 -0
  152. {novelwriter-2.7b1 → novelwriter-2.7rc1}/novelwriter/formats/toodt.py +0 -0
  153. {novelwriter-2.7b1 → novelwriter-2.7rc1}/novelwriter/formats/toqdoc.py +0 -0
  154. {novelwriter-2.7b1 → novelwriter-2.7rc1}/novelwriter/formats/toraw.py +0 -0
  155. {novelwriter-2.7b1 → novelwriter-2.7rc1}/novelwriter/gui/dochighlight.py +0 -0
  156. {novelwriter-2.7b1 → novelwriter-2.7rc1}/novelwriter/gui/docviewer.py +0 -0
  157. {novelwriter-2.7b1 → novelwriter-2.7rc1}/novelwriter/gui/docviewerpanel.py +0 -0
  158. {novelwriter-2.7b1 → novelwriter-2.7rc1}/novelwriter/gui/editordocument.py +0 -0
  159. {novelwriter-2.7b1 → novelwriter-2.7rc1}/novelwriter/gui/itemdetails.py +0 -0
  160. {novelwriter-2.7b1 → novelwriter-2.7rc1}/novelwriter/gui/mainmenu.py +0 -0
  161. {novelwriter-2.7b1 → novelwriter-2.7rc1}/novelwriter/gui/sidebar.py +0 -0
  162. {novelwriter-2.7b1 → novelwriter-2.7rc1}/novelwriter/shared.py +0 -0
  163. {novelwriter-2.7b1 → novelwriter-2.7rc1}/novelwriter/text/comments.py +0 -0
  164. {novelwriter-2.7b1 → novelwriter-2.7rc1}/novelwriter/text/counting.py +0 -0
  165. {novelwriter-2.7b1 → novelwriter-2.7rc1}/novelwriter/text/patterns.py +0 -0
  166. {novelwriter-2.7b1 → novelwriter-2.7rc1}/novelwriter/tools/dictionaries.py +0 -0
  167. {novelwriter-2.7b1 → novelwriter-2.7rc1}/novelwriter/tools/manusbuild.py +0 -0
  168. {novelwriter-2.7b1 → novelwriter-2.7rc1}/novelwriter/types.py +0 -0
  169. {novelwriter-2.7b1 → novelwriter-2.7rc1}/pkgutils.py +0 -0
  170. {novelwriter-2.7b1 → novelwriter-2.7rc1}/pyproject.toml +0 -0
  171. {novelwriter-2.7b1 → novelwriter-2.7rc1}/setup/appimage_launcher.sh +0 -0
  172. {novelwriter-2.7b1 → novelwriter-2.7rc1}/setup/data/hicolor/128x128/apps/novelwriter.png +0 -0
  173. {novelwriter-2.7b1 → novelwriter-2.7rc1}/setup/data/hicolor/128x128/mimetypes/application-x-novelwriter-project.png +0 -0
  174. {novelwriter-2.7b1 → novelwriter-2.7rc1}/setup/data/hicolor/16x16/apps/novelwriter.png +0 -0
  175. {novelwriter-2.7b1 → novelwriter-2.7rc1}/setup/data/hicolor/16x16/mimetypes/application-x-novelwriter-project.png +0 -0
  176. {novelwriter-2.7b1 → novelwriter-2.7rc1}/setup/data/hicolor/24x24/apps/novelwriter.png +0 -0
  177. {novelwriter-2.7b1 → novelwriter-2.7rc1}/setup/data/hicolor/24x24/mimetypes/application-x-novelwriter-project.png +0 -0
  178. {novelwriter-2.7b1 → novelwriter-2.7rc1}/setup/data/hicolor/256x256/apps/novelwriter.png +0 -0
  179. {novelwriter-2.7b1 → novelwriter-2.7rc1}/setup/data/hicolor/256x256/mimetypes/application-x-novelwriter-project.png +0 -0
  180. {novelwriter-2.7b1 → novelwriter-2.7rc1}/setup/data/hicolor/32x32/apps/novelwriter.png +0 -0
  181. {novelwriter-2.7b1 → novelwriter-2.7rc1}/setup/data/hicolor/32x32/mimetypes/application-x-novelwriter-project.png +0 -0
  182. {novelwriter-2.7b1 → novelwriter-2.7rc1}/setup/data/hicolor/48x48/apps/novelwriter.png +0 -0
  183. {novelwriter-2.7b1 → novelwriter-2.7rc1}/setup/data/hicolor/48x48/mimetypes/application-x-novelwriter-project.png +0 -0
  184. {novelwriter-2.7b1 → novelwriter-2.7rc1}/setup/data/hicolor/512x512/apps/novelwriter.png +0 -0
  185. {novelwriter-2.7b1 → novelwriter-2.7rc1}/setup/data/hicolor/512x512/mimetypes/application-x-novelwriter-project.png +0 -0
  186. {novelwriter-2.7b1 → novelwriter-2.7rc1}/setup/data/hicolor/64x64/apps/novelwriter.png +0 -0
  187. {novelwriter-2.7b1 → novelwriter-2.7rc1}/setup/data/hicolor/64x64/mimetypes/application-x-novelwriter-project.png +0 -0
  188. {novelwriter-2.7b1 → novelwriter-2.7rc1}/setup/data/hicolor/scalable/apps/novelwriter.svg +0 -0
  189. {novelwriter-2.7b1 → novelwriter-2.7rc1}/setup/data/hicolor/scalable/mimetypes/application-x-novelwriter-project.svg +0 -0
  190. {novelwriter-2.7b1 → novelwriter-2.7rc1}/setup/data/novelwriter.desktop +0 -0
  191. {novelwriter-2.7b1 → novelwriter-2.7rc1}/setup/data/novelwriter.png +0 -0
  192. {novelwriter-2.7b1 → novelwriter-2.7rc1}/setup/data/x-novelwriter-project.xml +0 -0
  193. {novelwriter-2.7b1 → novelwriter-2.7rc1}/setup/debian/compat +0 -0
  194. {novelwriter-2.7b1 → novelwriter-2.7rc1}/setup/debian/control +0 -0
  195. {novelwriter-2.7b1 → novelwriter-2.7rc1}/setup/debian/copyright +0 -0
  196. {novelwriter-2.7b1 → novelwriter-2.7rc1}/setup/debian/install +0 -0
  197. {novelwriter-2.7b1 → novelwriter-2.7rc1}/setup/debian/py3dist-overrides +0 -0
  198. {novelwriter-2.7b1 → novelwriter-2.7rc1}/setup/debian/rules +0 -0
  199. {novelwriter-2.7b1 → novelwriter-2.7rc1}/setup/debian/source/format +0 -0
  200. {novelwriter-2.7b1 → novelwriter-2.7rc1}/setup/description_pypi.md +0 -0
  201. {novelwriter-2.7b1 → novelwriter-2.7rc1}/setup/description_short.txt +0 -0
  202. {novelwriter-2.7b1 → novelwriter-2.7rc1}/setup/icons/novelwriter.ico +0 -0
  203. {novelwriter-2.7b1 → novelwriter-2.7rc1}/setup/icons/novelwriter.svg +0 -0
  204. {novelwriter-2.7b1 → novelwriter-2.7rc1}/setup/icons/x-novelwriter-project.ico +0 -0
  205. {novelwriter-2.7b1 → novelwriter-2.7rc1}/setup/icons/x-novelwriter-project.svg +0 -0
  206. {novelwriter-2.7b1 → novelwriter-2.7rc1}/setup/iss_license.txt +0 -0
  207. {novelwriter-2.7b1 → novelwriter-2.7rc1}/setup/macos/App.entitlements +0 -0
  208. {novelwriter-2.7b1 → novelwriter-2.7rc1}/setup/macos/Info.plist.template +0 -0
  209. {novelwriter-2.7b1 → novelwriter-2.7rc1}/setup/macos/build.sh +0 -0
  210. {novelwriter-2.7b1 → novelwriter-2.7rc1}/setup/macos/novelwriter.iconset/icon_128x128.png +0 -0
  211. {novelwriter-2.7b1 → novelwriter-2.7rc1}/setup/macos/novelwriter.iconset/icon_128x128@2x.png +0 -0
  212. {novelwriter-2.7b1 → novelwriter-2.7rc1}/setup/macos/novelwriter.iconset/icon_16x16.png +0 -0
  213. {novelwriter-2.7b1 → novelwriter-2.7rc1}/setup/macos/novelwriter.iconset/icon_16x16@2x.png +0 -0
  214. {novelwriter-2.7b1 → novelwriter-2.7rc1}/setup/macos/novelwriter.iconset/icon_256x256.png +0 -0
  215. {novelwriter-2.7b1 → novelwriter-2.7rc1}/setup/macos/novelwriter.iconset/icon_256x256@2x.png +0 -0
  216. {novelwriter-2.7b1 → novelwriter-2.7rc1}/setup/macos/novelwriter.iconset/icon_32x32.png +0 -0
  217. {novelwriter-2.7b1 → novelwriter-2.7rc1}/setup/macos/novelwriter.iconset/icon_32x32@2x.png +0 -0
  218. {novelwriter-2.7b1 → novelwriter-2.7rc1}/setup/macos/novelwriter.iconset/icon_512x512.png +0 -0
  219. {novelwriter-2.7b1 → novelwriter-2.7rc1}/setup/macos/novelwriter.iconset/icon_512x512@2x.png +0 -0
  220. {novelwriter-2.7b1 → novelwriter-2.7rc1}/setup/make_clean.sh +0 -0
  221. {novelwriter-2.7b1 → novelwriter-2.7rc1}/setup/make_pip.sh +0 -0
  222. {novelwriter-2.7b1 → novelwriter-2.7rc1}/setup/make_release.sh +0 -0
  223. {novelwriter-2.7b1 → novelwriter-2.7rc1}/setup/novelwriter.appdata.xml +0 -0
  224. {novelwriter-2.7b1 → novelwriter-2.7rc1}/setup/novelwriter_readme.png +0 -0
  225. {novelwriter-2.7b1 → novelwriter-2.7rc1}/setup/novelwriter_text.png +0 -0
  226. {novelwriter-2.7b1 → novelwriter-2.7rc1}/setup/screenshot.png +0 -0
  227. {novelwriter-2.7b1 → novelwriter-2.7rc1}/setup/signpath_logo.png +0 -0
  228. {novelwriter-2.7b1 → novelwriter-2.7rc1}/setup/win_setup_embed.iss +0 -0
  229. {novelwriter-2.7b1 → novelwriter-2.7rc1}/setup/windows/CMakeLists.txt +0 -0
  230. {novelwriter-2.7b1 → novelwriter-2.7rc1}/setup/windows/launcher.rc +0 -0
  231. {novelwriter-2.7b1 → novelwriter-2.7rc1}/setup/windows/main.cpp +0 -0
  232. {novelwriter-2.7b1 → novelwriter-2.7rc1}/setup/windows/make.ps1 +0 -0
  233. {novelwriter-2.7b1 → novelwriter-2.7rc1}/setup/windows/novelWriter.exe +0 -0
  234. {novelwriter-2.7b1 → novelwriter-2.7rc1}/setup/windows/novelWriter.ico +0 -0
  235. {novelwriter-2.7b1 → novelwriter-2.7rc1}/setup.cfg +0 -0
@@ -1,5 +1,84 @@
1
1
  # novelWriter Changelog
2
2
 
3
+ ## Version 2.7 RC 1 [2025-05-19]
4
+
5
+ ### Release Notes
6
+
7
+ This is a release candidate of the next release version, and is intended for testing purposes.
8
+ Please be careful when using this version on live writing projects, and make sure you take frequent
9
+ backups.
10
+
11
+ ### Detailed Changelog
12
+
13
+ **New Features**
14
+
15
+ * It is now possible to set character count as the main statistics displayed on the GUI instead of
16
+ word count. The setting is available under the "Appearance" section in Preferences. Issue #1657.
17
+ PR #2323.
18
+ * Comments can now be marked as "Manuscript Notes" with the `%Note.term:` syntax. The term is a
19
+ free form value that is displayed alongside the note when exported to the manuscript. Each term
20
+ is also added as a column in exports from the Outline View. Issue #1133. PR #2346.
21
+ * A completer drop down menu has been added to comments as well in the editor. It is triggered when
22
+ a new line starts with `%`. It will show the options of Synopsis, Short, Story and Note, and when
23
+ a period is added after the latter two, show a list of previously used Story and Note keys.
24
+ Issue #1784. PR #2290.
25
+
26
+ **Improvements**
27
+
28
+ * The dialogue colour of the Snazzy Light syntax theme has changed from yellow to blue, which
29
+ should make it easier to read. PR #2336.
30
+ * The Snazzy Light theme has also been added as a GUI theme. PR #2334.
31
+ * The auto-generated title page for new projects should now make a little more sense in terms of
32
+ default values filled in for the author. PR #2333.
33
+ * The new project form on the Welcome dialog now remembers the previous author name filled in, so
34
+ there should be no need to type it again every time. PR #2333.
35
+ * Project name and author name values are now also used for new example projects. PR #2333.
36
+ * The narrator break symbol settings for dialogue have been changed from a free text field to a
37
+ dropdown list of dashes. This helps to avoid misunderstandings where the field was populated with
38
+ other symbols, like quote symbols (see #2320). Issue #2324. PR #2327.
39
+ * A splash screen is now shown at startup, providing some information about the initialisation
40
+ steps the startup script is running before the GUI is launched. Since loading system fonts can be
41
+ quote heavy, this at least gives some user feedback to users running on systems where there is a
42
+ significant delay. In particular, there is a long delay when loading fonts with poor Unicode
43
+ support, in which case the Qt library will look for replacement glyphs when the symbols are first
44
+ encountered. Previously, the delay happened when the Welcome dialog was being drawn, since this
45
+ is the first time a non-Ascii Unicode character is used. Now these Unicode characters are probed
46
+ when the config is loaded, with progress output on the splash screen. Issue #2315. PR #2316.
47
+
48
+ **Bugfixes**
49
+
50
+ * Moving a note between root folders of a different type will now update the class the tags defined
51
+ within the note are associated with. This association is used to populate the tag auto-completion
52
+ in the editor. Issue #2330. PR #2343.
53
+ * The story structure comments now appear under the correct column when exported to CSV from the
54
+ Outline View. Issue #2313. PR #2343.
55
+ * A new unique ID is now assigned to new example projects. Creating multiple example projects would
56
+ previously retain the original ID, causing the Welcome dialog to override them rather than list
57
+ them as unique projects. PR #2333.
58
+ * In Qt6, or probably in PyQt6, the datetime type from Python was truncated to a date variable when
59
+ localising it. This has been fixed by explicitly converting the Python datetime to a QDateTime
60
+ before passing it to the PyQt wrapper. This is probably a bug in PyQt6. Issue #2325. PR #2326.
61
+ * A missing Remix icon for project copy has been added. Issue #2314. PR #2317.
62
+
63
+ **Accessibility**
64
+
65
+ * Trees and lists on the GUI have been assigned names so that screen readers can more easily
66
+ identify them. Switches on the GUI have also been associated with their labels so the screen
67
+ reader can pick up the label text. Icons on the project tree also have an accessibility label.
68
+ Issues #2106 and #2107. PR #2337.
69
+ * Switches should now show a highlighted border when they have focus, and the toggle animation also
70
+ now works properly when a switch is toggled using the keyboard. This should improve keyboard
71
+ navigation. PR #2337.
72
+ * The default status and importance labels for new projects now use shapes for icons, to make the
73
+ defaults more accessible for people with reduced colour vision. Issue #2332. PR #2333.
74
+
75
+ **Code Improvements**
76
+
77
+ * New tests have been added for the custom data models, using the Qt model tester framework that
78
+ ensures the models have all the virtual methods implemented. PR #2331.
79
+
80
+ ----
81
+
3
82
  ## Version 2.7 Beta 1 [2025-04-20]
4
83
 
5
84
  ### Release Notes
@@ -49,8 +128,7 @@ careful when using this version on live writing projects, and make sure you take
49
128
  * The move to Qt6 is complete, and the new minimum requirement is Qt 6.4. Issues #864, #1142,
50
129
  #2192, #2193, #2194 and #2195. PRs #2184, #2187, #2190, #2191, #2196, #2204, #2301 and #2306.
51
130
  * Support for Python 3.9 has been dropped. Due to the Qt6 change, older distros are no longer
52
- supported. The oldest Ubuntu release still supported is 22.04, which comes with Python 3.10.
53
- PR #2182.
131
+ supported. The oldest Ubuntu release still supported is 24.04. PR #2182.
54
132
  * The Windows release now uses a custom novelWriter.exe launcher rather than calling the Python exe
55
133
  directly with novelWriter.pyw as an argument. This means novelWriter can also be launched from
56
134
  its install folder, and desktop shortcuts created directly. It also simplifies the registry
@@ -66,7 +144,7 @@ careful when using this version on live writing projects, and make sure you take
66
144
  **Code Improvements**
67
145
 
68
146
  * The log output now obeys the `NO_COLOR` and `FORCE_COLOR` environment variables. PR #2228.
69
- * The CI/CD pipeline now runs type checking on the code base using Pyright. Issue #2276. PR #2279.
147
+ * The CI/CD pipeline now runs type checking on the code base using Pyright. PR #2279.
70
148
  * The CI/CD pipeline now uses Ruff to check code style and format. PRs #2281, #2282 and #2287.
71
149
  * The code base has been updated to conform to new linting rules. PR #2201.
72
150
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: novelWriter
3
- Version: 2.7b1
3
+ Version: 2.7rc1
4
4
  Summary: A markdown-like text editor for planning and writing novels
5
5
  Author-email: Veronica Berglyd Olsen <code@vkbo.net>
6
6
  License: GNU General Public License v3
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: novelWriter
3
- Version: 2.7b1
3
+ Version: 2.7rc1
4
4
  Summary: A markdown-like text editor for planning and writing novels
5
5
  Author-email: Veronica Berglyd Olsen <code@vkbo.net>
6
6
  License: GNU General Public License v3
@@ -19,6 +19,7 @@ novelwriter/enum.py
19
19
  novelwriter/error.py
20
20
  novelwriter/guimain.py
21
21
  novelwriter/shared.py
22
+ novelwriter/splash.py
22
23
  novelwriter/types.py
23
24
  novelwriter/assets/manual.pdf
24
25
  novelwriter/assets/manual_fr.pdf
@@ -67,6 +68,7 @@ novelwriter/assets/icons/x-novelwriter-project.ico
67
68
  novelwriter/assets/icons/x-novelwriter-project.svg
68
69
  novelwriter/assets/images/novelwriter-text-dark.svg
69
70
  novelwriter/assets/images/novelwriter-text-light.svg
71
+ novelwriter/assets/images/splash.png
70
72
  novelwriter/assets/images/welcome-dark.jpg
71
73
  novelwriter/assets/images/welcome-light.jpg
72
74
  novelwriter/assets/syntax/cyberpunk_night.conf
@@ -93,6 +95,7 @@ novelwriter/assets/themes/default.conf
93
95
  novelwriter/assets/themes/default_dark.conf
94
96
  novelwriter/assets/themes/default_light.conf
95
97
  novelwriter/assets/themes/dracula.conf
98
+ novelwriter/assets/themes/snazzy.conf
96
99
  novelwriter/assets/themes/solarized_dark.conf
97
100
  novelwriter/assets/themes/solarized_light.conf
98
101
  novelwriter/core/buildsettings.py
@@ -35,6 +35,7 @@ from PyQt6.QtWidgets import QApplication, QErrorMessage
35
35
  from novelwriter.config import Config
36
36
  from novelwriter.error import exceptionHandler
37
37
  from novelwriter.shared import SharedData
38
+ from novelwriter.splash import NSplashScreen
38
39
 
39
40
  if TYPE_CHECKING:
40
41
  from novelwriter.guimain import GuiMain
@@ -48,9 +49,9 @@ __license__ = "GPLv3"
48
49
  __author__ = "Veronica Berglyd Olsen"
49
50
  __maintainer__ = "Veronica Berglyd Olsen"
50
51
  __email__ = "code@vkbo.net"
51
- __version__ = "2.7b1"
52
- __hexversion__ = "0x020700b1"
53
- __date__ = "2025-04-20"
52
+ __version__ = "2.7rc1"
53
+ __hexversion__ = "0x020700c1"
54
+ __date__ = "2025-05-19"
54
55
  __status__ = "Stable"
55
56
  __domain__ = "novelwriter.io"
56
57
 
@@ -267,13 +268,25 @@ def main(sysArgs: list | None = None) -> GuiMain | None:
267
268
  # Connect the exception handler before making the main GUI
268
269
  sys.excepthook = exceptionHandler
269
270
 
271
+ splash = NSplashScreen()
272
+ splash.show()
273
+
274
+ splash.showStatus("")
275
+ splash.showStatus("Starting novelWriter ...")
276
+
270
277
  # Run Config steps that require the QApplication
271
- CONFIG.loadConfig()
278
+ CONFIG.loadConfig(splash)
272
279
  CONFIG.initLocalisation(app)
273
280
  SHARED.initTheme(GuiTheme())
274
281
 
275
282
  # Launch main GUI
276
283
  nwGUI = GuiMain()
284
+ nwGUI.showNormal()
285
+ splash.finish(nwGUI)
286
+
287
+ CONFIG.finishStartup()
288
+ del splash
289
+
277
290
  nwGUI.postLaunchTasks(cmdOpen)
278
291
 
279
292
  sys.exit(app.exec())
@@ -4,6 +4,7 @@
4
4
  "Footnotes": "Footnotes",
5
5
  "Comment": "Comment",
6
6
  "Story Structure": "Story Structure",
7
+ "Note": "Note",
7
8
  "Notes": "Notes",
8
9
  "Tag": "Tag",
9
10
  "Point of View": "Point of View",
@@ -94,6 +94,7 @@ icon:noncheckable = <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 2
94
94
  icon:open = <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="#000000" height="128" width="128"><path d="M16 2L21 7V21.0082C21 21.556 20.5551 22 20.0066 22H3.9934C3.44476 22 3 21.5447 3 21.0082V2.9918C3 2.44405 3.44495 2 3.9934 2H16ZM13 12H16L12 8L8 12H11V16H13V12Z" /></svg>
95
95
  icon:panel = <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="#000000" height="128" width="128"><path d="M22 16V20C22 20.5523 21.5523 21 21 21H3C2.44772 21 2 20.5523 2 20V16H22ZM21 3C21.5523 3 22 3.44772 22 4V14H2V4C2 3.44772 2.44772 3 3 3H21Z" /></svg>
96
96
  icon:pin = <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="#000000" height="128" width="128"><path d="M22.3126 10.1753L20.8984 11.5895L20.1913 10.8824L15.9486 15.125L15.2415 18.6606L13.8273 20.0748L9.58466 15.8321L4.63492 20.7819L3.2207 19.3677L8.17045 14.4179L3.92781 10.1753L5.34202 8.76107L8.87756 8.05396L13.1202 3.81132L12.4131 3.10422L13.8273 1.69L22.3126 10.1753Z" /></svg>
97
+ icon:project_copy = <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="#000000" height="128" width="128"><path d="M6.9998 6V3C6.9998 2.44772 7.44752 2 7.9998 2H19.9998C20.5521 2 20.9998 2.44772 20.9998 3V17C20.9998 17.5523 20.5521 18 19.9998 18H16.9998V20.9991C16.9998 21.5519 16.5499 22 15.993 22H4.00666C3.45059 22 3 21.5554 3 20.9991L3.0026 7.00087C3.0027 6.44811 3.45264 6 4.00942 6H6.9998ZM8.9998 6H16.9998V16H18.9998V4H8.9998V6ZM6.9998 11V13H12.9998V11H6.9998ZM6.9998 15V17H12.9998V15H6.9998Z" /></svg>
97
98
  icon:quote = <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="#000000" height="128" width="128"><path d="M19.4167 6.67891C20.4469 7.77257 21.0001 9 21.0001 10.9897C21.0001 14.4891 18.5436 17.6263 14.9695 19.1768L14.0768 17.7992C17.4121 15.9946 18.0639 13.6539 18.3245 12.178C17.7875 12.4557 17.0845 12.5533 16.3954 12.4895C14.591 12.3222 13.1689 10.8409 13.1689 9C13.1689 7.067 14.7359 5.5 16.6689 5.5C17.742 5.5 18.7681 5.99045 19.4167 6.67891ZM9.41669 6.67891C10.4469 7.77257 11.0001 9 11.0001 10.9897C11.0001 14.4891 8.54359 17.6263 4.96951 19.1768L4.07682 17.7992C7.41206 15.9946 8.06392 13.6539 8.32447 12.178C7.78747 12.4557 7.08452 12.5533 6.39539 12.4895C4.59102 12.3222 3.16895 10.8409 3.16895 9C3.16895 7.067 4.73595 5.5 6.66895 5.5C7.742 5.5 8.76814 5.99045 9.41669 6.67891Z" /></svg>
98
99
  icon:refresh = <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="#000000" height="128" width="128"><path d="M5.46257 4.43262C7.21556 2.91688 9.5007 2 12 2C17.5228 2 22 6.47715 22 12C22 14.1361 21.3302 16.1158 20.1892 17.7406L17 12H20C20 7.58172 16.4183 4 12 4C9.84982 4 7.89777 4.84827 6.46023 6.22842L5.46257 4.43262ZM18.5374 19.5674C16.7844 21.0831 14.4993 22 12 22C6.47715 22 2 17.5228 2 12C2 9.86386 2.66979 7.88416 3.8108 6.25944L7 12H4C4 16.4183 7.58172 20 12 20C14.1502 20 16.1022 19.1517 17.5398 17.7716L18.5374 19.5674Z" /></svg>
99
100
  icon:remove = <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="#000000" height="128" width="128"><path d="M19 11H5V13H19V11Z" /></svg>
@@ -94,6 +94,7 @@ icon:noncheckable = <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 2
94
94
  icon:open = <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="#000000" height="128" width="128"><path d="M15 4H5V20H19V8H15V4ZM3 2.9918C3 2.44405 3.44749 2 3.9985 2H16L20.9997 7L21 20.9925C21 21.5489 20.5551 22 20.0066 22H3.9934C3.44476 22 3 21.5447 3 21.0082V2.9918ZM13 12V16H11V12H8L12 8L16 12H13Z" /></svg>
95
95
  icon:panel = <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="#000000" height="128" width="128"><path d="M21 3C21.5523 3 22 3.44772 22 4V20C22 20.5523 21.5523 21 21 21H3C2.44772 21 2 20.5523 2 20V4C2 3.44772 2.44772 3 3 3H21ZM4 16V19H20V16H4ZM4 14H20V5H4V14Z" /></svg>
96
96
  icon:pin = <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="#000000" height="128" width="128"><path d="M13.8273 1.69L22.3126 10.1753L20.8984 11.5895L20.1913 10.8824L15.9486 15.125L15.2415 18.6606L13.8273 20.0748L9.58466 15.8321L4.63492 20.7819L3.2207 19.3677L8.17045 14.4179L3.92781 10.1753L5.34202 8.76107L8.87756 8.05396L13.1202 3.81132L12.4131 3.10422L13.8273 1.69ZM14.5344 5.22554L9.86358 9.89637L7.0417 10.4607L13.5418 16.9609L14.1062 14.139L18.7771 9.46818L14.5344 5.22554Z" /></svg>
97
+ icon:project_copy = <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="#000000" height="128" width="128"><path d="M6.9998 6V3C6.9998 2.44772 7.44752 2 7.9998 2H19.9998C20.5521 2 20.9998 2.44772 20.9998 3V17C20.9998 17.5523 20.5521 18 19.9998 18H16.9998V20.9991C16.9998 21.5519 16.5499 22 15.993 22H4.00666C3.45059 22 3 21.5554 3 20.9991L3.0026 7.00087C3.0027 6.44811 3.45264 6 4.00942 6H6.9998ZM5.00242 8L5.00019 20H14.9998V8H5.00242ZM8.9998 6H16.9998V16H18.9998V4H8.9998V6ZM7 11H13V13H7V11ZM7 15H13V17H7V15Z" /></svg>
97
98
  icon:quote = <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="#000000" height="128" width="128"><path d="M19.4167 6.67891C20.4469 7.77257 21.0001 9 21.0001 10.9897C21.0001 14.4891 18.5436 17.6263 14.9695 19.1768L14.0768 17.7992C17.4121 15.9946 18.0639 13.6539 18.3245 12.178C17.7875 12.4557 17.0845 12.5533 16.3954 12.4895C14.591 12.3222 13.1689 10.8409 13.1689 9C13.1689 7.067 14.7359 5.5 16.6689 5.5C17.742 5.5 18.7681 5.99045 19.4167 6.67891ZM9.41669 6.67891C10.4469 7.77257 11.0001 9 11.0001 10.9897C11.0001 14.4891 8.54359 17.6263 4.96951 19.1768L4.07682 17.7992C7.41206 15.9946 8.06392 13.6539 8.32447 12.178C7.78747 12.4557 7.08452 12.5533 6.39539 12.4895C4.59102 12.3222 3.16895 10.8409 3.16895 9C3.16895 7.067 4.73595 5.5 6.66895 5.5C7.742 5.5 8.76814 5.99045 9.41669 6.67891Z" /></svg>
98
99
  icon:refresh = <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="#000000" height="128" width="128"><path d="M5.46257 4.43262C7.21556 2.91688 9.5007 2 12 2C17.5228 2 22 6.47715 22 12C22 14.1361 21.3302 16.1158 20.1892 17.7406L17 12H20C20 7.58172 16.4183 4 12 4C9.84982 4 7.89777 4.84827 6.46023 6.22842L5.46257 4.43262ZM18.5374 19.5674C16.7844 21.0831 14.4993 22 12 22C6.47715 22 2 17.5228 2 12C2 9.86386 2.66979 7.88416 3.8108 6.25944L7 12H4C4 16.4183 7.58172 20 12 20C14.1502 20 16.1022 19.1517 17.5398 17.7716L18.5374 19.5674Z" /></svg>
99
100
  icon:remove = <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="#000000" height="128" width="128"><path d="M5 11V13H19V11H5Z" /></svg>
@@ -25,15 +25,15 @@ text = 86, 88, 105
25
25
  link = 9, 161, 237
26
26
  headertext = 45, 174, 88
27
27
  headertag = 45, 174, 88, 160
28
- emphasis = 19, 187, 183
29
- dialog = 207, 156, 0
28
+ emphasis = 247, 103, 187
29
+ dialog = 9, 161, 237
30
30
  altdialog = 207, 156, 0
31
31
  note = 120, 187, 185
32
32
  hidden = 145, 148, 162
33
33
  shortcode = 247, 103, 187
34
34
  keyword = 9, 161, 237
35
35
  tag = 45, 174, 88
36
- value = 9, 161, 237
36
+ value = 207, 156, 0
37
37
  optional = 207, 156, 0
38
38
  spellcheckline = 255, 92, 87
39
39
  errorline = 45, 174, 88
@@ -0,0 +1,48 @@
1
+ [Main]
2
+ name = Snazzy Light
3
+ author = Veronica Berglyd Olsen (adaptation)
4
+ credit = Florian Reuschel (color theme)
5
+ url = https://github.com/loilo/vscode-snazzy-light
6
+ license = MIT License
7
+ licenseurl = https://github.com/loilo/vscode-snazzy-light/blob/master/LICENSE
8
+
9
+ [Icons]
10
+ default = 86, 88, 105
11
+ faded = 84, 85, 84
12
+ red = 255, 92, 87
13
+ orange = 245, 185, 0
14
+ yellow = 207, 156, 0
15
+ green = 45, 174, 88
16
+ aqua = 19, 187, 183
17
+ blue = 9, 161, 237
18
+ purple = 247, 103, 187
19
+
20
+ [Project]
21
+ root = 9, 161, 237
22
+ folder = 207, 156, 0
23
+ file = 84, 85, 84
24
+ title = 45, 174, 88
25
+ chapter = 255, 92, 87
26
+ scene = 9, 161, 237
27
+ note = 207, 156, 0
28
+
29
+ [Palette]
30
+ window = 243, 244, 245
31
+ windowtext = 86, 88, 105
32
+ base = 250, 251, 252
33
+ alternatebase = 234, 234, 235
34
+ text = 86, 88, 105
35
+ tooltipbase = 245, 233, 194
36
+ tooltiptext = 86, 88, 105
37
+ button = 250, 251, 252
38
+ buttontext = 86, 88, 105
39
+ brighttext = 255, 255, 255
40
+ highlight = 9, 161, 237
41
+ highlightedtext = 255, 255, 255
42
+ link = 9, 161, 237
43
+ linkvisited = 9, 161, 237
44
+
45
+ [GUI]
46
+ helptext = 9, 161, 237
47
+ fadedtext = 84, 85, 84
48
+ errortext = 255, 92, 87
@@ -40,7 +40,7 @@ from PyQt6.QtCore import QCoreApplication, QMimeData, QUrl
40
40
  from PyQt6.QtGui import QAction, QDesktopServices, QFont, QFontDatabase, QFontInfo
41
41
  from PyQt6.QtWidgets import QMenu, QMenuBar, QWidget
42
42
 
43
- from novelwriter.constants import nwConst, nwLabels, nwUnicode, trConst
43
+ from novelwriter.constants import nwConst, nwLabels, nwQuotes, nwUnicode, trConst
44
44
  from novelwriter.enum import nwItemClass, nwItemLayout, nwItemType
45
45
  from novelwriter.error import logException
46
46
 
@@ -298,6 +298,15 @@ def uniqueCompact(text: str) -> str:
298
298
  return "".join(sorted(set(compact(text))))
299
299
 
300
300
 
301
+ def processDialogSymbols(symbols: str) -> str:
302
+ """Process dialogue line symbols."""
303
+ result = ""
304
+ for c in uniqueCompact(symbols):
305
+ if c in nwQuotes.ALLOWED:
306
+ result += c
307
+ return result
308
+
309
+
301
310
  def elide(text: str, length: int) -> str:
302
311
  """Elide a piece of text to a maximum length."""
303
312
  if len(text) > (cut := max(4, length)):
@@ -34,23 +34,24 @@ from time import time
34
34
  from typing import TYPE_CHECKING, Final
35
35
 
36
36
  from PyQt6.QtCore import (
37
- PYQT_VERSION, PYQT_VERSION_STR, QT_VERSION, QT_VERSION_STR, QLibraryInfo,
38
- QLocale, QStandardPaths, QSysInfo, QTranslator
37
+ PYQT_VERSION, PYQT_VERSION_STR, QT_VERSION, QT_VERSION_STR, QDate,
38
+ QDateTime, QLibraryInfo, QLocale, QStandardPaths, QSysInfo, QTranslator
39
39
  )
40
- from PyQt6.QtGui import QFont, QFontDatabase
40
+ from PyQt6.QtGui import QFont, QFontDatabase, QFontMetrics
41
41
  from PyQt6.QtWidgets import QApplication
42
42
 
43
43
  from novelwriter.common import (
44
44
  NWConfigParser, checkInt, checkPath, describeFont, fontMatcher,
45
- formatTimeStamp
45
+ formatTimeStamp, processDialogSymbols, simplified
46
46
  )
47
- from novelwriter.constants import nwFiles, nwUnicode
47
+ from novelwriter.constants import nwFiles, nwHtmlUnicode, nwQuotes, nwUnicode
48
48
  from novelwriter.error import formatException, logException
49
49
 
50
50
  if TYPE_CHECKING:
51
51
  from datetime import datetime
52
52
 
53
53
  from novelwriter.core.projectdata import NWProjectData
54
+ from novelwriter.splash import NSplashScreen
54
55
 
55
56
  logger = logging.getLogger(__name__)
56
57
 
@@ -64,16 +65,16 @@ class Config:
64
65
 
65
66
  __slots__ = (
66
67
  "_appPath", "_appRoot", "_backPath", "_backupPath", "_confPath", "_dLocale", "_dShortDate",
67
- "_dShortDateTime", "_dataPath", "_errData", "_hasError", "_homePath", "_manuals",
68
- "_nwLangPath", "_qLocale", "_qtLangPath", "_qtTrans", "_recentPaths", "_recentProjects",
69
- "allowOpenDial", "altDialogClose", "altDialogOpen", "appHandle", "appName",
70
- "askBeforeBackup", "askBeforeExit", "autoSaveDoc", "autoSaveProj", "autoScroll",
71
- "autoScrollPos", "autoSelect", "backupOnClose", "cursorWidth", "dialogLine", "dialogStyle",
72
- "doJustify", "doReplace", "doReplaceDQuote", "doReplaceDash", "doReplaceDots",
73
- "doReplaceSQuote", "emphLabels", "fmtApostrophe", "fmtDQuoteClose", "fmtDQuoteOpen",
74
- "fmtPadAfter", "fmtPadBefore", "fmtPadThin", "fmtSQuoteClose", "fmtSQuoteOpen",
75
- "focusWidth", "guiFont", "guiLocale", "guiSyntax", "guiTheme", "hasEnchant",
76
- "hideFocusFooter", "hideHScroll", "hideVScroll", "highlightEmph", "hostName",
68
+ "_dShortDateTime", "_dataPath", "_errData", "_hasError", "_homePath", "_lastAuthor",
69
+ "_manuals", "_nwLangPath", "_qLocale", "_qtLangPath", "_qtTrans", "_recentPaths",
70
+ "_recentProjects", "_splash", "allowOpenDial", "altDialogClose", "altDialogOpen",
71
+ "appHandle", "appName", "askBeforeBackup", "askBeforeExit", "autoSaveDoc", "autoSaveProj",
72
+ "autoScroll", "autoScrollPos", "autoSelect", "backupOnClose", "cursorWidth", "dialogLine",
73
+ "dialogStyle", "doJustify", "doReplace", "doReplaceDQuote", "doReplaceDash",
74
+ "doReplaceDots", "doReplaceSQuote", "emphLabels", "fmtApostrophe", "fmtDQuoteClose",
75
+ "fmtDQuoteOpen", "fmtPadAfter", "fmtPadBefore", "fmtPadThin", "fmtSQuoteClose",
76
+ "fmtSQuoteOpen", "focusWidth", "guiFont", "guiLocale", "guiSyntax", "guiTheme",
77
+ "hasEnchant", "hideFocusFooter", "hideHScroll", "hideVScroll", "highlightEmph", "hostName",
77
78
  "iconColDocs", "iconColTree", "iconTheme", "incNotesWCount", "isDebug", "kernelVer",
78
79
  "lastNotes", "mainPanePos", "mainWinSize", "memInfo", "narratorBreak", "narratorDialog",
79
80
  "nativeFont", "osDarwin", "osLinux", "osType", "osUnknown", "osWindows", "outlinePanePos",
@@ -94,6 +95,8 @@ class Config:
94
95
  # Initialisation
95
96
  # ==============
96
97
 
98
+ self._splash = None
99
+
97
100
  # Set Application Variables
98
101
  self.appName = "novelWriter"
99
102
  self.appHandle = "novelwriter"
@@ -146,6 +149,7 @@ class Config:
146
149
 
147
150
  self._recentProjects = RecentProjects(self)
148
151
  self._recentPaths = RecentPaths(self)
152
+ self._lastAuthor = ""
149
153
 
150
154
  # General GUI Settings
151
155
  self.guiLocale = self._qLocale.name()
@@ -318,6 +322,11 @@ class Config:
318
322
  def recentProjects(self) -> RecentProjects:
319
323
  return self._recentProjects
320
324
 
325
+ @property
326
+ def lastAuthor(self) -> str:
327
+ """Return the last author name used."""
328
+ return simplified(self._lastAuthor)
329
+
321
330
  ##
322
331
  # Getters
323
332
  ##
@@ -333,6 +342,11 @@ class Config:
333
342
  # Setters
334
343
  ##
335
344
 
345
+ def setLastAuthor(self, value: str) -> None:
346
+ """Set tle last used author name."""
347
+ self._lastAuthor = simplified(value)
348
+ return
349
+
336
350
  def setMainWinSize(self, width: int, height: int) -> None:
337
351
  """Set the size of the main window, but only if the change is
338
352
  larger than 5 pixels. The OS window manager will sometimes
@@ -464,11 +478,16 @@ class Config:
464
478
 
465
479
  def localDate(self, value: datetime) -> str:
466
480
  """Return a localised date format."""
467
- return self._dLocale.toString(value, self._dShortDate)
481
+ # Explicitly convert the date first, see bug #2325
482
+ return self._dLocale.toString(QDate(value.year, value.month, value.day), self._dShortDate)
468
483
 
469
484
  def localDateTime(self, value: datetime) -> str:
470
485
  """Return a localised datetime format."""
471
- return self._dLocale.toString(value, self._dShortDateTime)
486
+ # Explicitly convert the datetime first, see bug #2325
487
+ return self._dLocale.toString(
488
+ QDateTime(value.year, value.month, value.day, value.hour, value.minute, value.second),
489
+ self._dShortDateTime,
490
+ )
472
491
 
473
492
  def listLanguages(self, lngSet: int) -> list[tuple[str, str]]:
474
493
  """List localisation files in the i18n folder. The default GUI
@@ -497,6 +516,12 @@ class Config:
497
516
 
498
517
  return sorted(langList.items(), key=lambda x: x[0])
499
518
 
519
+ def splashMessage(self, message: str) -> None:
520
+ """Send a message to the splash screen."""
521
+ if self._splash:
522
+ self._splash.showStatus(message)
523
+ return
524
+
500
525
  ##
501
526
  # Config Actions
502
527
  ##
@@ -543,6 +568,8 @@ class Config:
543
568
 
544
569
  def initLocalisation(self, nwApp: QApplication) -> None:
545
570
  """Initialise the localisation of the GUI."""
571
+ self.splashMessage("Loading localisation ...")
572
+
546
573
  self._qLocale = QLocale(self.guiLocale)
547
574
  QLocale.setDefault(self._qLocale)
548
575
  self._qtTrans = {}
@@ -568,8 +595,11 @@ class Config:
568
595
 
569
596
  return
570
597
 
571
- def loadConfig(self) -> bool:
598
+ def loadConfig(self, splash: NSplashScreen | None = None) -> bool:
572
599
  """Load preferences from file and replace default settings."""
600
+ self._splash = splash
601
+ self.splashMessage("Loading user configuration ...")
602
+
573
603
  logger.debug("Loading config file")
574
604
 
575
605
  conf = NWConfigParser()
@@ -626,6 +656,7 @@ class Config:
626
656
  self.backupOnClose = conf.rdBool(sec, "backuponclose", self.backupOnClose)
627
657
  self.askBeforeBackup = conf.rdBool(sec, "askbeforebackup", self.askBeforeBackup)
628
658
  self.askBeforeExit = conf.rdBool(sec, "askbeforeexit", self.askBeforeExit)
659
+ self._lastAuthor = conf.rdStr(sec, "lastauthor", self._lastAuthor)
629
660
 
630
661
  # Editor
631
662
  sec = "Editor"
@@ -661,9 +692,9 @@ class Config:
661
692
  self.showFullPath = conf.rdBool(sec, "showfullpath", self.showFullPath)
662
693
  self.dialogStyle = conf.rdInt(sec, "dialogstyle", self.dialogStyle)
663
694
  self.allowOpenDial = conf.rdBool(sec, "allowopendial", self.allowOpenDial)
664
- self.dialogLine = conf.rdStr(sec, "dialogline", self.dialogLine)
665
- self.narratorBreak = conf.rdStr(sec, "narratorbreak", self.narratorBreak)
666
- self.narratorDialog = conf.rdStr(sec, "narratordialog", self.narratorDialog)
695
+ dialogLine = conf.rdStr(sec, "dialogline", self.dialogLine)
696
+ narratorBreak = conf.rdStr(sec, "narratorbreak", self.narratorBreak)
697
+ narratorDialog = conf.rdStr(sec, "narratordialog", self.narratorDialog)
667
698
  self.altDialogOpen = conf.rdStr(sec, "altdialogopen", self.altDialogOpen)
668
699
  self.altDialogClose = conf.rdStr(sec, "altdialogclose", self.altDialogClose)
669
700
  self.highlightEmph = conf.rdBool(sec, "highlightemph", self.highlightEmph)
@@ -690,6 +721,9 @@ class Config:
690
721
  # Check Values
691
722
  # ============
692
723
 
724
+ self._prepareFont(self.guiFont, "GUI")
725
+ self._prepareFont(self.textFont, "document")
726
+
693
727
  # If we're using straight quotes, disable auto-replace
694
728
  if self.fmtSQuoteOpen == self.fmtSQuoteClose == "'" and self.doReplaceSQuote:
695
729
  logger.info("Using straight single quotes, so disabling auto-replace")
@@ -699,6 +733,10 @@ class Config:
699
733
  logger.info("Using straight double quotes, so disabling auto-replace")
700
734
  self.doReplaceDQuote = False
701
735
 
736
+ self.dialogLine = processDialogSymbols(dialogLine)
737
+ self.narratorBreak = narratorBreak if narratorBreak in nwQuotes.DASHES else ""
738
+ self.narratorDialog = narratorDialog if narratorDialog in nwQuotes.DASHES else ""
739
+
702
740
  return True
703
741
 
704
742
  def saveConfig(self) -> bool:
@@ -743,6 +781,7 @@ class Config:
743
781
  "backuponclose": str(self.backupOnClose),
744
782
  "askbeforebackup": str(self.askBeforeBackup),
745
783
  "askbeforeexit": str(self.askBeforeExit),
784
+ "lastauthor": str(self._lastAuthor),
746
785
  }
747
786
 
748
787
  conf["Editor"] = {
@@ -820,6 +859,11 @@ class Config:
820
859
 
821
860
  return True
822
861
 
862
+ def finishStartup(self) -> None:
863
+ """Call after startup is complete."""
864
+ self._splash = None
865
+ return
866
+
823
867
  ##
824
868
  # Internal Functions
825
869
  ##
@@ -842,6 +886,17 @@ class Config:
842
886
  logger.debug("Checking package 'pyenchant': OK")
843
887
  return
844
888
 
889
+ def _prepareFont(self, font: QFont, kind: str) -> None:
890
+ """Check Unicode availability in font. This also initialises any
891
+ alternative character used for missing glyphs. See #2315.
892
+ """
893
+ self.splashMessage(f"Initialising {kind} font: {font.family()}")
894
+ metrics = QFontMetrics(font)
895
+ for char in nwHtmlUnicode.U_TO_H.keys():
896
+ if not metrics.inFont(char): # type: ignore
897
+ logger.warning("No glyph U+%04x in font", ord(char)) # pragma: no cover
898
+ return
899
+
845
900
 
846
901
  class RecentProjects:
847
902
 
@@ -864,9 +919,10 @@ class RecentProjects:
864
919
  puuid = str(entry.get("uuid", ""))
865
920
  title = str(entry.get("title", ""))
866
921
  words = checkInt(entry.get("words", 0), 0)
922
+ chars = checkInt(entry.get("chars", 0), 0)
867
923
  saved = checkInt(entry.get("time", 0), 0)
868
924
  if path and title:
869
- self._setEntry(puuid, path, title, words, saved)
925
+ self._setEntry(puuid, path, title, words, chars, saved)
870
926
  except Exception:
871
927
  logger.error("Could not load recent project cache")
872
928
  logException()
@@ -899,7 +955,14 @@ class RecentProjects:
899
955
  try:
900
956
  if (remove := self._map.get(data.uuid)) and (remove != str(path)):
901
957
  self.remove(remove)
902
- self._setEntry(data.uuid, str(path), data.name, sum(data.currCounts), int(saved))
958
+ self._setEntry(
959
+ data.uuid,
960
+ str(path),
961
+ data.name,
962
+ sum(data.currCounts[:2]),
963
+ sum(data.currCounts[2:]),
964
+ int(saved),
965
+ )
903
966
  self.saveCache()
904
967
  except Exception:
905
968
  pass
@@ -912,9 +975,17 @@ class RecentProjects:
912
975
  self.saveCache()
913
976
  return
914
977
 
915
- def _setEntry(self, puuid: str, path: str, title: str, words: int, saved: int) -> None:
978
+ def _setEntry(
979
+ self, puuid: str, path: str, title: str, words: int, chars: int, saved: int
980
+ ) -> None:
916
981
  """Set an entry in the recent projects record."""
917
- self._data[path] = {"uuid": puuid, "title": title, "words": words, "time": saved}
982
+ self._data[path] = {
983
+ "uuid": puuid,
984
+ "title": title,
985
+ "words": words,
986
+ "chars": chars,
987
+ "time": saved,
988
+ }
918
989
  if puuid:
919
990
  self._map[puuid] = path
920
991
  return
@@ -352,6 +352,10 @@ class nwLabels:
352
352
  nwStats.WORDS_TEXT: QT_TRANSLATE_NOOP("Stats", "Words in Text"),
353
353
  nwStats.WORDS_TITLE: QT_TRANSLATE_NOOP("Stats", "Words in Headings"),
354
354
  }
355
+ STATS_DISPLAY: Final[dict[str, str]] = {
356
+ nwStats.CHARS: QT_TRANSLATE_NOOP("Stats", "Characters: {0} ({1})"),
357
+ nwStats.WORDS: QT_TRANSLATE_NOOP("Stats", "Words: {0} ({1})"),
358
+ }
355
359
  BUILD_FMT: Final[dict[nwBuildFmt, str]] = {
356
360
  nwBuildFmt.ODT: QT_TRANSLATE_NOOP("Constant", "Open Document (.odt)"),
357
361
  nwBuildFmt.FODT: QT_TRANSLATE_NOOP("Constant", "Flat Open Document (.fodt)"),
@@ -505,6 +509,19 @@ class nwQuotes:
505
509
  "\u300f": QT_TRANSLATE_NOOP("Constant", "Right white corner bracket"),
506
510
  }
507
511
 
512
+ DASHES: Final[dict[str, str]] = {
513
+ "": QT_TRANSLATE_NOOP("Constant", "None"),
514
+ "\u2013": QT_TRANSLATE_NOOP("Constant", "Short dash"),
515
+ "\u2014": QT_TRANSLATE_NOOP("Constant", "Long dash"),
516
+ "\u2015": QT_TRANSLATE_NOOP("Constant", "Horizontal bar"),
517
+ }
518
+
519
+ ALLOWED: Final[list[str]] = [
520
+ "\u0027", "\u0022", "\u2018", "\u2019", "\u201a", "\u201b", "\u201c", "\u201d", "\u201e",
521
+ "\u201f", "\u2e42", "\u2039", "\u203a", "\u00ab", "\u00bb", "\u300c", "\u300d", "\u300e",
522
+ "\u300f", "\u2013", "\u2014", "\u2015",
523
+ ]
524
+
508
525
 
509
526
  class nwUnicode:
510
527
  """Supported unicode character constants and their HTML equivalents."""