On Thu, 6 Feb 2025 at 06:37, Peter Bieringer <p...@bieringer.de> wrote:
> Hi, > > > Is your document hosted at > https://github.com/pbiering/ipv6calc/tree/4.3.0/doc? > > Yes, here already the one edited with LyX 2.4 and > > > (I bet the XSLT file you mention is the one in this repo?) > > Yes, this is used. > Thanks for confirming! When trying with LyX 2.5 (current development version), I see that your ERTs are generated as I expected: they are transformed into comments. That's probably not what you expected, based on the previous behaviour.I just pushed 554eb63d onto master to solve the issue for your document and similar ones. Here is the preamble of your document with the latest commit: <?xml version="1.0" encoding="UTF-8"?> <!-- This DocBook file was created by LyX 2.5.0~devel See https://www.lyx.org/ for more information --> <article xml:lang="en-US" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:m=" http://www.w3.org/1998/Math/MathML" xmlns:xi=" http://www.w3.org/2001/XInclude" version="5.2"> <title>The ipv6calc Homepage</title> <address role='right-address'>pb at bieringer dot de</address> <author><firstname>Peter</firstname><surname>Bieringer</surname><affiliation><address>pb at bieringer dot de</address></affiliation></author><revhistory> <revision> <revnumber>12.0.0</revnumber> <date>2025-01-28</date> <authorinitials>PB</authorinitials></revision></revhistory> <section> <title>General</title> <para>ipv6calc is a small utility written in programming language C to manipulate… I think this patch is a candidate for the next 2.4 release. > > I see that this LyX document has raw DocBook, which I didn't expect at > > all. I'll see what I can do; I thought ERTs would have survived as > > comments, at least. > > > > (By the way, LyX 2.4 now only supports DocBook 5 instead of DocBook 4, > > you might need to update parts of your toolchain.) > > The "toolchain" is "generate.sh" in same directory. > > The one worked with LyX 2.3 is here: > https://github.com/pbiering/ipv6calc/tree/4.2.2/doc > > Thank you for digging into. > > Regards, > Peter > > Am 06.02.25 um 04:00 schrieb Thibaut Cuvelier: > > On Wed, 5 Feb 2025 at 05:42, Peter Bieringer <p...@bieringer.de > > <mailto:p...@bieringer.de>> wrote: > > > > Hi, > > > > see for more details: https://latex.org/forum/viewtopic.php?t=36140 > > <https://latex.org/forum/viewtopic.php?t=36140> > > > > where "milka" replied that this looks like a bug. > > > > > > I had to update to newer LyX version and it looks like the "DocBook > 5" > > export causes some troubles on my side. > > > > Before: LyX Doc -> DocBook export to SGML -> conversion to html > > Now: LyX Doc -> DocBook export to XML-> conversion to html > > > > The embedded code (\begin_layout Plain Layout...) in the document > > contained since long time relate to info/revision and so on did not > > proper survive but is required for the box > > https://www.deepspace6.net/projects/ipv6calc.html <https:// > > www.deepspace6.net/projects/ipv6calc.html> > > > > Old set worked at least with 2.3.7 > > https://github.com/pbiering/ipv6calc/tree/4.2.2/doc <https:// > > github.com/pbiering/ipv6calc/tree/4.2.2/doc> > > > > New set need some tweaks for 2.4.2.1 > > https://github.com/pbiering/ipv6calc/blob/4.3.0/doc/ <https:// > > github.com/pbiering/ipv6calc/blob/4.3.0/doc/> > > > > Tweak#1: require to add in front of > > > > \begin_layout Right Address > > pb at bieringer dot de > > \end_layout > > > > that leads at least to that the "Plain Layout" section survives the > XML > > export at least as comment - otherwise it will not occur in XML > export > > at all > > > > => see https://latex.org/forum/viewtopic.php?t=36140 <https:// > > latex.org/forum/viewtopic.php?t=36140> > > > > Run export: > > lyx --export docbook5 ipv6calc.lyx > > > > > > Tweak#2: using Perl to reactivate the content > > > > => see https://latex.org/forum/viewtopic.php?t=36140 <https:// > > latex.org/forum/viewtopic.php?t=36140> > > > > Then the conversion to HTML is proper working and the revision > history > > box appears in HTML. > > > > > > Run conversion: > > xsltproc -o ipv6calc.html db2xhtml-ipv6calc.xsl ipv6calc.xml > > > > >
-- lyx-devel mailing list lyx-devel@lists.lyx.org https://lists.lyx.org/mailman/listinfo/lyx-devel