all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Roland Winkler" <winkler@gnu.org>
To: 39686@debbugs.gnu.org
Cc: gojjoe2@googlemail.com
Subject: bug#39686: 25.2; Wrong behaviour of bibtex-autokey-name-change-strings
Date: Wed, 19 Feb 2020 22:54:39 -0600	[thread overview]
Message-ID: <4367.92615.138020.24142@gargle.gargle.HOWL> (raw)

For the records:

The bug report below was submitted to auctex (bug#39479).
I am reposting it here.

==================================================================
Hi,

The bibtex-generate-autokey function uses
'bibtex-autokey-name-change-strings' to substitute special or accented
characters or ligatures with ascii characters.

I noticed that it doesn't lead to the intended behaviour for '\oe' and
'\OE', which get converted to 'oee' rather than 'oe'. On the other
hand, '\o', '\"o', and their capitalized counterparts are correctly
converted to 'oe' (and also '\ae' to 'ae').

This quirk seems to be fixed if '\o' and '\oe' are swapped in
bibtex-autokey-name-change-strings. Then all variants are correctly
converted.

So I propose to change the current bibtex-autokey-name-change-strings into

'(("\\\\aa" . "a")
  ("\\\\AA" . "A")
  ("\\\"a\\|\\\\\\\"a\\|\\\\ae" . "ae")
  ("\\\"A\\|\\\\\\\"A\\|\\\\AE" . "Ae")
  ("\\\\i" . "i")
  ("\\\\j" . "j")
  ("\\\\l" . "l")
  ("\\\\L" . "L")
  ("\\\"o\\|\\\\\\\"o\\|\\\\oe\\|\\\\o" . "oe")
  ("\\\"O\\|\\\\\\\"O\\|\\\\OE\\|\\\\O" . "Oe")
  ("\\\"s\\|\\\\\\\"s\\|\\\\3" . "ss")
  ("\\\"u\\|\\\\\\\"u" . "ue")
  ("\\\"U\\|\\\\\\\"U" . "Ue")
  ("\\\\`\\|\\\\'\\|\\\\\\^\\|\\\\~\\|\\\\=\\|\\\\\\.\\|\\\\u\\|\\\\v\\|\\\\H\\|\\\\t\\|\\\\c\\|\\\\d\\|\\\\b"
. "")
  ("[`'\"{}#]" . "")
  ("\\\\-" . "")
  ("\\\\?[ 	\n]+\\|~" . " "))

Cheers!





             reply	other threads:[~2020-02-20  4:54 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-02-20  4:54 Roland Winkler [this message]
     [not found] ` <handler.39686.B.158217451717286.ack@debbugs.gnu.org>
2020-02-20  5:04   ` bug#39686: 25.2; Wrong behaviour of bibtex-autokey-name-change-strings Roland Winkler
2020-02-21  9:22     ` gojjoe2--- via Bug reports for GNU Emacs, the Swiss army knife of text editors
2020-02-21 14:06       ` Roland Winkler
2020-02-21 14:08         ` gojjoe2--- via Bug reports for GNU Emacs, the Swiss army knife of text editors
2020-02-21 14:13     ` Roland Winkler
2020-02-21 15:01       ` Eli Zaretskii
2020-02-21 19:50         ` Roland Winkler
2020-02-22  9:12           ` Eli Zaretskii
2020-03-06  8:46             ` Roland Winkler
2020-02-21 16:05 ` Mattias Engdegård
2020-02-21 20:03   ` Roland Winkler
2020-02-21 20:43     ` Mattias Engdegård
2020-02-21 21:03       ` Roland Winkler
2020-02-21 21:32         ` Mattias Engdegård

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=4367.92615.138020.24142@gargle.gargle.HOWL \
    --to=winkler@gnu.org \
    --cc=39686@debbugs.gnu.org \
    --cc=gojjoe2@googlemail.com \
    /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.