Hello FangornUK,
first thank you for your Perl script... I added two lines and now the script also creates ePUB files:
Code:
$lrfbook=File::Spec->catfile($outdir, "$BOOKTITLE.lrf");
$epubbook=File::Spec->catfile($outdir, "$BOOKTITLE.epub");
#Everything setup so create the actual LRF BBeB book
system ("html2lrf \"$outfile\" -t \"$BOOKTITLE\" -a \"$AUTHOR\" --category=\"Project Gutenberg\" -o \"$lrfbook\" --disable-chapter-detection --left-margin=25 --right-margin=25 --link-exclude=http:") == 0 || die $!;
system ("html2epub \"$outfile\" -t \"$BOOKTITLE\" -a \"$AUTHOR\" --publisher=\"Project Gutenberg\" -o \"$epubbook\" --profile=PRS505") == 0 || die $!;
What license does your script uses GNU GPL? I have not problem to put my change under GPL... I'm asking because I found a bug in html2epub and I would like to attach your script for reproduction to the bug tracer...
With the Calibre viewer look at PG book 201, the ASCII art looks good in ePUB but not so good in LRF... but there is a bug in the second half of the ePUB book... just scroll down.
the original html form PG
Code:
[ASCII approximation follows]
</H3>
<BR>
<PRE>
My view of Lineland
---------
| |
| Myself|
| |
My eye o--------
Women A boy Men The KING Men A boy Women
+ + + + - --- -- -- -- -- (>----<) -- -- -- -- --- - + + + +
^ ^
The KING'S eyes
much larger than the reality
shewing that HIS MAJESTY
could see nothing but a point.
</PRE>
<BR>
<P>
"I am no Woman,"
in ePUB some Text and a </PRE> is missing...
Code:
[ASCII approximation follows]
</h3>
<p style="margin: 0pt; border:0pt; height:0pt">Â*</p><pre>
My view of Lineland
---------
| |
| Myself|
| |
My eye o--------
Women A boy Men The KING Men A boy Women
+ + + + - --- -- -- -- -- (>----
<br/><p>
"I am no Woman," replied the small Line.
Thanks,
Markus