b0VIM 7.4&iWn danhac~dan/dev/gems/unicode-name/lib/unicode/name.rbutf-8 3210#"! UtpEad[E}W uD o n S - o d I ? 7 6  g A  f G ; & x ^ 1  Rend end end label(char) as[:abbreviation] && as[:abbreviation][0] ) || as[:alternate] && as[:alternate][0] || as[:figment] && as[:figment][0] || ( as[:control] && as[:control][0] || ( as = aliases(char) ) && unicode_name(char) || def self.readable(char) end end "" when "Reserved" "" when "Noncharacter" "" when "Surrogate" "" when "Private-use" "" when "Control" nil when "Graphic", "Format" case Unicode::Types.type(char) require "unicode/types" unless defined? ::Unicode::Types require_relative "name/index" unless defined? ::Unicode::Name::INDEX codepoint_pretty = "%.4X" % codepoint codepoint = char.unpack("U")[0] def self.label(char) end INDEX[:ALIASES][codepoint] require_relative "name/index" unless defined? ::Unicode::Name::INDEX codepoint = char.unpack("U")[0] def self.aliases(char) end end unicode_name(char) else correction if correction = INDEX[:ALIASES][codepoint] && INDEX[:ALIASES][codepoint][:correction][-1] require_relative "name/index" unless defined? ::Unicode::Name::INDEX codepoint = char.unpack("U")[0] def self.correct(char) class << self; alias of unicode_name; end end end nil else "HANGUL SYLLABLE-%.4X" % codepoint elsif codepoint >= INDEX[:HANGUL][0][0] && codepoint <= INDEX[:HANGUL][0][1] "CJK UNIFIED IDEOGRAPH-%.4X" % codepoint elsif INDEX[:CJK].any?{ |cjk_range| codepoint >= cjk_range[0] && codepoint <= cjk_range[1] } res if res = INDEX[:NAMES][codepoint] require_relative "name/index" unless defined? ::Unicode::Name::INDEX codepoint = char.unpack("U")[0] def self.unicode_name(char) # Don't overwrite Module.name module Namemodule Unicoderequire_relative "name/constants"