ignore-accents option

29 views
Skip to first unread message

Thus0

unread,
Dec 22, 2010, 1:37:00 AM12/22/10
to pyenchant users
Hi,

is it possible to use the ignore-accents option with pyenchant ?

cf. http://aspell.net/0.50-doc/man-html/5_Working.html#SECTION00650000000000000000

For example, I would like to have a True result for 'cafe' or 'café'

Thank you.

Ryan Kelly

unread,
Dec 22, 2010, 2:20:41 AM12/22/10
to pyencha...@googlegroups.com


Unfortunately not. As enchant is meant as a generic interface to a wide
range of spell checking engines, it doesn't expose some of the more
advanced functionality of aspell.

You could always make a subclass of enchant.Dict that strips accents out
of words before checking them, but I don't know of a reliable way to
replace accented characters with their non-accented equivalents. (I'm
sure there is a way, I just don't know about it)


Cheers,

Ryan


--
Ryan Kelly
http://www.rfk.id.au | This message is digitally signed. Please visit
ry...@rfk.id.au | http://www.rfk.id.au/ramblings/gpg/ for details

signature.asc
Reply all
Reply to author
Forward
0 new messages