Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Sigil

Notices

Reply
 
Thread Tools Search this Thread
Old 09-23-2015, 01:39 AM   #1
brolny
Connoisseur
brolny began at the beginning.
 
Posts: 64
Karma: 10
Join Date: Sep 2015
Location: Yerevan, Armenia
Device: none
Question Does Sigil really work with user's dictionaries?

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

Name:	2.jpg
Views:	294
Size:	242.3 KB
ID:	142224   Click image for larger version

Name:	1.jpg
Views:	283
Size:	218.6 KB
ID:	142226  
Attached Files
File Type: pdf hunspell3.pdf (8.8 KB, 165 views)
File Type: txt SpellCheck.cpp.txt (10.8 KB, 135 views)
brolny is offline   Reply With Quote
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: 7,683
Karma: 5433388
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
Advert
Old 09-23-2015, 03:50 PM   #3
gipsy
Connoisseur
gipsy began at the beginning.
 
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
gipsy is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
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


All times are GMT -4. The time now is 03:22 AM.


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