Actually, this is a limitation of LibreOffice: in principle, we should 
be able both to say that there is no error in the sentence (effectively, 
discarding hunspell results from LO), and to return spelling errors to 
be marked in red. In principle, because there is only definition of 
these features in the specification of the API, it is not implemented at 
all.

But yes, this should be configurable, maybe per language (not 
necessarily by the user). However, as we discard all results of 
tokenization, it becomes a little more tricky: we would have to map the 
string that was marked as an error by hunspell to our tokenized 
sentence. But definitely doable.

Marcin

W dniu 2012-06-10 10:08, Jaume Ortolà i Font pisze:
> OK. I know. This will make sense in Libre/OpenOffice only when we use
> LanguageTool alone and the spelling dictionary is disabled.
>
> Jaume
>
>
>
>
>
> 2012/6/10 Jaume Ortolà i Font <jaumeort...@gmail.com
> <mailto:jaumeort...@gmail.com>>
>
>     There is the possibility that some words that are included in the
>     tagger dictionary (or are tagged in the disambiguation file) are
>     marked as errors by Hunspell, because they are missing in the
>     Hunspell dictionary. In order to avoid it we could add a condition
>     in the Hunspell Java rule: mark as an error only if postag="UNKOWN".
>     I think this can be useful for every language. What do you think?
>
>     I find this problem with a few missing words in the Catalan Hunspell
>     dictionary and with Roman numerals that are tagged in the
>     disambiguation file, but are not recognised by Hunspell.
>
>     Regards,
>     Jaume Ortolà
>
>
>
>
>
>
> ------------------------------------------------------------------------------
> 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