summaryrefslogtreecommitdiffstats
path: root/engines/russian.c
diff options
context:
space:
mode:
authorSuren A. Chilingaryan <csa@dside.dyndns.org>2005-08-07 21:41:32 +0000
committerSuren A. Chilingaryan <csa@dside.dyndns.org>2005-08-07 21:41:32 +0000
commit9d4628df369b92016b7fc3bfc7fed6d06ff2ca9a (patch)
tree9d78892cf391d2cdb5da216cfec78a8b565751c7 /engines/russian.c
parent94ca629ceec7b0dc9f6f724b2e15923d3ec1d5b3 (diff)
downloadlibrcc-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 'engines/russian.c')
-rw-r--r--engines/russian.c26
1 files changed, 0 insertions, 26 deletions
diff --git a/engines/russian.c b/engines/russian.c
deleted file mode 100644
index 0df145c..0000000
--- a/engines/russian.c
+++ /dev/null
@@ -1,26 +0,0 @@
-#include <stdio.h>
-#include <string.h>
-
-#include <librcd.h>
-#include <librcc.h>
-
-static rcc_autocharset_id AutoengineRussian(rcc_engine_context ctx, const char *buf, int len) {
- return (rcc_autocharset_id)rcdGetRussianCharset(buf,len);
-}
-
-static rcc_engine russian_engine = {
- "Russian", NULL, NULL, &AutoengineRussian, {"CP1251","KOI8-R","UTF-8","IBM866", NULL}
-};
-
-static rcc_engine ukrainian_engine = {
- "Russian", NULL, NULL, &AutoengineRussian, {"CP1251","KOI8-U","UTF-8","IBM865", NULL}
-};
-
-rcc_engine *rccGetInfo(const char *lang) {
- if (!lang) return NULL;
-
- if (!strcmp(lang, "ru")) return &russian_engine;
- if (!strcmp(lang, "uk")) return &ukrainian_engine;
-
- return NULL;
-}