Hi Darren,

I'm RE of iiim keyboard layout emulation functionality.

Are you talking about current physical keyboard detection
mechanism which is base information for layout emulation?
If so, user/system locale is not involved for that.
It's detected by using ioctl as Takao said.
So if user uses remote system and
the physical keyboard type/layout does not match with the
result, then he/she needs to set it manually with iiim-properties
'Keyboard' tab to use layout emulation functionality.
This should be enhanced in the future, but there is
no public API (yet) which can be used for detecting user's physical
keyboard type/layout as far as I know.

If you are talking about default emulation layout when you type
IM trigger key, then yes it's determined by user's locale.
The default emulation layout can be changed if you use other type
of emulation with IM switcher and check
"Set the last selection as default language" option
in iiim-properties (General tab).

Sorry, if I'm talking different thing, but I'm not sure
what 'select layout by type' means in iiim context.

Regarding C (non UTF-8 or Asian) locale, the Input Method
server (iiimd) is not running, and iiim functionality (including
keyborad layout emulation) is not activated.
It may be future enhancement, but current our priority is UTF-8
locale.

BTW, iiim does not use XKB data at runtime, but uses XKB symbol data
at iiim build time (/etc/iiim/layoutdata.xml).
The reason is that we want to support non XKB env (Xsun default).

Regards,
Naoyuki

Darren Kenny wrote:
> Hi Takao,
> 
> Takao Fujiwara - Tokyo S/W Center wrote:
>> AFAIK, IIIMF uses ioctl(2) to get the console keyboard.
>> http://cvs.opensolaris.org/source/xref/onnv/onnv-gate/usr/src/cmd/kbd/kbd.c#get_layout
>>
>> My understanding is most of the functionalities of KeyboardLayoutSwitcher 
>> are available with IIIMF at present.
> 
> Is it possible to select the keyboard layout, not by locale, but by type (e.g.
> MacBook, PC, Sun Type 5, etc) ? If so then I'm happy, but I haven't seed this
> functionality there, if it's not could it be added?
> 
> Also can it work when the C locale is the default system locale - AFAIK right
> now it's not enabled in this case, but maybe it could be....?
> 
> Thanks,
> 
> Darren
> 
> 
> _______________________________________________
> desktop-discuss mailing list
> desktop-discuss at opensolaris.org


Reply via email to