Functions for transliterating Unicode text to ASCII:
(unidecode-region BEG END)
(unidecode-sanitize-region BEG END)
(require 'unidecode) (unidecode "Déjà vu") ;=> "Deja vu" (unidecode "北亰") ;=> "Bei Jing " (unidecode-sanitize "Déjà vu, all over again") ;=> "deja-vu-all-over-again"
How this package was made
This package uses a number of data files (see the data directory), which were converted from the corresponding files in the Python Unidecode module.
To perform the conversion yourself, load
unidecode-convert.el and run the
unidecode-convert command (e.g.
M-x unidecode-convert RET). When prompted,
enter the path to Unidecode’s source directory as the first argument, and where
you want the files to be saved as the second argument. It uses the Python script
to convert the Unidecode files to JSON, then uses Emacs’s
json package to load
them, and finally prints them as
read-able Lisp data as stored in the
This project is free software, available under the terms of the GPL, version 2 or later. See COPYING for details.