ref: 854c60f24c7671a31f61cef272363df2ddf551f0
parent: 8333763762a317aa8fda04bd743686912047004c
author: sl <sl@x1yg3>
date: Sun Jul 6 18:17:54 EDT 2025
add eread
--- a/INDEX
+++ b/INDEX
@@ -20,6 +20,7 @@
epub2html - convert epub to html
epub2pdf - convert epub to pdf
epub2txt - convert epub to text
+eread - read an epub directly in mothra
flac2alac - Convert FLAC to ALAC using ffmpeg.
flac2mp3 - Convert FLAC to MP3 using lame.
flacsplit - Split single FLAC into multiple files based on .cue sheet using shntool.
--- /dev/null
+++ b/eread
@@ -1,0 +1,13 @@
+#!/bin/rc
+# eread - read an epub directly in mothra
+# usage: eread file.epub
+# depend: epub2html, mothra
+
+rfork ne
+cwd=`{pwd}
+name=`{basename $1 | sed 's/\.[Ee][Pp][Uu][Bb]//'}
+
+# extract epub to memory, then read it
+ramfs -p; cd /tmp
+epub2html `{cleanname $cwd/$1} || exit $status
+mothra -a file://tmp/$name.html
--
⑨