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 | |
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
-rw-r--r-- | VERSION | 2 | ||||
-rw-r--r-- | engines/libguess.c | 28 | ||||
-rw-r--r-- | examples/rcc.xml | 34 | ||||
-rw-r--r-- | examples/rcc.xml.eastern | 2 | ||||
-rw-r--r-- | examples/rcc.xml.western | 68 | ||||
-rw-r--r-- | src/rccconfig.c | 2 |
6 files changed, 129 insertions, 7 deletions
@@ -1 +1 @@ -0.2.4 +0.2.5 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; diff --git a/examples/rcc.xml b/examples/rcc.xml index eda97f1..51198da 100644 --- a/examples/rcc.xml +++ b/examples/rcc.xml @@ -21,6 +21,7 @@ <Charsets> <Charset>ISO8859-1</Charset> <Charset>UTF-8</Charset> + <Charset>CP1252</Charset> </Charsets> <Engines> <Engine>western</Engine> @@ -48,7 +49,7 @@ <Charset>CSKOI8R</Charset> </Charsets> </Language> - <Language name="es"> + <Language name="et"> <FullName locale="ru">Эстонский</FullName> <Charsets> <Charset>CP1257</Charset> @@ -187,6 +188,7 @@ <Charsets> <Charset>ISO8859-1</Charset> <Charset>UTF-8</Charset> + <Charset>CP1252</Charset> </Charsets> <Engines> <Engine>western</Engine> @@ -198,6 +200,31 @@ <Charsets> <Charset>ISO8859-1</Charset> <Charset>UTF-8</Charset> + <Charset>CP1252</Charset> + </Charsets> + <Engines> + <Engine>western</Engine> + </Engines> + </Language> + <Language name="es"> + <FullName>Spanish</FullName> + <FullName locale="ru">Испанский</FullName> + <Charsets> + <Charset>ISO8859-1</Charset> + <Charset>UTF-8</Charset> + <Charset>CP1252</Charset> + </Charsets> + <Engines> + <Engine>western</Engine> + </Engines> + </Language> + <Language name="it"> + <FullName>Italian</FullName> + <FullName locale="ru">Итальянский</FullName> + <Charsets> + <Charset>ISO8859-1</Charset> + <Charset>UTF-8</Charset> + <Charset>CP1252</Charset> </Charsets> <Engines> <Engine>western</Engine> @@ -280,9 +307,12 @@ <Engine name="off"> <FullName locale="ru">Отключить</FullName> </Engine> - <Engine name="Russian"> + <Engine name="LibRCD"> <FullName locale="ru">Библиотека LibRCD</FullName> </Engine> + <Engine name="western"> + <FullName locale="ru">Детектор ISO8859-1/Unicode</FullName> + </Engine> <Engine name="Enca Library"> <FullName locale="ru">Библиотека Enca</FullName> </Engine> diff --git a/examples/rcc.xml.eastern b/examples/rcc.xml.eastern index 52fbfcb..acc8f13 100644 --- a/examples/rcc.xml.eastern +++ b/examples/rcc.xml.eastern @@ -21,7 +21,7 @@ <Charset>CSKOI8R</Charset> </Charsets> </Language> - <Language name="es"> + <Language name="et"> <Charsets> <Charset>CP1257</Charset> <Charset>UTF-8</Charset> diff --git a/examples/rcc.xml.western b/examples/rcc.xml.western index 12f667b..26bee86 100644 --- a/examples/rcc.xml.western +++ b/examples/rcc.xml.western @@ -6,6 +6,7 @@ <Charsets> <Charset>ISO8859-1</Charset> <Charset>UTF-8</Charset> + <Charset>CP1252</Charset> </Charsets> <Engines> <Engine>western</Engine> @@ -16,6 +17,73 @@ <Charsets> <Charset>ISO8859-1</Charset> <Charset>UTF-8</Charset> + <Charset>CP1252</Charset> + </Charsets> + <Engines> + <Engine>western</Engine> + </Engines> + </Language> + <Language name="nl"> + <FullName>Dutch</FullName> + <Charsets> + <Charset>ISO8859-1</Charset> + <Charset>UTF-8</Charset> + <Charset>CP1252</Charset> + </Charsets> + <Engines> + <Engine>western</Engine> + </Engines> + </Language> + <Language name="it"> + <FullName>Italian</FullName> + <Charsets> + <Charset>ISO8859-1</Charset> + <Charset>UTF-8</Charset> + <Charset>CP1252</Charset> + </Charsets> + <Engines> + <Engine>western</Engine> + </Engines> + </Language> + <Language name="es"> + <FullName>Spanish</FullName> + <Charsets> + <Charset>ISO8859-1</Charset> + <Charset>UTF-8</Charset> + <Charset>CP1252</Charset> + </Charsets> + <Engines> + <Engine>western</Engine> + </Engines> + </Language> + <Language name="pt"> + <FullName>Portugese</FullName> + <Charsets> + <Charset>ISO8859-1</Charset> + <Charset>UTF-8</Charset> + <Charset>CP1252</Charset> + </Charsets> + <Engines> + <Engine>western</Engine> + </Engines> + </Language> + <Language name="sv"> + <FullName>Swedish</FullName> + <Charsets> + <Charset>ISO8859-1</Charset> + <Charset>UTF-8</Charset> + <Charset>CP1252</Charset> + </Charsets> + <Engines> + <Engine>western</Engine> + </Engines> + </Language> + <Language name="no"> + <FullName>Norwegian</FullName> + <Charsets> + <Charset>ISO8859-1</Charset> + <Charset>UTF-8</Charset> + <Charset>CP1252</Charset> </Charsets> <Engines> <Engine>western</Engine> diff --git a/src/rccconfig.c b/src/rccconfig.c index d5546c7..d9e8cba 100644 --- a/src/rccconfig.c +++ b/src/rccconfig.c @@ -100,7 +100,7 @@ rcc_language rcc_default_languages_embeded[RCC_MAX_LANGUAGES + 1] = { &rcc_default_engine, NULL }}, -{"es", {rcc_default_charset, rcc_utf8_charset, "ISO-8859-4", "CP1257", "IBM775", "ISO-8859-13", "macce", "baltic", NULL},{ +{"et", {rcc_default_charset, rcc_utf8_charset, "ISO-8859-4", "CP1257", "IBM775", "ISO-8859-13", "macce", "baltic", NULL},{ &rcc_default_engine, NULL }}, |