Spellchecker problem
#1  neilrh 03-04-2021, 07:07 AM
I have a problem with the Sigil spellchecker. The misspelt words are underlined in code view but when I click the spellcheck box it shows no errors (see attachment). This happens on all epubs.

#2  KevinH 03-04-2021, 08:09 AM
See this recent thread ...

which has many things to check and a nice summary by Tex2000ans about spellchecking.

So what platform?
What version of Sigil?
What Primary and Secondary Dictionaries have you selected in Sigil Preferences?
What have you set for dc:language in the metadata of the OPF?
What if any xml:lang and lang attributes are you using in your xhtml code?
Which dictionaries have you actually installed and how are they named?
If you built Sigil itself on Linux make sure you have followed the docs closely and know where system hunspell dictionaries are located?
All of this may matter.

#3  neilrh 03-04-2021, 09:28 AM
Windows 10
Sigil 1.4.3
Primary and Secondary Dictionaries English GB

<html xmlns="" xmlns:epub="" epubprefix="z3998:" lang="eng" xml:lang="eng">

the hunspell dictionaries installed with sigil

#4  KevinH 03-04-2021, 09:32 AM
There is no "eng" language code. Change your xml:lang and lang attributes to be either "en" or to be more specific "en-GB"

Do the same for dc:language.

See for example:


for the standard 2 character codes.

#5  neilrh 03-04-2021, 10:06 AM
Thank you,
That works, do I have to go through every chapter and change the xml.

#6  Turtle91 03-04-2021, 10:15 AM
Quote neilrh
Thank you,
That works, do I have to go through every chapter and change the xml.

If you have that in each header, or if you have specific <span>s declaring a different language for a given word/phrase, then, yes, you would need to change each of them to use the correct language code. However, that would be super easy using a find/replace:

find: lang="eng" xml:lang="eng"
replace: lang="en-GB" xml:lang="en-GB"

...and make sure you have All HTML files selected.

Today's Posts | Search this Thread | Login | Register