Hi, Le 28 août 06, à 12:22, Jens Kraemer a écrit : > in Ferret 0.10 there's a highlight method in the Searcher class. Maybe > that does what you want ? > > http://ferret.davebalmain.com/api/classes/Ferret/Search/ > Searcher.html#M000223
Seems good, will be perfect if your truncate respects multi-byte chars. My ruby helper does it, see how it works on http://symetrie.com/fr/search (it highlights only the first occurence of each word currently). I cannot find the whole code in http://ferret.davebalmain.com/trac/browser/tags/REL-0.10.1/ext/ r_search.c though to check this (and would I, I'm not sure I could check unicode implementation in C :/) I'll maybe wait for aaf to be updated for 0.10.1 before testing. Jean-Christophe Michel -- Symétrie, édition de musique et services multimédia 30 rue Jean-Baptiste Say 69001 LYON (FRANCE) tél +33 (0)478 29 52 14 fax +33 (0)478 30 01 11 web www.symetrie.com _______________________________________________ Ferret-talk mailing list [email protected] http://rubyforge.org/mailman/listinfo/ferret-talk

