On Thu, May 18, 2006 at 06:24:04AM +0300, Eli Zaretskii wrote:
> > > Is that really an important case?
> > 
> > It is for me :)
> 
> Why can't you run makeinfo directly on the case-insensitive
> filesystem?  What OS is that, btw?

Running makeinfo direclty on the case-insensitive filesystem is slow. 
The OS with the case-insensitive filesystem is Windows. 
 
> > A method by which the output files can be prefixed with a montonically
> > increasing number, thus making them unique in a case-insensitive
> > filesystem.
> 
> As far as I remember the makeinfo code, this will require deep changes
> in how it generates file names.  That's because the file name needs to
> be generated from the node name in many places: not only where the
> @node line is seen, but also where an @xref to that node is seen.
> Obviously, an @xref to a node can be in the Texinfo source before the
> node itself, so makeinfo cannot know what ordinal number that node
> will get.
> 
> In other words, your suggestion would require to modify makeinfo so
> that it does at least 2 passes over the Texinfo file, whereas now it's
> a one-pass translator.

The @node order does not have to be the ordinal order.

Set ordinal to 1.
Set spacer to "@"
Parse @xref or @node?
        If a filename with [ordinal][spacer][item name].html
         exists, then reference that.
        Else create a new file [ordinal][spacer][item name].html,
         reference that, and increment the ordinal number.

You need only keep a list of previously output files and search that.

Cheers,
Carlos.
-- 
Carlos O'Donell
CodeSourcery
[EMAIL PROTECTED]
(650) 331-3385 x716


_______________________________________________
Texinfo home page: http://www.gnu.org/software/texinfo/
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-texinfo

Reply via email to