Git Product home page Git Product logo

Comments (3)

inukshuk avatar inukshuk commented on September 27, 2024

Basically, the parser will parse any key. As regards the citeproc export (if that's what you're asking) there is no special handling of biblatex entries. It would be easy to add those, if you tell us how they should be converted.

Right now, it would look something like this:

 BibTeX.parse(<<-END).to_citeproc
   @book{key,
     title = "The Title",
     pagetotal = 123,
     MvBook = "something"
   }
  END

Gives you:

[{"id"=>"key", "type"=>"book", "title"=>"The Title", "pagetotal"=>"123", "mvbook"=>"something", "issued"=>{"date-parts"=>[[]]}}]

I.e., the entries will be kept but not processed in any way.

from bibtex-ruby.

drozzy avatar drozzy commented on September 27, 2024

I am not sure what you mean by "as regards the citeproc export". I am referring to the Biblatex specifications (PDF) ftp://www.ctan.org/ctan/macros/latex/exptl/biblatex/doc/biblatex.pdf which defines a custom type (just like an "article" or a "Book") - called "MvBook" that stands for Multi-Volume-Book. It also defines, for example, an additional field, just like an "author" field in BibTex - called "pagetotal" - that stands for total number of pages.

So, I guess what I am asking is whether you will recognize those, e.g. convert "pagetotal" to the appropriate field of CSL - which would be "number-of-pages" according to the CSL specs: http://citationstyles.org/downloads/specification.html#standard-variables

from bibtex-ruby.

inukshuk avatar inukshuk commented on September 27, 2024

On Feb 8, 2012, at 10:35 PM, drozzy wrote:

I am not sure what you mean by "as regards the citeproc export". I am referring to the Biblatex specifications (PDF) ftp://www.ctan.org/ctan/macros/latex/exptl/biblatex/doc/biblatex.pdf which defines a custom type (just like an "article" or a "Book") - called "MvBook" that stands for Multi-Volume-Book. It also defines, for example, an additional field, just like an "author" field in BibTex - called "pagetotal" - that stands for total number of pages.

So, I guess what I am asking is whether you will recognize those - and convert "pagetotal" to the appropriate field of CSL - which would be "number-of-pages" according to the CSL specs: http://citationstyles.org/downloads/specification.html#standard-variables

That's what I was trying to say. Yes, bibtex-ruby will recognize those fields, but No, the CSL export will not convert Biblatex fields specifically. Therefore, 'pagetotal' will remains 'pagetotal' in JSON.

Now, as I said, it's really easy to add conversions. Either you do this yourself or you send me a complete list of mappings and I'll add them for you.

from bibtex-ruby.

Related Issues (20)

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.