Ethan Dalool
fc07652d16
Add some prototypical validation code.
2019-09-06 15:44:28 -07:00
Ethan Dalool
8763cf6c6c
Let merge take glob patterns.
2019-09-06 15:39:26 -07:00
Ethan Dalool
60d9d646a2
Add argument _original_epub_filepath for better messaging later.
...
Printing the tempdir is not very helpful, so if we need to print
something about this epub file we can use _original_path to get
the epub if it was a .open() or the tempdir if it was .new().
2019-09-06 15:38:51 -07:00
Ethan Dalool
9821125f2c
Recognize directory for application/x-font-ttf.
2019-09-06 15:36:51 -07:00
Ethan Dalool
9e020eaa11
Add method generate_toc and commandline command.
2019-08-29 16:44:57 -07:00
Ethan Dalool
365c28bfdb
Add more formatters into NCX_TEMPLATE, NAV_TEMPLATE.
2019-08-29 16:34:54 -07:00
Ethan Dalool
f93309a37c
Let holdit take many books.
2019-08-29 13:46:34 -07:00
Ethan Dalool
4d224e7d6a
Rename argument only_linear to linear_only.
2019-08-29 13:45:33 -07:00
Ethan Dalool
faa0e9c7e3
Bail early if rename_map is empty.
2019-08-18 22:39:41 -07:00
Ethan Dalool
34ce1bac56
Don't add unchanged paths to the rename_map.
2019-08-18 22:39:02 -07:00
Ethan Dalool
87f1de1dc5
In move_nav_to_end, add nav to spine if not present.
2019-08-18 22:38:40 -07:00
Ethan Dalool
0004b53032
Fix holdit command undoing manual opf changes.
2019-08-18 22:38:05 -07:00
Ethan Dalool
cf08ce3570
Let covercomesfirst and normalize take many books via glob.
2019-08-18 19:55:41 -07:00
Ethan Dalool
7b4f4cdb1f
Use font/ mimes instead of application/font-
2019-08-18 19:55:05 -07:00
Ethan Dalool
a9102cf877
Add the holdit command.
2019-08-18 19:53:54 -07:00
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
58c3de6c5d
Initial commit.
2019-08-03 22:13:27 -07:00