HP Visualize J5000 hp workstations - hp-ux 10.20 graphics administration guide - Page 135

Keyboards, keycodes, keysyms, Modifier List, modifiers, Keymap Table

Page 135 highlights

The standard device-independent string specifications have the following syntax: CIEXYZ:X/Y/Z (none, 1, none) CIEuvY:u/v/Y ( .6, .6, 1) CIExyY:x/y/Y ( .75, .85, 1) CIELab:L/a/b (100, none, none) CIELuv:L/u/v (100, none, none) TekHVC:H/V/C (360, 100, 100) All of the values (C, H, V, X, Y, Z, a, b, u, v, y, x) are floating-point values. Some of the values are constrained to be between zero and some upper bound; the upper bounds are given in parentheses above. The syntax for these values is an optional "+" or "-" sign, a string of digits possibly containing a decimal point, and an optional exponent field consisting of an "E" or "e" followed by an optional "+" or "-"sign, followed by a string of digits. For more information on device independent color, see the Xlib reference manual. Keyboards The X keyboard model is broken into two layers: server-specific codes (called keycodes) which represent the physical keys, and server-independent symbols (called keysyms) which represent the letters or words that appear on the keys. Two tables are kept in the server for converting keycodes to keysyms: Modifier List Some keys (such as Shift, Control, and Caps Lock) are known as modifiers and are used to select different symbols that are attached to a single key (such as Shift-a, which generates a capital "A", and Control-l, which generates a control character "^L"). The server keeps a list of keycodes corresponding to the various modifier keys. Whenever a key is pressed or released, the server generates an event that contains the keycode of the indicated key as well as a mask that specifies which of the modifier keys are currently pressed. Most servers set up this list to initially contain the various shift, control, and shift-lock keys on the keyboard. Keymap Table Applications translate event keycodes and modifier masks into keysyms using a keysym table which contains one row for each keycode and one column for various modifier states. This table is initialized by the server to correspond to normal typewriter conventions. The exact semantics of how the table is interpreted to produce keysyms depends on the particular program, libraries, and language input method used, but the following conventions for the first four keysyms in each row are generally adhered to. The first four elements of the list are split into two groups of keysyms. Group 1 contains the first and second keysyms; Group 2 contains the third and fourth keysyms. Within each group, if the first element is alphabetic and the the second element is the special keysym NoSymbol, then the group is treated as equivalent to a group in which the first element is the lowercase letter and the second element is the uppercase letter. Page 135 Graphics Administration Guide for HP-UX 10.20

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81
  • 82
  • 83
  • 84
  • 85
  • 86
  • 87
  • 88
  • 89
  • 90
  • 91
  • 92
  • 93
  • 94
  • 95
  • 96
  • 97
  • 98
  • 99
  • 100
  • 101
  • 102
  • 103
  • 104
  • 105
  • 106
  • 107
  • 108
  • 109
  • 110
  • 111
  • 112
  • 113
  • 114
  • 115
  • 116
  • 117
  • 118
  • 119
  • 120
  • 121
  • 122
  • 123
  • 124
  • 125
  • 126
  • 127
  • 128
  • 129
  • 130
  • 131
  • 132
  • 133
  • 134
  • 135
  • 136
  • 137
  • 138
  • 139
  • 140
  • 141
  • 142
  • 143
  • 144
  • 145
  • 146
  • 147
  • 148
  • 149
  • 150
  • 151
  • 152
  • 153
  • 154
  • 155
  • 156
  • 157
  • 158
  • 159
  • 160
  • 161
  • 162
  • 163
  • 164
  • 165
  • 166
  • 167
  • 168
  • 169
  • 170
  • 171

The standard device-independent string specifications have the following syntax: CIEXYZ:X/Y/Z
(none, 1, none)
CIEuvY:u/v/Y (
.6,
.6, 1)
CIExyY:x/y/Y (
.75,
.85, 1)
CIELab:L/a/b (100, none, none)
CIELuv:L/u/v (100, none, none)
TekHVC:H/V/C (360, 100, 100)
All of the values (C, H, V, X, Y, Z, a, b, u, v, y, x) are floating-point values. Some of the values are
constrained to be between zero and some upper bound; the upper bounds are given in parentheses above.
The syntax for these values is an optional "+" or "-" sign, a string of digits possibly containing a decimal
point, and an optional exponent field consisting of an "E" or "e" followed by an optional "+" or "-"sign,
followed by a string of digits.
For more information on device independent color, see the Xlib reference manual.
Keyboards
The X keyboard model is broken into two layers: server-specific codes (called
keycodes
) which
represent the physical keys, and server-independent symbols (called
keysyms
) which represent the
letters or words that appear on the keys. Two tables are kept in the server for converting keycodes to
keysyms:
Modifier List
Some keys (such as Shift, Control, and Caps Lock) are known as
modifiers
and are used to select
different symbols that are attached to a single key (such as Shift-a, which generates a capital "A", and
Control-l, which generates a control character "^L"). The server keeps a list of keycodes corresponding
to the various modifier keys. Whenever a key is pressed or released, the server generates an event that
contains the keycode of the indicated key as well as a mask that specifies which of the modifier keys are
currently pressed. Most servers set up this list to initially contain the various shift, control, and shift-lock
keys on the keyboard.
Keymap Table
Applications translate event keycodes and modifier masks into keysyms using a keysym table which
contains one row for each keycode and one column for various modifier states. This table is initialized
by the server to correspond to normal typewriter conventions. The exact semantics of how the table is
interpreted to produce keysyms depends on the particular program, libraries, and language input method
used, but the following conventions for the first four keysyms in each row are generally adhered to. The
first four elements of the list are split into two groups of keysyms. Group 1 contains the first and second
keysyms; Group 2 contains the third and fourth keysyms. Within each group, if the first element is
alphabetic and the the second element is the special keysym NoSymbol, then the group is treated as
equivalent to a group in which the first element is the lowercase letter and the second element is the
uppercase letter.
Graphics Administration Guide for HP-UX 10.20
Page 135