Module: TwitterCldr::Shared::Properties::ArabicShaping

Defined in:
lib/twitter_cldr/shared/properties/arabic_shaping.rb

Constant Summary collapse

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

Class Method Summary collapse

Class Method Details

.joining_type_for_general_category(general_category) ⇒ Object



22
23
24
25
26
27
28
29
# File 'lib/twitter_cldr/shared/properties/arabic_shaping.rb', line 22

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

.joining_typesObject



31
32
33
# File 'lib/twitter_cldr/shared/properties/arabic_shaping.rb', line 31

def joining_types
  JOINING_TYPES
end