stapler icon indicating copy to clipboard operation
stapler copied to clipboard

Allow "backwards zipping"

Open fwenzel opened this issue 9 years ago • 4 comments

Use case: If you have a "simplex" scanner, you can scan all the front pages (pages 1, 3, 5, 7, 9) and then turn over the stack and scan all the back pages, backwards (pages 10, 8, 6, 4, 2).

zip doesn't have to go crazy there, maybe it just needs to allow a page syntax such as -1- which would mean, start at page minus 1 and keep going (backwards) until the end.

fwenzel avatar Feb 09 '15 21:02 fwenzel

that's a cool idea. What do you propose to do with the case where there is an uneven number of pages?

hellerbarde avatar Feb 09 '15 22:02 hellerbarde

I think that'd just work: In my example above, page 10 would be missing, right?

So it'd interweave page 1 of doc A with the last of doc B, etc. until it runs out of pages, and the last page would be page 9 from doc A.

fwenzel avatar Feb 09 '15 22:02 fwenzel

fwiw I noticed ranges can already be used as 10-1 which will go backwards. All we'd need to add is a generic "reverse this" format then. -1- like I said above or 0- might work.

Any opinions on which format would be the most intuitive for "reverse this file"?

fwenzel avatar Feb 10 '15 05:02 fwenzel

Though I don't immediately see a need for this myself, I think the -1- syntax is intuitive.

sockmonk avatar Aug 26 '15 00:08 sockmonk