Re: protection of space inside @w is wrong

2022-10-20 Thread Jacob Bachmeyer
Patrice Dumas wrote: On Thu, Oct 20, 2022 at 07:39:51PM +0100, Gavin Smith wrote: In texi2any, as well as stopping line breaks, multiple spaces are protected, so @w{a b} outputs as 'a b' not 'a b'. Indeed. I have not checked, but I think that it dates back to makeinfo in C. It foll

Re: behavior of @math with HTML output

2022-10-15 Thread Jacob Bachmeyer
Gavin Smith wrote: On Fri, Oct 14, 2022 at 09:27:22PM -0500, Jacob Bachmeyer wrote: TeX has an \ifmmode conditional that is true in math mode; @var/\var and other marking macros could be adjusted to mark their arguments appropriately when invoked in math mode. Are there other macros that

Re: behavior of @math with HTML output

2022-10-15 Thread Jacob Bachmeyer
Vincent Lefevre wrote: On 2022-10-15 12:04:18 +0100, Gavin Smith wrote: On Fri, Oct 14, 2022 at 09:27:22PM -0500, Jacob Bachmeyer wrote: Since "var" actually is a TeX macro (Texinfo works by adjusting TeX's configuration to make @ introduce commands, like backslash do

Re: behavior of @math with HTML output

2022-10-15 Thread Jacob Bachmeyer
Vincent Lefevre wrote: On 2022-10-14 21:11:19 -0500, Jacob Bachmeyer wrote: Vincent Lefevre wrote: On 2022-10-14 07:06:03 +0100, Gavin Smith wrote: On Fri, Oct 14, 2022 at 12:40:08AM +0200, Vincent Lefevre wrote: [...] * mathjax is not compatible with text browsers

Re: behavior of @math with HTML output

2022-10-14 Thread Jacob Bachmeyer
Vincent Lefevre wrote: On 2022-10-14 11:30:33 +0200, Patrice Dumas wrote: On Fri, Oct 14, 2022 at 12:40:08AM +0200, Vincent Lefevre wrote: On 2022-10-13 21:15:57 +0200, Patrice Dumas wrote: All of them are buggy: * Concerning t4h, @math{@var{base} \le 16}, yields "@varbase ≤

Re: behavior of @math with HTML output

2022-10-14 Thread Jacob Bachmeyer
Vincent Lefevre wrote: On 2022-10-14 07:06:03 +0100, Gavin Smith wrote: On Fri, Oct 14, 2022 at 12:40:08AM +0200, Vincent Lefevre wrote: [...] * mathjax is not compatible with text browsers. Not a bug, working as designed. Also broken design as there is no correct fallb

Re: incorrect @math spacing for PDF output with an empty macro

2022-10-14 Thread Jacob Bachmeyer
Vincent Lefevre wrote: On 2022-10-14 21:42:27 +0100, Gavin Smith wrote: [...] In your use case, you can avoid line breaks using the @w command: @deftypefun int f4 () @w{@math{@var{n} = -2}}. @end deftypefun If the @w ignored in math mode? [...] For PDF output, I want the spaces to b

Re: Makeinfo generates wrong link

2022-10-03 Thread Jacob Bachmeyer
Gavin Smith wrote: On Mon, Oct 03, 2022 at 08:31:06AM +0100, Jonathan Wakely wrote: On Mon, 3 Oct 2022 at 07:01, Gavin Smith via Gcc wrote: On Sun, Oct 02, 2022 at 09:06:06PM -0400, Richard Stallman wrote: [...] The gcc developers need to provide a stable, version-independent l

Re: Tagging system for Texinfo

2022-08-14 Thread Jacob Bachmeyer
Gavin Smith wrote: On Fri, Aug 12, 2022 at 12:17:17PM -0700, Raymond Toy wrote: It's possible that Texinfo should have more support for this kind of thing (and API documentation in general) although I am not sure what to suggest. It looks like you are doing a pretty good job as it is with th

Re: Bad ligatures with fontenc

2022-08-08 Thread Jacob Bachmeyer
Gavin Smith wrote: In the LaTeX output, the fontenc package is used as \usepackage[T1]{fontenc} [...] It appears in whatever font fontenc is using, there is a ligature that transforms ,, into a single character. If I understand correctly, there is a convention (somewhere) for using above

Re: removing valign in HTML tables?

2022-08-03 Thread Jacob Bachmeyer
Jean-Christophe Helary wrote: On Aug 3, 2022, at 15:15, Patrice Dumas wrote: Hello, There are many uses of valign in HTML tables generated by texi2any. They come from texi2html days. I did some tests, and the differences with and without are not important. And more fundamentaly, I see lit

Test locales (was: Re: Encoding customization variable names)

2022-05-29 Thread Jacob Bachmeyer
Gavin Smith wrote: Another issue (I can't remember if I emailed you before about this) is the locale settings to run the test suites. You changed it from "C" to "C.UTF-8", but the latter encoding doesn't exist everywhere. I changed it to "en_US.UTF-8" (see ChangeLog entries on 2022-04-14) but thi

Re: more consistent ignoring before node and sections and Top node

2022-03-10 Thread Jacob Bachmeyer
Patrice Dumas wrote: On Sun, Feb 20, 2022 at 10:42:25AM +, Gavin Smith wrote: Again I think the name of the option shouldn't contain the work "book", as it is too vague. I added a customization variable named 'NO_TOP_NODE_OUTPUT' which, if set is the book-like output. There is no

Re: AW: Feature request: api docs

2022-02-25 Thread Jacob Bachmeyer
Ernst Reissner wrote: Hello Jacob, Reißner Ernst wrote: [...] All of these markup is not presentational like @table, it is content markup, descriptive or even procedural. It allows other tools not only to render, but to analyze and to verify. I also strongly disagree that this kind of markup

Re: AW: Feature request: api docs

2022-02-23 Thread Jacob Bachmeyer
Reißner Ernst wrote: [...] All of these markup is not presentational like @table, it is content markup, descriptive or even procedural. It allows other tools not only to render, but to analyze and to verify. I also strongly disagree that this kind of markup is really language specific. Parame

Re: plan and questions for change in attributes for stricter HTML

2021-12-20 Thread Jacob Bachmeyer
Gavin Smith wrote: [...] The width specifications seem to be the most appropriate for printed output. Often when specifying a @multitable the user wouldn't care about the column widths. Maybe the browser can do a good job at the layout without them. However, it could matter in some cases. I woul

Re: Replace HTML4 doctype declaration

2021-12-19 Thread Jacob Bachmeyer
Gavin Smith wrote: [...] It's questionable how useful it is to have a version number in a file format if reading software is not going to use it (apparently just "" is needed to turn off "quirks mode" but browsers pay no attention to the DTD beyond that). I doubt that a doctype declaration would

Re: Replace HTML4 doctype declaration

2021-12-19 Thread Jacob Bachmeyer
Patrice Dumas wrote: On Sat, Dec 18, 2021 at 08:01:50PM -0600, Jacob Bachmeyer wrote: I would suggest staying with HTML4; it is upwards compatible in that an HTML5 parser should generally be able to read it, and the HTML4 DOCTYPE actually declares a version, instead of the "eterna

Re: texi to epub

2021-12-18 Thread Jacob Bachmeyer
Patrice Dumas wrote: On Sat, Dec 18, 2021 at 01:58:30PM -0800, Per Bothner wrote: On 12/18/21 13:01, Patrice Dumas wrote: It seems that it does not change the work required compared to XHTML 1.1 which is to have a correct XML document. Something I cannot find, however, is what to put a

Re: texi to epub

2021-12-18 Thread Jacob Bachmeyer
Gavin Smith wrote: On Thu, Dec 16, 2021 at 05:43:43PM -0600, Jacob Bachmeyer wrote: 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

Re: Replace HTML4 doctype declaration

2021-12-18 Thread Jacob Bachmeyer
Gavin Smith wrote: On Fri, Dec 17, 2021 at 09:08:24AM +0900, Jean-Christophe Helary wrote: Is there a place *now* where HTML4 is a requirement ? HTML5 is the only *current* standard and does not specifically target web applications. We output HTML4 to get some flexibility in the outp

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: XHTML validation (was: texi to epub)

2021-12-15 Thread Jacob Bachmeyer
Patrice Dumas wrote: 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 of course makeinfo

Re: Confusing error message in development version

2021-10-12 Thread Jacob Bachmeyer
Patrice Dumas wrote: On Mon, Oct 11, 2021 at 11:25:13PM -0500, Jacob Bachmeyer wrote: Patrice Dumas wrote: Actually it was probably simply an oversight. Note that I have kept the function names in other warning messages, as either it is useful to have the function name as the user

Re: Confusing error message in development version

2021-10-11 Thread Jacob Bachmeyer
Patrice Dumas wrote: On Mon, Oct 11, 2021 at 06:28:33PM +0200, Patrice Dumas wrote: On Mon, Oct 11, 2021 at 04:30:20PM +0100, Gavin Smith wrote: Git revision a9aacb0b39967059b8064 If I use a non-existent customization variable, like ./texi2any.pl test.texi -c OPEN_CODE_QUOTE=\` the

Re: texinfo-6.7.90 tarball contains files that "make distclean" erases

2021-06-09 Thread Jacob Bachmeyer
Gavin Smith wrote: Also, if the *.c file was missing from the release and the user didn't have xsubpp, they would have no way to reproduce it, whereas if the *.c is incompatible and they do have xsubpp, they could always delete the *.c file and then regenerate it. The Perl kit includes xsubp

Re: multitable widths problem

2021-03-29 Thread Jacob Bachmeyer
Werner LEMBERG wrote: I still think that a new texinfo command that allows both fractional values and sample strings as column width specifications would be most beneficial. The simplest change, assuming that sample strings are used as widths by measuring their boxes, would be a command that g

Re: multitable widths problem

2021-03-26 Thread Jacob Bachmeyer
Werner LEMBERG wrote: In other words, we can't get the real width of the PDFs easily within the texinfo framework. A variant of `@columnfractions` that accepts both fractions and sample strings would be thus ideal. What prevents `lilypond-book` from determining the widths and inserting t

Re: multitable widths problem

2021-03-25 Thread Jacob Bachmeyer
Werner LEMBERG wrote: Those 'lilypond' environments are handled by the `lilypond-book` script, which processes the LilyPond code and replaces it with PDF files for TeX output and PNG images for everything else: [...] In other words, we can't get the real width of the PDFs easily within the texin

Re: link handling in js-reader

2021-03-04 Thread Jacob Bachmeyer
Per Bothner wrote: On 3/4/21 12:16 PM, Gavin Smith wrote: On Wed, Mar 03, 2021 at 08:25:59PM -0600, Jacob Bachmeyer wrote: The texinfo tool that generates HTML has the ToC, so really the correct solution here would be for the HTML output to include the 'target' attributes directl

Re: link handling in js-reader

2021-03-03 Thread Jacob Bachmeyer
Per Bothner wrote: [...] Ideally, one could determine which links are internal by checking for an entry in the table-of-contents. However, that is bit complicated, mainly because sub-pages don't have access to the ToC, so it would have to involve message sending between JavaScript contexts (no b

Re: texinfo-6.7.90 tarball contains files that "make distclean" erases

2021-02-27 Thread Jacob Bachmeyer
Gavin Smith wrote: On Sat, Feb 27, 2021 at 02:41:57PM +0100, Bruno Haible wrote: Also the files MiscXS.c, TestXS.c, XSParagraph.c were included in the tarball, although "make clean" or "make distclean" deletes them. There are two possible ways to fix this: I think option B below would

Re: texinfo-6.7.90 pretest on Solaris

2021-02-27 Thread Jacob Bachmeyer
Gavin Smith wrote: On Sat, Feb 27, 2021 at 12:22:33PM +0100, Bruno Haible wrote: https://alpha.gnu.org/gnu/texinfo/texinfo-6.7.90.tar.xz A VPATH build on Solaris 10, with Solaris 'make', fails during "make check": Making check in texindex make check-TESTS FAIL: tests/ti-helpversion.

Re: @ continuation not working in @def...

2021-02-09 Thread Jacob Bachmeyer
Per Bothner wrote: On 2/9/21 11:44 AM, Gavin Smith wrote: Yes, on Posix platforms. texi2any on MS-Windows should process the line ends properly. I expect that this happens already. On general principles, I believe any program that reads text files on *any* platforms should handle "\r\n" the

Re: Testing lots of Texinfo files

2021-01-21 Thread Jacob Bachmeyer
Gavin Smith wrote: There are many manuals that I couldn't get easily as there wasn't a link to download the Texinfo sources on the website (where there was, this was always because the web manuals were generated with the gendocs script). It would be a never-ending project to try to get everything

Re: test results differents between the perl and XS parsers

2020-11-17 Thread Jacob Bachmeyer
Gavin Smith wrote: [...] In the Perl code, however, there is always a current line number object available and when this is referenced the line number is stored as a reference to the object. It looks like $current->{'contents'}->[-1]->{'line_nr'} = $line_nr; Hence the object can easi