mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Viewer: When doing a dictionary lookup, remove soft hyphens from the word, if any are present. Fixes #1760292 [Viewer: soft hyphens in dictionary lookup](https://bugs.launchpad.net/calibre/+bug/1760292)
This commit is contained in:
parent
2d9a45db03
commit
5c824e32aa
@ -418,6 +418,7 @@ class EbookViewer(MainWindow):
|
||||
|
||||
def lookup(self, word):
|
||||
from urllib import quote
|
||||
word = word.replace(u'\u00ad', '')
|
||||
word = quote(word.encode('utf-8'))
|
||||
lang = canonicalize_lang(self.view.current_language) or get_lang() or 'en'
|
||||
try:
|
||||
|
Loading…
x
Reference in New Issue
Block a user