Two paragraph styles applied to the same paragraph

W

WPalmer

Version: 2008
Operating System: Mac OS X 10.5 (Leopard)
Processor: Intel

Word 2008 shows the applied paragraph style changes midway through the paragraph.

Word 2004 shows that there is a character style applied midway through the paragraph.

Our applescript system ends up deleting the affected text. I have at least 2 files showing this behavior.

I'm more than willing to test anything the MVPs or MS could suggest.

Will Palmer
 
J

John McGhie

Eeeewww....

You are running into the "Partially applied style" bug that has been
designed into Word.

Later versions of Word have a thing called a "Linked Style". This was the
most mind-bendingly STUPID thing Microsoft has ever done.

Needless to say, it was done on the Windows side. Needless to say, they did
it because Lawyers wanted it. But it makes a complete mockery of the entire
concept of styles. This particular horror was introduced in Word 2002, and
Mac BU has had to cope with it ever since.

What happens is this:

1) You have a document with some styles in it. Some of these styles are
Paragraph styles.

2) You have a user who does not know how to use styles properly.

3) The user selects "part" of a paragraph and applies a paragraph style.

4) What used to happen was that Word would ignore the selection and apply
the paragraph style to the whole paragraph. Lawyers hated it (they have
never understood computers, let alone word-processing, or styles).

5) So Microsoft came up with this shriekingly funny (embarrassing!)
work-around.

6) When the user does this, Word creates a NEW style. It gives it the same
name as the paragraph style, and LINKS it to the paragraph style. Into this
new style, which is in fact a Character style, Word copies the Character
properties of the original style (by reference). This new spawn of the
devil is known as a "Linked Style".

7) It is nearly impossible in VBA to discover that you are looking at a
linked style. It has the same name, and the Type indicators for both
"Paragraph" and "Character" are true!

You CAN sort this out in the code. I can give you a VBA solution, but I
can't convert it into AppleScript for you.

What I would recommend is that you train your users NOT to do this. Give
them proper Character styles to use when they want inline format changes.

In Word 2003/7 you can disable Linked Styles. This function is not
available in Mac Word. However, if you turn off "Keep track of formatting"
in the Edit preferences, Word is much less likely to create linked styles.
It can still use them if they already exist in the document, but it should
not create any.

Hope this helps


Also,

Saving down to rtf or docx and reopening does not fix the issue.

--

Don't wait for your answer, click here: http://www.word.mvps.org/

Please reply in the group. Please do NOT email me unless I ask you to.

John McGhie, Microsoft MVP, Word and Word:Mac
Nhulunbuy, NT, Australia. mailto:[email protected]
 
W

WPalmer

John,

Thank you for the explanation. I'd appreciate it if you could send me the VBA solution.

Unfortunately my users can't be trained. I work for a publishing company, so between authors, acquiring editors, copy editors, project editors, email, ftp, cd archives... it's amazing the files open at all.

I'll submit feedback to the MacBU to reinstate the 2004 behavior, because when the Formatting Palette shows 2 different paragraph styles for the same paragraph, I start to doubt my own sanity.

Thanks again,

Will
 
J

Jeff Wiseman

John said:
Eeeewww....

You are running into the "Partially applied style" bug that has been
designed into Word.

Later versions of Word have a thing called a "Linked Style". This was the
most mind-bendingly STUPID thing Microsoft has ever done.

Needless to say, it was done on the Windows side. Needless to say, they did
it because Lawyers wanted it. But it makes a complete mockery of the entire
concept of styles. This particular horror was introduced in Word 2002, and
Mac BU has had to cope with it ever since.


Aww, come on John. Tell us how you REALLY feel
:)

What I would recommend is that you train your users NOT to do this. Give
them proper Character styles to use when they want inline format changes.


And show them how to turn off the dumb Style Area Width default
value of 0 (set to .8-1 inch). That way they can even more easily
select an entire paragraph by clicking on the style name.


John, why would someone want to use this rather warped style
application ability? Don't you already more or less have it with
character styles?
 
J

John McGhie

Hi Jeff:

Aww, come on John. Tell us how you REALLY feel
:)

I can't do that. There's a Naught Word filter on this group that would
delete the message if I told you how I really felt! :)
John, why would someone want to use this rather warped style
application ability? Don't you already more or less have it with
character styles?

I "think" the original thinking was "Why do styles need a "Type"? This was
an attempt to create a "Style" that would apply to everything.

Which would not have been a bad idea. But this "transition" version is just
mega-stupidity that proves that the designer simply does not understand
either the concept or purpose of styles.

Cheers

--

Don't wait for your answer, click here: http://www.word.mvps.org/

Please reply in the group. Please do NOT email me unless I ask you to.

John McGhie, Microsoft MVP, Word and Word:Mac
Nhulunbuy, NT, Australia. mailto:[email protected]
 
J

John McGhie

No problems: Send me an email so I get your real email address and I will
dig it up for you in a week or so when I get home.

Cheers


John,

Thank you for the explanation. I'd appreciate it if you could send me the VBA
solution.

Unfortunately my users can't be trained. I work for a publishing company, so
between authors, acquiring editors, copy editors, project editors, email, ftp,
cd archives... it's amazing the files open at all.

I'll submit feedback to the MacBU to reinstate the 2004 behavior, because when
the Formatting Palette shows 2 different paragraph styles for the same
paragraph, I start to doubt my own sanity.

Thanks again,

Will

--

Don't wait for your answer, click here: http://www.word.mvps.org/

Please reply in the group. Please do NOT email me unless I ask you to.

John McGhie, Microsoft MVP, Word and Word:Mac
Nhulunbuy, NT, Australia. mailto:[email protected]
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top