Add locale-sensitive ASCII transliteration API
authorRyan Lortie <desrt@desrt.ca>
Mon, 17 Feb 2014 16:54:18 +0000 (11:54 -0500)
committerRyan Lortie <desrt@desrt.ca>
Thu, 20 Feb 2014 23:27:24 +0000 (18:27 -0500)
commit941b8979d07a7d9bd1a8f581ee744c0c914e12ee
treec33b6ae98383d1a077ca570c52c404f0412719f9
parent436d77f70ac9aed56d1b5f223e05a29e34378444
Add locale-sensitive ASCII transliteration API

Add a new function, g_str_to_ascii() that does locale-dependent ASCII
transliteration of UTF-8 strings.

This function works off of an internal database.  We get the data out of
the localedata shipped with glibc, which seems to be just about the best
source of locale-sensitive transliteration information available
anywhere.

We include a update script with this commit that's not used by anything
at all -- it will just sit in git.  It is intended to be run manually
from time to time.

https://bugzilla.gnome.org/show_bug.cgi?id=710142
docs/reference/glib/glib-sections.txt
glib/Makefile.am
glib/gstrfuncs.h
glib/gtranslit-data.h [new file with mode: 0644]
glib/gtranslit.c [new file with mode: 0644]
glib/update-gtranslit.py [new file with mode: 0755]