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

Spurious spaces inserted with curly braces #12

Open
simonbyrne opened this issue Dec 14, 2020 · 2 comments
Open

Spurious spaces inserted with curly braces #12

simonbyrne opened this issue Dec 14, 2020 · 2 comments

Comments

@simonbyrne
Copy link
Collaborator

This suffers the same problem as Humans-of-Julia/BibParser.jl#5 (which is not surprising, as BibParser.jl uses the same code):

julia> using BibTeX

julia> bibtex = """@article{Heun1900,
          title = {Neue Methoden zur approximativen Integration der
          Differentialgleichungen einer unabh\\\"{a}ngigen Ver\\\"{a}nderlichen},
          author = {Heun, Karl},
          journal = {Z. Math. Phys},
          volume = {45},
          pages = {23--38},
          year = {1900},
       }""";

julia> preamble, result = parse_bibtex(bibtex)
("", Dict("Heun1900" => Dict("volume" => "45","author" => "Heun , Karl","pages" => "23--38","journal" => "Z. Math. Phys","year" => "1900","title" => "Neue Methoden zur approximativen Integration der Differentialgleichungen einer unabh\\ \" { a } ngigen Ver\\ \" { a } nderlichen","type" => "article")))

julia> result["Heun1900"]["title"]
"Neue Methoden zur approximativen Integration der Differentialgleichungen einer unabh\\ \" { a } ngigen Ver\\ \" { a } nderlichen"
@Azzaare
Copy link

Azzaare commented Apr 16, 2021

FYI, BibParser.jl has been updated with a new parser.

The goal is not to make parallel parsers, but I ended up doing it by commodity. I would be happy to merge any interesting features with BibTeX.jl if it is relevant :)

@stevengj
Copy link
Collaborator

This package is a port of a Python parser, and no one is really working on it. I think it would be fine to replace its functionality with that of another parser once one is available.

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

3 participants