diff options
author | Suren A. Chilingaryan <csa@dside.dyndns.org> | 2005-08-07 21:41:32 +0000 |
---|---|---|
committer | Suren A. Chilingaryan <csa@dside.dyndns.org> | 2005-08-07 21:41:32 +0000 |
commit | 9d4628df369b92016b7fc3bfc7fed6d06ff2ca9a (patch) | |
tree | 9d78892cf391d2cdb5da216cfec78a8b565751c7 /examples | |
parent | 94ca629ceec7b0dc9f6f724b2e15923d3ec1d5b3 (diff) | |
download | librcc-9d4628df369b92016b7fc3bfc7fed6d06ff2ca9a.tar.gz librcc-9d4628df369b92016b7fc3bfc7fed6d06ff2ca9a.tar.bz2 librcc-9d4628df369b92016b7fc3bfc7fed6d06ff2ca9a.tar.xz librcc-9d4628df369b92016b7fc3bfc7fed6d06ff2ca9a.zip |
- Russian autoengine is renamed to LibRCD
- Fix Learning with Language Autodetection switched on
- Attempt to perform rccFS with Language Autodetection switched off, if failed with default behaviour.
- Systematization of translation engine:
+ Rearangement of the translation modes: OFF, TO_ENGLISH, SKIP_RELATED, SKIP_PARRENT, FULL.
+ New class types: TRANSLATE_LOCALE, TRANSLATE_CURRENT, TRANSLATE_FROM.
- Detect "Unicode" locales for foreign languages
- "out" class is assumed to be TRANSLATE_LOCALE
- Respect RCC_CLASS_KNOWN
- Check for Latin UTF-8 prior to running any charset detection engine.
Diffstat (limited to 'examples')
-rw-r--r-- | examples/example2.c | 4 | ||||
-rw-r--r-- | examples/rcc-example.xml | 4 | ||||
-rw-r--r-- | examples/rcc.xml | 2 |
3 files changed, 6 insertions, 4 deletions
diff --git a/examples/example2.c b/examples/example2.c index 5ef3efb..2083fcc 100644 --- a/examples/example2.c +++ b/examples/example2.c @@ -15,7 +15,7 @@ int main(int argc, char *argv[]) { rcc_class classes[] = { { "input", RCC_CLASS_STANDARD, NULL, NULL, "Input Encoding", 0 }, - { "output", RCC_CLASS_STANDARD, "LC_CTYPE", NULL, "Output Encoding", 0 }, + { "output", RCC_CLASS_TRANSLATE_LOCALE, "LC_CTYPE", NULL, "Output Encoding", 0 }, { NULL } }; @@ -24,7 +24,7 @@ int main(int argc, char *argv[]) { rccInit(); rccInitDefaultContext(NULL, 0, 0, classes, 0); rccInitDb4(NULL, "example", 0); - rccSetOption(NULL, RCC_OPTION_TRANSLATE, RCC_OPTION_TRANSLATE_FULL); + rccSetOption(NULL, RCC_OPTION_TRANSLATE, RCC_OPTION_TRANSLATE_SKIP_PARRENT); current_language_id = rccGetCurrentLanguage(NULL); english_language_id = rccGetLanguageByName(NULL, "en"); diff --git a/examples/rcc-example.xml b/examples/rcc-example.xml index 6bad1f3..8dc068c 100644 --- a/examples/rcc-example.xml +++ b/examples/rcc-example.xml @@ -11,7 +11,7 @@ <FullName>Russian</FullName> <FullName locale="ru">Русский</FullName> <Engines> - <Engine>russian</Engine> + <Engine>librcd</Engine> </Engines> <Charsets> <Charset>UTF-8</Charset> @@ -25,7 +25,7 @@ <Language name="uk"> <FullName>Ukrainian</FullName> <Engines> - <Engine>russian</Engine> + <Engine>librcd</Engine> </Engines> <Charsets> <Charset>UTF-8</Charset> diff --git a/examples/rcc.xml b/examples/rcc.xml index 50d2ee2..562f38a 100644 --- a/examples/rcc.xml +++ b/examples/rcc.xml @@ -13,6 +13,7 @@ <Language name="de"> <FullName>German</FullName> <Charsets> + <Charset>ISO8859-1</Charset> <Charset>UTF-8</Charset> </Charsets> <Engines> @@ -22,6 +23,7 @@ <Language name="fr"> <FullName>French</FullName> <Charsets> + <Charset>ISO8859-1</Charset> <Charset>UTF-8</Charset> </Charsets> <Engines> |