GithubHelp home page GithubHelp logo

Comments (9)

johanneswilm avatar johanneswilm commented on August 15, 2024

That sounds good to me as long as it doesn't break anything. There are no examples of keywords that contain ";" characters?

from biblatex-csl-converter.

retorquere avatar retorquere commented on August 15, 2024

I haven't seen any, but the keywords field has no formal format. AAMOF I have one test case where someone had commas in the keywords (for chemical elements IIRC -- I'll find it soon enough) and who wanted to separate on <comma><space>, but not <comma>. I don't remember how I handled that (probably a postscript); the keywords field is the wild west of bibtex.

from biblatex-csl-converter.

johanneswilm avatar johanneswilm commented on August 15, 2024

To accept commas and semi-colons, this line should be changed to:

oFields[fKey] = fValue.split(/[,;]/g).map((string)=>{return string.trim()})

oFields[fKey] = fValue.split(',').map((string)=>{return string.trim()})

Having commas not work as separators and have spaces make a difference seems to go against the definition used in biblatex:

A separated list of keywords. These keywords are intended for the bibliographyfilters (see §§3.7.2and 3.12.4), they are usually not printed. Note that with the defaultseparator (comma), spaces around the separator are ignored.

page 27, http://tug.ctan.org/macros/latex/exptl/biblatex/doc/biblatex.pdf

from biblatex-csl-converter.

retorquere avatar retorquere commented on August 15, 2024

I'm not advocating for the comma-space thing, I was just describing the odd stuff you could find there 😄

from biblatex-csl-converter.

johanneswilm avatar johanneswilm commented on August 15, 2024

Ok, try with the line I mentioned above. If that works for your test files, feel free to update and merge it.

from biblatex-csl-converter.

retorquere avatar retorquere commented on August 15, 2024

How do releases work BTW?

from biblatex-csl-converter.

retorquere avatar retorquere commented on August 15, 2024

I done gone broke the tests.

from biblatex-csl-converter.

johanneswilm avatar johanneswilm commented on August 15, 2024

I forgot. I think we may have set it up to autorelease via travis if the tests go through. I can check it tomorrow if it still hasn't been released. :)

from biblatex-csl-converter.

retorquere avatar retorquere commented on August 15, 2024

No problem.

from biblatex-csl-converter.

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.