Sha256: 71ce1ebf5edb3a4aad47991dc1dce29d796725e474c8982705f20d40f2043e6a

Contents?: true

Size: 528 Bytes

Versions: 16

Compression:

Stored size: 528 Bytes

Contents

# encoding: UTF-8

# Copyright 2012 Twitter, Inc
# http://www.apache.org/licenses/LICENSE-2.0

module TwitterCldr
  module Normalization

    # Implements normalization of a Unicode string to Normalization Form D (NFD).
    # This normalization includes only canonical decomposition.
    #
    class NFD < NFKD

      class << self

        protected

        def decompose?(unicode_data)
          super && !unicode_data.compatibility_decomposition? # skip compatibility decompositions
        end

      end

    end
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
twitter_cldr-2.4.3 lib/twitter_cldr/normalization/nfd.rb
twitter_cldr-3.0.0.beta1 lib/twitter_cldr/normalization/nfd.rb
twitter_cldr-2.4.2 lib/twitter_cldr/normalization/nfd.rb
twitter_cldr-2.4.1 lib/twitter_cldr/normalization/nfd.rb
twitter_cldr-2.4.0 lib/twitter_cldr/normalization/nfd.rb
twitter_cldr-2.2.0 lib/twitter_cldr/normalization/nfd.rb
twitter_cldr-2.1.1 lib/twitter_cldr/normalization/nfd.rb
twitter_cldr-2.1.0 lib/twitter_cldr/normalization/nfd.rb
twitter_cldr-2.0.2 lib/twitter_cldr/normalization/nfd.rb
twitter_cldr-2.0.1 lib/twitter_cldr/normalization/nfd.rb
twitter_cldr-2.0.0 lib/twitter_cldr/normalization/nfd.rb
twitter_cldr-1.9.1 lib/twitter_cldr/normalization/nfd.rb
twitter_cldr-1.9.0 lib/twitter_cldr/normalization/nfd.rb
twitter_cldr-1.8.1 lib/twitter_cldr/normalization/nfd.rb
twitter_cldr-1.8.0 lib/twitter_cldr/normalization/nfd.rb
twitter_cldr-1.7.0 lib/twitter_cldr/normalization/nfd.rb