I am working on a Flex project that needs to be able to load different locales depending on a param that is passed in. I load up dictionaries files based on what is passed in along with an associated rule file. If the param is en_US I load up a dictionary file named en_US.dic and a rule file named en_US.aff. All works just fine until we load up a dic and aff for French. I downloaded a French dic and aff from http://www.dicollecte.org/download.php?prj=fr (I've tried them all) and have found that it runs into an error when the dictionary is loaded. The error that is presented when it runs into this error doesnt seem to detail much at all. So The main problem here is kind of two fold:
1. Errors would be more helpful if they detailed a bit more about the problem that was hit.
2. Something, either a line or a character or maybe a word, is off.
Not entirely certain which it is as I can't get at the source. Any help or insight would be greatly appreciated in this.
Added the stack trace that I got when I tried to load one of the dictionaries.
Error: null cannot be parsed to a squiggly dictionary
at com.adobe.linguistics.spelling.core.utils::SquigglyDictionaryLoader/d ecodeFlags()
at com.adobe.linguistics.spelling.core.utils::SquigglyDictionaryLoader/l oadDictionaryComplete(
at com.adobe.linguistics.spelling.core.utils::DictionaryLoader/handleCom plete()
I am happy to know that you are using squiggly in your application.
Squiggly 0.5 does not provide support for fr_FR locale. We only support en_US, it_IT, pt_PT, es_ES. We checked the dictionaries you specified. A little technical detail is that few hunspell rules(AF, FLAG long) which are present in the aff files are not handled by squiggly. We do not recommend you to use squiggly 0.5 for fr_FR.
We have fr_FR support in one of our top todo list. You may expect a good news soon.
Well that puts a damper on things. Thanks for letting us know about that. I can let you know though that en_NZ, en_GB also work from what we have been working with. So you can add those to the list if you wish.
If anyone else comes across this and wonders "Where the heck do you get such files anyway?" Well a good place to go is http://wiki.services.openoffice.org/wiki/Dictionaries which is where we get ours.
Hope to hear some good news soon Ustav
Sorry for the delay in reply.
Could you please let me know which fr_FR dictionary are you using?
Squiggly 0.6 when released was compatible with then latest version, i.e. fr_FR moderne version 4.0( hunspell-fr-moderne-v4.0). Could you try downloading the old version and let me know if this solves the problem. One such location to get older versions is: http://www.dicollecte.org/download.php?prj=fr in “". Try downloading version 4.0. Here I would like to requote what we have mentioned in the release notes:
"Each Hunspell language dictionary is governed by its own open source license. As such, we advise you to read the licensing terms carefully before deciding to bundle any dictionary with your application."
Please let me know if this solves your problem.
Thanks, using the 4.0.0 version worked. The current released dictionaries were up to v 4.4.1 and there should be info included in the release notes.
Any word on future releases of Squiggly and/or German support?
Europe, Middle East and Africa