Code Monkey home page Code Monkey logo

bibtex.jl's People

Contributors

asinghvi17 avatar bramtayl avatar juliatagbot avatar mpastell avatar simonbyrne avatar stevengj avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

bibtex.jl's Issues

Spurious spaces inserted with curly braces

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"

Get author list as Vector

Instead of keeping the list of authors as a unique string, it would make sense to at least have the option to get it as a vector of individual authors?

register package?

Would it be possible to register this package?

Also, I noticed that the CI isn't hooked up. I'd be happy to help out if you can give me access.

Mention BibParser in README

It would be helpful to mention the alternative https://github.com/Humans-of-Julia/BibParser.jl in the README.
The line

tokens = collect(m.match for m in eachmatch(r"[^\s\n\"#{}@,=]+|\n|\"|#|{|}|@|,|=", text))

adds spaces around { and } which makes it tricky to use for. I spent some time trying to figure out a workaround until I found BibParser which seems more feature-rich, actively maintained and the one used internally by https://github.com/JuliaDocs/DocumenterCitations.jl.

Field "type" overwriting the entry type

It is common in some bibtex entry types to use a "type" field (well actually I don't know… but it's listed as a possible biblatex type in the documentation so it's reasonable to use it, even if I don't know what is the recommended usage). When parsing a document with such fields, the entry type is overwritten. Is it a desired behavior? Wouldn't it be better to export the entry type to a specific key to prevent that, or at least to have some optional parameter to specify this?

Here is an example:

julia> BibTeX.parse_bibtex("@mytype{mycoolpaper, note={Submitted to AwesomeConference} }")
("", Dict("mycoolpaper" => Dict("note" => "Submitted to AwesomeConference", "type" => "mytype")))

julia> BibTeX.parse_bibtex("@mytype{mycoolpaper, type={Submitted to AwesomeConference} }")
("", Dict("mycoolpaper" => Dict("type" => "Submitted to AwesomeConference")))

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.