From d003bca22360c6b2cb1193ba157ce0f4969e34f6 Mon Sep 17 00:00:00 2001 From: Eric Mader Date: Tue, 27 Nov 2001 01:34:52 +0000 Subject: [PATCH] ICU-1289 added information about using the scrptrun files from their original directory. Updated information about paired punctuation. Removed information about LayoutEngine coding conventions. X-SVN-Rev: 7093 --- icu4c/source/extra/scrptrun/readme.html | 26 ++++++++++++++++--------- 1 file changed, 17 insertions(+), 9 deletions(-) diff --git a/icu4c/source/extra/scrptrun/readme.html b/icu4c/source/extra/scrptrun/readme.html index c0fc697c630..a8cfa362d45 100644 --- a/icu4c/source/extra/scrptrun/readme.html +++ b/icu4c/source/extra/scrptrun/readme.html @@ -34,10 +34,22 @@ to 35.

How do I build scrptrun and srtest?

-To use ScriptRun in your application, copy scrptrun.h and scrptrun.cpp -to your source directory, and use them just as if they were part of your -application. ScriptRun is so small that it's not worth making it into a -separate library. +To use the ScriptRun class in a Windows application, just include scrptrun.h +and scrptrun.cpp right out of the <icu>\source\extra\scrptrun directory +into your project. You'll also need to add the <icu>\source]extra\scrptrun +directory to the "Additional include directories" section of the "Preprocessor" +category on the "C/C++" tab in the project settings. +

On UNIX systems the simplest thing to do is to just copy scrptrun.h +and scrptrun.cpp into your source directory. If you want to use them from +<icu>/source/extra/scrpturn, it's a bit trickier: the default dependency +rules don't work on source files in a different directory. You need to +add separate dependency rules for scrptrun.o and scrptrun.d. See <icu>/source/samples/layout/Makefile.in +for an example of how to do this. You'll also have to add -I$(top_srcdir)/extra/scrptrun +to your compiler flags so that the compiler can find scrptrun.h. If your +application has to build on multiple UNIX platforms, it might be difficult +to wirte dependency rules that will work correctly on all platforms. In +that case, you're probably better off copying the scrpturn files to your +source directory.

Building srtest is easy, on Windows build the srtest workspace in <icu>\source\extra\scrptrun. On UNIX, connect to <top-build-dir>/extra/scrptrun and do "make all"

@@ -47,12 +59,8 @@ Notes

  • ScriptRun is based on Unicode Technical Report #24 but the implementation is not complete. In particular -it doesn't handle paired punctuation correctly. A complete implemetation +the support for paired punctuation is only a prototype. A complete implementation will be added to ICU in the future.
  • - -
  • -Because ScriptRun is designed to be used with the LayoutEngine, it uses -the LayoutEngine's coding conventions instead of ICU's coding conventions.