Possible to Convert Style Markup into Actual MSWord Style?

D

dannywg

s it possible to convert a text manuscript that contains text
descriptions of styles (hand coded/marked up) into actual Microsoft
Word styles? A simple example of this would be <H1> for a range of
text where H1 =Helvetica bold. I would really appreciate any
suggestions.

Danny
 
S

Suzanne S. Barnhill

It might required two or more passes for each style, one to apply the style
and one to remove each code, but it could be done. You'll need to use
wildcards, but your "Find what" text would be basically:

\<beginning code\>*\<ending code\>^13

and your "Replace with" text would be:

^&

formatted with Heading 1 style.

If the ending code is, say <\H1>, then your "Find what" text will have to
escape the slash as well as the angle brackets, thus:

\<\\H1\>

If the beginning and ending codes are the same, then adding ^13 (paragraph
mark) at the end of the "Find what" text should still confine the found text
to a given paragraph.

For more on using wildcards, see
http://www.gmayor.com/replace_using_wildcards.htm

--
Suzanne S. Barnhill
Microsoft MVP (Word)
Words into Type
Fairhope, Alabama USA

Email cannot be acknowledged; please post all follow-ups to the newsgroup so
all may benefit.
 

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