# Russian keyboard layout for Type4/5 Sun keyboards
# Written by Alexander V. Lukyanov <lav@yars.free.net>
# Version 1.1
#
# Uses KOI8-R coding without 'jo'
#
keymaps 0-6,8,10,12,14
keycode   1 =
keycode   2 =
keycode   3 =
keycode   4 =
keycode   5 = F1
       shift   keycode   5 = F11
       alt     keycode   5 = Console_1
       control alt     keycode   5 = Console_1
       altgr   shift   keycode   5 = F11
       altgr   alt     keycode   5 = Console_1
       altgr   control alt     keycode   5 = Console_1
keycode   6 = F2
       shift   keycode   6 = F12
       alt     keycode   6 = Console_2
       control alt     keycode   6 = Console_2
       altgr   shift   keycode   6 = F12
       altgr   alt     keycode   6 = Console_2
       altgr   control alt     keycode   6 = Console_2
keycode   7 = F10
       shift   keycode   7 = F20
       alt     keycode   7 = Console_10
       control alt     keycode   7 = Console_10
       altgr   shift   keycode   7 = F20
       altgr   alt     keycode   7 = Console_10
       altgr   control alt     keycode   7 = Console_10
keycode   8 = F3
       shift   keycode   8 = F13
       alt     keycode   8 = Console_3
       control alt     keycode   8 = Console_3
       altgr   shift   keycode   8 = F13
       altgr   alt     keycode   8 = Console_3
       altgr   control alt     keycode   8 = Console_3
keycode   9 = F11
       alt     keycode   9 = Console_11
       control alt     keycode   9 = Console_11
       altgr   alt     keycode   9 = Console_11
       altgr   control alt     keycode   9 = Console_11
keycode  10 = F4
       shift   keycode  10 = F14
       alt     keycode  10 = Console_4
       control alt     keycode  10 = Console_4
       altgr   shift   keycode  10 = F14
       altgr   alt     keycode  10 = Console_4
       altgr   control alt     keycode  10 = Console_4
keycode  11 = F12
       alt     keycode  11 = Console_12
       control alt     keycode  11 = Console_12
       altgr   alt     keycode  11 = Console_12
       altgr   control alt     keycode  11 = Console_12
keycode  12 = F5
       shift   keycode  12 = F15
       alt     keycode  12 = Console_5
       control alt     keycode  12 = Console_5
       altgr   shift   keycode  12 = F15
       altgr   alt     keycode  12 = Console_5
       altgr   control alt     keycode  12 = Console_5
keycode  13 = AltGr_Lock
keycode  14 = F6
       shift   keycode  14 = F16
       alt     keycode  14 = Console_6
       control alt     keycode  14 = Console_6
       altgr   shift   keycode  14 = F16
       altgr   alt     keycode  14 = Console_6
       altgr   control alt     keycode  14 = Console_6
keycode  15 =
keycode  16 = F7
       shift   keycode  16 = F17
       alt     keycode  16 = Console_7
       control alt     keycode  16 = Console_7
       altgr   shift   keycode  16 = F17
       altgr   alt     keycode  16 = Console_7
       altgr   control alt     keycode  16 = Console_7
keycode  17 = F8
       shift   keycode  17 = F18
       alt     keycode  17 = Console_8
       control alt     keycode  17 = Console_8
       altgr   shift   keycode  17 = F18
       altgr   alt     keycode  17 = Console_8
       altgr   control alt     keycode  18 = Console_8
keycode  18 = F9
       shift   keycode  18 = F19
       alt     keycode  18 = Console_9
       control alt     keycode  18 = Console_9
       altgr   shift   keycode  18 = F19
       altgr   alt     keycode  18 = Console_9
       altgr   control alt     keycode  18 = Console_9
keycode  19 = Alt
keycode  20 = Up
keycode  21 = Pause
keycode  22 =
keycode  23 = Scroll_Lock      Show_Memory      Show_Registers   Show_State
       alt     keycode  23 = Scroll_Lock
