mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Edit Book: Spell Check: Fix words surrounded by narrow non-breaking spaces being incorrectly detected as mis-spelled
This commit is contained in:
parent
511d3c6ba4
commit
1bc5389576
@ -94,7 +94,7 @@ def add_words(text, node, words, file_name, locale, node_item):
|
||||
p = patterns()
|
||||
is_fr = locale.langcode == 'fra'
|
||||
for word in candidates:
|
||||
sword = p.sanitize_invisible_pat.sub('', word)
|
||||
sword = p.sanitize_invisible_pat.sub('', word).strip()
|
||||
elided_prefix = ''
|
||||
if is_fr:
|
||||
m = p.fr_elision_pat.match(sword)
|
||||
|
Loading…
x
Reference in New Issue
Block a user