Typeset icon indicating copy to clipboard operation
Typeset copied to clipboard

En-dash for number ranges

Open samhenrigold opened this issue 3 years ago • 3 comments
trafficstars

I was planning to add a line in punctuation.js to replace a hyphen between two numbers without a space with an en-dash (14-31 days "14–31 days").

It looks like for ranges with a space, we're expecting it to be replaced with an em-dash. I'm unsure if this is by design but the test HTML (and the Chicago style) calls for an en-dash. Should this be corrected or is there a different rule for ranges with spaces that I'm missing?

Thanks!

samhenrigold avatar Mar 28 '22 22:03 samhenrigold

That sounds interesting, I would like to investigate this further. Found some very nice notes here too, I'm adding some others below:

Dash in Dates & Numbers

  • Between times: 1200–1600
  • Between times: 6 am–8 am
  • Between days: Monday–Friday
  • Between dates: 12–15 October
  • Between months: June–August
  • Between years: 1967–1969

Dash in any range:

  • Pages 2–4
  • 100–150 people

Do's and Don'ts

Don't use "From" or "To"

Don't use the word "from" or "to" if you're using a dash to show a range. If you're not using a dash, then you can use "from" and "to." Don't mix these conventions.

  • Correct: Lunch break is 1200–1300.
  • Correct: Lunch break is from 1200 to 1300.
  • Incorrect: Lunch break is from 1200–1300.

Another example:

  • Incorrect: Nelson Mandela was president of South Africa from 1994–1999.
  • Correct: Nelson Mandela was president of South Africa from 1994 to 1999.
  • Incorrect: Homer eats between 60–75 donuts per month.
  • Correct: Homer eats between 60 and 75 donuts per month.

danielhaim1 avatar Oct 19 '22 09:10 danielhaim1

I’ve been referencing this blog post a lot lately, thin spaces with an en-dash looks nice. https://clagnut.com/blog/2419

samhenrigold avatar Oct 19 '22 13:10 samhenrigold

That's a great resource. How can I help implement this?

danielhaim1 avatar Oct 19 '22 19:10 danielhaim1