Skip to content

Instantly share code, notes, and snippets.

View panterch's full-sized avatar

Beat Seeliger panterch

View GitHub Profile
@panterch
panterch / bad unaccent
Created March 5, 2012 17:59 — forked from thb/bad unaccent
Unaccent method for a Ruby string
class String
UNACCENT_HASH = {
'A' => 'ÀÁÂÃÄÅĀĂǍẠẢẤẦẨẪẬẮẰẲẴẶǺĄ',
'a' => 'àáâãäåāăǎạảấầẩẫậắằẳẵặǻą',
'C' => 'ÇĆĈĊČ',
'c' => 'çćĉċč',
'D' => 'ÐĎĐ',
'd' => 'ďđ',
'E' => 'ÈÉÊËĒĔĖĘĚẸẺẼẾỀỂỄỆ',
'e' => 'èéêëēĕėęěẹẻẽếềểễệ',