Hi,

I have now the Catalan variants working in LanguageTool (in a local
branch). There are some minor questions and one major question pending.

The major question is about the country variants in LibreOffice. Is it
really working? For example, when using British English in LibreOffice, I
don't see any match for "apartment" or "zip code" as defined here in the
grammar rules for British English [1]. Can somebody confirm this? The
country variant seems to be ignored. If this isn't to be fixed first, I
will not commit any change, as all will be useless.

The minor issues:
- The LT server ignores the default country variant when using a short
language code ('ca'). I supose this is a desired behavior. I just need to
know it. In LT commad line the default variant is indeed used.
 - In the standalone GUI I haven't been able yet to show the flag for the
language code ca-ES-valencia.

Regards,
Jaume


[1]
https://github.com/languagetool-org/languagetool/blob/master/languagetool-language-modules/en/src/main/resources/org/languagetool/rules/en/en-GB/grammar.xml



Salutacions,
Jaume Ortolà
www.riuraueditors.cat



2013/9/19 Jaume Ortolà i Font <[email protected]>

>
> 2013/9/17 Daniel Naber <[email protected]>
>
>> On 2013-09-17 10:31, Jaume Ortolà i Font wrote:
>>
>> > I will try to implement it. What would be the best way to do it? I see
>> > that the "Simple German" (de-DE-x-simple-language) is implemented in a
>> > module outside the other German variants. Will it be necessary to do
>> > it this way?
>>
>> We decided to think of simple German as independent of German, so it got
>> its own Maven project. A better way to do it is probably as for British
>> English, which has its own rule file. But actually just
>> enabling/disabling existing rules isn't done anywhere yet. What about
>> having a class ValenciaCatalan that extends Catalan.java and implements
>> new methods like:
>> List<String> getEnabledRules()
>> List<String> getDisabledRules()
>> Doesn't look that elegant though. So what about doing it like for
>> British English and moving all the specific rules to a new grammar.xml?
>>
>>
> Thanks, Daniel. Both solutions could be good, with little pros and cons.
> But before that I need to solve language tag issue. The tags in LibreOffice
> will be:
>
>  ca-ES for general (standard, default...) Catalan
> ca-ES-valencia for Valencian Catalan
>
> In LT we use mostly the country tag (ES) for identifying language
> variants, so some tweaking will be needed. I'm on it. Let me know if you
> have some idea.
>
> Jaume
>
>
>
>
>
>
------------------------------------------------------------------------------
LIMITED TIME SALE - Full Year of Microsoft Training For Just $49.99!
1,500+ hours of tutorials including VisualStudio 2012, Windows 8, SharePoint
2013, SQL 2012, MVC 4, more. BEST VALUE: New Multi-Library Power Pack includes
Mobile, Cloud, Java, and UX Design. Lowest price ever! Ends 9/20/13. 
http://pubads.g.doubleclick.net/gampad/clk?id=58041151&iu=/4140/ostg.clktrk
_______________________________________________
Languagetool-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/languagetool-devel

Reply via email to