diff options
author | Suren A. Chilingaryan <csa@dside.dyndns.org> | 2007-04-14 22:20:10 +0000 |
---|---|---|
committer | Suren A. Chilingaryan <csa@dside.dyndns.org> | 2007-04-14 22:20:10 +0000 |
commit | 8ca43646a6c87d00d5b2cb74cebf65a8d0ea5e8e (patch) | |
tree | 724ddc9ab6cb3a362051fe1e081b3ccdcd7c0d5c /examples | |
parent | b91203daf1a2b5865bfd284821c0c0b103f5b8e7 (diff) | |
download | librcc-8ca43646a6c87d00d5b2cb74cebf65a8d0ea5e8e.tar.gz librcc-8ca43646a6c87d00d5b2cb74cebf65a8d0ea5e8e.tar.bz2 librcc-8ca43646a6c87d00d5b2cb74cebf65a8d0ea5e8e.tar.xz librcc-8ca43646a6c87d00d5b2cb74cebf65a8d0ea5e8e.zip |
DB4 & Postponed processing
- New DB4 database type
- Postponed processing in external module
+ User may allow external module to finish required processing before
termination. This could be useful for translation services while using
console applications (if network connection is slow, the external will
never finish translation before program termination)
- SKIP_PARRENT options are renamed to SKIP_PARENT
Diffstat (limited to 'examples')
-rw-r--r-- | examples/example2.c | 3 | ||||
-rw-r--r-- | examples/input-russian.txt | 1 | ||||
-rw-r--r-- | examples/rcc-gtk-config.c | 2 |
3 files changed, 6 insertions, 0 deletions
diff --git a/examples/example2.c b/examples/example2.c index 2083fcc..631fccf 100644 --- a/examples/example2.c +++ b/examples/example2.c @@ -25,6 +25,9 @@ int main(int argc, char *argv[]) { rccInitDefaultContext(NULL, 0, 0, classes, 0); rccInitDb4(NULL, "example", 0); rccSetOption(NULL, RCC_OPTION_TRANSLATE, RCC_OPTION_TRANSLATE_SKIP_PARRENT); + rccSetOption(NULL, RCC_OPTION_AUTODETECT_LANGUAGE, 1); +// rccSetOption(NULL, RCC_OPTION_TIMEOUT, 5000000); +// rccSetOption(NULL, RCC_OPTION_CONFIGURED_LANGUAGES_ONLY, 0); current_language_id = rccGetCurrentLanguage(NULL); english_language_id = rccGetLanguageByName(NULL, "en"); diff --git a/examples/input-russian.txt b/examples/input-russian.txt index aa60118..6e1ec74 100644 --- a/examples/input-russian.txt +++ b/examples/input-russian.txt @@ -4,4 +4,5 @@ привет Good Morning Guten Abend +Auf widersehen Çäîðîâåíüê³ Áóëè diff --git a/examples/rcc-gtk-config.c b/examples/rcc-gtk-config.c index da73608..179829c 100644 --- a/examples/rcc-gtk-config.c +++ b/examples/rcc-gtk-config.c @@ -11,11 +11,13 @@ static rcc_class classes[] = { { "pl", RCC_CLASS_STANDARD, "id3", NULL, "PlayList Title Encoding", 0}, { "plfs", RCC_CLASS_STANDARD, "pl", NULL, "PlayList File Encoding", 0 }, { "fs", RCC_CLASS_FS, "LC_CTYPE", NULL, "FileSystem Encoding", 0 }, + { "arc", RCC_CLASS_STANDARD, NULL, NULL, "Archives Encoding", 0 }, { "oem", RCC_CLASS_STANDARD, NULL, NULL, "Zip OEM Encoding", 0 }, { "iso", RCC_CLASS_STANDARD, NULL, NULL, "Zip ISO Encoding", 0 }, { "ftp", RCC_CLASS_STANDARD, NULL, NULL, "FTP Encoding", 0 }, { "http", RCC_CLASS_STANDARD, NULL, NULL, "HTTP Encoding", 0 }, { "ssh", RCC_CLASS_STANDARD, NULL, NULL, "SSH Encoding", 0 }, + { "in", RCC_CLASS_STANDARD, NULL, NULL, "Input Encoding", 0 }, { "out", RCC_CLASS_STANDARD, "LC_CTYPE", NULL, "Output Encoding", 0 }, { NULL } }; |