OpenOffice.org Forum at OOoForum.orgThe OpenOffice.org Forum
 
 [Home]   [FAQ]   [Search]   [Memberlist]   [Usergroups]   [Register
 [Profile]   [Log in to check your private messages]   [Log in

Finding & Replacing Special Characters \ Default Margins

 
Post new topic   Reply to topic    OOoForum.org Forum Index -> OpenOffice.org Writer
View previous topic :: View next topic  
Author Message
ThingInTheCoat
Newbie
Newbie


Joined: 27 Nov 2006
Posts: 4

PostPosted: Mon Nov 27, 2006 8:07 am    Post subject: Finding & Replacing Special Characters \ Default Margins Reply with quote

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 eer 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
View user's profile Send private message
JohnV
Administrator
Administrator


Joined: 07 Mar 2003
Posts: 9183
Location: Lexinton, Kentucky, USA

PostPosted: Mon Nov 27, 2006 9:07 am    Post subject: Reply with quote

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
View user's profile Send private message
BillP
Super User
Super User


Joined: 07 Jan 2006
Posts: 2703

PostPosted: Mon Nov 27, 2006 9:23 am    Post subject: Reply with quote

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
View user's profile Send private message
Bhikkhu Pesala
Super User
Super User


Joined: 23 Aug 2005
Posts: 2324
Location: Seven Kings, London, UK

PostPosted: Mon Nov 27, 2006 9:47 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
BillP
Super User
Super User


Joined: 07 Jan 2006
Posts: 2703

PostPosted: Mon Nov 27, 2006 2:49 pm    Post subject: Reply with quote

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
View user's profile Send private message
JohnV
Administrator
Administrator


Joined: 07 Mar 2003
Posts: 9183
Location: Lexinton, Kentucky, USA

PostPosted: Mon Nov 27, 2006 3:18 pm    Post subject: Reply with quote

BillP,

Nice solution! Sure beats my Find & Replace offering.
Back to top
View user's profile Send private message
Bhikkhu Pesala
Super User
Super User


Joined: 23 Aug 2005
Posts: 2324
Location: Seven Kings, London, UK

PostPosted: Mon Nov 27, 2006 3:24 pm    Post subject: Reply with quote

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. Confused Shocked Rolling Eyes
_________________
Fonts * Opera * Oo Tips * FAQ * New Forum
Oo 2.3.1 * Win XP
Back to top
View user's profile Send private message Visit poster's website
BillP
Super User
Super User


Joined: 07 Jan 2006
Posts: 2703

PostPosted: Mon Nov 27, 2006 3:58 pm    Post subject: Reply with quote

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
View user's profile Send private message
foxcole
Super User
Super User


Joined: 19 Jan 2006
Posts: 2771
Location: Minneapolis, Minnesota

PostPosted: Mon Nov 27, 2006 4:35 pm    Post subject: Reply with quote

It also helps to be sure the font you're working with supports curly quotes. Not all of them do, so it won't matter if you replace the straight quotes.
_________________
Cheers!
---Fox

WinXP Pro SP2, OOo Portable 2.3.1, OOo local 2.4 RC4
New OpenOffice forum: http://user.services.openoffice.org/en/forum/
Manuals: http://documentation.openoffice.org/manuals/index.html
Back to top
View user's profile Send private message AIM Address Yahoo Messenger
ThingInTheCoat
Newbie
Newbie


Joined: 27 Nov 2006
Posts: 4

PostPosted: Mon Nov 27, 2006 5:07 pm    Post subject: Finding & Replacing Special Characters [SOLVED] Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    OOoForum.org Forum Index -> OpenOffice.org Writer All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group