View Single Post
Old 06-29-2012, 06:01 PM   #30
jackie_w
Grand Sorcerer
jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.
 
Posts: 6,252
Karma: 16544692
Join Date: Sep 2009
Location: UK
Device: ClaraHD, Forma, Libra2, Clara2E, LibraCol, PBTouchHD3
Quote:
Originally Posted by Analoggab View Post
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.
I think many (most?) of them get rid of leading spaces, which is exactly what you don't want. The XPDF pdftotext utility, using the -layout option, does exactly what you need, if you can make it work on the Mac. The reason I switched to this utility is that a simple PDF Select all>Copy>Paste into a TXT file retained leading spaces only for some PDFs -- even on Windows. It probably depends on how the PDF was created in the first place.

Quote:
Originally Posted by Analoggab View Post
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.
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.
jackie_w is offline   Reply With Quote