texi2html-bug
[Top][All Lists]
Advanced

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

Re: [Texi2html-bug] Obtaining the node name in element_file_name?


From: Patrice Dumas
Subject: Re: [Texi2html-bug] Obtaining the node name in element_file_name?
Date: Fri, 8 Aug 2008 15:35:41 +0200
User-agent: Mutt/1.5.18 (2008-05-17)

On Mon, Aug 04, 2008 at 07:43:31PM +0200, Reinhold Kainhofer wrote:
> Am Montag, 4. August 2008 schrieb Reinhold Kainhofer:
> > Unfortunately, I can't find any hook, which is called between the
> > assignment of THISDOC{'input_file_name'} and the call to rearrange_elements
> > (I don't care much about the element_file_name calls for special nodes,
> > which happen immediately after the 'input_file_name' assignment).
> 
> Well, I now found the command init handlers, so I'm misusing the 
> @Texi2HTML::Config::command_handler_init array to force texi2html to call my 
> own handler function before parsing the texi file. Is this a misuse of the 
> command_handler_init or is it supposed to be used for such things? 
> It just feels so different from the other paradigms used to tweak texi2html...

It is done exactly for that use. It is originally taken from the
latex2html part that I wanted to get out of the main processing.

Do you think that this interface is badly done and should be done
otherwise? It is documented in 'Bypassing normal formatting'.


As a side note, I am not sure that there is really a paradigm for 
texi2html tweaking... It is very ad-hoc, and I certainly didn't designed 
anything consciously when I added to the already existing interface done 
by Olaf.

It may be interesting, however if you could explain what paradigm you
have seen, such that in the future we stick to a given style.

--
Pat




reply via email to

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