1 .\" $NetBSD: src/usr.bin/mklocale/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
3 .\" $DragonFly: src/usr.bin/mklocale/mklocale.1,v 1.7 2007/07/29 17:27:45 swildner Exp $
5 .\" Copyright (c) 1993, 1994
6 .\" The Regents of the University of California. All rights reserved.
8 .\" This code is derived from software contributed to Berkeley by
9 .\" Paul Borman at Krystal Technologies.
11 .\" Redistribution and use in source and binary forms, with or without
12 .\" modification, are permitted provided that the following conditions
14 .\" 1. Redistributions of source code must retain the above copyright
15 .\" notice, this list of conditions and the following disclaimer.
16 .\" 2. Redistributions in binary form must reproduce the above copyright
17 .\" notice, this list of conditions and the following disclaimer in the
18 .\" documentation and/or other materials provided with the distribution.
19 .\" 3. Neither the name of the University nor the names of its contributors
20 .\" may be used to endorse or promote products derived from this software
21 .\" without specific prior written permission.
23 .\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
24 .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
25 .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
26 .\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
27 .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
28 .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
29 .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
30 .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
31 .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
32 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
35 .\" @(#)mklocale.1 8.2 (Berkeley) 4/18/94
42 .Nd make LC_CTYPE locale files
47 .Ar \& Ac Ns language/LC_CTYPE
58 source file from standard input and produces an
60 binary file on standard output suitable for placement in
61 .Pa /usr/share/locale/ Ns Ar language Ns Pa /LC_CTYPE .
66 It consists of a series of lines which start with a keyword and have
67 associated data following.
68 C style comments are used
69 to place comments in the file.
71 Following options are available:
74 Turns on debugging messages.
79 Besides the keywords which will be listed below,
80 the following are valid tokens in
82 .Bl -tag -width literal
86 may be any of the following:
87 .Bl -tag -width 0x[0-9a-z]*
106 A hexadecimal number representing a rune code.
108 An octal number representing a rune code.
110 A decimal number representing a rune code.
113 A string enclosed in double quotes (").
119 Used to indicate ranges.
121 The follow characters are taken literally:
122 .Bl -tag -width "\*[Lt]\|\|(\|\|["
123 .It Dv "\*[Lt]\|(\|["
124 Used to start a mapping.
126 .It Dv "\*[Gt]\|\^)\|]"
127 Used to end a mapping.
130 Used as a delimiter in mappings.
134 Key words which should only appear once are:
135 .Bl -tag -width PHONOGRAM
139 which indicates the encoding mechanism to be used for this locale.
140 The current encodings are:
143 No translation and the default.
145 .Dv "Universal character set Transformation Format"
147 .Nm "Plan 9 from Bell Labs" .
150 encoding as used by several
156 This keyword must be followed by a single tab or space character,
157 after which encoding specific data is placed.
160 encoding requires variable data.
169 The following keywords may appear multiple times and have the following
172 .Bl -tag -width "XXRUNE1 THRU RUNEn : RUNE2XX"
173 .It Aq Dv RUNE1 RUNE2
177 .It Aq Dv RUNE1 THRU RUNEn : RUNE2
189 .Bl -tag -width PHONOGRAM
191 Defines the tolower mappings.
193 is the lower case representation of
196 Defines the toupper mappings.
198 is the upper case representation of
201 Defines a map from runes to their digit value.
203 is the integer value represented by
205 For example, the ASCII character
207 would map to the decimal value 0.
208 Only values up to 255 are allowed.
211 The following keywords may appear multiple times and have the following
213 .Bl -tag -width "RUNE1 THRU RUNEn"
215 This rune has the property defined by the keyword.
216 .It Dv "RUNE1 THRU RUNEn"
217 All the runes between and including
221 have the property defined by the keyword.
223 .Bl -tag -width PHONOGRAM
225 Defines runes which are alphabetic, printable, and graphic.
227 Defines runes which are control characters.
229 Defines runes which are decimal digits, printable, and graphic.
231 Defines runes which are graphic and printable.
233 Defines runes which are lower case, printable, and graphic.
235 Defines runes which are punctuation, printable, and graphic.
237 Defines runes which are spaces.
239 Defines runes which are upper case, printable, and graphic.
241 Defines runes which are hexadecimal digits, printable, and graphic.
243 Defines runes which are blank.
245 Defines runes which are printable.
247 Defines runes which are ideograms, printable, and graphic.
249 Defines runes which are special characters, printable, and graphic.
251 Defines runes which are phonograms, printable, and graphic.
253 Defines runes with specific glyph width.
257 Controls character set for subsequent runes.
260 .\" locale definitions.
271 utility first appeared in
276 utility is overly simplistic.
280 and its file format, which is more standard.