version 1.1, 2005/08/07 10:06:25 |
version 1.2, 2005/08/11 14:30:53 |
|
|
|
.\" $OpenBSD$ |
|
.\" |
.\" $NetBSD: mklocale.1,v 1.13 2004/01/24 17:03:26 wiz Exp $ |
.\" $NetBSD: mklocale.1,v 1.13 2004/01/24 17:03:26 wiz Exp $ |
.\" FreeBSD: src/usr.bin/mklocale/mklocale.1,v 1.6 1999/09/20 09:15:21 phantom Exp |
.\" FreeBSD: src/usr.bin/mklocale/mklocale.1,v 1.6 1999/09/20 09:15:21 phantom Exp |
.\" |
.\" |
|
|
.Sh SYNOPSIS |
.Sh SYNOPSIS |
.Nm mklocale |
.Nm mklocale |
.Op Fl d |
.Op Fl d |
\*[Lt] |
.Op Ar src-file |
.Ar src-file |
|
\*[Gt] |
|
.Ar language/LC_CTYPE |
.Ar language/LC_CTYPE |
.Nm mklocale |
.Nm mklocale |
.Op Fl d |
.Op Fl d |
|
|
source file from standard input and produces an |
source file from standard input and produces an |
.Dv LC_CTYPE |
.Dv LC_CTYPE |
binary file on standard output suitable for placement in |
binary file on standard output suitable for placement in |
.Pa /usr/share/locale/\*[Lt]language\*[Gt]/LC_CTYPE . |
.Pa /usr/share/locale/\*(Ltlanguage\*(Gt/LC_CTYPE . |
.Pp |
.Pp |
The format of |
The format of |
.Ar src-file |
.Ar src-file |
is quite simple. |
is quite simple: |
It consists of a series of lines which start with a keyword and have |
it consists of a series of lines which start with a keyword and have |
associated data following. |
associated data following. |
C style comments are used |
C-style comments are used |
to place comments in the file. |
to place comments in the file. |
.Pp |
.Pp |
Following options are available: |
The following options are available: |
.Bl -tag -width XXX |
.Bl -tag -width Ds |
.It Fl d |
.It Fl d |
Turns on debugging messages. |
Turns on debugging messages. |
.It Fl o |
.It Fl o |
Specify output file. |
Specify an output file. |
.El |
.El |
.Pp |
.Pp |
Besides the keywords which will be listed below, |
Besides the keywords which will be listed below, |
|
|
A string enclosed in double quotes ("). |
A string enclosed in double quotes ("). |
.It Dv THRU |
.It Dv THRU |
Either |
Either |
.Dv ... |
.Sq ... |
or |
or |
.Dv - . |
.Sq - . |
Used to indicate ranges. |
Used to indicate ranges. |
.It Ar literal |
.It Ar literal |
The follow characters are taken literally: |
The follow characters are taken literally: |
.Bl -tag -width "\*[Lt]\|\|(\|\|[" |
.Pp |
.It Dv "\*[Lt]\|(\|[" |
.Bl -tag -width XXXXXXXXXX -compact |
|
.It Dv "\*(Lt \*(Ba ( \*(Ba [" |
Used to start a mapping. |
Used to start a mapping. |
All are equivalent. |
All are equivalent. |
.It Dv "\*[Gt]\|\^)\|]" |
.It Dv "\*(Gt \*(Ba ) \*(Ba ]" |
Used to end a mapping. |
Used to end a mapping. |
All are equivalent. |
All are equivalent. |
.It Dv : |
.It Dv : |
|
|
No translation and the default. |
No translation and the default. |
.It Dv UTF2 |
.It Dv UTF2 |
.Dv "Universal character set Transformation Format" |
.Dv "Universal character set Transformation Format" |
adopted from |
adopted from Plan 9 from Bell Labs. |
.Nm "Plan 9 from Bell Labs" . |
|
.It Dv EUC |
.It Dv EUC |
.Dv EUC |
.Dv EUC |
encoding as used by several |
encoding as used by several |
|
|
.Pp |
.Pp |
The following keywords may appear multiple times and have the following |
The following keywords may appear multiple times and have the following |
format for data: |
format for data: |
.in +.5i |
.Bl -tag -width "XXRUNE1 THRU RUNEn : RUNE2XX" -offset indent |
.Bl -tag -width "XXRUNE1 THRU RUNEn : RUNE2XX" |
|
.It Aq Dv RUNE1 RUNE2 |
.It Aq Dv RUNE1 RUNE2 |
.Dv RUNE1 |
.Dv RUNE1 |
is mapped to |
is mapped to |
|
|
.Dv RUNE2 |
.Dv RUNE2 |
through |
through |
.Dv RUNE2 |
.Dv RUNE2 |
+ n-1. |
|
.El |
.El |
.in -.5i |
|
.Bl -tag -width PHONOGRAM |
.Bl -tag -width PHONOGRAM |
.It Dv MAPLOWER |
.It Dv MAPLOWER |
Defines the tolower mappings. |
Defines the tolower mappings. |
|
|
.El |
.El |
.Sh SEE ALSO |
.Sh SEE ALSO |
.\"Xr colldef 1 , |
.\"Xr colldef 1 , |
.Xr setlocale 3 , |
.Xr setlocale 3 |
.\" .Xr euc 4 , |
.\" .Xr euc 4 , |
.\" .Xr utf8 4 |
.\" .Xr utf8 4 |
.Xr nls 7 |
.\" .Xr nls 7 |
.Sh HISTORY |
.Sh HISTORY |
The |
The |
.Nm mklocale |
.Nm mklocale |