[PATCH RFC] Add language and text-direction to text protocol

Yichao Yu yyc1992 at gmail.com
Thu Jan 31 11:46:56 PST 2013

On Thu, Jan 31, 2013 at 2:43 PM, Jan Arne Petersen
<jpetersen at openismus.com> wrote:
> 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.

If the whole point is about positioning the cursor should that just be
included in the set_micro_focus (original name) request when the
text_model get focus?

> 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
> _______________________________________________
> wayland-devel mailing list
> wayland-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/wayland-devel

More information about the wayland-devel mailing list