diff options
author | Suren A. Chilingaryan <csa@dside.dyndns.org> | 2007-06-27 16:31:34 +0000 |
---|---|---|
committer | Suren A. Chilingaryan <csa@dside.dyndns.org> | 2007-06-27 16:31:34 +0000 |
commit | ee707424a310ad529d0cbf764ec5ed18e8b7dde8 (patch) | |
tree | 7bc285de0f1e07187db4b44069d64af2338c408b /engines/libguess.c | |
parent | 35381569403e90b8d34b223f524519521bc81598 (diff) | |
download | librcc-ee707424a310ad529d0cbf764ec5ed18e8b7dde8.tar.gz librcc-ee707424a310ad529d0cbf764ec5ed18e8b7dde8.tar.bz2 librcc-ee707424a310ad529d0cbf764ec5ed18e8b7dde8.tar.xz librcc-ee707424a310ad529d0cbf764ec5ed18e8b7dde8.zip |
Fast fix
- Estonian language is "et", not "es"
- More western languages in configuration
Diffstat (limited to 'engines/libguess.c')
-rw-r--r-- | engines/libguess.c | 28 |
1 files changed, 26 insertions, 2 deletions
diff --git a/engines/libguess.c b/engines/libguess.c index 7f13b50..4bf1dee 100644 --- a/engines/libguess.c +++ b/engines/libguess.c @@ -49,7 +49,7 @@ struct rcc_guess_engine_t guessJPEngine = { &guess_jp }; -struct rcc_guess_engine_t guessCNEngine = { +struct rcc_guess_engine_t guessZHEngine = { { "LibGUESS", NULL, /* Constructor */ @@ -60,6 +60,30 @@ struct rcc_guess_engine_t guessCNEngine = { NULL }; +/* +struct rcc_guess_engine_t guessCNEngine = { + { + "LibGUESS", + NULL, + NULL, + &guessDetect, + {"UTF-8", "UTF-16", "ISO-2022-CN", "GB2312", "GB18030", NULL} + }, + &guess_cn +}; + +struct rcc_guess_engine_t guessTWEngine = { + { + "LibGUESS", + NULL, + NULL, + &guessDetect, + {"UTF-8", "UTF-16", "ISO-2022-TW", "BIG5", NULL} + }, + &guess_tw +}; +*/ + struct rcc_guess_engine_t guessKREngine = { { "LibGUESS", @@ -73,7 +97,7 @@ struct rcc_guess_engine_t guessKREngine = { rcc_engine *rccGetInfo(const char *lang) { - if (!strcmp(lang, "zh")) return (rcc_engine*)&guessCNEngine; + if (!strcmp(lang, "zh")) return (rcc_engine*)&guessZHEngine; if (!strcmp(lang, "ja")) return (rcc_engine*)&guessJPEngine; if (!strcmp(lang, "ko")) return (rcc_engine*)&guessKREngine; return NULL; |