On Mon, Oct 26, 2026 at 07:22:25AM +0000, Gavin Smith wrote:
> On Sun, Oct 25, 2026 at 10:05:46PM +0100, [email protected] wrote:
> > On Sun, Oct 25, 2026 at 08:04:48PM +0000, Gavin Smith wrote:
> > > That is great.  I noticed an unusual output line in
> > > tta/perl/t/results/info_tests:
> > > 
> > > * (man:^?u.al)ext::^?
> > > 
> > > @menu
> > > * (man:u.al)ext::
> > > 
> > > @end menu
> > > 
> > > I suppose the : in the manual name "man:u.al" is being taken as 
> > > terminating
> > > a menu entry label, and the rest of the line is taken as a node name to
> > > be quoted (because of the . between "u" and "al").
> > 
> > Indeed.
> > 
> > > However, it would make sense to me for the line from the Texinfo
> > > @menu block to be reproduced as-is, without added quoting characters.
> > 
> > We said that if there a label and a . in the node name, the node name
> > should be quoted, this is the result of this rule.  It is not clear to
> > me why there should be an exception here?
> 
> Well arguably if the . needs quoting because it may end the node name, then
> texi2any should parse the node as "u" and leave what is after the "." as
> the description, "al)ext::".  When it writes all this out to the Info file
> it would reproduce what it read in originally.  I'm not sure if there is any
> downside to reading the node name this way when reading from a @menu block.

The . not followed by a space does not end the node name in a menu
entry, it is quoted to simplify the Info readers implementation, such
that any dot that does not end a node name is quoted, whatever the
reason (not followed by space in a menu entry, in @asis...).  In that
case, the node name is "u.al)ext::" and ends with the end of line.
Also, I think that we should quote only whole node names (and whole
labels), and not part of it.

-- 
Pat

Reply via email to