summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDom Lachowicz <domlachowicz@gmail.com>2003-12-23 04:26:38 +0000
committerDom Lachowicz <domlachowicz@gmail.com>2003-12-23 04:26:38 +0000
commitac5e08f9295470b7836950a73555992a3c0a29f8 (patch)
treed7bab6056b2672d652021fe9613e3faa853e7b99
parentea80a9086948895e20ffbc67d961fffa20b85654 (diff)
downloadenchant-ac5e08f9295470b7836950a73555992a3c0a29f8.tar.gz
another hspell patch from yaacov
git-svn-id: svn+ssh://svn.abisource.com/svnroot/enchant/trunk@20897 bcba8976-2d24-0410-9c9c-aab3bd5fdfd6
-rw-r--r--src/hspell/hspell_provider.c15
1 files changed, 13 insertions, 2 deletions
diff --git a/src/hspell/hspell_provider.c b/src/hspell/hspell_provider.c
index 6c250ed..ca0f66e 100644
--- a/src/hspell/hspell_provider.c
+++ b/src/hspell/hspell_provider.c
@@ -50,8 +50,19 @@ ENCHANT_PLUGIN_DECLARE ("Hspell")
*/
static int is_hebrew (const char *const iso_word)
{
- if (iso_word[0] < 'à' || iso_word[0] > 'ú')
- return FALSE;
+ int i = 0;
+
+ while ( iso_word[i] )
+ {
+ /* if not a hebrew alphabet or " ` ' */
+ if ( (iso_word[i] < 'à' || iso_word[i] > 'ú') && /* alef to tav */
+ (iso_word[i] < (char)146 || iso_word[i] > (char)148 ) && /* ` etc... */
+ ( iso_word[i] !=(char)34 ) && /* " */
+ ( iso_word[i] !=(char)39 ) ) /* ' */
+ return FALSE;
+ i++;
+ }
+
return TRUE;
}