Menu

BUG: Accents in author name messes BibTex key

Help
jmmelko
2007-09-03
2012-11-09
  • jmmelko

    jmmelko - 2007-09-03

    Hi,

    I have a reference with a guy called Köning, ie K{\"o}ning, in 2000.
    I'v set the bibtexkey to [auth3][shortyear].
    The "magic key generator" gives K00 as the BibTex key.

    I don't know what the "official" or "right" bibtex key should be, but I don"t think it should be K00. Personnaly I use Kon00.

    My suggestion is to make JabRef ignore accents when generating bibtex keys.

    What do you think ?

     
    • Christopher Oezbek

      Hi,
      sounds like a good idea. I have created test cases for this bug and can confirm that it exists and that we do not have an easy fix, right now (well I could ugly,ugly patch the authX method), sorry.

      JM, please report this as a bug, so we can try to fix it with time.

      It is a long withstanding task for JabRef to clean up the character issues surrounding LaTeX-characters. We already have a lot of work-around code in a lot of places and if somebody would be interested to come up with a more general solution (I am thinking around the lines of encoding all LaTeX characters as unicode once data enters JabRef and reencoding them back to LaTeX upon saving).

      As an intro task to becoming involved with developing JabRef:

      The test cases in src/java/tests.net.sf.jabref.labelPattern.LabelPatternUtilTest.java for the class src/java/net.sf.jabref.labelPattern.LabelPatternUtil.java need to created for all key generator patterns. This requires some Java skill and involves writing code like:

      assertEquals("NMEB", LabelPatternUtil.authIniN(
      "I. Newton and J. Maxwell and A. Einstein and N. Bohr", 4));

      If anybody is interested drop me a note,
      Christopher

       
MongoDB Logo MongoDB