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

Bill Spitzak spitzak at gmail.com
Thu Jan 31 09:33:34 PST 2013


On 01/31/2013 08:44 AM, Jan Arne Petersen 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 direction be determined by using Unicode rules on the new text, 
with direction override characters if the default rules don't work. This 
will allow the input method to return mixed-mode text.

This might require the client to send the input method a large block of 
"context", such as the entire current paragraph, so that it can figure 
out the best insertion text so the direction indicators are right. Since 
it seems to me this context is very useful for other parts of input 
methods this may be better than the alternative of the client having to 
figure out how to merge the UTF-8 insertion into the existing text.



More information about the wayland-devel mailing list