ICU-6195 don't generate ligatures for characters with the FullCompositionExclusion property set to TRUE.

X-SVN-Rev: 23584
This commit is contained in:
Eric Mader 2008-03-13 18:20:13 +00:00
parent d4774599b6
commit 71c9e0f7fb

View File

@ -1,6 +1,6 @@
/**
*******************************************************************************
* Copyright (C) 2002-2005, International Business Machines Corporation and *
* Copyright (C) 2002-2008, International Business Machines Corporation and *
* others. All Rights Reserved. *
*******************************************************************************
*/
@ -457,7 +457,8 @@ public class CanonGSUBBuilder
public static void buildDecompTables(String fileName)
{
// F900 - FAFF are compatibility ideographs. They all decompose to a single other character, and can be ignored.
UnicodeSet decompSet = new UnicodeSet("[[[\\P{Hangul}] & [\\p{DecompositionType=Canonical}]] - [\uF900-\uFAFF]]");
//UnicodeSet decompSet = new UnicodeSet("[[[\\P{Hangul}] & [\\p{DecompositionType=Canonical}]] - [\uF900-\uFAFF]]");
UnicodeSet decompSet = new UnicodeSet("[[\\p{DecompositionType=Canonical}] & [\\P{FullCompositionExclusion}] & [\\P{Hangul}]]");
CanonicalCharacterData data = CanonicalCharacterData.factory(decompSet);
ClassTable classTable = new ClassTable();