MobileRead Forums

MobileRead Forums (https://www.mobileread.com/forums/index.php)
-   Sigil (https://www.mobileread.com/forums/forumdisplay.php?f=203)
-   -   Spellchecker problem (https://www.mobileread.com/forums/showthread.php?t=337785)

neilrh 03-04-2021 08:07 AM

Spellchecker problem
 
1 Attachment(s)
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.

KevinH 03-04-2021 09: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.

neilrh 03-04-2021 10: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

KevinH 03-04-2021 10: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/que...e-declarations

for the standard 2 character codes.

neilrh 03-04-2021 11:06 AM

Thank you,
That works, do I have to go through every chapter and change the xml.

Turtle91 03-04-2021 11:15 AM

Quote:

Originally Posted by neilrh (Post 4099301)
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.


All times are GMT -4. The time now is 09:24 PM.

Powered by: vBulletin
Copyright ©2000 - 3.8.5, Jelsoft Enterprises Ltd.
MobileRead.com is a privately owned, operated and funded community.