-
-
Notifications
You must be signed in to change notification settings - Fork 59
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Style syntax for formatting multiple locators #342
Comments
Possible there are other such examples, that would require a more general
solution?
|
There may well be. In classics and theology they have special pattern for "book, chapter, verse, line" combinations. And those may even be different for different works. |
So then we'd probably want this configured in a macro at the end; no?
|
Either this, or a |
While we have your attention @andras-simonyi, what do you think about this in light of your locators proposal? |
It would be nice to see whether there are other non work-specific (i.e., not valid only for the Bible, for Plato's works etc.) examples of this kind of special rule that are relatively common in addition to the Chicago volume/page requirement. As for work-specific rules, do we want to support this? How could something like this be approached within the CSL framework? |
I don't know about other common combinations besides volume and page.
Biblatex knows |
Note that the Chicago CSL styles appear to already have some sort of solution already not using locators, but using the If we did want do more here, I think we can handle this generally by expanding on the existing We already allow conditional tests (currently used for conditional label formatting):
We need a way to specify the locator delimiter anyway. We could add
To handle different formatting of the label depending on whether a page has a line number vs. not (e.g.,
|
Changed the title to reflec the more general problem of formatting multiple locators |
Looks like there is one major caveat: volume can be part of the item metadata, or it can be one of the locators. Both situation may require different solutions. Regarding testing behavior: I think we could add a new value "exact" for
|
I don't think that's necessary. It's covered by my example above. If there is volume+page, it will render "volume:page". If there is volume as metadata and page as locator, it will just render page. |
Ok. What if you want "p. 15, line 4", but "book 3, part 4, chapter 3, section2" should be rendered as "3:4:3:2"? |
Or, that might depend more on item type than on the actual presence of certain locators. |
Some style guides, e.g. Chicago, require certain combinations of locators to be formatted differently. E.g.:
A combination of page and line locators is cited as:
However, a combination of volume and page is not cited as "vol. 5, p. 82", but as:
I think we could handle this on a style basis, similar to the existing editortranslator collapsing. Like with a style level attribute
collapse-volume-page-in-locator
.Say we have this:
Of course, there's also the question if there are other relevant combinations.
The text was updated successfully, but these errors were encountered: