]> git.saurik.com Git - apple/icu.git/blame - icuSources/tools/genrb/genrb.1.in
ICU-531.30.tar.gz
[apple/icu.git] / icuSources / tools / genrb / genrb.1.in
CommitLineData
b75a7d8f
A
1.\" Hey, Emacs! This is -*-nroff-*- you know...
2.\"
3.\" genrb.1: manual page for the genrb utility
4.\"
5.\" Copyright (C) 2000-2002 IBM, Inc. and others.
6.\"
7.\" Manual page by Yves Arrouye <yves@realnames.com>.
8.\"
9.TH GENRB 1 "16 April 2002" "ICU MANPAGE" "ICU @VERSION@ Manual"
10.SH NAME
11.B genrb
12\- compile a resource bundle
13.SH SYNOPSIS
14.B genrb
15[
16.BR "\-h\fP, \fB\-?\fP, \fB\-\-help"
17]
18[
19.BR "\-V\fP, \fB\-\-version"
20]
21[
22.BR "\-v\fP, \fB\-\-verbose"
23]
24[
25.BI "\-e\fP, \fB\-\-encoding" " encoding"
26]
27[
28.BI "\-j\fP, \fB\-\-write\-java" " \fR[ \fPencoding\fR ]\fP"
29]
30[
31.BI "\-s\fP, \fB\-\-sourcedir" " source"
32]
33[
34.BI "\-d\fP, \fB\-\-destdir" " destination"
35]
36[
37.BI "\-i\fP, \fB\-\-icudatadir" " directory"
38]
39.IR bundle " \.\.\."
40.SH DESCRIPTION
41.B genrb
42converts the resource
43.I bundle
44source files passed on the command line to their binary form or to
45a Java source file for use with ICU4J.
46The resulting binary files have a
47.B .res
48extension while resource bundle source files typically have a
49.B .txt
50extension. Java source files have a
51.B java
52extension and follow the ICU4J naming conventions.
53.PP
54It is customary to name the resource bundles by their locale name,
55i.e. to use a local identifier for the
56.I bundle
57filename, e.g.
58.B ja_JP.txt
59for Japanese (Japan) data, or
60.B root.txt
61for the root bundle.
62In any case,
63.B genrb
64will produce a file whose base name is the name of the locale found
65in the resource file, not the base name of the resource file itself.
66.PP
67The binary files can be read directly by ICU, or used by
68.BR pkgdata (1)
69for incorporation into a larger archive or library.
70.SH OPTIONS
71.TP
72.BR "\-h\fP, \fB\-?\fP, \fB\-\-help"
73Print help about usage and exit.
74.TP
75.BR "\-V\fP, \fB\-\-version"
76Print the version of
77.B genrb
78and exit.
79.TP
80.BR "\-v\fP, \fB\-\-verbose"
81Display extra informative messages during execution.
82.TP
83.BI "\-e\fP, \fB\-\-encoding" " encoding"
84Set the encoding used to read input files to
85.IR encoding .
86The default encoding is the invariant (subset of ASCII or EBCDIC)
87codepage for the system (see section
88.BR "INVARIANT CHARACTERS" ).
89The encodings UTF-8, UTF-16BE, and UTF-16LE are automatically detected
90if a byte order mark (BOM) is present.
91.TP
92.BI "\-j\fP, \fB\-\-write\-java" " \fR[ \fPencoding\fR ]\fP"
93Generate a Java source code for use with ICU4J. An optional
94.I encoding
95for the Java file can be given.
96.TP
97.BI "\-s\fP, \fB\-\-sourcedir" " source"
98Set the source directory to
99.IR source .
100The default source directory is specified by the environment variable
101.BR ICU_DATA ,
102or the location set when ICU was built if
103.B ICU_DATA
104is not set.
105.TP
106.BI "\-d\fP, \fB\-\-destdir" " destination"
107Set the destination directory to
108.IR destination .
109The default destination directory is specified by the environment variable
110.BR ICU_DATA
111or is the location set when ICU was built if
112.B ICU_DATA
113is not set.
114.TP
115.BI "\-i\fP, \fB\-\-icudatadir" " directory"
116Look for any necessary ICU data files in
117.IR directory .
118For example, when processing collation overrides, the file
119.B ucadata.dat
120must be located.
121The default ICU data directory is specified by the environment variable
122.BR ICU_DATA .
123.SH INVARIANT CHARACTERS
124The
125.B invariant character set
126consists of the following set of characters, expressed as a standard POSIX
127regular expression:
128.BR "[a-z]|[A-Z]|[0-9]|_| |+|-|*|/" .
129This is the set which is guaranteed to be available regardless of code page.
130.SH ENVIRONMENT
131.TP 10
132.B ICU_DATA
133Specifies the directory containing ICU data. Defaults to
134.BR @thepkgicudatadir@/@PACKAGE@/@VERSION@/ .
135Some tools in ICU depend on the presence of the trailing slash. It is thus
136important to make sure that it is present if
137.B ICU_DATA
138is set.
139.SH VERSION
140@VERSION@
141.SH COPYRIGHT
142Copyright (C) 2000-2002 IBM, Inc. and others.
143.SH SEE ALSO
144.BR derb (1)
145.br
146.BR pkgdata (1)