Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Sigil

Notices

Reply
 
Thread Tools Search this Thread
Old 03-04-2021, 07:07 AM   #1
neilrh
Member
neilrh began at the beginning.
 
Posts: 10
Karma: 10
Join Date: Sep 2019
Device: none
Spellchecker problem

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.
Attached Thumbnails
Click image for larger version

Name:	spellchecker.png
Views:	213
Size:	43.7 KB
ID:	185747  
neilrh is offline   Reply With Quote
Old 03-04-2021, 08:09 AM   #2
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 8,758
Karma: 5706256
Join Date: Nov 2009
Device: many
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.

Last edited by KevinH; 03-04-2021 at 08:55 AM.
KevinH is offline   Reply With Quote
Advert
Old 03-04-2021, 09:28 AM   #3
neilrh
Member
neilrh began at the beginning.
 
Posts: 10
Karma: 10
Join Date: Sep 2019
Device: none
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

Last edited by neilrh; 03-04-2021 at 09:30 AM.
neilrh is offline   Reply With Quote
Old 03-04-2021, 09:32 AM   #4
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 8,758
Karma: 5706256
Join Date: Nov 2009
Device: many
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.

Last edited by KevinH; 03-04-2021 at 09:38 AM.
KevinH is offline   Reply With Quote
Old 03-04-2021, 10:06 AM   #5
neilrh
Member
neilrh began at the beginning.
 
Posts: 10
Karma: 10
Join Date: Sep 2019
Device: none
Thank you,
That works, do I have to go through every chapter and change the xml.
neilrh is offline   Reply With Quote
Advert
Old 03-04-2021, 10:15 AM   #6
Turtle91
A Hairy Wizard
Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.
 
Turtle91's Avatar
 
Posts: 3,347
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
Quote:
Originally Posted by neilrh View Post
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.
Turtle91 is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Cursor jumps all over the place while editing text using the spellchecker abecedarian Sigil 2 09-14-2018 05:50 AM
Spellchecker - enhancements BetterRed Sigil 11 03-01-2016 05:53 PM
Sigil 0.5.3 - spellchecker missing? Naloomi Sigil 3 08-08-2012 09:03 PM
Am I Missing Something? (spellchecker) Guns4Hire Sigil 11 01-10-2010 06:57 AM


All times are GMT -4. The time now is 05:27 AM.


MobileRead.com is a privately owned, operated and funded community.