I'm in the process of testing a spellchecker for Burmese. One of the issues I've come across is that multidigit numbers like ၁၂ (12) show up with a red underline underneath.

I've looked at the spellchecking code and it seems that spelling errors are discarded if BOOL HasDigits( const String &rText ) in linguistic/source/misc.cxx returns true. However, HasDigits only checks for the digits 0-9 and not digits in other scripts. Would it not be better to make this method return true for all characters with the Unicode property Nd?

When the method is used in spellchecking it is in the context:
(!rHelper.IsSpellWithDigits() && HasDigits( rWord ))
(see lingucomponent/source/spellcheck/spell/sspellimp.cxx for example)
so I assume that rHelper.IsSpellWithDigits() will correctly return true for any dictionary that wants to check words with digits.

I've tried a patch that should fix this generically and tested it for Burmese. Should I submit this as an issue or is there a reason that HasDigits doesn't check for digits in other scripts?

Regards,
Keith


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to