-
Notifications
You must be signed in to change notification settings - Fork 2
ToDo
Ian McDougall edited this page Jun 5, 2015
·
6 revisions
Mostly the script does what I need it to do, so I am unlikely to implement these features soon. But it's fun to consider them.
- Check each epub for duplicate files first. Not sure how common this is.
- Currently, if phrases like ".jpeg" or ".gif" appear in your EPUB's plaintext, then they will be changed to ".png". Using something like TXR or some other parser, it might be possible to avoid this.
- Change the syntax to take arguments, instead of blindly operating on all epub files. How do other "x2y" utilities usually structure their input and output?
- Ideally, use epubcheck to validate the result. This is slightly complicated because what I really care about is if I have added any more warnings, ignoring those that existed already.
- Support optimization of more file types inside an EPUB.
- Experiment with different compression levels for zip.
- Currently, all images get converted to a smaller, 16-color, greyscale png image. While the png tends to be smaller than the source file, I'm not sure that the conversion to png is actually necessary. Therefore, I should experiment with different image formats than png.