K
Kamus of Kadizhar
I have a snippet of code like this:
#define LETTERS_ARRAY_LENGTH 3
static char *letters_array[LETTERS_ARRAY_LENGTH] = {
"0123456789",
G_CSET_A_2_Z,
G_CSET_a_2_z
};
which hardcodes the standard ASCII alphabet. What I want to do is to fill
the array letters_array with the letters appropriate to the locale
setting, so for example, if the locale is cs_CZ it would have the
appropriate · and ´ symbols so letters like è are included in the
string, or if the locale is set to ja_JP then the array is filled with
the appropriate hiragana, katakana, romaji, and kanji.
In other words, the symbol set would be generated at run time based on the
user's LANG=xx_YY setting.
Any sources for doing this? How does one extract specific
country/language character sets from unicode?
--Kamus
#define LETTERS_ARRAY_LENGTH 3
static char *letters_array[LETTERS_ARRAY_LENGTH] = {
"0123456789",
G_CSET_A_2_Z,
G_CSET_a_2_z
};
which hardcodes the standard ASCII alphabet. What I want to do is to fill
the array letters_array with the letters appropriate to the locale
setting, so for example, if the locale is cs_CZ it would have the
appropriate · and ´ symbols so letters like è are included in the
string, or if the locale is set to ja_JP then the array is filled with
the appropriate hiragana, katakana, romaji, and kanji.
In other words, the symbol set would be generated at run time based on the
user's LANG=xx_YY setting.
Any sources for doing this? How does one extract specific
country/language character sets from unicode?
--Kamus