GNU bug report logs - #39479
Wrong behaviour of bibtex-autokey-name-change-strings

Previous Next

Package: auctex;

Reported by: gojjoe2 <at> googlemail.com

Date: Fri, 7 Feb 2020 13:49:02 UTC

Severity: normal

Tags: notabug

Done: Arash Esbati <arash <at> gnu.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 39479 in the body.
You can then email your comments to 39479 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-auctex <at> gnu.org:
bug#39479; Package auctex. (Fri, 07 Feb 2020 13:49:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to gojjoe2 <at> googlemail.com:
New bug report received and forwarded. Copy sent to bug-auctex <at> gnu.org. (Fri, 07 Feb 2020 13:49:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: gojjoe2 <at> googlemail.com
To: bug-auctex <at> gnu.org
Subject: Wrong behaviour of bibtex-autokey-name-change-strings
Date: Fri, 7 Feb 2020 13:27:26 +0100
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!




Information forwarded to bug-auctex <at> gnu.org:
bug#39479; Package auctex. (Fri, 14 Feb 2020 18:59:01 GMT) Full text and rfc822 format available.

Message #8 received at 39479 <at> debbugs.gnu.org (full text, mbox):

From: Arash Esbati <arash <at> gnu.org>
To: gojjoe2 <at> googlemail.com
Cc: winkler <at> gnu.org, 39479 <at> debbugs.gnu.org
Subject: Re: bug#39479: Wrong behaviour of bibtex-autokey-name-change-strings
Date: Fri, 14 Feb 2020 19:57:53 +0100
Hi,

thanks for your report.  The function in question is part of `bibtex.el'
which in return is part of Emacs itself and not AUCTeX.  I'm CC'ing
bibtex maintainer asking him if he could have a look at your
suggestion.  If you don't receive an answer in due time, please consider
reporting this issue as an Emacs bug.

@Roland: Can you please have a look at the report below?  TIA.

I will close this report since it doesn't apply to AUCTeX.

Best, Arash

gojjoe2--- via bug-auctex via Bug reporting list for AUCTeX <bug-auctex <at> gnu.org> writes:

> 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!
>
> _______________________________________________
> bug-auctex mailing list
> bug-auctex <at> gnu.org
> https://lists.gnu.org/mailman/listinfo/bug-auctex




Added tag(s) notabug. Request was from Arash Esbati <arash <at> gnu.org> to control <at> debbugs.gnu.org. (Fri, 14 Feb 2020 20:41:02 GMT) Full text and rfc822 format available.

bug closed, send any further explanations to 39479 <at> debbugs.gnu.org and gojjoe2 <at> googlemail.com Request was from Arash Esbati <arash <at> gnu.org> to control <at> debbugs.gnu.org. (Fri, 14 Feb 2020 20:41:02 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sat, 14 Mar 2020 11:24:06 GMT) Full text and rfc822 format available.

This bug report was last modified 5 years and 124 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.