Skip to content

Commit

Permalink
After NFD Hangul syllables are processed normally.
Browse files Browse the repository at this point in the history
  • Loading branch information
KL-7 committed Jun 15, 2012
1 parent 30060d6 commit b583d45
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions lib/twitter_cldr/collation/collator.rb
Expand Up @@ -58,16 +58,10 @@ def fractional_element(integer_code_points)
integer_code_points.shift(offset)
fractional_elements
else
hangul_fractional_elements(integer_code_points) || [implicit_fractional_element(integer_code_points.shift)]
[implicit_fractional_element(integer_code_points.shift)]
end
end

def hangul_fractional_elements(code_points)
return unless TwitterCldr::Normalizers::Hangul.hangul_syllable?(code_points.first)

get_fractional_elements(TwitterCldr::Normalizers::Hangul.decompose(code_points.shift))
end

# Generates implicit weights for all code_points. Uses the approach described in
# http://source.icu-project.org/repos/icu/icuhtml/trunk/design/collation/ICU_collation_design.htm#Implicit_CEs
# but produces a single fractional collation element without any continuation.
Expand Down

0 comments on commit b583d45

Please sign in to comment.