11-06-2016, 09:55 PM | #1 |
Wizard
Posts: 1,085
Karma: 412718
Join Date: Jan 2009
Location: Valley Forge, PA, USA
Device: Kindle Paperwhite
|
Spell Check question
Spell check works pretty well and normally finds a correct choice of corrections
However, when I'm stepping through spell check to fix mis-scanned words (almost always with a count of 1) and when I click [Replace With] SC seems to refresh (takes a while for long books) and repositions to the first entry again. So I have to wait and the scroll to find the word after the one that was just replaced It'd be a lot faster and easier to just replace the text without refreshing automatically and position the line in the errors to the next misspelt work Is there any way or setting to do that, or is a program enhancement required? Last edited by phossler; 11-06-2016 at 10:02 PM. |
11-06-2016, 10:14 PM | #2 |
creator of calibre
Posts: 44,380
Karma: 23764838
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
You want to step through words quickly use the spell check tool for that, it does not refresh unless you click the refresh button.
|
Advert | |
|
11-07-2016, 11:22 AM | #3 |
Wizard
Posts: 1,085
Karma: 412718
Join Date: Jan 2009
Location: Valley Forge, PA, USA
Device: Kindle Paperwhite
|
(2.71, Win10, 64 bit)
I think the [Rechecking...] was because I almost always edit in the text since I either need to see the word in context, OR the misspelled word scrollbar is not updated (CAPTURE3 and CAPTURE 4) If you [Change selected word] (CAPTURE3.JPG), the high light scroll bar doesn't move/refresh to what appears to be the PREVIOUS word in the list (CAPTURE4.JPG), but the Suggestions do. I think it really should highlight the NEXT word on the misspelling list. What I did to finally reproduce it Open Editor, Run Spell Check (Show only misspelled, NOT CS sort, NOT CS search) Step 1. Double click misspelled word to see in context Step 2. Manually correct, AND correct another word while you're there (BTW, this didn't trigger the 'Edit outside of Spell Checker' message that I sometimes get when I fix a different misspelling), or just change a good word Step 3. Double click another misspelled word to see in context Step 4. Accept suggestion, then [Rechecking ....] happens I'm assuming that Recheck is because the text had been changed, but it was unexpected because it was delayed until I accepted a suggestion for another word. Recheck then positions the word list back to the top and I have to find where I was to resume I seems (to me) that it'd be smoother and faster to be able to just click down the list with the NEXT word selected and on only exit, have a "Rechecking ..." step ------------------- As an aside, none of the items below are biggies, but I thought I'd mention them 1. With a word selected ('_59when') and (CAPTURE.JPG) just typing a letter ('h') NOT using [Filter], the main word list does not scroll, but the suggestions do (CAPTURE2.JPG) which makes it hard to see what would be changed Using the [Filter] both windows scroll, so it's a minor inconsistency 2. If the Count = 1, then [Show next occurrence] is not applicable, and should be dimmed or inactivated maybe? 3. [Undo last change] rechecks entire book (or so it seems). Maybe just un-do the specific replacement? 4. If you want to replace a misspelt word with nothing by clearing the suggestion, you get an Index error -------------------------------------------------------------- calibre, version 2.71.0 ERROR: Unhandled exception: <b>IndexError</b>:list index out of range calibre 2.71 [64bit] embedded-python: True is64bit: True Windows-8-6.2.9200 Windows ('64bit', 'WindowsPE') ('Windows', '8', '6.2.9200') Python 2.7.9 Windows: ('8', '6.2.9200', '', 'Multiprocessor Free') Successfully initialized third party plugins: DeDRM (6, 5, 1) && Modify ePub (1, 3, 13) && EpubMerge (2, 0, 14) && View Manager (1, 3, 2) && Hyphenate This! (0, 0, 8) && Manage Series (1, 2, 8) && EpubSplit (2, 2, 0) && Generate Cover (1, 5, 21) && Quality Check (1, 9, 11) && Diaps Editing Toolbag (0, 3, 2) && NormComment (0, 0, 2) Traceback (most recent call last): File "site-packages\calibre\gui2\tweak_book\boss.py", line 976, in word_change_requested File "site-packages\calibre\gui2\tweak_book\spell.py", line 1135, in do_change_word File "site-packages\calibre\gui2\tweak_book\spell.py", line 761, in replace_word IndexError: list index out of range ----------------------------------- You can't select the first word in the suggested list to put it back; you have to select the second word first, and then the first word Again, there is a workaround, so it's definitely not a show stopper, but programmer oriented error messages are always a little confusing Last edited by phossler; 11-07-2016 at 11:55 AM. |
11-07-2016, 09:53 PM | #4 |
creator of calibre
Posts: 44,380
Karma: 23764838
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
That is the way it has to work. Remember that this is not a spell check in a plain text file. So when scanning for errors, calibre has to parse the html and store locations for misspelled words only between html tags and in some types of attributes, such as title and alt. That means that in order to present accurate counts and allow jump to location on double click, the book has to be rescanned if you edit outside of the spell check tool. So dont do that. Put the spell check window to one side and look at the words in context, but actually make corrections only in the tool.
|
11-07-2016, 09:57 PM | #5 |
creator of calibre
Posts: 44,380
Karma: 23764838
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
1. will be fixed
2. It's a lot of complication for very little gain. It can only be grayed out when the cursor is actually at the word. So its enabled/disabled state would need to be conditional on cursor position in the editor, not just the number of words. 3. is not worth the effort. For reasons I outlined in my previous post, undo-ing the last change without a rescan is a lot more work to implement than it would seem 4. Will be fixed -- although deleting words is not within a spell checkers design goals. |
Advert | |
|
11-07-2016, 11:33 PM | #6 |
Wizard
Posts: 1,085
Karma: 412718
Join Date: Jan 2009
Location: Valley Forge, PA, USA
Device: Kindle Paperwhite
|
I can break my bad habits (I hope) and change the way I use spell check
I 99.9% agree - no problems with 2, 3, or 4 as is. Rare occurrences or not worth the effort for minor benefit #1 was just a minor observation However, the disappearing highlight bar after entering a correction word or picking one from the suggested list really is a real chance for error and extra work In CAPTURE3.jpg (post #3) an error (agoI) is highlighted (entry N), and the suggested word was taken (ago I) so entry N is deleted from the misspelled words section and the highlight bar disappears The suggested words section now shows suggestions for what was N-1 (AGL), but AGL is not highlighted (CAPTURE4.jpg) It would more logical (to me at least) instead of going backwards, that the editor highlight what was N+1 (agonizing) and show it's suggested replacements |
11-08-2016, 12:37 AM | #7 |
creator of calibre
Posts: 44,380
Karma: 23764838
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Will also be fixed.
|
11-08-2016, 05:30 AM | #8 |
Well trained by Cats
Posts: 30,392
Karma: 58053698
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Phoss
You are not alone using a mix of the Spell check dialog and making direct corrections on the current (visible) screen. That is the nature of correcting OCR. See (another) error, Fix error The refresh only happens if you make direct changes. I agree,it would be nice if the focus could return to the approximate LINE COUNT position in the list |
11-08-2016, 09:10 AM | #9 |
Wizard
Posts: 1,085
Karma: 412718
Join Date: Jan 2009
Location: Valley Forge, PA, USA
Device: Kindle Paperwhite
|
|
11-08-2016, 09:16 AM | #10 | |
Wizard
Posts: 1,085
Karma: 412718
Join Date: Jan 2009
Location: Valley Forge, PA, USA
Device: Kindle Paperwhite
|
Quote:
Many, many times I'll start off looking at a word in the document that spell check caught, and either see another one with wiggly lines, OR a word that is in the dictionary but the wrong word that has to be corrected on the spot Some misspelled ones are obvious and I could correct by picking from the Suggestions |
|
11-08-2016, 03:15 PM | #11 | |
null operator (he/him)
Posts: 20,946
Karma: 27620688
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
Quote:
Is there any way to see the list of ignored words for a 'book'? The context menu has an option for Ignore/Unignore all selected words, but there is no way of knowing which words have been Ignored. If the word list had a column for 'Ignored', as it has for 'Mispelled', one could sort on it. Could we have a keyboard way to get from the spell checker to the current CV tab and back again,-that's the only time I have to use the mouse when spell checking. BR Last edited by BetterRed; 11-08-2016 at 03:23 PM. Reason: grammar :) |
|
11-09-2016, 05:10 AM | #12 | |
Evangelist
Posts: 487
Karma: 32554
Join Date: May 2014
Location: Canada
Device: Kobo Libra Colour
|
Quote:
|
|
11-09-2016, 04:59 PM | #13 | |
null operator (he/him)
Posts: 20,946
Karma: 27620688
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
Quote:
But I think you've helped identify a bug. With "Show only misspelled words' checked, if you Ignore one word in the list, and then uncheck 'Show only misspelled words' the 'Misspelled' column for that word will show as "Ignored' However, if you Ignore multiple words with with "Show only misspelled words' checked (as I do with Proper Names), the words do not show as "Ignored' when 'Show only misspelled words' is unchecked. Yet those words don't appear when "Show only misspelled words" is re-checked BR |
|
11-09-2016, 05:44 PM | #14 | ||
Evangelist
Posts: 487
Karma: 32554
Join Date: May 2014
Location: Canada
Device: Kobo Libra Colour
|
Quote:
Quote:
|
||
11-09-2016, 08:55 PM | #15 | |
null operator (he/him)
Posts: 20,946
Karma: 27620688
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
Quote:
My primary use of the unchecked 'Show only misspelled words' list is with filters, '-', '?', 'When' etc. I can only recall wanting to see the ignored words once, and that was a couple of days ago. I spotted an obviously misspelt proper noun in the CV panel, then several minutes later, when I was ready to 'look at it', I couldn't recall what it was, but I knew I would have ignored it. Added : I think can recall seeing the proper nouns I'd flagged as ignored showing the word 'Ignored' soon after the editor spell checker was released. I thought it was in a separate column, it must have been in the 'Misspelled' column. I'll check it again when I'm at my desktop. "Ignored", sorts after nothing and before "tick", which is probably why I missed it, I looked at top and bottom but not in the middle The mispelt proper noun was Carkozy rather than Sarkozy :lol: BR Last edited by BetterRed; 11-09-2016 at 09:28 PM. |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Spell check question | MerlinMama | Editor | 4 | 07-24-2015 03:45 AM |
Spell Check Suggestion | Tex2002ans | Sigil | 19 | 01-10-2013 08:45 PM |
Spell Check | GeckoFriend | Sigil | 5 | 06-15-2012 03:09 PM |
My problem with the spell check. | kamanza | Sigil | 9 | 06-03-2012 04:27 PM |
how to use spell check | richreads | Sigil | 2 | 01-24-2012 10:13 PM |