[Tickets #2337] Problem with spell check with accented characters

bugs@bugs.horde.org bugs at bugs.horde.org
Wed Jul 27 08:57:25 PDT 2005


DO NOT REPLY TO THIS MESSAGE. THIS EMAIL ADDRESS IS NOT MONITORED.

Ticket URL: http://bugs.horde.org/ticket/?id=2337
-----------------------------------------------------------------------
 Ticket             | 2337
 Updated By         | luc.germain at usherbrooke.ca
 Summary            | Problem with spell check with accented characters
 Queue              | IMP
 Version            | 4.0.3
 State              | Unconfirmed
 Priority           | 3. High
 Type               | Bug
 Owners             | 
-----------------------------------------------------------------------


luc.germain at usherbrooke.ca (2005-07-27 08:57) wrote:

The problem comes from fact that IMP 4 seems to use UTF-8 internally and so
it sends the text to aspell in UTF-8. aspell version 0.33 that comes with
RHEL3 works only with ISO8859-1. 

A simple workaround is to define a script that does the conversion from and
to UTF-8 before sending the data to aspell. Here is an example:

# cat /usr/local/bin/aspell2

#!/bin/bash
/usr/bin/iconv -f utf-8 -t iso8859-1 < /dev/stdin | /usr/bin/aspell $@ |
/usr/bin/iconv -f iso8859-1 -t utf-8

You then use /usr/local/bin/aspell2 in the IMP configuration, and the spell
checking of text using any language supported by aspell 0.33 should now work
properly.




More information about the bugs mailing list