Skip to content

Commit c49ef52

Browse files
committed
fixing spell check french accents
1 parent 88a71a5 commit c49ef52

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

BINARIES/chatscript.exe

0 Bytes
Binary file not shown.

SRC/spellcheck.cpp

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -701,18 +701,19 @@ static int EditDistance(WORDINFO& dictWordData, WORDINFO& realWordData,int min)
701701
resumeDict2 = IsUTF8((char*)resumeDict1, next1CharDict);
702702
baseCharReal = UnaccentedChar(currentCharReal);
703703
baseCharDict = UnaccentedChar(currentCharDict);
704+
if (!stricmp(currentCharReal, currentCharDict)) // match chars
705+
{
706+
dictinfo = resumeDict;
707+
realinfo = resumeReal;
708+
continue;
709+
}
704710
if (baseCharReal && baseCharReal == baseCharDict)
705711
{
706712
dictinfo = resumeDict;
707713
realinfo = resumeReal;
714+
val += 1; // minimal charge but separate forms of delivre
708715
continue;
709716
}
710-
if (!stricmp(currentCharReal,currentCharDict)) // match chars
711-
{
712-
dictinfo = resumeDict;
713-
realinfo = resumeReal;
714-
continue;
715-
}
716717
// treat german double s and ss equivalent
717718
if (!stricmp(language, "german"))
718719
{

0 commit comments

Comments
 (0)