Re: DocBook milestone: most tests pass!

2020-11-29 Thread Pavel Sanda
On Sat, Nov 28, 2020 at 06:10:45AM +0100, Thibaut Cuvelier wrote:
> This seems to pave the way for an ePub output :)!

Thanks for you efforts Thibaut, very good job. And we are all waiting
for epub of course :)

Pavel
-- 
lyx-devel mailing list
lyx-devel@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-devel


Re: DocBook milestone: most tests pass!

2020-11-29 Thread Kornel Benko
Am Sun, 29 Nov 2020 01:44:00 -0500
schrieb Richard Kimberly Heck :

> I really should use the test infrastructure more myself. Once I get back
> to the macro code, I'll be in touch

I would be glad to give helpful hints.

Kornel


pgp8s7q1DdRLW.pgp
Description: Digitale Signatur von OpenPGP
-- 
lyx-devel mailing list
lyx-devel@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-devel


Re: DocBook milestone: most tests pass!

2020-11-28 Thread Richard Kimberly Heck
On 11/28/20 12:10 AM, Thibaut Cuvelier wrote:
> Dear list,
>
> The latest DocBook commit marks a milestone: almost all tests pass!
> This means that, for many documents, the DocBook output from LyX is
> really useable as-is. Many tests are inverted, but it's usually for
> quite minor details (a few DocBook-validation errors) due to the
> templates: in these cases, the output will need only minor changes
> before being used; for actual documents, most quirks do not happen at
> all (e.g., people have a bibliography, not just a stub inset with no
> actual bibliography behind it). This seems to pave the way for an ePub
> output :)!
> I would really like to thank Kornel for all the help he gave me on
> this endeavour!

Yes, great work Kornel! And Pavel, earlier in the process! And Scott!

I really should use the test infrastructure more myself. Once I get back
to the macro code, I'll be in touch

> Is there any GUI tool to edit layouts? It would have been very useful
> to have such a thing that computes the complete set of properties for
> each style, saying where each property is inherited from.
Oft-requested feature. Would be great to have, but no one has found it
sufficiently pressing. I'd be happy to help if you wanted to work on
that once you're done with this!!

Riki




-- 
lyx-devel mailing list
lyx-devel@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-devel


Re: DocBook milestone: most tests pass!

2020-11-28 Thread Thibaut Cuvelier
On Sat, 28 Nov 2020 at 06:10, Thibaut Cuvelier  wrote:

> Apart from that, I may be working next on posters, I think I have an idea
> on how to make them work. Beamer is another large piece :)!
>

I just pushed some commits to make more things work, like SciPoster.
However, I cannot make both Additional.lyx and SciPoster.lyx work at the
same time, due to the presence of sections in the poster within the
columns. I thought I could override some module layouts for
sciposter.layout, but it does not work…
-- 
lyx-devel mailing list
lyx-devel@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-devel


Re: DocBook milestone: most tests pass!

2020-11-28 Thread Thibaut Cuvelier
On Sun, 29 Nov 2020 at 01:15, Scott Kostyshak  wrote:

> On Sat, Nov 28, 2020 at 06:10:45AM +0100, Thibaut Cuvelier wrote:
>
> > I still have a few questions for you, based on what tests are working or
> > not on my machine (there has already been a few differences with Kornel
> on
> > Linux, but nothing has been investigated so far).
>
> The following test also "fails" for me:
>
>
> INVERTED.DOCBOOK_export/templates/Articles/Astronomy_%26_Astrophysics_docbook5
>
> Same issue as with American_Psychological_Association ?
>

It's the same thing, yes, thanks for checking :)!
-- 
lyx-devel mailing list
lyx-devel@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-devel


Re: DocBook milestone: most tests pass!

2020-11-28 Thread Scott Kostyshak
On Sat, Nov 28, 2020 at 06:10:45AM +0100, Thibaut Cuvelier wrote:

> I still have a few questions for you, based on what tests are working or
> not on my machine (there has already been a few differences with Kornel on
> Linux, but nothing has been investigated so far).

The following test also "fails" for me:

  INVERTED.DOCBOOK_export/templates/Articles/Astronomy_%26_Astrophysics_docbook5

Same issue as with American_Psychological_Association ?

Scott


signature.asc
Description: PGP signature
-- 
lyx-devel mailing list
lyx-devel@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-devel


Re: DocBook milestone: most tests pass!

2020-11-28 Thread Kornel Benko
Am Sat, 28 Nov 2020 20:31:26 +0100
schrieb Thibaut Cuvelier :

