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

component name or class. A database entry cannot end in a loose binding; the final component which

Page 138 highlights

IncludeFile lines are interpreted by replacing the line with the contents of the specified file. The word "include" must be in lowercase. The filename is interpreted relative to the directory of the file in which the line occurs (for example, if the filename contains no directory or contains a relative directory specification). If a ResourceName contains a contiguous sequence of two or more Binding characters, the sequence will be replaced with single "." character if the sequence contains only "." characters, otherwise the sequence will be replaced with a single "*" character. A resource database never contains more than one entry for a given ResourceName. If a resource file contains multiple lines with the same ResourceName, the last line in the file is used. Any whitespace character before or after the name or colon in a ResourceSpec are ignored. To allow a Value to begin with whitespace, the two-character sequence "space" (backslash followed by space) is recognized and replaced by a space character, and the two-character sequence "tab" (backslash followed by horizontal tab) is recognized and replaced by a horizontal tab character. To allow a Value to contain embedded newline characters, the two-character sequence "n" is recognized and replaced by a newline character. To allow a Value to be broken across multiple lines in a text file, the two-character sequence "newline" (backslash followed by newline) is recognized and removed from the value. To allow a Value to contain arbitrary character codes, the four-character sequence "nnn", where each n is a digit character in the range of 0-7, is recognized and replaced with a single byte that contains the octal value specified by the sequence. Finally, the two-character sequence "\" is recognized and replaced with a single backslash. When an application looks for the value of a resource, it specifies a complete path in the hierarchy, with both class and instance names. However, resource values are usually given with only partially specified names and classes, using pattern matching constructs. An asterisk ("*") is a loose binding and is used to represent any number of intervening components, including none. A period (".") is a tight binding and is used to separate immediately adjacent components. A question mark ("?") is used to match any single component name or class. A database entry cannot end in a loose binding; the final component (which cannot be "?") must be specified. The lookup algorithm searches the resource database for the entry that most closely matches (is most specific for) the full name and class being queried. When more than one database entry matches the full name and class, precedence rules are used to select just one. The full name and class are scanned from left to right (from highest level in the hierarchy to lowest), one component at a time. At each level, the corresponding component and/or binding of each matching entry is determined, and these matching components and bindings are compared according to precedence rules. Each of the rules is applied at each level, before moving to the next level, until a rule selects a single entry over all others. The rules (in order of precedence) are: 1. An entry that contains a matching component (whether name, class, or "?") takes precedence over entries that elide the level (that is, entries that match the level in a loose binding). 2. An entry with a matching name takes precedence over both entries with a matching class and entries that match using "?". An entry with a matching class takes precedence over entries that match using "?". 3. An entry preceded by a tight binding takes precedence over entries preceded by a loose binding. Page 138 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

IncludeFile lines are interpreted by replacing the line with the contents of the specified file. The word
"include" must be in lowercase. The filename is interpreted relative to the directory of the file in which
the line occurs (for example, if the filename contains no directory or contains a relative directory
specification).
If a
ResourceName
contains a contiguous sequence of two or more Binding characters, the sequence will
be replaced with single "." character if the sequence contains only "." characters, otherwise the sequence
will be replaced with a single "*" character.
A resource database never contains more than one entry for a given ResourceName. If a resource file
contains multiple lines with the same ResourceName, the last line in the file is used.
Any whitespace character before or after the name or colon in a ResourceSpec are ignored. To allow a
Value to begin with whitespace, the two-character sequence "space" (backslash followed by space) is
recognized and replaced by a space character, and the two-character sequence "tab" (backslash followed
by horizontal tab) is recognized and replaced by a horizontal tab character. To allow a Value to contain
embedded newline characters, the two-character sequence "n" is recognized and replaced by a newline
character. To allow a Value to be broken across multiple lines in a text file, the two-character sequence
"newline" (backslash followed by newline) is recognized and removed from the value. To allow a Value
to contain arbitrary character codes, the four-character sequence "nnn", where each n is a digit character
in the range of 0-7, is recognized and replaced with a single byte that contains the octal value specified
by the sequence. Finally, the two-character sequence "\" is recognized and replaced with a single
backslash.
When an application looks for the value of a resource, it specifies a complete path in the hierarchy, with
both class and instance names. However, resource values are usually given with only partially specified
names and classes, using pattern matching constructs. An asterisk ("*") is a loose binding and is used to
represent any number of intervening components, including none. A period (".") is a tight binding and is
used to separate immediately adjacent components. A question mark ("?") is used to match any single
component name or class. A database entry cannot end in a loose binding; the final component (which
cannot be "?") must be specified. The lookup algorithm searches the resource database for the entry that
most closely matches (is most specific for) the full name and class being queried. When more than one
database entry matches the full name and class, precedence rules are used to select just one. The full
name and class are scanned from left to right (from highest level in the hierarchy to lowest), one
component at a time. At each level, the corresponding component and/or binding of each matching entry
is determined, and these matching components and bindings are compared according to precedence
rules. Each of the rules is applied at each level, before moving to the next level, until a rule selects a
single entry over all others. The rules (in order of precedence) are:
1.
An entry that contains a matching component (whether name, class, or "?") takes precedence
over entries that elide the level (that is, entries that match the level in a loose binding).
2.
An entry with a matching name takes precedence over both entries with a matching class and
entries that match using "?". An entry with a matching class takes precedence over entries
that match using "?".
3.
An entry preceded by a tight binding takes precedence over entries preceded by a loose
binding.
Graphics Administration Guide for HP-UX 10.20
Page 138