From: Eli Zaretskii <eliz@gnu.org>
To: "Roland Winkler" <winkler@gnu.org>
Cc: rudalics@gmx.at, emacs-devel@gnu.org
Subject: Re: strip accents and sorting [was: BibTeX issues]
Date: Fri, 30 Aug 2019 20:51:32 +0300 [thread overview]
Message-ID: <838sraa6e3.fsf@gnu.org> (raw)
In-Reply-To: <20085.68375.750044.23913@gargle.gargle.HOWL> (winkler@gnu.org)
> Date: Fri, 30 Aug 2019 11:27:33 -0500
> From: "Roland Winkler" <winkler@gnu.org>
> Cc: Eli Zaretskii <eliz@gnu.org>,
> emacs-devel@gnu.org
>
> > But (string-collate-lessp "ä-umlaut" "ö-combine") gives t
>
> ...not for me, which is likely due to my locale LC_COLLATE=C
>
> I could use instead, say, LC_COLLATE=en_US.utf8. Then the above
> call of string-collate-lessp yields t. But this also implies case
> folding and ignoring dots in directory listings, which is not what I
> want. In other words, these locales have too many features bundled
> together.
You could set LC_COLLATE=en_US.utf8 inside Emacs, or even bind it
around the call to string-collate-lessp. I think we support that on
GNU/Linux.
> > The Unicode Standard mandates that they be handled identically,
> > including in searching and sorting. We don't yet implement that
> > 100%, but see char-fold.el for a partial (and not very efficient)
> > implementation during search.
>
> So I would assume that the locale should not matter at all in the
> context of unicode combining characters.
Not entirely true, as some aspects of this equivalence can be
locale-dependent. See UAX#10 (http://www.unicode.org/reports/tr10/)
for more about that.
next prev parent reply other threads:[~2019-08-30 17:51 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-08-27 8:40 BibTeX issues Joost Kremers
2019-08-28 17:45 ` Roland Winkler
2019-08-28 18:45 ` Eli Zaretskii
2019-08-29 3:26 ` strip accents and sorting [was: BibTeX issues] Roland Winkler
2019-08-29 6:15 ` martin rudalics
2019-08-30 16:27 ` Roland Winkler
2019-08-30 17:51 ` Eli Zaretskii [this message]
2019-08-30 18:38 ` Eli Zaretskii
2019-08-30 19:09 ` Roland Winkler
2019-08-30 19:19 ` Eli Zaretskii
2019-08-30 19:49 ` Roland Winkler
2019-08-31 6:45 ` Eli Zaretskii
2019-08-29 7:10 ` Eli Zaretskii
2019-08-30 16:29 ` Roland Winkler
2019-08-29 7:49 ` BibTeX issues Joost Kremers
2019-08-30 19:18 ` Roland Winkler
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=838sraa6e3.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=emacs-devel@gnu.org \
--cc=rudalics@gmx.at \
--cc=winkler@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.