Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Tiny Ruby library to remove accents and other diacritics from a string (relies on ActiveSupport).
Ruby
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
lib Add support for $KCODE "UTF8" when used with Rails >= 2.2.0.
spec
History.txt
Manifest.txt
README
Rakefile
VERSION.yml
diacritics_fu.gemspec

README

Quick start
===========

DiacriticsFu::escape("éphémère")
=> "ephemere"

DiacriticsFu::escape("räksmörgås")
=> "raksmorgas"

What?
=====

A small library to remove accents from a string. Relies on ActiveSupport.

Created because I needed a simple way to remove most diacritics from French sentences, while generating slugs (url) for a CMS (either Mephisto or ComatoseCMS).

Nb: this approach is not the fastest way to achieve this. It's good enough for me though.

Author
======

Thibaut Barrère (http://blog.logeek.fr)

Testing
=======

You can run the spec against the latest available ActiveSupport using "rake spec".

To run the tests against all installed ActiveSupport versions, use "rake spec_multi"

License
=======

MIT
Something went wrong with that request. Please try again.