TextUtil
Constants
BR_RE = /\<br\s*\/?\>|\s{4,+}/i
FIX_MARKS = {"òa" => "oà", "óa" => "oá", "ỏa" => "oả", "õa" => "oã", "ọa" => "oạ", "òe" => "oè", "óe" => "oé", "ỏe" => "oẻ", "õe" => "oẽ", "ọe" => "oẹ", "ùy" => "uỳ", "úy" => "uý", "ủy" => "uỷ", "ũy" => "uỹ", "ụy" => "uỵ"}
MARK_RE = Regex.new(FIX_MARKS.keys.join('|'))
Instance methods
convert all halfwidth to fullwidth and group similar characters
smart capitalize:
- don't downcase extra characters
- treat unicode alphanumeric chars as upcase-able
Convert chinese punctuations to english punctuations and full width characters to ascii characters
Convert chinese punctuations to english punctuations and full width characters to ascii characters