Re: Directory names hard-coded in Texinfo Perl scripts

2021-12-16 Thread Eli Zaretskii
> Date: Thu, 16 Dec 2021 16:21:09 -0800 > From: Per Bothner > > On 12/16/21 15:52, Jacob Bachmeyer wrote: > > If they can have a location fixed relative to the script, the Perl core > > module FindBin and pragmatic module lib can help here: > > Or if using bash or similar you take do something

Re: Directory names hard-coded in Texinfo Perl scripts

2021-12-16 Thread Eli Zaretskii
> Date: Thu, 16 Dec 2021 17:52:45 -0600 > From: Jacob Bachmeyer > > >> Could we please resurrect this ability in a future release of Texinfo? > > This feature may have worked by pure dumb luck before Yes, I think so. > but it should be fairly simple to support explicitly. That's what I'm aski

Re: Directory names hard-coded in Texinfo Perl scripts

2021-12-16 Thread Eli Zaretskii
> From: Gavin Smith > Date: Thu, 16 Dec 2021 23:12:15 + > Cc: bug-texinfo@gnu.org > > On Thu, Dec 16, 2021 at 11:52:19AM +0200, Eli Zaretskii wrote: > > Hi, > > > > I routinely make my MS-Windows/MinGW builds of Texinfo for others to > > use, here: > > > > https://sourceforge.net/projects

Re: texi to epub

2021-12-16 Thread Per Bothner
On 12/16/21 16:43, Patrice Dumas wrote: Even if it is valid, I think that it is a good thing to be able to produce HTML documents without custom attributes. That being said, if it seems obvious that such caution is not a needed feature, it is possible to revert commit cbce0c098353451c0a35d740ba5

Re: texi to epub

2021-12-16 Thread Patrice Dumas
On Thu, Dec 16, 2021 at 11:21:40PM +, Gavin Smith wrote: > On Thu, Dec 16, 2021 at 11:46:08AM -0800, Per Bothner wrote: > > > > 2020-11-25 Gavin Smith > > > > data-manual attribute > > > > * tp/Texinfo/Convert/HTML.pm (_convert_xref_commands): > > Set data-manual a

Re: Directory names hard-coded in Texinfo Perl scripts

