<div dir="ltr"><div>Gaetan, </div><div><br></div><div>I've added your entry here:</div><div><br></div><div><a href="https://wiki.koha-community.org/wiki/ICU_Chains_Library#Swedish">https://wiki.koha-community.org/wiki/ICU_Chains_Library#Swedish</a><br></div><div><br></div><div>Please let me know if I've made any copy/paste errors.</div><div><br></div><div>Thanks,</div><div><br></div><div>--Barton</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Feb 1, 2017 at 9:18 AM, Gaetan Boisson <span dir="ltr"><<a href="mailto:gaetan.boisson@biblibre.com" target="_blank">gaetan.boisson@biblibre.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Digging this back up as we finally found a solution. And by "we" i mean Fridolin Somers, whose knowledge of ICU, zebra and indexing never ceases to amaze me!<br>
<br>
Setting the ICU locale to sv-SE was not enough it seems, because this still transliterated å, ä, ö, Å, Ä and Ö to a, o, A and O.<br>
<br>
We just had to add a rule to exclude them from the transliteration:<br>
<br>
<transform rule="[^åäöÅÄÖ] NFD"/><!-- do not undiactric some characters --><br>
<br>
Meh, sounds easy enough now!<br>
<br>
Hopefully this will come in handy to someone.<div class="HOEnZb"><div class="h5"><br>
<br>
<br>
Le 12/01/2017 à 02:51, David Cook a écrit :<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Considering the folk at IndexData are Danish, perhaps they could provide<br>
some insight more directly.<br>
<br>
David Cook<br>
Systems Librarian<br>
Prosentient Systems<br>
72/330 Wattle St<br>
Ultimo, NSW 2007<br>
Australia<br>
<br>
Office: 02 9212 0899<br>
Direct: 02 8005 0595<br>
<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
-----Original Message-----<br>
From: <a href="mailto:koha-devel-bounces@lists.koha-community.org" target="_blank">koha-devel-bounces@lists.koha-<wbr>community.org</a> [mailto:<a href="mailto:koha-devel-" target="_blank">koha-devel-</a><br>
<a href="mailto:bounces@lists.koha-community.org" target="_blank">bounces@lists.koha-community.o<wbr>rg</a>] On Behalf Of Colin Campbell<br>
Sent: Friday, 25 November 2016 3:32 AM<br>
To: <a href="mailto:koha-devel@lists.koha-community.org" target="_blank">koha-devel@lists.koha-communit<wbr>y.org</a><br>
Subject: Re: [Koha-devel] proper sorting order and search for Swedish<br>
characters and ISBN search<br>
<br>
On Fri, Nov 04, 2016 at 05:20:03PM +0100, Gaetan Boisson wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
  Hello,<br>
<br>
I have been trying several things to try to sort this out, and haven't<br>
found a way (yet) that would avoid ugly compromises.<br>
<br>
The issue is: in Swedish ä, ö and å are separate letters. Not variants<br>
of a and o. This means that searching for å shouldn't bring up a. When<br>
sorting, they belong to the very end of the alphabet, after z, not along<br>
</blockquote></blockquote>
a and<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
o.<br>
In ICU, setting the locale parameter to "sv" (swedish) should do this. I<br>
</blockquote>
cant<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
seem to get this to work in yaz-icu but there are tests in the yaz code<br>
</blockquote>
base for<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
passing locale to strings. However I'm not sure how to correctly specify<br>
</blockquote>
this for<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
yaz the documentation is way too sketchy.<br>
<br>
Colin<br>
<br>
--<br>
Colin Campbell<br>
Chief Software Engineer,<br>
PTFS Europe Limited<br>
Content Management and Library Solutions<br>
<a href="tel:%2B44%20%280%29%20800%20756%206803" value="+448007566803" target="_blank">+44 (0) 800 756 6803</a> (phone)<br>
<a href="tel:%2B44%20%280%29%207759%20633626" value="+447759633626" target="_blank">+44 (0) 7759 633626</a>  (mobile)<br>
<a href="mailto:colin.campbell@ptfs-europe.com" target="_blank">colin.campbell@ptfs-europe.com</a><br>
skype: colin_campbell2<br>
<br>
<a href="http://www.ptfs-europe.com" rel="noreferrer" target="_blank">http://www.ptfs-europe.com</a><br>
______________________________<wbr>_________________<br>
Koha-devel mailing list<br>
<a href="mailto:Koha-devel@lists.koha-community.org" target="_blank">Koha-devel@lists.koha-communit<wbr>y.org</a><br>
<a href="http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-devel" rel="noreferrer" target="_blank">http://lists.koha-community.or<wbr>g/cgi-bin/mailman/listinfo/koh<wbr>a-devel</a><br>
website : <a href="http://www.koha-community.org/" rel="noreferrer" target="_blank">http://www.koha-community.org/</a> git :<br>
</blockquote>
<a href="http://git.koha-community.org/" rel="noreferrer" target="_blank">http://git.koha-community.org/</a><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
bugs : <a href="http://bugs.koha-community.org/" rel="noreferrer" target="_blank">http://bugs.koha-community.org<wbr>/</a><br>
</blockquote>
<br>
______________________________<wbr>_________________<br>
Koha-devel mailing list<br>
<a href="mailto:Koha-devel@lists.koha-community.org" target="_blank">Koha-devel@lists.koha-communit<wbr>y.org</a><br>
<a href="http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-devel" rel="noreferrer" target="_blank">http://lists.koha-community.or<wbr>g/cgi-bin/mailman/listinfo/koh<wbr>a-devel</a><br>
website : <a href="http://www.koha-community.org/" rel="noreferrer" target="_blank">http://www.koha-community.org/</a><br>
git : <a href="http://git.koha-community.org/" rel="noreferrer" target="_blank">http://git.koha-community.org/</a><br>
bugs : <a href="http://bugs.koha-community.org/" rel="noreferrer" target="_blank">http://bugs.koha-community.org<wbr>/</a><br>
</blockquote>
<br></div></div><span class="im HOEnZb">
-- <br>
Gaetan Boisson<br>
Chef de projet bibliothécaire<br>
BibLibre<br>
<a href="tel:%2B33%280%296%2052%2042%2051%2029" value="+33652425129" target="_blank">+33(0)6 52 42 51 29</a><br>
108 rue Breteuil 13006 Marseille<br>
<a href="mailto:gaetan.boisson@biblibre.com" target="_blank">gaetan.boisson@biblibre.com</a><br>
<br></span><div class="HOEnZb"><div class="h5">
______________________________<wbr>_________________<br>
Koha-devel mailing list<br>
<a href="mailto:Koha-devel@lists.koha-community.org" target="_blank">Koha-devel@lists.koha-communit<wbr>y.org</a><br>
<a href="http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-devel" rel="noreferrer" target="_blank">http://lists.koha-community.or<wbr>g/cgi-bin/mailman/listinfo/koh<wbr>a-devel</a><br>
website : <a href="http://www.koha-community.org/" rel="noreferrer" target="_blank">http://www.koha-community.org/</a><br>
git : <a href="http://git.koha-community.org/" rel="noreferrer" target="_blank">http://git.koha-community.org/</a><br>
bugs : <a href="http://bugs.koha-community.org/" rel="noreferrer" target="_blank">http://bugs.koha-community.org<wbr>/</a><br>
</div></div></blockquote></div><br></div>