Comments (3)
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.
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.
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)
- Unable to parse bibtex if `+` is in the key HOT 1
- Allow BibTeX::Filter access more metadata HOT 2
- Does bibtex-ruby read all fields (PMID in specific) HOT 8
- tag name with spaces break parser
- TeX-like comments (for use with biber) HOT 1
- Can this gem convert from CSL-JSON to BibTex? HOT 5
- Accents in bibtex files HOT 3
- Adding Rubocop HOT 4
- Corruption of @comment fields used by BibDesk for library management HOT 1
- warning: Capturing the given block using Proc.new is deprecated; use `&block` instead HOT 1
- BibTeX.open(file) cannot handle remote files HOT 2
- Export to Medline/wiki page with pointers to gists of people's custom formats? HOT 1
- A name that doesn't parse correctly HOT 1
- Braces in citekey HOT 2
- Move CI to Github Actions
- CiteProc.process returns nill (fails) HOT 2
- racc dependency needed HOT 2
- bibtex-ruby crashes with NoMethodError inside Names.convert! in Ruby 3.3 HOT 2
- bug: incorrect handling of lastnames with whitespaces
- error with ruby 3.3.1: names.rb:51:in `to_s': wrong number of arguments HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bibtex-ruby.