A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Word » General Discussion
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Word applies direct format on File open



 
 
Thread Tools Display Modes
  #1  
Old November 24th, 2005, 04:19 AM posted to microsoft.public.word.docmanagement
external usenet poster
 
Posts: n/a
Default Word applies direct format on File open

Puzzle #1: With Word 2003, when I open a file using the "Plain text" file
conversion option, Word assigns the "Plain Text" style to each paragraph,
which is not surprising; but it also applies direct font formatting
(confirmed via Reveal Formatting) so that the font is Courier New even
though I've redefined the "Plain Text" style to use Times Roman.

Puzzle #2: In Word 2000, I used to routinely open .HTM files with the "Text
file" conversion option. This option is no longer presented as an option in
Word 2003 when I select an .HTM file to open. (It *is* presented as an
option when I select a .TXT file.)


  #2  
Old November 24th, 2005, 06:41 AM posted to microsoft.public.word.docmanagement
external usenet poster
 
Posts: n/a
Default Word applies direct format on File open

1. Plain text cannot use proportional fonts like TNR, so you are not going
to succeed with this.
2. You should be able to use the old filter (which was removed for security
considerations). The text filter is linked from the downloads page of my web
site. Whether it will do what you want is another matter entirely. You may
also need the old htm filter. I don't have a link for that one, but if you
still have access to the Word 2000 equipped machine .......

--

Graham Mayor - Word MVP

My web site www.gmayor.com
Word MVP web site http://word.mvps.org



Uriel wrote:
Puzzle #1: With Word 2003, when I open a file using the "Plain text"
file conversion option, Word assigns the "Plain Text" style to each
paragraph, which is not surprising; but it also applies direct font
formatting (confirmed via Reveal Formatting) so that the font is
Courier New even though I've redefined the "Plain Text" style to use
Times Roman.

Puzzle #2: In Word 2000, I used to routinely open .HTM files with the
"Text file" conversion option. This option is no longer presented as
an option in Word 2003 when I select an .HTM file to open. (It *is*
presented as an option when I select a .TXT file.)



  #3  
Old November 24th, 2005, 01:58 PM posted to microsoft.public.word.docmanagement
external usenet poster
 
Posts: n/a
Default Word applies direct format on File open

Sorry, but I don't understand your points. Maybe I should be clearer that I
*want* to open the .HTM as plaintext -- i.e. I want to see ihtml
formatting codes/i. (I want to see "i" rather than have Word show the
text formatted as italics.)

You say "Plain text cannot use proportional fonts like TNR." But Word
permits me to modify the "Plain Text" style to use TNR.

Also don't know what you mean by text filter. Is my installation missing a
component? As mentioned, "Text file" is offered as a conversion option when
I select a .TXT file in the File/Open dialogue.


"Graham Mayor" wrote in message
...
1. Plain text cannot use proportional fonts like TNR, so you are not going
to succeed with this.
2. You should be able to use the old filter (which was removed for security
considerations). The text filter is linked from the downloads page of my web
site. Whether it will do what you want is another matter entirely. You may
also need the old htm filter. I don't have a link for that one, but if you
still have access to the Word 2000 equipped machine .......

--

Graham Mayor - Word MVP

My web site www.gmayor.com
Word MVP web site http://word.mvps.org



Uriel wrote:
Puzzle #1: With Word 2003, when I open a file using the "Plain text"
file conversion option, Word assigns the "Plain Text" style to each
paragraph, which is not surprising; but it also applies direct font
formatting (confirmed via Reveal Formatting) so that the font is
Courier New even though I've redefined the "Plain Text" style to use
Times Roman.

Puzzle #2: In Word 2000, I used to routinely open .HTM files with the
"Text file" conversion option. This option is no longer presented as
an option in Word 2003 when I select an .HTM file to open. (It *is*
presented as an option when I select a .TXT file.)




  #4  
Old November 25th, 2005, 06:46 AM posted to microsoft.public.word.docmanagement
external usenet poster
 
Posts: n/a
Default Word applies direct format on File open

Plain text is a document format containing only characters in the ASCII
character set. If you open an HTML document with the plain text filter
(select the document in the file open window and from the down arrow
alongside the Open button select 'open with Word'. You will be presented
with a bunch of file open options. Select 'plain text'. This will open the
document in the manner you have described.

Word will let you format that document with any font you like, but if you
save it as plain text all that formatting will be lost, because plain text
doesn't support that. If you change the plain text style to use Times Roman
font then select all the document and press CTRL+Space to apply it to the
document. However the above proviso remains, the plain text format does not
support proportional fonts.

--

Graham Mayor - Word MVP

My web site www.gmayor.com
Word MVP web site http://word.mvps.org


Uriel wrote:
Sorry, but I don't understand your points. Maybe I should be clearer
that I *want* to open the .HTM as plaintext -- i.e. I want to see
ihtml formatting codes/i. (I want to see "i" rather than have
Word show the text formatted as italics.)

You say "Plain text cannot use proportional fonts like TNR." But Word
permits me to modify the "Plain Text" style to use TNR.

Also don't know what you mean by text filter. Is my installation
missing a component? As mentioned, "Text file" is offered as a
conversion option when I select a .TXT file in the File/Open dialogue.


"Graham Mayor" wrote in message
...
1. Plain text cannot use proportional fonts like TNR, so you are not
going to succeed with this.
2. You should be able to use the old filter (which was removed for
security considerations). The text filter is linked from the
downloads page of my web site. Whether it will do what you want is
another matter entirely. You may also need the old htm filter. I
don't have a link for that one, but if you still have access to the
Word 2000 equipped machine .......


Uriel wrote:
Puzzle #1: With Word 2003, when I open a file using the "Plain text"
file conversion option, Word assigns the "Plain Text" style to each
paragraph, which is not surprising; but it also applies direct font
formatting (confirmed via Reveal Formatting) so that the font is
Courier New even though I've redefined the "Plain Text" style to use
Times Roman.

Puzzle #2: In Word 2000, I used to routinely open .HTM files with the
"Text file" conversion option. This option is no longer presented as
an option in Word 2003 when I select an .HTM file to open. (It *is*
presented as an option when I select a .TXT file.)



  #5  
Old November 25th, 2005, 07:53 PM posted to microsoft.public.word.docmanagement
external usenet poster
 
Posts: n/a
Default Word applies direct format on File open

Graham, I'm afraid you're still missing my points.

Select 'plain text'. This will open the document in the manner you have
described.


I know that. I did that. But the problem that follows is described in
"Puzzle #1" in my earlier post (below).

Word will let you format that document with any font you like, but if you
save it as plain text all that formatting will be lost, because plain text
doesn't support that.


I know that. No problem. I have no intention of applying formatting to an
..HTM file that I open, edit, and save as plain text.

If you change the plain text style to use Times Roman font then select all
the document and press CTRL+Space to apply it to the document.


But why is this necessary? Why does Word apply direct font formatting
immediately after opening an .HTM file with conversion option "plain text"?

the above proviso remains, the plain text format does not support
proportional fonts.


You said this before. And I answered: Word permits defining the "plain text"
style to use TNR. So what do you mean by "does not support"?

select the document in the file open window and from the down arrow
alongside the Open button select 'open with Word'.


Why would I do that?? It's exactly the same as simply clicking the Open
button directly.

"Graham Mayor" wrote in message
...
Plain text is a document format containing only characters in the ASCII
character set. If you open an HTML document with the plain text filter
(select the document in the file open window and from the down arrow
alongside the Open button select 'open with Word'. You will be presented
with a bunch of file open options. Select 'plain text'. This will open the
document in the manner you have described.

Word will let you format that document with any font you like, but if you
save it as plain text all that formatting will be lost, because plain text
doesn't support that. If you change the plain text style to use Times Roman
font then select all the document and press CTRL+Space to apply it to the
document. However the above proviso remains, the plain text format does not
support proportional fonts.

--

Graham Mayor - Word MVP

My web site www.gmayor.com
Word MVP web site http://word.mvps.org


Uriel wrote:
Sorry, but I don't understand your points. Maybe I should be clearer
that I *want* to open the .HTM as plaintext -- i.e. I want to see
ihtml formatting codes/i. (I want to see "i" rather than have
Word show the text formatted as italics.)

You say "Plain text cannot use proportional fonts like TNR." But Word
permits me to modify the "Plain Text" style to use TNR.

Also don't know what you mean by text filter. Is my installation
missing a component? As mentioned, "Text file" is offered as a
conversion option when I select a .TXT file in the File/Open dialogue.


"Graham Mayor" wrote in message
...
1. Plain text cannot use proportional fonts like TNR, so you are not
going to succeed with this.
2. You should be able to use the old filter (which was removed for
security considerations). The text filter is linked from the
downloads page of my web site. Whether it will do what you want is
another matter entirely. You may also need the old htm filter. I
don't have a link for that one, but if you still have access to the
Word 2000 equipped machine .......


Uriel wrote:
Puzzle #1: With Word 2003, when I open a file using the "Plain text"
file conversion option, Word assigns the "Plain Text" style to each
paragraph, which is not surprising; but it also applies direct font
formatting (confirmed via Reveal Formatting) so that the font is
Courier New even though I've redefined the "Plain Text" style to use
Times Roman.

Puzzle #2: In Word 2000, I used to routinely open .HTM files with the
"Text file" conversion option. This option is no longer presented as
an option in Word 2003 when I select an .HTM file to open. (It *is*
presented as an option when I select a .TXT file.)




  #6  
Old November 25th, 2005, 09:20 PM posted to microsoft.public.word.docmanagement
external usenet poster
 
Posts: n/a
Default Word applies direct format on File open

When you changed the font of the Plain Text style, did you save the change
to Normal.dot?

--
Suzanne S. Barnhill
Microsoft MVP (Word)
Words into Type
Fairhope, Alabama USA
Word MVP FAQ site: http://word.mvps.org
Email cannot be acknowledged; please post all follow-ups to the newsgroup so
all may benefit.

"Uriel" wrote in message
...
Graham, I'm afraid you're still missing my points.

Select 'plain text'. This will open the document in the manner you have
described.


I know that. I did that. But the problem that follows is described in
"Puzzle #1" in my earlier post (below).

Word will let you format that document with any font you like, but if you
save it as plain text all that formatting will be lost, because plain

text
doesn't support that.


I know that. No problem. I have no intention of applying formatting to an
.HTM file that I open, edit, and save as plain text.

If you change the plain text style to use Times Roman font then select

all
the document and press CTRL+Space to apply it to the document.


But why is this necessary? Why does Word apply direct font formatting
immediately after opening an .HTM file with conversion option "plain

text"?

the above proviso remains, the plain text format does not support
proportional fonts.


You said this before. And I answered: Word permits defining the "plain

text"
style to use TNR. So what do you mean by "does not support"?

select the document in the file open window and from the down arrow
alongside the Open button select 'open with Word'.


Why would I do that?? It's exactly the same as simply clicking the Open
button directly.

"Graham Mayor" wrote in message
...
Plain text is a document format containing only characters in the ASCII
character set. If you open an HTML document with the plain text filter
(select the document in the file open window and from the down arrow
alongside the Open button select 'open with Word'. You will be presented
with a bunch of file open options. Select 'plain text'. This will open the
document in the manner you have described.

Word will let you format that document with any font you like, but if you
save it as plain text all that formatting will be lost, because plain text
doesn't support that. If you change the plain text style to use Times

Roman
font then select all the document and press CTRL+Space to apply it to the
document. However the above proviso remains, the plain text format does

not
support proportional fonts.

--

Graham Mayor - Word MVP

My web site www.gmayor.com
Word MVP web site http://word.mvps.org


Uriel wrote:
Sorry, but I don't understand your points. Maybe I should be clearer
that I *want* to open the .HTM as plaintext -- i.e. I want to see
ihtml formatting codes/i. (I want to see "i" rather than have
Word show the text formatted as italics.)

You say "Plain text cannot use proportional fonts like TNR." But Word
permits me to modify the "Plain Text" style to use TNR.

Also don't know what you mean by text filter. Is my installation
missing a component? As mentioned, "Text file" is offered as a
conversion option when I select a .TXT file in the File/Open dialogue.


"Graham Mayor" wrote in message
...
1. Plain text cannot use proportional fonts like TNR, so you are not
going to succeed with this.
2. You should be able to use the old filter (which was removed for
security considerations). The text filter is linked from the
downloads page of my web site. Whether it will do what you want is
another matter entirely. You may also need the old htm filter. I
don't have a link for that one, but if you still have access to the
Word 2000 equipped machine .......


Uriel wrote:
Puzzle #1: With Word 2003, when I open a file using the "Plain text"
file conversion option, Word assigns the "Plain Text" style to each
paragraph, which is not surprising; but it also applies direct font
formatting (confirmed via Reveal Formatting) so that the font is
Courier New even though I've redefined the "Plain Text" style to use
Times Roman.

Puzzle #2: In Word 2000, I used to routinely open .HTM files with the
"Text file" conversion option. This option is no longer presented as
an option in Word 2003 when I select an .HTM file to open. (It *is*
presented as an option when I select a .TXT file.)





  #7  
Old November 26th, 2005, 04:24 AM posted to microsoft.public.word.docmanagement
external usenet poster
 
Posts: n/a
Default Word applies direct format on File open

(Shudder) I was prepared to be embarrassed there. But no, I checked, and I
had defined the Plain Text style in Normal.dot to use TNR.

I've just checked and the same thing I described happens when opening .TXT
files as well as .HTM files. With Word 2003, you should be able to reproduce
the same behavior.

"Suzanne S. Barnhill" wrote in message
...
When you changed the font of the Plain Text style, did you save the change
to Normal.dot?

--
Suzanne S. Barnhill
Microsoft MVP (Word)
Words into Type
Fairhope, Alabama USA
Word MVP FAQ site: http://word.mvps.org
Email cannot be acknowledged; please post all follow-ups to the newsgroup so
all may benefit.

"Uriel" wrote in message
...
Graham, I'm afraid you're still missing my points.

Select 'plain text'. This will open the document in the manner you have
described.


I know that. I did that. But the problem that follows is described in
"Puzzle #1" in my earlier post (below).

Word will let you format that document with any font you like, but if you
save it as plain text all that formatting will be lost, because plain

text
doesn't support that.


I know that. No problem. I have no intention of applying formatting to an
.HTM file that I open, edit, and save as plain text.

If you change the plain text style to use Times Roman font then select

all
the document and press CTRL+Space to apply it to the document.


But why is this necessary? Why does Word apply direct font formatting
immediately after opening an .HTM file with conversion option "plain

text"?

the above proviso remains, the plain text format does not support
proportional fonts.


You said this before. And I answered: Word permits defining the "plain

text"
style to use TNR. So what do you mean by "does not support"?

select the document in the file open window and from the down arrow
alongside the Open button select 'open with Word'.


Why would I do that?? It's exactly the same as simply clicking the Open
button directly.

"Graham Mayor" wrote in message
...
Plain text is a document format containing only characters in the ASCII
character set. If you open an HTML document with the plain text filter
(select the document in the file open window and from the down arrow
alongside the Open button select 'open with Word'. You will be presented
with a bunch of file open options. Select 'plain text'. This will open the
document in the manner you have described.

Word will let you format that document with any font you like, but if you
save it as plain text all that formatting will be lost, because plain text
doesn't support that. If you change the plain text style to use Times

Roman
font then select all the document and press CTRL+Space to apply it to the
document. However the above proviso remains, the plain text format does

not
support proportional fonts.

--

Graham Mayor - Word MVP

My web site www.gmayor.com
Word MVP web site http://word.mvps.org


Uriel wrote:
Sorry, but I don't understand your points. Maybe I should be clearer
that I *want* to open the .HTM as plaintext -- i.e. I want to see
ihtml formatting codes/i. (I want to see "i" rather than have
Word show the text formatted as italics.)

You say "Plain text cannot use proportional fonts like TNR." But Word
permits me to modify the "Plain Text" style to use TNR.

Also don't know what you mean by text filter. Is my installation
missing a component? As mentioned, "Text file" is offered as a
conversion option when I select a .TXT file in the File/Open dialogue.


"Graham Mayor" wrote in message
...
1. Plain text cannot use proportional fonts like TNR, so you are not
going to succeed with this.
2. You should be able to use the old filter (which was removed for
security considerations). The text filter is linked from the
downloads page of my web site. Whether it will do what you want is
another matter entirely. You may also need the old htm filter. I
don't have a link for that one, but if you still have access to the
Word 2000 equipped machine .......


Uriel wrote:
Puzzle #1: With Word 2003, when I open a file using the "Plain text"
file conversion option, Word assigns the "Plain Text" style to each
paragraph, which is not surprising; but it also applies direct font
formatting (confirmed via Reveal Formatting) so that the font is
Courier New even though I've redefined the "Plain Text" style to use
Times Roman.

Puzzle #2: In Word 2000, I used to routinely open .HTM files with the
"Text file" conversion option. This option is no longer presented as
an option in Word 2003 when I select an .HTM file to open. (It *is*
presented as an option when I select a .TXT file.)






  #8  
Old November 26th, 2005, 07:16 AM posted to microsoft.public.word.docmanagement
external usenet poster
 
Posts: n/a
Default Word applies direct format on File open

Uriel wrote:
Graham, I'm afraid you're still missing my points.


OK I'll concede that

Select 'plain text'. This will open the document in the manner you
have described.


I know that. I did that. But the problem that follows is described in
"Puzzle #1" in my earlier post (below).


OK

Word will let you format that document with any font you like, but
if you save it as plain text all that formatting will be lost,
because plain text doesn't support that.


I know that. No problem. I have no intention of applying formatting
to an .HTM file that I open, edit, and save as plain text.


If you open an HTM file as text then change the formatting to TNR, you have
indeed changed the formatting to use a proportional font. This is no problem
at all if you then intend saving as a Word document, but plain text does not
support font information of any kind. It stores only the underlying text.

If you change the plain text style to use Times Roman font then
select all the document and press CTRL+Space to apply it to the
document.


But why is this necessary? Why does Word apply direct font formatting
immediately after opening an .HTM file with conversion option "plain
text"?


You would have to ask Microsoft's programmers, but it is presumably because
plain text documents do not contain proportional font information. By
overriding the default font in the plain text style (which as you have
indicated you cannot do) Word substitutes a monospaced font - courier new.
You can apply the changes you have made to the style by using the CTRL+A
CTRL+Space if that is what you want. There does not seem to be any way round
this - and frankly for a plain text document I for one wouldn't want it
changed.

the above proviso remains, the plain text format does not support
proportional fonts.


You said this before. And I answered: Word permits defining the
"plain text" style to use TNR. So what do you mean by "does not
support"?


Answered (I hope) above

select the document in the file open window and from the down arrow
alongside the Open button select 'open with Word'.


Why would I do that?? It's exactly the same as simply clicking the
Open button directly.


That rather depends on what you default settings are for opening htm files
and what filters you have present. If opening directly works for you, then
that's fine.

As others have reported before you, Word is not the ideal tool for editing
html files, which I presume this is what lies behind your query. If you find
it such a big deal that you cannot edit your plain text files in Word using
a proportional font without forcing the changes in the style as described,
then the following macro attached to a toolbar button will do it for you at
a click.

Sub PlaintoTNR()
Selection.WholeStory
Selection.Font.Reset
Selection.HomeKey Unit:=wdStory
End Sub

http://www.gmayor.com/installing_macro.htm

--

Graham Mayor - Word MVP

My web site www.gmayor.com
Word MVP web site http://word.mvps.org


"Graham Mayor" wrote in message
...
Plain text is a document format containing only characters in the
ASCII character set. If you open an HTML document with the plain text
filter (select the document in the file open window and from the down
arrow alongside the Open button select 'open with Word'. You will be
presented with a bunch of file open options. Select 'plain text'.
This will open the document in the manner you have described.

Word will let you format that document with any font you like, but if
you save it as plain text all that formatting will be lost, because
plain text doesn't support that. If you change the plain text style
to use Times Roman font then select all the document and press
CTRL+Space to apply it to the document. However the above proviso
remains, the plain text format does not support proportional fonts.


Uriel wrote:
Sorry, but I don't understand your points. Maybe I should be clearer
that I *want* to open the .HTM as plaintext -- i.e. I want to see
ihtml formatting codes/i. (I want to see "i" rather than have
Word show the text formatted as italics.)

You say "Plain text cannot use proportional fonts like TNR." But Word
permits me to modify the "Plain Text" style to use TNR.

Also don't know what you mean by text filter. Is my installation
missing a component? As mentioned, "Text file" is offered as a
conversion option when I select a .TXT file in the File/Open
dialogue.


"Graham Mayor" wrote in message
...
1. Plain text cannot use proportional fonts like TNR, so you are not
going to succeed with this.
2. You should be able to use the old filter (which was removed for
security considerations). The text filter is linked from the
downloads page of my web site. Whether it will do what you want is
another matter entirely. You may also need the old htm filter. I
don't have a link for that one, but if you still have access to the
Word 2000 equipped machine .......


Uriel wrote:
Puzzle #1: With Word 2003, when I open a file using the "Plain text"
file conversion option, Word assigns the "Plain Text" style to each
paragraph, which is not surprising; but it also applies direct font
formatting (confirmed via Reveal Formatting) so that the font is
Courier New even though I've redefined the "Plain Text" style to use
Times Roman.

Puzzle #2: In Word 2000, I used to routinely open .HTM files with
the "Text file" conversion option. This option is no longer
presented as an option in Word 2003 when I select an .HTM file to
open. (It *is* presented as an option when I select a .TXT file.)



  #9  
Old November 26th, 2005, 04:59 PM posted to microsoft.public.word.docmanagement
external usenet poster
 
Posts: n/a
Default Word applies direct format on File open

Graham, I'm afraid you're still missing my points.

OK I'll concede that


Graham, I hate to say this, but you're STILL missing the points. Are you
actually reading my posts? It's very kind of you to spend time posting
responses to queries, but the time would be better spent if you first
figured out what the queries actually say.

If you open an HTM file as text then change the formatting to TNR, you have
indeed changed the formatting


Graham: I DID NOT DO THAT.

By overriding the default font in the plain text style (which as you have
indicated you cannot do)


I *DID* do it. As I've reported previously. The plain text style in my
Normal.dot is defined to use TNR.

As others have reported before you, Word is not the ideal tool for editing
html files


Really. I don't know what their objections might have been. Word 2000 always
suited me perfectly fine for editing html files.

frankly for a plain text document I for one wouldn't want it changed.


What can I say? We have different preferences. This is an inquiry about
buggy, inconsistent behavior in Word 2003, and whether there's a way to
avoid it.

"Graham Mayor" wrote in message
...
Uriel wrote:
Graham, I'm afraid you're still missing my points.


OK I'll concede that

Select 'plain text'. This will open the document in the manner you
have described.


I know that. I did that. But the problem that follows is described in
"Puzzle #1" in my earlier post (below).


OK

Word will let you format that document with any font you like, but
if you save it as plain text all that formatting will be lost,
because plain text doesn't support that.


I know that. No problem. I have no intention of applying formatting
to an .HTM file that I open, edit, and save as plain text.


If you open an HTM file as text then change the formatting to TNR, you have
indeed changed the formatting to use a proportional font. This is no problem
at all if you then intend saving as a Word document, but plain text does not
support font information of any kind. It stores only the underlying text.

If you change the plain text style to use Times Roman font then
select all the document and press CTRL+Space to apply it to the
document.


But why is this necessary? Why does Word apply direct font formatting
immediately after opening an .HTM file with conversion option "plain
text"?


You would have to ask Microsoft's programmers, but it is presumably because
plain text documents do not contain proportional font information. By
overriding the default font in the plain text style (which as you have
indicated you cannot do) Word substitutes a monospaced font - courier new.
You can apply the changes you have made to the style by using the CTRL+A
CTRL+Space if that is what you want. There does not seem to be any way round
this - and frankly for a plain text document I for one wouldn't want it
changed.

the above proviso remains, the plain text format does not support
proportional fonts.


You said this before. And I answered: Word permits defining the
"plain text" style to use TNR. So what do you mean by "does not
support"?


Answered (I hope) above

select the document in the file open window and from the down arrow
alongside the Open button select 'open with Word'.


Why would I do that?? It's exactly the same as simply clicking the
Open button directly.


That rather depends on what you default settings are for opening htm files
and what filters you have present. If opening directly works for you, then
that's fine.

As others have reported before you, Word is not the ideal tool for editing
html files, which I presume this is what lies behind your query. If you find
it such a big deal that you cannot edit your plain text files in Word using
a proportional font without forcing the changes in the style as described,
then the following macro attached to a toolbar button will do it for you at
a click.

Sub PlaintoTNR()
Selection.WholeStory
Selection.Font.Reset
Selection.HomeKey Unit:=wdStory
End Sub

http://www.gmayor.com/installing_macro.htm

--

Graham Mayor - Word MVP

My web site www.gmayor.com
Word MVP web site http://word.mvps.org


"Graham Mayor" wrote in message
...
Plain text is a document format containing only characters in the
ASCII character set. If you open an HTML document with the plain text
filter (select the document in the file open window and from the down
arrow alongside the Open button select 'open with Word'. You will be
presented with a bunch of file open options. Select 'plain text'.
This will open the document in the manner you have described.

Word will let you format that document with any font you like, but if
you save it as plain text all that formatting will be lost, because
plain text doesn't support that. If you change the plain text style
to use Times Roman font then select all the document and press
CTRL+Space to apply it to the document. However the above proviso
remains, the plain text format does not support proportional fonts.


Uriel wrote:
Sorry, but I don't understand your points. Maybe I should be clearer
that I *want* to open the .HTM as plaintext -- i.e. I want to see
ihtml formatting codes/i. (I want to see "i" rather than have
Word show the text formatted as italics.)

You say "Plain text cannot use proportional fonts like TNR." But Word
permits me to modify the "Plain Text" style to use TNR.

Also don't know what you mean by text filter. Is my installation
missing a component? As mentioned, "Text file" is offered as a
conversion option when I select a .TXT file in the File/Open
dialogue.


"Graham Mayor" wrote in message
...
1. Plain text cannot use proportional fonts like TNR, so you are not
going to succeed with this.
2. You should be able to use the old filter (which was removed for
security considerations). The text filter is linked from the
downloads page of my web site. Whether it will do what you want is
another matter entirely. You may also need the old htm filter. I
don't have a link for that one, but if you still have access to the
Word 2000 equipped machine .......


Uriel wrote:
Puzzle #1: With Word 2003, when I open a file using the "Plain text"
file conversion option, Word assigns the "Plain Text" style to each
paragraph, which is not surprising; but it also applies direct font
formatting (confirmed via Reveal Formatting) so that the font is
Courier New even though I've redefined the "Plain Text" style to use
Times Roman.

Puzzle #2: In Word 2000, I used to routinely open .HTM files with
the "Text file" conversion option. This option is no longer
presented as an option in Word 2003 when I select an .HTM file to
open. (It *is* presented as an option when I select a .TXT file.)




  #10  
Old November 26th, 2005, 05:19 PM posted to microsoft.public.word.docmanagement
external usenet poster
 
Posts: n/a
Default Word applies direct format on File open

I think the issue here is that the formatting for the Plain Text style is
supplied in this case not by Normal.dot but by whatever template is attached
to the file you open, and it's difficult to say what that might be in the
case of a .TXT or .HTM file.

I have thought of a workaround that might accomplish what you want: If you
are willing to edit in Normal view (which should be satisfactory for a
plain-text document), you can check the box for "Draft font" on the View tab
of Tools | Options and select TNR as the font to use.

--
Suzanne S. Barnhill
Microsoft MVP (Word)
Words into Type
Fairhope, Alabama USA
Word MVP FAQ site: http://word.mvps.org
Email cannot be acknowledged; please post all follow-ups to the newsgroup so
all may benefit.

"Uriel" wrote in message
...
Graham, I'm afraid you're still missing my points.


OK I'll concede that


Graham, I hate to say this, but you're STILL missing the points. Are you
actually reading my posts? It's very kind of you to spend time posting
responses to queries, but the time would be better spent if you first
figured out what the queries actually say.

If you open an HTM file as text then change the formatting to TNR, you

have
indeed changed the formatting


Graham: I DID NOT DO THAT.

By overriding the default font in the plain text style (which as you have
indicated you cannot do)


I *DID* do it. As I've reported previously. The plain text style in my
Normal.dot is defined to use TNR.

As others have reported before you, Word is not the ideal tool for

editing
html files


Really. I don't know what their objections might have been. Word 2000

always
suited me perfectly fine for editing html files.

frankly for a plain text document I for one wouldn't want it changed.


What can I say? We have different preferences. This is an inquiry about
buggy, inconsistent behavior in Word 2003, and whether there's a way to
avoid it.

"Graham Mayor" wrote in message
...
Uriel wrote:
Graham, I'm afraid you're still missing my points.


OK I'll concede that

Select 'plain text'. This will open the document in the manner you
have described.


I know that. I did that. But the problem that follows is described in
"Puzzle #1" in my earlier post (below).


OK

Word will let you format that document with any font you like, but
if you save it as plain text all that formatting will be lost,
because plain text doesn't support that.


I know that. No problem. I have no intention of applying formatting
to an .HTM file that I open, edit, and save as plain text.


If you open an HTM file as text then change the formatting to TNR, you

have
indeed changed the formatting to use a proportional font. This is no

problem
at all if you then intend saving as a Word document, but plain text does

not
support font information of any kind. It stores only the underlying text.

If you change the plain text style to use Times Roman font then
select all the document and press CTRL+Space to apply it to the
document.


But why is this necessary? Why does Word apply direct font formatting
immediately after opening an .HTM file with conversion option "plain
text"?


You would have to ask Microsoft's programmers, but it is presumably

because
plain text documents do not contain proportional font information. By
overriding the default font in the plain text style (which as you have
indicated you cannot do) Word substitutes a monospaced font - courier new.
You can apply the changes you have made to the style by using the CTRL+A
CTRL+Space if that is what you want. There does not seem to be any way

round
this - and frankly for a plain text document I for one wouldn't want it
changed.

the above proviso remains, the plain text format does not support
proportional fonts.


You said this before. And I answered: Word permits defining the
"plain text" style to use TNR. So what do you mean by "does not
support"?


Answered (I hope) above

select the document in the file open window and from the down arrow
alongside the Open button select 'open with Word'.


Why would I do that?? It's exactly the same as simply clicking the
Open button directly.


That rather depends on what you default settings are for opening htm files
and what filters you have present. If opening directly works for you, then
that's fine.

As others have reported before you, Word is not the ideal tool for editing
html files, which I presume this is what lies behind your query. If you

find
it such a big deal that you cannot edit your plain text files in Word

using
a proportional font without forcing the changes in the style as described,
then the following macro attached to a toolbar button will do it for you

at
a click.

Sub PlaintoTNR()
Selection.WholeStory
Selection.Font.Reset
Selection.HomeKey Unit:=wdStory
End Sub

http://www.gmayor.com/installing_macro.htm

--

Graham Mayor - Word MVP

My web site www.gmayor.com
Word MVP web site http://word.mvps.org


"Graham Mayor" wrote in message
...
Plain text is a document format containing only characters in the
ASCII character set. If you open an HTML document with the plain text
filter (select the document in the file open window and from the down
arrow alongside the Open button select 'open with Word'. You will be
presented with a bunch of file open options. Select 'plain text'.
This will open the document in the manner you have described.

Word will let you format that document with any font you like, but if
you save it as plain text all that formatting will be lost, because
plain text doesn't support that. If you change the plain text style
to use Times Roman font then select all the document and press
CTRL+Space to apply it to the document. However the above proviso
remains, the plain text format does not support proportional fonts.


Uriel wrote:
Sorry, but I don't understand your points. Maybe I should be clearer
that I *want* to open the .HTM as plaintext -- i.e. I want to see
ihtml formatting codes/i. (I want to see "i" rather than have
Word show the text formatted as italics.)

You say "Plain text cannot use proportional fonts like TNR." But Word
permits me to modify the "Plain Text" style to use TNR.

Also don't know what you mean by text filter. Is my installation
missing a component? As mentioned, "Text file" is offered as a
conversion option when I select a .TXT file in the File/Open
dialogue.


"Graham Mayor" wrote in message
...
1. Plain text cannot use proportional fonts like TNR, so you are not
going to succeed with this.
2. You should be able to use the old filter (which was removed for
security considerations). The text filter is linked from the
downloads page of my web site. Whether it will do what you want is
another matter entirely. You may also need the old htm filter. I
don't have a link for that one, but if you still have access to the
Word 2000 equipped machine .......


Uriel wrote:
Puzzle #1: With Word 2003, when I open a file using the "Plain text"
file conversion option, Word assigns the "Plain Text" style to each
paragraph, which is not surprising; but it also applies direct font
formatting (confirmed via Reveal Formatting) so that the font is
Courier New even though I've redefined the "Plain Text" style to use
Times Roman.

Puzzle #2: In Word 2000, I used to routinely open .HTM files with
the "Text file" conversion option. This option is no longer
presented as an option in Word 2003 when I select an .HTM file to
open. (It *is* presented as an option when I select a .TXT file.)





 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
The WordPerfect "Reveal Codes" method is so much easier to use. Torden General Discussion 6 April 19th, 2010 07:50 PM
odt documents in Word brucefryer General Discussion 6 September 25th, 2007 06:24 PM
word and wordperfect mail merges slgcms Mailmerge 2 September 27th, 2005 02:13 PM
You do not have exclusive access... ERROR Robin General Discussion 1 July 6th, 2004 01:18 AM
changes to normal.dot Dianah New Users 7 June 17th, 2004 01:19 AM


All times are GMT +1. The time now is 06:52 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.