-
-
Notifications
You must be signed in to change notification settings - Fork 61
Sorting in bibliography: lowercase appears after uppercase (“author” after “Zuthor”) #122
Comments
@nickbart1980 - I get the correct output for this test case (so I can't reproduce your "actual" output):
Are you perhaps using an older version inadvertently? |
No, latest dev version, but I'm usually compiling with |
I just installed with
|
That's odd. I’m on MacOS 10.10, and have now upgraded to icu4c 55.1 (homebrew: https://homebrew.bintray.com/bottles/icu4c-55.1.yosemite.bottle.tar.gz), and reinstalled pandoc-citeproc (which in turn reinstalls text-icu-0.7.0.1) with the following:
Output, as before:
Anything else I could try? |
I'm at a loss. I've tried this with |
Excellent guess. –
Running
resolves the sorting issue, also for accented and other modified characters for which icu4c was originally brought in (see https://code.google.com/p/citeproc-hs/issues/detail?id=64). Also, My follow-up question is, could pandoc be patched to make icu4c use the locale matching the content of the |
+++ nickbart1980 [May 05 15 01:45 ]:
That should be possible. Currently we have
The |
OK, on closer look, it's not easy to make the collation depend on the locale specified in the style. |
That seems to work well. The locale will be set by the |
Well, mostly. Locale-specific collation is not set from the |
Really? It works for me:
With this I get Z before Ø. |
Hmm, what's your output when you run the |
My locale is
It works either with +++ nickbart1980 [May 07 15 10:12 ]:
|
OK, this seems to be hinging on whether |
Aha. Currently I just set LANG (in the subprocess) according to the +++ nickbart1980 [May 08 15 03:58 ]:
|
Yes, that seems better. In general, the most common approach seems to be to let users set |
LC_ALL will override LANG, so if it is set, setting LANG doesn't affect collation. See #122.
I've done this. |
This affects both lowercase family names and non-dropping-particles.
Example:
Expected:
Actual:
The text was updated successfully, but these errors were encountered: