String methods to ease work with russian language
Ruby
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib
spec
.gitignore
README.rdoc
Rakefile
init.rb

README.rdoc

Russian

String methods to ease work with russian language transliterate for_url

Example

'целая куча букв'.transliterate # => 'tselaya kucha bukv'
'ЦЕЛАЯ КУЧА БУКВ'.transliterate # => 'TSELAYA KUCHA BUKV'
'Целая Куча Букв'.transliterate # => 'Tselaya Kucha Bukv'
'цЕлАя кУчА БуКв'.transliterate # => 'tsElAya kUchA BuKv'
'tsЕлАя kУчA BуKв'.transliterate # => 'tsElAya kUchA BuKv'

'целая куча букв'.for_url # => 'tselaya-kucha-bukv'
'ЦЕЛАЯ КУЧА БУКВ'.for_url # => 'tselaya-kucha-bukv'
'слово - целая куча букв'.for_url # => 'slovo-tselaya-kucha-bukv'
'куча !"№%:,.;()_+ символов'.for_url # => 'kucha-_-simvolov'