> NoOp wrote: >> NoOp wrote: >> >>> Harold Drabkin wrote: >>> >>>> In Word, I am able to easily convert an asci only document into formated >>>> paragraphs by searching and replacing on "^p" for a hard return, and >>>> "^t" for a tab. ( for example, find all instances of "^p" and replace >>>> with a space, etc. >>>> >>>> I am trying to find how to do this in OpenOffice, as it is a frequent >>>> task. I've tried using the "special characters" , but I do not see >>>> anything indicating what to use for the entry. >>>> I seem to have missed something. >>>> >>>> >>>> Harold >>>> >>> http://documentation.openoffice.org/manuals/index.html >>> >>> Chapter 3 OOo2.0 Writer Guide >>> >>> Note: you can also download just the chapter if you are on a slow dialup >>> connection, see: >>> http://documentation.openoffice.org/manuals/oooauthors2/index.html >>> http://documentation.openoffice.org/manuals/oooauthors2/0203WG-WorkingWithText.pdf >>> >> >> Sorry, forgot - here is an easy mini-tutorial: >> http://www.linuxjournal.com/article/8791 >> However, please do download the OOo doc and read it & keep it handy for >> reference. >> >>
Harold, sorry for the delay in responding. When you are in the document and open Find & Replace click the "Help" button. Scroll down to "Regular Expressions" and click on the link to go to the list of regular expressions. Scroll down the table and you will find: \t Represents a tab. You can also use this expression in the Replace with box. \n Represents a line break that was inserted with the Shift+Enter key combination. To change a line break into a paragraph break, enter \n in the Search for and Replace with boxes, and then perform a search and replace. OOo uses Regular Expressions, see: http://en.wikipedia.org/wiki/Regular_expression for a good explanation. So, in the case of your example: replace all instances of ^p (MS Word terms) with a space or tab you would: Edit|Find & Replace Click More Options Tick Regular Expressions Search For: enter a dollar sign: $ Replace with: enter a space, or in the case of a tab, enter a \t Click Find, then Click Replace to test I think that someone wrote a macro to match the MS Word "Search & Replace" codes but can't recall who/where. Perhaps with a little Googling/Yahooing you can find it. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
