> From: Theppitak Karoonboonyanan <[EMAIL PROTECTED]>
> * Should the client return the string in reversed order?

No.

>   The cause of my doubt is that the X11R6.4 "Xlib C Language X Interface"
>   section 13.5.7.3 "Input Method Semantics - String Conversion Callback"
>   describes the text retrieval portion in terms of "starting position"
>   and "ending position", which could also imply the order of the retrieved
>   characters in the returning buffer to be reversed in cases of backward
>   retrievals.

Sorry for the confusion due to the vague definition. I do not have any 
implication on the order of the string to be reversed in the case of 
backward retrieval when I wrote the specification.
The order of the string retrieved should always be in the logical
order in the client buffer. 

> 2. XIMStringConversionSubstitution
> 
> * How can the input method know if the client supports only Retrieval,
>   but not Substitution?
> 
>   Some applications, such as terminal emulators, may choose to support
>   only Retrieval, but not Substitution. And the input method should not
>   try to mess up the buffer in that case. Does the protocol define
>   the XIMStringConversionCallbackStruct::text to be set to NULL by the
>   client in that case?

Unfortunately, it is not assumed that the
XIMStringConversionCallbackStruct::text to be set to NULL.

In the case of terminal emulators you mentioned as an example, there 
won't be reliable case to support the String Conversion feature
by terminal emulator itself, since a terminal emulator does not
hanlde the clent buffer itself: it belongs to the apps running 
in the terminal emmulator.

If the client supports retrieval via string conversion, it is assumed
that the client has direct access the buffer thus it is also assumed
to have the operation to substitute.

--
hiura@{freestandards.org,OpenI18N.org,li18nux.org,unicode.org,sun.com} 
Chair, OpenI18N/Open Internationalization Initiative, http://www.OpenI18N.org
Architect/Sr. Staff Engineer, Sun Microsystems, Inc, USA   eFAX: 509-693-8356


_______________________________________________
I18n mailing list
[EMAIL PROTECTED]
http://XFree86.Org/mailman/listinfo/i18n

Reply via email to