Method: Unicode::Name.readable

Defined in:
lib/unicode/name.rb

.readable(char) ⇒ Object



65
66
67
68
69
70
71
72
73
# File 'lib/unicode/name.rb', line 65

def self.readable(char)
  unicode_name(char) ||
  ( as = aliases(char) ) &&
  ( as[:control]      && as[:control][0]      ||
    as[:figment]      && as[:figment][0]      ||
    as[:alternate]    && as[:alternate][0]    ||
    as[:abbreviation] && as[:abbreviation][0]  ) ||
  label(char)
end