Add standard TIS-820.2538 keymap for Thai keyboard.

Change-Id: I87196163a40d7e0bd67159d4dc3d7e4298f8acfd
Reviewed-on: https://review.haiku-os.org/641
Reviewed-by: Adrien Destugues <pulkomandy@pulkomandy.tk>
This commit is contained in:
Chaiwat Suttipongsakul 2018-10-26 03:30:18 +00:00 committed by waddlesplash
parent de084e566e
commit 1c8e2d42ad
1 changed files with 252 additions and 0 deletions

View File

@ -0,0 +1,252 @@
#!/bin/keymap -s
#
# Raw key numbering for 102-key keyboard...
# [sys] [brk]
# 0x7e 0x7f
# [esc] [ f1] [ f2] [ f3] [ f4] [ f5] [ f6] [ f7] [ f8] [ f9] [f10] [f11] [f12] [prn] [scr] [pau]
# 0x01 0x02 0x03 0x04 0x05 0x06 0x07 0x08 0x09 0x0a 0x0b 0x0c 0x0d 0x0e 0x0f 0x10 K E Y P A D K E Y S
#
# [ ` ] [ 1 ] [ 2 ] [ 3 ] [ 4 ] [ 5 ] [ 6 ] [ 7 ] [ 8 ] [ 9 ] [ 0 ] [ - ] [ = ] [ bck ] [ins] [hme] [pup] [num] [ / ] [ * ] [ - ]
# 0x11 0x12 0x13 0x14 0x15 0x16 0x17 0x18 0x19 0x1a 0x1b 0x1c 0x1d 0x1e 0x1f 0x20 0x21 0x22 0x23 0x24 0x25
#
# [ tab ] [ q ] [ w ] [ e ] [ r ] [ t ] [ y ] [ u ] [ i ] [ o ] [ p ] [ [ ] [ ] ] [ \ ] [del] [end] [pdn] [ 7 ] [ 8 ] [ 9 ] [ + ]
# 0x26 0x27 0x28 0x29 0x2a 0x2b 0x2c 0x2d 0x2e 0x2f 0x30 0x31 0x32 0x33 0x34 0x35 0x36 0x37 0x38 0x39 0x3a
#
# [ caps ] [ a ] [ s ] [ d ] [ f ] [ g ] [ h ] [ j ] [ k ] [ l ] [ ; ] [ ' ] [ enter ] [ 4 ] [ 5 ] [ 6 ]
# 0x3b 0x3c 0x3d 0x3e 0x3f 0x40 0x41 0x42 0x43 0x44 0x45 0x46 0x47 0x48 0x49 0x4a
#
# [shft] [ \ ] [ z ] [ x ] [ c ] [ v ] [ b ] [ n ] [ m ] [ , ] [ . ] [ / ] [ shift ] [ up] [ 1 ] [ 2 ] [ 3 ] [ent]
# 0x4b 0x69 0x4c 0x4d 0x4e 0x4f 0x50 0x51 0x52 0x53 0x54 0x55 0x56 0x57 0x58 0x59 0x5a 0x5b
#
# [ ctrl ] [ cmd ] [ space ] [ cmd ] [ ctrl ] [lft] [dwn] [rgt] [ 0 ] [ . ]
# 0x5c 0x5d 0x5e 0x5f 0x60 0x61 0x62 0x63 0x64 0x65
#
# NOTE: Key 0x69 does not exist on US keyboards
# NOTE: On a Microsoft Natural Keyboard:
# left option = 0x66
# right option = 0x67
# menu key = 0x68
# NOTE: On an Apple Extended Keyboard:
# left option = 0x66
# right option = 0x67
# keypad '=' = 0x6a
# power key = 0x6b
Version = 3
CapsLock = 0x3b
ScrollLock = 0x0f
NumLock = 0x22
LShift = 0x4b
RShift = 0x56
LCommand = 0x5d
RCommand = 0x00
LControl = 0x5c
RControl = 0x60
LOption = 0x66
ROption = 0x5f
Menu = 0x68
#
# Lock settings
# To set NumLock, do the following:
# LockSettings = NumLock
#
# To set everything, do the following:
# LockSettings = CapsLock NumLock ScrollLock
#
LockSettings =
# Legend:
# n = Normal
# s = Shift
# c = Control
# C = CapsLock
# o = Option
# Key n s c o os C Cs Co Cos
Key 0x00 = '' '' '' '' '' '' '' '' ''
Key 0x01 = 0x1b 0x1b 0x1b 0x1b 0x1b 0x1b 0x1b 0x1b 0x1b
Key 0x02 = 0x10 0x10 0x10 0x10 0x10 0x10 0x10 0x10 0x10
Key 0x03 = 0x10 0x10 0x10 0x10 0x10 0x10 0x10 0x10 0x10
Key 0x04 = 0x10 0x10 0x10 0x10 0x10 0x10 0x10 0x10 0x10
Key 0x05 = 0x10 0x10 0x10 0x10 0x10 0x10 0x10 0x10 0x10
Key 0x06 = 0x10 0x10 0x10 0x10 0x10 0x10 0x10 0x10 0x10
Key 0x07 = 0x10 0x10 0x10 0x10 0x10 0x10 0x10 0x10 0x10
Key 0x08 = 0x10 0x10 0x10 0x10 0x10 0x10 0x10 0x10 0x10
Key 0x09 = 0x10 0x10 0x10 0x10 0x10 0x10 0x10 0x10 0x10
Key 0x0a = 0x10 0x10 0x10 0x10 0x10 0x10 0x10 0x10 0x10
Key 0x0b = 0x10 0x10 0x10 0x10 0x10 0x10 0x10 0x10 0x10
Key 0x0c = 0x10 0x10 0x10 0x10 0x10 0x10 0x10 0x10 0x10
Key 0x0d = 0x10 0x10 0x10 0x10 0x10 0x10 0x10 0x10 0x10
Key 0x0e = 0x10 0x10 0x10 0x10 0x10 0x10 0x10 0x10 0x10
Key 0x0f = 0x10 0x10 0x10 0x10 0x10 0x10 0x10 0x10 0x10
Key 0x10 = 0x10 0x10 0x10 0x10 0x10 0x10 0x10 0x10 0x10
Key 0x11 = 0xe0b98f 0xe0b99b '' 0xe0b98f 0xe0b99b 0xe0b99b 0xe0b98f 0xe0b99b 0xe0b98f
Key 0x12 = 0xe0b8bf 0xe0b985 '' 0xc2a1 0xc2b9 0xe0b985 0xe0b8bf 0xc2b9 0xc2a1
Key 0x13 = '/' 0xe0b991 0x00 0xc2b2 0xc2ba 0xe0b991 '/' 0xc2ba 0xc2b2
Key 0x14 = '-' 0xe0b992 '' 0xc2b3 0xc2aa 0xe0b992 '-' 0xc2aa 0xc2b3
Key 0x15 = 0xe0b8a0 0xe0b993 '' 0xc2a4 0xc2a3 0xe0b993 0xe0b8a0 0xc2a3 0xc2a4
Key 0x16 = 0xe0b896 0xe0b994 '' 0xe282ac '' 0xe0b994 0xe0b896 '' 0xe282ac
Key 0x17 = 0xe0b8b8 0xe0b8b9 0x1e 0xc2bc 0xe0b8b9 0xe0b8b9 0xe0b8b8 0xc2bc 0xe0b8b9
Key 0x18 = 0xe0b8b6 0xe0b98e '' 0xc2bd '' 0xe0b98e 0xe0b8b6 '' 0xc2bd
Key 0x19 = 0xe0b884 0xe0b995 '' 0xc2be '' 0xe0b995 0xe0b884 '' 0xc2be
Key 0x1a = 0xe0b895 0xe0b996 '' 0xe28098 '' 0xe0b996 0xe0b895 '' 0xe28098
Key 0x1b = 0xe0b888 0xe0b997 '' 0xe28099 0xc2b1 0xe0b997 0xe0b888 0xc2b1 0xe28099
Key 0x1c = 0xe0b882 0xe0b998 0x1f 0xc2a5 0xc2af 0xe0b998 0xe0b882 0xc2af 0xc2a5
Key 0x1d = 0xe0b88a 0xe0b999 '' 0xc397 0xc3b7 0xe0b999 0xe0b88a 0xc3b7 0xc397
Key 0x1e = 0x08 0x08 0x7f 0x08 0x08 0x08 0x08 0x08 0x08
Key 0x1f = 0x05 0x05 0x05 0x05 0x05 0x05 0x05 0x05 0x05
Key 0x20 = 0x01 0x01 0x01 0x01 0x01 0x01 0x01 0x01 0x01
Key 0x21 = 0x0b 0x0b 0x0b 0x0b 0x0b 0x0b 0x0b 0x0b 0x0b
Key 0x22 = '' '' '' '' '' '' '' '' ''
Key 0x23 = '/' '/' '/' '/' '/' '/' '/' '/' '/'
Key 0x24 = '*' '*' '*' '*' '*' '*' '*' '*' '*'
Key 0x25 = '-' '-' '-' '-' '-' '-' '-' '-' '-'
Key 0x26 = 0x09 0x09 0x09 0x09 0x09 0x09 0x09 0x09 0x09
Key 0x27 = 0xe0b986 0xe0b990 0x11 0xc3a4 0xc384 0xe0b990 0xe0b986 0xc384 0xc3a4
Key 0x28 = 0xe0b984 '"' 0x17 0xc3a5 0xc385 '"' 0xe0b984 0xc385 0xc3a5
Key 0x29 = 0xe0b8b3 0xe0b88e 0x05 0xc3a9 0xc389 0xe0b88e 0xe0b8b3 0xc389 0xc3a9
Key 0x2a = 0xe0b89e 0xe0b891 0x12 0xc2ae '' 0xe0b891 0xe0b89e '' 0xc2ae
Key 0x2b = 0xe0b8b0 0xe0b898 0x14 0xc3be 0xc39e 0xe0b898 0xe0b8b0 0xc39e 0xc3be
Key 0x2c = 0xe0b8b1 0xe0b98d 0x19 0xc3bc 0xc39c 0xe0b98d 0xe0b8b1 0xc39c 0xc3bc
Key 0x2d = 0xe0b8b5 0xe0b98a 0x15 0xc3ba 0xc39a 0xe0b98a 0xe0b8b5 0xc39a 0xc3ba
Key 0x2e = 0xe0b8a3 0xe0b893 0x09 0xc3ad 0xc38d 0xe0b893 0xe0b8a3 0xc38d 0xc3ad
Key 0x2f = 0xe0b899 0xe0b8af 0x0f 0xc3b3 0xc393 0xe0b8af 0xe0b899 0xc393 0xc3b3
Key 0x30 = 0xe0b8a2 0xe0b88d 0x10 0xc3b6 0xc396 0xe0b88d 0xe0b8a2 0xc396 0xc3b6
Key 0x31 = 0xe0b89a 0xe0b890 0x1b 0xc2ab '' 0xe0b89a 0xe0b890 '' 0xc2ab
Key 0x32 = 0xe0b8a5 ',' 0x1d 0xc2bb '' 0xe0b8a5 ',' '' 0xc2bb
Key 0x33 = 0xe0b885 0xe0b883 0x1c 0xc2ac 0xc2a6 0xe0b885 0xe0b883 0xc2a6 0xc2ac
Key 0x34 = 0x7f 0x7f 0x7f 0x7f 0x7f 0x7f 0x7f 0x7f 0x7f
Key 0x35 = 0x04 0x04 0x04 0x04 0x04 0x04 0x04 0x04 0x04
Key 0x36 = 0x0c 0x0c 0x0c 0x0c 0x0c 0x0c 0x0c 0x0c 0x0c
Key 0x37 = 0x01 '7' 0x01 0x01 '7' 0x01 '7' '7' 0x01
Key 0x38 = 0x1e '8' 0x1e 0x1e '8' 0x1e '8' '8' 0x1e
Key 0x39 = 0x0b '9' 0x0b 0x0b '9' 0x0b '9' '9' 0x0b
Key 0x3a = '+' '+' '+' '+' '+' '+' '+' '+' '+'
Key 0x3b = '' '' '' '' '' '' '' '' ''
Key 0x3c = 0xe0b89f 0xe0b8a4 0x01 0xc3a1 0xc381 0xe0b8a4 0xe0b89f 0xc381 0xc3a1
Key 0x3d = 0xe0b8ab 0xe0b886 0x13 0xc39f 0xc2a7 0xe0b886 0xe0b8ab 0xc2a7 0xc39f
Key 0x3e = 0xe0b881 0xe0b88f 0x04 0xc3b0 0xc390 0xe0b88f 0xe0b881 0xc390 0xc3b0
Key 0x3f = 0xe0b894 0xe0b982 0x06 '' '' 0xe0b982 0xe0b894 '' ''
Key 0x40 = 0xe0b980 0xe0b88c 0x07 '' '' 0xe0b88c 0xe0b980 '' ''
Key 0x41 = 0xe0b989 0xe0b987 0x08 '' '' 0xe0b987 0xe0b989 '' ''
Key 0x42 = 0xe0b988 0xe0b98b 0x0a '' '' 0xe0b98b 0xe0b988 '' ''
Key 0x43 = 0xe0b8b2 0xe0b8a9 0x0b '' '' 0xe0b8a9 0xe0b8b2 '' ''
Key 0x44 = 0xe0b8aa 0xe0b8a8 0x0c 0xc3b8 0xc398 0xe0b8a8 0xe0b8aa 0xc398 0xc3b8
Key 0x45 = 0xe0b8a7 0xe0b88b '' 0xc2b6 0xc2b0 0xe0b8a7 0xe0b88b 0xc2b0 0xc2b6
Key 0x46 = 0xe0b887 '.' '' 0xc2b4 0xc2a8 0xe0b887 '.' 0xc2b4 0xc2a8
Key 0x47 = 0x0a 0x0a 0x0a 0x0a 0x0a 0x0a 0x0a 0x0a 0x0a
Key 0x48 = 0x1c '4' 0x1c 0x1c '4' 0x1c '4' '4' 0x1c
Key 0x49 = '' '5' '' '' '5' '' '5' '5' ''
Key 0x4a = 0x1d '6' 0x1d 0x1d '6' 0x1d '6' '6' 0x1d
Key 0x4b = '' '' '' '' '' '' '' '' ''
Key 0x4c = 0xe0b89c '(' 0x1a 0xc3a6 0xc386 '(' 0xe0b89c 0xc386 0xc3a6
Key 0x4d = 0xe0b89b ')' 0x18 '' '' ')' 0xe0b89b '' ''
Key 0x4e = 0xe0b981 0xe0b889 0x03 0xc2a9 0xc2a2 0xe0b889 0xe0b981 0xc2a9 0xc2a2
Key 0x4f = 0xe0b8ad 0xe0b8ae 0x16 0xe2889a '' 0xe0b8ae 0xe0b8ad '' 0xe2889a
Key 0x50 = 0xe0b8b4 0xe0b8ba 0x02 '' '' 0xe0b8ba 0xe0b8b4 '' ''
Key 0x51 = 0xe0b8b7 0xe0b98c 0x0e 0xc3b1 0xc391 0xe0b98c 0xe0b8b7 0xc391 0xc3b1
Key 0x52 = 0xe0b897 '?' 0x0d 0xc2b5 '' '?' 0xe0b897 '' 0xc2b5
Key 0x53 = 0xe0b8a1 0xe0b892 '' 0xc3a7 0xc387 0xe0b8a1 0xe0b892 0xc387 0xc3a7
Key 0x54 = 0xe0b983 0xe0b8ac '' 0xc2b7 0xc2b8 0xe0b983 0xe0b8ac 0xc2b8 0xc2b7
Key 0x55 = 0xe0b89d 0xe0b8a6 '' '' '' 0xe0b89d 0xe0b8a6 '' ''
Key 0x56 = '' '' '' '' '' '' '' '' ''
Key 0x57 = 0x1e 0x1e 0x1e 0x1e 0x1e 0x1e 0x1e 0x1e 0x1e
Key 0x58 = 0x04 '1' 0x04 0x04 '1' 0x04 '1' '1' 0x04
Key 0x59 = 0x1f '2' 0x1f 0x1f '2' 0x1f '2' '2' 0x1f
Key 0x5a = 0x0c '3' 0x0c 0x0c '3' 0x0c '3' '3' 0x0c
Key 0x5b = 0x0a 0x0a 0x0a 0x0a 0x0a 0x0a 0x0a 0x0a 0x0a
Key 0x5c = '' '' '' '' '' '' '' '' ''
Key 0x5d = '' '' '' '' '' '' '' '' ''
Key 0x5e = ' ' ' ' 0x00 ' ' '' ' ' ' ' '' ' '
Key 0x5f = '' '' '' '' '' '' '' '' ''
Key 0x60 = '' '' '' '' '' '' '' '' ''
Key 0x61 = 0x1c 0x1c 0x1c 0x1c 0x1c 0x1c 0x1c 0x1c 0x1c
Key 0x62 = 0x1f 0x1f 0x1f 0x1f 0x1f 0x1f 0x1f 0x1f 0x1f
Key 0x63 = 0x1d 0x1d 0x1d 0x1d 0x1d 0x1d 0x1d 0x1d 0x1d
Key 0x64 = 0x05 '0' 0x05 0x05 '0' 0x05 '0' '0' 0x05
Key 0x65 = 0x7f '.' 0x7f 0x7f '.' 0x7f '.' '.' 0x7f
Key 0x66 = '' '' '' '' '' '' '' '' ''
Key 0x67 = '' '' '' '' '' '' '' '' ''
Key 0x68 = '' '' '' '' '' '' '' '' ''
Key 0x69 = '\\' '|' 0x1c 0xc2ac 0xc2a6 '\\' '|' 0xc2a6 0xc2ac
Key 0x6a = '' '' '' '' '' '' '' '' ''
Key 0x6b = '' '' '' '' '' '' '' '' ''
Key 0x6c = '' '' '' '' '' '' '' '' ''
Key 0x6d = '' '' '' '' '' '' '' '' ''
Key 0x6e = '' '' '' '' '' '' '' '' ''
Key 0x6f = '' '' '' '' '' '' '' '' ''
Key 0x70 = '' '' '' '' '' '' '' '' ''
Key 0x71 = '' '' '' '' '' '' '' '' ''
Key 0x72 = '' '' '' '' '' '' '' '' ''
Key 0x73 = '' '' '' '' '' '' '' '' ''
Key 0x74 = '' '' '' '' '' '' '' '' ''
Key 0x75 = '' '' '' '' '' '' '' '' ''
Key 0x76 = '' '' '' '' '' '' '' '' ''
Key 0x77 = '' '' '' '' '' '' '' '' ''
Key 0x78 = '' '' '' '' '' '' '' '' ''
Key 0x79 = '' '' '' '' '' '' '' '' ''
Key 0x7a = '' '' '' '' '' '' '' '' ''
Key 0x7b = '' '' '' '' '' '' '' '' ''
Key 0x7c = '' '' '' '' '' '' '' '' ''
Key 0x7d = '' '' '' '' '' '' '' '' ''
Key 0x7e = '' '' '' '' '' '' '' '' ''
Key 0x7f = '' '' '' '' '' '' '' '' ''
Acute ' ' = 0xc2b4
Acute 'A' = 0xc381
Acute 'C' = 0xc387
Acute 'E' = 0xc389
Acute 'I' = 0xc38d
Acute 'O' = 0xc393
Acute 'U' = 0xc39a
Acute 'Y' = 0xc39d
Acute 'a' = 0xc3a1
Acute 'c' = 0xc3a7
Acute 'e' = 0xc3a9
Acute 'i' = 0xc3ad
Acute 'o' = 0xc3b3
Acute 'u' = 0xc3ba
Acute 'y' = 0xc3bd
AcuteTab = Option CapsLock-Option
Grave ' ' = '`'
Grave 'A' = 0xc380
Grave 'E' = 0xc388
Grave 'I' = 0xc38c
Grave 'O' = 0xc392
Grave 'U' = 0xc399
Grave 'a' = 0xc3a0
Grave 'e' = 0xc3a8
Grave 'i' = 0xc3ac
Grave 'o' = 0xc3b2
Grave 'u' = 0xc3b9
GraveTab = Option CapsLock-Option
Circumflex ' ' = '^'
Circumflex 'A' = 0xc382
Circumflex 'E' = 0xc38a
Circumflex 'I' = 0xc38e
Circumflex 'O' = 0xc394
Circumflex 'U' = 0xc39b
Circumflex 'a' = 0xc3a2
Circumflex 'e' = 0xc3aa
Circumflex 'i' = 0xc3ae
Circumflex 'o' = 0xc3b4
Circumflex 'u' = 0xc3bb
CircumflexTab = Option-Shift
Diaeresis ' ' = 0xc2a8
Diaeresis 'A' = 0xc384
Diaeresis 'E' = 0xc38b
Diaeresis 'I' = 0xc38f
Diaeresis 'O' = 0xc396
Diaeresis 'U' = 0xc39c
Diaeresis 'Y' = 0xc5b8
Diaeresis 'a' = 0xc3a4
Diaeresis 'e' = 0xc3ab
Diaeresis 'i' = 0xc3af
Diaeresis 'o' = 0xc3b6
Diaeresis 'u' = 0xc3bc
Diaeresis 'y' = 0xc3bf
DiaeresisTab = Option-Shift
Tilde ' ' = '~'
Tilde 'A' = 0xc383
Tilde 'O' = 0xc395
Tilde 'N' = 0xc391
Tilde 'a' = 0xc3a3
Tilde 'o' = 0xc3b5
Tilde 'n' = 0xc3b1
TildeTab = Option-Shift