View Single Post
Old 02-21-2009, 04:05 PM   #56
Alpharesearch
Junior Member
Alpharesearch began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Feb 2009
Device: PRS-505
license question

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 
  + + + +   -   --- -- -- -- --  (&gt;---- 
 
<br/><p> 
"I am no Woman," replied the small Line.
Thanks,
Markus

Last edited by Alpharesearch; 02-21-2009 at 04:13 PM.
Alpharesearch is offline   Reply With Quote