Sha256: 65ee921b94a4f647ad29af023501e2b6fe11f203d414ade2eab3ce12ff38749d

Contents?: true

Size: 802 Bytes

Versions: 47

Compression:

Stored size: 802 Bytes

Contents

# encoding: UTF-8

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

module TwitterCldr
  module Shared
    module Properties
      module ArabicShaping

        JOINING_TYPES = {
          'R' => 'Right_Joining',
          'L' => 'Left_Joining',
          'D' => 'Dual_Joining',
          'C' => 'Join_Causing',
          'U' => 'Non_Joining',
          'T' => 'Transparent'
        }

        class << self

          def joining_type_for_general_category(general_category)
            case general_category
              when 'Mn', 'Me', 'Cf'
                joining_types['T']
              else
                joining_types['U']
            end
          end

          def joining_types
            JOINING_TYPES
          end

        end

      end
    end
  end
end

Version data entries

47 entries across 47 versions & 2 rubygems

Version Path
twitter_cldr-6.2.0 lib/twitter_cldr/shared/properties/arabic_shaping.rb
twitter_cldr-6.1.0 lib/twitter_cldr/shared/properties/arabic_shaping.rb
metanorma-cli-1.3.4 gems/ruby/2.6.0/gems/twitter_cldr-4.4.5/lib/twitter_cldr/shared/properties/arabic_shaping.rb
twitter_cldr-6.0.2 lib/twitter_cldr/shared/properties/arabic_shaping.rb
metanorma-cli-1.3.3.1 gems/ruby/2.6.0/gems/twitter_cldr-4.4.5/lib/twitter_cldr/shared/properties/arabic_shaping.rb
twitter_cldr-6.0.1 lib/twitter_cldr/shared/properties/arabic_shaping.rb
twitter_cldr-6.0.0 lib/twitter_cldr/shared/properties/arabic_shaping.rb
twitter_cldr-5.4.0 lib/twitter_cldr/shared/properties/arabic_shaping.rb
twitter_cldr-5.3.0 lib/twitter_cldr/shared/properties/arabic_shaping.rb
twitter_cldr-5.2.0 lib/twitter_cldr/shared/properties/arabic_shaping.rb
twitter_cldr-5.1.0 lib/twitter_cldr/shared/properties/arabic_shaping.rb
twitter_cldr-5.0.0 lib/twitter_cldr/shared/properties/arabic_shaping.rb
twitter_cldr-4.4.5 lib/twitter_cldr/shared/properties/arabic_shaping.rb
twitter_cldr-4.4.4 lib/twitter_cldr/shared/properties/arabic_shaping.rb
twitter_cldr-4.4.3 lib/twitter_cldr/shared/properties/arabic_shaping.rb
twitter_cldr-4.4.2 lib/twitter_cldr/shared/properties/arabic_shaping.rb
twitter_cldr-4.4.1 lib/twitter_cldr/shared/properties/arabic_shaping.rb
twitter_cldr-4.4.0 lib/twitter_cldr/shared/properties/arabic_shaping.rb
twitter_cldr-4.3.1 lib/twitter_cldr/shared/properties/arabic_shaping.rb
twitter_cldr-4.3.0 lib/twitter_cldr/shared/properties/arabic_shaping.rb