[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

[MacPerl] Perl script to translate PageMaker tags



I've written a Perl script that translates tagged text from PageMaker into
HTML.  If anyone's interested, let me know, and I'll e-mail you the script.

Basic idea is to save a story from pagemaker as text, with tags.  This puts
PageMaker's paragraph tag at the first of each paragraph.

My script uses a translation table that lets you define what HTML tags you
want to start, end, and surround a given paragraph style with.  You can
also remove leading bullets from the text for HTML lists.  This is WAY BETTER
than the HTML tools built into PageMaker.

e.g., PageMaker:
<body text>some stuff
<bullet>* Item 1
<bullet * Item 2
<Subhead>Next Topic

turns into:
some stuff
<P>
<UL>
<LI>Item 1
<LI>Item 2
</UL>
<P><B>Next Topic</B><BR>

I'm kind of a beginner, so my script may not be the best, but it works and
it sure as hell saves me a lot of time.

J.




-->John Springer    <http://www.scruznet.com/~springer>
        Still the Penultimate Mac bigot.