Omni Systems, Inc.

  

Mif2Go User's Guide, Version 55

  

Valid HTML 4.01!

 

Made with Mif2Go

4 Editing configuration files > 4.6 Using wildcards in configuration settings


4.6 Using wildcards in configuration settings

In a variable-key setting, you can apply the same value to multiple keys by substituting a wildcard “*” or “?” for all or part of the key name, as follows:

A question mark can appear anywhere in a key name, substituting for any one character; multiple question marks substitute for the same number of characters.

An asterisk can appear only at the end of a key name, substituting for one or more characters.

You can use wildcards whenever the key is a format name or an identifier, provided you have not turned off wildcard usage (see §5.1.7 Specifying how to treat cases, spaces, and wildcards). For example, to make all FrameMaker paragraphs whose format names start with Heading appear bold and centered in HTML output:

[HTMLParaStyles]

Heading*=Bold Center

You can exclude one or more key names from a group by listing the exceptions first:

[HTMLParaStyles]

Heading4=

Heading3=Bold Left

Heading*=Bold Center

z????title=Bold Right

*=Left

In this example:

No HTML style properties would apply to Heading4 paragraphs.

Heading3 paragraphs would appear left-aligned and bold in HTML.

All remaining Heading* paragraphs would be centered and bold.

All paragraphs whose format names start with z, followed by any four characters, and end with title, would be right-aligned and bold.

Paragraphs in all other formats would be left-aligned.

Mif2Go applies the first entry in a section that matches for each key name, so always put the exceptions before the general case.



4 Editing configuration files > 4.6 Using wildcards in configuration settings