New DocBook support (0004)

Thibaut Cuvelier dourouc05 at gmail.com
Mon Jul 6 23:56:24 UTC 2020


On Tue, 7 Jul 2020 at 01:21, Pavel Sanda <sanda at lyx.org> wrote:

> On Tue, Jul 07, 2020 at 12:21:58AM +0200, Thibaut Cuvelier wrote:
> > So, here is the new (final?) version of that patch.
>
>
> Hmm, this layout2layout snippet:
>
> +        if format == 81:
> +            match = re.compile(b'(\\s*Header\\s+)(\\w+)',
> re.IGNORECASE).match(lines[i])
> +            if match:
> +                del lines[i]
> +                continue
>
> Do I get correctly that you want to catch stuff like:
> Header          "PUBLIC "-//OASIS//DTD DocBook V4.3//EN""
> (which won't work because " is not \w)
> and avoid stuff like
> layouts/foils.layout:# Header definitions:
> layouts/moderncv.layout:          Tooltip       "Header content"
> which will be caught on contrary by the regexp?
>

I tweaked that regex to include optional " and force Header to be at the
beginning of the line. Is this sufficient?

b'^(\\s*Header\\s+)("?\\w+"?)'



> >I also include another
> > patch for AGU, which can be merged at any time, now.
>
> Makefile part is missing :)
>

Corrected!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lyx.org/pipermail/lyx-devel/attachments/20200707/a760a275/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0013-Remove-AGU-DTD-style-probably-doesn-t-work-impossibl.patch
Type: application/octet-stream
Size: 21125 bytes
Desc: not available
URL: <http://lists.lyx.org/pipermail/lyx-devel/attachments/20200707/a760a275/attachment-0002.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0004-Add-required-elements-in-the-layouts-to-support-DocB.patch
Type: application/octet-stream
Size: 11026 bytes
Desc: not available
URL: <http://lists.lyx.org/pipermail/lyx-devel/attachments/20200707/a760a275/attachment-0003.obj>


More information about the lyx-devel mailing list