![]() |
#31 | |
Member
![]() Posts: 21
Karma: 10
Join Date: Dec 2011
Device: Sony T1
|
Quote:
I haven't tested XPDF yet. Will report on that later. |
|
![]() |
![]() |
![]() |
#32 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,212
Karma: 16534894
Join Date: Sep 2009
Location: UK
Device: Kobo: KA1, ClaraHD, Forma, Libra2, Clara2E. PocketBook: TouchHD3
|
Quote:
Spoiler:
|
|
![]() |
![]() |
Advert | |
|
![]() |
#33 |
Member
![]() Posts: 21
Karma: 10
Join Date: Dec 2011
Device: Sony T1
|
All right,
And here's my job. These lines in mine were different vs. yours. 'font_size_mapping' 'base_font_size': 0.0, 'change_justification': u'original', 'margin_bottom': 5.0, 'page_breaks_before': u"//*[name()='h1' or name()='h2']", 'smarten_punctuation': False, These lines I didn't have compared to yours. 'html_unwrap_factor': 0.4, 'extra_css': None, html >*epub Spoiler:
Here's the html >*mobi which worked. identical settings to the epub which doesn't work, expect one. (pretty_print) Weird right? ![]() Spoiler:
|
![]() |
![]() |
![]() |
#34 |
Member
![]() Posts: 21
Karma: 10
Join Date: Dec 2011
Device: Sony T1
|
Also see here.
An image of the html to mobi. As it should the Calibre reader doesn't change the formatting. If zoomed too big, words are cut. ![]() And here's html to eub. See how the Reader can change the formatting and reorganize the words. ![]() |
![]() |
![]() |
![]() |
#35 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,212
Karma: 16534894
Join Date: Sep 2009
Location: UK
Device: Kobo: KA1, ClaraHD, Forma, Libra2, Clara2E. PocketBook: TouchHD3
|
Is the epub image a screenshot of the epub whilst on the PRST1? If so, what happens if you reduce the font-size using the buttons on the PRST1 and view the epub in landscape orientation, rather than portrait?
It looks to me as if all that is wrong is that the font-size is too big for each line to fit and the PRST1 is wrapping the overflow rather than letting it run off the right-hand edge. This is actually a good thing as I'm not sure that earlier Sony models were able to wrap <pre> text. (Just checked my PRS650, this model can also wrap <pre> text, perhaps it was the PRS505 which couldn't?) I'll add a couple of PRST1 screenshot images shortly to illustrate my point. Photography is definitely not my strong suit ![]() I don't think there's anything wrong with your calibre conversion settings. Having thought about it a bit more, having 'Smarten punctuation' UNCHECKED and 'Text justification' set to 'Left align' (or 'original') are probably a good idea for this type of file. [Edit:] The following screenshots are taken from the same epub on the PRST1
Last edited by jackie_w; 07-05-2012 at 07:01 PM. Reason: images added |
![]() |
![]() |
Advert | |
|
![]() |
#36 |
Member
![]() Posts: 21
Karma: 10
Join Date: Dec 2011
Device: Sony T1
|
This is taken from the ebook viewer in Calibre. Not from the Sony.
When I did my testing, I realized I could simply open the epub or mobi file in that viewer and if the file was cropped (does not adjust formatting) as it is with the Mobi file, then it would work well in the T1. When I put the epub file in the Sony, it's OK in landscape but some formatting is off. ==>*What is truly working is when I upload an epub converted from a Mobi file. It's perfect on the Sony. So it's possible, I just don't understand why it needs to convert to Mobi and then to epub on my side for it to work. |
![]() |
![]() |
![]() |
#37 |
Member
![]() Posts: 21
Karma: 10
Join Date: Dec 2011
Device: Sony T1
|
Subject 2:
Have you tried using XPDF ? Here is my result ![]() |
![]() |
![]() |
![]() |
#38 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,212
Karma: 16534894
Join Date: Sep 2009
Location: UK
Device: Kobo: KA1, ClaraHD, Forma, Libra2, Clara2E. PocketBook: TouchHD3
|
Quote:
However, you cannot use the calibre viewer to simulate what an epub, or mobi will look like on any particular reader. For a start the calibre viewer will convert a mobi (in memory) to epub before displaying. I've now added my PRST1 images to my earlier post. Regarding the XPDF pdftotext utility, here's a screencap of the output TXT file created on my Windows XP PC from kidblue's original sample screenplay PDF. Did you remember to add the -layout parameter in the commandline instruction? I don't know what else to suggest. I don't know what is different in your setup to mine other than you have a Mac and I have a WinXP PC. Can you post both your epubs: - the one created by the zip-to-epub conversion - the one where you went zip-to-epub-to-mobi. I'll see if I can see a difference. Last edited by jackie_w; 07-05-2012 at 07:37 PM. |
|
![]() |
![]() |
![]() |
#39 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,212
Karma: 16534894
Join Date: Sep 2009
Location: UK
Device: Kobo: KA1, ClaraHD, Forma, Libra2, Clara2E. PocketBook: TouchHD3
|
Also, perhaps you should update your calibre version. You appear to be using v0.8.24 which is 34 releases out-of-date.
|
![]() |
![]() |
![]() |
#40 | |
Member
![]() Posts: 21
Karma: 10
Join Date: Dec 2011
Device: Sony T1
|
Yes I updated Calibre after I had posted Calibre's job details.
I got XPDf from there. I downloaded xpdfbin-win-3.03.zip. Right stuff? http://www.foolabs.com/xpdf/download.html I need to do more testing. I think I did it wrong. Quote:
Here are the 2 files requested. - the one created by the zip-to-epub conversion - the one where you went zip-to-epub-to-mobi. |
|
![]() |
![]() |
![]() |
#41 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,212
Karma: 16534894
Join Date: Sep 2009
Location: UK
Device: Kobo: KA1, ClaraHD, Forma, Libra2, Clara2E. PocketBook: TouchHD3
|
I've copied your zip-to-epub version to my PRST1. It displays just as well as my own, i.e. nothing wrong with it.
It's not surprising that your 2 epubs display slightly differently because the mobi-to-epub conversion has changed the markup in the epub's html file. The zip-to-epub contains a single pair of <pre>...</pre> tags with the formatted TXT file in-between - very little change from the html file you imported into calibre. The zip-to-mobi-to-epub has no <pre> tags but instead a single <p><tt>...</tt></p> paragraph with a hard linebreak (<br />) at the end of every line of text. The biggest difference I see between your version and mine is:
I'm guessing it's due to longer lines wrapping onto 2 lines when creating the initial TXT from PDF in XPDF pdftotext. I see the current version of XPDF is 3.03 whereas my copy is 3.02. I don't know whether this accounts for the slight difference, or whether it's something to do with Mac vs Windows. You could try reading the pdftotext documentation to see if changing the runtime parameters gets you a better output file. In particular, it's worth considering the -htmlmeta option (as well as the -layout option) which, at a glance, seems to combine the following steps into a single step:
Code:
"C:\Program Files\XPDF\pdftotext.exe" -layout -nopgbrk -htmlmeta screenplay.pdf screenplay.html |
![]() |
![]() |
![]() |
#42 |
Member
![]() Posts: 21
Karma: 10
Join Date: Dec 2011
Device: Sony T1
|
Thank you so much for your precious contribution Jackie.
I have a very workable solution right now. Couldn't have done without you. I hope others will benefit from your input. ![]() |
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
kindle 2: hightlighting text in a pdf? | venkat3 | Amazon Kindle | 4 | 09-13-2012 07:49 PM |
Sony or kindle for text based PDFs? | paulpod | Which one should I buy? | 1 | 10-12-2010 11:11 AM |
HTML to MOBI text format is off when I get it on Kindle | cloudyvisions | Calibre | 5 | 07-14-2010 12:42 AM |
will kindle text 2 speech work on any .mobi books? | neoromance | Kindle Formats | 1 | 01-31-2010 06:12 PM |
Cybook & text-based pdfs | StephieP | Bookeen | 17 | 04-28-2008 11:50 AM |