Hi,
The *-D VAR* option doesn't seem to work when not compiling to
plaintext. i.e. that the variable is not set when compiling to pdf
for example. I manage to get around the problem by using *texi2pdf**
**--command="@set VAR" *instead of using *texi2any -D VAR*. I would
love to help you patch this, but I have 0 knowledge in Perl.
*- texi2any version 6.3*
Input file for testing:
\input texinfo
@setfilename test.info
@documentencoding UTF-8
@documentlanguage en
@finalout
@ifset foo
Foo is set!
@end ifset
@ifclear foo
Foo is clear!
@end ifclear
@bye
Commands to run:
*WORK**:*
texi2any -D foo --plaintext test.info
texi2pdf --command="@set foo" test.info
*DOESN'T WORK:*
texi2any -D foo --pdf test.info
Linux 4.19.8-104.current #1 SMP PREEMPT Wed Dec 12 01:23:21 UTC 2018
x86_64 GNU/Linux
Distribution: Solus OS
Also, I'm sure you already know that one, but Perl is crying on every
invocation of texi2any,
saying that one of your regex is deprecated and will be fatal in Perl
5.32. Here's the complete
warning:
Unescaped left brace in regex is deprecated here (and will be fatal in
Perl 5.32),
passed through in regex; marked by <-- HERE in
m/^\s+@([[:alnum:]][[:alnum:]\-]*)({ <-- HERE })?\s*/
at /usr/share/texinfo/Texinfo/Parser.pm line 5599.
Unescaped left brace in regex is deprecated here (and will be fatal in
Perl 5.32),
passed through in regex; marked by <-- HERE in
m/^\s+@([[:alnum:]][[:alnum:]\-]*)({ <-- HERE
})?\s*(\@(c|comment)((\@|\s+).*)?)?/
at /usr/share/texinfo/Texinfo/Parser.pm line 5603.
Regards,
O.Dion