Giter Club home page Giter Club logo

Comments (5)

jgm avatar jgm commented on September 23, 2024

Like the CSL people, I'd say this is out of scope.
Note that if you store your references in the metadata of a pandoc markdown document, you could use a pandoc filter to modify some of the metadata fields (e.g. publisher-place). Or, if you use a separate bibliography, you could use pandoc + a lua filter to create a new bibliography with modified fields.

from citeproc.

 avatar commented on September 23, 2024

Thanks for the quick reply. I store my references in a separate YAML file. I see I can access references and their fields with pandoc.utils.references(doc).

Do filters have any access to csl data? That way I could store localization data inside the csl xml ie:

<locale xml:lang="sl">
  <terms>
    <term name="Rome">Rim</term>
  </terms>
</locale>

from citeproc.

jgm avatar jgm commented on September 23, 2024

Do filters have any access to csl data?

No. (Though you can always use a Lua xml library and parse the csl yourself.)

from citeproc.

badumont avatar badumont commented on September 23, 2024

from citeproc.

 avatar commented on September 23, 2024

You can also set these variables in a YAML file and pass it along with your input files on the command line:

--- localized-terms: - en: Rome la: Roma de: Röm - en: London la: Londinium de: London --- So you will be able to access them directly in the Metadata table.

Thanks! Maybe I'll do that, I think pandoc-quotes.lua also does something similar for translating typographic quotemarks. (Although it would be nice to have both placenames and quotemarks localization data contained within the csl file.)

from citeproc.

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.