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

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


On Thu, Jan 31, 2013 at 12:00 PM, Yichao Yu <yyc1992 at gmail.com> wrote:
> On Thu, Jan 31, 2013 at 11:44 AM, Jan Arne Petersen
> <jpetersen at openismus.com> wrote:
>> From: Jan Arne Petersen <jpetersen at openismus.com>
>>
>> The proposed API allows to send the language and text-direction for
>> inserted text from an input-method to an application.
>
> Can't really see why text-direction (of the input window) is useful,
> shouldn't that be a property of the language?
>
>>
>> It also allows an application to specify a preferred language for
>> the input. This could be used by an application to set a language
>> by context or to request the last used language after an input
>> entry regains focus.
>
> I believe the input method have better knowledge of the language in
> use and being able to remember that on a per context state? (or do you
> mean the context will be destroyed when the text_model lost focus??)

After having a closer look at the protocol again, I cannot find a way
to re-activate a previously deactivated input_method_context?? Is that
true or am I missing anything?? If the input method cannot save
arbitrary per-context state, it will literally break every single
Chinese input method for almost everyone!

>
>>
>> Comments welcome.
>>
>> Jan Arne Petersen (1):
>>   text: Add language and text-direction to protocol
>>
>>  clients/editor.c           | 20 ++++++++++++++++-
>>  clients/keyboard.c         | 54 ++++++++++++++++++++++++++--------------------
>>  clients/weston-simple-im.c | 54 ++++++++++++++++++++++++++--------------------
>>  protocol/input-method.xml  | 11 ++++++++++
>>  protocol/text.xml          | 28 ++++++++++++++++++++++++
>>  src/text-backend.c         | 46 +++++++++++++++++++++++++++++++++++++--
>>  6 files changed, 164 insertions(+), 49 deletions(-)
>>
>> --
>> 1.8.1
>>
>> _______________________________________________
>> 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