1DERB(1) ICU 50.1.2 Manual DERB(1)
2
3
4
6 derb - disassemble a resource bundle
7
9 derb [ -h, -?, --help ] [ -V, --version ] [ -v, --verbose ] [ -e,
10 --encoding encoding ] [ --bom ] [ -l, --locale locale ] [ -t, --trun‐
11 cate [ size ] ] [ -s, --sourcedir source ] [ -d, --destdir destination
12 ] [ -i, --icudatadir directory ] [ -c, --to-stdout ] bundle ...
13
15 derb reads the compiled resource bundle files passed on the command
16 line and write them back in text form. The resulting text files have a
17 .txt extension while compiled resource bundle source files typically
18 have a .res extension.
19
20 It is customary to name the resource bundles by their locale name, i.e.
21 to use a local identifier for the bundle filename, e.g. ja_JP.res for
22 Japanese (Japan) data, or root.res for the root bundle. This is espe‐
23 cially important for derb since the locale name is not accessible
24 directly from the compiled resource bundle, and to know which locale to
25 ask for when opening the bundle. derb will produce a file whose base
26 name is either the value of the -l, --locale option, or the same as the
27 base name of the compiled resource file itself. If the --to-stdout, -c
28 option is used, however, the text will be written on the standard out‐
29 put.
30
32 -h, -?, --help
33 Print help about usage and exit.
34
35 -V, --version
36 Print the version of derb and exit.
37
38 -v, --verbose
39 Display extra informative messages during execution.
40
41 -e, --encoding encoding
42 Set the encoding used to write output files to encoding. The
43 default encoding is the invariant (subset of ASCII or EBCDIC)
44 codepage for the system (see section INVARIANT CHARACTERS). The
45 choice of the encoding does not affect the data, just their rep‐
46 resentation. Characters that cannot be represented in the encod‐
47 ing will be represented using \uhhhh escape sequences.
48
49 --bom Write a byte order mark (BOM) at the beginning of the file.
50
51 -l, --locale locale
52 Set the locale for the resource bundle, which is used both in
53 the generated text and as the base name of the output file.
54
55 -t, --truncate [ size ]
56 Truncate individual resources (strings or binary data) to size
57 bytes. The default if size is not specified is 80 bytes.
58
59 -s, --sourcedir source
60 Set the source directory to source. The default source direc‐
61 tory is the current directory. If - is passed for source, then
62 the bundle will be looked for in its default location, specified
63 by the ICU_DATA environment variable (or defaulting to the loca‐
64 tion set when ICU was built if ICU_DATA is not set).
65
66 -d, --destdir destination
67 Set the destination directory to destination. The default des‐
68 tination directory is specified by the environment variable
69 ICU_DATA or is the location set when ICU was built if ICU_DATA
70 is not set.
71
72 -i, --icudatadir directory
73 Look for any necessary ICU data files in directory. For exam‐
74 ple, when processing collation overrides, the file ucadata.dat
75 must be located. The default ICU data directory is specified by
76 the environment variable ICU_DATA.
77
78 -c, --to-stdout
79 Write the disassembled bundle on standard output instead of into
80 a file.
81
83 When the option --bom is used, the character U+FEFF is written in the
84 destination encoding regardless of whether it is a Unicode transforma‐
85 tion format (UTF) or not. This option should only be used with an UTF
86 encoding, as byte order marks are not meaningful for other encodings.
87
89 The invariant character set consists of the following set of charac‐
90 ters, expressed as a standard POSIX regular expression: [a-z]|[A-
91 Z]|[0-9]|_| |+|-|*|/. This is the set which is guaranteed to be avail‐
92 able regardless of code page.
93
95 ICU_DATA Specifies the directory containing ICU data. Defaults to
96 /usr/share/icu/50.1.2/. Some tools in ICU depend on the
97 presence of the trailing slash. It is thus important to make
98 sure that it is present if ICU_DATA is set.
99
101 Vladimir Weinstein
102 Yves Arrouye
103
105 1.0
106
108 Copyright (C) 2002 IBM, Inc. and others.
109
111 genrb(1)
112
113
114
115
116ICU MANPAGE 16 April 2002 DERB(1)