[PATCH RFC] Add language and text-direction to text protocol
Jan Arne Petersen
jpetersen at openismus.com
Fri Feb 1 00:25:43 PST 2013
On 31.01.2013 23:49, Weng Xuetian wrote:
> On Thursday 31 January 2013 20:50:00,Jan Arne Petersen :
>> 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.
> Not the per-widget case, but if you see the implementation of XIM in Qt 4.8,
> it implements per window input context. And I also take the same approach for
> fcitx, in both Qt4 and Qt5 version, and really see the benefit. Here is a use
> case.
>
> One people use instant message with two different people, one you want to use
> Chinese, and the other you want to use German. Here comes some knowledge that
> know by only user, not the application. So, it is possible to let input method
> to use Chinese in that window, and German in another window.
Well and the idea of the language API is to just solve that. An IM
client can just store the last language you used to write to some person.
--
Jan Arne Petersen
Openismus GmbH
http://www.openismus.com
More information about the wayland-devel
mailing list