bug-texinfo
[Top][All Lists]
Advanced

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

Re: use directly section childs with sectiontoc, set USE_NODES 0 for HTM


From: Patrice Dumas
Subject: Re: use directly section childs with sectiontoc, set USE_NODES 0 for HTML
Date: Mon, 2 Nov 2020 16:49:06 +0100

On Mon, Nov 02, 2020 at 07:27:10AM +0000, Gavin Smith wrote:
> > > Ok.  I will probably try to do something for that case.
> > 
> > Here is what I propose.  We add a new variable, like
> > USE_NODES_DIRECTIONS.  It can be set to 1, 0, or undef, the default.
> > If undef it follows USE_NODES. 
> 
> Do  you mean that it takes the same value as USE_NODES?  That sounds OK.

Exactly.

> > If  USE_NODES_DIRECTIONS is true, use the same code as today, if it is 
> > false, use the section directions instead of the nodes directions in
> > _default_node_direction (this function would be renamed too).
> > 
> > Does it looks good?
> 
> I'm OK with it if you think it is necessary.  I would call it
> USE_NODE_DIRECTIONS instead.

Ok.  I think that it is indeed necessary, now that we are moving HTML
more towards a book like formatting, for which USE_NODES set to 0 would
make sense.  It is actually how texi2html output was designed, but, even
though there are plenty of ways to customize the navigation panel
buttons that come from texi2html, there is no existing way to do it
more dynamically.  In the texi2html style, buttons are hardcoded to 
use section directions (and section names).

The downside is that it increases the code to maintain, may need
additional specific test cases...

-- 
Pat



reply via email to

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