Module Stringex::Unidecoder
In: lib/stringex/unidecoder.rb

Methods

Constants

CODEPOINTS = Hash.new{|h, k| h[k] = YAML.load_file(File.join(File.expand_path(File.dirname(__FILE__)), "unidecoder_data", "#{k}.yml"))   Contains Unicode codepoints, loading as needed from YAML files
LOCAL_CODEPOINTS = Hash.new unless defined?(LOCAL_CODEPOINTS)

Public Class methods

Returns string with its UTF-8 characters transliterated to ASCII ones

You‘re probably better off just using the added String#to_ascii

Returns default locale for localized transliterations. NOTE: Will set @locale as well.

Sets the default locale for localized transliterations. NOTE: Will set @locale as well.

Returns character for the given Unicode codepoint

Returns string indicating which file (and line) contains the transliteration value for the character

Returns the localized transliteration for a codepoint

Returns locale for localized transliterations

Sets locale for localized transliterations

Adds localized transliterations to Unidecoder

Runs a block with default locale

Runs a block with a temporary locale setting, returning the locale to the original state when complete

[Validate]