2000-09-19 22:33:36 +00:00
|
|
|
.\" Hey, Emacs! This is -*-nroff-*- you know...
|
|
|
|
.\"
|
|
|
|
.\" genrb.8: manual page for the genrb utility
|
|
|
|
.\"
|
|
|
|
.\" Copyright (C) 2000 IBM, Inc. and others.
|
|
|
|
.\"
|
2000-10-12 21:38:43 +00:00
|
|
|
.TH GENRB 8 "12 October 2000" "ICU MANPAGE" "ICU @VERSION@ Manual"
|
2000-09-18 19:09:20 +00:00
|
|
|
.SH NAME
|
2000-09-19 21:46:01 +00:00
|
|
|
.B genrb
|
|
|
|
\- compile a resource bundle
|
2000-09-18 19:09:20 +00:00
|
|
|
.SH SYNOPSIS
|
2000-09-19 21:46:01 +00:00
|
|
|
.B genrb
|
|
|
|
[
|
|
|
|
.BR "\-V\fP, \fB\-\-version"
|
|
|
|
]
|
|
|
|
[
|
|
|
|
.BR "\-h\fP, \fB\-?\fP, \fB\-\-help"
|
|
|
|
]
|
|
|
|
[
|
|
|
|
.BR "\-v\fP, \fB\-\-verbose"
|
|
|
|
]
|
|
|
|
[
|
|
|
|
.BI "\-e\fP, \fB\-\-encoding" " encoding"
|
|
|
|
]
|
|
|
|
[
|
|
|
|
.BI "\-s\fP, \fB\-\-sourcedir" " source"
|
|
|
|
]
|
|
|
|
[
|
|
|
|
.BI "\-d\fP, \fB\-\-destdir" " destination"
|
|
|
|
]
|
|
|
|
.IR bundle " \.\.\."
|
2000-09-18 19:09:20 +00:00
|
|
|
.SH DESCRIPTION
|
2000-09-19 21:46:01 +00:00
|
|
|
.B genrb
|
|
|
|
converts the resource
|
|
|
|
.I bundle
|
|
|
|
source files passed on the command line to their binary form.
|
|
|
|
The resulting files have a
|
|
|
|
.B .res
|
|
|
|
extension while resource bundle source files typically have a
|
|
|
|
.B .txt
|
|
|
|
extension.
|
2000-09-29 22:04:25 +00:00
|
|
|
The
|
|
|
|
.I bundle
|
|
|
|
file name should be a local identifier, e.g.
|
|
|
|
.B ja_JP.txt
|
|
|
|
for Japanese (Japan) data, or
|
|
|
|
.B root.txt
|
|
|
|
for the root bundle.
|
2000-09-18 19:09:20 +00:00
|
|
|
.PP
|
2000-09-29 22:04:25 +00:00
|
|
|
These binary files can then be read directly by ICU, or used by
|
|
|
|
.BR pkgdata (8)
|
|
|
|
for incorporation into a larger archive or library.
|
2000-09-19 21:46:01 +00:00
|
|
|
.SH OPTIONS
|
|
|
|
.TP
|
|
|
|
.BR \-V\fP, \fB\-\-version
|
|
|
|
Print the version of
|
|
|
|
.B genrb
|
|
|
|
and exit.
|
|
|
|
.TP
|
|
|
|
.BR \-h\fP, \fB\-?\fP, \fB\-\-help
|
|
|
|
Print help about usage and exit.
|
|
|
|
.TP
|
|
|
|
.BR \-v\fP, \fB\-\-verbose
|
2000-10-12 20:59:20 +00:00
|
|
|
Display extra informative messages during execution.
|
2000-09-19 21:46:01 +00:00
|
|
|
.TP
|
|
|
|
.BI "\-e\fP, \fB\-\-encoding" " encoding"
|
|
|
|
Set the encoding used to read input files to
|
|
|
|
.IR encoding .
|
|
|
|
The default encoding is the invariant (subset of ASCII or EBCDIC)
|
|
|
|
codepage for the system. See section
|
|
|
|
.BR "INVARIANT CHARACTERS" .
|
|
|
|
.B genrb
|
2000-09-20 17:59:00 +00:00
|
|
|
does automatically detect UTF-8, UTF-16BE, and UTF-16LE if a byte order mark
|
2000-09-19 21:46:01 +00:00
|
|
|
(BOM) is present.
|
|
|
|
.TP
|
|
|
|
.BI "\-s\fP, \fB\-\-sourcedir" " source"
|
2000-09-29 22:04:25 +00:00
|
|
|
Set the source directory to
|
|
|
|
.IR source .
|
|
|
|
The default source directory is specified by the environment variable
|
|
|
|
.BR ICU_DATA .
|
2000-09-19 21:46:01 +00:00
|
|
|
.TP
|
|
|
|
.BI "\-d\fP, \fB\-\-destdir" " destination"
|
|
|
|
Set the destination directory to
|
|
|
|
.IR destination .
|
|
|
|
The default destination directory is specified by the environment variable
|
|
|
|
.BR ICU_DATA .
|
2000-09-18 19:09:20 +00:00
|
|
|
.SH INVARIANT CHARACTERS
|
2000-09-19 21:46:01 +00:00
|
|
|
The
|
|
|
|
.B invariant character set
|
|
|
|
consists of the following set of characters, expressed as a standard POSIX
|
|
|
|
regular expression:
|
|
|
|
.BR "[a-z]|[A-Z]|[0-9]|_| |+|-|*|/" .
|
|
|
|
This is the set which is guaranteed to be available regardless of code page.
|
2000-09-18 19:09:20 +00:00
|
|
|
.SH ENVIRONMENT
|
2000-09-19 21:46:01 +00:00
|
|
|
.TP 10
|
|
|
|
.B ICU_DATA
|
|
|
|
Specifies the directory containing ICU data. Defaults to
|
2000-09-29 22:04:25 +00:00
|
|
|
.BR @thedatadir@/icu/@VERSION@/ .
|
2000-09-19 21:46:01 +00:00
|
|
|
Some tools in ICU depend on the presence of the trailing slash. It is thus
|
|
|
|
important to make sure that it is present if
|
2000-09-18 19:09:20 +00:00
|
|
|
.B ICU_DATA
|
2000-09-19 21:46:01 +00:00
|
|
|
is set.
|
|
|
|
.SH VERSION
|
|
|
|
@VERSION@
|
2000-09-18 19:09:20 +00:00
|
|
|
.SH COPYRIGHT
|
2000-09-19 21:46:01 +00:00
|
|
|
Copyright (C) 2000 IBM, Inc. and others.
|
2000-09-19 22:33:36 +00:00
|
|
|
.SH SEE ALSO
|
|
|
|
.BR pkgdata (8)
|