blob: f81d92e7c60a0e9f9684880d1c9e9d16af15098d [file] [log] [blame]
/*
*******************************************************************************
* Copyright (C) 1998-2003, International Business Machines Corporation and *
* others. All Rights Reserved. *
*******************************************************************************
*
* $Source: /xsrl/Nsvn/icu/icu4j/src/com/ibm/icu/dev/tool/layout/ScriptNameBuilder.java,v $
* $Date: 2003/12/09 01:18:12 $
* $Revision: 1.4 $
*
*******************************************************************************
*/
package com.ibm.icu.dev.tool.layout;
public class ScriptNameBuilder
{
/*
* This tool builds the script related header files and data tables needed by
* the ICU LayoutEngine. By using the ICU4J interfaces to access the script
* information, we can be sure that the data written by this tool is in synch
* with ICU.
*/
public static void main(String[] args)
{
ScriptData scriptData = new ScriptData();
LanguageData languageData = new LanguageData();
ScriptIDModuleWriter scriptIDModuleWriter = new ScriptIDModuleWriter(scriptData, languageData);
scriptIDModuleWriter.writeScriptHeader("LEScripts.h");
scriptIDModuleWriter.writeLanguageHeader("LELanguages.h");
ScriptTagModuleWriter scriptTagModuleWriter = new ScriptTagModuleWriter(scriptData, languageData);
scriptTagModuleWriter.writeScriptTags("ScriptAndLanguageTags");
ScriptRunModuleWriter scriptRunModuleWriter = new ScriptRunModuleWriter(scriptData);
scriptRunModuleWriter.writeScriptRuns("ScriptRunData.cpp");
}
}