Re: Problem loading ispell affix file with apostrophes
От | Tom Lane |
---|---|
Тема | Re: Problem loading ispell affix file with apostrophes |
Дата | |
Msg-id | 13667.1216652997@sss.pgh.pa.us обсуждение исходный текст |
Ответ на | Problem loading ispell affix file with apostrophes ("Jean-Baptiste Quenot" <jbq@caraldi.com>) |
Ответы |
Re: Problem loading ispell affix file with apostrophes
|
Список | pgsql-bugs |
"Jean-Baptiste Quenot" <jbq@caraldi.com> writes: > I'm having problem with french dictionaries. Loading an ispell affix > file with apostrophes does not work. The file comes from the ifrench > (french dict for ispell) debian source package at > http://packages.debian.org/sid/ifrench > dockee=# select plainto_tsquery('custom_french', 'bug'); > ERROR: syntax error at line 158 of affix file > "/usr/share/postgresql/8.3/tsearch_data/ispell_french.affix" > Line 158 of file ispell_french.affix corresponds to the first flag > definition that triggers a prefix with an apostrophe, it's the line > below "flag *N" > ------------------------------------------------------------------------ > 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. regards, tom lane
В списке pgsql-bugs по дате отправления: