Having to treat a considerable amount of page ranges, I'd like to have a robust and simple command that would parse and print them correctly.
The most simple case is e.g.
page 264, lines 15 to 26
Then we have things like
which translates to
page 264 line 15 to page 266 line 26
More tricky, we'd have something like
which means we actually have three sequences here:
from page 264 line 15 to page 266 line 26 and page 277 lines 13-14 and from page 312 line 14 to page 316 line 23
That's to say, the command should work whatever the amount of "type 1" or "type 2" sequences is provided to it.
I'd like to put whatever the page range is (type 1 or 2 or 3) in a single command and have every one of them printed in the readable and accurate way... Pretty tricky for poor old humanities student like me!