[Date Prev][Date Next]
[Thread Prev][Thread Next]
[Date Index]
[Thread Index]
[New search]
To: rnelson@xxxxxxxxxxxx, framers@xxxxxxxxx
Subject: RE: converting .fm to HTML
From: Cas Tuyn <Cas.Tuyn@xxxxxxx>
Date: Wed, 17 May 2000 13:29:03 +0200 (MET DST)
Sender: owner-framers@xxxxxxxxx
Ron, Automating this can only be done when the input is _very_ consistent. In my case there is a list of config items and tools to be used near the top of every procedure. They have unique tags. When WWP sees the "Conf" tag, it opens a table, and keeps it open for as long as there are "Conf" tags, and then closes it. Inside every "Conf" para, a regular expression searches for TABs, and replaces these with table cell definitions, even including the width for the first, second, etc column. I'll show you the trick below, but it you want to understand how it works and be able to design similar solutions, I recommend taking a course at Scriptorium, or have Sarah design this for you (worked for me!). Conf para tag in WWP: Level: Indentation: 1 Normal open: <table> Normal close: </table> Macro: <tr>$DATA["[^\t]*[^\t]+|[^\t]*$",BBAlignTable",iter];</tr> BBAlignTable BB in WWP: <td $IF_EQUAL($ITERNUMBER;,1, width=\"40\", width=\"130\">);</td> Disclaimer: It works here, but if it does not work for you, do not call me. Success, Cas Tuyn ASML ** To unsubscribe, send a message to majordomo@omsys.com ** ** with "unsubscribe framers" (no quotes) in the body. **