bug-texinfo
[Top][All Lists]
Advanced

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

Re: Renaming an Index node to prevent file collision


From: Patrice Dumas
Subject: Re: Renaming an Index node to prevent file collision
Date: Fri, 22 Jun 2012 14:00:15 +0200
User-agent: Mutt/1.5.20 (2009-12-10)

On Fri, Jun 22, 2012 at 10:59:00AM +1200, Michael Hope wrote:
> 
> There's at least three groups working around the problem in their
> build systems which is unfortunate.
> 
> The current Top to index.html mapping is in nodename_to_filename_1().
> One fix is to special case nodes called 'Index' in the same way and
> rename them to 'Index_.html'.  This keeps the problematic names in one
> place.

makeinfo in C is not maintained anymore, and the current resolution of
this issue was to consider that we should not bother with that issue,
both nodes will end up in the same file, that's all.

That being said, it is fairly easy with the cvs makeinfo version (in
perl) to change the filename associated with a node, as there are many
hooks for customization (in perl).  The API may not be definitive, 
however, but there will still be some way to do it when the API is 
stabilized.

You can try the attached file to do that (I have not checked on anything
else than GNU/Linux, though), and call along

  ./texi2any.pl --html --init-file map_index_name.pm myfile.texi

You could even conditionalize the regexp to a value indicating whether
this mapping is required or not based on a platform detection, or maybe
another perl variable.

As the API will certainly change, be prepared to have to change the
customization file if you use it (but you can ask me, as this is a 
fairly common need).

-- 
Pat

Attachment: map_index_name.pm
Description: Text document


reply via email to

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