1 .\" $NetBSD: mklocale.1,v 1.13 2004/01/24 17:03:26 wiz Exp $
2 .\" FreeBSD: src/usr.bin/mklocale/mklocale.1,v 1.6 1999/09/20 09:15:21 phantom Exp
4 .\" Copyright (c) 1993, 1994
5 .\" The Regents of the University of California. All rights reserved.
7 .\" This code is derived from software contributed to Berkeley by
8 .\" Paul Borman at Krystal Technologies.
10 .\" Redistribution and use in source and binary forms, with or without
11 .\" modification, are permitted provided that the following conditions
13 .\" 1. Redistributions of source code must retain the above copyright
14 .\" notice, this list of conditions and the following disclaimer.
15 .\" 2. Redistributions in binary form must reproduce the above copyright
16 .\" notice, this list of conditions and the following disclaimer in the
17 .\" documentation and/or other materials provided with the distribution.
18 .\" 3. Neither the name of the University nor the names of its contributors
19 .\" may be used to endorse or promote products derived from this software
20 .\" without specific prior written permission.
22 .\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
23 .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
24 .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
25 .\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
26 .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
27 .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
28 .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
29 .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
30 .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
31 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
34 .\" @(#)mklocale.1 8.2 (Berkeley) 4/18/94
41 .Nd make LC_CTYPE locale files
61 source file from standard input and produces an
63 binary file on standard output suitable for placement in
64 .Pa /usr/share/locale/\*[Lt]language\*[Gt]/LC_CTYPE .
69 It consists of a series of lines which start with a keyword and have
70 associated data following.
71 C style comments are used
72 to place comments in the file.
74 Following options are available:
77 Turns on debugging messages.
81 Generate output in new-style LC_{MONETARY,NUMERIC,TIME,MESSAGES}
85 Besides the keywords which will be listed below,
86 the following are valid tokens in
88 .Bl -tag -width literal
92 may be any of the following:
93 .Bl -tag -width 0x[0-9a-z]*
112 A hexadecimal number representing a rune code.
114 An octal number representing a rune code.
116 A decimal number representing a rune code.
119 A string enclosed in double quotes (").
125 Used to indicate ranges.
127 The follow characters are taken literally:
128 .Bl -tag -width "\*[Lt]\|\|(\|\|["
129 .It Dv "\*[Lt]\|(\|["
130 Used to start a mapping.
132 .It Dv "\*[Gt]\|\^)\|]"
133 Used to end a mapping.
136 Used as a delimiter in mappings.
140 Key words which should only appear once are:
141 .Bl -tag -width PHONOGRAM
145 which indicates the encoding mechanism to be used for this locale.
146 The current encodings are:
149 No translation and the default.
151 .Dv "Universal character set Transformation Format"
153 .Nm "Plan 9 from Bell Labs" .
156 encoding as used by several
162 This keyword must be followed by a single tab or space character,
163 after which encoding specific data is placed.
166 encoding requires variable data.
169 .\" for further details.
173 follows and is used as the invalid rune for this locale.
176 The following keywords may appear multiple times and have the following
179 .Bl -tag -width "XXRUNE1 THRU RUNEn : RUNE2XX"
180 .It Aq Dv RUNE1 RUNE2
184 .It Aq Dv RUNE1 THRU RUNEn : RUNE2
196 .Bl -tag -width PHONOGRAM
198 Defines the tolower mappings.
200 is the lower case representation of
203 Defines the toupper mappings.
205 is the upper case representation of
208 Defines a map from runes to their digit value.
210 is the integer value represented by
212 For example, the ASCII character
214 would map to the decimal value 0.
215 Only values up to 255 are allowed.
218 The following keywords may appear multiple times and have the following
220 .Bl -tag -width "RUNE1 THRU RUNEn"
222 This rune has the property defined by the keyword.
223 .It Dv "RUNE1 THRU RUNEn"
224 All the runes between and including
228 have the property defined by the keyword.
230 .Bl -tag -width PHONOGRAM
232 Defines runes which are alphabetic, printable, and graphic.
234 Defines runes which are control characters.
236 Defines runes which are decimal digits, printable, and graphic.
238 Defines runes which are graphic and printable.
240 Defines runes which are lower case, printable, and graphic.
242 Defines runes which are punctuation, printable, and graphic.
244 Defines runes which are spaces.
246 Defines runes which are upper case, printable, and graphic.
248 Defines runes which are hexadecimal digits, printable, and graphic.
250 Defines runes which are blank.
252 Defines runes which are printable.
254 Defines runes which are ideograms, printable, and graphic.
256 Defines runes which are special characters, printable, and graphic.
258 Defines runes which are phonograms, printable, and graphic.
260 Defines runes with specific glyph width.
264 Controls character set for subsequent runes.
267 .\" locale definitions.
278 utility first appeared in
283 utility is overly simplistic.
287 and its file format, which is more standard.