
220
Chapter 8: Examples
The examples in this appendix show how to describe text and graphics in MIF files. (The current examples are valid
only for unstructured documents.) You can import the MIF file into an existing Adobe® FrameMaker® template, or
you can open the MIF file as a FrameMaker document. In either case, if you save the resulting document in MIF
format, you will create a complete description of the document—not just the text or graphics.
If you find any MIF statement difficult to understand, the best way to learn more is to create a sample file that uses
the statement. Use FrameMaker to edit and format a document that uses the MIF feature and then save the document
as a MIF file. Examine the MIF file with any standard text editor.
The examples in this appendix are provided online.
Text example
This example shows a simple text file and the MIF file that describes it. If you are writing a filter program to convert
text files to MIF, your program should create a similar MIF file. The following text file was created with a text editor:
A filter program translated the text file to produce the following MIF file:
<MIFFile 8.00>
# Identifies this as a MIF file.
# The macros below are used only for the second paragraph
of
# text, to illustrate how they can ease the process of
# MIF generation.
define(pr,` <Para
'
)
define(ep,` >
'
)
define(ln,`<ParaLine <String
' )
define(en,`>>
'
)
# First paragraph of text.
<Para
#
# <PgfTag> statement forces a lookup in the document’s
# Paragraph Catalog, so you don’t have to specify the
format
# in detail here.
<PgfTag `Body ' >
For FrameMaker on this platform
Look here
UNIX
$FMHOME/fminit/
language
/Samples
, where
language
is the
language in use, such as
usenglish
Windows The
samples
directory where
MIF Reference
is installed
MIF (Maker Interchange Format) is a group of statements that describe all text and
graphics understood by FrameMaker in an easily parsed, readable text file. MIF
provides a way to exchange information between FrameMaker and other applications
while preserving graphics, document structure, and format.
You can write programs that convert graphics or documents into a MIF file and then
import the MIF file into a FrameMaker document with the graphics and document
formats intact.
Содержание FRAMEMAKER 10
Страница 1: ...MIF Reference ADOBE FRAMEMAKER 10...