> On Sat, 28 Nov 2020 at 15:30, Kornel Benko  wrote:
> 
> > Am Sat, 28 Nov 2020 14:11:58 +0100
> > schrieb Kornel Benko :
> >
> > > >- *export/export/docbook/basic_docbook5*: this test only fails
> > because
> > > >of a bibliography issue. In the test environment, I cannot make LyX
> > load
> > > >the BibTeX bibliography. When I manually run the test from the GUI,
> > the
> > > >bibliography properly loads. I don't know how to debug it…
> > >
> > > I tried to find the cause (and have a patch attached to handle this case)
> > > The problem was, that searching for relative bibfiles in a copied
> > lyx-file did not work.
> > > We have to use absolute paths.
> >
> > One other possibility would have been to respect the setting of \origin
> > value in the
> > lyx-file.
> > While testing, it is set to source-path of the original lyx-file (if not
> > set to
> > absolute path already)
> >
> 
> The problem is that this file is part of the autotests folder, while
> \origin only seems to work with /systemlyxdir/.

No, at test _we_ are setting the origin. Because of that, the pdf tests work.
Docbook output could evaluate it too.

> However, your patch works perfectly for this issue!

Yes, but is not nice for other tested formats (to test if they respect origin 
for
instance)

Kornel


pgpyk4ffWi2HQ.pgp
Description: Digitale Signatur von OpenPGP
-- 
lyx-devel mailing list
lyx-devel@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-devel


Re: DocBook milestone: most tests pass!

2020-11-28 Thread Thibaut Cuvelier
On Sat, 28 Nov 2020 at 15:30, Kornel Benko  wrote:

> Am Sat, 28 Nov 2020 14:11:58 +0100
> schrieb Kornel Benko :
>
> > >- *export/export/docbook/basic_docbook5*: this test only fails
> because
> > >of a bibliography issue. In the test environment, I cannot make LyX
> load
> > >the BibTeX bibliography. When I manually run the test from the GUI,
> the
> > >bibliography properly loads. I don't know how to debug it…
> >
> > I tried to find the cause (and have a patch attached to handle this case)
> > The problem was, that searching for relative bibfiles in a copied
> lyx-file did not work.
> > We have to use absolute paths.
>
> One other possibility would have been to respect the setting of \origin
> value in the
> lyx-file.
> While testing, it is set to source-path of the original lyx-file (if not
> set to
> absolute path already)
>

The problem is that this file is part of the autotests folder, while
\origin only seems to work with /systemlyxdir/.

However, your patch works perfectly for this issue!
-- 
lyx-devel mailing list
lyx-devel@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-devel


Re: DocBook milestone: most tests pass!

2020-11-28 Thread Scott Kostyshak
On Sat, Nov 28, 2020 at 02:11:58PM +0100, Kornel Benko wrote:

> > Is there any GUI tool to edit layouts?
> 
> Not that I know of. There was some requests for such an editor, but nothing 
> is done yet.

Indeed, we were hoping to address this with Google Summer of Code, but that was 
trickier than expected:

  https://wiki.lyx.org/Devel/GSoC2008#toc3

Scott


signature.asc
Description: PGP signature
-- 
lyx-devel mailing list
lyx-devel@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-devel


Re: DocBook milestone: most tests pass!

2020-11-28 Thread Scott Kostyshak
On Sat, Nov 28, 2020 at 06:10:45AM +0100, Thibaut Cuvelier wrote:
> Dear list,
> 
> The latest DocBook commit marks a milestone: almost all tests pass! This
> means that, for many documents, the DocBook output from LyX is really
> useable as-is. Many tests are inverted, but it's usually for quite minor
> details (a few DocBook-validation errors) due to the templates: in these
> cases, the output will need only minor changes before being used; for
> actual documents, most quirks do not happen at all (e.g., people have a
> bibliography, not just a stub inset with no actual bibliography behind it).
> This seems to pave the way for an ePub output :)!
> I would really like to thank Kornel for all the help he gave me on this
> endeavour!

Nice, great work Thibaut (and Kornel)! I think it's expected that there
are many inverted tests. I think it's very impressive all the progress
you've made and all of the exports that do seem to work well.

Scott


signature.asc
Description: PGP signature
-- 
lyx-devel mailing list
lyx-devel@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-devel


Re: DocBook milestone: most tests pass!

2020-11-28 Thread Kornel Benko
Am Sat, 28 Nov 2020 14:11:58 +0100
schrieb Kornel Benko :

> >- *export/export/docbook/basic_docbook5*: this test only fails because
> >of a bibliography issue. In the test environment, I cannot make LyX load
> >the BibTeX bibliography. When I manually run the test from the GUI, the
> >bibliography properly loads. I don't know how to debug it…  
> 
> I tried to find the cause (and have a patch attached to handle this case)
> The problem was, that searching for relative bibfiles in a copied lyx-file 
> did not work.
> We have to use absolute paths.

One other possibility would have been to respect the setting of \origin value 
in the
lyx-file.
While testing, it is set to source-path of the original lyx-file (if not set to
absolute path already)

Kornel


pgpTEgkggRCdL.pgp
Description: Digitale Signatur von OpenPGP
-- 
lyx-devel mailing list
lyx-devel@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-devel


Re: DocBook milestone: most tests pass!

