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: Reinhold Kainhofer
Subject: Re: [Texi2html-bug] Obtaining the node name in element_file_name?
Date: Mon, 4 Aug 2008 19:28:37 +0200
User-agent: KMail/1.9.9

Am Montag, 28. Juli 2008 schrieb Patrice Dumas:
> On Sun, Jul 20, 2008 at 02:34:45PM +0200, Reinhold Kainhofer wrote:
> > Now, a different, probably trivial question: How can I obtain the file
> > path of the input ,texi file?
>
> Actually it is not easy since it is not exported. The basename is
> exported but not the full name. I'll correct that soon.

Thanks, that works fine, but now I'm apparently missing some point to hook in 
before the element_file_name is called. As you know, I'm having an external 
file containing nodename<=>file/anchor maps, which I need to load and then 
use in element_file_name to get the node splitting we desire.
However, I'm missing the correct place where to load the file:

-)  For the map file name, I need the $Texi2HTML::THISDOC{'input_file_name'}, 
so I can't do it at top-level in my init file.

-) I can't use init_out, either, because that will come before the third, but 
unfortunately after the second pass (where the node/section<=>file assignment 
is done with element_file_name).

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).

Cheers,
Reinhold
-- 
------------------------------------------------------------------
Reinhold Kainhofer, Vienna University of Technology, Austria
email: address@hidden, http://reinhold.kainhofer.com/
 * Financial and Actuarial Mathematics, TU Wien, http://www.fam.tuwien.ac.at/
 * K Desktop Environment, http://www.kde.org, KOrganizer maintainer
 * Chorvereinigung "Jung-Wien", http://www.jung-wien.at/




reply via email to

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