<div dir="ltr">This works well for words with macrons āēīōū<div><br></div><div>thanks</div><div><br></div><div>SImon<br><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, 4 Feb 2023 at 20:52, Hans Bracker <<a href="mailto:design@softflow.uk">design@softflow.uk</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hello Petko,<br>
<br>
Friday, February 3, 2023, 3:22:00 PM, you wrote:<br>
<br>
> <a href="https://www.pmwiki.org/wiki/Cookbook/UnaccentUTF8" rel="noreferrer" target="_blank">https://www.pmwiki.org/wiki/Cookbook/UnaccentUTF8</a><br>
<br>
> Not sure if it will be enough for you as it also folds to lowercase. But you can copy this function and adapt it. Maybe simply remove ":: Lower();" from the argument, or review the documentation for the Intl/Transliterator class at <a href="http://php.net" rel="noreferrer" target="_blank">php.net</a>.<br>
<br>
Thanks, I tried it out, as you put it, and as a customisation for TextExtract.<br>
I think one needs to be very careful, if one wants to use it.<br>
For German language, and used as it is, it will give many false positives in search results.<br>
Word pairs like Bär and Bar, Blüten and bluten, Fähre and fahre, möchte and mochte, are treated as the same, but have total different meanings. So I would not recommend this recipe for German language sites. I can imagine other languages using UTF8 could have similar problems.<br>
<br>
As to my TextExtract search for terms with ss and ß: <br>
I think it may be better if I offer a customisation, with a custom array of substitutes.<br>
That could then also offer substitutes for accented characters, like used in Roman languages, but not substitutes for ä, ö, ü, and others, which would lead to too many false positive results.<br>
<br>
<br>
cheers,<br>
Hans<br>
<br>
<br>
_______________________________________________<br>
pmwiki-users mailing list<br>
<a href="mailto:pmwiki-users@pmichaud.com" target="_blank">pmwiki-users@pmichaud.com</a><br>
<a href="http://www.pmichaud.com/mailman/listinfo/pmwiki-users" rel="noreferrer" target="_blank">http://www.pmichaud.com/mailman/listinfo/pmwiki-users</a><br>
</blockquote></div>