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

A name that doesn't parse correctly #149

Open
sandbergja opened this issue May 25, 2021 · 1 comment
Open

A name that doesn't parse correctly #149

sandbergja opened this issue May 25, 2021 · 1 comment

Comments

@sandbergja
Copy link

Thank you for this wonderful gem! I am working with a specific author's name: Rongiéras d'Usseau, Emmanuel

When I try to run BibTeX::Name.parse 'Rongiéras d\'Usseau, Emmanuel', I get nil. It appears that this specific combination is not able to be parsed correctly:

  • Name in indirect order (surname first)
  • Two surnames
  • The first surname begins with a capital letter
  • The second surname begins with a lower case letter

Would you be interested in a pull request on this issue? If so, would I modify names.y and provide a test?

@inukshuk
Copy link
Owner

Good catch! Yes, the name parser's grammer is in the names.y file. I suspect the issue is the lower case letter at the start of the second surname -- this might be tricky (for reference you could take a look at the namae gem, which evolved out of this name parser, but I doubt that we covered this case there).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants