contents   index   previous   next

Tagging Font, Point Size, and Paragraph Formatting


In addition to bold, italic, small caps, and so on, you can find and tag certain other kinds of character formatting as well:

1. Font.

2. Point size.

3. Paragraph format (Left, Right, Center, Justified).


To tag this kind of formatting, the entry on your master list should take the following form, with its parts separated by the tilde character (which is on the upper left of most keyboards):

Font~point size~paragraph format~character format|<tag>^&<maybe a closing tag>+F


For example, you could tag text in Baskerville 16-point centered italic like this:

Baskerville~16~C~it|<Heading 2>^&+F


Let’s look at each part of that entry.

The font here is Baskerville, and you must enter its name exactly as it appears in Word’s Font dialog (Format > Font > Font). If the font name is something odd like “Kuenst480 Blk BT,” then that’s the name you’ll need to use. If you don’t want to specify a font (you want to find any font), enter “(normal text)”—including the parentheses but not the quotation marks.

Next comes a tilde to separate the font name from the point size.

That’s followed by the point size, 16, and again, you can use any point size Word can accept in the Font dialog. If you don’t want to specify a point size (you want to find any point size), enter “A” (without the quotation marks) at this position in your entry.

Next comes a tilde to separate the point size from the paragraph format.

The paragraph format here is designated by “C” for “Center.” You can specify the following kinds of paragraph formatting:

1. Left = L

2. Right = R

3. Center = C

4. Justified = J

5. Any of the above = A


Next we have the code “it” to specify italic. As before, the codes you can use are:

Bold = bo

Italic = it

Bold and italic = bi

Underline = ul

Strikethrough = st

Superscript = ss

Subscript = sb

Small caps = sc

All caps = ac


There’s also one additional code:

Any formatting = af


You should use this code if you don’t want to specify italic, bold, or other character formatting but want to find any kind of character formatting, including italic, bold, or just regular text. You cannot use this code if you’re tagging character formatting alone. For example, this entry will not work because you’ve given Word nothing specific to look for:



Finally, when finding font, point size, and paragraph format, you can specify formatting that is not bold, not italic, and so on, with these codes:

Not bold = -bo

Not italic = -it

Not bold and italic = -bi

Not underline = -ul

Not strikethrough = -st

Not superscript = -ss

Not subscript = -sb

Not small caps = -sc

Not all caps = -ac

Not any formatting (not bold, not italic—not any of the above; in other words, regular text only) = -af


Note the addition of a hyphen in front of the codes to mean “not.” Sorry, but you cannot use these codes if you’re tagging character formatting alone. For example, this entry will not work:



It also doesn’t make sense, which is why it’s not allowed.

Now back to our example, which is:

Baskerville~16~C~it|<Heading 2>^&+F


After the “Find” part of the entry comes the pipe symbol to separate our Find from our Replace.

Then comes an arbitrary (in this case) tag for Heading 2.

That’s followed by the “Find What Text” wildcard, ^&, so we’ll replace the text we find with itself after our tag.

Finally, we have the code that tells RazzmaTag to search for character formatting, +F.

Please note that you have to specify all of the items: font, point size, paragraph format, and character format. You can’t leave any of them out. For example, this entry will not work (it will be skipped) because the point size is missing:

Baskerville~C~it|<Heading 2>^&+F


This entry, which tells RazzmaTag not to search for a particular point size, will work:

Baskerville~A~C~it|<Heading 2>^&+F


Here’s an entry that searches for nothing in particular (and thus finds nothing), just for the purpose of illustration:

(normal text)~A~A~af|<NoTags>^&<\NoTags>+F


The ability to tag directly applied formatting may be RazzmaTag’s finest feature, because once that formatting is tagged, you can turn around and use RazzmaTag to turn those tags into styles! If you’ve done much editing or formatting of documents, you probably understand how important that is.