Commit Graph

8 Commits (d77dcacc217a3695a3de37f31a4051191af81926)

Author SHA1 Message Date
Ethan Dalool d77dcacc21 Initial commandline utilities. 2019-08-06 23:49:47 -07:00
Ethan Dalool 89420ff5d7 Add some simple getters for authors, languages, and titles. 2019-08-06 23:39:39 -07:00
Ethan Dalool 0364b87cf3 When normalizing, OEBPS exist_ok=True.
I hadn't considered that the content.opf would be in the root when
there is an OEBPS dir present. There's a whole weird world out there.
2019-08-06 23:38:56 -07:00
Ethan Dalool 29eea3855c Add method assert_id_not_exists for pre-creation checks.
At the moment it's only used once but it looks nice to have it
paired with the other assert also used in the add_file method.
2019-08-06 23:37:14 -07:00
Ethan Dalool 5ba482753c Add .htm to the mimetype fixer dict. 2019-08-06 23:36:13 -07:00
Ethan Dalool 54ae615730 Set default book language to be undetermined (und).
Per rfc5646, omitting is preferred where permitted, but in Epub
that's not permitted!
2019-08-05 17:54:37 -07:00
Ethan Dalool f191b86573 Add setup.py. 2019-08-04 00:13:27 -07:00
Ethan Dalool 58c3de6c5d Initial commit. 2019-08-03 22:13:27 -07:00