| Modifier and Type | Class and Description |
|---|---|
| pack-priv static class |
| Modifier and Type | Field and Description |
|---|---|
| private final Normalizer2 | |
| pack-priv static final Map |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public void | addSourceTargetSet(UnicodeSet inputFilter, UnicodeSet sourceSet, UnicodeSet
TODO targetSet)Overrides com. |
| protected void | handleTransliterate(Replaceable
the buffer holding transliterated and
untransliterated text text, Transliterator.the indices indicating the start, limit, context
start, and context limit of the text. offsets,if true, assume more text may be inserted at
isIncremental)pos.limit and act accordingly. Otherwise,
transliterate all text between pos.start and
pos.limit and move pos.start up to
pos.limit.Implements abstract com. Transliterator#handleTransliterate.
|
| pack-priv static void |
| norm2 | back to summary |
|---|---|
| private final Normalizer2 norm2 | |
| SOURCE_CACHE | back to summary |
|---|---|
| pack-priv static final Map<Normalizer2, SourceTargetUtility> SOURCE_CACHE | |
| NormalizationTransliterator | back to summary |
|---|---|
| private NormalizationTransliterator(String id, Normalizer2 n2) Constructs a transliterator. | |
| addSourceTargetSet | back to summary |
|---|---|
| public void addSourceTargetSet(UnicodeSet inputFilter, UnicodeSet sourceSet, UnicodeSet targetSet) Overrides com. Doc from com. Returns the set of all characters that may be generated as replacement text by this transliterator, filtered by BOTH the input filter, and the current getFilter(). SHOULD BE OVERRIDDEN BY SUBCLASSES. It is probably an error for any transliterator to NOT override this, but we can't force them to for backwards compatibility. Other methods vector through this. When gathering the information on source and target, the compound transliterator makes things complicated. For example, suppose we have: Global FILTER = [ax] a > b; :: NULL; b > c; x > d;While the filter just allows a and x, b is an intermediate result, which could produce c. So the source and target sets cannot be gathered independently. What we have to do is filter the sources for the first transliterator according to the global filter, intersect that transliterator's filter. Based on that we get the target. The next transliterator gets as a global filter (global + last target). And so on. There is another complication: Global FILTER = [ax] a >|b; b >c;Even though b would be filtered from the input, whenever we have a backup, it could be part of the input. So ideally we will change the global filter as we go.
| |
| handleTransliterate | back to summary |
|---|---|
| protected void handleTransliterate(Replaceable text, Transliterator. Implements abstract com. Implements
| |
| register | back to summary |
|---|---|
| pack-priv static void register() System registration hook. | |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv final Normalizer2 |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public String | transform(String
to be transformed (eg lowercased) source)Implements com. |
| norm2 | back to summary |
|---|---|
| pack-priv final Normalizer2 norm2 | |
| NormalizingTransform | back to summary |
|---|---|
| public NormalizingTransform(Normalizer2 norm2) | |
| transform | back to summary |
|---|---|
| public String transform(String source) Implements com. Doc from com. Transform the input in some way, to be determined by the subclass. | |