From d7359303fc01e863161bcc81d88cd760895d3722 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Tue, 31 Oct 2017 12:56:26 +0530 Subject: [PATCH] Edit book spell check: In the list of suggestions show the original word in italics. Fixes #1727827 [[Enhancement] spelling checker](https://bugs.launchpad.net/calibre/+bug/1727827) --- src/calibre/gui2/tweak_book/spell.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/calibre/gui2/tweak_book/spell.py b/src/calibre/gui2/tweak_book/spell.py index eee6f2c827..bf899853c8 100644 --- a/src/calibre/gui2/tweak_book/spell.py +++ b/src/calibre/gui2/tweak_book/spell.py @@ -1104,6 +1104,11 @@ class SpellCheck(Dialog): self.suggested_list.setCurrentItem(item) self.suggested_word.setText(s) word_suggested = True + if s is current_word: + f = item.font() + f.setItalic(True) + item.setFont(f) + item.setToolTip(_('The original word')) if not word_suggested: self.suggested_word.setText(current_word)