1*66880Sbostic.\" Copyright (c) 1993, 1994 262124Sbostic.\" The Regents of the University of California. All rights reserved. 361101Sbostic.\" 461101Sbostic.\" This code is derived from software contributed to Berkeley by 561101Sbostic.\" Paul Borman at Krystal Technologies. 661101Sbostic.\" 761101Sbostic.\" %sccs.include.redist.roff% 861101Sbostic.\" 9*66880Sbostic.\" @(#)mklocale.1 8.2 (Berkeley) 04/18/94 1061101Sbostic.\" 1161101Sbostic.Dd "" 1261101Sbostic.Dt MKLOCALE 1 1361101Sbostic.Os 1461101Sbostic.Sh NAME 1561101Sbostic.Nm mklocale 1661101Sbostic.Nd make LC_CTYPE locale files 1761101Sbostic.Sh SYNOPSIS 1861101Sbostic.Nm mklocale 1961101Sbostic.Ar "< src-file" 2061101Sbostic.Ar "> language/LC_CTYPE" 2161101Sbostic.Sh DESCRIPTION 2261101SbosticThe 2361101Sbostic.Nm mklocale 2461101Sbosticutility reads a 2561101Sbostic.Dv LC_CTYPE 2661101Sbosticsource file from standard input and produces a 2761101Sbostic.Dv LC_CTYPE 2861101Sbosticbinary file on standard output suitable for placement in 2961101Sbostic.Dv /usr/share/locale/\fIlanguage\fP/LC_CTYPE. 3061101Sbostic.Pp 3161101SbosticThe format of 3261101Sbostic.Ar src-file 3361101Sbosticis quite simple. 3461101SbosticIt consists of a series of lines which start with a keyword and have 3561101Sbosticassociated data following. C style comments are used 3661101Sbosticto place comments in the file. 3761101Sbostic.Pp 3861101SbosticBesides the keywords which will be listed below, 3961101Sbosticthe following are valid tokens in 4061101Sbostic.Ar src-file : 4161101Sbostic.Bl -tag -width literal 4261101Sbostic.It Dv RUNE 4361101SbosticA 4461101Sbostic.Dv RUNE 4561101Sbosticmay be any of the following: 4661101Sbostic.Bl -tag -width 0x[0-9a-z]* 4761101Sbostic.It Ar 'x' 4861101SbosticThe ascii character 4961101Sbostic.Ar x . 5061101Sbostic.It Ar '\ex' 5161101SbosticThe ANSI C character 5261101Sbostic.Ar \ex 5361101Sbosticwhere 5461101Sbostic.Ar \ex 5561101Sbosticis one of 5661101Sbostic.Dv \ea , 5761101Sbostic.Dv \eb , 5861101Sbostic.Dv \ef , 5961101Sbostic.Dv \en , 6061101Sbostic.Dv \er , 6161101Sbostic.Dv \et , 6261101Sbosticor 6361101Sbostic.Dv \ev . 6461101Sbostic.It Ar 0x[0-9a-z]* 6561101SbosticA hexadecimal number representing a rune code. 6661101Sbostic.It Ar 0[0-7]* 6761101SbosticAn octal number representing a rune code. 6861101Sbostic.It Ar [1-9][0-9]* 6961101SbosticA decimal number representing a rune code. 7061101Sbostic.El 7161101Sbostic.It Dv STRING 7261101SbosticA string enclosed in double quotes ("). 7361101Sbostic.It Dv THRU 7461101SbosticEither 7561101Sbostic.Dv ... 7661101Sbosticor 7761101Sbostic.Dv - . 7861101SbosticUsed to indicate ranges. 7961101Sbostic.It Ar literal 8061101SbosticThe follow characters are taken literally: 8161101Sbostic.Bl -tag -width "<\|\|(\|\|[" 8261101Sbostic.It Dv "<\|(\|[" 8361101SbosticUsed to start a mapping. All are equivalent. 8461101Sbostic.It Dv ">\|\^)\|]" 8561101SbosticUsed to end a mapping. All are equivalent. 8661101Sbostic.It Dv : 8761101SbosticUsed as a delimiter in mappings. 8861101Sbostic.El 8961101Sbostic.El 9061101Sbostic.sp 9161101SbosticKey words which should only appear once are: 9261101Sbostic.Bl -tag -width PHONOGRAM 9361101Sbostic.It Dv ENCODING 9461101SbosticFollowed by a 9561101Sbostic.Dv STRING 9661101Sbosticwhich indicates the encoding mechanism to be used for this locale. 9761101SbosticThe current encodings are: 9861101Sbostic.Bl -tag -width NONE 9961101Sbostic.It Dv NONE 10061101SbosticNo translation and the default. 10161101Sbostic.It Dv UTF2 10261101Sbostic.Dv "Universal character set Transformation Format" 10361101Sbosticadopted from 10461101Sbostic.Nm "Plan 9 from Bell Labs" . 10561101SbosticThis is the preferred encoding. 10661101Sbostic.It Dv EUC 10761101Sbostic.Dv EUC 10861101Sbosticencoding as used by several 10961101Sbosticvendors of 11061101Sbostic.Ux 11161101Sbosticsystems. 11261101Sbostic.El 11361101Sbostic.It Dv VARIABLE 11461101SbosticThis keyword must be followed by a single tab or space character, 11561101Sbosticafter which encoding specific data is placed. 11661101SbosticCurrently only the 11761101Sbostic.Dv "EUC" 11861101Sbosticencoding requires variable data. 11961101SbosticSee 12061101Sbostic.Xr euc 4 12161101Sbosticfor further details. 12261101Sbostic.It Dv INVALID 12361101SbosticA single 12461101Sbostic.Dv RUNE 12561101Sbosticfollows and is used as the invalid rune for this locale. 12661101Sbostic.El 12761101Sbostic.sp 12861101SbosticThe following keywords may appear multiple times and have the following 12961101Sbosticformat for data: 13061101Sbostic.in +.5i 13161101Sbostic.Bl -tag -width "<RUNE1 THRU RUNEn : RUNE2>" 13261101Sbostic.It Dv <RUNE1 RUNE2> 13361101Sbostic.Dv RUNE1 13461101Sbosticis mapped to 13561101Sbostic.Dv RUNE2 . 13661101Sbostic.It Dv <RUNE1 THRU RUNEn : RUNE2> 13761101SbosticRunes 13861101Sbostic.Dv RUNE1 13961101Sbosticthrough 14061101Sbostic.Dv RUNEn 14161101Sbosticare mapped to 14261101Sbostic.Dv RUNE2 14361101Sbosticthrough 14461101Sbostic.Dv RUNE2 14561101Sbostic+ n-1. 14661101Sbostic.El 14761101Sbostic.in -.5i 14861101Sbostic.Bl -tag -width PHONOGRAM 14961101Sbostic.It Dv MAPLOWER 15061101SbosticDefines the tolower mappings. 15161101Sbostic.Dv RUNE2 152*66880Sbosticis the lower case representation of 15361101Sbostic.Dv RUNE1. 15461101Sbostic.It Dv MAPUPPER 15561101SbosticDefines the toupper mappings. 15661101Sbostic.Dv RUNE2 157*66880Sbosticis the upper case representation of 15861101Sbostic.Dv RUNE1. 15961101Sbostic.It Dv TODIGIT 16061101SbosticDefines a map from runes to their digit value. 16161101Sbostic.Dv RUNE2 16261101Sbosticis the integer value represented by 16361101Sbostic.Dv RUNE1 . 16461101SbosticFor example, the ascii character 16561101Sbostic.Nm '0' 16661101Sbosticwould map to the decimal value 16761101Sbostic.Nm 0 . 16861101SbosticOnly values up to 16961101Sbostic.Nm 255 17061101Sbosticare allowed. 17161101Sbostic.El 17261101Sbostic.sp 17361101SbosticThe following keywords may appear multiple times and have the following 17461101Sbosticformat for data: 17561101Sbostic.in +.5i 17661101Sbostic.Bl -tag -width "RUNE1 THRU RUNEn" 17761101Sbostic.It Dv RUNE 17861101SbosticThis rune has the property defined by the keyword. 17961101Sbostic.It Dv "RUNE1 THRU RUNEn" 18061101SbosticAll the runes between and including 18161101Sbostic.Dv RUNE1 18261101Sbosticand 18361101Sbostic.Dv RUNEn 18461101Sbostichave the property defined by the keyword. 18561101Sbostic.El 18661101Sbostic.in -.5i 18761101Sbostic.Bl -tag -width PHONOGRAM 18861101Sbostic.It Dv ALPHA 18961101SbosticDefines runes which are alphabetic, printable and graphic. 19061101Sbostic.It Dv CONTROL 19161101SbosticDefines runes which are control characters. 19261101Sbostic.It Dv DIGIT 19361101SbosticDefines runes which are decimal digits, printable and graphic. 19461101Sbostic.It Dv GRAPH 19561101SbosticDefines runes which are graphic and printable. 19661101Sbostic.It Dv LOWER 19761101SbosticDefines runes which are lower case, printable and graphic. 19861101Sbostic.It Dv PUNCT 19961101SbosticDefines runes which are punctuation, printable and graphic. 20061101Sbostic.It Dv SPACE 20161101SbosticDefines runes which are spaces. 20261101Sbostic.It Dv UPPER 20361101SbosticDefines runes which are upper case, printable and graphic. 20461101Sbostic.It Dv XDIGIT 20561101SbosticDefines runes which are hexadecimal digits, printable and graphic. 20661101Sbostic.It Dv BLANK 20761101SbosticDefines runes which are blank. 20861101Sbostic.It Dv PRINT 20961101SbosticDefines runes which are printable. 21061101Sbostic.It Dv IDEOGRAM 21161101SbosticDefines runes which are ideograms, printable and graphic. 21261101Sbostic.It Dv SPECIAL 21361101SbosticDefines runes which are special characters, printable and graphic. 21461101Sbostic.It Dv PHONOGRAM 21561101SbosticDefines runes which are phonograms, printable and graphic. 21661101Sbostic.El 21761101Sbostic.Sh SEE ALSO 21861101Sbostic.Xr mbrune 3 , 21961101Sbostic.Xr rune 3 , 22061101Sbostic.Xr setlocale 3 , 22161101Sbostic.Xr euc 4 , 22261101Sbostic.Xr utf2 4 22361101Sbostic.Sh BUGS 22461101SbosticThe 22561101Sbostic.Nm mklocale 22661101Sbosticutility is overly simplistic. 22761101Sbostic.Sh HISTORY 22861101SbosticThe 22961101Sbostic.Nm mklocale 23061101Sbosticutility first appeared in 23161101Sbostic.Bx 4.4 . 232