> Umm Sorry. I do. I'll look at how the AbiWord code
> base solves this old
> problem.
>
> Right now the dictionaries have "en/" hardcoded into
> their search paths.
This can be done pretty easily by getting the "lang"
value. So what we do is:
1) Assume that a sentence we grammar check has a
consistent lang value. Grab the first word's lang
attribute from the PP_AttrProp.
2) Construct a UT_LocaleInfo class from that value.
We'll need to ABI_EXPORT this class so that Win32 DLLs
can use it too.
3) Call UT_LocaleInfo.getLanguage() to get the ISO 639
language code.
At that point, we're done.
I'll cook up a cheap constructor call for Link that
takes a ISO 639 string and returns a grammar checker
instance for it, rather than hardcoding this into
AbiWord itself.
Best,
Dom
__________________________________
Do you Yahoo!?
Yahoo! Mail - Find what you need with new enhanced search.
http://info.mail.yahoo.com/mail_250
Received on Wed Feb 16 04:40:12 2005
This archive was generated by hypermail 2.1.8 : Wed Feb 16 2005 - 04:40:14 CET