![]() |
#1 |
Zealot
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 111
Karma: 483614
Join Date: Mar 2010
Location: Winnipeg, Manitoba, Canada
Device: Sony PRS-505, Kindle 2, Nook
|
Reformatting .txt files
Hi all,
Probably a dumb question but, is there any way that I can reformat an ebook .txt file so that it is more friendly to my Sony PRS-505 when after importing I ask for a medium sized font (eyes aren't what they used to be). I hate reading when the lines are chopped in disarray and apparent disorder. I have Mac MS Word and Mac iWork Pages as word processing resources. Any advice would be gratefully accepted. Thank you in advance. jim |
![]() |
![]() |
![]() |
#2 |
Zealot
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 111
Karma: 483614
Join Date: Mar 2010
Location: Winnipeg, Manitoba, Canada
Device: Sony PRS-505, Kindle 2, Nook
|
Answered my own question
My test book for this exercise was "Seven Pillars of Wisdom" by T.E. Lawrence. I just ordered this out-of-print text from an Amazon vendor but shortly afterward I discovered a copy at http://gutenberg.net.au/
After loading it into my Sony PRS-505 it really looked choppy and because I am kind of picky on form and appearance, I sought to amend the form so that even after changing the font size on my eReader, it would still look orderly and consistent. It appears to me that I have managed to do that with the help of the information found at the URL listed below. My text editor was Apple iWork PAGES. http://www.handebooks.com/howto/tips.html jim |
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Reader
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 11,504
Karma: 8720163
Join Date: May 2007
Location: South Wales, UK
Device: Sony PRS-500, PRS-505, Asus EEEpc 4G
|
Actually, there's an LRF version of the Seven Pillars of Wisdom in our own upload section:
https://www.mobileread.com/forums/showthread.php?t=10190 Here are some simple ways of removing the annoying linebreaks in text files. Start by pasting the file into a doc. Then try one of the following: Replacing Breaks using Word Paste the text file into a word document. Save it. Open Find and Replace (In the “Edit” menu). You need to make three passes with it. 1. Find ^p^p (i.e. find two paragraph marks. The symbols are in More then Special. The paragraph mark is at the top of the list.). Replace with @ (These act as placeholders to preserve the real paragraphs.) 2. Now, for the second pass, find ^p (single paragraph mark). Replace with a single space. 3. Finally, for the third pass, find @ and replace with either a single paragraph mark, or two paragraph marks if you prefer an empty line between paragraphs. Stingo’s Word Macro This does a good job at removing the hard line breaks in text files and making a reflowable document. It also sets the font to Times New Roman, point 14. Once installed, it is very easy to use. Paste your text file into a word document. Save the Doc and run the macro. You can find it here, together with instructions on how to install it: https://www.mobileread.com/forums/showthread.php?t=8793 (The only time this has ever given me trouble was when I failed to save the doc before running the macro. It crashed.) BookCreator MobileRead member =X= has produced BookCreator. This is a Word template containing a number of useful macros, which speed up the editing process. He envisages using it in connection with Calibre. However, it is entirely feasible to run the macros and then import the edited document into BD. BookCreator is available here: https://www.mobileread.com/forums/showthread.php?t=28313 |
![]() |
![]() |
![]() |
#4 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,623
Karma: 3000161
Join Date: Jan 2009
Device: Kindle PW3 (wifi)
|
Hello,
If you plan to use OpenOffice, you could use this extension called MyTXTcleaner http://www.box.net/shared/etq31z1u15 It installs a little icon on the top left, and just do the job (well, open your file before...). |
![]() |
![]() |
![]() |
#6 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,490
Karma: 5239563
Join Date: Jan 2008
Location: Denmark
Device: Kindle 3|iPad air|iPhone 4S
|
Quote:
To the OP: I would suggest using Pages for this - the search and replace seems to be more stable and a little easier to use than in Word. I've done this a lot recently with some books I've re-formatted, and whenever I start working in Word I often find myself shifting to Pages. When finished, you can export from Pages to RTF - though I would suggest copying and pasting the whole thing into a new RTF document (TextEdit). It gives a 'cleaner' file. The RTF file can be converted in Calibre to for example ePUB if you don't like how RTF looks on the Reader. |
|
![]() |
![]() |
![]() |
#7 | |
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 68
Karma: 500076
Join Date: Dec 2009
Location: Canada
Device: sony 300, T1
|
Quote:
Thank you, that is so easy to use. The worst book I ever read was on my Palm Pilot. It had one 250 page paragraph, no indents, carriage returns etc. |
|
![]() |
![]() |
![]() |
#8 | |
Zealot
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 111
Karma: 483614
Join Date: Mar 2010
Location: Winnipeg, Manitoba, Canada
Device: Sony PRS-505, Kindle 2, Nook
|
Mac Pages and MS Word - Text Editing
Quote:
To all: Thank you. I learn. The challenge is to remember. |
|
![]() |
![]() |
![]() |
#9 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,490
Karma: 5239563
Join Date: Jan 2008
Location: Denmark
Device: Kindle 3|iPad air|iPhone 4S
|
Quote:
![]() Word for Mac really isn't all that great. Pages generally work so much better. But I've read the next version of Word for Mac should be quite improved. |
|
![]() |
![]() |
![]() |
#10 | |
Created Sigil, FlightCrew
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,982
Karma: 350515
Join Date: Feb 2008
Device: Kobo Clara HD
|
Quote:
Could we see the source code? FOSS FTW. ![]() |
|
![]() |
![]() |
![]() |
#11 |
eBook Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 85,544
Karma: 93383043
Join Date: Nov 2006
Location: UK
Device: Kindle Oasis 2, iPad Pro 10.5", iPhone 6
|
|
![]() |
![]() |
![]() |
#12 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,623
Karma: 3000161
Join Date: Jan 2009
Device: Kindle PW3 (wifi)
|
|
![]() |
![]() |
![]() |
#13 |
eBook Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 85,544
Karma: 93383043
Join Date: Nov 2006
Location: UK
Device: Kindle Oasis 2, iPad Pro 10.5", iPhone 6
|
No, that's a different program with the same name.
|
![]() |
![]() |
![]() |
#14 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,196
Karma: 1281258
Join Date: Sep 2009
Device: PRS-505
|
|
![]() |
![]() |
![]() |
#15 | |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 210
Karma: 1000659
Join Date: Jan 2009
Location: Sunnyvale, CA
Device: Kindle Voyage, Kobo Aura H2O, PRS-650 (black), Kindle 3G
|
Quote:
|
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Trouble with .txt files | lunixer | Calibre | 14 | 08-19-2010 06:43 PM |
Disappearing txt files?!? | JaneFancher | Sigil | 2 | 06-26-2010 02:55 PM |
Txt files - Convert to Epub - Multiple files into one book - noob help | Cernan | Calibre | 6 | 05-18-2010 10:12 AM |
Reformatting untidy text files macro | 46137 | Workshop | 8 | 05-02-2008 09:27 PM |
Reformatting PDF Files for Sony Reader | sfernald | Sony Reader | 13 | 11-11-2007 08:52 AM |