-
-
Notifications
You must be signed in to change notification settings - Fork 60
Extended locators not always detected for combination with URL in note styles #168
Comments
Try:
Output:
So some strings are detected as locator terms. Others I tried are the unabbreviated forms of the locator terms listed in the CSL specs (book, chapter, column, figure, folio, issue, line, note, opus, page, paragraph, part, section, sub verbo, verse, volume; see http://docs.citationstyles.org/en/stable/specification.html#locators); all these (except “sub verbo”) are rendered with an abbreviated term and in front of the DOI, so pandoc-citeproc must have detected them. Plurals (“folios”) and some abbreviations (“pp.”, “vol.”) are detected, too. Some other abbreviations aren’t (“ch.”). Strangely enough, I can find the locator terms in the CSL locale files but nowhere in the pandoc or pandoc-citeproc source. Suggestions:
|
Thanks for the further testing. The folio issue, at least, is logical enough, since that isn't the abbreviation used in the CSL locale files; I've opened citation-style-language/locales#115 to take care of this. |
CSL specs currently allow only one locator. It's come up before occasionally, but no aggressive movement to change this at the moment, I believe (not to say it wouldn't be a good idea). |
Pandoc detects locator terms based on the locale file. Either abbreviated or unabbreviated forms are accepted. If no locator term is used, "page" is assumed. |
So, what changes to pandoc-citeproc, if any, are needed here? |
|
My guess is that the problem relates to these being two-word phrases -- they are in the locale file with "chapter", "page", etc. I'll look into this.
Can you say more about what needs documenting? |
Fixed the "sub verbo" issue. |
On documentation: jgm/pandoc#2418 |
On the 85r-88r issue, the culprit seems to be
This part of the original citeproc-hs code is written in an idiom I find impenetrable, so it may take time to get to the bottom of this, and maybe we should simply rewrite the range collapsing code with an eye to the spec. http://docs.citationstyles.org/en/stable/specification.html#appendix-v-page-range-formats |
I'm no longer seeing the bad collapsing: in the example above I get
which is correct. So I'll close this. |
While pandoc-citeproc correctly moves the URL or DOI after the page number or other locator for a note, it only does this (as far as I can tell) with those that are a) purely numerical and b) have a known locator type. Thus, in the following example (with 0.7.3), the first two examples are rendered as expected, but the last two are not.
I recognize that fixing this could be difficult. For instance, I have a string in a citation of
pp. 41 (no. 58, art. 6.18), 163 (no. 201, art. 71), 201 (no. 241, art. 9)
that I would consider to be series of locators, but pandoc-citeproc would consider most of this to be a suffix. Allowing added locators to be bracketed would probably fix most of the problems here.Results:
The text was updated successfully, but these errors were encountered: