mklocale.1
来自「早期freebsd实现」· 1 代码 · 共 258 行
1
258 行
.\" Copyright (c) 1993, 1994.\" The Regents of the University of California. All rights reserved..\".\" This code is derived from software contributed to Berkeley by.\" Paul Borman at Krystal Technologies..\".\" Redistribution and use in source and binary forms, with or without.\" modification, are permitted provided that the following conditions.\" are met:.\" 1. Redistributions of source code must retain the above copyright.\" notice, this list of conditions and the following disclaimer..\" 2. Redistributions in binary form must reproduce the above copyright.\" notice, this list of conditions and the following disclaimer in the.\" documentation and/or other materials provided with the distribution..\" 3. All advertising materials mentioning features or use of this software.\" must display the following acknowledgement:.\" This product includes software developed by the University of.\" California, Berkeley and its contributors..\" 4. Neither the name of the University nor the names of its contributors.\" may be used to endorse or promote products derived from this software.\" without specific prior written permission..\".\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION).\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF.\" SUCH DAMAGE..\".\" @(#)mklocale.1 8.2 (Berkeley) 4/18/94.\".Dd "April 18, 1994".Dt MKLOCALE 1.Os.Sh NAME.Nm mklocale.Nd make LC_CTYPE locale files.Sh SYNOPSIS.Nm mklocale.Ar "< src-file".Ar "> language/LC_CTYPE".Sh DESCRIPTIONThe.Nm mklocaleutility reads a.Dv LC_CTYPEsource file from standard input and produces a.Dv LC_CTYPEbinary file on standard output suitable for placement in.Dv /usr/share/locale/\fIlanguage\fP/LC_CTYPE..PpThe format of.Ar src-fileis quite simple.It consists of a series of lines which start with a keyword and haveassociated data following. C style comments are usedto place comments in the file..PpBesides the keywords which will be listed below,the following are valid tokens in.Ar src-file :.Bl -tag -width literal.It Dv RUNEA.Dv RUNEmay be any of the following:.Bl -tag -width 0x[0-9a-z]*.It Ar 'x'The ascii character.Ar x ..It Ar '\ex'The ANSI C character.Ar \exwhere.Ar \exis one of.Dv \ea ,.Dv \eb ,.Dv \ef ,.Dv \en ,.Dv \er ,.Dv \et ,or.Dv \ev ..It Ar 0x[0-9a-z]*A hexadecimal number representing a rune code..It Ar 0[0-7]*An octal number representing a rune code..It Ar [1-9][0-9]*A decimal number representing a rune code..El.It Dv STRINGA string enclosed in double quotes (")..It Dv THRUEither.Dv ...or.Dv - .Used to indicate ranges..It Ar literalThe follow characters are taken literally:.Bl -tag -width "<\|\|(\|\|[".It Dv "<\|(\|["Used to start a mapping. All are equivalent..It Dv ">\|\^)\|]"Used to end a mapping. All are equivalent..It Dv :Used as a delimiter in mappings..El.El.spKey words which should only appear once are:.Bl -tag -width PHONOGRAM.It Dv ENCODINGFollowed by a.Dv STRINGwhich indicates the encoding mechanism to be used for this locale.The current encodings are:.Bl -tag -width NONE.It Dv NONENo translation and the default..It Dv UTF2.Dv "Universal character set Transformation Format"adopted from.Nm "Plan 9 from Bell Labs" .This is the preferred encoding..It Dv EUC.Dv EUCencoding as used by severalvendors of.Uxsystems..El.It Dv VARIABLEThis keyword must be followed by a single tab or space character,after which encoding specific data is placed.Currently only the .Dv "EUC"encoding requires variable data.See .Xr euc 4for further details..It Dv INVALIDA single.Dv RUNEfollows and is used as the invalid rune for this locale..El.spThe following keywords may appear multiple times and have the followingformat for data:.in +.5i.Bl -tag -width "<RUNE1 THRU RUNEn : RUNE2>".It Dv <RUNE1 RUNE2>.Dv RUNE1is mapped to.Dv RUNE2 ..It Dv <RUNE1 THRU RUNEn : RUNE2>Runes.Dv RUNE1through.Dv RUNEnare mapped to.Dv RUNE2through.Dv RUNE2+ n-1..El.in -.5i.Bl -tag -width PHONOGRAM.It Dv MAPLOWERDefines the tolower mappings..Dv RUNE2is the lower case representation of.Dv RUNE1..It Dv MAPUPPERDefines the toupper mappings..Dv RUNE2is the upper case representation of.Dv RUNE1..It Dv TODIGITDefines a map from runes to their digit value..Dv RUNE2is the integer value represented by.Dv RUNE1 .For example, the ascii character.Nm '0'would map to the decimal value.Nm 0 .Only values up to.Nm 255are allowed..El.spThe following keywords may appear multiple times and have the followingformat for data:.in +.5i.Bl -tag -width "RUNE1 THRU RUNEn".It Dv RUNEThis rune has the property defined by the keyword..It Dv "RUNE1 THRU RUNEn"All the runes between and including.Dv RUNE1and.Dv RUNEnhave the property defined by the keyword..El.in -.5i.Bl -tag -width PHONOGRAM.It Dv ALPHADefines runes which are alphabetic, printable and graphic..It Dv CONTROLDefines runes which are control characters..It Dv DIGITDefines runes which are decimal digits, printable and graphic..It Dv GRAPHDefines runes which are graphic and printable..It Dv LOWERDefines runes which are lower case, printable and graphic..It Dv PUNCTDefines runes which are punctuation, printable and graphic..It Dv SPACEDefines runes which are spaces..It Dv UPPERDefines runes which are upper case, printable and graphic..It Dv XDIGITDefines runes which are hexadecimal digits, printable and graphic..It Dv BLANKDefines runes which are blank..It Dv PRINTDefines runes which are printable..It Dv IDEOGRAMDefines runes which are ideograms, printable and graphic..It Dv SPECIALDefines runes which are special characters, printable and graphic..It Dv PHONOGRAMDefines runes which are phonograms, printable and graphic..El.Sh SEE ALSO.Xr mbrune 3 ,.Xr rune 3 ,.Xr setlocale 3 ,.Xr euc 4 ,.Xr utf2 4.Sh BUGSThe.Nm mklocaleutility is overly simplistic..Sh HISTORYThe.Nm mklocaleutility first appeared in.Bx 4.4 .
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?