Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

FrameMaker and Perl

by murugu (Curate)
on Feb 20, 2004 at 10:25 UTC ( [id://330507]=perlquestion: print w/replies, xml ) Need Help??

murugu has asked for the wisdom of the Perl Monks concerning the following question:

Hi Monks,

Im currently working on FDK(FrameMaker Developers Kit) for automating typesetting jobs. The FDK API fully consist of C functions and structures. I want to do some find and replace options and text editing operations which require Regular Expressions. Can I use Perl Interpreter along with the FDK API. IF possible means how?

I want ur suggestions very quickly.

Thanks in advance.

Murugesan

Replies are listed 'Best First'.
Re: FrameMaker and Perl
by tbone1 (Monsignor) on Feb 20, 2004 at 14:21 UTC

    Given that the API is C functions and structures, you might be better off using C's regular expression package. Contrary to common perception, there areregular expressions available for C, though of course they aren't as robust or flexible as Perl's regular expressions. Still, they may be enough for what you need. Check out libgen.h, regcmp, and regex if you are using Unix. If you can find a copy of David A. Curry's UNIX Systems Programming for SVR4 from O'Reilly, it has a small discussion of them. I'm sure they exist on other OSes, but my knowledge of those systems is limited.

    --
    tbone1, YAPS (Yet Another Perl Schlub)
    And remember, if he succeeds, so what.
    - Chick McGee

Re: FrameMaker and Perl
by mirod (Canon) on Feb 20, 2004 at 15:00 UTC

    I haven't used the FDK, but usually the way I process Frame files is by using Perl on the MIF. MIF is very parsable, especially if you trust Frame to insert comments when it closes a wrapping element (I do).

Re: FrameMaker and Perl
by asarih (Hermit) on Feb 20, 2004 at 22:46 UTC

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://330507]
Approved by Skeeve
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (3)
As of 2024-04-25 17:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found