<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br><div><div>On 23.02.2010, at 23:01, Tomas Jonsson wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div>Hi, I've been trying out the BibTeX replacement Biber because it's unicode aware, but I have run into problems concerning the alphabetic sorting for swedish. I have asked at the Biber forum and there seems to be some problems concerning the collation table in Mac OS X (in "/usr/share/locale/sv_SE.UTF-8" (I'm using Mac OS X 10.6.2). Biber (a Perl program) relies on this to do the sorting.<br><br>The problem is: When using biber 0.5.1 and biblatex 0.90 in swedish (encoding utf-8), the alphabetic sorting consequently puts ä (small and capital a with diaeresis above) before å (small and capital a with ring above), which are separate letters in swedish and comes after z and before ö (small and capital o with diaeresis). The order should be the reverse, å (a-ring) before ä (a-diaeresis). <br><br>The problem seems to be in Mac OS X. I've been told other systems do get the correct output. ("Well, given the locale "sv_SE.UTF8", the 'sort' function should in principle behave correctly. But the implementation is very much system-specific and outside of Perl's control. On most Unix-like systems the collation tables for specific locales are provided by the glibc library. I have tried the following after generating the locale data for sv_SE.utf8 on my linux machine with glibc 2.11.1, and it seems to work as expected:") The sv_SE.UTF-8 locale's collation table is a symlink to "la_LN.US-ASCII/LC_COLLATE" as is all the other utf-8 collation files in /usr/share/locale, which I find strange.<br></div></blockquote><div><br></div>I'm not really sure if this really answers your question, but I realized today that the Unicode::Collate which comes installed with Snow Leopard seems to be incomplete or at least not identical to the one on CPAN. It doesn't have all the necessary sorting stuff. If you do a force install of Unicode::Collate (sudo cpan -f Unicode::Collate) then the correct allkeys.txt is installed. Don't really know if this helps for your specific problem.</div><div><br></div><div>Simon</div><br><div>
<span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; -webkit-text-decorations-in-effect: none; text-indent: 0px; -webkit-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">--</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">Simon Spiegel</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">Steinhaldenstr. 50</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">8002 Zürich</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">Telephon: ++41 44 451 5334</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">Mobophon: ++41 76 459 60 39</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><a href="http://www.simifilm.ch">http://www.simifilm.ch</a></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><span class="Apple-style-span" style="font-family: Arial; ">„</span>I'm not that easy to impress. – O, a blue car!<span class="Apple-style-span" style="font-family: Arial; "><span class="Apple-style-span" style="font-family: Helvetica; "><font class="Apple-style-span" face="Arial">“</font></span></span> Homer Simpson</div><br class="Apple-interchange-newline"></span></div></span><br class="Apple-interchange-newline"></span><br class="Apple-interchange-newline">
</div>
<br></body></html>