Posted: Mon Jul 23, 2007 2:16 am Post subject: Applying auto corrections to imported text
I import plain text to a doc and wish to make quotes smart. When I choose Format > autoformat > apply nothing happens. In the help it says that this should apply any auto corrections to the doc.
Autocorrect works while I'm typing, so I have the settings right for quotes.
Joined: Dec 08, 2005 Posts: 291 Location: Berlin, Germany
Posted: Tue Jul 24, 2007 4:57 am Post subject: Re: Applying auto corrections to imported text
pqb wrote:
I import plain text to a doc and wish to make quotes smart. When I choose Format > autoformat > apply nothing happens. In the help it says that this should apply any auto corrections to the doc.
I found the "cause" of the problem, and it's a bit weird.
If you open a .txt file, NeoOffice sets for all text the paragraph style to "Preformatted Text" - this prevents smart quotes, even if you change the font of the text. You have first to change the paragraph style to some other (Text body, Default) for the text, and then Format > Autoformat > Apply works for me (in both cases provided the text is selected).
And not to forget when saving to use an other file format than .txt!
Posted: Thu Jul 26, 2007 7:31 am Post subject: Re: Applying auto corrections to imported text
doctype wrote:
pqb wrote:
I import plain text to a doc and wish to make quotes smart. When I choose Format > autoformat > apply nothing happens. In the help it says that this should apply any auto corrections to the doc.
I found the "cause" of the problem, and it's a bit weird.
If you open a .txt file, NeoOffice sets for all text the paragraph style to "Preformatted Text" - this prevents smart quotes, even if you change the font of the text. You have first to change the paragraph style to some other (Text body, Default) for the text, and then Format > Autoformat > Apply works for me (in both cases provided the text is selected).
And not to forget when saving to use an other file format than .txt!
When I checked the document in question I found that the body text had the style "Text Body".
I got the text off a web page, and cut and pasted into the doc. It is plain text of course, but I did not import a .txt file.
So I tried another approach:
I have created a template file with the font I wish to use. I import text, and it is in the font etc I need. I then apply auto formatting, and it changes the quotes to smart quotes, but also the font to Times Roman.
Is there a way of making auto format only change quotes or other features, but not the font?
Auto format talks about charts, but I need something to format document text. If there were a feature to change quotes as they are imported that would be the most convenient.
Joined: Dec 08, 2005 Posts: 291 Location: Berlin, Germany
Posted: Thu Jul 26, 2007 12:06 pm Post subject: Re: Applying auto corrections to imported text
pqb wrote:
I got the text off a web page, and cut and pasted into the doc. It is plain text of course, but I did not import a .txt file.
Did you simply paste or did you use the Paste icon in the toolbar and choose "Unformatted text"? Because that way Apply Autoformat works for me. If you simply paste text from a webpage, there may be issues with formatting markers — I don't know exactly what can happen then.
pqb wrote:
I have created a template file with the font I wish to use. I import text, and it is in the font etc I need. I then apply auto formatting, and it changes the quotes to smart quotes, but also the font to Times Roman.
I think that when pasting text in certain ways (which ones I don't recall), it doesn't get a language code set, which means some of the Auto* features won't work, because they depend on knowing the language of the text in order to work. So check the language of the paragraph/pasted text, too.
Smokey _________________ "[...] whether the duck drinks hot chocolate or coffee is irrelevant." -- ovvldc and sardisson in the NeoWiki
Posted: Tue Jul 31, 2007 9:51 am Post subject: Re: Applying auto corrections to imported text
doctype wrote:
pqb wrote:
I got the text off a web page, and cut and pasted into the doc. It is plain text of course, but I did not import a .txt file.
Did you simply paste or did you use the Paste icon in the toolbar and choose "Unformatted text"? Because that way Apply Autoformat works for me. If you simply paste text from a webpage, there may be issues with formatting markers — I don't know exactly what can happen then.
pqb wrote:
I have created a template file with the font I wish to use. I import text, and it is in the font etc I need. I then apply auto formatting, and it changes the quotes to smart quotes, but also the font to Times Roman.
Odd. Which font did you use?
I tried that, but it still alters the font.
I have set the .ott page to verdana, and the plain text is shown in that font when imported. It is when I apply auto format that it changes to times.
It must be the auto format, so how do I make autoformat choose verdana, or simply leave the font alone?
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 You cannot attach files in this forum You cannot download files in this forum