11-06-2006, 09:48 PM | #1 |
Addict
Posts: 209
Karma: 999496
Join Date: Sep 2006
Location: California
Device: Kindle 3
|
TXT to RTF
I have a few TXT files that have text wrapping breaks (paragraph marks) at the end of every single line. When I change font size, every line ends abruptly in the wrong place.
Is there a way, using MS Word, to remove those breaks without losing the correct paragraph marks? Last edited by Michele; 11-06-2006 at 09:53 PM. |
11-06-2006, 09:53 PM | #2 |
Recovering Gadget Addict
Posts: 5,381
Karma: 676161
Join Date: May 2004
Location: Pittsburgh, PA
Device: iPad
|
Here's the process I'm using...
https://www.mobileread.com/forums/sho...0958#post40958 |
Advert | |
|
11-06-2006, 09:57 PM | #3 |
Addict
Posts: 209
Karma: 999496
Join Date: Sep 2006
Location: California
Device: Kindle 3
|
That's a good suggestion, but mine don't have double paragraph marks when a real paragraph ends. It just moves on to the next line.
Whoops, my bad. It does -- sometimes. Last edited by Michele; 11-06-2006 at 10:05 PM. |
11-06-2006, 11:05 PM | #4 |
Addict
Posts: 330
Karma: 596
Join Date: Oct 2006
|
How big are these documents? Perhaps you could add double-paragraph marks?
|
11-06-2006, 11:07 PM | #5 |
Addict
Posts: 209
Karma: 999496
Join Date: Sep 2006
Location: California
Device: Kindle 3
|
Heh, I thought of that, but they're full novels.
|
Advert | |
|
11-07-2006, 01:11 AM | #6 |
Gizmologist
Posts: 11,615
Karma: 929550
Join Date: Jan 2006
Location: Republic of Texas Embassy at Jackson, TN
Device: Pocketbook Touch HD3
|
So how does it indicate a paragraph if it isn't a double ¶?
|
11-07-2006, 01:14 AM | #7 |
Member
Posts: 23
Karma: 47
Join Date: Oct 2006
Device: Sony Reader/Treo 600
|
I'm unaware of a solution for Microsoft Word, but I address this problem with a freely downloaded app.
http://www.textpad.com/download/index.html Select all text, make sure the wordwrap feature is selected and right click on the selected text and select "reformat". This changes all single linefeeds to spaces and leaves in place double linefeeds. |
11-07-2006, 02:04 AM | #8 | |
Addict
Posts: 330
Karma: 596
Join Date: Oct 2006
|
Quote:
xxxxxxxxxxxxxxxxxxxxxxxxxxxx¶ xxxxxxxxxxxxxxxxxxxxxxxxxxxx¶ xxxxxxxxxxx¶ xxxxxxxxxxxxxxxxxxxxxxxxxxxxx¶ xxxxxxxxxxxxxxxxxxxxxxxxxxxx¶ |
|
11-07-2006, 06:48 AM | #9 |
Gadget freak
Posts: 32
Karma: 19
Join Date: Oct 2006
|
No, no, no, no, no...
I've written a simple .NET application that converts to RTF, allows justified text, various fonts, and even fills in author names and titles for you. All works very well. You can download it from this thread: https://www.mobileread.com/forums/showthread.php?t=8388 Remember to get the one at the bottom of the discussion! |
11-07-2006, 11:25 AM | #10 | |
Addict
Posts: 209
Karma: 999496
Join Date: Sep 2006
Location: California
Device: Kindle 3
|
Quote:
Last edited by Michele; 11-07-2006 at 11:30 AM. |
|
11-07-2006, 01:04 PM | #11 |
Gizmologist
Posts: 11,615
Karma: 929550
Join Date: Jan 2006
Location: Republic of Texas Embassy at Jackson, TN
Device: Pocketbook Touch HD3
|
That would be tough to catch programatically....
|
11-07-2006, 02:07 PM | #12 |
Addict
Posts: 330
Karma: 596
Join Date: Oct 2006
|
I was thinking about this further and I wonder if you should focus less on eliminating the breaks and more on the size of the type? Perhaps if you can find a happy font size in RTF, you can read the book as if it had the proper ¶s?
|
11-07-2006, 02:26 PM | #13 |
Addict
Posts: 209
Karma: 999496
Join Date: Sep 2006
Location: California
Device: Kindle 3
|
I've found the solution!!
1. I do a replace all .¶ with .¶¶ 2. Replace all ."¶ with ."¶¶ 3. Then I applied the fix to remove the single ¶ 4. Then I replace all ¶¶ with ¶ There will be an occasional case when a line ends in a period and a new paragraph isn't intended, but for the majority of the cases, it provides proper paragraph breaks. rcs1000, your program was helpful with step 3. Is there any chance you could add the other steps to your program for cases like mine. I've run into this lots of times. I just pulled out my dusty old programmer's brain and asked myself how I know where the paragraphs are intended. Last edited by Michele; 11-07-2006 at 02:40 PM. |
11-07-2006, 02:44 PM | #14 |
Addict
Posts: 209
Karma: 999496
Join Date: Sep 2006
Location: California
Device: Kindle 3
|
Thanks so much to all of you for helping me think this through. I've already tossed several files like this, but now if I'm lucky enough to find them again, I'll be able to use them.
|
11-07-2006, 02:46 PM | #15 |
Gizmologist
Posts: 11,615
Karma: 929550
Join Date: Jan 2006
Location: Republic of Texas Embassy at Jackson, TN
Device: Pocketbook Touch HD3
|
Excellent solution -- it's always something simple, you just have to figure out which simple thing to do.
|
Thread Tools | Search this Thread |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
TXT, RTF, and HTML conversion issues | daesdaemar | Calibre | 15 | 12-10-2008 09:05 PM |
Borders on RTf/TXT file | horseyride | Sony Reader | 8 | 11-14-2007 10:44 AM |
RTF and TXT compared to LRF? | pitolee | Sony Reader | 15 | 04-14-2007 02:13 PM |
ereader pdb to rtf, txt, anything? | Dave Berk | Reading and Management | 11 | 03-24-2007 07:45 PM |
Formatting looks off on txt and rtf files | Crono | Sony Reader | 25 | 10-27-2006 07:31 PM |