DocBook v2
Thibaut Cuvelier
tcuvelier at lyx.org
Sat Sep 12 19:01:14 UTC 2020
On Sat, 12 Sep 2020 at 18:53, Scott Kostyshak <skostysh at lyx.org> wrote:
> On Sat, Sep 12, 2020 at 03:51:08PM +0200, Thibaut Cuvelier wrote:
> > On Sat, 12 Sep 2020 at 04:44, Scott Kostyshak <skostysh at lyx.org> wrote:
> >
> > > On Sat, Sep 12, 2020 at 03:22:22AM +0200, Thibaut Cuvelier wrote:
> > > > On Fri, 11 Sep 2020 at 20:05, Scott Kostyshak <skostysh at lyx.org>
> wrote:
> > > >
> > > > > On Fri, Sep 11, 2020 at 02:07:00PM +0200, Thibaut Cuvelier wrote:
> > > > > > Do you have any idea
> > > > > > where this may come from? In what kind of layout does this happen
> > > (style,
> > > > > > float, etc.)?
> > > > >
> > > > > I know little about layout stuff, but I'm happy to try to help. One
> > > > > thing I notice is that in Layout.cpp in layoutTags there is no
> entry
> > > for
> > > > > "docbookitemwrappermergewithprevious". Should there be?
> > > > >
> > > >
> > > > Maybe it should be there, it has never been needed for now. Thank
> you for
> > > > pointing out that typo, I read that part a zillion times without
> spotting
> > > > it! I suppose that 6941db32e1 fixes the tests?
> > >
> > > Nice, those warnings are gone. The next ones I see are the following:
> > >
> > > LyX: Unknown layout tag `otherrenderas='part'' [around line 44 of
> file
> > > current token: 'otherrenderas='part'' context: '']
> > > Could not read style Part*.
> > > LyX: Unknown layout tag `otherrenderas='chapter'' [around line 44 of
> > > file current token: 'otherrenderas='chapter'' context: '']
> > > Could not read style Chapter*.
> > >
> > > It looks like something goes wrong with the parsing of DocBookAttr
> > > values because of the double quotes or single quotes or spaces. Perhaps
> > > you need to use something different than the << operator for
> > > DocBookAttr?
> > >
> >
> > I tried to add quotes in Layout::write,
>
> Good idea.
>
> > maybe this is enough to fix the
> > issue? (Amended commit: b2881c27.)
>
> The tests still fail, but now give output like the following:
>
> LyX: Unknown layout tag `sect1""' [around line 43 of file current token:
> 'sect1""' context: '']
> Could not read style Section*.
> LyX: Unknown layout tag `sect2""' [around line 43 of file current token:
> 'sect2""' context: '']
> Could not read style Subsection*.
> LyX: Unknown layout tag `sect3""' [around line 43 of file current token:
> 'sect3""' context: '']
> Could not read style Subsubsection*.
> LyX: Unknown layout tag `sect4""' [around line 43 of file current token:
> 'sect4""' context: '']
> Could not read style Paragraph*.
> LyX: Unknown layout tag `sect5""' [around line 44 of file current token:
> 'sect5""' context: '']
> Could not read style Subparagraph*.
> <end of output>
>
This issue should be resolved: in these styles, there were already quotes
in DocBookAttr.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lyx.org/pipermail/lyx-devel/attachments/20200912/8a4fdf15/attachment.html>
More information about the lyx-devel
mailing list