Comments (6)
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.
I remember there have been some discussions regarding this...
from citeproc.
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.
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.
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.
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)
- How could citeproc support CSL-M layout? HOT 40
- `link-bibliography` option does not hyperlink references without URLs in notes HOT 6
- Localizing parts of citations HOT 5
- Error in latex generation of portuguese quotes in CSLReferences field HOT 15
- Installing the executable HOT 2
- [Help] Author only citations BibTex HOT 1
- Incorrect sorting of bibliography HOT 12
- Stopword capitalized after abbreviation HOT 6
- Use citeproc for style development HOT 11
- Support for link/color only the year in the citations HOT 1
- Can I replace the citation key with bibliography? HOT 3
- Author-in-text citations render as superscript HOT 3
- Add support for semantic markup in bibliographies HOT 3
- Disambiguation error HOT 4
- `Undefined Control Sequence \citeproctext` in custom pandoc template HOT 2
- Short DOI prefix in citations HOT 11
- Custom Field in CSLJson silently dropped HOT 1
- Space and suffix gobbled in note field with LaTeX codes
- Custom template: How to place CSLReferences at a different part of a document? HOT 2
- Non-dropping-particles in authors' family names render differently than what's configured in CSL HOT 7
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 citeproc.