Article View: adobe.framemaker
Article #21998Re: MIF Variable Replacement
From: Jennifer Olker
Date: Fri, 17 Jan 2003 18:33
Date: Fri, 17 Jan 2003 18:33
8 lines
1832 bytes
1832 bytes
When I posted it duplicated every time I hit "Reload" on Netscape. Trust me--it was not on purpose. : ) I am using vi and was writing a regex for the search/replace but wanted to check for known solutions before I spent a lot of time trying to reinvent something if I didn't have to. I am open to other suggestions if working with MIFs is not the best option. This has to be accomplished on UNIX (Solaris) with a perl script though. Can you do a traditional "import formats" from the command line as opposed to search/replace in each file? The general project is to write a perl script that will take a FM template (book) and replace the variable definitions (based on a form users fill out) and also replace a $docid$ string in 4 paragraph tags numbering (with the docid from the form). A few template-only files need to be removed and the book regenerated so we were converting to MIF (or starting with a directory of MIF files), removing the template-only files, replacing the variable defs and $docid$ strings, and converting back to FM (regenerating the book to update numbering). Thanks, Jennifer
Technical Details
Message-ID:
<1de76b5d.3@WebX.la2eafNXanI>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!newsfeed.news2me.com!newsfeed.freenet.de!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!WebXReferences:
<1de76b5d.-1@WebX.la2eafNXanI>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fd315,1e4a97ead2a55469 X-Google-Attributes: gidfd315,public X-Google-ArrivalTime: 2003-01-17 10:37:45 PST From: "Jennifer Olker" <jennifer@nms.fnc.fujitsu.com> Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!newsfeed.news2me.com!newsfeed.freenet.de!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!WebX Newsgroups: adobe.framemaker Subject: Re: MIF Variable Replacement Message-ID: <1de76b5d.3@WebX.la2eafNXanI> Date: Fri, 17 Jan 2003 10:33:33 -0800 References: <1de76b5d.-1@WebX.la2eafNXanI> Lines: 22 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit