documentcloud / docsplit

Break Apart Documents into Images, Text, Pages and PDFs
http://documentcloud.github.io/docsplit/
Other
831 stars 214 forks source link

Pad them digits #91

Closed dannguyen closed 11 years ago

dannguyen commented 11 years ago

Calculates the base 10 log of the page count and pads the filenames' page numbers appropriately.

knowtheory commented 11 years ago

oop. need that to be optional. DocumentCloud's viewer for instance depends on a particular output format... which happens to coincide w/ how Docsplit spits out pages (w/o padding).

dannguyen commented 11 years ago

But this is a critical issue for users with OCD. I'm all for backwards-compatibility, but the DC viewer seems like an edge case.

jashkenas commented 11 years ago

Padding is nasty. Better to hack your filesystem to properly sort numbers in natural order, no? ;)

dannguyen commented 11 years ago

Actually, when I was about to take a screenshot to submit with my pull request, I noticed that that OSX Mountain Lion does sort non-padded numbered files in numerical order, though I had already written the pull request and needed to submit something in order to keep my Github commit-streak alive. But think of the Windows users.

jashkenas commented 11 years ago

The Windows users appear to be covered: http://support.microsoft.com/kb/319827