contents   index   previous   next



Untagging a Character Style

 

Now let’s look at the third line:

\<\@Emphasis\>(*)\<\@\$p\>|Emphasis+a

 

Again, the backslashes tell Word that characters following them are to be used not as wildcards but as characters. Once you understand that, the codes are more understandable.

So, first we have \<\@Emphasis\>, which will find our starting tag of <@Emphasis>.

After that is a parenthetical wildcard group of an asterisk, (*), which tells Word to find zero or more characters until it comes to the final tag, <@$p>. (Note that character styles need both beginning and ending tags.) Again, RazzmaTag will tell Word to use any text the grouped wildcard finds as the Replace string. (RazzmaTag automatically does this with the “Find What Expression” wildcard, \1, although you won’t actually see this wildcard in your master list.)

Next is <\@\$p\>, which will find our ending Quark tag of <@$p>.

That’s followed by the pipe symbol, which separates the Find and Replace strings.

After that comes Emphasis, which tells RazzmaTag to use the Emphasis character style to format the text that is found.

Finally, there’s the +a code, which tells RazzmaTag to format the text with a character style.

Please note that if you’re untagging a text file, custom character styles won’t even exist in the document. In that case, RazzmaTag will create the styles for you, formatted in blue so you can easily spot text formatted with those styles. Then you can modify the styles or apply a different template to the document (being sure to update styles) so the formatting will look the way you want it to.