<div dir="ltr"><br><br><div class="gmail_quote">On Mon, Oct 13, 2008 at 06:37, Jorge Efrain Mamani C. <span dir="ltr">&lt;<a href="http://efranet.bo">efranet.bo</a>@<a href="http://gmail.com">gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div dir="ltr">Since I can improve the search using the function removeaccents from PIT 00086&nbsp; (<a href="http://www.pmwiki.org/wiki/PITS/00086" target="_blank">http://www.pmwiki.org/wiki/PITS/00086</a>). How i use this function?, where the inserted thing? and since do I it call?. Tks.<br>
</div></blockquote></div><br>Thank you for pointing out to this PITS page, I was looking for solution of this problem as well. At the end of this page Pm writes that it was solved in 2.2.0b43. Changelog does not say anything about it so I downloaded 2.2.0b42 and 2.2.0b43, compared sources and found that since 2.2.0b43 it is possible to redefine a function that is used for normalization of search terms (strtolower by default).<br>
<br>I tried to put the following lines to config and it works (you have to delete wiki.d/.pageindex file in so it could be recreated with deaccented versions of search terms).<br><br>function removeaccents($string) {<br>return strtr(strtolower($string),<br>
&nbsp; &#39;aáâaäaçeéeëiíîinoóôoöouúuüýy&#39;,<br>&nbsp; &#39;aaaaaaceeeeiiiinoooooouuuuyy&#39;);<br>}<br>$StrFoldFunction = &#39;removeaccents&#39;;<br><br>Depending on what cookbook recipes are used it may need some further work. For example I use SortByScore and SearchTerms recipes that don&#39;t work correctly with deaccented searches.<br>
<br>HTH, Roman<br></div>