Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/thbar/diacritics_fu
Tiny Ruby library to remove accents and other diacritics from a string (relies on ActiveSupport).
https://github.com/thbar/diacritics_fu
Last synced: 2 months ago
JSON representation
Tiny Ruby library to remove accents and other diacritics from a string (relies on ActiveSupport).
- Host: GitHub
- URL: https://github.com/thbar/diacritics_fu
- Owner: thbar
- Created: 2008-05-13T12:22:04.000Z (over 16 years ago)
- Default Branch: master
- Last Pushed: 2009-03-29T20:28:23.000Z (over 15 years ago)
- Last Synced: 2024-09-14T01:33:07.715Z (3 months ago)
- Language: Ruby
- Homepage: http://blog.logeek.fr
- Size: 567 KB
- Stars: 11
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README
- Changelog: History.txt
Awesome Lists containing this project
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