keycode  24 = Left
       alt     keycode  24 = Decr_Console
       altgr   alt     keycode  24 = Decr_Console
keycode  25 =
keycode  26 =
keycode  27 = Down
keycode  28 = Right
       alt     keycode  28 = Incr_Console
       altgr   alt     keycode  28 = Incr_Console
keycode  29 = Escape
       alt     keycode  29 = Meta_Escape
       altgr   alt     keycode  29 = Meta_Escape
keycode  30 = one              exclam  one     exclam
       alt     keycode  30 = Meta_one
       altgr   alt     keycode  30 = Meta_one
keycode  31 = two              at               two               at
       control keycode  31 = nul
       alt     keycode  31 = Meta_two
       altgr   control keycode  31 = nul
       altgr   alt     keycode  31 = Meta_two
keycode  32 = three            numbersign      three   numbersign
       control keycode  32 = Escape
       alt     keycode  32 = Meta_three
       altgr   control keycode  32 = Escape
       altgr   alt     keycode  32 = Meta_three
keycode  33 = four             dollar           four   dollar
       control keycode  33 = Control_backslash
       alt     keycode  33 = Meta_four
       altgr   control keycode  33 = Control_backslash
       altgr   alt     keycode  33 = Meta_four
keycode  34 = five             percent         five    colon
       control keycode  34 = Control_bracketright
       alt     keycode  34 = Meta_five
       altgr   control keycode  34 = Control_bracketright
       altgr   alt     keycode  34 = Meta_five
keycode  35 = six              asciicircum     six     comma
       control keycode  35 = Control_asciicircum
       alt     keycode  35 = Meta_six
       altgr   control keycode  35 = Control_asciicircum
       altgr   alt     keycode  35 = Meta_six
keycode  36 = seven            ampersand       seven   period
       control keycode 36 = Control_underscore
       alt     keycode  36 = Meta_seven
       altgr   alt     keycode  36 = Meta_seven
keycode  37 = eight            asterisk                eight   semicolon
       control keycode  37 = Delete
       alt     keycode  37 = Meta_eight
       altgr   control keycode  37 = Delete
       altgr   alt     keycode  37 = Meta_eight
keycode  38 = nine             parenleft       nine    parenleft
       alt     keycode  38 = Meta_nine
       altgr   alt     keycode  38 = Meta_nine
keycode  39 = zero             parenright      zero    parenright
       alt     keycode  39 = Meta_zero
       altgr   alt     keycode  39 = Meta_zero
keycode  40 = minus            underscore       minus  underscore
       control keycode  40 = Control_underscore
       alt     keycode  40 = Meta_minus
       altgr   control keycode  40 = Control_underscore
       altgr   alt     keycode  40 = Meta_minus
keycode  41 = equal            plus            equal   plus
       alt     keycode  41 = Meta_equal
       altgr   alt     keycode  41 = Meta_equal
keycode  42 = grave            asciitilde      grave   asciitilde
       control keycode  42 = nul
       alt     keycode  42 = Meta_grave
       altgr   control keycode  42 = nul
       altgr   alt     keycode  42 = Meta_grave
keycode  43 = Delete           Delete          Delete  Delete
       control keycode  43 = BackSpace
       alt     keycode  43 = Meta_Delete
       altgr   control keycode  43 = BackSpace
       altgr   alt     keycode  43 = Meta_Delete
keycode  44 = Insert
keycode  45 = equal
keycode  46 = KP_Divide
keycode  47 = KP_Multiply
keycode  48 =
keycode  49 =
keycode  50 = KP_Period
       control alt     keycode  50 = Boot
       altgr   control alt     keycode  50 = Boot
keycode  51 =
keycode  52 = Find
keycode  53 = Tab              Tab
       alt     keycode  53 = Meta_Tab
       altgr   alt     keycode  53 = Meta_Tab
keycode  54 = q
       altgr           keycode 54 = +0xCA
       altgr   shift   keycode 54 = +0xEA
