diff --git a/icu4c/source/samples/break/readme.txt b/icu4c/source/samples/break/readme.txt index dbb69a5ada6..de76e2df356 100644 --- a/icu4c/source/samples/break/readme.txt +++ b/icu4c/source/samples/break/readme.txt @@ -1,4 +1,4 @@ -Copyright (c) 2002-2005, International Business Machines Corporation and others. All Rights Reserved. +Copyright (c) 2002-2010, International Business Machines Corporation and others. All Rights Reserved. break: Boundary Analysis This sample demonstrates @@ -24,8 +24,8 @@ To Run on Windows (Use the path to where ever ICU is on your system.) 3. cd into the break directory, e.g. cd c:\icu\source\samples\break\debug - 4. Run it - break + 4. Run it (Warning: Be careful, 'break' is also a system command on many systems) + .\break To Build on Unixes 1. Build ICU. diff --git a/icu4c/source/samples/citer/readme.txt b/icu4c/source/samples/citer/readme.txt index 6eb8cdb20aa..a4a930ddac9 100644 --- a/icu4c/source/samples/citer/readme.txt +++ b/icu4c/source/samples/citer/readme.txt @@ -1,8 +1,8 @@ -Copyright (c) 2003-2005, International Business Machines Corporation and others. All Rights Reserved. +Copyright (c) 2003-2010, International Business Machines Corporation and others. All Rights Reserved. citer: Character Iteration This sample demonstrates - Using ICU to determine the linguistic boundaries within text + Demonstrating ICU's CharacterIterator Files: @@ -23,6 +23,7 @@ To Run on Windows (Use the path to where ever ICU is on your system.) 3. cd into the citer directory, e.g. cd c:\icu\source\samples\citer\debug + (note that it may be in a different relative directory than most of the other samples). 4. Run it citer diff --git a/icu4c/source/samples/csdet/readme.txt b/icu4c/source/samples/csdet/readme.txt new file mode 100644 index 00000000000..42f18092f8b --- /dev/null +++ b/icu4c/source/samples/csdet/readme.txt @@ -0,0 +1,60 @@ +Copyright (c) 2001-2010 International Business Machines +Corporation and others. All Rights Reserved. +uresb: Resource Bundle + +This sample demonstrates + Using ICU's CharSet Detection API + + +Files: + csdet.c Main source file + *.txt Various sample .txt files + +To Build uresb on Windows + 1. Install and build ICU + 2. In MSVC, open the workspace file icu\samples\uresb\uresb.sln + 3. Choose a Debug or Release build. + 4. Build. + +To Run on Windows + 1. Start a command shell window + 2. Add ICU's bin directory to the path, e.g. + set PATH=c:\icu\bin;%PATH% + (Use the path to where ever ICU is on your system.) + 3. cd into the uresb directory, e.g. + cd c:\icu\source\samples\uresb\debug + 4. Run it (with a locale name, ex. english) + csdet eucJP.txt + WARNING: The .txt files must be in the same directory as the executable, which is not the case by default on some systems. + +To Build on Unixes + 1. Build ICU. + Specify an ICU install directory when running configure, + using the --prefix option. The steps to build ICU will look something + like this: + cd /source + runConfigureICU --prefix [other options] + gmake all + + 2. Install ICU, + gmake install + + 3. Compile + cd /source/samples/uresb + gmake ICU_PREFIX= + + To Run on Unixes + cd /source/samples/uresb + + gmake ICU_PREFIX= check + -or- + + export LD_LIBRARY_PATH=/lib:.:$LD_LIBRARY_PATH + csdet eucJP.txt + + + Note: The name of the LD_LIBRARY_PATH variable is different on some systems. + If in doubt, run the sample using "gmake check", and note the name of + the variable that is used there. LD_LIBRARY_PATH is the correct name + for Linux and Solaris. + diff --git a/icu4c/source/samples/date/readme.txt b/icu4c/source/samples/date/readme.txt index 3ba36d518e4..553be9ec592 100644 --- a/icu4c/source/samples/date/readme.txt +++ b/icu4c/source/samples/date/readme.txt @@ -1,4 +1,4 @@ -Copyright (c) 2002-2005, International Business Machines Corporation and others. All Rights Reserved. +Copyright (c) 2002-2010, International Business Machines Corporation and others. All Rights Reserved. icudate: a sample program which displays the current date This sample demonstrates @@ -26,8 +26,8 @@ To Run on Windows (Use the path to where ever ICU is on your system.) 3. cd into the icudate directory, e.g. cd c:\icu\source\samples\date\debug - 4. Run it - date + 4. Run it (Warning: Be careful, 'date' is also a system command on many systems) + .\date To Build on Unixes 1. Build ICU. icudate is built automatically by default unless samples are turned off. diff --git a/icu4c/source/samples/datefmt/README.TXT b/icu4c/source/samples/datefmt/README.TXT index 7a12224ddec..3671b15b9a8 100644 --- a/icu4c/source/samples/datefmt/README.TXT +++ b/icu4c/source/samples/datefmt/README.TXT @@ -1,15 +1,15 @@ -Copyright (c) 2002-2007, International Business Machines Corporation and others. All Rights Reserved. -This is an exercise for the ICU Workshop (September 2000). +Copyright (c) 2002-2010, International Business Machines Corporation and others. All Rights Reserved. + +IMPORTANT: + +This sample was originally intended as an exercise for the ICU Workshop (September 2000). +The code currently provided in the solution file is the answer to the exercises, each step can still be found in the 'answers' subdirectory. + + + ** Workshop homepage is: http://www.icu-project.org/docs/workshop_2000/agenda.html - Day 2: September 12th 2000 - Pre-requsit: - 1. All the hardware and software requirements from Day 1. - 2. Attended or fully understand Day 1 material. - 3. Read through the ICU user's guide at - http://www.icu-project.org/userguide/. - #Date/Time/Number Formatting Support 9:30am - 10:30am Alan Liu diff --git a/icu4c/source/samples/layout/FontMap.GDI b/icu4c/source/samples/layout/FontMap.GDI index 198c02218a7..c01c40f3d5a 100644 --- a/icu4c/source/samples/layout/FontMap.GDI +++ b/icu4c/source/samples/layout/FontMap.GDI @@ -1,11 +1,11 @@ -# Copyright (C) 2001-2005, International Business Machines +# Copyright (C) 2001-2010, International Business Machines # Corporation and others. All Rights Reserved. # # This is a sample FontMap file for Windows. # Fonts are specified by font name, as shown # in the "Fonts" folder. - DEVANAGARI: Raghindi - THAI: AngsanaDSE - DEFAULT: Code2000 + DEVANAGARI: Raghindi + THAI: Courier MonoThai + DEFAULT: Code2000 diff --git a/icu4c/source/samples/layout/readme.html b/icu4c/source/samples/layout/readme.html index 79a700519b9..1db4e306831 100644 --- a/icu4c/source/samples/layout/readme.html +++ b/icu4c/source/samples/layout/readme.html @@ -5,7 +5,7 @@ + "Copyright (c) 2001-2010 IBM Corporation and others. All Rights Reserved." /> Readme file for the ICU LayoutEngine demo @@ -53,17 +53,14 @@ Windows. Here's how to get the fonts:

