W dniu 2012-05-18 17:54, Ruud Baars pisze:
> Okay, that is the kind of thing I wanted to have long ago. So finally,
> it is there.
>
> Would you please check if the option of -r (from the command line) is
> supported?
> This was introduces to be able to warn for possible typo's...
There is no command-line for hunspell - it is a library. I don't see a 
way to set any options in our current interface but they might be 
supported by hunspell library - just no code for that in Java.

>
> It is not on by default, but very useful for Dutch, since the Dutch
> dictionary uses this option. (it was introduced for Dutch in a Dutch
> language Union sponsored project).

OK, that means you'd need a special class for Dutch.

Marcin

>
> Ruud
>
> On 18-05-12 17:27, Marcin Miłkowski wrote:
>> W dniu 2012-05-18 17:01, Ruud Baars pisze:
>>> Marcin,
>>>
>>> I must have missed some info. What is the Hunspell integration meant to
>>> do exactly?
>> Find spelling mistakes. We have a Java rule that uses Hunspell for this
>> purpose now.
>>
>> Marcin
>>
>>> Ruud
>>>
>>>
>>> On 18-05-12 15:10, Marcin Miłkowski wrote:
>>>> Hi all,
>>>>
>>>> I just added preliminary hunspell support to LanguageTool. This is not
>>>> yet ready for production, as essential parts are missing. But the
>>>> infrastructure and some files are already there.
>>>>
>>>> Now, I didn't add all spelling dictionaries to the source - there's only
>>>> one for Polish right now as I needed at least one for testing. The
>>>> dictionaries should go to resources directory.
>>>>
>>>> There are also some things we need to decide:
>>>>
>>>> - Should we add the country variant support right away? Right now the
>>>> code in HunspellRule simply takes the first country variant declared in
>>>> getCountryVariants(). The dictionary files needs to be called
>>>> <short_lang_code>_<country_variant>     - otherwise, they won't be found. 
>>>> We
>>>> can make it more flexible, I only hacked the initial code to make it
>>>> running and to see the performance impact.
>>>>
>>>> - hunspell does not strip punctuation by itself, I had to add some code
>>>> for single-character punctuation marks. If there is a longer punctuation
>>>> mark that should be ignored, let me know.
>>>>
>>>> - I didn't split the build yet at all. The ant file is left without any
>>>> changes, but we should probably split into two distribution files, as we
>>>> don't want to bundle all languages with the LibreOffice extension. Also,
>>>> the JNLP version won't work with hunspell right now just because of this.
>>>>
>>>> - The dictionary loading methods in hunspell library were not really
>>>> URL- or stream-friendly, so I only hacked them to make them work. Sorry,
>>>> it may all blow up. Probably they should be changed but the hunspell
>>>> library expects a filepath anyway, so we need to deal with absolute
>>>> filepaths.
>>>>
>>>> - I didn't add any new messages, you will see "Possible typo"
>>>> translations everywhere. Something different should be added to the
>>>> messages file.
>>>>
>>>> - To add hunspell support, you simply need to mention HunspellRule.class
>>>> in your language class.
>>>>
>>>> Regards,
>>>> Marcin
>>>>
>>>>
>>>> ------------------------------------------------------------------------------
>>>> Live Security Virtual Conference
>>>> Exclusive live event will cover all the ways today's security and
>>>> threat landscape has changed and how IT managers can respond. Discussions
>>>> will include endpoint security, mobile security and the latest in malware
>>>> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
>>>> _______________________________________________
>>>> Languagetool-devel mailing list
>>>> Languagetool-devel@lists.sourceforge.net
>>>> https://lists.sourceforge.net/lists/listinfo/languagetool-devel
>>>>
>>> ------------------------------------------------------------------------------
>>> Live Security Virtual Conference
>>> Exclusive live event will cover all the ways today's security and
>>> threat landscape has changed and how IT managers can respond. Discussions
>>> will include endpoint security, mobile security and the latest in malware
>>> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
>>> _______________________________________________
>>> Languagetool-devel mailing list
>>> Languagetool-devel@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/languagetool-devel
>> ------------------------------------------------------------------------------
>> Live Security Virtual Conference
>> Exclusive live event will cover all the ways today's security and
>> threat landscape has changed and how IT managers can respond. Discussions
>> will include endpoint security, mobile security and the latest in malware
>> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
>> _______________________________________________
>> Languagetool-devel mailing list
>> Languagetool-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/languagetool-devel
>
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> _______________________________________________
> Languagetool-devel mailing list
> Languagetool-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/languagetool-devel


------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Languagetool-devel mailing list
Languagetool-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/languagetool-devel

Reply via email to