Re: [Groff] soelim and file names defined in string registers

2006-08-22 Thread Tadziu Hoffmann
(it just would be nice if the `.so' request _could_ interpolate the string register value) Indeed, but I don't see how to do that properly. It *does* interpolate the string register value, but only at *troff* runtime. (Well, actually it's not the .so request that does the interpolation

Re: OK Re: [Groff] soelim and file names defined in string registers

2006-08-22 Thread Keith MARSHALL
Mike Bianchi wrote: (it just would be nice if the `.so' request _could_ interpolate the string register value) Indeed, but I don't see how to do that properly. Maybe soelim(1) could recognize that the argument is not a file name ( \ being a dead giveaway ) and simply leave the reference in

Re: OK Re: [Groff] soelim and file names defined in string registers

2006-08-22 Thread M Bianchi
On Tue, Aug 22, 2006 at 02:42:47PM +0100, Keith MARSHALL wrote: Mike Bianchi wrote: (it just would be nice if the `.so' request _could_ interpolate the string register value) Indeed, but I don't see how to do that properly. Maybe soelim(1) could recognize that the argument is not a

Re: [Groff] soelim and file names defined in string registers

2006-08-21 Thread Joerg van den Hoff
Werner LEMBERG wrote: just an idea: the problem would go away if the `.so' request could be told (by a second argument to the request) to rerun all necessary preprocessors on the sourced file before inserting it (the preprocessors could be those specified in the groff call or explicitely

Re: [Groff] soelim and file names defined in string registers

2006-08-21 Thread Werner LEMBERG
(it just would be nice if the `.so' request _could_ interpolate the string register value) Indeed, but I don't see how to do that properly. Werner ___ Groff mailing list Groff@gnu.org http://lists.gnu.org/mailman/listinfo/groff

RE: [Groff] soelim and file names defined in string registers

2006-08-18 Thread Ted Harding
On 18-Aug-06 Joerg van den Hoff wrote: hi, looking at the docs and the archives I did'nt find this: if there are preprocessor directives in a sourced file and the file name is specified in a string register in the document errors result. say I have to files `t2' and `t3' which are to be

Re: [Groff] soelim and file names defined in string registers

2006-08-18 Thread Joerg van den Hoff
(Ted Harding) wrote: On 18-Aug-06 Joerg van den Hoff wrote: hi, looking at the docs and the archives I did'nt find this: if there are preprocessor directives in a sourced file and the file name is specified in a string register in the document errors result. say I have to files `t2' and `t3'

Re: [Groff] soelim and file names defined in string registers

2006-08-18 Thread Ted Harding
On 18-Aug-06 Joerg van den Hoff wrote: [...] Ted, it does, thanks a lot. I see the problem now: `soelim' (which is the first preprocessor called anyway) silently ignores the `.so' request including the string register and that's why the `.so' survives until troff gets into gear after the

Re: [Groff] soelim and file names defined in string registers

2006-08-18 Thread Tadziu Hoffmann
I have sometimes (slightly mad idea ... ) considered (at least experimentally) re-writing relevant macros such as .PS/.PE, .TS/.TE, .EQ/.EN so that they automatically write out what occurs between the start and end to a file, run the appropriate preprocessor program on the file, and read

Re: [Groff] soelim and file names defined in string registers

2006-08-18 Thread Werner LEMBERG
just an idea: the problem would go away if the `.so' request could be told (by a second argument to the request) to rerun all necessary preprocessors on the sourced file before inserting it (the preprocessors could be those specified in the groff call or explicitely specified to the `.so'