First, download the Thai font. Go to into-asia.com and - click on the link for the Angsana font. This will download a .ZIP file. - Extract the font file, angsd___.ttf On Windows, copy this font file to your - Fonts folder, on Linux, copy this font file to the directory from which + "http://www.freelang.net/fonts/index.php">freelang.net and + click on the link for the Courier Thai font. This will download a .ZIP file. + Extract the Courpro.ttf font. On Windows, copy this font file to your + Fonts folder (note the name of the font after it is installed), on Linux, copy this font file to the directory from which you'll run the layout demo.

-

Next is the Hindi font. Go to the NCST site and download raghu.ttf. Be - sure to look at the README file - before you download the font. On Linux, you can download raghu.ttf into the +

Next is the Hindi font. Download the font from Raghindi. On Linux, you can download the font into the directory from which you'll run the layout demo. On Windows, you'll need to install it in your Fonts folder.

@@ -80,6 +77,13 @@ it for longer than a trial period, you should send a shareware fee to James. Directions for how to do this are in CODE2000.HTM.

+

Be sure that your FontMap.GDI (on Windows) or FontMap.Gnome file (on Linux) contains accurate + font names for each script type. For example, the following is a valid FontMap.GDI (assuming you have the correct fonts): +

DEVANAGARI: Raghindi
THAI: Courier MonoThai
DEFAULT: Code2000

Note that only the Code2000 default font is strictly necessary, + and that the other two can simply be commented out by a '#' if you do not wish to use them.

+ +

Also note that the FontMap and the sample.txt files have to be in the same directory as the layout executable.

+

That's it! Now all you have to do is run letest (CTRL+F5 in Visual C++, or "./gnomelayout" in Linux)

