Merge hotfixes from 1.5.2 (#934)
* Backport fix for issue #929 * Make the spell check wrapper more robust, solves #933 * Bump version and update changelog and release notes
This commit is contained in:
committed by
GitHub
parent
00eea24e3f
commit
2f75d88694
@@ -2,6 +2,18 @@
|
||||
<html>
|
||||
<body>
|
||||
|
||||
<h2>Release Notes for 1.5.2</h2>
|
||||
<p><i>Released on 12 December 2021</i></p>
|
||||
|
||||
<p>This is a bugfix release that fixes two issues. The first is an issue with an error in the HTML
|
||||
output if a paragraph has alignment or indentation tags while at the same time containing
|
||||
emphasised text. The second is an issue where the application cannot load a project with spell
|
||||
checking enabled if there is something wrong with the spell check package.</p>
|
||||
|
||||
<p><i>See also the <a href="https://github.com/vkbo/novelWriter/releases">Releases</a> page.</i></p>
|
||||
|
||||
<hr/>
|
||||
|
||||
<h2>Release Notes for 1.5.1</h2>
|
||||
<p><i>Released on 23 October 2021</i></p>
|
||||
|
||||
@@ -10,8 +22,6 @@ missing its translated labels for non-English languages, and a fix concerning sw
|
||||
the project tree when the Novel tab is visible. If the Novel tab is selected, the focus shift now
|
||||
correctly gives focus to the Novel tree.</p>
|
||||
|
||||
<p><i>See also the <a href="https://github.com/vkbo/novelWriter/releases">Releases</a> page.</i></p>
|
||||
|
||||
<hr/>
|
||||
|
||||
<h2>Release Notes for 1.5</h2>
|
||||
|
||||
@@ -89,17 +89,26 @@ class NWSpellEnchant():
|
||||
def checkWord(self, theWord):
|
||||
"""Wrapper function for pyenchant.
|
||||
"""
|
||||
return self._theDict.check(theWord)
|
||||
try:
|
||||
return self._theDict.check(theWord)
|
||||
except Exception:
|
||||
return True
|
||||
|
||||
def suggestWords(self, theWord):
|
||||
"""Wrapper function for pyenchant.
|
||||
"""
|
||||
return self._theDict.suggest(theWord)
|
||||
try:
|
||||
return self._theDict.suggest(theWord)
|
||||
except Exception:
|
||||
return []
|
||||
|
||||
def addWord(self, newWord):
|
||||
"""Add a word to the project dictionary.
|
||||
"""
|
||||
self._theDict.add_to_session(newWord)
|
||||
try:
|
||||
self._theDict.add_to_session(newWord)
|
||||
except Exception:
|
||||
return False
|
||||
|
||||
if self._projectDict is not None and newWord not in self._projDict:
|
||||
newWord = newWord.strip()
|
||||
|
||||
Reference in New Issue
Block a user