Re: Problem loading ispell affix file with apostrophes - Mailing list pgsql-bugs

From Teodor Sigaev
Subject Re: Problem loading ispell affix file with apostrophes
Date
Msg-id 4886278B.7040801@sigaev.ru
Whole thread Raw
In response to Re: Problem loading ispell affix file with apostrophes  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-bugs
>> ------------------------------------------------------------------------
>> flag *D:                        # dÊ: dÊfaire, dÊgrossir
>>     .               >   dÊ
>
>> flag *N:                        # Êlision d'une nÊgation
>>     [aÁ×eÉÊËiÏoÆuh] >   n'      # je n'aime pas, il n'y a pas
>> ------------------------------------------------------------------------
>
>> Maybe apostrophes in ispell affix files are simply not supported?
>
> Looking at the code, apostrophe seems to be allowed as the first
> character of the REPL field, but not anywhere else (in particular,
> not after transitioning into PAE_INREPL state).  Dunno if this is
> a bug or intentional.

Yeah, because original ispell tries to lexize words like "book's", but
apostrophe is a word-break character from our text parser. So, I just added this
special case to parser. But it seems to me we should allow apostrophe as word
character in replace field, may be in find field too.

--
Teodor Sigaev                                   E-mail: teodor@sigaev.ru
                                                    WWW: http://www.sigaev.ru/

pgsql-bugs by date:

Previous
From: "Alexandre Payment"
Date:
Subject: Re: BUG #4320: Describe table on 8.2.9 server fail
Next
From: hubert depesz lubaczewski
Date:
Subject: Re: BUG #4320: Describe table on 8.2.9 server fail