Text Formatting Question

Status
Not open for further replies.
Yes, other and better sources for this book exist, but that helps me only with this book, and I am really looking for a workable solution to fix this type of formatting error with any book.
 
I tried this: I downloaded a nicely formatted Mysterious Island PDF file. I converted it into plain text, and I got he same funky line breaks and empty lines on the Kindle. In the text editor it looked fine. Next I put the PDF on the Kindle. The Kindle can read the PDF and displays it okay at the default font size, which is very small. I cannot change the font size, I only can zoom in, which means the page gets cropped at the top, bottom, left and right, which makes this option uselss.
 
Buzzy, pdf is not a good option.

Epub is best.

If you can't find Epub, then try looking for a better pdf (or maybe pdf software can increase the font size).
 
Benny, I converted the PDF in Calibre into an epub file and put it on my Kindle. I see it in the Kindle's documents folder, but I can't find the epub file on the Kindle itself.
 
Benny, I just did that and hat epub also does not show up on the Kindle itself.

Sincerely,
Buzzy
 
So now I have to connvert into mobi? Am I Ahab? I'll try later tonight. I am positively famished from all those futile attempts at gittin R done and I must seek nourishment.
 
Kindle don't read epub Buzzy.

They want to keep things proprietary, just like Apple.
 
Originally Posted By: BRZED
Other than justificatiom, which I don't know if it even counts as formatting, is the Kindle doing? It didn't insert line breaks or paragraphs into my giant block of plain text. Changing the font size has no effect on formatting.

Justification may or may not be formatting. To know that, you'd have to export the text file you're reading to something else. When HTML email is justified, that tends to be part of the formatting, itself, so it works across platforms. When old style word processors were justified, that was a "switch" in the file, since there was no screen justification, only on paper. And, I'm sure some do it that way as part of their file formatting today, too. What I'm getting at is that things like LibreOffice and MS Office probably don't actually insert spaces or slivers of spaces between words in the actual text as its saved as a file, but probably use a switch and calculate based upon your margins, as in switching margins in a justified document in a word processor doesn't give you a giant mess.

Reading your follow up email, it seems to be what I've suggested. The Kindle wraps where it's appropriate for its viewing dimensions, and then a carriage return and/or linefeed means another wrap.

I don't know how your programming skills are (or perhaps your ability to find someone who's written such a thing), but it should be possible to search for single linefeeds/CRs and delete them, while leaving alone instances of two or more of them together.

If I had to do it, I'd load it into Emacs and try to whip up a macro to deal with it. If you have never used Emacs before, please pick up a coffee mug, and repeatedly bash your head with it until you forget that I ever suggested this.
wink.gif
 
Garak, my head hurts. I should have used a paper coffee mug for bashing my head in!
 
Emacs can do a lot of things. #1 on its list of features is the ability to frustrate a lot of people. I've been using variants of it since that late 1980s, and there are a pile of things I have no idea how to do. The program can probably fold my laundry for me, but the key combinations required would probably tie a concert pianist's fingers into knots.

Seriously, though, it can do some pretty darned good stuff, if you're willing to learn specifically what you need, and from then on, you'd be set. Although, I'm not sure I'd want to have to be puttering with Emacs to get a Kindle book working. In fact, that makes me happier to have stuck to paper books so far.
wink.gif
 
I had to sideline this project for a while, because I was busy with more pressing things, but I have finally found a solution for the formatting problem.

I installed Alternative Find &Replace for Writer into Libre Office.
http://extensions.libreoffice.org/extension-center/alternative-dialog-find-replace-for-writer

With trial and error this procedure worked on the faulty .txt file:

Search for \p\p (find all)
replacement value: "space" (replace all)
regular expressions: checked

This procedure removed all erroneous paragraphs (What I thought were line breaks were actually paragraphs), but left the proper ones. Took about 30 seconds to run the whole book.
 
Accordinng to Alternative Find &Replace for Writer, after i clicked 'replace all,' Libre Office removed 18,137 paragraphs.
 
Sounds like you found a nice solution. I'm sure Emacs could have done it, but it would have been a far, far more painful experience, particularly if you're not used to Emacs. Back in the day, when I was word processing on ancient Radio Shack stuff, the enter key would insert a paragraph marker. I'm not surprised that such things have followed in modern publishing, but since we have so many WYSIWYG applications, one never really knows what one has without explicitly looking for it.
 
Status
Not open for further replies.
Back
Top Bottom