10-15-2008, 09:35 PM | #136 | |
GuteBook/Mobi2IMP Creator
Posts: 2,958
Karma: 2530691
Join Date: Dec 2007
Location: Toronto, Canada
Device: REB1200 EBW1150 Device: T1 NSTG iLiad_v2 NC Device: Asus_TF Next1 WPDN
|
Quote:
These .epub files were created using html2epub and PDFRead with MinFilter 3 300DPI and 500DPI as well as MinFilter 5 300DPI and 500DPI (by switching the bin directory executables). I fixed the left and right margins to be zero so hopefully these display properly. All contain 584x754 images and are displayed on the Sony PRS505 as a .epub not .lrf. If you can try them again... |
|
10-16-2008, 12:10 AM | #137 | |
Wizard
Posts: 3,671
Karma: 12205348
Join Date: Mar 2008
Device: Galaxy S, Nook w/CM7
|
Quote:
They all look acceptable the worst is 5-300DPI the font is too thick. But that might be more of a preference. The best is 5-500DPI but not buy a lot, though italics quality is much more noticeable. Just a clarification though both pylrf and html2lrf do degrade the image, books created by html2lrf do look much better. Last edited by =X=; 10-16-2008 at 12:16 AM. |
|
10-16-2008, 01:10 AM | #138 |
Addict
Posts: 350
Karma: 705
Join Date: Dec 2006
Location: Mumbai, India
Device: Kindle 1/REB 1200
|
Considering that the version of PDFRead I am rewriting from scratch in C++ is going to have only EPUB output (i.e. a ZIP of images), that's great news to hear! Unfortunately, a deadline at the office has kept me away from working at it for the last 1-2 weeks. Don't know when I'll really finish it, though...
|
10-16-2008, 07:55 AM | #139 | |
GuteBook/Mobi2IMP Creator
Posts: 2,958
Karma: 2530691
Join Date: Dec 2007
Location: Toronto, Canada
Device: REB1200 EBW1150 Device: T1 NSTG iLiad_v2 NC Device: Asus_TF Next1 WPDN
|
Quote:
Code:
HTML2EPUB COMMAND ================= html2epub -o BEST-calibre-bierig-MinFilter5-500-1-5.epub -t "bierig-MinFilter5-500-1-5" -a "bierig.pdf" --publisher="NR" --verbose bierig.html HTML2EPUB OUTPUT ================ Building file list... Found files... HTMLFile:0:a:C:\Program Files\calibre\bierig.html INFO: Parsing Program Files\calibre\bierig.html INFO: Rationalizing fonts... DEBUG: Done rationalizing DEBUG: Saving stylesheets... INFO: Output written to C:\Program Files\calibre\BEST-calibre-bierig-MinFilter5-500-1-5.epub Inside the .epub calibre places bierig_0.css, bierig_1.css and bierig_2.css files, with bierig_0.css derived from my .html, but bierig_2.css (created by calibre) has some standard margins that may effect what you see. I don't know of any way to turn them off, if they are the cause of that offset you see. Code:
bierig_0.css ======== p { text-indent: 0; margin-left: 0; margin-right: 0; margin-top: 0; margin-bottom: 0; text-align: none } .calibre_class_0 { page-break-before: always } bierig_1.css ======== empty bierig_2.css ======== body { margin-top: 0; margin-bottom: 0; margin-left: 0; margin-right: 0 } @page { margin-top: 5.000000pt; margin-bottom: 5.000000pt; margin-left: 5.000000pt; margin-right: 5.000000pt } a { color: inherit; text-decoration: inherit; cursor: default } a[href] { color: blue; text-decoration: underline; cursor: pointer } p { text-indent: 2.1em; margin-top: 1pt; margin-bottom: 1pt; padding: 0; border: 0 } Last edited by nrapallo; 10-16-2008 at 05:02 PM. Reason: typo |
|
10-22-2008, 02:02 PM | #140 | |
GuteBook/Mobi2IMP Creator
Posts: 2,958
Karma: 2530691
Join Date: Dec 2007
Location: Toronto, Canada
Device: REB1200 EBW1150 Device: T1 NSTG iLiad_v2 NC Device: Asus_TF Next1 WPDN
|
Quote:
I want to nail this, so that the next version of PDFRead will work with the Sony reader from the onset. |
|
10-22-2008, 04:44 PM | #141 | |
Wizard
Posts: 3,671
Karma: 12205348
Join Date: Mar 2008
Device: Galaxy S, Nook w/CM7
|
Quote:
The rest have the margin problem. So I have a theory, well I'm pretty sure actually this is the problem. If you look at the image size (width only) Image 0_0 and 1_1 are 584 pixels wide. (Both are on page 2) Images 2-4 have an image width of 552 pixels. So slap an image in an HTML that is 584 guess what you'll get margins. I bet if you center the images you'll get even margins on both the left and right side. The only way you'll get rid of the margins is to stretch the image to 584 pixels. My recommendation is that you do so but make this feature togglable by the user. A couple notes. I recommend you center the image and also add a page break after each image or else you get smaller images bunched up on one page. =X= Last edited by =X=; 10-22-2008 at 04:50 PM. |
|
10-22-2008, 04:59 PM | #142 |
creator of calibre
Posts: 43,860
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
I would recommend a single HTMl fie per image. This is the template i use for cover pages;
Code:
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"> <head> <title>Cover</title> <style type="text/css">@page {padding: 0pt; margin:0pt}</style> </head> <body style="padding: 0pt; margin: 0pt"> <div style="text-align:center"> <img style="text-align: center" src="%s" alt="cover" /> </div> </body> </html> |
10-22-2008, 05:02 PM | #143 | |||||
GuteBook/Mobi2IMP Creator
Posts: 2,958
Karma: 2530691
Join Date: Dec 2007
Location: Toronto, Canada
Device: REB1200 EBW1150 Device: T1 NSTG iLiad_v2 NC Device: Asus_TF Next1 WPDN
|
Quote:
Quote:
Quote:
Quote:
Quote:
Last edited by nrapallo; 11-17-2008 at 11:42 AM. |
|||||
10-22-2008, 05:12 PM | #144 | |
GuteBook/Mobi2IMP Creator
Posts: 2,958
Karma: 2530691
Join Date: Dec 2007
Location: Toronto, Canada
Device: REB1200 EBW1150 Device: T1 NSTG iLiad_v2 NC Device: Asus_TF Next1 WPDN
|
Quote:
Will this force, in the epub created, the "XX_2.css" file to have zero margins though? That file seems the cause of the shift to the left and clipping of the text on the right hand side of the scrren according to =X=. My original html had specified zero margins (in the "XX_0.css" file), but was overriden by your "XX_2.css" created file. Kovid, could you perhaps reverse the order and make your "XX_2.css" (Sony defaults) file come first, then the one from my html file? Like this: Code:
<link href="resources/bierig_2.css" type="text/css" charset="UTF-8" rel="stylesheet"/> <link href="resources/bierig_1.css" type="text/css" charset="UTF-8" rel="stylesheet"/> <link href="resources/bierig_0.css" type="text/css" charset="UTF-8" rel="stylesheet"/> Last edited by nrapallo; 10-22-2008 at 05:20 PM. |
|
10-22-2008, 05:17 PM | #145 | ||||
Wizard
Posts: 3,671
Karma: 12205348
Join Date: Mar 2008
Device: Galaxy S, Nook w/CM7
|
I agree with Kovid, one html per image. Chances are you will have problems with large ePUBs loading if you don't.
Quote:
Quote:
Quote:
Quote:
Yea I thought I attached the image. When I realized I didn't I had already deleted my epUB. But wait there's door number #4. Apparently I still had the ePUB on my reader so here it is. |
||||
10-22-2008, 05:26 PM | #146 |
GuteBook/Mobi2IMP Creator
Posts: 2,958
Karma: 2530691
Join Date: Dec 2007
Location: Toronto, Canada
Device: REB1200 EBW1150 Device: T1 NSTG iLiad_v2 NC Device: Asus_TF Next1 WPDN
|
|
10-22-2008, 05:32 PM | #147 |
creator of calibre
Posts: 43,860
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
|
11-20-2008, 07:31 PM | #148 | |
Junior Member
Posts: 5
Karma: 10
Join Date: Nov 2008
Device: PRS505, Kindle
|
Donovand:
I posted this on the older thread and Nick pointed out this is the newer one. I have my Intel Mac running 10.5.5. I followed the directions on the package but I'm getting an error.... Nick: Thanks for the prompt reply. I've actually been bouncing between this thread and the other two you posted and I still have the error. I have the Apple Developer Tool installed. I downloaded the latest Python (2.6) I installed pdktk I downloaded pngnq (how does this get installed exactly? - just curious) Installed fink and downloaded all packages as instructed downloaded PIL and installed it downloaded the latest PDFRead source from here and followed the directions I'm a bit dumbfounded as to what I could be doing wrong .... should I post this on the newer thread instead of here? Error message is here: https://www.mobileread.com/forums/sho...34&postcount=6 Cheers and thanks! Quote:
|
|
11-20-2008, 07:40 PM | #149 | ||
GuteBook/Mobi2IMP Creator
Posts: 2,958
Karma: 2530691
Join Date: Dec 2007
Location: Toronto, Canada
Device: REB1200 EBW1150 Device: T1 NSTG iLiad_v2 NC Device: Asus_TF Next1 WPDN
|
Quote:
Quote:
This a path issue, as it seems to PDFRead that it is not installed by you/MACOS X. Check the MACOS X instructions (read donovand's posts starting from here) again to see where this module gets installed (or is assumed to be already installed). Last edited by nrapallo; 11-20-2008 at 09:25 PM. Reason: added link |
||
11-20-2008, 09:39 PM | #150 | |
Junior Member
Posts: 5
Karma: 10
Join Date: Nov 2008
Device: PRS505, Kindle
|
Nick:
Thanks for the reply. Indeed it seems the problem was were pngnq was located. After digging up some posts via Google, I found the right place where to put it. Now that it is in the right place, I can successfully convert to lrf but the pdf to prc conversion is a no go. Instead, I get an html file that is blank. This is seriously a good schooling on my VERY rusty Unix skills... I guess the purdy interface shields you out of the Terminal, at least in my case... Cheers, Roy Quote:
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Need help using PDFRead | daithi81 | Workshop | 8 | 10-16-2009 09:33 AM |
Need help with PDFRead | pfisterfarm | 8 | 03-23-2009 09:19 AM | |
pdfread cybook | x3oo | Cybook | 2 | 03-09-2009 11:49 AM |
PDFRead 1.7 released | ashkulz | 87 | 03-12-2008 10:29 AM | |
PDFRead v5 available on Sourceforge | Alexander Turcic | 3 | 04-08-2007 06:31 AM |