forked from unicode-org/icu-demos
-
Notifications
You must be signed in to change notification settings - Fork 0
/
README
155 lines (102 loc) · 4.24 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
Copyright (c) 1998-2009 IBM and Others.
I C U - A P P S
-----------------
This package contains sample applications built using the ICU. For
more information on the ICU:
URL: http://icu-project.org/
If you have an application that is written using the ICU that you
would like to contribute, join the ICU mailing list [above URL] and
contact us.
- The "iucsamples" directory contains samples for the
Unicode conference <unicodeconference.org> and has its own
build instructions.
BUILDING
--------
*** UNIX (or other command line platforms):
1. Build and install the ICU ('make install'). Make note of the
prefix used to build the ICU, which can be set with the
'--prefix=' option to it's ./configure.
2. icu-config doesn't need to be on your PATH - just make sure the same --prefix is used as that which built ICU.
3. Run the ./configure script in the icuapps directory. You will need
to supply the same '--prefix=XXX' argument that was passed to the
ICU.
4. Type 'make' in the icuapps, or 'make install' if you wish.
Example:
ICU:
cd ...somewhere/icu
./configure --prefix=/var/local
make install
ICUAPPS:
cd ...somewhere/icuapps (THIS directory)
./configure --prefix=/var/local
make
make install (optional)
*** Win32 Instructions
1. build ICU in an 'icu' directory
2. build icuapps in an 'icuapps' directory at the same level as 'icu'
RUNNING CGIS
------------
Windows systems:
Put the CGIs and ICU DLLs in the CGI-BIN directory.
UNIX type systems:
You will need to make sure ICU libraries are on the path, if ICU was not built statically.
One option is to populate the cgi-bin directory with 'wrapper' scripts. Create copies or
symlinks of this script with the name of the cgis (locexp, ubrowse, etc). Change the 'ICU'
variable to point at the base of the installed ICU. (the prefix).
----------------------------
#!/bin/sh
# wrapper script.
ME=`basename $0`
ICU=/installed/icu
cd ${ICU}/bin
export DYLD_LIBRARY_PATH=${ICU}/lib:${DYLD_LIBRARY_PATH}
exec ${ICU}/bin/${ME}
----------------------------
==========================================
==========================================
THE APPS
- uconv From : Jonas Utterstrom
Uses : Conversion
This program will convert data file(s) from one encoding to another
via Unicode.
As of ICU 1.9, this program is now part of the main ICU build. Though
it is still not supported it is more convenient there.
- usort From : Steven R. Loomis
<srl [at] icu-project.org>
Uses : Conversion, Collation
There are two parts here.
* a shared library (libusort) which makes it simple to sort lines
of text.
* a command line example program (usort) which will sort lines
from the console or the file, similar to UNIX 'sort'.
- locexp From : Steven R. Loomis
<srl [at] icu-project.org>
Uses : Conversion, Collation, Chartypes, Formatting,
Resource Bundles, ...
uconv & usort [above]
* Shows off a lot of things. go to the ICU homepage and
look for the Locale Explorer.
- ubrowse From : Steven R. Loomis
<srl [at] icu-project.org>
Uses : Conversion, Chartypes..
Depends on locexp/util.
* Browse the Unicode UCS-2 code space.
- dumpdat From : Steven R. Loomis
<srl [at] icu-project.org>
Uses : UData
* A way to look at the version and info headers on a udata
file
- udata *** OBSOLETE - now part of udata [part of the ICU]
- xlitomatic From: Steven R. Loomis
<srl [at] icu-project.org>
Uses: transliteration
Depends on: locexp/util, etc.
* Transliterates HTML files using any transliterator. C++.
- calexpo From: Steven R. Loomis [NOT CHECKED IN]
<srl [at] icu-project.org>
Uses: Date/Time formatting, Calendar
* Demonstrates the flexibility of the Calendar class.
- Your contribution could be here too! Write: <[email protected]>
-----------------
(c) 1999, 2000 IBM, Inc. and others