Hi,

2009/4/28 Olivier R. <dico.sav...@free.fr>:
> Hi,
>
> I wrote some rules for the French language, and tried the extension.
> This tool looks promising.

I'm very glad of it.

>
> Minor issues:
>
> *1*
> In the documentation Convert.py should be replaced by Compile.py

Indeed. Thanks.

>
>
> *2*
> The script Locales.py does not seem to work.
>
> The command:
>
>  Locales.py ..\data\*.dat >lightproof_lang.py
>
> generates only:
>
>  locales = {'': ['', '', '']}
>
> under Vista with Python 2.6.1
>
> So I edited the file lightproof_lang.py manually to make the extension work.

It seems, Vista command line doesn't know parameter substitutions.
I will add a flag to the program for the scan the folder. A workaround:

python pythonpath\Locales.py fr_FR.dat en_US.dat >pythonpath\lightproof_lang.py

>
>
> *3*
> The website launchpad.net/lightproof has disappeared?

Unfortunately, it was inactivated for a few days by the site maintainers.

>
>
>
>> Please, report it, if you have any special language problem with the
>> grammar checker (morphological and syntactic rules aren't supported
>> yet).
>
> Will this extension plan to use the grammatical field of Hunspell
> dictionaries ou will it use another specific dictionary?

OOo 3.1 will support the XML query interface of Hunspell 1.2.8 for
stemming and morphological analysis/generation (see man 3 hunspell). I
plan to add these features to Lightproof with the following syntax:

v OpenOffice(-\w+)?\b   # "OpenOffice" or affixed forms of OpenOffice
in Hungarian
w OpenOffice.org        # correct stem
{v} -> {w.gen(v.morph)}   # suggest "OpenOffice.org" with the correct
affixes instead of "OpenOffice"

# v.morph is the result of the morphological analysis of the the
matched "OpenOffice" word form
# w.gen([category]) will suffix OpenOffice.org(=w) based on the category code

TEST: OpenOffice-szal -> OpenOffice.org-gal  # "with OpenOffice" and
"with OpenOffice.org" in Hungarian

But it is possible to add optionally the fsa package used by
LanguageTool or other Python/C libraries and functions or to fork the
project for a language with special requirements/libraries.

Thanks and best regards,
László

>
>
> Best regards,
> Olivier R.
>
> --
>
> == N'écrivez pas à cette adresse. Réservée aux listes de discussion. ==
> ** Do not reply at this address. Mailing-list only. **
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscr...@lingucomponent.openoffice.org
> For additional commands, e-mail: dev-h...@lingucomponent.openoffice.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@lingucomponent.openoffice.org
For additional commands, e-mail: dev-h...@lingucomponent.openoffice.org

Reply via email to