[PATCH RFC] Add language and text-direction to text protocol
Jan Arne Petersen
jpetersen at openismus.com
Thu Jan 31 11:43:10 PST 2013
On 31.01.2013 20:20, Bill Spitzak wrote:
> On 01/31/2013 10:42 AM, Michael Hasselmann wrote:
>
>> You need to place your cursor at the left or right end of a text entry
>> (actually, right or left of the possibly already existing text, on
>> focus-in). An explicit text direction event makes it easier than having
>> to wait and parse for the input method's text
>
> It sounds like this "language direction" is for placing the cursor in
> the preedit/commit string? I'm a bit confused as to what you are talking
> about.
It is about the cursor position before you start typing (you want it at
the location where the text would be appear). When you focus-in an empty
text field in a LTR-language the cursor is at the left side, in a
RTL-language on the right side.
Usually it can be just deduced from the language but I remember the case
of entering phone numbers, which were also LTR-numbers in RTL-languages.
> I think the commit/preedit string should contain an actual cursor
> position, it can be between any two bytes in it. There is no reason to
> limit it to the start/end.
It does contain a cursor position (see cursor_position and
preedit_cursor events).
--
Jan Arne Petersen
Openismus GmbH
http://www.openismus.com
More information about the wayland-devel
mailing list