As I'm organizing my library, I'm combining a bunch of articles by topic into collections. I have these articles downloaded as html files, and placed in folders by topic. So basically what I do is:
- Create an empty epub
- Import all html files from a given folder into it
- Perform any necessary html cleaning
- Create a ToC from files (in the cleaning step, each file starts with the title of the article in <h> tags)
- Save the book, fill in metadata, and add a cover
Now my question is about ordering the articles.
The way outlined here means the articles will be added in alphabetical order, which is okay in principle, but I'm wondering if I can add some 'variety' into the collection by somehow randomizing the order of the html files in the book.
I know I can drag the individual html files around, but that's impractical with 100+ articles. Is there a way to randomize the files automatically, or to write a script to randomize the files on import somehow?