[Top][All Lists]

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

Re: [Bug-apl] )DUMP now creates valid HTML files

From: Louis Chretien
Subject: Re: [Bug-apl] )DUMP now creates valid HTML files
Date: Thu, 28 May 2015 08:01:55 -0400

An excellent idea, but instead of modifying the existing behavior of )DUMP, maybe you could have created an )HDUMP or )HTMLDUMP command, so as not to change existing workflows?

Just a thought…

On 2015-05-27, at 09:15, Juergen Sauermann <address@hidden> wrote:


I have changed GNU APL to accept (=ignore) HTML tags at the beginning of an .apl file.

I also changed the )DUMP command to create a few HTML tags at the beginning and at the end of an .apl file.

The net effect of these changes is that .apl files can now be published on the web or directly displayed as APL code
in browsers without  any changes. Once opened in the browser (say: firefox) you can also generate PDF or Postscript files
(using File→Print→Print-to-file in firefox).

For this to work, I had to (HTML-) comment out the first line of the .apl file. It used to be something like:

    #!/usr/local/bin/apl --script

but is now something like:

    <!-- #!/usr/local/bin/apl --script -->

So if you want to invoke an .apl file directly (i.e. without starting GNU APL and )LOADing the file) or as CGI script then you need
to remove the <!-- and -->  (and, as before, change the file permission to 'executable').

SVN 632

/// Jürgen

Louis Chrétien

reply via email to

[Prev in Thread] Current Thread [Next in Thread]