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

Jan Arne Petersen jpetersen at openismus.com
Thu Jan 31 11:50:00 PST 2013


On 31.01.2013 18:00, Yichao Yu 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?

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.

>> 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??)

Currently the context is state-less but even when we add state there, in
Qt, for example, there is currently just one input context per
application not one per widget.

-- 
Jan Arne Petersen
Openismus GmbH
http://www.openismus.com


More information about the wayland-devel mailing list