diff options
author | Suren A. Chilingaryan <csa@dside.dyndns.org> | 2005-07-08 14:45:55 +0000 |
---|---|---|
committer | Suren A. Chilingaryan <csa@dside.dyndns.org> | 2005-07-08 14:45:55 +0000 |
commit | fdfe5b42f687fbf3d4537541cc1b0bd9b8c2c090 (patch) | |
tree | 81d199b6fbbb11d3f310668e5bdabf9129e5f41f /src/rccconfig.c | |
parent | 232dbc756390d30a86ae6de0cc84600eddb1c0b2 (diff) | |
download | librcc-fdfe5b42f687fbf3d4537541cc1b0bd9b8c2c090.tar.gz librcc-fdfe5b42f687fbf3d4537541cc1b0bd9b8c2c090.tar.bz2 librcc-fdfe5b42f687fbf3d4537541cc1b0bd9b8c2c090.tar.xz librcc-fdfe5b42f687fbf3d4537541cc1b0bd9b8c2c090.zip |
08.07.2005
Diffstat (limited to 'src/rccconfig.c')
-rw-r--r-- | src/rccconfig.c | 20 |
1 files changed, 14 insertions, 6 deletions
diff --git a/src/rccconfig.c b/src/rccconfig.c index e1ac34a..d40941f 100644 --- a/src/rccconfig.c +++ b/src/rccconfig.c @@ -1,14 +1,10 @@ #include <stdio.h> -#include <librcd.h> #include "internal.h" #include "rccconfig.h" +#include "engine.h" #include "opt.h" -static rcc_charset_id rcc_autoengine_russian(rcc_engine_context ctx, const char *buf, int len) { - return (rcc_charset_id)rcdGetRussianCharset(buf,len); -} - rcc_language_alias rcc_default_aliases[] = { { "cs_SK", "sk" }, { "ru_UA", "uk" }, @@ -23,7 +19,7 @@ rcc_engine rcc_default_engine = { }; rcc_engine rcc_russian_engine = { - "Russian", NULL, NULL, &rcc_autoengine_russian, {"CP1251","KOI8-R","UTF-8","IBM866", NULL} + "Russian", NULL, NULL, &rccAutoengineRussian, {"CP1251","KOI8-R","UTF-8","IBM866", NULL} }; rcc_language rcc_default_languages[RCC_MAX_LANGUAGES + 1] = { @@ -37,12 +33,16 @@ rcc_language rcc_default_languages[RCC_MAX_LANGUAGES + 1] = { }}, {"ru", {"Default","KOI8-R","CP1251","UTF-8","IBM866","MACCYRILLIC","ISO8859-5", NULL}, { &rcc_default_engine, +#ifdef RCC_RCD_SUPPORT &rcc_russian_engine, +#endif /* RCC_RCD_SUPPORT */ NULL }}, {"uk", {"Default","KOI8-U","CP1251","UTF-8","IBM855","MACCYRILLIC","ISO8859-5","CP1125", NULL}, { &rcc_default_engine, +#ifdef RCC_RCD_SUPPORT &rcc_russian_engine, +#endif /* RCC_RCD_SUPPORT */ NULL }}, {"be", {"Default", "UTF-8", "CP1251", "IBM866", "ISO-8859-5", "KOI8-UNI", "maccyr" "IBM855", NULL},{ @@ -116,6 +116,13 @@ rcc_language_name rcc_default_language_names[RCC_MAX_LANGUAGES+1] = { {NULL, NULL} }; +rcc_option_description rcc_default_option_descriptions[] = { + {RCC_LEARNING_MODE, "LEARNING_MODE", RCC_OPTION_TYPE_BOOLEAN, 0, 0}, + {RCC_AUTODETECT_FS_TITLES, "AUTODETECT_FS_TITLES", RCC_OPTION_TYPE_BOOLEAN, 0, 0}, + {RCC_AUTODETECT_FS_NAMES, "AUTODETECT_FS_NAMES", RCC_OPTION_TYPE_NAMES; + {RCC_AUTODETECT_FS_TITLES, "AUTODETECT_FS_TITLES", RCC_OPTION_TYPE_NAMES; + RCC_CONFIGURED_LANGUAGES_ONLY + rcc_option_name rcc_default_option_names[] = { { RCC_LEARNING_MODE, "Learning Mode", "LEARNING_MODE" }, { RCC_AUTODETECT_FS_TITLES, "Autodetect FS Encoding", "AUTODETECT_FS_TITLES" }, @@ -127,6 +134,7 @@ rcc_option_defval rcc_default_option_values[] = { { RCC_LEARNING_MODE, 0 }, { RCC_AUTODETECT_FS_TITLES, 1}, { RCC_AUTODETECT_FS_NAMES, 1}, + { RCC_CONFIGURED_LANGUAGES_ONLY, 1}, { RCC_MAX_OPTIONS, 0} }; |