🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.framemaker
Article #21872

Re: MIF Variable Replacement

#21872
From: Thomas Michanek
Date: Tue, 21 Jan 2003 18:27
34 lines
2499 bytes
If it's just a simple replace of "$docid$" with another string in
two files, I would go for converting those 2 files to MIF and
perform a replace directly. If you have other "$docid$" strings
that should not be replaced, you must of course be careful to
only replace the correct ones, and this might be a bit tricky,
depending on how much Perl or other text processing tools you know.

> If the MIF template is better, do I need to include all of the
> Pgf lines or just:

Interesting question. I have actually never used MIF snippets
for import purposes. But, I guess that when FM is told to open
the MIF file (via fmbatch), it must create a complete paragraph
format, and the parts you haven't specified will be "replaced"
by some defaults, which are then imported into your files.
So I think you need to specify the entire paragraph tag.

> Also, regarding converting the MIF template to FM before importing
formats;
> is there a reason it may be better to do so (less potential for errors)?

Not really. However, by converting to a FM file you will see
what FM adds to the MIF file when opening it.

NOTE: there's another way to import MIF files, by using File>Import>File
(not Formats), importing by copy, and specifying a MIF file. In that case,
only the actual MIF statements are imported, nothing else. The MIF file
is never opened by FM and nothing is added to the file. You can do all
sorts of magic this way, BUT you cannot import files via fmbatch...


--
/Thomas Michanek, FrameMaker/UNIX/MIF expert
http://go.to/framers/
Technical Details
Message-ID: <0A7E2A1263FA9301FF289987B2FD5C44@in.WebX.la2eafNXanI>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-06!sn-xit-09!supernews.com!news.maxwell.syr.edu!fr.clara.net!heighliner.fr.clara.net!newsfeed01.sul.t-online.de!t-online.de!WebX
References: <1de76b5d.-1@WebX.la2eafNXanI> <1de76b5d.14@WebX.la2eafNXanI>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: fd315,5f4bb3931c4af8b2
X-Google-Attributes: gidfd315,public
X-Google-ArrivalTime: 2003-01-21 11:10:01 PST
From: "Thomas Michanek" <thomas.michanek@telia.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-06!sn-xit-09!supernews.com!news.maxwell.syr.edu!fr.clara.net!heighliner.fr.clara.net!newsfeed01.sul.t-online.de!t-online.de!WebX
Newsgroups: adobe.framemaker
Subject: Re: MIF Variable Replacement
Message-ID: <0A7E2A1263FA9301FF289987B2FD5C44@in.WebX.la2eafNXanI>
Date: Tue, 21 Jan 2003 10:27:43 -0800
References: <1de76b5d.-1@WebX.la2eafNXanI> <1de76b5d.14@WebX.la2eafNXanI>
Lines: 35
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.50.4522.1200
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit