On Sun, Mar 09, 2025 at 09:51:39PM +0000, Gavin Smith wrote:
> On Sun, Mar 09, 2025 at 10:05:52PM +0100, Patrice Dumas wrote:
> > On Sun, Mar 09, 2025 at 05:18:28PM +0000, Gavin Smith wrote:
> > > Updating the test results changed "erreur" to "error".  This was for
> > > the change that introduced _cache_node_names to bulk convert all the
> > > node names in one go.  I assumed this was because the documentlanguage
> > > wasn't set at the time the node names were converted.
> > 
> > Indeed, and I think that it is bad.  Caching the converted node name is
> > good, but it should be more dynamical, converted node names should be
> > invalidated when documentlanguage changes.  This is what is done in HTML
> > for instance, and I think that it should be the same for Plaintext/Info.
> 
> I will try to work out how to do this but it seems like a unlikely case
> to have @error{} in a node name.  Can you think of any other commands
> that would be documentlanguage dependent?

In Info/Plaintext I think that it is the only one.  In HTML many things
can end up translated, but in Plaintext not so much.  Another
possibility could be to say in the documentation that @error should not
be used in node names.

> If @error{} is translated to "erreur" in a node name in a French Info
> file, then it is not possible to link to that node from another
> Info manual using @error{} in the node name unless that Info file
> was also generated with French documentlanguage.  You would have
> to explicity "erreur" in the node name, not @error{}.  (Again, this is
> a very minor problem.)

In HTML there is not this issue, actually, as there is a mapping for
@error{} htat is independent of the language.  But in Info it is an
issue, which I think is quite serious, as it means that @error{} is not
really fit to be used in node names.  It is the same for @today, for
instance, but for @today it is quite obvious, for @error{} it is mmuch
less obvious.  As I said above, maybe we could document that @error
should not be used in node names.

-- 
Pat

Reply via email to