diff --git a/icu4c/source/samples/msgfmt/README.TXT b/icu4c/source/samples/msgfmt/README.TXT index c1c23c0db80..e0fd7f46094 100644 --- a/icu4c/source/samples/msgfmt/README.TXT +++ b/icu4c/source/samples/msgfmt/README.TXT @@ -1,5 +1,13 @@ -Copyright (c) 2002-2007, International Business Machines Corporation and others. All Rights Reserved. -This is an exercise for the ICU Workshop (September 2000). +Copyright (c) 2002-2010, International Business Machines Corporation and others. All Rights Reserved. + + +IMPORTANT: + +This sample was originally intended as an exercise for the ICU Workshop (September 2000). +The code currently provided in the solution file is the answer to the exercises, each step can still be found in the 'answers' subdirectory. + + + http://www.icu-project.org/docs/workshop_2000/agenda.html diff --git a/icu4c/source/samples/readme.txt b/icu4c/source/samples/readme.txt index e70ed9bcfad..7f57b664eb5 100644 --- a/icu4c/source/samples/readme.txt +++ b/icu4c/source/samples/readme.txt @@ -10,6 +10,8 @@ cal - prints out a calendar. case - demonstrates how to do Unicode case conversion in C and C++. +csdet - demonstrates using ICU's CharSet Detection API + date - prints out the current date, localized. datefmt - an exercise using the date formatting API @@ -32,7 +34,7 @@ uciter8.c - demonstrates how to leniently read 8-bit Unicode text. ucnv - demonstrates the use of ICU codepage conversion -udata - demonstrates the use of ICU low level data routines +udata - demonstrates the use of ICU low level data routines (reader/writer in 'all' MSVC solution) ufortune - demonstrates packaging and use of resources in an application diff --git a/icu4c/source/samples/translit/README.TXT b/icu4c/source/samples/translit/README.TXT index a7c44e6008c..1c77ca8c8ac 100644 --- a/icu4c/source/samples/translit/README.TXT +++ b/icu4c/source/samples/translit/README.TXT @@ -1,5 +1,13 @@ -Copyright (c) 2002-2007, International Business Machines Corporation and others. All Rights Reserved. -This is an exercise for the ICU Workshop (September 2000). +Copyright (c) 2002-2010, International Business Machines Corporation and others. All Rights Reserved. + + +IMPORTANT: + +This sample was originally intended as an exercise for the ICU Workshop (September 2000). +The code currently provided in the solution file is the answer to the exercises, each step can still be found in the 'answers' subdirectory. + + + http://www.icu-project.org/docs/workshop_2000/agenda.html Day 2: September 12th 2000 diff --git a/icu4c/source/samples/ucnv/readme.txt b/icu4c/source/samples/ucnv/readme.txt index 34c81ad6ff2..7fb87319afa 100644 --- a/icu4c/source/samples/ucnv/readme.txt +++ b/icu4c/source/samples/ucnv/readme.txt @@ -1,4 +1,4 @@ -Copyright (C) 2002-2005, International Business Machines +Copyright (C) 2002-2010, International Business Machines Corporation and others. All Rights Reserved. convsamp: a sample program which demonstrates using ICU conversion @@ -31,6 +31,7 @@ To Run on Windows cd c:\icu\source\samples\ucnv\debug 4. Run it ucnv + WARNING: The .bin and .txt files must be in the same directory as the executable, which is not the case by default on some systems. To Build on Unixes 1. Build ICU. diff --git a/icu4c/source/samples/udata/readme.txt b/icu4c/source/samples/udata/readme.txt index baccf626d34..308eb87be7a 100644 --- a/icu4c/source/samples/udata/readme.txt +++ b/icu4c/source/samples/udata/readme.txt @@ -1,4 +1,4 @@ -Copyright (c) 2002-2005, International Business Machines Corporation and others. All Rights Reserved. +Copyright (c) 2002-2010, International Business Machines Corporation and others. All Rights Reserved. udata: Low level ICU data This sample demonstrates @@ -27,6 +27,7 @@ To Run on Windows 4. Run it writer reader + IMPORTANT: On some systems, the reader and writer executables may not be in the same directory. If this is the case, this will likely cause a problem with reader looking for the .dat file in the wrong directory). To Build on Unixes 1. Build ICU. diff --git a/icu4c/source/samples/uresb/readme.txt b/icu4c/source/samples/uresb/readme.txt index 362975f15ee..8ca2c8f0144 100644 --- a/icu4c/source/samples/uresb/readme.txt +++ b/icu4c/source/samples/uresb/readme.txt @@ -1,4 +1,4 @@ -Copyright (c) 2001-2005 International Business Machines +Copyright (c) 2001-2010 International Business Machines Corporation and others. All Rights Reserved. uresb: Resource Bundle @@ -33,6 +33,7 @@ To Run on Windows cd c:\icu\source\samples\uresb\debug 4. Run it (with a locale name, ex. english) uresb en + WARNING: The .txt files must be in the same directory as the executable, which is not the case by default on some systems. To Build on Unixes 1. Build ICU.