Re: Backslashes in macros and texi2html

Jean Abou Samra <[email protected]>
Newsgroups gmane.comp.tex.texinfo.general
Message-ID <[email protected]>

> Le 24 oct. 2022 à 11:56, Patrice Dumas <[email protected]> a écrit :
> 
> On Sat, Oct 22, 2022 at 06:23:43PM +0200, Jean Abou Samra wrote:
>> Hi,
>> 
>> \command
>> 
>> Note: command
>> 
>> Note the missing backslash after "Note:".
>> 
>> Unfortunately, LilyPond is still using texi2html, and it is
>> difficult for us to switch to makeinfo --html aka. texi2any.
> 
> We are preparing for a Texinfo release right now, but for the
> following release, it could probably be nice to try to have everything
> in texi2any that is needed for LilyPond to switch.  This is a good
> time, I think, as the HTML customization API is part of the release,
> such that the API is probably somewhat stabilized.  The API is
> incomplete, though, customization of translated strings is still
> missing, and I think that it is needed for LilyPond but this should
> be a good thing to have it in the following release.



This would be fantastic. However, I’m not an expert of our doc build, I don’t know what features we are missing in texi2any exactly. I guess we will find out when someone actually tries to port our texi2html config file…



>> Do you know of a workaround for this? Werner found something
>> where the input is changed,
>> https://lists.gnu.org/archive/html/lilypond-devel/2022-10/msg00168.html
>> but is there, by any chance, a way to write the @warning macro
>> differently so as not to trigger this (apparent) bug?
> 
> I do not think that there is a way to change the macro to avoid that
> issue.  Another possibility, with change in the input, would be to use
> @backslashchar{}command
> instead of
> \command
> in macro argument.  You need to check if texi2html handles
> @backslashchar{}, though, I don't remember.


OK, thanks for your reply.

Cheers,
Jean
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.