unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: "Roland Winkler" <winkler@gnu.org>
To: Lars Ingebrigtsen <larsi@gnus.org>
Cc: 47455@debbugs.gnu.org, Brian Elmegaard <be@mek.dtu.dk>
Subject: bug#47455: 27.1; bibtex mode - citation key generation - non-ascii characters
Date: Tue, 18 May 2021 14:00:56 -0500	[thread overview]
Message-ID: <3816.41298.758059.24740@gargle.gargle.HOWL> (raw)
In-Reply-To: <87wnrwc9ia.fsf@gnus.org>

On Tue May 18 2021 Lars Ingebrigtsen wrote:
> Brian Elmegaard <be@mek.dtu.dk> writes:
> 
> > Using C-c C-c in a bibtex cleans the entry and generates a citation key.
> > If the author name includes non-ascii characters these are included in
> > the key, even though BibTeX does not accept this.
> 
> Is this the case for all versions of BibTeX?

I believe the problem lies here already in BibTeX itself, that is,
BibTeX [like conventional (La)TeX] does not like non-ascii
characters anywhere, not in the key nor anywhere else.

Of course, there is biblatex and also new versions of (La)TeX that
can handle non-ascii characters.  But that's a separate story.

> > For example:
> >
> > @Article{äöü21,
> >   author =          {æøå äöü},
> 
> I guess Emacs could an asciification of some sort here, but I'm
> not sure there's any that's universally accepted?

The default of the user variable bibtex-autokey-transcriptions
handles "LaTeX non-ascii" characters like \"a.  You can customize
these rules to your liking.

I vaguely remember an old thread that started from the very question
raised here and expanding on how asciification can be encapsulated
in some generic piece of elisp code.  But I cannot find it anymore
and I do not know either whether this would be possible at all.  I
believe, everyone agrees on asciification of German umlaute like

  ä -> ae

But beyond that, I do not know how to do this satisfactorily.





  reply	other threads:[~2021-05-18 19:00 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-03-28 21:26 bug#47455: 27.1; bibtex mode - citation key generation - non-ascii characters Brian Elmegaard via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-05-18 16:05 ` Lars Ingebrigtsen
2021-05-18 19:00   ` Roland Winkler [this message]
2021-05-24 22:04     ` Lars Ingebrigtsen
2021-05-26 18:56       ` Roland Winkler
2021-05-28  7:17         ` Brian Elmegaard via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-05-30 21:39           ` Roland Winkler
2021-05-31  5:48             ` Lars Ingebrigtsen
2021-06-01  9:14           ` Arash Esbati
2021-06-01 14:37             ` Roland Winkler
2022-12-30  6:34               ` 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

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3816.41298.758059.24740@gargle.gargle.HOWL \
    --to=winkler@gnu.org \
    --cc=47455@debbugs.gnu.org \
    --cc=be@mek.dtu.dk \
    --cc=larsi@gnus.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 public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).