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/example2.c | |
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/example2.c')
-rw-r--r-- | examples/example2.c | 4 |
1 files changed, 2 insertions, 2 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"); |