| View previous topic :: View next topic |
| Author |
Message |
ThingInTheCoat Newbie

Joined: 27 Nov 2006 Posts: 4
|
Posted: Mon Nov 27, 2006 8:07 am Post subject: Finding & Replacing Special Characters \ Default Margins |
|
|
I'm often having to import files written entirely in Notepad or Wordpad, so they lack the special formatting that the higher end Word Processors are capable of (e.g. automatic hyphens and quotation marks). Is there any way to have OpenOffice Writer scan and automatically replace the plain quotation marks with their more aesthetically-pleasing special character brethren, so that a phrase such as "The end is e'er near," would appear as “The end is e’er near”? Microsoft Word can do this with a simple Find & Replace function, but OpenOffice cannot, it seems.
Also, how can I change the default margin values from 0.79"? I cannot find a way in any of the options screens, and manually changing it to 1.25" every time I create a new document can get tedious at best.
It may just be my own stupidity, but I can't find any of these issues discussed in the online documentation. |
|
| Back to top |
|
 |
JohnV Administrator

Joined: 07 Mar 2003 Posts: 8995 Location: Lexinton, Kentucky, USA
|
Posted: Mon Nov 27, 2006 9:07 am Post subject: |
|
|
Find & Replace:
In the imported document type the beginning and end curly quotes, and in the Replace box tap the spacebar then copy & paste the beginning curly in. Search for spacebar”. Copy & paste end curly quote in the Replace box and just search for “.
Margins:
When you open a file with a .txt extension OOo will always use its internal default template which has the margins you don’t want. This will happen without regard to what your default template looks like. The solution is to copy and paste the contents of the Notepad doc into your template with margins set as desired. |
|
| Back to top |
|
 |
BillP Super User

Joined: 07 Jan 2006 Posts: 2702
|
Posted: Mon Nov 27, 2006 9:23 am Post subject: |
|
|
| The quotes can be replaced in existing documents with Format > Autoformat > Apply. For this to work, the option "Replace straight quotes with custom quotes" must be turned on in Tools >Autocorrect > Options. The custom quotes are defined in Tools > Autocorrect > Custom Quotes. |
|
| Back to top |
|
 |
Bhikkhu Pesala Super User


Joined: 23 Aug 2005 Posts: 2324 Location: Seven Kings, London, UK
|
Posted: Mon Nov 27, 2006 9:47 am Post subject: |
|
|
| BillP wrote: | | The quotes can be replaced in existing documents with Format > Autoformat > Apply. For this to work, the option "Replace straight quotes with custom quotes" must be turned on in Tools >Autocorrect > Options. The custom quotes are defined in Tools > Autocorrect > Custom Quotes. |
This never seems to work for me. _________________ Fonts * Opera * Oo Tips * FAQ * New Forum
Oo 2.3.1 * Win XP |
|
| Back to top |
|
 |
BillP Super User

Joined: 07 Jan 2006 Posts: 2702
|
Posted: Mon Nov 27, 2006 2:49 pm Post subject: |
|
|
| Bhikkhu Pesala wrote: | | BillP wrote: | | The quotes can be replaced in existing documents with Format > Autoformat > Apply. For this to work, the option "Replace straight quotes with custom quotes" must be turned on in Tools >Autocorrect > Options. The custom quotes are defined in Tools > Autocorrect > Custom Quotes. |
This never seems to work for me. |
Oops. I forgot that newly opened text documents have the Preformatted Text style applied to all paragraphs, but Autoformat only works if the Default paragraph style is applied. Select all the text and apply the Default style before using Format > Autoformat > Apply. |
|
| Back to top |
|
 |
JohnV Administrator

Joined: 07 Mar 2003 Posts: 8995 Location: Lexinton, Kentucky, USA
|
Posted: Mon Nov 27, 2006 3:18 pm Post subject: |
|
|
BillP,
Nice solution! Sure beats my Find & Replace offering. |
|
| Back to top |
|
 |
Bhikkhu Pesala Super User


Joined: 23 Aug 2005 Posts: 2324 Location: Seven Kings, London, UK
|
Posted: Mon Nov 27, 2006 3:24 pm Post subject: |
|
|
That works, but confuses me even more. I pasted this text ("The end is e'er near,") and apply body text style, but nothing happens. I try Heading 1 style, and nothing happens. I try default style and it works.  _________________ Fonts * Opera * Oo Tips * FAQ * New Forum
Oo 2.3.1 * Win XP |
|
| Back to top |
|
 |
BillP Super User

Joined: 07 Jan 2006 Posts: 2702
|
Posted: Mon Nov 27, 2006 3:58 pm Post subject: |
|
|
Applying changes with Format > Autoformat >Apply is limited to paragraphs with the Default paragraph style. It has no effect on paragraphs with any other style. The only documentation I have found for this behavior is in this issue:
http://qa.openoffice.org/issues/show_bug.cgi?id=12203 |
|
| Back to top |
|
 |
foxcole Super User


Joined: 19 Jan 2006 Posts: 2771 Location: Minneapolis, Minnesota
|
|
| Back to top |
|
 |
ThingInTheCoat Newbie

Joined: 27 Nov 2006 Posts: 4
|
Posted: Mon Nov 27, 2006 5:07 pm Post subject: Finding & Replacing Special Characters [SOLVED] |
|
|
| Hmm. Well, the Apply Format thingy works like a charm in respect to my problem, but it ends up destroying any and all formatting I've set up already. Oh well. Anyway, thanks. |
|
| Back to top |
|
 |
|