[BRLTTY] cursor position issue about "en-us-g1.ctb" table

Dongyu lidongyu08 at gmail.com
Thu Mar 6 16:55:29 EST 2014


Do you mean the end position of a string is out of the string range?
If so, for most common situation when inputting in an textarea, the cursor
is at the end of current content. So, lou_translate will not return the
right cursor position.


On Thu, Mar 6, 2014 at 1:49 PM, Dave Mielke <dave at mielke.cc> wrote:

> [quoted lines by Dongyu on 2014/03/06 at 11:19 -0600]
>
> >I found a cursor position issue when using "en-us-g1.ctb" table.
> >
> >there are 3 examples:
> >apple
> >Apple
> >APPle
> >
> >the outbuf and outlen of them are different when using lou_translate.
> >but, if I assign cursor position equal to 5, after lou_translate, the
> >cursor position is still 5 for all of them. As I think, the cursor
> position
> >for the 3 examples should be 5, 6 and 9, right?
> >Because if assigning the cursor position as 4, after lou_translate, the
> >positions of 3 example are 4, 5 and 8.
> >
> >I found this issue only happened when the cursor position is the end of
> >input buffer. How to solve this issue, changing the table?
>
> No, it's not a table issue. The problem is that the cursor is out of range
> when
> not actually on an input character. With it being out of range, there's no
> logical place to put it. Perhaps, when this happens, the cursor should be
> disabled. Is there really a need to support the placement of an out of
> range
> cursor?
>
> --
> Dave Mielke           | 2213 Fox Crescent | The Bible is the very Word of
> God.
> Phone: 1-613-726-0014 | Ottawa, Ontario   | http://Mielke.cc/bible/
> EMail: dave at mielke.cc | Canada  K2A 1H7   | http://FamilyRadio.com/
> _______________________________________________
> This message was sent via the BRLTTY mailing list.
> To post a message, send an e-mail to: BRLTTY at mielke.cc
> For general information, go to: http://mielke.cc/mailman/listinfo/brltty
>



-- 
sent from Dongyu Li
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mielke.cc/pipermail/brltty/attachments/20140306/ecabc9ce/attachment.html>


More information about the BRLTTY mailing list