![]() |
#1 |
Connoisseur
![]() Posts: 64
Karma: 10
Join Date: Sep 2015
Location: Yerevan, Armenia
Device: none
|
![]()
Accoding to Hunspell to do spell checking we need:
- 1 aff file, - 1 dic file. And optionally: - 1 hyph file, - up to 20 extra dic files. But I see, that Sigil adds user's words to IGNORE LIST, and did not use add_dic() function... Becouse of this rules in aff (and hyph? - I did not find yet info about this) really unused. User's words just ignored as like as html tags. So it is not real dictionary, it is just additional ignore list with sugestion possibility, but it does not change the matter... PS From hunspell3.pdf - "Extra dictionaries The add_dic() function load an extra dictionary file. The extra dictionaries use the affix file of the allocated Hunspell object. Maximal number of the extra dictionaries is limited in the source code (20)." By the way, in open office we can select the language of the extra dictionary and additionally there is a list of words to ignore. |
![]() |
![]() |
![]() |
#2 |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,487
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 |
![]() |
![]() |
![]() |
#3 |
Connoisseur
![]() Posts: 81
Karma: 10
Join Date: Nov 2013
Device: Kobo Aura HD
|
You can use the hunspell-merge to merge 2 and more dic files.
I use it in the past to merge greek-english-french dic files and it work ![]() |
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
User dictionaries | Jean-M | Editor | 6 | 04-17-2015 11:20 AM |
sigil does not work | big-zam2 | Sigil | 17 | 04-06-2013 02:49 PM |
User dictionaries not recognized | glexey | Onyx Boox | 5 | 12-25-2012 03:16 PM |
Kindle 3G help: Can the dictionaries work with newspapers? | ag23456 | Amazon Kindle | 1 | 06-02-2012 11:22 AM |