![]() |
#16 |
Connoisseur
![]() Posts: 79
Karma: 10
Join Date: Oct 2010
Device: Kindle 3
|
I think my problem is that both Preview and Adobe Reader (OS X) seem to be highlighting and copying the text and not retaining the formatting. You're on a PC, so there may be a difference in how to retain the indentations, but it's basically copying the text to a clipboard and then spitting it out left-justified.
|
![]() |
![]() |
![]() |
#17 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,248
Karma: 16539642
Join Date: Sep 2009
Location: UK
Device: ClaraHD, Forma, Libra2, Clara2E, LibraCol, PBTouchHD3
|
Does that mean the first MOBI did look OK on your Kindle, because I just realised that I had Convert - PageSetup - OutputProfile set to Sony instead of Kindle when I created the MOBI?
|
![]() |
![]() |
Advert | |
|
![]() |
#18 |
Connoisseur
![]() Posts: 79
Karma: 10
Join Date: Oct 2010
Device: Kindle 3
|
Yes, they both look fine - I just can't figure out how to copy the PDF text with the margins/formatting. Highlighting and copying just results in left-justified text.
|
![]() |
![]() |
![]() |
#19 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,248
Karma: 16539642
Join Date: Sep 2009
Location: UK
Device: ClaraHD, Forma, Libra2, Clara2E, LibraCol, PBTouchHD3
|
I have absolutely no MAC experience so I can't help with this. If any MAC users are reading this maybe they will offer some help. It's probably something really easy.
Meanwhile I'll see if I can think of a way (free utility) to get the text out of the PDF without copy/paste. Ile's XPDF suggestion worked for me but using it on OS X also seemed to be in question. |
![]() |
![]() |
![]() |
#20 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,337
Karma: 123455
Join Date: Apr 2009
Location: Malaysia
Device: PRS-650, iPhone
|
For one thing, Calibre's existing pdf conversion engine doesn't have the ability to preserve that information during conversion. There are some other free pdftohtml utilities out there that can do this, I found a decent online one a while back, can't remember the link right now, but there are numerous options if you just google it:
http://www.google.com.my/search?hl=e...=&oq=&gs_rfai= For another thing, Kindle's margin handling is a mess. Based on the screenshot those margins are possible using nested blockquotes, but the whole document would need to be formatted by hand to get similar indenting, as it can't easily be done just using standard margins, as the kindle/mobi doesn't support those. There is some discussion/links at this bug: http://bugs.calibre-ebook.com/ticket/7015#comment:20 |
![]() |
![]() |
Advert | |
|
![]() |
#21 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,248
Karma: 16539642
Join Date: Sep 2009
Location: UK
Device: ClaraHD, Forma, Libra2, Clara2E, LibraCol, PBTouchHD3
|
@Idolse, I'm confused with your reply. Unless I've totally got the wrong end of the stick, kidblue seemed to confirm that the MOBI I attached, read OK on his Kindle and the HTML I attached both converted OK to MOBI and the MOBI read OK on his Kindle. His only problem is within his OS (OS X) where manually copying the text from the PDF and pasting into a text file didn't retain the leading spaces (all spaces?) correctly. I do not understand this problem because on Windows it just works with no problem.
|
![]() |
![]() |
![]() |
#22 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,337
Karma: 123455
Join Date: Apr 2009
Location: Malaysia
Device: PRS-650, iPhone
|
I might be the one confused actually - I thought I read that the problem was on the Kindle display, but upon re-reading I don't see that.
|
![]() |
![]() |
![]() |
#23 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,248
Karma: 16539642
Join Date: Sep 2009
Location: UK
Device: ClaraHD, Forma, Libra2, Clara2E, LibraCol, PBTouchHD3
|
@kidblue,
In the absence of a solution to your copy/paste problem in OSX you could try the following:
The above replaces steps 1-5 in the earlier instructions. Continue with step 6 onwards as before. If this doesn't work I may start throwing things! ![]() [Edit:] I'm joking - please report back with results. Last edited by jackie_w; 10-14-2010 at 06:35 PM. |
![]() |
![]() |
![]() |
#24 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,248
Karma: 16539642
Join Date: Sep 2009
Location: UK
Device: ClaraHD, Forma, Libra2, Clara2E, LibraCol, PBTouchHD3
|
Oops, I missed a Find/Replace. I've edited the above post and added the blue line.
This cobbled together potential solution is not ideal. You would still be better finding the answer to your OSX copy/paste problem. As you can see Page 1 is not quite right but the dialogue looks OK. Last edited by jackie_w; 10-14-2010 at 06:44 PM. |
![]() |
![]() |
![]() |
#25 |
Member
![]() Posts: 16
Karma: 42
Join Date: Oct 2010
Device: kindle
|
film script / screen play issues on Mac to Kindle
Thanks for this very interesting thread. I had already tried some of the suggested routes without much success on the Mac - the problem seems to be that the formatting is being lost out of the PDF for some reason.
Even starting with the Calibre conversion and looking at the HTML it seems to have lost all the formatting and spaces which is slightly frustrating. I have been looking at working on a set of CSS options to try to make the script readable (if not perfect) and my work so far has led me to this: Code:
body { font-weight: normal; font-size: 12pt; font-family: courier } p { font-weight: normal; font-size: 12pt; font-family: courier } h1 { font-weight: normal; font-size: 12pt; font-family: courier; margin-left: 25em } h2 { font-weight: normal ; font-size: 12pt; font-family: courier} calibre1 { font-weight: normal ; font-size: 12pt; font-family: courier; margin-left: 10em} calibre2 { font-weight: normal ; font-size: 12pt; font-family: courier; margin-left: 25em} calibre3 { font-weight: normal ; font-size: 12pt; font-family: courier; margin-left: 20em} br { font-weight: normal ; font-size: 12pt; font-family: courier; margin-left: 20em} calibre4 { font-weight: italic ; font-size: 12pt; font-family: courier } i { font-weight: italic ; font-size: 12pt; font-family: courier } calibre5 { font-weight: normal ; font-size: 12pt; font-family: courier } h3 { font-weight: normal ; font-size: 12pt; font-family: courier } h4 { font-weight: normal ; font-size: 12pt; font-family: courier } Does anyone know if there is any flexibility on the PDF import routines when the file format is unusual (ie not like a book). Film scripts from Final Draft and other film / tv screenplay tools have a very highly defined format which I'm sure if one could find the right place in the process to work on would be easy to analyse as it is so different. For example centered dialogue and character names in capitals, left formatted descriptive passages and left formatted capitals being scene names. Quite a small number of conventions define the way a script is formatted but so far finding a way to convert a screen plat / script onto a Kindle 3 has proven less than satisfactory or consistent ![]() I'm glad other people are contemplating this as well maybe together there is a solution. |
![]() |
![]() |
![]() |
#26 |
Member
![]() Posts: 21
Karma: 10
Join Date: Dec 2011
Device: Sony T1
|
Hey guys great thread!!
I've been looking for a long time a way to do this. Jackie_w's solution works well but stangely, it only works when I import a html into calibre, then convert it to Mobi, then to epub. html > Mobi > epub If I convert it from html to epub, it doesn't retain the format as does the technique and Mobi file Jackie_w shared with us. Any ideas? It must be somewhere in the conversion process. edit: I know this thread is old but I hope some of you are still subscribed or will take a look. Last edited by Analoggab; 06-25-2012 at 09:04 PM. |
![]() |
![]() |
![]() |
#27 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,248
Karma: 16539642
Join Date: Sep 2009
Location: UK
Device: ClaraHD, Forma, Libra2, Clara2E, LibraCol, PBTouchHD3
|
A blast from the past...
![]() Funnily enough, the 'screenplay question' also came up again very recently and I posted an updated option. See this thread, my contribution starts at post #8. This method involves creating a TXT file (containing all the formatting spaces) from the PDF using the XPDF (free) Windows utilities. Google should find it quickly. Once you have the nicely formatted TXT it is simple to run a TXT-->epub conversion to get something which reads very nicely on a PRST1 in landscape orientation. The linked thread shows some pictures. It all hinges on whether you can get the relevant XPDF commandline utility to run in your Mac-Windows environment. If it works, the rest is easy, but if you get stuck with the necessary 'TXT Input' calibre conversion options, I can be more specific. [Edit:] dear, oh dear I really should get my facts straight before posting ![]() Last edited by jackie_w; 06-28-2012 at 05:48 PM. |
![]() |
![]() |
![]() |
#28 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,248
Karma: 16539642
Join Date: Sep 2009
Location: UK
Device: ClaraHD, Forma, Libra2, Clara2E, LibraCol, PBTouchHD3
|
Follow up...
OK, try again...
P.S. This is one way of doing it and should not be considered as the 'One True Way' ![]() Last edited by jackie_w; 06-28-2012 at 06:27 PM. Reason: more detail) |
![]() |
![]() |
![]() |
#29 |
Member
![]() Posts: 21
Karma: 10
Join Date: Dec 2011
Device: Sony T1
|
Hey Jackie! Nice to see you back.
![]() I'll test out the XPDF program when I get home. I had tested various online pdftotext solutions (like this) but with mixed results. Perhaps the conversion engine is not as good. Have you had success going from the edited html with the <pre> tags directly to epub? Strangely, using your attached html in this thread, I only had success going from html >*Mobi >*epub. But html >*epub directly never seem to work. Default settings. |
![]() |
![]() |
![]() |
#30 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,248
Karma: 16539642
Join Date: Sep 2009
Location: UK
Device: ClaraHD, Forma, Libra2, Clara2E, LibraCol, PBTouchHD3
|
Quote:
Yes, a direct zip-->epub calibre conversion works for me. No interim mobi required. If you can't make it work, if you like you can send me a PM with a link to your manually-created html file and we'll take it from there. |
|
![]() |
![]() |
![]() |
|
![]() |
||||
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 |