Mobileread
Double language spellcheck not working
#1  1v4n0 01-16-2021, 01:14 PM
As per the title, the spellcheck list does not work with two dictionaries at a time. The words in the book are not highlighted, but when I launch the word list they are listed as not recognized.
Version 1.4.3
Here's a checklist that I was asked to provide.

1. Epub document language specified in content.opf: Italian
2. Sigil default document metadata language: English
3. Primary and Secondary dictionaries: Italian and German; same issues with Italian and English (but not with German and English).
4. Examples of words that aren't flagged as misspelled, but should be and vice versa: any kind of word. It just doesn't work.

Thank you in advance.
Reply 

#2  BeckyEbook 01-16-2021, 02:21 PM
Hmmm…

Don't you have a language declared in an HTML or BODY tag?

Check my test file.
italiano.png 
[epub] italiano.epub (1.7 KB, 21 views)
Reply 

#3  Doitsu 01-16-2021, 03:44 PM
I just tested Becky's book, and it works fine with the latest Italian LibreOffice Hunspell dictionary.

Here's what I see when I select English as the primary dictionary and Italian as the secondary dictionary.

Code View:
image »

Spellcheck dialog box:
image »

Maybe there's a problem with the format of your current Italian dictionary.

Please try the following:
[zip] it_IT.zip (313.8 KB, 22 views)
Reply 

#4  BeckyEbook 01-16-2021, 05:02 PM
Additional idea: if the misspelled words are not highlighted, maybe you don't have the highlight option enabled?
highlight_misspelled_words.png 
Reply 

#5  1v4n0 01-17-2021, 07:00 AM
Quote Doitsu
I just tested Becky's book, and it works fine with the latest Italian LibreOffice Hunspell dictionary.

Here's what I see when I select English as the primary dictionary and Italian as the secondary dictionary.
Wait, do I need to declare the language each time it changes, as BeckyEbook did with <span xml:lang="en">? Is this what the double dictionary spellcheck means?
I thought I could declare one language for the whole book, in the "content.opf", and then Sigil will recognize the words that are in the secondary language and not mark them as errors.
My problem is mainly with books that feature many interspersed words in another language. Marking them all is a huge pointless chore.

Thank you all as always.
Reply 

#6  BeckyEbook 01-17-2021, 07:41 AM
It is not necessary. Check, for example, such a code:

Code
<p>It is not neccesary.</p>
Suggestions for the misspelled word will come from both dictionaries.
it-en.png 
Reply 

#7  1v4n0 01-17-2021, 08:21 AM
Still doesn't work. See attachment.
Untitled.jpg 
[epub] Ita-Ger.epub (1.7 KB, 19 views)
Reply 

#8  Doitsu 01-17-2021, 08:51 AM
Quote 1v4n0
Still doesn't work. See attachment.
I'm getting the same results as you.

BTW, have you replaced your Italian dictionary with the one that I've attached to post #3?

With German as the primary dictionary and Italian as the secondary dictionary, I'm getting this:

image »

With Italian as the primary dictionary and German as the secondary dictionary, I'm getting this:

image »

@KevinH shouldn't the Spellcheck dialog box display "gennau" as a misspelled German word, if German is selected as the primary dictionary?
Reply 

#9  1v4n0 01-17-2021, 09:07 AM
I'm checking the words from the spellcheck list, not from the book.
Yes, I tried that Italian dictionary and it's worse. It doesn't recognize some very common words, basic ones like "cioè". No idea why.
Reply 

#10  BeckyEbook 01-17-2021, 11:50 AM
IMHO, spell checking works fine, although there were problems with it in previous versions.

As far as I understand the idea in Sigil: the primary and secondary dictionaries DO NOT have any meaning in the Spellcheck window, they only apply when underlining incorrect words in the code view.

1. I set the main language in the OPF file in the language tag.
2. The dictionary in the Spellcheck window will use that language, unless specific words, sentences, paragraphs, or even entire xhtml files point to a different language.
And this way – IMVHO – is OK.

Perhaps I misunderstand it, but this method works in practice. Maybe @KevinH will comment on this thread and then we will all understand.
Reply 

  Next »  Last »  (1/2)
Today's Posts | Search this Thread | Login | Register