mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-04-27 19:33:00 +02: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
1 changed files with 1 additions and 0 deletions
|
|
@ -418,6 +418,7 @@ def restore_state(self):
|
|||
|
||||
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…
Reference in a new issue