keycode  55 = w
       altgr           keycode 55 = +0xC3
       altgr   shift   keycode 55 = +0xE3
keycode  56 = e
       altgr           keycode 56 = +0xD5
       altgr   shift   keycode 56 = +0xF5
keycode  57 = r
       altgr           keycode 57 = +0xCB
       altgr   shift   keycode 57 = +0xEB
keycode  58 = t
       altgr           keycode 58 = +0xC5
       altgr   shift   keycode 58 = +0xE5
keycode  59 = y
       altgr           keycode 59 = +0xCE
       altgr   shift   keycode 59 = +0xEE
keycode  60 = u
       altgr           keycode 60 = +0xC7
       altgr   shift   keycode 60 = +0xE7
keycode  61 = i
       altgr           keycode 61 = +0xDB
       altgr   shift   keycode 61 = +0xFB
keycode  62 = o
       altgr           keycode 62 = +0xDD
       altgr   shift   keycode 62 = +0xFD
keycode  63 = p
       altgr           keycode 63 = +0xDA
       altgr   shift   keycode 63 = +0xFA
keycode  64 = bracketleft      braceleft
       control keycode  64 = Escape
       alt     keycode  64 = Meta_bracketleft
       altgr   control keycode  64 = Escape
       altgr   alt     keycode  64 = Meta_bracketleft
       altgr           keycode 64 = +0xC8
       altgr   shift   keycode 64 = +0xE8
keycode  65 = bracketright     braceright
       control keycode  65 = Control_bracketright
       alt     keycode  65 = Meta_bracketright
       altgr   control keycode  65 = Control_bracketright
       altgr   alt     keycode  65 = Meta_bracketright
       altgr           keycode  65 = +0xDF
       altgr   shift   keycode  65 = +0xFF
keycode  66 = Remove
       control alt     keycode  66 = Boot
       altgr   control alt     keycode  66 = Boot
keycode  67 =
keycode  68 = KP_7
       alt     keycode  68 = Ascii_7
       altgr   alt     keycode  68 = Ascii_7
keycode  69 = KP_8
       alt     keycode  69 = Ascii_8
       altgr   alt     keycode  69 = Ascii_8
keycode  70 = KP_9
       alt     keycode  70 = Ascii_9
       altgr   alt     keycode  70 = Ascii_9
keycode  71 = KP_Subtract
keycode  72 =
keycode  73 =
keycode  74 = Select
keycode  75 =
keycode  76 = Control
keycode  77 = a
       altgr           keycode 77 = +0xC6
       altgr   shift   keycode 77 = +0xE6
keycode  78 = s
       altgr           keycode 78 = +0xD9
       altgr   shift   keycode 78 = +0xF9
keycode  79 = d
       altgr           keycode 79 = +0xD7
       altgr   shift   keycode 79 = +0xF7
keycode  80 = f
       altgr           keycode 80 = +0xC1
       altgr   shift   keycode 80 = +0xE1
keycode  81 = g
       altgr           keycode 81 = +0xD0
       altgr   shift   keycode 81 = +0xF0
keycode  82 = h
       altgr           keycode 82 = +0xD2
       altgr   shift   keycode 82 = +0xF2
keycode  83 = j
       altgr           keycode 83 = +0xCF
       altgr   shift   keycode 83 = +0xEF
keycode  84 = k
       altgr           keycode 84 = +0xCC
       altgr   shift   keycode 84 = +0xEC
keycode  85 = l
       altgr           keycode 85 = +0xC4
       altgr   shift   keycode 85 = +0xE4
keycode  86 = semicolon        colon
       alt     keycode  86 = Meta_semicolon
       altgr   alt     keycode  86 = Meta_semicolon
       altgr           keycode 86 = +0xD6
       altgr   shift   keycode 86 = +0xF6
