diff options
author | Suren A. Chilingaryan <csa@dside.dyndns.org> | 2005-08-05 03:06:50 +0000 |
---|---|---|
committer | Suren A. Chilingaryan <csa@dside.dyndns.org> | 2005-08-05 03:06:50 +0000 |
commit | 94ca629ceec7b0dc9f6f724b2e15923d3ec1d5b3 (patch) | |
tree | 317019f306f7195c07d3c0d943c829ed11ba8cca /src/rccspell.h | |
parent | 50aa5cd62ef4a66da41d68f4a50ddfca97863c38 (diff) | |
download | librcc-94ca629ceec7b0dc9f6f724b2e15923d3ec1d5b3.tar.gz librcc-94ca629ceec7b0dc9f6f724b2e15923d3ec1d5b3.tar.bz2 librcc-94ca629ceec7b0dc9f6f724b2e15923d3ec1d5b3.tar.xz librcc-94ca629ceec7b0dc9f6f724b2e15923d3ec1d5b3.zip |
Language AutoDetection Improvements
- Fix: Loading/Saving range options.
- Fix: Language AutoDetection. Using locale language instead of selected one.
- Support for range options in GTK UI.
- Option to control recoding timeout is provided.
- LibRCC.h is updated (Translate, Spell, IConv).
- Documentation is updated.
- Add 'rcc-config' alias to 'rcc-gtk2-config' in spec.
- Implemented concept of parrent languages
+ The concept is used in language autodetection. The string in considered
language is permited to have words from all it's parrent languages.
+ English is assumed to be parrent for all other languages by default.
+ Russian is parrent language for Ukrainian and Belorussian.
- No translation to english if translation between related (one of the
languages is parrent for another one) languages is failed.
Diffstat (limited to 'src/rccspell.h')
-rw-r--r-- | src/rccspell.h | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/src/rccspell.h b/src/rccspell.h index 49e39f4..49d5c99 100644 --- a/src/rccspell.h +++ b/src/rccspell.h @@ -7,23 +7,22 @@ #include <aspell.h> #endif /* HAVE_ASPELL */ +#include "internal.h" + struct rcc_speller_t { #ifdef HAVE_ASPELL struct AspellSpeller *speller; #else void *speller; #endif /* HAVE_ASPELL */ + rcc_speller parrents[RCC_MAX_LANGUAGE_PARRENTS+1]; }; -typedef struct rcc_speller_t *rcc_speller; typedef struct rcc_speller_t rcc_speller_s; -rcc_speller rccSpellerCreate(const char *lang); -void rccSpellerFree(rcc_speller speller); - int rccSpellerGetError(rcc_speller rccspeller); -int rccSpellerSized(rcc_speller speller, const char *word, size_t len); -int rccSpeller(rcc_speller speller, const char *word); + +rcc_speller_result rccSpellerSized(rcc_speller speller, const char *word, size_t len, int recursion); #endif /* _RCC_SPELL_H */ |