2002-03-20 22:23:14 +00:00
|
|
|
<!DOCTYPE html PUBLIC "-//w3c//dtd html 4.0 transitional//en">
|
2001-10-03 21:48:10 +00:00
|
|
|
<html>
|
|
|
|
<head>
|
2002-12-24 17:24:19 +00:00
|
|
|
<meta http-equiv="Content-Type"
|
|
|
|
content="text/html; charset=iso-8859-1">
|
|
|
|
<meta name="Copyright"
|
2005-03-08 22:49:59 +00:00
|
|
|
content="Copyright (c) 2001-2005, International Business Machines Corporation and others. All Rights Reserved.">
|
2002-03-20 22:23:14 +00:00
|
|
|
<meta name="Author" content="Eric Mader">
|
2002-12-24 17:24:19 +00:00
|
|
|
<meta name="GENERATOR"
|
|
|
|
content="Mozilla/4.72 [en] (Windows NT 5.0; U) [Netscape]">
|
2002-03-20 22:23:14 +00:00
|
|
|
<title>Readme file for letest and gendata</title>
|
2001-10-03 21:48:10 +00:00
|
|
|
</head>
|
2002-12-24 17:24:19 +00:00
|
|
|
<body>
|
2002-03-20 22:23:14 +00:00
|
|
|
<h2> What are letest and gendata?</h2>
|
2002-12-24 17:24:19 +00:00
|
|
|
letest is a program you can use to verify that you have built and
|
2005-01-25 22:29:46 +00:00
|
|
|
installed the ICU LayoutEngine correctly. The test is not
|
|
|
|
comprehensive,
|
2003-03-04 22:40:25 +00:00
|
|
|
it just verifies that the results of laying out some Devanagari, Arabic
|
|
|
|
and Thai text are as expected. Once this test has passed, you can use
|
|
|
|
the ICU LayoutEngine in your application knowing that it has been
|
|
|
|
correctly installed and that the basic functionality is in place.
|
2002-12-24 17:24:19 +00:00
|
|
|
<p>gendata is a program that is used by the ICU team to build the
|
2005-01-25 22:29:46 +00:00
|
|
|
source file testdata.cpp, which contains the expected results of
|
|
|
|
running
|
2003-03-04 22:40:25 +00:00
|
|
|
letest. Unless you have changed your copy of the LayoutEngine and want
|
|
|
|
to validate the changes on other platforms, there's no reason for you
|
|
|
|
to run this program. </p>
|
2002-12-24 17:24:19 +00:00
|
|
|
<p>(The ICU team first runs a Windows application which uses the ICU
|
|
|
|
LayoutEngine to display the text that letest uses. Once it has been
|
2005-01-25 22:29:46 +00:00
|
|
|
verified that the text is displayed correctly, gendata is run to
|
|
|
|
produce
|
2003-03-04 22:40:25 +00:00
|
|
|
testdata.cpp, and then letest is run on Windows to verify that letest
|
|
|
|
still works with the new data.) <br>
|
2002-03-20 22:23:14 +00:00
|
|
|
</p>
|
|
|
|
<h2> How do I build letest?</h2>
|
2002-12-24 17:24:19 +00:00
|
|
|
First, you need to build ICU, including the LayoutEngine.
|
|
|
|
<p>On Windows, the layout project should be listed as a dependency of
|
|
|
|
all, so layout will build when you build all. If it doesn't for some
|
|
|
|
reason, just select the layout project in the project toolbar and build
|
|
|
|
it. </p>
|
|
|
|
<p>On UNIX systems, you need to add the "--enable-layout=yes" option
|
|
|
|
when you invoke the runConfigureICU script. When you've done that,
|
|
|
|
layout should build when you do "make all install" </p>
|
|
|
|
<p>To build letest on Windows, just open the letest project in
|
2005-01-25 22:29:46 +00:00
|
|
|
<icu>\source\test\letest and build it. On UNIX systems, connect
|
|
|
|
to
|
2003-03-04 22:40:25 +00:00
|
|
|
<top-build-dir>/test/letest and do "make all" <br>
|
2002-03-20 22:23:14 +00:00
|
|
|
</p>
|
|
|
|
<h2> How do I run letest?</h2>
|
2002-12-24 17:24:19 +00:00
|
|
|
Before you can run letest, you'll need to get the fonts it uses. For
|
2005-01-25 22:29:46 +00:00
|
|
|
legal reasons, we can't include them with ICU, but you can download
|
|
|
|
them
|
2003-03-04 22:40:25 +00:00
|
|
|
from the web. To do this, you'll need access to a computer running
|
|
|
|
Windows. Here's how to get the fonts:
|
2005-01-25 22:29:46 +00:00
|
|
|
<p>Download a recent version of the Java 2 Platform, Standard Edition
|
|
|
|
(J2SE) from <a href="http://java.sun.com/j2se.index.jsp">java.sun.com</a>.
|
|
|
|
From this page, follow the link for the version you want to download,
|
|
|
|
and then select the "Downloads" link on the left side of the page.
|
|
|
|
Select either the SDK or the JRE. (The JRE is sufficient for letest.)
|
|
|
|
Read the license agreement and click on "Accept" if you agree. This
|
|
|
|
will take you to the actual download page. Download the package and
|
|
|
|
install it. You'll need one font. On Windows, it will be in, for
|
|
|
|
example, "C:\j2sdk1.4.2_06/jre/lib/fonts. The file you want is
|
|
|
|
"LucidaSansRegular.ttf". Copy this file into the directory from which
|
|
|
|
you'll run letest.<br>
|
2002-03-20 22:23:14 +00:00
|
|
|
</p>
|
2002-12-24 17:24:19 +00:00
|
|
|
<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">
|
2005-01-25 22:29:46 +00:00
|
|
|
raghu.ttf</a>. Be sure to look at the <a
|
|
|
|
href="http://rohini.ncst.ernet.in/indix/download/font/README">README</a>
|
2002-12-24 17:24:19 +00:00
|
|
|
file before you download the font. You can download raghu.ttf into the
|
|
|
|
directory from which you'll run letest.<br>
|
|
|
|
</p>
|
2005-01-25 22:29:46 +00:00
|
|
|
<p>Then 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, into the directory from
|
|
|
|
which you will run letest.<br>
|
|
|
|
</p>
|
2003-03-04 22:40:25 +00:00
|
|
|
<p>There's still one more font to get, the Code2000 Unicode font.Go to
|
|
|
|
James Kass' <a href="http://home.att.net/%7Ejameskass/">Unicode
|
|
|
|
Support In Your Browser</a> page and click on the link that says "Click
|
|
|
|
Here to download Code2000 shareware demo Unicode font." This will
|
|
|
|
download a .ZIP file which contains CODE2000.TTF and CODE2000.HTM.
|
|
|
|
Expand this .ZIP file and put the CODE2000.TTF file in the directory
|
|
|
|
from which you'll run letest.<br>
|
|
|
|
</p>
|
|
|
|
<p><span style="font-weight: bold;">Note:</span> The Code2000 font is
|
|
|
|
shareware. If you want to use 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>
|
2002-12-24 17:24:19 +00:00
|
|
|
<p>That's it! Now all you have to do is run letest (CTRL+F5 in Visual
|
|
|
|
C++, or "./letest" in UNIX) If everything's OK you should see
|
|
|
|
something like this: </p>
|
2002-03-20 22:23:14 +00:00
|
|
|
<blockquote><tt>Test 0, font = raghu.ttf... passed.</tt> <br>
|
2003-03-04 22:40:25 +00:00
|
|
|
<tt>Test 1, font = CODE2000.TTF... passed.</tt> <br>
|
2002-03-20 22:23:14 +00:00
|
|
|
<tt>Test 2, font = LucidaSansRegular.ttf... passed.</tt> <br>
|
2005-01-25 22:29:46 +00:00
|
|
|
<tt>Test 3, font = angsd___.ttf... passed.</tt></blockquote>
|
2002-12-24 17:24:19 +00:00
|
|
|
</body>
|
|
|
|
</html>
|