Mobileread
Spellchecker problem
#1  neilrh 03-04-2021, 07:07 AM
Hello,
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.
spellchecker.png 
Reply 

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

https://www.mobileread.com/forums/sh...d.php?t=337751

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.
Reply 

#3  neilrh 03-04-2021, 09:28 AM
Windows 10
Sigil 1.4.3
Primary and Secondary Dictionaries English GB
<dc:language>eng</dc:language>

<html xmlns="http://www.w3.org/1999/xhtml" xmlns:epub="http://www.idpf.org/2007/ops" epubprefix="z3998: http://www.daisy.org/z3998/2012/vocab/structure/#" lang="eng" xml:lang="eng">

the hunspell dictionaries installed with sigil
Reply 

#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:

https://www.w3schools.com/tags/ref_language_codes.asp

and

https://www.w3.org/International/questions/qa-html-language-declarations

for the standard 2 character codes.
Reply 

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

#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.
Reply 

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