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

chat.freenode.net #tryton log beginning Mon Feb 6 00:00:01 CET 2012
-!- cfkane(~rloef@216-241-45-95.static.forethought.net) has left #tryton01:08
-!- minotavr_x86(~sdfgsd@62.76.179.29) has left #tryton07:47
PanderHi all10:06
-!- pjstevns(~paul@a83-163-46-103.adsl.xs4all.nl) has left #tryton10:08
PanderI 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'?11:42
PanderIn other words, what Python library supports diacritic independent matching on UTF-8?11:58
cedkPander: I used SequenceMatcher for fuzzying translation http://docs.python.org/library/difflib.html#difflib.SequenceMatcher12:39
jcmPander, cedk : is this a good solution ? http://pypi.python.org/pypi/Unidecode/0.04.112:40
cedkjcm: I don't think12:42
cedkjcm: it is not about representation but matching12:45
jcmcedk: found it here (question about removing diacriticals) http://stackoverflow.com/questions/517923/what-is-the-best-way-to-remove-accents-in-a-python-unicode-string12:45
cedkjcm: unidecode convert to ascii but it is not the goal12:50
Pandercedk: thanks13:03
bechamelpostresql has unaccent: http://www.postgresql.org/docs/9.0/static/unaccent.html13:30
-!- bdunnette(~dunn0172@2001:468:1910:3c06:a11:96ff:fe29:26d4) has left #tryton19:17
-!- bdunnette(~dunn0172@2001:468:1910:3c06:a11:96ff:fe29:26d4) has left #tryton20:03
-!- bdunnette(~dunn0172@x-134-84-73-238.uofm-secure.wireless.umn.edu) has left #tryton20:39
-!- bdunnette(~dunn0172@x-134-84-72-208.uofm-secure.wireless.umn.edu) has left #tryton21:30

Generated by irclog2html.py 2.11.0 by Marius Gedminas - find it at mg.pov.lt!