keycode  87 = apostrophe       quotedbl
       control keycode  87 = Control_g
       alt     keycode  87 = Meta_apostrophe
       altgr   control keycode  87 = Control_g
       altgr   alt     keycode  87 = Meta_apostrophe
       altgr           keycode 87 = +0xDC
       altgr   shift   keycode 87 = +0xFC
keycode  88 = backslash        bar     backslash       bar
       control keycode  88 = Control_backslash
       alt     keycode  88 = Meta_backslash
       altgr   control keycode  88 = Control_backslash
       altgr   alt     keycode  88 = Meta_backslash
keycode  89 = Return
       alt     keycode  89 = Meta_Control_m
       altgr   alt     keycode  89 = Meta_Control_m
keycode  90 = KP_Enter
keycode  91 = KP_4
       alt     keycode  91 = Ascii_4
       altgr   alt     keycode  91 = Ascii_4
keycode  92 = KP_5
       alt     keycode  92 = Ascii_5
       altgr   alt     keycode  92 = Ascii_5
keycode  93 = KP_6
       alt     keycode  93 = Ascii_6
       altgr   alt     keycode  93 = Ascii_6
keycode  94 = KP_0
       alt     keycode  94 = Ascii_0
       altgr   alt     keycode  94 = Ascii_0
keycode  95 =
keycode  96 = Prior
       shift   keycode  96 = Scroll_Backward
       altgr   shift   keycode  96 = Scroll_Backward
keycode  97 =
keycode  98 = Num_Lock
keycode  99 = Shift
keycode 100 = z
       altgr           keycode 100 = +0xD1
       altgr   shift   keycode 100 = +0xF1
keycode 101 = x
       altgr           keycode 101 = +0xDE
       altgr   shift   keycode 101 = +0xFE
keycode 102 = c
       altgr           keycode 102 = +0xD3
       altgr   shift   keycode 102 = +0xF3
keycode 103 = v
       altgr           keycode 103 = +0xCD
       altgr   shift   keycode 103 = +0xED
keycode 104 = b
       altgr           keycode 104 = +0xC9
       altgr   shift   keycode 104 = +0xE9
keycode 105 = n
       altgr           keycode 105 = +0xD4
       altgr   shift   keycode 105 = +0xF4
keycode 106 = m
       altgr           keycode 106 = +0xD8
       altgr   shift   keycode 106 = +0xF8
keycode 107 = comma            less
       alt     keycode 107 = Meta_comma
       altgr   alt     keycode 107 = Meta_comma
       altgr           keycode 107 = +0xC2
       altgr   shift   keycode 107 = +0xE2
keycode 108 = period           greater
#      control keycode 108 = Compose
       alt     keycode 108 = Meta_period
       altgr   alt     keycode 108 = Meta_period
       altgr           keycode 108 = +0xC0
       altgr   shift   keycode 108 = +0xE0
keycode 109 = slash    question        slash   question
       control keycode 109 = Delete
       alt     keycode 109 = Meta_slash
       altgr   control keycode 109 = Delete
       altgr   alt     keycode 109 = Meta_slash
keycode 110 = Shift
keycode 111 = Linefeed
keycode 112 = KP_1
       alt     keycode 112 = Ascii_1
       altgr   alt     keycode 112 = Ascii_1
keycode 113 = KP_2
       alt     keycode 113 = Ascii_2
       altgr   alt     keycode 113 = Ascii_2
keycode 114 = KP_3
       alt     keycode 114 = Ascii_3
       altgr   alt     keycode 114 = Ascii_3
keycode 115 =
keycode 116 =
keycode 117 =
keycode 118 = Help
keycode 119 = Caps_Lock
keycode 120 =
keycode 121 = space
       control keycode 121 = nul
       alt     keycode 121 = Meta_space
       altgr   control keycode 121 = nul
       altgr   alt     keycode 121 = Meta_space
keycode 122 =
keycode 123 = Next
       shift   keycode 123 = Scroll_Forward
       altgr   shift   keycode 123 = Scroll_Forward
keycode 124 =
keycode 125 = KP_Add
keycode 126 =
keycode 127 =
