ICU-7773 added copyrights and deleted sample .txt files from csdet

X-SVN-Rev: 28240
This commit is contained in:
Alexey Gousev 2010-06-21 18:23:25 +00:00
parent 4b9a795621
commit c0875bf20f
13 changed files with 125 additions and 39 deletions

View File

@ -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.

View File

@ -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

View File

@ -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 <icu directory>/source
runConfigureICU <platform-name> --prefix <icu install directory> [other options]
gmake all
2. Install ICU,
gmake install
3. Compile
cd <icu directory>/source/samples/uresb
gmake ICU_PREFIX=<icu install directory) ICU_PATH=<icu source directory>
To Run on Unixes
cd <icu directory>/source/samples/uresb
gmake ICU_PREFIX=<icu install directory> check
-or-
export LD_LIBRARY_PATH=<icu install directory>/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.

View File

@ -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.

View File

@ -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

View File

@ -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

View File

@ -5,7 +5,7 @@
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii" />
<meta name="COPYRIGHT" content=
"Copyright (c) 2001-2006 IBM Corporation and others. All Rights Reserved." />
"Copyright (c) 2001-2010 IBM Corporation and others. All Rights Reserved." />
<meta name="Author" content="Eric Mader" />
<title>Readme file for the ICU LayoutEngine demo</title>
@ -53,17 +53,14 @@
Windows. Here's how to get the fonts:</p>
<p>First, download the Thai font. Go to <a href=
"http://www.into-asia.com/thai_language/thaifont/">into-asia.com</a> 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</a> 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.</p>
<p>Next is the Hindi font. Go to the NCST site and download <a href=
"http://rohini.ncst.ernet.in/indix/download/font/raghu.ttf">raghu.ttf</a>. Be
sure to look at the <a href=
"http://rohini.ncst.ernet.in/indix/download/font/README">README</a> file
before you download the font. On Linux, you can download raghu.ttf into the
<p>Next is the Hindi font. Download the font from <a href=
"http://www.ffonts.net/Raghindi.font.download">Raghindi</a>. 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.</p>
@ -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.</p>
<p>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):
<br><br>DEVANAGARI: Raghindi<br>THAI: Courier MonoThai<br>DEFAULT: Code2000<br><br>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.</p>
<p>Also note that the FontMap and the sample.txt files have to be in the same directory as the layout executable.</p>
<p>That's it! Now all you have to do is run letest (CTRL+F5 in Visual C++, or
"./gnomelayout" in Linux)</p>

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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.

View File

@ -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.

View File

@ -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.