View Single Post
Old 06-03-2009, 01:31 PM   #17
nrapallo
GuteBook/Mobi2IMP Creator
nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.
 
nrapallo's Avatar
 
Posts: 2,956
Karma: 2530531
Join Date: Dec 2007
Location: Toronto, Canada
Device: REB1200 EBW1150 Device: T1 NSTG iLiad_v2 NC Device: Asus_TF Next1 WPDN
Quote:
Originally Posted by JSWolf View Post
I want to say well done. I have a few issues that can be looked it if you don't mind.
Thanks, Jon, I don't mind at all, and actually, I kinda of expected you would chime in... good expected...

Quote:
I just took a look at the ePub version of Robin Hood. I have a few comments about it...

There is a line at the end of every chapter that can go away. Paragraph spacing needs to go away except where it indicates section changes. Paragraph spaces don't give a good reading experience. In fact, they make me want to find a pBook copy that doesn't have them.
While it's not my preference, the GUI options screen (second screen reachable when the 'More Options...' box is checked on the first screen) has an option to have 'no para sep.' or, in english, no blank line paragraph separation between paragraphs. This will also most definitately require some 'text-indent' (default is 2em). Here is the top part of the 'no para sep.' produced .htm which shows the CSS used by the PG DP when they created that 'Robin Hood' .htm version and as modified by GuteBook (in bold), namely:
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
  <head>
	<meta name="EText-No." content="28700">
	<meta name="title"     content="Robin Hood">
	<meta name="author"    content="Paul Creswick">
	<meta name="publisher" content="Project Gutenberg">
	<meta name="generator" content="GuteBook by Nick Rapallo (nrapallo)">
    <meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1" />
    <meta http-equiv="Content-Style-Type" content="text/css" />
    <title>
      Robin Hood, by Paul Creswick.
    </title>
    <style type="text/css">


body { margin-left: 2%; margin-right: 2%; text-align: justify; text-indent: 2em; }

    h1,h2,h3,h4,h5,h6 {
    text-align: center; /* all headings centered */
    clear: both;
}

p {
    margin-top: .75em;
    text-align: justify;
    margin-bottom: .75em;
}

hr {
    width: 33%;
    margin-top: 2em;
    margin-bottom: 2em;
    margin-left: auto;
    margin-right: auto;
    clear: both;
}

div.centered {text-align: center;} /* work around for IE centering with CSS problem part 1 */
    div.centered table {margin-left: auto; margin-right: auto; text-align: left;} /* work around for IE centering with CSS problem part 2 */


.pagenum { /* uncomment the next line for invisible page numbers */
    /*  visibility: hidden;  */
    position: absolute;
    left: 92%;
    font-size: smaller;
    text-align: right;
} /* page numbers */

.blockquot {
    margin-left: 5%;
    margin-right: 10%;
}



.center   {text-align: center;}

.smcap    {font-variant: small-caps;}


.caption  {font-weight: bold;}

/* Images */
.figcenter   {
    margin: auto;
    text-align: center;
     margin-top: 3em;
}


/* Footnotes */
.footnotes        {border: dashed 1px;}

.footnote         {margin-left: 10%; margin-right: 10%; font-size: 0.9em;}

.footnote .label  {position: absolute; right: 84%; text-align: right;}

.fnanchor {
    vertical-align: super;
    font-size: .8em;
    text-decoration:
    none;
}


.author {text-align: right; margin-right: 5%;}


      h1, h2, h3, h4, h5, h6 {text-align: center }
    h2 { page-break-before: always; }
      p {text-indent: 2em; margin-top: 0em; margin-bottom: 0em;  padding-top: 0em; padding-bottom: 0em}
    br {margin-top: 0em; margin-bottom: 0em;  padding-top: 0em; padding-bottom: 0em}  </style>
  </head>
<body style="margin-left: 2%; margin-right: 2%; text-align: justify; text-indent: 2em; ">
Quote:
Also, the quote/apostrophes could do with some modernizing (aka smart quotes).
For now, I don't override what the PG HTML supports for quotes; as, AFAIK, there's no easy fool-proof way to do this in Perl. However, I can look at this if you show me what can be done to the sample 'Robin Hood' HTML so as to incorporate smart quotes. I think it would make a valuable addition to GuteBook!

Quote:
And lastly, the images that are on their own (no text next to them)can do wiht being centered to look better.
Yes, I agree! I had already looked at overriding the <img> tag so as to allow it to be (forceably) centered, plus re-saving of images to make them more compatible and better sized for smaller screen ebook readers. These fixes will then be able to be overridden/omitted with the GUI option box 'no image fix' which has not yet been implemented.

Quote:
This is a feature request... font embedding for ePub or generating code for fonts already loaded on our reader.
Can this be done using calibre's any2epub? That's what I use to transform the modified .htm into .epub.

Last edited by nrapallo; 06-03-2009 at 05:34 PM. Reason: typo
nrapallo is offline   Reply With Quote