2 *******************************************************************************
3 * Copyright (C) 1998-2008, International Business Machines Corporation and *
4 * others. All Rights Reserved. *
5 *******************************************************************************
7 package com.ibm.icu.dev.tool.layout;
9 public class ScriptNameBuilder
12 * This tool builds the script related header files and data tables needed by
13 * the ICU LayoutEngine. By using the ICU4J interfaces to access the script
14 * information, we can be sure that the data written by this tool is in synch
17 public static void main(String[] args)
19 ScriptData scriptData = new ScriptData();
20 LanguageData languageData = new LanguageData();
22 ScriptIDModuleWriter scriptIDModuleWriter = new ScriptIDModuleWriter(scriptData, languageData);
24 scriptIDModuleWriter.writeScriptHeader("LEScripts.h");
25 scriptIDModuleWriter.writeLanguageHeader("LELanguages.h");
27 scriptIDModuleWriter.updateScriptAndLanguages();
29 ScriptTagModuleWriter scriptTagModuleWriter = new ScriptTagModuleWriter(scriptData, languageData);
31 scriptTagModuleWriter.writeScriptTags("ScriptAndLanguageTags");
33 ScriptRunModuleWriter scriptRunModuleWriter = new ScriptRunModuleWriter(scriptData);
35 scriptRunModuleWriter.writeScriptRuns("ScriptRunData.cpp");