1 .\" Copyright (c) 1995 Alex Tatmanjants <alex@elvisti.kiev.ua>
2 .\" at Electronni Visti IA, Kiev, Ukraine.
3 .\" All rights reserved.
5 .\" Redistribution and use in source and binary forms, with or without
6 .\" modification, are permitted provided that the following conditions
8 .\" 1. Redistributions of source code must retain the above copyright
9 .\" notice, this list of conditions and the following disclaimer.
10 .\" 2. Redistributions in binary form must reproduce the above copyright
11 .\" notice, this list of conditions and the following disclaimer in the
12 .\" documentation and/or other materials provided with the distribution.
14 .\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND
15 .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
16 .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
17 .\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE
18 .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19 .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
20 .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21 .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22 .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
33 .Nd convert collation sequence source definition
41 converts a collation sequence source definition
42 into a format usable by the
47 It is used to define the many ways in which
48 strings can be ordered and collated.
51 its first argument and places the result in its second
53 The transformed string is such that it can be
54 correctly ordered with other transformed strings by using
60 transforms its arguments and does a
64 reads the collation sequence source definition
65 from the standard input and stores the converted definition in filename.
66 The output file produced contains the
67 database with collating sequence information in a form
68 usable by system commands and routines.
72 .It Cm Fl I Ar map_dir
73 This option set directory name where
75 files can be found, current directory by default.
76 .It Cm Fl o Ar out_file
77 This option set output file name,
82 The collation sequence definition specifies a set of collating elements and
83 the rules defining how strings containing these should be ordered.
84 This is most useful for different language definitions.
86 The specification file can consist of three statements:
94 statement is required.
100 supplied, these statements must be ordered as above.
102 statements after the order statement are ignored.
104 Lines in the specification file beginning with a
107 treated as comments and are ignored.
111 .Ar charmap charmapfile
114 defines where a mapping of the character
115 and collating element symbols to the actual
116 character encoding can be found.
122 names are separated from their values by TAB or
123 SPACE characters. symbol-value can be specified in
124 a hexadecimal (\ex\fI??\fR) or octal (\e\fI???\fR)
125 representation, and can be only one character in length.
127 .Ar symbol-name1 symbol-value1
128 .Ar symbol-name2 symbol-value2
134 statement is optional.
143 statement substitutes the character
147 Symbol names cannot be specified in
152 statement is optional.
157 is a list of symbols, separated by semi colons, that defines the
162 specifies, in a short-hand
163 form, symbols that are sequential in machine code
166 An order list element
167 can be represented in any one of the following
171 The symbol itself (for example,
173 for the lower-case letter
176 The symbol chain (for example,
179 In octal representation (for example,
184 In hexadecimal representation (for example,
189 The symbol name as defined in the
197 If character map name have
199 character, it must be escaped as
213 are permitted in its usual C-language meaning
215 The symbol range (for example,
218 Comma-separated symbols, ranges and chains enclosed in parenthesis (for example
225 same primary ordering but different secondary
228 Comma-separated symbols, ranges and chains enclosed in curly brackets (for example
234 are assigned the same primary ordering only.
237 The backslash character
239 is used for continuation.
240 In this case, no characters are permitted
241 after the backslash character.
244 exits with the following values:
245 .Bl -tag -width indent
247 No errors were found and the output was successfully created.
252 .Ar /usr/share/locale/<language>/LC_COLLATE
253 standard shared location for collation orders
254 under the locale locale