Automatic text wrapping
Automatic text wrapping
I have a problem. I have a text document which is almost 600,000 words in length which I need to save as an ebook. I copied and pasted into Atlantis, and have formatted headings etc. It looks OK except that each line of the text file ends in a paragraph symbol - which make any resulting ebook look MOST peculiar.
In the blog http://atlantiswordprocessor.blogspot.c ... pping.html there are instructions on how to remove spurious paragraph symbols by displaying the alternate toolbars (CNTRL CNTRL), highlighting a block of "paragraphs" and using one of the buttons to delete them all - resulting in one larger paragraph, and this works very well. (NOTE can also use CNTRL-SHFT-U to do it).
You can see where I am leading ! With some 600,000 words it will be an ENORMOUS task if I use this method.
Does anyone have any ideas as to how I may do it in an easier (quicker) way ? Any help would be much appreciated.
In the blog http://atlantiswordprocessor.blogspot.c ... pping.html there are instructions on how to remove spurious paragraph symbols by displaying the alternate toolbars (CNTRL CNTRL), highlighting a block of "paragraphs" and using one of the buttons to delete them all - resulting in one larger paragraph, and this works very well. (NOTE can also use CNTRL-SHFT-U to do it).
You can see where I am leading ! With some 600,000 words it will be an ENORMOUS task if I use this method.
Does anyone have any ideas as to how I may do it in an easier (quicker) way ? Any help would be much appreciated.
What do you want?
What exactly do you wat to do? Do you want to change the whole document into one single paragraph? You can use the «Find/Replace» function and replace all the paragraph end marks with something else – or just remove them. If the problem is double paragraph end marks, you can replace the pairs with single paragraph end marks.
(I tried it with a document of 908531 words. It works. It takes some time, but you can go watch TV – like I did – or have lunch in the meanwhile.)
This option is one of the reasons I miss Atlantis at work. I haven't found this in Word – which is the only word processor they let us use.
(I tried it with a document of 908531 words. It works. It takes some time, but you can go watch TV – like I did – or have lunch in the meanwhile.)
This option is one of the reasons I miss Atlantis at work. I haven't found this in Word – which is the only word processor they let us use.
Faulty paragraph lines end in a single paragraph symbol. Each "proper" paragraph also ends in a blank line and paragraph marker.Robert wrote:Are the logical paragraphs in your text separated by more than one empty paragraph end mark?
Are the faulty paragraph lines separated by one single empty paragraph end mark?
i.e.
Line 1 (paragraph marker)
Line 2 (paragraph marker)
Line 3. (paragraph marker) - this the end of the "proper" paragraph.
empty paragraph marker
I want it to be
Line 1 Line 2 Line 3. - end of corrected paragraph
paragraph marker
and so on throughout the document.
I think a script of some sort that will check all line endings to make sure that they end in a full stop etc and then join if they don't, otherwise taking them to be a correct (albeit one line) paragraphs might do the trick, but I can't imagine what software to use nor how to prepare such a script.
Hi,
As I understand things, the “proper” paragraphs are separated from each other by one single empty paragraph end mark. This is good because in a way there is a “proper” paragraph separator (empty paragraph end mark) that we can use. I tried the following “method”. It is a bit convoluted, but it works and it will spare you a lot of manual work. Note that it will work only on the chapter texts themselves. You’ll have to exclude the headings from the operation. You could select each chapter text first and apply the following method to the selection only, but it might be more practical to copy each chapter text to another document (why not use the Clippy Bank?), then paste the final text back into the original document.
Here are the steps:
1. Place the insertion point at the start of the chapter text.
2. Press Ctrl+H.
3. Enter “^p^p” in the “Find” box, and “^p999999^p” in the “Replace With” box. Click “Replace All”. You should end up with “999999+paragraph end mark” as the separator for the “proper” paragraphs. Note that I assume that “999999” is absent from the original (target) text. Also note that “^p” is the code for a paragraph end mark. You can enter such a code automatically if you click on the “Add special symbol” button next to the “Find” and Replace With boxes, and choose “Paragraph End Mark”.
4. Place the insertion point at the start of the chapter text again.
5. Press Ctrl+H.
6. Enter “^p” (Paragraph End Mark) in the “Find” box, and a single “space character” in the “Replace With” box (use the keyboard “space bar”). Click “Replace All” in the “Ctrl+H” dialog. You should end up with a jumble of collapsed text, where “999999+paragraph end mark” has been replaced with “space character+999999+space character”.
7. Place the insertion point at the start of the chapter text again.
8. Press Ctrl+H.
9. Enter “(space character)+999999+(space character)” in the “Find” box, and “^p” (Paragraph End Mark) in the “Replace With” box. Click “Replace All”. You should end up with “proper” paragraphs in a “proper” text.
HTH.
Cheers,
Robert
As I understand things, the “proper” paragraphs are separated from each other by one single empty paragraph end mark. This is good because in a way there is a “proper” paragraph separator (empty paragraph end mark) that we can use. I tried the following “method”. It is a bit convoluted, but it works and it will spare you a lot of manual work. Note that it will work only on the chapter texts themselves. You’ll have to exclude the headings from the operation. You could select each chapter text first and apply the following method to the selection only, but it might be more practical to copy each chapter text to another document (why not use the Clippy Bank?), then paste the final text back into the original document.
Here are the steps:
1. Place the insertion point at the start of the chapter text.
2. Press Ctrl+H.
3. Enter “^p^p” in the “Find” box, and “^p999999^p” in the “Replace With” box. Click “Replace All”. You should end up with “999999+paragraph end mark” as the separator for the “proper” paragraphs. Note that I assume that “999999” is absent from the original (target) text. Also note that “^p” is the code for a paragraph end mark. You can enter such a code automatically if you click on the “Add special symbol” button next to the “Find” and Replace With boxes, and choose “Paragraph End Mark”.
4. Place the insertion point at the start of the chapter text again.
5. Press Ctrl+H.
6. Enter “^p” (Paragraph End Mark) in the “Find” box, and a single “space character” in the “Replace With” box (use the keyboard “space bar”). Click “Replace All” in the “Ctrl+H” dialog. You should end up with a jumble of collapsed text, where “999999+paragraph end mark” has been replaced with “space character+999999+space character”.
7. Place the insertion point at the start of the chapter text again.
8. Press Ctrl+H.
9. Enter “(space character)+999999+(space character)” in the “Find” box, and “^p” (Paragraph End Mark) in the “Replace With” box. Click “Replace All”. You should end up with “proper” paragraphs in a “proper” text.
HTH.
Cheers,
Robert
Hi gtatler,
If I understand you correctly, the file you originate from is a clean text file, and you want to join lines into paragraphs untill a single empty paragraph marker is met.
You may have solved your problem by now, but else I think I may have a solution for you.
I have been working quite a lot with text files and for many years I have used the text editor "NoteTab Pro". You don't have to buy the program, you can get "NoteTab Lite" for free (as it is freeware) and use this little neat program. You can get it here:
http://www.notetab.com/downloads.php
Load your text file in "NoteTab Lite" and mark all text (ctrl + A), then press (ctrl + J), and the text will be formatted in paragraphs as you wanted. Now save the text file (ctrl + S) or as a new file (with another filename) (shift + ctrl + S).
I am not using the freeware version, so the keyboard shortcuts may be different from "NoteTab Pro" which I use.
You have to know that "NoteTab is NOT a wordprocessor like "Atlantis", it is only a text editor, that only can work with text. You have to load the text file afterwards to change the text into bold, italics, headings and whatever else you need to make the text into a Ebook in "Atlantis".
Hope this will be of any help.
-
Torben
If I understand you correctly, the file you originate from is a clean text file, and you want to join lines into paragraphs untill a single empty paragraph marker is met.
You may have solved your problem by now, but else I think I may have a solution for you.
I have been working quite a lot with text files and for many years I have used the text editor "NoteTab Pro". You don't have to buy the program, you can get "NoteTab Lite" for free (as it is freeware) and use this little neat program. You can get it here:
http://www.notetab.com/downloads.php
Load your text file in "NoteTab Lite" and mark all text (ctrl + A), then press (ctrl + J), and the text will be formatted in paragraphs as you wanted. Now save the text file (ctrl + S) or as a new file (with another filename) (shift + ctrl + S).
I am not using the freeware version, so the keyboard shortcuts may be different from "NoteTab Pro" which I use.
You have to know that "NoteTab is NOT a wordprocessor like "Atlantis", it is only a text editor, that only can work with text. You have to load the text file afterwards to change the text into bold, italics, headings and whatever else you need to make the text into a Ebook in "Atlantis".
Hope this will be of any help.
-
Torben
I am most grateful for all of these suggestions, and have tried out each one.
HOWEVER, although it seems that "correct" paragraphs are delimited by blank line paragraphs, as mentioned in my initial post, I think there may be some other spurious character there as each method joins the COMPLETE text into one gigantic paragraph.
It rather looks as if I shall have to do a manual join using Atlantis CTRL-SHFT-U - which seems to work in the majority of cases. What a bore ! Such a shame that the file is so large - I can see that it will take rather a long time.
Anyway, thanks for all the efforts to help.
HOWEVER, although it seems that "correct" paragraphs are delimited by blank line paragraphs, as mentioned in my initial post, I think there may be some other spurious character there as each method joins the COMPLETE text into one gigantic paragraph.
It rather looks as if I shall have to do a manual join using Atlantis CTRL-SHFT-U - which seems to work in the majority of cases. What a bore ! Such a shame that the file is so large - I can see that it will take rather a long time.
Anyway, thanks for all the efforts to help.
Could you email a fragment of your document or the entire document to support@AtlantisWordProcessor.com?
Most likely, what you take for paragraph end marks are line breaks. In which case, you should replace all line breaks with paragraph end marks first. Simply place the insertion point at the start of the document, then press Ctrl+H. Enter “^l” in the Find box, “^p” in the Replace With box. Click “Replace All”.
When all “lines” are ended with paragraph end marks, you can apply Ctrl+A, then Ctrl+Shift+U to the document. It should work correctly then.
When all “lines” are ended with paragraph end marks, you can apply Ctrl+A, then Ctrl+Shift+U to the document. It should work correctly then.
I am absolutely stunned ! Within less than 2 hours of sending the file to admin I received back a perfectly formatted document !admin wrote:Thanks for the document file. The corrected version has been emailed to you. Is it OK?
I have been a member of several forums over the past few years, and although I have generally found them to be most helpful, I have NEVER experienced such fantastic assistance.
Well done, and thanks again - not just to admin, but all who endeavoured to assist me.