Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace NormalizeNamesFormatter by AuthorList and so fix #318 #1149

Merged
merged 1 commit into from
Apr 10, 2016

Conversation

tobiasdiez
Copy link
Member

  • Fixes Normalize to Bibtex name format #318 (and refs Demo of AuthorList instead of AuthorsFormatter #950)
  • Removes comma as delimiter of author names (in NormalizenamesFormatter).
    The problem is that comma separated authors cannot be distingued from one author in BibTeX format.
    For example Name, della, first could be three names separated by commas or if interpreted as valid BibTeX string it is one author with lastname=name, jrpart=della, firstname=first.
  • Add colon as delimiter of author names (in AuthorListParser).

Thanks at all, but especially @oscargus, for creating many tests. Made implementing this PR way easier!

  • Change in CHANGELOG.md described
  • Tests created for changes
  • Screenshots added (for bigger UI changes)

and imporve the AuthorListParser to recognize colons as names separator
@tobiasdiez tobiasdiez added the status: ready-for-review Pull Requests that are ready to be reviewed by the maintainers label Apr 8, 2016
firstAbbr = removeStartAndEndBraces(firstabbr);
vonPart = removeStartAndEndBraces(von);
lastPart = removeStartAndEndBraces(last);
jrPart = removeStartAndEndBraces(jr);
}

public static String addDotIfAbbreviation(String name) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How does this method compare to expandAll (?) in StringUtil? Could that be replaced by this (later) as this seems more competent?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ahh, I know the answer for that... Somehow I didn't see StringUtil in the diff the first time. :-)

@oscargus
Copy link
Contributor

oscargus commented Apr 9, 2016

Looks very nice! 👍

The MD thing is a bit challenging and either way we will do it wrong for one of the cases. If I were in medicine I would probably prefer not to expand MD (especially).

@simonharrer
Copy link
Contributor

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: ready-for-review Pull Requests that are ready to be reviewed by the maintainers
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants