Hi Mike,

I looked into the code and got the following :-

 *Keycode of backslash is 220 and char code is 92 or 0x5C *

My Analyzations are as follows :-

File : *src/protocols/rdp/keymaps/ja_jp_qwerty.keymap*


> *map -shift      0x02..0x0D 0x7D ~ "1234567890-^\"*
> *map -shift      0x10..0x1B      ~ "qwertyuiop@["*
> *map -shift      0x1E..0x28 0x2B ~ "asdfghjkl;:]"**map -shift
> 0x2C..0x35 0x73 ~ "zxcvbnm,./\"*



>
>
> *map +shift      0x02..0x0A 0x0C 0x0D 0x7D ~ "!"#$%&'()=~|"*
> *map +shift      0x10..0x1B      ~ "QWERTYUIOP`{"*
> *map +shift      0x1E..0x28 0x2B ~ "ASDFGHJKL+*}"**map +shift
> 0x2C..0x35 0x73 ~ "ZXCVBNM<>?_"*


I have printed the logs as well and got to know that  *Japanese Backslash*
is mapping with *0x73 *scancode but it should map with 0x75.

which is mapped  in the following :-

*map -shift      0x02..0x0D 0x7D ~ "1234567890-^\"*


but it is not mapping with this instead with the following :-

*map -shift      0x2C..0x35 0x73 ~ "zxcvbnm,./\"*   and sending 0x73
scancode.


Correct me if I am wrong or there is something I am missing ?

Regards,
Amarjeet Singh


On Wed, Mar 7, 2018 at 1:50 AM, Amarjeet Singh <amarjee...@gmail.com> wrote:

> There are no logs in guacd.
>
> Below are the logs :-
>
>>
>> ar  6 15:18:06  guacd[31839]: Loading keymap "base"
>> Mar  6 15:18:06 guacd[31839]: Loading keymap "ja-jp-qwerty"
>> Mar  6 15:18:16 guacd[31839]: guacsnd connected.
>> Mar  6 15:18:16 guacd[31839]: guacdr connected.
>> Mar  6 15:18:16 guacd[31839]: Connected to RDPDR 1.13 as client 0x0006
>> Mar  6 15:18:16 guacd[31839]: Ignoring server capability set type=0x0001,
>> length=44
>> Mar  6 15:18:16 guacd[31839]: Ignoring server capability set type=0x0002,
>> length=8
>> Mar  6 15:18:16 guacd[31839]: Ignoring server capability set type=0x0003,
>> length=8
>> Mar  6 15:18:16 guacd[31839]: Ignoring server capability set type=0x0004,
>> length=8
>> Mar  6 15:18:16 guacd[31839]: Ignoring server capability set type=0x0005,
>> length=8
>> Mar  6 15:18:16 guacd[31839]: Sending capabilities...
>> Mar  6 15:18:16 guacd[31839]: Capabilities sent.
>> Mar  6 15:18:16 guacd[31839]: Client ID confirmed
>> Mar  6 15:18:17 guacd[31839]: Connected to RDPDR 1.13 as client 0x0004
>> Mar  6 15:18:17 guacd[31839]: Ignoring server capability set type=0x0001,
>> length=44
>> Mar  6 15:18:17 guacd[31839]: Ignoring server capability set type=0x0002,
>> length=8
>> Mar  6 15:18:17 guacd[31839]: Ignoring server capability set type=0x0003,
>> length=8
>> Mar  6 15:18:17 guacd[31839]: Ignoring server capability set type=0x0004,
>> length=8
>> Mar  6 15:18:17 guacd[31839]: Ignoring server capability set type=0x0005,
>> length=8
>> Mar  6 15:18:17 guacd[31839]: Sending capabilities...
>> Mar  6 15:18:17 guacd[31839]: Capabilities sent.
>> Mar  6 15:18:17 guacd[31839]: Client ID confirmed
>> Mar  6 15:18:17 guacd[31839]: User logged on
>> Mar  6 15:18:17 guacd[31839]: Sending printer
>> Mar  6 15:18:17 guacd[31839]: Registered device 0 (Guacamole Printer)
>> Mar  6 15:18:17 guacd[31839]: Sending filesystem
>> Mar  6 15:18:17 guacd[31839]: Registered device 1 (Guacamole Filesystem)
>> Mar  6 15:18:17 guacd[31839]: All supported devices sent.
>> Mar  6 15:18:17 guacd[31839]: Device 0 (Guacamole Printer) connected
>> successfully
>> Mar  6 15:18:17 guacd[31839]: Device 1 (Guacamole Filesystem) connected
>> successfully
>
>
> I found that if I change *server-layout to failsafe* then it is printing
> those keys but It is not printing Japanese characters ex : biyoin.
>
> Regards,
> Amarjeet Singh
>
> On Wed, Mar 7, 2018 at 1:27 AM, Mike Jumper <mike.jum...@guac-dev.org>
> wrote:
>
>> On Tue, Mar 6, 2018 at 11:49 AM, Amarjeet Singh <amarjee...@gmail.com>
>> wrote:
>>
>>>
>>> if I type following keys I can see the japanese characters in hiragana
>>>
>>>  biyoin
>>>
>>> this means I am able to pass japanese keyboard layout to Guacamole and
>>> able to type most of the keys.
>>>
>>> but when I press the \ key (as per my hardware japanese keyboard), it
>>> does not type anything. The key @ types some other character. similarly
>>> there are more keys which are either not typing anything or typing
>>> incorrecct characters
>>>
>>>
>> Can you run guacd with debug logging turned on, and see whether there are
>> log messages referring to unmapped keys / keysyms?
>>
>> I am using a Japanese hardware keyboard with 106/109 layout.
>>>
>>>
>> What matters is what keyboard layout the OS is set to use, not the
>> apparent layout of the hardware keyboard (which is purely cosmetic). The
>> difference between a hardware keyboard with layout X and a hardware
>> keyboard with layout Y is paint.
>>
>> - Mike
>>
>>
>

Reply via email to