diff options
author | Dom Lachowicz <domlachowicz@gmail.com> | 2003-12-23 04:26:38 +0000 |
---|---|---|
committer | Dom Lachowicz <domlachowicz@gmail.com> | 2003-12-23 04:26:38 +0000 |
commit | ac5e08f9295470b7836950a73555992a3c0a29f8 (patch) | |
tree | d7bab6056b2672d652021fe9613e3faa853e7b99 | |
parent | ea80a9086948895e20ffbc67d961fffa20b85654 (diff) | |
download | enchant-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.c | 15 |
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; } |