summaryrefslogtreecommitdiffstats
path: root/src/rccspell.h
diff options
context:
space:
mode:
authorSuren A. Chilingaryan <csa@dside.dyndns.org>2005-08-02 04:43:01 +0000
committerSuren A. Chilingaryan <csa@dside.dyndns.org>2005-08-02 04:43:01 +0000
commit8b75f9bb6a09d54d634ff661655659951378aa2c (patch)
tree611f800f33ca919d37c724957fcc8c2b2bccb342 /src/rccspell.h
parente3f702e83a26468ee44f3f342a7a40a252f4603c (diff)
downloadlibrcc-8b75f9bb6a09d54d634ff661655659951378aa2c.tar.gz
librcc-8b75f9bb6a09d54d634ff661655659951378aa2c.tar.bz2
librcc-8b75f9bb6a09d54d634ff661655659951378aa2c.tar.xz
librcc-8b75f9bb6a09d54d634ff661655659951378aa2c.zip
Language autodetection
- rccConfigRecode function's are added - Language autodetection using aspell is added - Translation in 3 modes: "To English Language", "Skip English Translation", "Full" - Example2 to demonstrate translation possibilities
Diffstat (limited to 'src/rccspell.h')
-rw-r--r--src/rccspell.h29
1 files changed, 29 insertions, 0 deletions
diff --git a/src/rccspell.h b/src/rccspell.h
new file mode 100644
index 0000000..49e39f4
--- /dev/null
+++ b/src/rccspell.h
@@ -0,0 +1,29 @@
+#ifndef _RCC_SPELL_H
+#define _RCC_SPELL_H
+
+#include "../config.h"
+
+#ifdef HAVE_ASPELL
+#include <aspell.h>
+#endif /* HAVE_ASPELL */
+
+struct rcc_speller_t {
+#ifdef HAVE_ASPELL
+ struct AspellSpeller *speller;
+#else
+ void *speller;
+#endif /* HAVE_ASPELL */
+};
+
+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);
+
+#endif /* _RCC_SPELL_H */