inukshuk / bibtex-ruby

A BibTeX library, parser, and converter for Ruby.
http://inukshuk.github.com/bibtex-ruby
GNU General Public License v3.0
156 stars 31 forks source link

A name that doesn't parse correctly #149

Open sandbergja opened 3 years ago

sandbergja commented 3 years ago

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:

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

inukshuk commented 3 years ago

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).