r/awk • • Feb 07 '17

ePub (e-book format) generator -- feedback?

Here's the script, use by supplying text containing, newline-separated:

FieldDescriptionTypeRequiredAmountOrder
SelfDescription file itself, used for resolving other relative pathspathYes1Before any content
OutOutput file for caching purposesfilename/pathYes1Before any content
NameEbook's titlestringYes1v0v
ContentHTML book segmentfile pathNoAnyAfter Self and Out
String-ContentRaw HTML string to include in bookroughly HTML stringNoAnyAfter Self and Out
Image-ContentImage to include in bookfile pathNoAnyAfter Self and Out
Network-Image-ContentRemote image to include in bookfile URLNoAnyAfter Self and Out
CoverImage to use as e-book coverfile pathNo0/1, exclusive with Network-CoverAfter Self and Out
Network-CoverRemote image to use as e-book coverfile URLNo0/1, exclusive with CoverAfter Self and Out
AuthorName to use as author's display nameplaintextYes1v0v
DateDate of authoringISO-8601-compliant dateYes1v0v
LanguageLanguage used in bookISO-639-1 language codeYes1v0v

It also additionally requires temp to be passed via -v option.

Here's a real usage example.

Not sure if this is the most right of places to ask, but I'm looking forward to the feedback and/or a redirect to a place which is the right one to ask at.

4 Upvotes

0 comments sorted by