From ac5e08f9295470b7836950a73555992a3c0a29f8 Mon Sep 17 00:00:00 2001 From: Dom Lachowicz Date: Tue, 23 Dec 2003 04:26:38 +0000 Subject: another hspell patch from yaacov git-svn-id: svn+ssh://svn.abisource.com/svnroot/enchant/trunk@20897 bcba8976-2d24-0410-9c9c-aab3bd5fdfd6 --- src/hspell/hspell_provider.c | 15 +++++++++++++-- 1 file 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; } -- cgit v1.2.1