Class ICUNormalizer2FilterFactory


  • public class ICUNormalizer2FilterFactory
    extends TokenFilterFactory
    Factory for ICUNormalizer2Filter

    Supports the following attributes:

    • name: A Unicode Normalization Form, one of 'nfc','nfkc', 'nfkc_cf'. Default is nfkc_cf.
    • mode: Either 'compose' or 'decompose'. Default is compose. Use "decompose" with nfc or nfkc, to get nfd or nfkd, respectively.
    • filter: A UnicodeSet pattern. Codepoints outside the set are always left unchanged. Default is [] (the null set, no filtering).
    Since:
    3.1.0
    See Also:
    ICUNormalizer2Filter, Normalizer2, FilteredNormalizer2
    • Field Detail

      • normalizer

        private final com.ibm.icu.text.Normalizer2 normalizer
    • Constructor Detail

      • ICUNormalizer2FilterFactory

        public ICUNormalizer2FilterFactory​(java.util.Map<java.lang.String,​java.lang.String> args)
        Creates a new ICUNormalizer2FilterFactory