localedef.4 (2010 09)

l
localedef(4) localedef(4)
’X’ "AE";’X’
A don’t-care character is defined by the special symbol
IGNORE. For example, the dash
character,
’-’ may be a don’t care on the first collation pass. The collating element
entry is:
’-’ IGNORE;’-’
Symbols defined by the collating-symbol
keyword can be used to indicate that a
given character collates higher or lower than some position in the sequence. For example
if all characters with an encoded value less than that of
’0’ are to collate lower than all
other characters on the first pass, and in relative order on the second pass, define a col-
lating symbol before the
order_start keyword:
collating-symbol <LOW>
The first two collating element entries are then:
... <LOW>;...
’0’ ’0’;’0’
This also illustrates the use of the ellipsis to indicate a range. The first ellipsis is inter-
preted as "all characters in the encoded character set with a value lower than ’0’"; the
second ellipsis means that all characters in the range defined by the first collate in rela-
tive order.
regular expression
regular expression operands conform to the Extended Regular Expressions
specifications as described in regexp (5).
Metacharacters
Metacharacters are characters having a special meaning to localedef in operands. To escape the special
meaning of these characters, surround them with single quotes or precede them by an escape character.
localedef meta-characters include:
< Indicates the beginning of a symbolic name.
> Indicates the end of a symbolic name.
( Indicates the beginning of a character shift pair following the toupper and tolower
keywords.
) Indicates the end of a character shift pair.
, Used to separate the characters of a character shift pair.
" Used to quote strings.
; Used as a separator in list operands.
escape character
Used to escape special meaning from other metacharacters and itself. It is backslash (\) by
default, but can be redefined by the
escape_char keyword.
Comments
Comments are lines beginning with a comment character. The comment character is pound sign (#) by
default, but can be redefined by the
comment_char keyword. Comments and blank lines are ignored.
Separators
Separator characters include blanks and tabs. Any number of separators can be used to delimit the key-
words, metacharacters, constants and strings that comprise a localedef script except that all characters
between
< and > are considered to be part of the symbolic name even they are <blank>s.
EXAMPLES
Please see the files under
/usr/lib/nls/loc/src for examples of locale description files. These
files were used to create the various locales which are delivered with HP-UX.
HP-UX 11i Version 3: September 2010 9 Hewlett-Packard Company 9