Omni Systems, Inc.

  

Mif2Go User's Guide, Version 55

  

Valid HTML 4.01!

 

Made with Mif2Go

34 Automating Mif2Go conversions > 34.8 Renaming output files for automated systems > 34.8.4 Using paragraph formats to name output files > 34.8.4.5 Specifying a file-name prefix or suffix


34.8.4.5 Specifying a file-name prefix or suffix

You can specify a prefix, a suffix, or both, for format-based names of HTML output files:

[StyleFilePrefix]

; doc format = prefix to use (if any) for file name in para content

parafmt=splitfileprefix

[StyleFileSuffix]

; doc format = suffix to use (if any) for file name in para content

parafmt=splitfilesuffix

If you are splitting files at Heading1 paragraphs, for example, you could specify the following properties:

[HTMLParaStyles]

Heading1=Split Title FileName

[StyleFilePrefix]

Heading1=ug

[StyleFileSuffix]

Heading1=03

If a given instance of Heading1 consists of the text “Getting Started”, the resulting HTML filename would be ugGettingStarted03.htm.

You can use macros and macro variables (see §28.1 Defining and invoking macros) in sections [StyleFilePrefix] and [StyleFileSuffix].

For example, suppose you have defined a FrameMaker variable called BkNum in your document, and you want to use the value of that variable as a file-name prefix:

[StyleFilePrefix]

Heading1=<$$BkNum>

This works because FrameMaker user variables can be employed as Mif2Go user variables; see §28.3.1 Creating and invoking macro variables. To make the content conform to file-name requirements, see §34.8.4.2 Including FrameMaker variables in output file names.

You can also use predefined macro variables; for example, <$$_objectid>, which has the advantage of guaranteeing that each file name will be unique. See §29.8 Identifying markers with variable <$$_objectid>.



34 Automating Mif2Go conversions > 34.8 Renaming output files for automated systems > 34.8.4 Using paragraph formats to name output files > 34.8.4.5 Specifying a file-name prefix or suffix