question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Allow range formatting for all numbers (esp. dates)

See original GitHub issue

The page-range-format attribute only applies to page numbers (as one would expect), but style guides typically extend these rules to all numbers. This is most notably an issue with date ranges; for example, the following citation (using Chicago author-date) is currently impossible to achieve with CSL:

Karenberg, Axel. 2012–13. ‘The World of Gods and the Body of Man: Mythological Origins of Modern Anatomical Terms’. Anatomy 6–7: 7–22. doi:10.2399/ana.11.142.

I originally proposed on xbiblio-devel to simply extend the page-range-format attribute to all numbers, but @rmzelle noted the following:

My gut feeling is that it’s better to have separate definitions of range formatting for dates and all other numbers, so that they can be configured separately. Volume, issue, and series number ranges don’t come up very often (in practice and in citation manuals), so we haven’t really thought about whether the page-range-format should affect them.

This is an issue, for example, in the OUP House Style, where dates use a different formatting scheme from other numbers.

Issue Analytics

  • State:closed
  • Created 9 years ago
  • Comments:17 (17 by maintainers)

github_iconTop GitHub Comments

1reaction
bwiernikcommented, Jul 6, 2020

Seems like more than a delimiter issue, but rather a whole collapse-year-range formatting question? Compared to the cite collapsing within author and year?

1reaction
bwiernikcommented, Jul 6, 2020

I think that page-range-delimiter can probably apply to volume ranges, issue ranges, etc. (so number ranges generally). Date ranges should have their own delimiter as suggested.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Format dates, currency, and more in Numbers on Mac
Select the cells or table you want to format. In the Format sidebar, click the Cell tab, then click the Data Format pop-up...
Read more >
Custom Excel number format - Ablebits
This tutorial explains the basics of the Excel number format and provides the detailed guidance to create custom formatting.
Read more >
Format numbers as dates or times - Microsoft Support
Create a custom date or time format​​ On the Home tab, click the Dialog Box Launcher next to Number. You can also press...
Read more >
Conditional Formatting in Excel using Between with Dates and ...
Do you need to highlight values between two numbers or highlight dates between two dates ? Conditional Formatting has you covered.
Read more >
How to use Excel date values - Guide to Date, time functions
So you see, Date and Time are in fact numbers in Excel. Just enter a date in your excel sheet and format it...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found