Re: ctests for French User Guide are failing
On Sun, May 30, 2021 at 10:08:05PM +0200, JP wrote: > Le 30 mai 2021 19:20:39 Scott Kostyshak a écrit : > > > On Sun, May 30, 2021 at 03:30:31PM +0200, Jean-Pierre Chrétien wrote: > > > Le 28/05/2021 à 14:24, Scott Kostyshak a écrit : > > > > On Fri, May 28, 2021 at 08:51:08AM +0200, Jean-Pierre Chrétien wrote: > > > > > Le 28/05/2021 à 02:14, Scott Kostyshak a écrit : > > > > > > The following ctests for the French User Guide on current > > > master are failing for me: > > > > > > > > > > > > export/doc/fr/UserGuide_lyx22 (Failed) > > > > > > export/doc/fr/UserGuide_lyx23 (Failed) > > > > > > export/doc/fr/UserGuide_dvi (Failed) > > > > > > export/doc/fr/UserGuide_dvi3_texF (Failed) > > > > > > export/doc/fr/UserGuide_pdf (Failed) > > > > > > DEFAULTOUTPUT_export/doc/fr/UserGuide_pdf2 (Failed) > > > > > > export/doc/fr/UserGuide_pdf3 (Failed) > > > > > > export/doc/fr/UserGuide_pdf5_texF (Failed) > > > > > > > > > > Should be fixed now. > > > > > > > > Works well. Thanks for the quick fix, Jean-Pierre! > > > > > > The error that made the tests fail is quite peculiar. I copied the new > > > escape sequences at the end of section 6.8.1 from the English UserGuide > > > without marking it as French, and I got this error: > > > > > > ! Paragraph ended before \bbl@foreign@x was complete. > > > > > > When I look at the code, I do not see any missing parenthesis. > > > > > > eux\foreignlanguage{english}{.\nomenclature{%@, %|, %!, %"}{The quote sign > > > in TeX code is output by writing ' %"{}%"{} '.}} > > > > > > The error disappears when I mark the index entry as French, and the > > > new code is: > > > > > > .\nomenclature{%@, %|, %!, %"}{The quote sign in TeX code is output by > > > writing ' %"{}%"{} '.} > > > > > > Could this be a hidden bug affecting language embedding of index entries? > > > I'll try to build a MWE. > > > > Thanks for looking into it. I do not know LaTeX well, but I agree with > > you that I do not see any missing parenthesis. I wonder if this could be > > a bug in a LaTeX package (either nomenclature or the language handling). > > > > Thé problem comes from the % signs in the arguments of the nomenclature > command, seems that they are not escaped in the range of the > \foreignlanguage command. > The LaTeX snippet works fine or I replace foreignlanguage by selectlanguage. > How does LyX To decide between these two forms of language switching? Good question. It looks like "foreignlanguage" is used when the scope is more limited. https://tex.stackexchange.com/questions/188009/unknown-language-selectlanguageenglish Scott signature.asc Description: PGP signature -- lyx-devel mailing list lyx-devel@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-devel
Re: ctests for French User Guide are failing
Le 30 mai 2021 19:20:39 Scott Kostyshak a écrit : On Sun, May 30, 2021 at 03:30:31PM +0200, Jean-Pierre Chrétien wrote: Le 28/05/2021 à 14:24, Scott Kostyshak a écrit : > On Fri, May 28, 2021 at 08:51:08AM +0200, Jean-Pierre Chrétien wrote: > > Le 28/05/2021 à 02:14, Scott Kostyshak a écrit : > > > The following ctests for the French User Guide on current master are failing for me: > > > > > > export/doc/fr/UserGuide_lyx22 (Failed) > > > export/doc/fr/UserGuide_lyx23 (Failed) > > > export/doc/fr/UserGuide_dvi (Failed) > > > export/doc/fr/UserGuide_dvi3_texF (Failed) > > > export/doc/fr/UserGuide_pdf (Failed) > > > DEFAULTOUTPUT_export/doc/fr/UserGuide_pdf2 (Failed) > > > export/doc/fr/UserGuide_pdf3 (Failed) > > > export/doc/fr/UserGuide_pdf5_texF (Failed) > > > > Should be fixed now. > > Works well. Thanks for the quick fix, Jean-Pierre! The error that made the tests fail is quite peculiar. I copied the new escape sequences at the end of section 6.8.1 from the English UserGuide without marking it as French, and I got this error: ! Paragraph ended before \bbl@foreign@x was complete. When I look at the code, I do not see any missing parenthesis. eux\foreignlanguage{english}{.\nomenclature{%@, %|, %!, %"}{The quote sign in TeX code is output by writing ' %"{}%"{} '.}} The error disappears when I mark the index entry as French, and the new code is: .\nomenclature{%@, %|, %!, %"}{The quote sign in TeX code is output by writing ' %"{}%"{} '.} Could this be a hidden bug affecting language embedding of index entries? I'll try to build a MWE. Thanks for looking into it. I do not know LaTeX well, but I agree with you that I do not see any missing parenthesis. I wonder if this could be a bug in a LaTeX package (either nomenclature or the language handling). Thé problem comes from the % signs in the arguments of the nomenclature command, seems that they are not escaped in the range of the \foreignlanguage command. The LaTeX snippet works fine or I replace foreignlanguage by selectlanguage. How does LyX To decide between these two forms of language switching? -- Jean-Pierre -- lyx-devel mailing list lyx-devel@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-devel
Re: Anyone on TeX Live 2021 pretest ? (to confirm a regression for ja LilyPond)
Am Sun, 30 May 2021 13:21:18 -0400 schrieb Scott Kostyshak : > On Sun, May 30, 2021 at 09:12:35AM +0200, Kornel Benko wrote: > > Am Sun, 30 May 2021 08:56:17 +0200 > > schrieb Kornel Benko : > > > > > > I took a look at sub getConverter($$) but I'm not sure my Perl skills > > > > are good enough to create a non-hackish patch. Kornel, are you > > > > interested? > > > > > > > > Scott > > > > > > I will have a look. > > > > > > > and here the patch. > > Tested and works great. Thank you! Please commit. > > Scott Committed at bc01f509. Kornel pgpWsOxLxPkim.pgp Description: Digitale Signatur von OpenPGP -- lyx-devel mailing list lyx-devel@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-devel
Re: Anyone on TeX Live 2021 pretest ? (to confirm a regression for ja LilyPond)
On Sun, May 30, 2021 at 09:12:35AM +0200, Kornel Benko wrote: > Am Sun, 30 May 2021 08:56:17 +0200 > schrieb Kornel Benko : > > > > I took a look at sub getConverter($$) but I'm not sure my Perl skills > > > are good enough to create a non-hackish patch. Kornel, are you > > > interested? > > > > > > Scott > > > > I will have a look. > > > > and here the patch. Tested and works great. Thank you! Please commit. Scott signature.asc Description: PGP signature -- lyx-devel mailing list lyx-devel@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-devel
Re: ctests for French User Guide are failing
On Sun, May 30, 2021 at 03:30:31PM +0200, Jean-Pierre Chrétien wrote: > Le 28/05/2021 à 14:24, Scott Kostyshak a écrit : > > On Fri, May 28, 2021 at 08:51:08AM +0200, Jean-Pierre Chrétien wrote: > > > Le 28/05/2021 à 02:14, Scott Kostyshak a écrit : > > > > The following ctests for the French User Guide on current master are > > > > failing for me: > > > > > > > > export/doc/fr/UserGuide_lyx22 (Failed) > > > > export/doc/fr/UserGuide_lyx23 (Failed) > > > > export/doc/fr/UserGuide_dvi (Failed) > > > > export/doc/fr/UserGuide_dvi3_texF (Failed) > > > > export/doc/fr/UserGuide_pdf (Failed) > > > > DEFAULTOUTPUT_export/doc/fr/UserGuide_pdf2 (Failed) > > > > export/doc/fr/UserGuide_pdf3 (Failed) > > > > export/doc/fr/UserGuide_pdf5_texF (Failed) > > > > > > Should be fixed now. > > > > Works well. Thanks for the quick fix, Jean-Pierre! > > The error that made the tests fail is quite peculiar. I copied the new > escape sequences at the end of section 6.8.1 from the English UserGuide > without marking it as French, and I got this error: > > ! Paragraph ended before \bbl@foreign@x was complete. > > When I look at the code, I do not see any missing parenthesis. > > eux\foreignlanguage{english}{.\nomenclature{%@, %|, %!, %"}{The quote sign > in TeX code is output by writing ' %"{}%"{} '.}} > > The error disappears when I mark the index entry as French, and the new code > is: > > .\nomenclature{%@, %|, %!, %"}{The quote sign in TeX code is output by > writing ' %"{}%"{} '.} > > Could this be a hidden bug affecting language embedding of index entries? > I'll try to build a MWE. Thanks for looking into it. I do not know LaTeX well, but I agree with you that I do not see any missing parenthesis. I wonder if this could be a bug in a LaTeX package (either nomenclature or the language handling). Scott signature.asc Description: PGP signature -- lyx-devel mailing list lyx-devel@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-devel
Re: ctests for French User Guide are failing
Le 28/05/2021 à 14:24, Scott Kostyshak a écrit : On Fri, May 28, 2021 at 08:51:08AM +0200, Jean-Pierre Chrétien wrote: Le 28/05/2021 à 02:14, Scott Kostyshak a écrit : The following ctests for the French User Guide on current master are failing for me: export/doc/fr/UserGuide_lyx22 (Failed) export/doc/fr/UserGuide_lyx23 (Failed) export/doc/fr/UserGuide_dvi (Failed) export/doc/fr/UserGuide_dvi3_texF (Failed) export/doc/fr/UserGuide_pdf (Failed) DEFAULTOUTPUT_export/doc/fr/UserGuide_pdf2 (Failed) export/doc/fr/UserGuide_pdf3 (Failed) export/doc/fr/UserGuide_pdf5_texF (Failed) Should be fixed now. Works well. Thanks for the quick fix, Jean-Pierre! The error that made the tests fail is quite peculiar. I copied the new escape sequences at the end of section 6.8.1 from the English UserGuide without marking it as French, and I got this error: ! Paragraph ended before \bbl@foreign@x was complete. When I look at the code, I do not see any missing parenthesis. eux\foreignlanguage{english}{.\nomenclature{%@, %|, %!, %"}{The quote sign in TeX code is output by writing ' %"{}%"{} '.}} The error disappears when I mark the index entry as French, and the new code is: .\nomenclature{%@, %|, %!, %"}{The quote sign in TeX code is output by writing ' %"{}%"{} '.} Could this be a hidden bug affecting language embedding of index entries? I'll try to build a MWE. -- Jean-Pierre -- lyx-devel mailing list lyx-devel@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-devel
Re: Anyone on TeX Live 2021 pretest ? (to confirm a regression for ja LilyPond)
Am Sun, 30 May 2021 08:56:17 +0200 schrieb Kornel Benko : > > I took a look at sub getConverter($$) but I'm not sure my Perl skills > > are good enough to create a non-hackish patch. Kornel, are you > > interested? > > > > Scott > > I will have a look. > and here the patch. Kornel diff --git a/lib/scripts/prefTest.pm b/lib/scripts/prefTest.pm index e98ac4ad2f..8e25b7986b 100644 --- a/lib/scripts/prefTest.pm +++ b/lib/scripts/prefTest.pm @@ -85,21 +85,28 @@ sub getConverter($$) { my ($l, $add) = @_; chomp($l); my ($from, $to, $cmd, $par); ($l, $from) = getNext($l); - return undef if ($from !~ /(tex|dvi)$/); + return undef if ($from !~ /(ps|tex|dvi)$/); ($l, $to) = getNext($l); return undef if ($to !~ /^((dvi3?|pdf[23456]?)(log)?)$/); - my ($checkfor, $substitute); + my ($checkfor, $substitute, $extrapar); if ($from =~ /tex/) { $checkfor = qr/\s+\-shell\-(escape|restricted)/; $substitute = "-shell-escape"; +$extrapar = qr/^latex/; + } + elsif ($from =~ /ps$/) { +$checkfor = qr/\s+\-dALLOWPSTRANSPARENCY/; +$substitute = "-dALLOWPSTRANSPARENCY"; +$extrapar = qr/hyperref-driver=dvips/; } else { $checkfor = qr/\s+-i\s+dvipdfmx-unsafe.cfg/; $substitute = "-i dvipdfmx-unsafe.cfg"; +$extrapar = qr/^hyperref-driver=dvipdfm/; } ($l, $cmd) = getNext($l); if ($add) { if ($cmd !~ $checkfor) { if ($cmd =~ /^(\S+)\s*(.*)$/) { @@ -110,11 +117,11 @@ sub getConverter($$) } else { $cmd =~ s/$checkfor//; } ($l, $par) = getNext($l); - return undef if ($par !~ /^(latex|hyperref-driver=dvipdfm)/); + return undef if ($par !~ $extrapar); my $key = "\"$from\" \"$to\""; if ($add) { return([$key, [$cmd, $par]]); } else { pgpkybCsF_b0n.pgp Description: Digitale Signatur von OpenPGP -- lyx-devel mailing list lyx-devel@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-devel