View Single Post
Old 09-23-2015, 01:02 PM   #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,491
Karma: 5703586
Join Date: Nov 2009
Device: many
Hi,
User word lists are not dictionaries. So if you look further down in the SpellCheck.cpp code you will see that user "dictionary" word lists are added to the current dictionary ie. hunspell->add().

If you want to have multiple different dictionaries open at the same time for the same document, Sigil does not currently support that. Trying to trick Sigil into doing it with a large user wordlist to represent a second language will not do the right thing either.

I will look into supporting spellcheck across multiple dictionaries and languages once more epub3 support has been added. If you need this right now for Sigil 0.8.900, then a plugin is the only approach using multiple hunspell python objects (one for each real dictionary you want to use).

Kevin
KevinH is offline   Reply With Quote