[libvoikko] Mozvoikko needs to be signed and reviewed at addons.mozilla.org

Andris Pavenis andris.pavenis at iki.fi
Thu Aug 20 19:13:17 EEST 2015

On 08/20/2015 09:28 AM, Sjur Moshagen wrote:
> 19. aug. 2015 kl. 18:31 skrev Andris Pavenis <andris.pavenis at iki.fi>:
>> On 08/19/2015 09:57 AM, Sjur Moshagen wrote:
>>> * what is the best way to manage (AMO) support for many languages using the same Mozvoikko codebase?
>> One of ways could be add additional language data files in a separate extension which registers them for core Mozvoikko extension to use (similarly like Mozvoikko registers itself as an external spellchecker). Mozvoikko could then look-up entries in some category like mozvoikko-language defined by language data extensions and add these languages to supported ones.
>> Language data extension could have something like
>> category mozvoikko-language @foo.bar;1 foo
>> om chrome.manifest. Language data extension should not need anything executable at all.
>> There could problems with this as it's against recommendations
>> https://developer.mozilla.org/en-US/Add-ons/Extension_etiquette
>> I think however that this case could be exception when  such dependencies could be acceptable. One may need however convince somebody in AMO (hopefully not for any new update)
> This sounds like a good idea to me to avoid code duplication, too much administration for AMO extensions and flexibility for the end users, at least as an addition to the possibility to download and install speller dictionaries manually.
> With this addition, speller language support initialisation would be something like this:
> * check for extensions of category mozvoikko-language, add all languages found
> * ask libvoikko for additional languages in the regular locations, skipping languages already provided by an extension
> It does require that support for a system like this is added to Mozvoikko. I do not have the competence to do that - do any of the mozvoikko devepers have the time and possibility to look into this?

Getting category entries is simple:

(not needed for Mozvoikko2 up to now as I did similar lookup long time ago when I added external 
spellchecker support to Mozilla programs and I did that in C++. Mozvoikko2 simply defines category 
entry in chrome.manifest for mozilla::mozSpellChecker to find)

One can read key/value pairs for requested category. Keys could be language codes. Values - some ID 
that would allow to find and access language data extensions. I cannot say immediately how. I have 
not done anything with JavaScript for several years now.


More information about the Libvoikko mailing list