Greetings,
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()
[E:\glo_lib\esg\users\ravi\squiggly\main\AdobeSpellingEngine\src\com\ adobe\linguistics\spelling\core\utils\SquigglyDictionaryLoader.as:222]
at com.adobe.linguistics.spelling.core.utils::SquigglyDictionaryLoader/l oadDictionaryComplete(
[E:\glo_lib\esg\users\ravi\squiggly\main\AdobeSpellingEngine\src\com\ adobe\linguistics\spelling\core\utils\SquigglyDictionaryLoader.as:177]
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at com.adobe.linguistics.spelling.core.utils::DictionaryLoader/handleCom plete()
[E:\glo_lib\esg\users\ravi\squiggly\main\AdobeSpellingEngine\src\com\ adobe\linguistics\spelling\core\utils\DictionaryLoader.as:83]
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at flash.net::URLLoader/onComplete()
Hi Xanderhonor,
Greetings!
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. ![]()
Thanks,
Utsav
Hey Ustav,
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 ![]()
Thanks again,
Xander
Hi,
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 “Anciennes section". 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
Utsav
North America
Europe, Middle East and Africa
Asia Pacific