Main index | Section 1 | 日本語 | Options |
The colldef utility reads the collation sequence source definition from the standard input and stores the converted definition in filename. The output file produced contains the database with collating sequence information in a form usable by system commands and routines.
The following options are available:
| |
Set directory name where charmap files can be found, current directory by default. | |
| |
Set output file name, LC_COLLATE by default. | |
The collation sequence definition specifies a set of collating elements and the rules defining how strings containing these should be ordered. This is most useful for different language definitions.
The specification file can consist of three statements: charmap, substitute and order.
Of these, only the order statement is required. When charmap or substitute is supplied, these statements must be ordered as above. Any statements after the order statement are ignored.
Lines in the specification file beginning with a ‘#’ are treated as comments and are ignored. Blank lines are also ignored.
charmap charmapfile
Charmap defines where a mapping of the character and collating element symbols to the actual character encoding can be found.
The format of charmapfile is shown below. Symbol names are separated from their values by TAB or SPACE characters. Symbol-value can be specified in a hexadecimal (\x??) or octal (\???) representation, and can be only one character in length.
symbol-name1 symbol-value1 symbol-name2 symbol-value2 amp;...
Symbol names cannot be specified in substitute fields.
The charmap statement is optional.
substitute "symbol" with "repl_string"
The substitute statement substitutes the character symbol with the string repl_string. Symbol names cannot be specified in repl_string field. The substitute statement is optional.
order order_list
Order_list is a list of symbols, separated by semi colons, that defines the collating sequence. The special symbol ... specifies, in a short-hand form, symbols that are sequential in machine code order.
An order list element can be represented in any one of the following ways:
The backslash character \ is used for continuation. In this case, no characters are permitted after the backslash character.
/usr/share/locale/<language > /LC_COLLATE | |
The standard shared location for collation orders under the locale <language>. | |
0 | No errors were found and the output was successfully created. |
!=0 | Errors were found. |
COLLDEF (1) | April 18, 2016 |
Main index | Section 1 | 日本語 | Options |
Please direct any comments about this manual page service to Ben Bullock. Privacy policy.
“ | It's a UNIX system, I know this! | ” |
— Lex Murphy, Jurassic Park |