Re: [PATCH v2] ox-texinfo: Preserve source block language fields during export

2025-04-16 Thread Rudolf Adamkovič
Ihor Radchenko writes: > Maybe an alist? Either way is fine. Yup, exactly what Org LaTeX does; it solves virtually the same problem. > Then, it is probably Richard's turn to update the patch. Go, Richard, go! :) Rudy -- "Mathematics takes us still further from what is human into the region o

Re: [PATCH v2] ox-texinfo: Preserve source block language fields during export

2025-04-16 Thread Rudolf Adamkovič
Rudolf Adamkovič writes: > Yes, this is all we need: > > 1. Look up BACKEND in `org-latex-src-block-backend' > 2. Look up LANG in `org-latex-BACKEND-langs' Correction: `org-texinfo-*' instead of `org-latex-*', of course. TL;DR We mirror what Org LaTeX does. Rudy -- "We shall not cease fro

Re: [PATCH v2] ox-texinfo: Preserve source block language fields during export

2025-04-15 Thread Ihor Radchenko
Rudolf Adamkovič writes: >> On the other hand, simply allowing to specify @example appears to be >> safe (I may be wrong), even if we happen to use language name that is >> not supported by the highlighter. > > Yes, this is all we need: > > 1. Look up BACKEND in `org-latex-src-block-backend' >

Re: [PATCH v2] ox-texinfo: Preserve source block language fields during export

2025-04-15 Thread Rudolf Adamkovič
Ihor Radchenko writes: > ... Apologies for a late reply. I have been sick. :( > Also, keep in mind that syntax highlighting is experimental and that the > texinfo manual explicitly says > > Warning: Source highlighting is experimental; feedback is > welcomed. The syntax of HIGHLIGHT_

Re: [PATCH v2] ox-texinfo: Preserve source block language fields during export

2025-04-12 Thread Ihor Radchenko
Rudolf Adamkovič writes: > Here are some things we could do... > > OPTION 1: Keep it simple, if a bit messy: > > Rename `org-texinfo-listings-langs' to `org-texinfo-langs', and make > sure all languages Org supports OOTB map correctly to Highlight, > Pygments, and GNU Source Highlight. Per

Re: [PATCH v2] ox-texinfo: Preserve source block language fields during export

2025-04-05 Thread Rudolf Adamkovič
Richard Sent writes: > I added org-texinfo-listings-langs. I'm not super familiar with the Org > codebase so I might've missed something, but as far as I can tell it's > functionally correct. In the case of `org-latex-listings-langs', the word "listings" refers to the LaTeX package with the same

[PATCH v2] ox-texinfo: Preserve source block language fields during export

2025-03-27 Thread Richard Sent
* lisp/ox-texinfo.el (org-texinfo-src-block): Preserve the language field during export. * etc/ORG-NEWS (Version 9.8): Add news entry. * testing/lisp/test-ox-texinfo.el: Add tests. --- Thanks for the feedback! Rudolf Adamkovič writes: > Ha! I have the exact same patch in works. I also asked on