Commit Graph

167 Commits

Author SHA1 Message Date
Veronica Berglyd Olsen 15ec1496c5 Update and reorganise themes (#893)
* Drop the subfolders for GUI themes
* Remove bundled font support
* Add safe file read function
* Allow loading themes from multiple locations
* Clean up unused variables
* Clean up icons class
* Merge icon theme icons
* Update icon theme class
* Remove guiDark config setting
* Fix tests
* Fix handling of default theme
* Update icon readmes
* Add test for getGuiItem common function
2021-09-19 14:09:20 +02:00
Veronica Berglyd Olsen 3c8cb34b0a Project tree status and total word count changes (#882)
* Fix some inconsistencies in source file docstrings
* Remove the option to show status text in project tree
* Change how total word counts are calculated and propagated
* Fix tests and improve coverage
* Add setting in preferences
* Add missing word count timer to config file
2021-09-10 00:38:45 +02:00
Veronica Berglyd Olsen bbed05b273 Merge patch 1.4.2 2021-08-31 00:04:40 +02:00
Veronica Berglyd Olsen bdef9a3955 Fix smart quote issue (#874) 2021-08-30 23:23:47 +02:00
Veronica Berglyd Olsen f6845a9820 Remove the difflib spellchecker (#875)
* Delete simple spell checker
* Clean up the spell checker code
* Update tests
* Delete the bundled dictionaries
* Update documentation
* Use set() for user word list
* Fix tests so they pass also without dictionaries installed
2021-08-30 22:39:27 +02:00
Veronica Berglyd Olsen 1fb9648c6c Drop grey icon themes (#869)
* Add settings translator for icon themes
* Rename `typicons_colour_*` to `typicons_*`
* Delete grey icon themes
* Delete outdated paragraph in main README
* Fix tests
2021-08-26 18:01:52 +02:00
Veronica Berglyd Olsen a9368904e5 GUI and code tweaks and fixes (#852)
* Improve format menu header descriptions
* Ensure that item status is parsed after item class from XML
* Fix column alignment in ToC.txt file
* Rename test variable and fix outdated docstring
* Fix ToC.txt underline
* Rename the Layout label on the item details panel
* Add option to emphasise H1 and H2 labels in the project tree
* Rename the main column of the novel tree to match project tree
* Use the same document icons in the outline as the project tree
* Move project tree settings to Project section of config file
2021-08-17 21:45:18 +02:00
Veronica Berglyd Olsen 97aebc5b84 Update Project Tree (#847)
* Rename index textCounts to fileMeta and add main header level
* Add new icons for document layouts
* Add function in NWItem to describe the item
* Use the icons and description in the project tree and details panel
* Remove flags column and add status column with optional full text
* Update handling and display of header level in editor
* Fix potential bug in project tree
* Update tests
2021-08-15 17:55:57 +02:00
Veronica Berglyd Olsen cf08ba1d39 ODT Export Fixes (#843)
* Fix issue with additional line breaks in ODT export
* Improve format handling in ToOdt, and remove some unused code
* Add test for tab in format
* Add class to write text formats to XML
* Simplify the XMLParagraph class a bit
* Correct a breach of ODT standard and add error checking
* Make some final corrections
2021-08-14 12:42:44 +02:00
Veronica Berglyd Olsen bb1a778277 Merge Novel Layouts (#837)
* Merge novel layouts and simplify the Tokenizer class
* Fix core tests
* Delete auto-layout code
* Remove no longer needed item layouts
* Remove references to deleted item layouts in test
* Make some minor changes to Tokenizer class and update tests
* Update test reference files
* Update sample project
* Fix a few issues with the Tokenizer
* Centre some text in the sample documents
* Make some minor changes to how new projects are generated
* Add support for New Page and VSpace commands to the Tokenizer
* Remove Title and Page layouts and add codes for page break and vertical space
* Add document layout and fix some issues in index class with new title formats
* Update tests and reference files
* Bump the project file version and fix a minor issue in items class
* Update tests and test coverage
* Clean up some warnings and issues in tests
2021-08-02 23:44:35 +02:00
Veronica Berglyd Olsen c6973043e6 Index Updates (#840)
* Improve the index keyword checker function
* Implement a more compact indented JSON encoder
* Remove timestamp from reference, novel and note indices
* Remove empty entries in reference index
* Merge novel and note indices into a single file index
2021-08-01 18:19:03 +02:00
Veronica Berglyd Olsen 239cff3dee Fix tests 2021-06-09 23:32:22 +02:00
Veronica Berglyd Olsen 0826a2f8a3 Remove trailing space highlight and add highlight of redundant spaces 2021-05-23 16:17:05 +02:00
Veronica K. B. Olsen d795eb6f5f Delete no longer needed test reference files 2021-05-02 19:47:39 +02:00
Veronica K. B. Olsen 6c79a1daba Test terminology update 2021-05-02 17:48:28 +02:00
Veronica K. B. Olsen 2fc36f8355 Fix timestamp format in odt generator 2021-04-26 23:47:47 +02:00
Veronica K. B. Olsen 13cc2feb3f Improve build class test 2021-04-26 23:41:40 +02:00
Veronica K. B. Olsen 9f979c02f8 Use free string entries for padding instead of many switches 2021-03-14 14:23:44 +01:00
Veronica K. B. Olsen 1d59a67d6e Fix tests 2021-03-13 23:41:39 +01:00
Veronica K. B. Olsen 66282d4ed0 Add Preferences window size to Config and update tests 2021-02-22 20:23:14 +01:00
Veronica K. B. Olsen 844c3ab26f Allow Build language to not be set at all 2021-02-18 21:18:14 +01:00
Veronica K. B. Olsen 6cc974a8e9 Fix tests 2021-02-18 20:47:22 +01:00
Veronica K. B. Olsen e4d03f9581 Fix tests for variable change, and change monkeypatches to use the context manager 2021-02-18 19:21:46 +01:00
Veronica K. B. Olsen 8087e8ad75 Fix tests and a bug in GuiMain 2021-02-15 16:48:12 +01:00
Veronica K. B. Olsen 672ea6d6f2 Fix and update tests 2021-02-10 16:57:32 +01:00
Veronica K. B. Olsen 6904afc5e7 Updated tests 2021-02-09 21:09:03 +01:00
Veronica K. B. Olsen f4988c5d86 Clean up build tool and extend export tests 2021-02-06 17:40:39 +01:00
Veronica K. B. Olsen 3baeef4f44 Drop the whole firstTitle index again 2021-02-01 23:20:07 +01:00
Veronica K. Berglyd Olsen 2df0d81d29 Revert "Add timestamp to document meta" 2021-01-31 11:59:24 +01:00
Veronica K. B. Olsen 7a3c33fde3 Fix tests 2021-01-30 18:54:30 +01:00
Veronica K. B. Olsen ab45bcb121 Merge branch 'dev' into item_layouts 2021-01-30 15:13:13 +01:00
Veronica K. B. Olsen e9190d01dc Merge branch 'release' into dev 2021-01-30 15:12:32 +01:00
Veronica K. B. Olsen d492f0f41f Rename Preferences variables to match those in the Config class 2021-01-30 14:41:04 +01:00
Veronica K. B. Olsen 8de0c55b68 Fix broken tests 2021-01-29 01:14:58 +01:00
Veronica K. B. Olsen 1ff7c8bdd5 Update reference files for build test 2021-01-28 20:48:49 +01:00
Veronica K. B. Olsen d83352e16f Fix Build Novel Project test on Ubuntu 2021-01-27 19:49:21 +01:00
Veronica K. B. Olsen cbbe1b4f47 Add ODT meta namespace, add font format to HTML, and merge page break settings 2021-01-27 13:36:09 +01:00
Veronica K. B. Olsen 94c755a0e6 Fix tests and clean up a couple of minor things in HTML generator 2021-01-26 13:12:38 +01:00
Veronica K. B. Olsen 31928d5ebb Merge branch 'main' into dev 2021-01-24 14:52:35 +01:00
Veronica K. B. Olsen dfbde3e41c Fix broken tests 2021-01-24 13:41:40 +01:00
Veronica K. B. Olsen 6868b683d8 Added new quote setting to Preferences and updated tests 2021-01-19 18:37:19 +01:00
Veronica K. B. Olsen 14a0e6bd6e Allow indexing of untitled pages, and add a ToC function to the index class 2021-01-10 00:13:26 +01:00
Veronica K. B. Olsen d4b26025ed Add the basic structure for a novel tree 2020-12-20 15:50:01 +01:00
Veronica K. B. Olsen 27696d65e4 Remove some unnecessary branches and unused functions 2020-12-12 19:22:38 +01:00
Veronica K. B. Olsen 585287b487 Reorganise remainin GUI tests, but no improved coverage 2020-12-12 18:58:05 +01:00
Veronica K. B. Olsen 325c8dc68d Split up the main gui test file 2020-12-12 17:39:28 +01:00
Veronica K. B. Olsen c37d4013f8 Refactored build, merge, split, and item editor tests 2020-12-12 16:56:15 +01:00
Veronica K. B. Olsen e258ff60d0 Separated out project settings test and updated it 2020-12-12 15:51:03 +01:00
Veronica K. B. Olsen 9772c85ece Rewritten Config class test 2020-12-07 23:34:12 +01:00
Veronica K. B. Olsen d70ee34429 Rename project test reference files 2020-12-06 00:29:38 +01:00