GNU bug report logs -
#39686
25.2; Wrong behaviour of bibtex-autokey-name-change-strings
Previous Next
Reported by: "Roland Winkler" <winkler <at> gnu.org>
Date: Thu, 20 Feb 2020 04:56:02 UTC
Severity: normal
Found in version 25.2
Done: "Roland Winkler" <winkler <at> gnu.org>
Bug is archived. No further changes may be made.
Full log
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
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!
This bug report was last modified 5 years and 74 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.