From 9d4628df369b92016b7fc3bfc7fed6d06ff2ca9a Mon Sep 17 00:00:00 2001 From: "Suren A. Chilingaryan" Date: Sun, 7 Aug 2005 21:41:32 +0000 Subject: - 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. --- examples/example2.c | 4 ++-- examples/rcc-example.xml | 4 ++-- examples/rcc.xml | 2 ++ 3 files changed, 6 insertions(+), 4 deletions(-) (limited to 'examples') 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 @@ Russian Русский - russian + librcd UTF-8 @@ -25,7 +25,7 @@ Ukrainian - russian + librcd UTF-8 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 @@ German + ISO8859-1 UTF-8 @@ -22,6 +23,7 @@ French + ISO8859-1 UTF-8 -- cgit v1.2.3