2021-12-16 Thread Per Bothner
For DomTerm (https://domterm.org) whose main executable is C/C++ I use whereami: https://github.com/gpakosz/whereami -- --Per Bothner p...@bothner.com http://per.bothner.com/

Re: texi to epub

2021-12-16 Thread Per Bothner
On 12/16/21 15:43, Jacob Bachmeyer wrote: It is valid HTML5, but epub requires XHTML 1.1 and it is *not* valid there. That does not appear to be correct, at least when talking about EPUB3: http://idpf.org/epub/30/spec/epub30-contentdocs.html#sec-xhtml XHTML 1.1 is officially a Superseded Recom

Re: Directory names hard-coded in Texinfo Perl scripts

2021-12-16 Thread Patrice Dumas
On Thu, Dec 16, 2021 at 05:52:45PM -0600, Jacob Bachmeyer wrote: > > This feature may have worked by pure dumb luck before, but it should be > fairly simple to support explicitly. It could also be, if I recall well, because at some point in the past texi2html was made relocatable for inclusion in

Re: Directory names hard-coded in Texinfo Perl scripts

2021-12-16 Thread Per Bothner
On 12/16/21 15:52, Jacob Bachmeyer wrote: If they can have a location fixed relative to the script, the Perl core module FindBin and pragmatic module lib can help here: Or if using bash or similar you take do something like this, which is a simplified version of the Kawa start-up script: #!/b

Re: texi to epub

2021-12-16 Thread Jean-Christophe Helary
> On Dec 17, 2021, at 8:43, Jacob Bachmeyer wrote: > > Would distinct HTML4, HTML5, and XHTML 1.1 output modes, probably with a > common base, be feasible? HTML4 is preferable as a strict document format > and would eschew custom attributes in favor of CSS classes. HTML5 is > preferable f

Re: Directory names hard-coded in Texinfo Perl scripts

2021-12-16 Thread Jacob Bachmeyer
Gavin Smith wrote: On Thu, Dec 16, 2021 at 11:52:19AM +0200, Eli Zaretskii wrote: Hi, I routinely make my MS-Windows/MinGW builds of Texinfo for others to use, here: https://sourceforge.net/projects/ezwinports/ Recently, a user complained to me that starting with Texinfo 6.7, the Texinfo

Re: texi to epub

2021-12-16 Thread Jacob Bachmeyer
Gavin Smith wrote: On Thu, Dec 16, 2021 at 11:46:08AM -0800, Per Bothner wrote: I know nothing about it - appears to have been added by Gavin: 2020-11-25 Gavin Smith data-manual attribute * tp/Texinfo/Convert/HTML.pm (_convert_xref_commands): Set data-manual attr

Re: texi to epub

2021-12-16 Thread Gavin Smith
On Thu, Dec 16, 2021 at 11:46:08AM -0800, Per Bothner wrote: > I know nothing about it - appears to have been added by Gavin: > > 2020-11-25 Gavin Smith > > data-manual attribute > > * tp/Texinfo/Convert/HTML.pm (_convert_xref_commands): > Set data-manual attribute ins

Re: Directory names hard-coded in Texinfo Perl scripts

2021-12-16 Thread Gavin Smith
On Thu, Dec 16, 2021 at 11:52:19AM +0200, Eli Zaretskii wrote: > Hi, > > I routinely make my MS-Windows/MinGW builds of Texinfo for others to > use, here: > > https://sourceforge.net/projects/ezwinports/ > > Recently, a user complained to me that starting with Texinfo 6.7, the > Texinfo Perl s

Re: texi to epub

2021-12-16 Thread Patrice Dumas
On Thu, Dec 16, 2021 at 07:08:33PM +0100, Patrice Dumas wrote: > On Thu, Dec 16, 2021 at 06:33:32PM +0100, Kurt Hornik wrote: > > > > There are two major sources of warnings in my case (using texinfo 6.8): > > > > * The data-manual attribute in the hyperlinks > > I remember not being in favor of

Re: texi to epub

2021-12-16 Thread Patrice Dumas
On Thu, Dec 16, 2021 at 11:46:08AM -0800, Per Bothner wrote: > > > I know nothing about it - appears to have been added by Gavin: > > 2020-11-25 Gavin Smith > > data-manual attribute > > * tp/Texinfo/Convert/HTML.pm (_convert_xref_commands): > Set data-manual attribu

Re: texi to epub

2021-12-16 Thread Per Bothner
On 12/16/21 10:08, Patrice Dumas wrote: On Thu, Dec 16, 2021 at 06:33:32PM +0100, Kurt Hornik wrote: There are two major sources of warnings in my case (using texinfo 6.8): * The data-manual attribute in the hyperlinks I remember not being in favor of an attribute that is not defined in H

Re: texi to epub

2021-12-16 Thread Kurt Hornik
> Patrice Dumas writes: > On Thu, Dec 16, 2021 at 06:33:32PM +0100, Kurt Hornik wrote: >> >> There are two major sources of warnings in my case (using texinfo 6.8): >> >> * The data-manual attribute in the hyperlinks > I remember not being in favor of an attribute that is not defined in > H

Re: texi to epub

2021-12-16 Thread Patrice Dumas
On Thu, Dec 16, 2021 at 06:33:32PM +0100, Kurt Hornik wrote: > > There are two major sources of warnings in my case (using texinfo 6.8): > > * The data-manual attribute in the hyperlinks I remember not being in favor of an attribute that is not defined in HTML, even if it is acceptable in HTML5.

Re: texi to epub

2021-12-16 Thread Kurt Hornik
> Patrice Dumas writes: > On Wed, Dec 15, 2021 at 07:06:37PM +0100, Kurt Hornik wrote: >> Friends, >> >> calibre does not guarantee that an EPUB produced by it is valid. The >> only guarantee it makes is that if you feed it valid XHTML 1.1 + CSS >> 2.1 it will output a valid EPUB. >> >> and

Re: XHTML validation (was: texi to epub)

2021-12-16 Thread Kurt Hornik
> Jacob Bachmeyer writes: What I ended up doing is set up a local W3C service. On Debian, after apt-get install w3c-markup-validator apt-get install libapache2-mod-perl2 See /usr/share/doc/w3c-markup-validator/README.Debian: Edit /etc/w3c/validator.conf to say Allow Private IPs

Directory names hard-coded in Texinfo Perl scripts

2021-12-16 Thread Eli Zaretskii
Hi, I routinely make my MS-Windows/MinGW builds of Texinfo for others to use, here: https://sourceforge.net/projects/ezwinports/ Recently, a user complained to me that starting with Texinfo 6.7, the Texinfo Perl scripts won't work unless the binary distro is installed in the same directory for