Hello Stefan, hello all,
Stefan Monnier <[EMAIL PROTECTED]> writes:
>> Now, press `C-c C-c' inside the entry -- Emacs suggests `bl�d05:_test'
>> as the key to use -- and hit RET: Emacs writes in the minibuffer `New
>> inserted entry yields duplicate key'.
>
> Does the patch below fix the problem for you?
I tested your patch a little: first a case without `funny characters',
and then I'll add some umlauts here and there.
@Article{,
author = {Some Name},
title = {Umlaut title},
journal = {None for the moment},
year = {2005},
chrsc = Summary:
}
Gives the key `name05:_umlaut_title'. Using umlauts in the author
field gives
@Article{n�me05:_umlaut_title,
author = {S�me N�me},
title = {Umlaut title},
journal = {None for the moment},
year = {2005},
chrsc = Summary:
}
so that works. Making the first word of the title starting with an
umlaut gives
@Article{n�me05:_title,
author = {S�me N�me},
title = {�mlaut title},
journal = {None for the moment},
year = {2005},
chrsc = Summary:
}
Now the `�mlaut' is missing in the key, it should be
`n�me05:_�mlaut_title' instead of `n�me05:_title'. Replacing `�mlaut'
with `Uml�ut' gives the same result. Replacing `title' with `titl�'
gives
@Article{n�me05:_umlaut,
author = {S�me N�me},
title = {Umlaut titl�},
journal = {None for the moment},
year = {2005},
chrsc = Summary:
}
so it seems to me that words in the title containing umlauts are just
skipped, while umlauts in the author field do not harm:
@Article{�berall05:_umlaut,
author = {�rwin �berall},
title = {Umlaut titl�},
journal = {None for the moment},
year = {2005},
chrsc = Summary:
}
gives `�berall05' and not only `05'. So except for the `skip all words
with funny characters in the title' problem, your patch works well.
There is one more questionmark, though: should these keys contain
non-ASCII characters?
<URL:http://www.tex.ac.uk/cgi-bin/texfaq2html?label=usebibtex>
explains that the keys get written in the .aux file, which is read by
bibtex, which in turn produces a .bbl file. Hm. I don't know how
error-prone it is to have accented characters in the key. It is
probably safer to use only ASCII characters (in the key). What do you
think? I found one thread in de.comp.text.tex (Message-ID:
<[EMAIL PROTECTED]>, sorry for the German thread, but that
is all I found) where an umlaut in the key has caused problems:
,----[ Message-ID: <[EMAIL PROTECTED]> ]
| ! Missing \endcsname inserted.
| <to be read again>
| \protect
| l.8 ...accent 127\fontdimen 5\font [EMAIL PROTECTED] a}tsch}{7}
[ and he gets this error when the following bibliography is latexed: ]
| \begin{thebibliography}{99}
| \bibitem{green} N.N. Greenwood, A. Earnshaw: Chemie der Elemente, VCH
| Weinheim (1988)
[...]
| \bibitem{kr�tsch} W. Kr�tschmer, L.D. Lamb, K.Fostiropolous, D.R. Huffmann,
| Nature {\bf347}, 354 (1990)
[...]
| \end{thebibliography}
`----
So it would be safer to ``strip accents'', I guess?
--
Christian Schlauer
_______________________________________________
Emacs-pretest-bug mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/emacs-pretest-bug