Home | History | Annotate | Download | only in layout
      1 //  2016 and later: Unicode, Inc. and others.
      2 // License & terms of use: http://www.unicode.org/copyright.html#License
      3 /*
      4  *******************************************************************************
      5  * Copyright (C) 1998-2008, International Business Machines Corporation and    *
      6  * others. All Rights Reserved.                                                *
      7  *******************************************************************************
      8  */
      9 package com.ibm.icu.dev.tool.layout;
     10 
     11 public class ScriptNameBuilder
     12 {
     13     /*
     14      * This tool builds the script related header files and data tables needed by
     15      * the ICU LayoutEngine. By using the ICU4J interfaces to access the script
     16      * information, we can be sure that the data written by this tool is in synch
     17      * with ICU.
     18      */
     19     public static void main(String[] args)
     20     {
     21         ScriptData scriptData = new ScriptData();
     22         LanguageData languageData = new LanguageData();
     23 
     24         ScriptIDModuleWriter scriptIDModuleWriter = new ScriptIDModuleWriter(scriptData, languageData);
     25 
     26         scriptIDModuleWriter.writeScriptHeader("LEScripts.h");
     27         scriptIDModuleWriter.writeLanguageHeader("LELanguages.h");
     28 
     29         scriptIDModuleWriter.updateScriptAndLanguages();
     30 
     31         ScriptTagModuleWriter scriptTagModuleWriter = new ScriptTagModuleWriter(scriptData, languageData);
     32 
     33         scriptTagModuleWriter.writeScriptTags("ScriptAndLanguageTags");
     34 
     35         ScriptRunModuleWriter scriptRunModuleWriter = new ScriptRunModuleWriter(scriptData);
     36 
     37         scriptRunModuleWriter.writeScriptRuns("ScriptRunData.cpp");
     38     }
     39 }