08-17-2020, 11:01 AM | #61 |
Sigil Developer
Posts: 7,644
Karma: 5433388
Join Date: Nov 2009
Device: many
|
For those that are interested and build from source themselves, I am pushing most of this work to my own github site:
https://github.com/kevinhendricks/Sigil As of right now the following has been implemented (roughly) 1. User can now specify a secondary dictionary for inline red squiggley spellchecking and that should work. 2. Ignore word lists are now cross language and no longer added to any dictionary 3. The SpellCheckEditor dialog, should now happily spellcheck words in multiple languages as determined by the lang and xml:lang attributes on html tags. It does use a simplistic gui where language code is used as a word prefix. That will most likely be changed before any release to use a separate language column. But for now, the simple gui is being used. 4. Updating words from suggestions should now work in the SpellcheckEditor dialog as well. 5. All UserDictionaries have been temporarily disabled until we figure out how to use them in a multi language environment more effectively. Feel free to check it out and play with it and let me know of any bugs/issues/crashes that happens. Once we figure out the best way to handle UserDictionaries, I will push everything to Sigil master for testers to play with the Travis and Appveyor CI builds if they so desire. |
08-17-2020, 01:35 PM | #62 |
Sigil Developer
Posts: 7,644
Karma: 5433388
Join Date: Nov 2009
Device: many
|
An alternative idea that might be supported with very few changes is to make Sigil load any .dic_delta files automagically when it loads the dictionary for that language (that match the language region code) and have this be unrelated to UserDictionaries concept completely.
So UserDictionaries stay as they are now and are only added to the Primary Language dictionary (like now) as people may want to use these in a different way. But more official .dic_delta files (one per language) would automatically be used if they exist. It might be a good compromise approach. |
Advert | |
|
08-17-2020, 01:50 PM | #63 | |
Grand Sorcerer
Posts: 5,584
Karma: 22735033
Join Date: Dec 2010
Device: Kindle PW2
|
Quote:
|
|
08-17-2020, 02:36 PM | #64 |
Sigil Developer
Posts: 7,644
Karma: 5433388
Join Date: Nov 2009
Device: many
|
Should the .dic_delta files need to be right beside the .aff and .dic files? I assume that is how Chrome needs them?
|
08-17-2020, 02:43 PM | #65 |
Grand Sorcerer
Posts: 5,584
Karma: 22735033
Join Date: Dec 2010
Device: Kindle PW2
|
|
Advert | |
|
08-17-2020, 03:18 PM | #66 |
Sigil Developer
Posts: 7,644
Karma: 5433388
Join Date: Nov 2009
Device: many
|
So first look right beside the hunspell .aff and .dic and if not found look for something with the exact same basename with the extension .dic_delta in the Sigil Preferences folder in "/hunspell_dictionaries/";
That should work right? |
08-17-2020, 03:25 PM | #67 |
Grand Sorcerer
Posts: 5,584
Karma: 22735033
Join Date: Dec 2010
Device: Kindle PW2
|
|
08-18-2020, 11:29 AM | #68 |
Sigil Developer
Posts: 7,644
Karma: 5433388
Join Date: Nov 2009
Device: many
|
I gave preference to the Sigil Prefs version so the user can overwrite any system level .dic_delta files.
I have now re-enabled UserDictionaries and added support for .dic_delta file loading. I just now pushed all of this to master. So both travis and appveyor CI automated builds should have these features soon. Please note, these new features are in quite rough form with little to no testing and many things could be broken. All testing and feedback is welcome. Once we get the major bugs out, I can start work on improving the gui elements in the SpellcheckEditor. Thanks |
08-18-2020, 06:29 PM | #69 |
Sigil Developer
Posts: 7,644
Karma: 5433388
Join Date: Nov 2009
Device: many
|
I had some time so Sigil master and appveyor/travis should soon/now have an updated gui for the SpellcheckEditor dialog as well.
|
08-20-2020, 10:56 AM | #70 |
Sigil Developer
Posts: 7,644
Karma: 5433388
Join Date: Nov 2009
Device: many
|
Has anyone interested in multi-language spellchecking had a chance to either build their own or use one of the continuous improvement test builds created by Appveyor (Windows) or Travis (Mac)?
If so, I would love to hear feedback, bug reports, etc. If someone is willing to test and report back on these features, please let me know and I can PM you with a download link for your platform. ps. I added some screen shots from my build so people can see how things look in master now. Last edited by KevinH; 08-20-2020 at 10:19 PM. |
09-04-2020, 06:49 AM | #71 | |
Groupie
Posts: 171
Karma: 40000
Join Date: Oct 2013
Device: kindle
|
Quote:
1) How do I quickly identify those words? 2) It remains a very long and complicated process. Thank you for your answers anyway |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Search in 2 dictionary in a same time | akorx | Kobo Reader | 3 | 03-06-2020 09:30 AM |
Bug in dictionary function, wish: upgrade to using multiple dictionaries at one time | Bjarne | Calibre | 1 | 04-21-2019 05:13 AM |
So I tried to use the dictionary on my PB360 for the first time... | maxbookworm | PocketBook | 18 | 06-27-2010 08:29 PM |
Dictionary lookup time | tompe | Bookeen | 17 | 11-08-2008 12:19 PM |