[Padre-dev] call to translators: please translate spellcheck plugin

Jerome Quelin jquelin at gmail.com
Thu Apr 30 08:20:22 PDT 2009


On 09/04/30 00:24 +0200, Cezary Morga wrote:
> Jerome Quelin wrote:
> > but it seems to be wx stc related - check attached script: stc should
> > select the first 3 chars, but when there's some utf8 it only selects the
> > first 2 of them...
> 
> The problem here is that STC treats Unicode characters as two separate 
> characters when it comes to selecting, while Perl himself have no such 
> problem. So I commited in r4239 and r4240 a dirty hack to work around it, that 
> is to extend the selection range by one point for each UTF-8 character 
> (assumming all characters for which ord returns a value bigger than 127 are 
> UTF characters).
> 
> As far as I could tell with Polish spelling it seems to work properly. Could 
> you please see if it works for you too?

nope. it's a bit better, but still fails. in fact, maybe the easiest
would be to use length(Encoding::encode_utf8($word))

jérôme 
-- 
jquelin at gmail.com


More information about the Padre-dev mailing list