Web lists-archives.com

Re: hint for vertical writing mode to input method

Hi, Matthias.  Thank you for reply.

This hint will be used on candidate window layout by IME.

By default, each word item into candidate window is top to down. [*1]

Although I create screenshots [*2] for Windows and OSX, both OS's IMEs
can change the layout (item is right-to-left or left-to-right) of
candidate window by setting vertical layout value to IME.

Although we (Mozilla) want to implement this behavior for GTK [*3],
GTK has no API or property for this unfortunately.  Also, we already
have implemented on Windows and OSX for this.

If GTK adds a way for this, I will negotiate to IME developers (ibus,
fcitx and etc)  to implement vertical layout support (changing
candidate window to vertical layout mode etc) and support it.

[*1] https://dvcs.w3.org/hg/ime-api/raw-file/default/images/image05.png
[*2] http://wontfix.blogspot.com/2015/04/vertical-layout-on-ime-sample.html
[*3] https://bugzilla.mozilla.org/show_bug.cgi?id=1130937

-- Makoto

On Mon, Apr 6, 2015 at 11:44 AM, Matthias Clasen
<matthias.clasen@xxxxxxxxx> wrote:
> On Tue, Mar 31, 2015 at 3:30 AM, Makoto Kato <m_kato@xxxxxxxxxxxxxxxx> wrote:
>> Hi, GTK team.
>> Mozilla is implementing vertical-writing spec [*1] to Gecko rendering
>> engine.  But GTK has no API to add hint of vertical writing mode to
>> input method.
>> Other OS already has the following method / attribute for this case.
>> OSX / Cocoa
>> drawsVerticallyForCharacterAtIndex method
>> https://developer.apple.com/library/mac/documentation/Cocoa/Reference/NSTextInputClient_Protocol/index.html#//apple_ref/occ/intfm/NSTextInputClient/drawsVerticallyForCharacterAtIndex:
>> Windows / TSF
>> TSATTRID_Text_VerticalWriting attirubte
>> https://msdn.microsoft.com/en-us/library/windows/desktop/ms629018%28v=vs.85%29.aspx
>> Do you have a plan to add an attribute or API of vertical writing hint
>> to GTK?   If nothing, could you add this to any property such as adding
> There's no 'plan' for this. Adding such a hint to the enum would be
> pretty easy, of course. Note that these hints are currently not used
> for anything in practice. No application (that I know of) sets them,
> and no input method (that I know of) looks at them. How would your new
> vertical writing hint be set or used ?
gtk-devel-list mailing list