2001-09-01 00:06:48 +00:00
|
|
|
/**
|
|
|
|
*******************************************************************************
|
|
|
|
* Copyright (C) 1996-2001, International Business Machines Corporation and *
|
|
|
|
* others. All Rights Reserved. *
|
|
|
|
*******************************************************************************
|
|
|
|
*
|
|
|
|
* $Source: /xsrl/Nsvn/icu/unicodetools/com/ibm/text/UCD/Main.java,v $
|
2003-03-19 17:30:58 +00:00
|
|
|
* $Date: 2003/03/19 17:30:57 $
|
|
|
|
* $Revision: 1.29 $
|
2001-09-01 00:06:48 +00:00
|
|
|
*
|
|
|
|
*******************************************************************************
|
|
|
|
*/
|
|
|
|
|
|
|
|
package com.ibm.text.UCD;
|
|
|
|
import com.ibm.text.utility.*;
|
|
|
|
|
2001-12-13 23:36:29 +00:00
|
|
|
public final class Main implements UCD_Types {
|
|
|
|
|
|
|
|
static final String[] ALL_FILES = {
|
|
|
|
"CaseFolding",
|
|
|
|
"CompositionExclusions",
|
|
|
|
"DerivedBidiClass",
|
|
|
|
"DerivedBinaryProperties",
|
|
|
|
"DerivedCombiningClass",
|
|
|
|
"DerivedCoreProperties",
|
|
|
|
"DerivedDecompositionType",
|
|
|
|
"DerivedEastAsianWidth",
|
|
|
|
"DerivedGeneralCategory",
|
|
|
|
"DerivedJoiningGroup",
|
|
|
|
"DerivedJoiningType",
|
|
|
|
"DerivedLineBreak",
|
2003-03-12 16:01:26 +00:00
|
|
|
"DerivedNormalizationProps",
|
2001-12-13 23:36:29 +00:00
|
|
|
"DerivedNumericType",
|
|
|
|
"DerivedNumericValues",
|
|
|
|
"NormalizationTest",
|
|
|
|
"PropertyAliases",
|
|
|
|
"PropList",
|
|
|
|
"Scripts",
|
|
|
|
"SpecialCasing",
|
2003-02-25 23:38:23 +00:00
|
|
|
"HangulSyllableType",
|
2001-12-13 23:36:29 +00:00
|
|
|
"DerivedAge",
|
2003-02-25 23:38:23 +00:00
|
|
|
"StandardizedVariants",
|
2003-03-19 17:30:58 +00:00
|
|
|
"HangulSyllable",
|
2001-12-13 23:36:29 +00:00
|
|
|
//"OtherDerivedProperties",
|
|
|
|
};
|
2001-09-01 00:06:48 +00:00
|
|
|
|
2003-03-19 17:30:58 +00:00
|
|
|
static final String[] EXTRACTED_FILES = {
|
|
|
|
"DerivedBidiClass",
|
|
|
|
"DerivedBinaryProperties",
|
|
|
|
"DerivedCombiningClass",
|
|
|
|
"DerivedDecompositionType",
|
|
|
|
"DerivedEastAsianWidth",
|
|
|
|
"DerivedGeneralCategory",
|
|
|
|
"DerivedJoiningGroup",
|
|
|
|
"DerivedJoiningType",
|
|
|
|
"DerivedLineBreak",
|
|
|
|
"DerivedNumericType",
|
|
|
|
"DerivedNumericValues",
|
|
|
|
};
|
|
|
|
|
2001-09-01 00:06:48 +00:00
|
|
|
public static void main (String[] args) throws Exception {
|
|
|
|
|
|
|
|
for (int i = 0; i < args.length; ++i) {
|
2003-03-15 02:36:49 +00:00
|
|
|
|
|
|
|
long mask = 0;
|
|
|
|
|
2001-09-01 00:06:48 +00:00
|
|
|
String arg = args[i];
|
|
|
|
if (arg.charAt(0) == '#') return; // skip rest of line
|
|
|
|
|
|
|
|
Utility.fixDot();
|
|
|
|
System.out.println("Argument: " + args[i]);
|
2003-03-15 02:36:49 +00:00
|
|
|
|
|
|
|
// Expand string arguments
|
|
|
|
|
|
|
|
if (arg.equalsIgnoreCase("All")) {
|
|
|
|
args = Utility.append(ALL_FILES, Utility.subarray(args, i+1));
|
2003-03-19 17:30:58 +00:00
|
|
|
i = -1;
|
|
|
|
continue;
|
|
|
|
}
|
|
|
|
|
|
|
|
if (arg.equalsIgnoreCase("EXTRACTED")) {
|
|
|
|
args = Utility.append(EXTRACTED_FILES, Utility.subarray(args, i+1));
|
|
|
|
i = -1;
|
2003-03-15 02:36:49 +00:00
|
|
|
continue;
|
|
|
|
}
|
|
|
|
|
|
|
|
// make sure the UCD is set up
|
|
|
|
|
|
|
|
if (arg.equalsIgnoreCase("version")) {
|
|
|
|
Default.setUCD(args[++i]);
|
|
|
|
continue;
|
|
|
|
}
|
|
|
|
Default.ensureUCD();
|
|
|
|
|
|
|
|
// Now handle other options
|
2001-09-01 00:06:48 +00:00
|
|
|
|
2001-12-13 23:36:29 +00:00
|
|
|
if (arg.equalsIgnoreCase("verify")) {
|
|
|
|
VerifyUCD.verify();
|
2001-09-01 00:06:48 +00:00
|
|
|
VerifyUCD.checkCanonicalProperties();
|
|
|
|
VerifyUCD.CheckCaseFold();
|
|
|
|
VerifyUCD.checkAgainstUInfo();
|
|
|
|
|
2002-04-23 01:59:16 +00:00
|
|
|
} else if (arg.equalsIgnoreCase("build")) ConvertUCD.main(new String[]{Default.ucdVersion});
|
|
|
|
else if (arg.equalsIgnoreCase("statistics")) VerifyUCD.statistics();
|
2002-07-30 09:57:18 +00:00
|
|
|
else if (arg.equalsIgnoreCase("NFSkippable")) NFSkippable.main(null);
|
2002-03-20 00:21:43 +00:00
|
|
|
else if (arg.equalsIgnoreCase("diffIgnorable")) VerifyUCD.diffIgnorable();
|
2001-09-01 00:06:48 +00:00
|
|
|
else if (arg.equalsIgnoreCase("generateXML")) VerifyUCD.generateXML();
|
2001-09-06 01:30:31 +00:00
|
|
|
else if (arg.equalsIgnoreCase("checkSpeed")) VerifyUCD.checkSpeed();
|
2002-06-15 02:47:14 +00:00
|
|
|
else if (arg.equalsIgnoreCase("onetime")) VerifyUCD.oneTime();
|
2002-03-20 00:21:43 +00:00
|
|
|
else if (arg.equalsIgnoreCase("verifyNormalizationStability")) VerifyUCD.verifyNormalizationStability();
|
|
|
|
|
2002-06-13 21:14:05 +00:00
|
|
|
else if (arg.equalsIgnoreCase("definitionTransliterator")) GenerateHanTransliterator.main(0);
|
2002-05-29 02:01:00 +00:00
|
|
|
else if (arg.equalsIgnoreCase("romajiTransliterator")) GenerateHanTransliterator.main(1);
|
|
|
|
else if (arg.equalsIgnoreCase("pinYinTransliterator")) GenerateHanTransliterator.main(2);
|
2002-07-14 22:04:49 +00:00
|
|
|
else if (arg.equalsIgnoreCase("hanproperties")) GenerateHanTransliterator.readUnihan();
|
|
|
|
|
2003-02-25 23:38:23 +00:00
|
|
|
else if (arg.equalsIgnoreCase("fixChineseOverrides")) GenerateHanTransliterator.fixChineseOverrides();
|
|
|
|
|
|
|
|
|
|
|
|
|
2001-12-13 23:36:29 +00:00
|
|
|
else if (arg.equalsIgnoreCase("compareBlueberry")) VerifyUCD.compareBlueberry();
|
2002-05-29 02:01:00 +00:00
|
|
|
|
2002-10-05 01:28:58 +00:00
|
|
|
else if (arg.equalsIgnoreCase("testenum")) SampleEnum.test();
|
|
|
|
|
2002-09-25 06:40:14 +00:00
|
|
|
else if (arg.equalsIgnoreCase("quicktest")) QuickTest.test();
|
|
|
|
else if (arg.equalsIgnoreCase("TernaryStore")) TernaryStore.test();
|
|
|
|
|
2002-05-29 02:01:00 +00:00
|
|
|
else if (arg.equalsIgnoreCase("checkBIDI")) VerifyUCD.checkBIDI();
|
2002-06-04 01:59:02 +00:00
|
|
|
else if (arg.equalsIgnoreCase("Buildnames")) BuildNames.main(null);
|
2002-06-13 21:14:05 +00:00
|
|
|
else if (arg.equalsIgnoreCase("TestNormalization")) TestNormalization.main(null);
|
2002-05-29 02:01:00 +00:00
|
|
|
|
2002-07-30 09:57:18 +00:00
|
|
|
|
2002-10-01 01:19:16 +00:00
|
|
|
else if (arg.equalsIgnoreCase("binary")) FastBinarySearch.test();
|
|
|
|
|
2002-09-25 06:40:14 +00:00
|
|
|
else if (arg.equalsIgnoreCase("GenerateCaseTest")) GenerateCaseTest.main(null);
|
2002-08-09 23:56:24 +00:00
|
|
|
else if (arg.equalsIgnoreCase("checkDecompFolding")) VerifyUCD.checkDecompFolding();
|
|
|
|
|
2002-08-04 21:38:45 +00:00
|
|
|
else if (arg.equalsIgnoreCase("breaktest")) GenerateBreakTest.main(null);
|
2002-08-08 15:35:01 +00:00
|
|
|
else if (arg.equalsIgnoreCase("checkcollator")) CheckCollator.main(null);
|
2001-09-06 01:30:31 +00:00
|
|
|
|
2002-07-30 09:57:18 +00:00
|
|
|
else if (arg.equalsIgnoreCase("genSplit")) GenerateData.genSplit();
|
|
|
|
else if (arg.equalsIgnoreCase("iana")) IANANames.testSensitivity();
|
|
|
|
|
2001-09-01 00:06:48 +00:00
|
|
|
else if (arg.equalsIgnoreCase("testDerivedProperties")) DerivedProperty.test();
|
|
|
|
else if (arg.equalsIgnoreCase("checkCase")) VerifyUCD.checkCase();
|
2002-03-15 00:34:46 +00:00
|
|
|
else if (arg.equalsIgnoreCase("checkCase3")) VerifyUCD.checkCase3();
|
2001-11-13 02:31:55 +00:00
|
|
|
else if (arg.equalsIgnoreCase("checkCaseLong")) VerifyUCD.checkCase2(true);
|
|
|
|
else if (arg.equalsIgnoreCase("checkCaseShort")) VerifyUCD.checkCase2(false);
|
2001-09-01 00:06:48 +00:00
|
|
|
else if (arg.equalsIgnoreCase("checkCanonicalProperties")) VerifyUCD.checkCanonicalProperties();
|
|
|
|
else if (arg.equalsIgnoreCase("CheckCaseFold")) VerifyUCD.CheckCaseFold();
|
2002-06-22 01:21:11 +00:00
|
|
|
else if (arg.equalsIgnoreCase("genIDN")) VerifyUCD.genIDN();
|
|
|
|
else if (arg.equalsIgnoreCase("VerifyIDN")) VerifyUCD.VerifyIDN();
|
2001-09-01 00:06:48 +00:00
|
|
|
else if (arg.equalsIgnoreCase("NFTest")) VerifyUCD.NFTest();
|
|
|
|
else if (arg.equalsIgnoreCase("test1")) VerifyUCD.test1();
|
2002-03-15 00:34:46 +00:00
|
|
|
else if (arg.equalsIgnoreCase("TrailingZeros")) GenerateData.genTrailingZeros();
|
|
|
|
else if (arg.equalsIgnoreCase("GenerateThaiBreaks")) GenerateThaiBreaks.main(null);
|
|
|
|
|
2001-09-01 00:06:48 +00:00
|
|
|
//else if (arg.equalsIgnoreCase("checkAgainstUInfo")) checkAgainstUInfo();
|
|
|
|
else if (arg.equalsIgnoreCase("checkScripts")) VerifyUCD.checkScripts();
|
|
|
|
else if (arg.equalsIgnoreCase("IdentifierTest")) VerifyUCD.IdentifierTest();
|
|
|
|
else if (arg.equalsIgnoreCase("BuildNames")) BuildNames.main(null);
|
2001-10-25 20:33:46 +00:00
|
|
|
else if (arg.equalsIgnoreCase("JavascriptProperties")) WriteJavaScriptInfo.assigned();
|
2002-03-15 00:34:46 +00:00
|
|
|
else if (arg.equalsIgnoreCase("TestDirectoryIterator")) DirectoryIterator.test();
|
|
|
|
else if (arg.equalsIgnoreCase("checkIdentical")) GenerateData.handleIdentical();
|
2003-02-25 23:38:23 +00:00
|
|
|
else if (arg.equalsIgnoreCase("testnameuniqueness")) TestNameUniqueness.test();
|
2003-03-15 02:36:49 +00:00
|
|
|
else if (arg.equalsIgnoreCase("checkDifferences")) GenerateData.checkDifferences("3.2.0");
|
2002-04-23 01:59:16 +00:00
|
|
|
|
|
|
|
//else if (arg.equalsIgnoreCase("NormalizationCharts")) ChartGenerator.writeNormalizationCharts();
|
|
|
|
|
|
|
|
|
2001-12-06 00:05:53 +00:00
|
|
|
/*else if (arg.equalsIgnoreCase("writeNormalizerTestSuite"))
|
2001-09-01 00:06:48 +00:00
|
|
|
GenerateData.writeNormalizerTestSuite("NormalizationTest-3.1.1d1.txt");
|
2001-12-06 00:05:53 +00:00
|
|
|
*/
|
2001-12-13 23:36:29 +00:00
|
|
|
// EXTRACTED PROPERTIES
|
|
|
|
|
2003-03-15 02:36:49 +00:00
|
|
|
else if (arg.equalsIgnoreCase("DerivedBidiClass")) {
|
2001-12-13 23:36:29 +00:00
|
|
|
GenerateData.generateVerticalSlice(BIDI_CLASS, BIDI_CLASS+NEXT_ENUM, GenerateData.HEADER_DERIVED,
|
2002-03-15 00:34:46 +00:00
|
|
|
"DerivedData/extracted/", "DerivedBidiClass");
|
2001-12-13 23:36:29 +00:00
|
|
|
|
|
|
|
} else if (arg.equalsIgnoreCase("DerivedBinaryProperties")) {
|
|
|
|
GenerateData.generateVerticalSlice(BINARY_PROPERTIES, BINARY_PROPERTIES+1, GenerateData.HEADER_DERIVED,
|
2002-03-15 00:34:46 +00:00
|
|
|
"DerivedData/extracted/", "DerivedBinaryProperties" );
|
2001-12-13 23:36:29 +00:00
|
|
|
|
|
|
|
} else if (arg.equalsIgnoreCase("DerivedCombiningClass")) {
|
|
|
|
GenerateData.generateVerticalSlice(COMBINING_CLASS, COMBINING_CLASS+NEXT_ENUM, GenerateData.HEADER_DERIVED,
|
2002-03-15 00:34:46 +00:00
|
|
|
"DerivedData/extracted/", "DerivedCombiningClass" );
|
2001-12-13 23:36:29 +00:00
|
|
|
|
|
|
|
} else if (arg.equalsIgnoreCase("DerivedDecompositionType")) {
|
|
|
|
GenerateData.generateVerticalSlice(DECOMPOSITION_TYPE, DECOMPOSITION_TYPE+NEXT_ENUM, GenerateData.HEADER_DERIVED,
|
2002-03-15 00:34:46 +00:00
|
|
|
"DerivedData/extracted/", "DerivedDecompositionType" );
|
2001-12-13 23:36:29 +00:00
|
|
|
|
|
|
|
} else if (arg.equalsIgnoreCase("DerivedEastAsianWidth")) {
|
|
|
|
GenerateData.generateVerticalSlice(EAST_ASIAN_WIDTH, EAST_ASIAN_WIDTH+NEXT_ENUM, GenerateData.HEADER_DERIVED,
|
2002-03-15 00:34:46 +00:00
|
|
|
"DerivedData/extracted/", "DerivedEastAsianWidth" );
|
2001-12-13 23:36:29 +00:00
|
|
|
|
|
|
|
} else if (arg.equalsIgnoreCase("DerivedGeneralCategory")) {
|
|
|
|
GenerateData.generateVerticalSlice(CATEGORY, CATEGORY+NEXT_ENUM, GenerateData.HEADER_DERIVED,
|
2002-03-15 00:34:46 +00:00
|
|
|
"DerivedData/extracted/", "DerivedGeneralCategory" );
|
2001-12-13 23:36:29 +00:00
|
|
|
|
|
|
|
} else if (arg.equalsIgnoreCase("DerivedJoiningGroup")) {
|
|
|
|
GenerateData.generateVerticalSlice(JOINING_GROUP, JOINING_GROUP+NEXT_ENUM, GenerateData.HEADER_DERIVED,
|
2002-03-15 00:34:46 +00:00
|
|
|
"DerivedData/extracted/", "DerivedJoiningGroup" );
|
2001-12-13 23:36:29 +00:00
|
|
|
|
|
|
|
} else if (arg.equalsIgnoreCase("DerivedJoiningType")) {
|
|
|
|
GenerateData.generateVerticalSlice(JOINING_TYPE, JOINING_TYPE+NEXT_ENUM, GenerateData.HEADER_DERIVED,
|
2002-03-15 00:34:46 +00:00
|
|
|
"DerivedData/extracted/", "DerivedJoiningType" );
|
2001-12-13 23:36:29 +00:00
|
|
|
|
|
|
|
} else if (arg.equalsIgnoreCase("DerivedLineBreak")) {
|
|
|
|
GenerateData.generateVerticalSlice(LINE_BREAK, LINE_BREAK+NEXT_ENUM, GenerateData.HEADER_DERIVED,
|
2002-03-15 00:34:46 +00:00
|
|
|
"DerivedData/extracted/", "DerivedLineBreak" );
|
2001-12-13 23:36:29 +00:00
|
|
|
|
|
|
|
} else if (arg.equalsIgnoreCase("DerivedNumericType")) {
|
|
|
|
GenerateData.generateVerticalSlice(NUMERIC_TYPE, NUMERIC_TYPE+NEXT_ENUM, GenerateData.HEADER_DERIVED,
|
2002-03-15 00:34:46 +00:00
|
|
|
"DerivedData/extracted/", "DerivedNumericType" );
|
2001-12-13 23:36:29 +00:00
|
|
|
|
2003-02-25 23:38:23 +00:00
|
|
|
} else if (arg.equalsIgnoreCase("HangulSyllableType")) {
|
|
|
|
GenerateData.generateVerticalSlice(HANGUL_SYLLABLE_TYPE,HANGUL_SYLLABLE_TYPE+NEXT_ENUM, GenerateData.HEADER_EXTEND,
|
|
|
|
"DerivedData/", "HangulSyllableType" );
|
|
|
|
|
2001-12-13 23:36:29 +00:00
|
|
|
} else if (arg.equalsIgnoreCase("DerivedNumericValues")) {
|
|
|
|
GenerateData.generateVerticalSlice(LIMIT_ENUM, LIMIT_ENUM, GenerateData.HEADER_DERIVED,
|
2002-03-15 00:34:46 +00:00
|
|
|
"DerivedData/extracted/", "DerivedNumericValues" );
|
2001-12-13 23:36:29 +00:00
|
|
|
|
2003-02-25 23:38:23 +00:00
|
|
|
} else if (arg.equalsIgnoreCase("StandardizedVariants")) {
|
|
|
|
GenerateStandardizedVariants.generate();
|
|
|
|
|
2001-12-13 23:36:29 +00:00
|
|
|
// OTHER STANDARD PROPERTIES
|
|
|
|
|
|
|
|
} else if (arg.equalsIgnoreCase("CaseFolding")) {
|
|
|
|
GenerateCaseFolding.makeCaseFold(true);
|
|
|
|
GenerateCaseFolding.makeCaseFold(false);
|
|
|
|
|
|
|
|
} else if (arg.equalsIgnoreCase("SpecialCasing")) {
|
2002-03-15 00:34:46 +00:00
|
|
|
GenerateCaseFolding.generateSpecialCasing(true);
|
|
|
|
GenerateCaseFolding.generateSpecialCasing(false);
|
2001-12-13 23:36:29 +00:00
|
|
|
|
|
|
|
} else if (arg.equalsIgnoreCase("CompositionExclusions")) {
|
|
|
|
GenerateData.generateCompExclusions();
|
|
|
|
|
|
|
|
} else if (arg.equalsIgnoreCase("DerivedAge")) {
|
|
|
|
GenerateData.generateAge("DerivedData/", "DerivedAge");
|
|
|
|
|
2002-05-29 02:01:00 +00:00
|
|
|
} else if (arg.equalsIgnoreCase("backwardsCompat")) {
|
|
|
|
GenerateData.backwardsCompat("DerivedData/extracted/", "Compatibility_ID_START",
|
|
|
|
new int[] {ID_Start, ID_Continue_NO_Cf, Mod_ID_Start, Mod_ID_Continue_NO_Cf});
|
|
|
|
|
2001-12-13 23:36:29 +00:00
|
|
|
} else if (arg.equalsIgnoreCase("DerivedCoreProperties")) {
|
|
|
|
GenerateData.generateDerived(DERIVED_CORE, true, GenerateData.HEADER_DERIVED, "DerivedData/", "DerivedCoreProperties");
|
|
|
|
|
2003-03-12 16:01:26 +00:00
|
|
|
} else if (arg.equalsIgnoreCase("DerivedNormalizationProps")) {
|
2001-12-13 23:36:29 +00:00
|
|
|
GenerateData.generateDerived(DERIVED_NORMALIZATION, true, GenerateData.HEADER_DERIVED, "DerivedData/",
|
2003-03-12 16:01:26 +00:00
|
|
|
"DerivedNormalizationProps" );
|
2001-12-13 23:36:29 +00:00
|
|
|
|
|
|
|
} else if (arg.equalsIgnoreCase("NormalizationTest")) {
|
|
|
|
GenerateData.writeNormalizerTestSuite("DerivedData/", "NormalizationTest");
|
|
|
|
|
|
|
|
} else if (arg.equalsIgnoreCase("PropertyAliases")) {
|
|
|
|
GenerateData.generatePropertyAliases();
|
|
|
|
|
|
|
|
} else if (arg.equalsIgnoreCase("PropList")) {
|
|
|
|
GenerateData.generateVerticalSlice(BINARY_PROPERTIES + White_space, BINARY_PROPERTIES + NEXT_ENUM,
|
|
|
|
GenerateData.HEADER_EXTEND, "DerivedData/", "PropList");
|
|
|
|
|
|
|
|
} else if (arg.equalsIgnoreCase("Scripts")) {
|
|
|
|
GenerateData.generateVerticalSlice(SCRIPT+1, SCRIPT + NEXT_ENUM,
|
|
|
|
GenerateData.HEADER_SCRIPTS, "DerivedData/", "Scripts");
|
|
|
|
// OTHER TESTING
|
|
|
|
|
|
|
|
} else if (arg.equalsIgnoreCase("OtherDerivedProperties")) {
|
|
|
|
//mask = Utility.setBits(0, NFC_Leading, NFC_Resulting);
|
2003-02-25 23:38:23 +00:00
|
|
|
GenerateData.generateDerived((byte)(ALL & ~DERIVED_CORE & ~DERIVED_NORMALIZATION), false, GenerateData.HEADER_DERIVED, "OtherData/", "OtherDerivedProperties");
|
2001-12-13 23:36:29 +00:00
|
|
|
|
|
|
|
} else if (arg.equalsIgnoreCase("AllBinary")) {
|
|
|
|
GenerateData.generateVerticalSlice(BINARY_PROPERTIES, BINARY_PROPERTIES + NEXT_ENUM,
|
|
|
|
GenerateData.HEADER_EXTEND, "OtherDerived/", "AllBinary");
|
|
|
|
|
|
|
|
} else if (arg.equalsIgnoreCase("DerivedGeneralCategoryTEST")) {
|
|
|
|
GenerateData.generateVerticalSlice(CATEGORY+29, CATEGORY+32, GenerateData.HEADER_DERIVED,
|
|
|
|
"DerivedData/", "DerivedGeneralCategory" );
|
|
|
|
|
|
|
|
} else if (arg.equalsIgnoreCase("differences")) {
|
|
|
|
GenerateData.listDifferences();
|
|
|
|
|
|
|
|
} else if (arg.equalsIgnoreCase("partition")) {
|
|
|
|
GenerateData.partitionProperties();
|
|
|
|
|
|
|
|
} else if (arg.equalsIgnoreCase("listAccents")) {
|
|
|
|
GenerateData.listCombiningAccents();
|
|
|
|
|
|
|
|
} else if (arg.equalsIgnoreCase("listGreekVowels")) {
|
|
|
|
GenerateData.listGreekVowels();
|
|
|
|
|
|
|
|
} else if (arg.equalsIgnoreCase("listKatakana")) {
|
|
|
|
GenerateData.listKatakana();
|
|
|
|
|
|
|
|
/*
|
|
|
|
} else if (arg.equalsIgnoreCase("DerivedFullNormalization")) {
|
|
|
|
mask = Utility.setBits(0, DerivedProperty.GenNFD, DerivedProperty.GenNFKC);
|
|
|
|
GenerateData.generateDerived(mask, GenerateData.HEADER_DERIVED, "DerivedData/", "DerivedFullNormalization" );
|
|
|
|
} else if (arg.equalsIgnoreCase("caseignorable")) {
|
|
|
|
mask = Utility.setBits(0, DerivedProperty.Other_Case_Ignorable, DerivedProperty.Type_i);
|
|
|
|
GenerateData.generateDerived(mask, GenerateData.HEADER_DERIVED, "OtherData/", "CaseIgnorable" );
|
|
|
|
} else if (arg.equalsIgnoreCase("nfunsafestart")) {
|
|
|
|
mask = Utility.setBits(0, NFD_UnsafeStart, NFKC_UnsafeStart);
|
|
|
|
GenerateData.generateDerived(mask, GenerateData.HEADER_DERIVED, "OtherData/", "NFUnsafeStart");
|
|
|
|
*/
|
|
|
|
|
|
|
|
} else {
|
|
|
|
throw new IllegalArgumentException(" ! Unknown option -- see Main.java for options");
|
2001-09-01 00:06:48 +00:00
|
|
|
}
|
2001-12-13 23:36:29 +00:00
|
|
|
|
|
|
|
|
|
|
|
//checkHoffman("\u05B8\u05B9\u05B1\u0591\u05C3\u05B0\u05AC\u059F");
|
|
|
|
//checkHoffman("\u0592\u05B7\u05BC\u05A5\u05B0\u05C0\u05C4\u05AD");
|
|
|
|
|
|
|
|
|
|
|
|
//GenerateData.generateDerived(Utility.setBits(0, DerivedProperty.PropMath, DerivedProperty.Mod_ID_Continue_NO_Cf),
|
|
|
|
// GenerateData.HEADER_DERIVED, "DerivedData/", "DerivedPropData2" );
|
|
|
|
//GenerateData.generateVerticalSlice(SCRIPT, SCRIPT+1, "ScriptCommon" );
|
|
|
|
//listStrings("LowerCase" , 0,0);
|
|
|
|
//GenerateData.generateVerticalSlice(0, LIMIT_ENUM, SKIP_SPECIAL, PROPLIST1, "DerivedData/", "DerivedPropData1" );
|
|
|
|
|
|
|
|
// AGE stuff
|
|
|
|
//UCD ucd = UCD.make();
|
|
|
|
//System.out.println(ucd.getAgeID(0x61));
|
|
|
|
//System.out.println(ucd.getAgeID(0x2FA1D));
|
|
|
|
|
|
|
|
//
|
2001-09-01 00:06:48 +00:00
|
|
|
}
|
|
|
|
}
|
2001-12-13 23:36:29 +00:00
|
|
|
|
2001-09-01 00:06:48 +00:00
|
|
|
}
|