hayagriva icon indicating copy to clipboard operation
hayagriva copied to clipboard

Parse page ranges following citeproc

Open DerDrodt opened this issue 10 months ago • 4 comments

This PR depends on typst/citationberg#7.

Allows for page-range field to have multiple ranges, as in 1-4 & 7-12, 13, 14\-19.

Each of these is split into parts:

  • Commas as ,
  • Ampersands like &
  • Single pages like 13
  • Escaped ranges like 14\-19, where the hyphen will not be replaced by the given separator
  • Ranges like 1-4

Ranges are given to citationberg to format depending on the format rule per the CSL spec.

DerDrodt avatar Apr 23 '24 15:04 DerDrodt