Re: [PATCH] syntax highlight: allows any program to be used as a syntax highlighter

2024-11-22 Thread Carlos Maniero
> I agree, it would be better to use HIGHLIGHT_SYNTAX. If the value is > not a known value, then the command would be called. I prefer a called > with fixed informations rather than %X arguments replacement. That > means that users would have to use wrappers to translate the arguments > to a com

Re: failures with XS modules [memcpy]

2024-11-22 Thread Gavin Smith
On Fri, Nov 22, 2024 at 07:14:41PM +, Gavin Smith wrote: > I also patch texi2any to add a line: > > Texinfo::Transformations::protect_first_parenthesis_in_targets($tree); > > When I run > > export top_srcdir=../../ top_builddir=.. TEXINFO_DEV_SOURCE=1 > ./texi2any -c TREE_TRANSFORMATIONS=p

Re: failures with XS modules

2024-11-22 Thread Gavin Smith
On Fri, Nov 22, 2024 at 12:10:33PM +0100, Patrice Dumas wrote: > Hello, > > Now that the XS modules are used, there are new errors in the CI. > > For Cygwin64 and Macos-13, there are many errors with translations. For > these platforms in the CI, the Perl version is 5.40.X, such that XS is > use

Manual bug and HIGHLIGHT_SYNTAX results

2024-11-22 Thread Raymond Toy
First, a simple bug https://www.gnu.org/software/texinfo/manual/texinfo/texinfo.html#Syntax-Highlighting, where the link for "GNU Source-Highlight" is broken. But I tried texinfo 7.1.1 with HIGHLIGHT_SYNTAX with pygments to highlight the examples in Maxima's user manual. It works quite well for t

failures with XS modules

2024-11-22 Thread Patrice Dumas
Hello, Now that the XS modules are used, there are new errors in the CI. For Cygwin64 and Macos-13, there are many errors with translations. For these platforms in the CI, the Perl version is 5.40.X, such that XS is used for getting translated strings in documents, but it does not seems to work.

Re: Load libtexinfo and libtexinfoxs directly in XSLoader.pm?

2024-11-22 Thread Patrice Dumas
On Wed, Nov 20, 2024 at 09:36:14PM +, Gavin Smith wrote: > I've committed changes to do this. I had to override and revert > a commit you made before that as it clashed with my changes - I needed > the $additional_libraries argument which you had removed. This works well in the CI, all the pl

Re: [PATCH] syntax highlight: allows any program to be used as a syntax highlighter

2024-11-22 Thread Patrice Dumas
On Thu, Nov 21, 2024 at 04:42:24PM +, Carlos Maniero wrote: > There is another point that is good to mention: If *HIGHLIGHT_SYNTAX* > is set to anything other than "highlight" or "pygments" it defaults to > *source-highlight*. So, if the user set "./myscript.pl" as > *HIGHLIGHT_SYNTAX* without

Re: [PATCH] syntax highlight: allows any program to be used as a syntax highlighter

2024-11-22 Thread Patrice Dumas
On Thu, Nov 21, 2024 at 08:05:46AM +0200, Eli Zaretskii wrote: > Thanks, but I don't think I understand why you need a new variable. > Just teach texi2any that some specially-formatted value of > HIGHLIGHT_SYNTAX means to use whatever program is specified by the > value. For example, if the value