Skip to content

Commit

Permalink
Merge pull request #610 from gnudles/patch-1
Browse files Browse the repository at this point in the history
more accurate hebrew character translation
  • Loading branch information
Abs62 committed Jun 26, 2015
2 parents 8717a56 + c1e30b0 commit 1d60f0a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bgl.cc
Expand Up @@ -460,7 +460,7 @@ namespace
{
for ( unsigned int i = 0; i < wstr.size(); i++ )
{
if ( wstr[ i ] >= 224 && wstr[ i ] <= 250 ) // Hebrew chars encoded ecoded as windows-1255 or ISO-8859-8
if ( (wstr[ i ] >= 224 && wstr[ i ] <= 250) || (wstr[ i ] >= 192 && wstr[ i ] <= 210) ) // Hebrew chars encoded ecoded as windows-1255 or ISO-8859-8, or as vowel-points of windows-1255
wstr[ i ] += 1488 - 224; // Convert to Hebrew unicode
}
}
Expand Down Expand Up @@ -729,7 +729,7 @@ void BglArticleRequest::fixHebString(string & hebStr) // Hebrew support - conver

for (unsigned int i=0; i<hebWStr.size();i++)
{
if (hebWStr[i]>=224 && hebWStr[i]<=250) // Hebrew chars encoded ecoded as windows-1255 or ISO-8859-8
if ( (hebWStr[ i ] >= 224 && hebWStr[ i ] <= 250) || (hebWStr[ i ] >= 192 && hebWStr[ i ] <= 210) ) // Hebrew chars encoded ecoded as windows-1255 or ISO-8859-8, or as vowel-points of windows-1255
hebWStr[i]+=1488-224; // Convert to Hebrew unicode
}
hebStr=Utf8::encode(hebWStr);
Expand Down

0 comments on commit 1d60f0a

Please sign in to comment.