![]() |
#1 |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 397
Karma: 65460
Join Date: Jun 2011
Device: Kindle
|
Spellcheck is flagging punctuation; can i make it stop?
When open the spellcheck window, the dictionary is flagging unrecognized words, but also separately flagging those same words when they occur at the end of a sentence.
For example, it'll flag: Code:
poolhall Code:
poolhall. Obviously this takes the occasional false positive and then doubles it. And that is not doubling my freshness or my fun. Is there some way to make it stop? The (MUCH) older dictionary would ignore the punctuation and simply return two grouped entries for "poolhall". Will copying the old dictionary file from my pre-2.4.2 upgrade do the trick? Last edited by ElMiko; 05-07-2025 at 10:34 AM. |
![]() |
![]() |
![]() |
#2 |
A Hairy Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,318
Karma: 20171571
Join Date: Dec 2012
Location: Charleston, SC today
Device: iPhone 15/11/X/6/iPad 1,2,Air & Air Pro/Surface Pro/Kindle PW & Fire
|
This is an issue with the dictionary you are using and whether it properly supports words with periods… as discussed in this thread.
|
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 397
Karma: 65460
Join Date: Jun 2011
Device: Kindle
|
Hmmm... the hunspell dictionary folder from my older version of sigil was empty, though. Only the User defined dictionary, which appears to have been copied over in the upgrade...
So, how do I go back to that hunspell dictionary? |
![]() |
![]() |
![]() |
#4 |
A Hairy Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,318
Karma: 20171571
Join Date: Dec 2012
Location: Charleston, SC today
Device: iPhone 15/11/X/6/iPad 1,2,Air & Air Pro/Surface Pro/Kindle PW & Fire
|
I’ll let someone else address that. I haven’t worked with those aspects of Sigil much. It might be addressed in that other thread. Or search the threads here for hunspell. Or it’s probably in the Sigil user guide.
|
![]() |
![]() |
![]() |
#5 |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 397
Karma: 65460
Join Date: Jun 2011
Device: Kindle
|
Yeah, I reinstalled the old sigil, found the old dictionaries (.dic and .aff files), and copied them over to the new sigil... and no luck. Periods are still showing up.
|
![]() |
![]() |
Advert | |
|
![]() |
#6 |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,493
Karma: 5703586
Join Date: Nov 2009
Device: many
|
You need to copy the old .dic and .aff files and put them in your Sigil Preferences folder inside the hunspell_dictionaries folder and restart Sigil. Your user supplied dictionaries will always override Sigil's internal one so you should never need to fart with it again.
You should be able to install any additional hunspell dctionaries from outside sources there. Last edited by KevinH; 05-07-2025 at 11:33 AM. |
![]() |
![]() |
![]() |
#7 |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 397
Karma: 65460
Join Date: Jun 2011
Device: Kindle
|
I went into the .aff and deleted the "." from the WORDCHARS list as per this thread.
Presumably, this is the best of both worlds: keep whatever incremental sophistication has been added to the newer dictionary and take out the annoying "period" thing. Good to know wbout how Sigil engages with the preferential dictionary folders. I was trying to figure it out from the preferences screen but not getting it! We're getting there... |
![]() |
![]() |
![]() |
#8 |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,493
Karma: 5703586
Join Date: Nov 2009
Device: many
|
This is covered in the current Sigil Users guide in the chapter in Preferences.
|
![]() |
![]() |
![]() |
#9 |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 397
Karma: 65460
Join Date: Jun 2011
Device: Kindle
|
Follow-up: in the *.dic file there are various suffixes appended to some entries, e.g.
Code:
/M /MS /SM /XVNGSD etc. |
![]() |
![]() |
![]() |
#10 |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,493
Karma: 5703586
Join Date: Nov 2009
Device: many
|
Do not edit the .dic file. Edit the .aff file if you want to remove the period from acceptable wordchars.
And to answer your question, those are affix and suffix flags that specify which affixes or suffixes are valid with that root word. The .dic file lists root words with affixes that are allowed instead of every possible word. Those affix flags are of course defined in the .aff file. A dictionary made of a simple wordlist is unworkable for many languages due to compound words and compound affixes and suffixes. So to shrink its size to reasonable levels the dictionary must use some form of affix compression. I you want to add words, do it to a Sigil wordlist (you can create and select them easily in Sigil). See the Spellcheck discussion in the Sigil User guide for more info. You can use the default or make one specific for your current epub. Why on earth are you trying to edit words inside the .dic files? If you truly need to change what words are legal then use the tools in Hunspell to expand the .dic file properly into a wordlist, make changes, then re-affix compress that huge wordlist file to create what a new .dic file. Google "affix compression" Last edited by KevinH; 05-17-2025 at 11:59 AM. |
![]() |
![]() |
![]() |
#11 |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 397
Karma: 65460
Join Date: Jun 2011
Device: Kindle
|
The .dic file is overly permissive. It includes extremely obscure or archaic words (like "bouse") that are going to result in false negatives for common misspellings/transcription errors (e.g. "house"). As you said, to add words to the dictionary, the custom word list is a perfectly adequate solution. But I'm not trying to add words; I'm trying to remove them from the dictionary's whitelist.
Thanks for the tip on "affix compression"! Last edited by ElMiko; 05-17-2025 at 10:32 AM. |
![]() |
![]() |
![]() |
#12 |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,493
Karma: 5703586
Join Date: Nov 2009
Device: many
|
Just go to hunspell and grab a US dictionary that does not have these issues. Or better yet, just use the .dic and .aff file from your old Sigil version.
Search the .dic file for the word "bouse". If it exists with no affix flags on it, delete just that line and if there is a root word count as the first line of the .dic file, decrement it by 1. If there are affix flags present, then you are deleting more than just the word bouse and would need to hand expand, and hand evaluate the resulting words and decide if any are worth keeping. The .aff file can be used to identify each affix and the rules for applying them to a root word. So if there are only a few affix flags on the word "bouse", they can be expanded by hand. Last edited by KevinH; 05-17-2025 at 11:18 AM. |
![]() |
![]() |
![]() |
Thread Tools | Search this Thread |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Floating punctuation (hanging punctuation) | roger64 | KOReader | 3 | 03-04-2020 06:42 AM |
How to make Calibre *stop* sorting? | Ma'am-I-Am | Library Management | 10 | 04-29-2019 08:33 PM |
Spellcheck in book view + selected text spellcheck | unfairrobot | Sigil | 2 | 12-19-2016 04:50 PM |
Reading recommendations - make it stop! | yhamm | Kobo Reader | 23 | 11-15-2012 02:45 AM |
SPELLCHECK NATION: Does SpellCheck have a dark side? | cbaehr | Self-Promotions by Authors and Publishers | 10 | 11-07-2010 12:45 PM |