Commit graph

67 commits

Author SHA1 Message Date
Megan Conners
01036e4540 fixes #992 and #998 with explicit int casts 2022-01-16 12:31:16 -05:00
Jan Wester
32caf6aa04 Partial fix for erroneous nbsp->space conversion
QDocument::toPlainText() has the stupid decision to convert nbsp to
spaces in it, which our users obviously hate. Unfortunately, this is
out of our control to fix completely. It is a very deep rabbit hole. :(

Typing non-breaking spaces in the editor now works. Reopening these
files at a later point has these characters remain intact.

What does NOT work is copy-pasting non-breaking spaces. These will end
up looking like normal spaces when you paste them somewhere else, be it
in Manuskript or some other document. In other words: it is impossible
for users to verify whether something is a non-breaking space or an
ordinary one.

I realize that it makes this partial fix meaningless for many. Sorry. :/

Partially fixes issue 738.
2021-07-10 19:01:58 +02:00
Jan Wester
ff2cbca028 Converted most print statements to use logging
Some snippets have yet to be converted due to the more complex nature
of those snippets, and to keep things neat a separate commit makes more
sense for those.
2021-04-08 18:44:28 +02:00
TheJackiMonster
3effe5c7fa
Added more consistency to the context menu 2021-02-22 03:18:45 +01:00
nagolinc
22fdab3f46 added 3 buttons to the textEditView that allow quickly adding new items
add character takes parameter name
2021-02-21 20:06:17 -05:00
TheJackiMonster
0cb65c452e
Fixed cursor selection without suggestions 2021-02-22 01:26:07 +01:00
TheJackiMonster
ad21d5faa5
Fixed finding suggestions using enchant and word selection without external dictionary 2021-02-22 01:13:19 +01:00
TheJackiMonster
12be4c3a3d
Fixed all Python syntax warnings 2021-02-21 23:45:34 +01:00
TheJackiMonster
ac8cb3e403
Added support for LanguageTool via 'language_check' as advanced spellchecker 2021-02-19 15:44:38 +01:00
TheJackiMonster
9f6b65aaca Fixed bugs caused by parallel access during multithreading 2020-01-06 11:16:02 -07:00
Youness Alaoui
5c33ce54f3 spellcheck: show 'add to dictionary' even if a word has no suggestions 2019-04-30 09:54:31 -06:00
Youness Alaoui
d0f02cb2a7 Add a Spellchecker abstraction layer and clean up code
This is in preparation for adding support for additional spellchecking libraries
other than PyEnchant which seems to be unmaintained and does not build in
Windows 64 bit.
2019-04-30 09:54:31 -06:00
Youness Alaoui
c3c9eef415 Do not default spellcheck to True for new editor views
default spellcheck to the settings value instead. Otherwise any new editor tab
will have spellcheck enabled regardless of setting.

Fixes #474
2019-02-25 12:58:00 -07:00
Youness Alaoui
9b774d327f Fix crash when right clicking a word in editor and enchant is not installed. 2019-02-11 12:35:23 -07:00
RiderExMachina
41e9467267 Fix crash in Outline mode with multi-item select #355
Closes issue #355 and pull request #385
2018-10-14 11:10:46 -06:00
Windspar
67db180c25 Fixes #217 - segfault when pasting text with focus mode enabled 2018-03-08 11:19:25 -07:00
JackXVII
d3afa11ceb Remove _updateIndexFromID from textEditView
It is not used anymore.
2018-03-03 12:53:52 -07:00
JackXVII
3a21ddd137 Use QPersistentModelIndex in textEditView
It is much simpler than catching rowsAboutToBeDeleted signal from model. Also
it fixes #306.
2018-03-03 12:53:52 -07:00
Curtis Gedak
43c077552a Avoid crash on spellcheck by ensuring enchant dictionary exists
See issue #273.
2018-02-12 10:59:14 -07:00
Sebastian Rasmussen
dfe88a9681 Fix typos in code comments, invisible to end-users. 2018-01-29 10:30:41 -07:00
Olivier Keshavjee
46384b68eb Fixes bugs in focus mode (#259) 2017-12-05 23:45:16 +01:00
Olivier Keshavjee
826d53933f Adds #259: Focus Mode (poke #234) 2017-12-05 23:18:32 +01:00
Olivier Keshavjee
9cbd8887c7 Fixes #240: Cannot write a summary on a plot resolution step 2017-12-04 13:27:57 +01:00
Olivier Keshavjee
cb79e504e7 Merge branch 'master' into develop 2017-11-27 21:53:37 +01:00
Olivier Keshavjee
c2dcbf56a0 Adds new markdown highlighter and many little tweaks 2017-11-27 21:35:32 +01:00
Olivier Keshavjee
9baea11791 Fixes FullScreenEditor with MDEditView 2017-11-27 21:13:44 +01:00
Olivier Keshavjee
7b29d332c5 Removes textFormat panel (bold, italic, etc. buttons) 2017-11-27 20:58:02 +01:00
Olivier Keshavjee
c1ad771642 Subclass textEditView 2017-11-27 15:00:07 +01:00
Olivier Keshavjee
d27ce4dec6 Fixes #232: Add markdown support of other tabs 2017-11-25 14:58:15 +01:00
Olivier Keshavjee
7940cdb336 Adds better fullscreen theme color integration 2017-11-25 14:17:49 +01:00
Olivier Keshavjee
59742accfa Moves textedit scrollbar outside the margins 2017-11-24 22:33:12 +01:00
Olivier Keshavjee
52af71757e Adds: better harmonization between Documents menu and context menu #229 2017-11-24 20:50:18 +01:00
Olivier Keshavjee
0f49bc7517 Adds #206: Adjusting font size (CTRL+MouseWheelUp/Down) 2017-11-23 18:53:40 +01:00
Olivier Keshavjee
c4d4f61702 Fixes highlighter colors, should work in most themes 2017-11-23 18:14:04 +01:00
Olivier Keshavjee
64994cde3a Adds: unit tests and starts refactoring models 2017-11-23 11:03:14 +01:00
Olivier Keshavjee
da62b823c7 Checkpoint: working highlighter. Optimization welcome. 2017-11-22 21:03:47 +01:00
Olivier Keshavjee
9be2edeee7 Checkpoint: adding new markdown highlighter 2017-11-22 13:43:40 +01:00
Olivier Keshavjee
550f889251 Fixes: some Documents menu calls would crash manuskript if in textEdit 2017-11-22 09:37:02 +01:00
Olivier Keshavjee
04fc6a5ae4 Checkpoint: refactoring 2017-11-18 20:53:10 +01:00
Olivier Keshavjee
cf4c1c83bf Changes every Enum to IntEnum 2017-11-15 21:05:48 +01:00
Olivier Keshavjee
9e95196cc5 Changes Outline enums to IntEnum 2017-11-15 20:58:12 +01:00
Olivier Keshavjee
bc0d6f5760 Creates base classes 2017-11-15 20:34:05 +01:00
Olivier Keshavjee
58bdf35953 Adds: transparent text editor 2017-11-14 11:23:18 +01:00
Olivier Keshavjee
bb57d3d057 Adds: merge 2017-11-10 17:21:02 +01:00
Olivier Keshavjee
a153606811 Adds: split dialog, split at cursor 2017-11-10 16:31:40 +01:00
Paweł Świątkowski
0807b14e5c Don't pass none to enchant.dict_exists 2017-11-09 10:45:05 +01:00
Paweł Świątkowski
b3ba8e813d Get default locale in more reliable way 2017-11-09 01:44:01 +01:00
Olivier Keshavjee
497d1e83a1 Corrects a stylesheet mistake that could make context menu in textEditView hard to read 2017-10-21 00:01:43 +02:00
Olivier Keshavjee
648b4b67eb Fixes more bugs in drag n drop: seg fault when creating an item after deleting an item that was open for editing, and other small stuff 2017-10-20 23:39:57 +02:00
Olivier Keshavjee
eb89d2f309 Adds optimization of fullscreen's theme thumbnail generation in settings, and corrects a small stylesheet bug 2017-10-19 12:27:11 +02:00