Giter Club home page Giter Club logo

Comments (6)

fiapps avatar fiapps commented on June 19, 2024

On pandoc-discuss, you said that notes in parentheses are first formatted, and then adjusted for being in parentheses, and that the heuristic for removing a final period seems not the be working in this case.

I think it would be better to let the formatter know in advance that the note will be in parentheses. In this case, it could simply omit the final punctuation specified on the cs:layout element. Then there wouldn't be any need for a heuristic to decide whether the note ends with an abbreviation or not. It would also allow for better handling of parentheses in the note: the Chicago Manual of Style recommends brackets within parentheses instead of parentheses within parentheses. I don't know if CSL 1.0.1 deals with that, but if not, perhaps 1.0.2 or 1.1 does. I found a July 30, 2009 post from Frank Bennet in the Zotero forum saying that he would add it to the new version of citeproc-js.

Addendum: I tested citations in parentheses with Zotero 5.0.92. It doesn't wrap citations in notes in parentheses automatically, but if parentheses are used as the prefix and suffix, then square brackets are used instead of parentheses in the citation.

from citeproc.

denismaier avatar denismaier commented on June 19, 2024

I remember there have been some discussions regarding this...

from citeproc.

denismaier avatar denismaier commented on June 19, 2024

Ok, the relevant discussion seems to be here.
Concerning parentheses-to-brackets-flip-flopping: citation-style-language/documentation#118

So, it's quite clear that this has to be addressed somehow.

from citeproc.

jgm avatar jgm commented on June 19, 2024

I guess we'll have to wait for CSL changes to fully resolve the issue.
But in the mean time I can see if there's a more reliable way to remove the dot when it needs removing, and not when it doesn't...

from citeproc.

jgm avatar jgm commented on June 19, 2024

I've pushed a fix to pandoc that solves the final period issue.
I'll close this issue, but a new issue should be opened when CSL decides on a strategy for dealing with parenthesis flipping etc.

from citeproc.

denismaier avatar denismaier commented on June 19, 2024

Great that this is resolved for now. The more general problem is this: pandoc offers more options for citation formatting than citeproc-js. It already goes beyond the spec in offering multiple citation modes, which perfectly makes sense here. Different environments, different constraints...

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.