lout-users
[Top][All Lists]
Advanced

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

Problem with @Filter


From: Luis Melendez Aganzo
Subject: Problem with @Filter
Date: Mon, 10 Oct 1994 18:51:15 +0100 (MET)

Hi all!

I have a problem with @Filter that I think is related to the
implementation, so maybe the question should go directly to
Jeff, but as he must be very busy, I post it to this group
to see if anybody knows the solution. 

I am working in a mechanism for adapting a plain text file
to some formats automatically. For use LOUT, I have the 
following:

################# File: mydefs ##############################

def @Sh  right ParamX
{
  def @Filter{ sh @FilterIn "|" txt2lout > @FilterOut }
  ParamX
}

def @IncludeTxt right ParamX
{
  def @Filter{ cat `cat @FilterIn ` "|" txt2lout > @FilterOut }
  ParamX
}
################# File End ##################################


################# File: myfile ##############################
@SysInclude{doc}
@Doc @Text @Begin

# .... Some preface

@IncludeTxt { @Sh{echo $TXTFILE} } 
address@hidden $TXTFILE}}
address@hidden { @Sh{echo $TXTFILE}}

@End @Text
################# File End ##################################

The idea is to do something like:

    setenv TXTFILE one_plain_txt_file
    lout myfile

(txt2lout is my own program to transform a plain text so that it
can be incorporated directly to LOUT. It can be downloaded from
ftp://ftp.uco.es/luism/txt2lout.c)

In the definition of @Sh I filter the output through txt2lout
so that something like '/home/cc0luism/file' is accepted by LOUT.

The two commented lines in 'myfile' are there to show that 
those lines do exactly what they are supposed to do, but the
'@IncludeTxt ...' line, doesn't work.

Also, if I include in 'mydefs' the definition:

  def @Getnv right ParamX
  {
    @Sh{echo ParamX}
  }

It doesn't work.

Does anybody know why is it so ?

-- 
+-----------------------------------^---------------------------------------+
| Luis Melendez                     ^  email: address@hidden        |
| Centro de Calculo Cientifico      ^  Tlf: 957-218119                      |
| Universidad de Cordoba (SPAIN)    ^  MIME Spoken Here                     |
| gopher://gopher.uco.es            ^  http://www.uco.es                    |
+-----------------------------------^---------------------------------------+


reply via email to

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