2020-11-28 Thread Kornel Benko
Am Sat, 28 Nov 2020 06:10:45 +0100
schrieb Thibaut Cuvelier :

> Dear list,
> 
> The latest DocBook commit marks a milestone: almost all tests pass! This
> means that, for many documents, the DocBook output from LyX is really
> useable as-is. Many tests are inverted, but it's usually for quite minor
> details (a few DocBook-validation errors) due to the templates: in these
> cases, the output will need only minor changes before being used; for
> actual documents, most quirks do not happen at all (e.g., people have a
> bibliography, not just a stub inset with no actual bibliography behind it).
> This seems to pave the way for an ePub output :)!
> I would really like to thank Kornel for all the help he gave me on this
> endeavour!
> 
> I still have a few questions for you, based on what tests are working or
> not on my machine (there has already been a few differences with Kornel on
> Linux, but nothing has been investigated so far).
> 
>- *export/export/docbook/basic_docbook5*: this test only fails because
>of a bibliography issue. In the test environment, I cannot make LyX load
>the BibTeX bibliography. When I manually run the test from the GUI, the
>bibliography properly loads. I don't know how to debug it…

I tried to find the cause (and have a patch attached to handle this case)
The problem was, that searching for relative bibfiles in a copied lyx-file did 
not work.
We have to use absolute paths.

>-
>
> *export/templates/Articles/American_Psychological_Association_%28APA%29_docbook5*
>and *export/templates/Articles/Astronomy_%26_Astrophysics_docbook5*:
>these tests should fail, but do not, again for bibliography issues. The
>test files do not load any BibTeX file, so that the references should be
>dangling (i.e. referenced in the text, but not defined anywhere), but the
>DocBook validation ignores this issue when run in the test mode. Again, I'm
>not sure what causes this issue, because it fails properly when I test it
>with my usual workflow (which is just the same validator as used in the
>test suite).
>- export/templates/Articles/Hebrew_Article_%28KOMA-Script%29_docbook5:
>is it normal that the template is empty?
>- May I modify some templates to make the DocBook output valid?

Maybe with a lyx-note why the original is replaced?
But this is not my decision.

>For now,
>I only modified the Copernicus template to add one author in an otherwise
>empty field, because this looked really harmless. I'm not proposing more
>complex changes. More concretely, that would be adding a BibTeX so that
>references actually point at something or reworking the placeholder figures
>to look like actual figures (and not only text or boxes). This could reduce
>by a large amount the number of inverted DocBook tests, while not really
>changing anything for the user of those templates.
> 
> Apart from that, I may be working next on posters, I think I have an idea
> on how to make them work. Beamer is another large piece :)!

Happy to hear that.

> Is there any GUI tool to edit layouts?

Not that I know of. There was some requests for such an editor, but nothing is 
done yet.

> It would have been very useful to
> have such a thing that computes the complete set of properties for each
> style, saying where each property is inherited from.
> 
> Thibaut

Kornel
diff --git a/development/autotests/lyxStatus.pm b/development/autotests/lyxStatus.pm
index 99c1f6d293..699626746f 100644
--- a/development/autotests/lyxStatus.pm
+++ b/development/autotests/lyxStatus.pm
@@ -333,11 +333,11 @@ sub checkForLatexCommand($)
   my $param = $1;
   if ($stack[0]->{name} =~ /^CommandInset\s+bibtex$/) {
 	if ($param eq "bibtex") {
 	  my $rElem1 = newMatch("ext" => ".bib",
  "filetype" => "prefix_for_list",
- "search" => qr/^bibfiles\s+\"(.+)\"/,
+ "search" => qr/^bibfiles\s+\"([^\"]+)\"/,
  "result" => ["bibfiles \"", "1", "\""]);
 	  my $rElem2 = newMatch("ext" => ".bst",
  "filetype" => "prefix_for_list",
  "search" => qr/^options\s+\"(.+)\"/,
  "result" => ["options \"", "1", "\""]);
diff --git a/development/autotests/useSystemFonts.pl b/development/autotests/useSystemFonts.pl
index 2eae022693..aa168938e8 100644
--- a/development/autotests/useSystemFonts.pl
+++ b/development/autotests/useSystemFonts.pl
@@ -201,10 +201,12 @@ sub interpretedCopy()
 	  if ($isrel[0]) {
 	$foundrelative = 1;
 	my $ext = $isrel[1];
 	if ($rStatus->{"filetype"} eq "prefix_only") {
 	  $f = getNewNameOf("$sourcedir/$f", $rFiles);
+	  $rF->[1] = join(',', @{$filelist});
+	  $l =  join('', @$rF);
 	}
 	else {
 	  my ($newname, $res1);
   my @extlist = ();
   if (ref($rStatus->{ext}) eq "ARRAY") {


pgp0JCm_mBxDo.pgp
Description: Digitale Signatur von OpenPGP
-- 
lyx-devel mailing list
lyx-devel@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-devel