#1224 JabRef 2.10 : Key generation faulty for authors ending with "and"

next release
pending
Simon Harrer
None
5
2015-05-26
2014-04-18
No

Using the key generator, the parameter [auth] should return the lastname of the first author.

In fact, for lastnames ending with "and", only part of the name is returned.

How to reproduce:
- Go to Options -> Preferences -> BibTeX key generator
- In the field "default", enter [auth]
- Click on OK
- Create a new entry, such as Article
- Enter the name Smith
- Click on "Create BibTeX key"
==> Works fine ("Smith" is set as the key)
- Change the name to Smand
- Click on "Create BibTeX key"
==> Does not work properly (Only "Sm" is set as the key)

Discussion

  • Oliver Kopp
    Oliver Kopp
    2014-04-18

    • status: open --> pending
    • assigned_to: Simon Harrer
     
  • Oliver Kopp
    Oliver Kopp
    2014-04-18

    Should be fixed in the master branch.

     
  • Haines Brown
    Haines Brown
    2014-05-25

    I add that names ending in "a" or "an" are also truncated.

     
  • Oliver Kopp
    Oliver Kopp
    2014-05-26

    Can you test with the current development build available at http://ge.tt/9Idc446 ?

     


  • 2014-05-26

    Tried:
    - works for last names like Roland, Rolan and Rola
    - BUT does not work if the last name is typed with an initial lowercase letter, such as
    Robert roland or smith, Robert
    (only the date is included in the key)

     
  • Simon Harrer
    Simon Harrer
    2014-07-08

    This is a problem caused by the detection algorithm of the names. In case of Robert roland, the system identifies Robert as the first name, while roland is the von part. I would rather not change this logic, as it is quite complicated (names can have very different forms depending on the country) and can have a lot of effects. This may require a complete rewrite of the author parsing section, which is just too time consuming at the moment.

     
  • Peter Brommer
    Peter Brommer
    2015-03-02

    I have an issue with an entry, where the first name of the first author is Normand, which will create an empty BibTeX key. Unfortunately, I cannot try out the snapshot mentioned above, as Mac OS X complains that it is broken.

     
  • Oliver Kopp
    Oliver Kopp
    2015-05-26

    Could you try JabRef 2.11 beta 2?

     


  • 2015-05-26

    • Issue about last name ending in "and", "an" and "a" mostly solved: works except if last name is And (such as "And, Robert and Sanchez, Alberto").
    • Problem remaining for last names starting with a lowercase (should probably be considered as a different bug)

    (JabRef 2.11 beta 2 downloaded from SF, Java 1.7)

     
    Last edit: 2015-05-26
    • Oliver Kopp
      Oliver Kopp
      2015-05-26

      Are there really last names starting with a lowercase letter without being a thing like "van", "von", "de", etc.?

       


  • 2015-05-26

    I do not think there is.
    I believe it is related to the behavior of bibTeX: jabref should mimic the behavior of bibTeX when processing names (and bibTeX accept names with initial lowercase).
    Anyway, low priority, I think.