IRC logs of #tryton for Monday, 2012-02-06

chat.freenode.net #tryton log beginning Mon Feb 6 00:00:01 CET 2012
2012-02-06 01:08 -!- cfkane(~rloef@216-241-45-95.static.forethought.net) has left #tryton
2012-02-06 07:47 -!- minotavr_x86(~sdfgsd@62.76.179.29) has left #tryton
2012-02-06 10:06 <Pander> Hi all
2012-02-06 10:08 -!- pjstevns(~paul@a83-163-46-103.adsl.xs4all.nl) has left #tryton
2012-02-06 11:42 <Pander> I have a filter on category for party tree which works, it uses if value.lower() in cats[cat].lower(): ... how can I change this so that when I search for 'beo' it will also return 'béo'?
2012-02-06 11:58 <Pander> In other words, what Python library supports diacritic independent matching on UTF-8?
2012-02-06 12:39 <cedk> Pander: I used SequenceMatcher for fuzzying translation http://docs.python.org/library/difflib.html#difflib.SequenceMatcher
2012-02-06 12:40 <jcm> Pander, cedk : is this a good solution ? http://pypi.python.org/pypi/Unidecode/0.04.1
2012-02-06 12:42 <cedk> jcm: I don't think
2012-02-06 12:45 <cedk> jcm: it is not about representation but matching
2012-02-06 12:45 <jcm> cedk: found it here (question about removing diacriticals) http://stackoverflow.com/questions/517923/what-is-the-best-way-to-remove-accents-in-a-python-unicode-string
2012-02-06 12:50 <cedk> jcm: unidecode convert to ascii but it is not the goal
2012-02-06 13:03 <Pander> cedk: thanks
2012-02-06 13:30 <bechamel> postresql has unaccent: http://www.postgresql.org/docs/9.0/static/unaccent.html
2012-02-06 19:17 -!- bdunnette(~dunn0172@2001:468:1910:3c06:a11:96ff:fe29:26d4) has left #tryton
2012-02-06 20:03 -!- bdunnette(~dunn0172@2001:468:1910:3c06:a11:96ff:fe29:26d4) has left #tryton
2012-02-06 20:39 -!- bdunnette(~dunn0172@x-134-84-73-238.uofm-secure.wireless.umn.edu) has left #tryton
2012-02-06 21:30 -!- bdunnette(~dunn0172@x-134-84-72-208.uofm-secure.wireless.umn.edu) has left #tryton

Generated by irclog2html.py 2.17.3 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!