01: /*
02: *******************************************************************************
03: * Copyright (C) 1998-2004, International Business Machines Corporation and *
04: * others. All Rights Reserved. *
05: *******************************************************************************
06: */
07: package com.ibm.icu.dev.tool.layout;
08:
09: public class ScriptNameBuilder {
10: /*
11: * This tool builds the script related header files and data tables needed by
12: * the ICU LayoutEngine. By using the ICU4J interfaces to access the script
13: * information, we can be sure that the data written by this tool is in synch
14: * with ICU.
15: */
16: public static void main(String[] args) {
17: ScriptData scriptData = new ScriptData();
18: LanguageData languageData = new LanguageData();
19:
20: ScriptIDModuleWriter scriptIDModuleWriter = new ScriptIDModuleWriter(
21: scriptData, languageData);
22:
23: scriptIDModuleWriter.writeScriptHeader("LEScripts.h");
24: scriptIDModuleWriter.writeLanguageHeader("LELanguages.h");
25:
26: ScriptTagModuleWriter scriptTagModuleWriter = new ScriptTagModuleWriter(
27: scriptData, languageData);
28:
29: scriptTagModuleWriter.writeScriptTags("ScriptAndLanguageTags");
30:
31: ScriptRunModuleWriter scriptRunModuleWriter = new ScriptRunModuleWriter(
32: scriptData);
33:
34: scriptRunModuleWriter.writeScriptRuns("ScriptRunData.cpp");
35: }
36: }
|