diff --git a/tools/unicodetools/com/ibm/text/UCA/GenOverlap.java b/tools/unicodetools/com/ibm/text/UCA/GenOverlap.java index f9b0e57eada..eaea55aeec8 100644 --- a/tools/unicodetools/com/ibm/text/UCA/GenOverlap.java +++ b/tools/unicodetools/com/ibm/text/UCA/GenOverlap.java @@ -5,8 +5,8 @@ ******************************************************************************* * * $Source: /xsrl/Nsvn/icu/unicodetools/com/ibm/text/UCA/GenOverlap.java,v $ -* $Date: 2001/12/03 19:29:35 $ -* $Revision: 1.6 $ +* $Date: 2002/03/15 01:57:01 $ +* $Revision: 1.7 $ * ******************************************************************************* */ @@ -17,7 +17,7 @@ import java.util.*; import java.io.*; import com.ibm.text.UCD.*; import com.ibm.text.utility.*; -import com.ibm.text.UTF16; +import com.ibm.icu.text.UTF16; public class GenOverlap implements UCD_Types { diff --git a/tools/unicodetools/com/ibm/text/UCA/UCA.java b/tools/unicodetools/com/ibm/text/UCA/UCA.java index f7f04b964c8..68912c44747 100644 --- a/tools/unicodetools/com/ibm/text/UCA/UCA.java +++ b/tools/unicodetools/com/ibm/text/UCA/UCA.java @@ -5,8 +5,8 @@ ******************************************************************************* * * $Source: /xsrl/Nsvn/icu/unicodetools/com/ibm/text/UCA/UCA.java,v $ -* $Date: 2001/12/03 19:29:35 $ -* $Revision: 1.8 $ +* $Date: 2002/03/15 01:57:01 $ +* $Revision: 1.9 $ * ******************************************************************************* */ @@ -23,7 +23,7 @@ import java.io.IOException; import com.ibm.text.UCD.Normalizer; import com.ibm.text.UCD.UCD; import com.ibm.text.utility.*; -import com.ibm.text.UTF16; +import com.ibm.icu.text.UTF16; //import com.ibm.text.CollationData.*; diff --git a/tools/unicodetools/com/ibm/text/UCA/WriteCharts.java b/tools/unicodetools/com/ibm/text/UCA/WriteCharts.java index 50c2d0fefbb..1f4f800ada2 100644 --- a/tools/unicodetools/com/ibm/text/UCA/WriteCharts.java +++ b/tools/unicodetools/com/ibm/text/UCA/WriteCharts.java @@ -5,8 +5,8 @@ ******************************************************************************* * * $Source: /xsrl/Nsvn/icu/unicodetools/com/ibm/text/UCA/WriteCharts.java,v $ -* $Date: 2001/10/26 23:32:03 $ -* $Revision: 1.3 $ +* $Date: 2002/03/15 01:57:01 $ +* $Revision: 1.4 $ * ******************************************************************************* */ @@ -18,7 +18,7 @@ import java.util.*; import java.io.*; import com.ibm.text.UCD.*; import com.ibm.text.utility.*; -import com.ibm.text.UTF16; +import com.ibm.icu.text.UTF16; public class WriteCharts implements UCD_Types { diff --git a/tools/unicodetools/com/ibm/text/UCA/WriteCollationData.java b/tools/unicodetools/com/ibm/text/UCA/WriteCollationData.java index 2b135f318ac..cc3715638a3 100644 --- a/tools/unicodetools/com/ibm/text/UCA/WriteCollationData.java +++ b/tools/unicodetools/com/ibm/text/UCA/WriteCollationData.java @@ -5,8 +5,8 @@ ******************************************************************************* * * $Source: /xsrl/Nsvn/icu/unicodetools/com/ibm/text/UCA/WriteCollationData.java,v $ -* $Date: 2001/10/31 00:01:28 $ -* $Revision: 1.7 $ +* $Date: 2002/03/15 01:57:01 $ +* $Revision: 1.8 $ * ******************************************************************************* */ @@ -14,7 +14,7 @@ package com.ibm.text.UCA; import java.util.*; -import com.ibm.text.UTF16; +import com.ibm.icu.text.UTF16; import java.io.*; //import java.text.*; @@ -27,6 +27,7 @@ import java.text.Collator; import com.ibm.text.UCD.*; import com.ibm.text.UCD.UCD_Types; import com.ibm.text.utility.*; +import com.ibm.text.UCD.Normalizer; public class WriteCollationData implements UCD_Types { public static final String copyright = @@ -37,6 +38,8 @@ public class WriteCollationData implements UCD_Types { static final boolean DO_CHARTS = true; + static final String UNICODE_VERSION = UCD.latestVersion; + static UCA collator; static char unique = '\u0000'; static TreeMap sortedD = new TreeMap(); @@ -162,7 +165,7 @@ public class WriteCollationData implements UCD_Types { static public void writeCaseExceptions() { System.err.println("Writing Case Exceptions"); - Normalizer NFKC = new Normalizer(Normalizer.NFKC); + Normalizer NFKC = new Normalizer(Normalizer.NFKC, UNICODE_VERSION); for (char a = 0; a < 0xFFFF; ++a) { if (!ucd.isRepresented(a)) continue; //if (0xA000 <= a && a <= 0xA48F) continue; // skip YI @@ -195,7 +198,7 @@ public class WriteCollationData implements UCD_Types { static public void writeCaseFolding() throws IOException { System.err.println("Writing Javascript data"); - BufferedReader in = Utility.openUnicodeFile("CaseFolding", ""); + BufferedReader in = Utility.openUnicodeFile("CaseFolding", UNICODE_VERSION, true); // new BufferedReader(new FileReader(DIR31 + "CaseFolding-3.d3.alpha.txt"), 64*1024); log = new PrintWriter(new FileOutputStream("CaseFolding_data.js")); log.println("var CF = new Object();"); @@ -239,8 +242,8 @@ public class WriteCollationData implements UCD_Types { static public void writeJavascriptInfo() throws IOException { System.err.println("Writing Javascript data"); - Normalizer normKD = new Normalizer(Normalizer.NFKD); - Normalizer normD = new Normalizer(Normalizer.NFD); + Normalizer normKD = new Normalizer(Normalizer.NFKD, UNICODE_VERSION); + Normalizer normD = new Normalizer(Normalizer.NFD, UNICODE_VERSION); log = new PrintWriter(new FileOutputStream("Normalization_data.js")); int count = 0; @@ -464,7 +467,7 @@ public class WriteCollationData implements UCD_Types { static void checkBadDecomps(int strength, boolean decomposition) { int oldStrength = collator.getStrength(); collator.setStrength(strength); - Normalizer nfkd = new Normalizer(Normalizer.NFKD); + Normalizer nfkd = new Normalizer(Normalizer.NFKD, UNICODE_VERSION); if (strength == 1) { log.println("

3. Primaries Incompatible with Decompositions

"); } else { @@ -764,7 +767,7 @@ public class WriteCollationData implements UCD_Types { 32*1024)); diLog.write('\uFEFF'); - Normalizer nfd = new Normalizer(Normalizer.NFD); + Normalizer nfd = new Normalizer(Normalizer.NFD, UNICODE_VERSION); Set sorted = new TreeSet(); @@ -805,7 +808,7 @@ public class WriteCollationData implements UCD_Types { 32*1024)); diLog.write('\uFEFF'); - Normalizer nfd = new Normalizer(Normalizer.NFD); + Normalizer nfd = new Normalizer(Normalizer.NFD, UNICODE_VERSION); int[] ces = new int[50]; @@ -848,7 +851,7 @@ public class WriteCollationData implements UCD_Types { //diLog = new PrintWriter(new FileOutputStream(GEN_DIR + "DisjointIgnorables.txt")); - Normalizer nfd = new Normalizer(Normalizer.NFD); + Normalizer nfd = new Normalizer(Normalizer.NFD, UNICODE_VERSION); int[] ces = new int[50]; int[] secondariesZP = new int[400]; @@ -1016,7 +1019,7 @@ public class WriteCollationData implements UCD_Types { //diLog = new PrintWriter(new FileOutputStream(GEN_DIR + "DisjointIgnorables.txt")); - Normalizer nfd = new Normalizer(Normalizer.NFD); + Normalizer nfd = new Normalizer(Normalizer.NFD, UNICODE_VERSION); int[] ces = new int[50]; int[] secondariesZP = new int[400]; @@ -1218,7 +1221,7 @@ public class WriteCollationData implements UCD_Types { //if (true) return; int[] ces = new int[50]; - Normalizer nfd = new Normalizer(Normalizer.NFD); + Normalizer nfd = new Normalizer(Normalizer.NFD, UNICODE_VERSION); if (false) { int len2 = collator.getCEs("\u2474", true, ces); @@ -1650,8 +1653,8 @@ public class WriteCollationData implements UCD_Types { || primary > oldJamo5 && primary <= oldJamo6; } - static Normalizer NFKD = new Normalizer(Normalizer.NFKD); - static Normalizer NFD = new Normalizer(Normalizer.NFD); + static Normalizer NFKD = new Normalizer(Normalizer.NFKD, UNICODE_VERSION); + static Normalizer NFD = new Normalizer(Normalizer.NFD, UNICODE_VERSION); static int variableHigh = 0; static final int COMMON = 5; @@ -2698,8 +2701,8 @@ A4C6;YI RADICAL KE;So;0;ON;;;;;N;;;;; static final char MARK2 = '\u0002'; //Normalizer normalizer = new Normalizer(Normalizer.NFC, true); - static Normalizer toC = new Normalizer(Normalizer.NFC); - static Normalizer toD = new Normalizer(Normalizer.NFD); + static Normalizer toC = new Normalizer(Normalizer.NFC, UNICODE_VERSION); + static Normalizer toD = new Normalizer(Normalizer.NFD, UNICODE_VERSION); static TreeMap MismatchedC = new TreeMap(); static TreeMap MismatchedN = new TreeMap(); static TreeMap MismatchedD = new TreeMap(); diff --git a/tools/unicodetools/com/ibm/text/UCA/WriteHTMLCollation.java b/tools/unicodetools/com/ibm/text/UCA/WriteHTMLCollation.java index c9b8a4aa538..29ab9d28a8a 100644 --- a/tools/unicodetools/com/ibm/text/UCA/WriteHTMLCollation.java +++ b/tools/unicodetools/com/ibm/text/UCA/WriteHTMLCollation.java @@ -5,8 +5,8 @@ ******************************************************************************* * * $Source: /xsrl/Nsvn/icu/unicodetools/com/ibm/text/UCA/WriteHTMLCollation.java,v $ -* $Date: 2001/10/31 00:01:28 $ -* $Revision: 1.4 $ +* $Date: 2002/03/15 01:57:01 $ +* $Revision: 1.5 $ * ******************************************************************************* */ @@ -19,6 +19,7 @@ import java.io.*; //import com.ibm.text.unicode.*; import com.ibm.text.UCD.*; import com.ibm.text.utility.*; +import com.ibm.icu.text.Normalizer; public class WriteHTMLCollation implements UCD_Types { public static final String copyright = diff --git a/tools/unicodetools/com/ibm/text/UCD/DerivedProperty.java b/tools/unicodetools/com/ibm/text/UCD/DerivedProperty.java index 8bf547acbc1..ab472d32619 100644 --- a/tools/unicodetools/com/ibm/text/UCD/DerivedProperty.java +++ b/tools/unicodetools/com/ibm/text/UCD/DerivedProperty.java @@ -5,15 +5,15 @@ ******************************************************************************* * * $Source: /xsrl/Nsvn/icu/unicodetools/com/ibm/text/UCD/DerivedProperty.java,v $ -* $Date: 2001/12/13 23:35:54 $ -* $Revision: 1.10 $ +* $Date: 2002/03/15 01:57:01 $ +* $Revision: 1.11 $ * ******************************************************************************* */ package com.ibm.text.UCD; import com.ibm.text.utility.*; -import com.ibm.text.*; +import com.ibm.icu.text.UTF16; import java.util.*; public final class DerivedProperty implements UCD_Types { diff --git a/tools/unicodetools/com/ibm/text/UCD/GenerateCaseFolding.java b/tools/unicodetools/com/ibm/text/UCD/GenerateCaseFolding.java index 74851ab0ac7..a69dac59e38 100644 --- a/tools/unicodetools/com/ibm/text/UCD/GenerateCaseFolding.java +++ b/tools/unicodetools/com/ibm/text/UCD/GenerateCaseFolding.java @@ -5,8 +5,8 @@ ******************************************************************************* * * $Source: /xsrl/Nsvn/icu/unicodetools/com/ibm/text/UCD/GenerateCaseFolding.java,v $ -* $Date: 2002/03/15 00:34:46 $ -* $Revision: 1.5 $ +* $Date: 2002/03/15 01:57:01 $ +* $Revision: 1.6 $ * ******************************************************************************* */ @@ -15,7 +15,7 @@ package com.ibm.text.UCD; import java.util.*; import java.io.*; -import com.ibm.text.UTF16; +import com.ibm.icu.text.UTF16; import com.ibm.text.utility.*; diff --git a/tools/unicodetools/com/ibm/text/UCD/GenerateData.java b/tools/unicodetools/com/ibm/text/UCD/GenerateData.java index 9a082f43938..2c2f6a69631 100644 --- a/tools/unicodetools/com/ibm/text/UCD/GenerateData.java +++ b/tools/unicodetools/com/ibm/text/UCD/GenerateData.java @@ -5,8 +5,8 @@ ******************************************************************************* * * $Source: /xsrl/Nsvn/icu/unicodetools/com/ibm/text/UCD/GenerateData.java,v $ -* $Date: 2002/03/15 00:34:46 $ -* $Revision: 1.14 $ +* $Date: 2002/03/15 01:57:01 $ +* $Revision: 1.15 $ * ******************************************************************************* */ @@ -19,8 +19,8 @@ import java.text.DateFormat; import java.text.SimpleDateFormat; import com.ibm.text.utility.*; -import com.ibm.text.UTF16; -import com.ibm.text.UnicodeSet; +import com.ibm.icu.text.UTF16; +import com.ibm.icu.text.UnicodeSet; public class GenerateData implements UCD_Types { diff --git a/tools/unicodetools/com/ibm/text/UCD/GenerateHanTransliterator.java b/tools/unicodetools/com/ibm/text/UCD/GenerateHanTransliterator.java index 167d34dbb68..4e99edd3a29 100644 --- a/tools/unicodetools/com/ibm/text/UCD/GenerateHanTransliterator.java +++ b/tools/unicodetools/com/ibm/text/UCD/GenerateHanTransliterator.java @@ -5,8 +5,8 @@ ******************************************************************************* * * $Source: /xsrl/Nsvn/icu/unicodetools/com/ibm/text/UCD/GenerateHanTransliterator.java,v $ -* $Date: 2001/12/06 00:05:53 $ -* $Revision: 1.2 $ +* $Date: 2002/03/15 01:57:01 $ +* $Revision: 1.3 $ * ******************************************************************************* */ @@ -14,7 +14,7 @@ package com.ibm.text.UCD; import java.io.*; import com.ibm.text.utility.*; -import com.ibm.text.UTF16; +import com.ibm.icu.text.UTF16; import java.util.*; diff --git a/tools/unicodetools/com/ibm/text/UCD/NFSkippable.java b/tools/unicodetools/com/ibm/text/UCD/NFSkippable.java index 94225599e65..ad347a21e94 100644 --- a/tools/unicodetools/com/ibm/text/UCD/NFSkippable.java +++ b/tools/unicodetools/com/ibm/text/UCD/NFSkippable.java @@ -1,6 +1,6 @@ package com.ibm.text.UCD; -import com.ibm.text.UTF16; -import com.ibm.text.UnicodeSet; +import com.ibm.icu.text.UTF16; +import com.ibm.icu.text.UnicodeSet; import java.util.BitSet; import com.ibm.text.utility.*; import java.io.PrintWriter; diff --git a/tools/unicodetools/com/ibm/text/UCD/Normalizer.java b/tools/unicodetools/com/ibm/text/UCD/Normalizer.java index 22ff5a5f681..69faa4382bb 100644 --- a/tools/unicodetools/com/ibm/text/UCD/Normalizer.java +++ b/tools/unicodetools/com/ibm/text/UCD/Normalizer.java @@ -5,8 +5,8 @@ ******************************************************************************* * * $Source: /xsrl/Nsvn/icu/unicodetools/com/ibm/text/UCD/Normalizer.java,v $ -* $Date: 2001/12/13 23:35:57 $ -* $Revision: 1.6 $ +* $Date: 2002/03/15 01:57:01 $ +* $Revision: 1.7 $ * ******************************************************************************* */ @@ -14,7 +14,7 @@ package com.ibm.text.UCD; import java.util.*; -import com.ibm.text.*; +import com.ibm.icu.text.UTF16; import com.ibm.text.utility.*; diff --git a/tools/unicodetools/com/ibm/text/UCD/NormalizerSample.java b/tools/unicodetools/com/ibm/text/UCD/NormalizerSample.java index 46c1093ad3b..c2722b71fed 100644 --- a/tools/unicodetools/com/ibm/text/UCD/NormalizerSample.java +++ b/tools/unicodetools/com/ibm/text/UCD/NormalizerSample.java @@ -2,6 +2,7 @@ package com.ibm.text.UCD; import java.util.*; import com.ibm.text.*; +import com.ibm.icu.text.UTF16; import com.ibm.text.utility.*; diff --git a/tools/unicodetools/com/ibm/text/UCD/PropertyLister.java b/tools/unicodetools/com/ibm/text/UCD/PropertyLister.java index d0925e05593..a95a2478862 100644 --- a/tools/unicodetools/com/ibm/text/UCD/PropertyLister.java +++ b/tools/unicodetools/com/ibm/text/UCD/PropertyLister.java @@ -5,8 +5,8 @@ ******************************************************************************* * * $Source: /xsrl/Nsvn/icu/unicodetools/com/ibm/text/UCD/PropertyLister.java,v $ -* $Date: 2001/12/13 23:35:57 $ -* $Revision: 1.7 $ +* $Date: 2002/03/15 01:57:01 $ +* $Revision: 1.8 $ * ******************************************************************************* */ @@ -15,7 +15,7 @@ package com.ibm.text.UCD; import java.io.*; import com.ibm.text.utility.*; -import com.ibm.text.UnicodeSet; +import com.ibm.icu.text.UnicodeSet; import java.text.NumberFormat; diff --git a/tools/unicodetools/com/ibm/text/UCD/UnicodeProperty.java b/tools/unicodetools/com/ibm/text/UCD/UnicodeProperty.java index 77054eea53b..ae344277088 100644 --- a/tools/unicodetools/com/ibm/text/UCD/UnicodeProperty.java +++ b/tools/unicodetools/com/ibm/text/UCD/UnicodeProperty.java @@ -1,5 +1,5 @@ package com.ibm.text.UCD; -import com.ibm.text.UnicodeSet; +import com.ibm.icu.text.UnicodeSet; import com.ibm.text.utility.*; public abstract class UnicodeProperty implements UCD_Types { diff --git a/tools/unicodetools/com/ibm/text/UCD/UnifiedBinaryProperty.java b/tools/unicodetools/com/ibm/text/UCD/UnifiedBinaryProperty.java index 83b430e306e..0b93c0eaa82 100644 --- a/tools/unicodetools/com/ibm/text/UCD/UnifiedBinaryProperty.java +++ b/tools/unicodetools/com/ibm/text/UCD/UnifiedBinaryProperty.java @@ -5,8 +5,8 @@ ******************************************************************************* * * $Source: /xsrl/Nsvn/icu/unicodetools/com/ibm/text/UCD/UnifiedBinaryProperty.java,v $ -* $Date: 2002/03/15 00:34:46 $ -* $Revision: 1.5 $ +* $Date: 2002/03/15 01:57:01 $ +* $Revision: 1.6 $ * ******************************************************************************* */ @@ -16,7 +16,7 @@ import java.io.*; import java.util.*; import com.ibm.text.utility.*; -import com.ibm.text.UnicodeSet; +import com.ibm.icu.text.UnicodeSet; final class UnifiedBinaryProperty extends UnicodeProperty { int majorProp; diff --git a/tools/unicodetools/com/ibm/text/UCD/VerifyUCD.java b/tools/unicodetools/com/ibm/text/UCD/VerifyUCD.java index e3e4814bf54..d10b87d675f 100644 --- a/tools/unicodetools/com/ibm/text/UCD/VerifyUCD.java +++ b/tools/unicodetools/com/ibm/text/UCD/VerifyUCD.java @@ -5,8 +5,8 @@ ******************************************************************************* * * $Source: /xsrl/Nsvn/icu/unicodetools/com/ibm/text/UCD/VerifyUCD.java,v $ -* $Date: 2002/03/15 00:34:46 $ -* $Revision: 1.9 $ +* $Date: 2002/03/15 01:57:01 $ +* $Revision: 1.10 $ * ******************************************************************************* */ @@ -20,9 +20,9 @@ import java.math.BigDecimal; import java.util.*; import java.io.*; //import java.text.Un; -import com.ibm.text.CanonicalIterator; -import com.ibm.text.UnicodeSet; -import com.ibm.text.UTF16; +import com.ibm.icu.text.CanonicalIterator; +import com.ibm.icu.text.UnicodeSet; +import com.ibm.icu.text.UTF16; import com.ibm.text.utility.*; public class VerifyUCD implements UCD_Types { diff --git a/tools/unicodetools/com/ibm/text/utility/Utility.java b/tools/unicodetools/com/ibm/text/utility/Utility.java index ce79e5ca700..8b27ebaab5e 100644 --- a/tools/unicodetools/com/ibm/text/utility/Utility.java +++ b/tools/unicodetools/com/ibm/text/utility/Utility.java @@ -5,8 +5,8 @@ ******************************************************************************* * * $Source: /xsrl/Nsvn/icu/unicodetools/com/ibm/text/utility/Utility.java,v $ -* $Date: 2002/03/15 00:34:46 $ -* $Revision: 1.11 $ +* $Date: 2002/03/15 01:57:01 $ +* $Revision: 1.12 $ * ******************************************************************************* */ @@ -16,7 +16,7 @@ package com.ibm.text.utility; import java.util.*; import java.text.*; import java.io.*; -import com.ibm.text.UnicodeSet; +import com.ibm.icu.text.UnicodeSet; import com.ibm.text.UCD.*; public final class Utility { // COMMON UTILITIES