fr/beamer.lyx + system fonts + Xe/Lua fails

2016-09-19 Thread Scott Kostyshak
I wonder if this is the language nesting issue?

Attached is a more minimal example that gives the same error, which is
the following:

-
Runaway argument?
\let \AtEndDocument \@firstofone \@enddocumenthook \@checkend {docume\ETC.
! File ended while scanning use of \beamer@collect@@body.
 
\par 
<*> beamer.tex
  
I suspect you have forgotten a `}', causing me
to read past where you wanted me to stop.
I'll try to recover; but if the error is serious,
you'd better type `E' or `X' now and fix your file.

! Emergency stop.
<*> beamer.tex
-

Any ideas?

Scott
#LyX 2.3 created this file. For more info see http://www.lyx.org/
\lyxformat 512
\begin_document
\begin_header
\save_transient_properties true
\origin /systemlyxdir/examples/fr/
\textclass beamer
\use_default_options true
\maintain_unincluded_children false
\language french
\language_package default
\inputencoding auto
\fontencoding global
\font_roman "default" "FreeSans"
\font_sans "default" "FreeSans"
\font_typewriter "default" "FreeSans"
\font_math "auto" "auto"
\font_default_family default
\use_non_tex_fonts true
\font_sc false
\font_osf false
\font_sf_scale 100 100
\font_tt_scale 100 100
\use_microtype false
\graphics default
\default_output_format default
\output_sync 0
\bibtex_command default
\index_command default
\paperfontsize default
\spacing single
\use_hyperref false
\papersize default
\use_geometry true
\use_package amsmath 1
\use_package amssymb 1
\use_package cancel 1
\use_package esint 1
\use_package mathdots 1
\use_package mathtools 1
\use_package mhchem 1
\use_package stackrel 1
\use_package stmaryrd 1
\use_package undertilde 1
\cite_engine basic
\cite_engine_type default
\biblio_style plain
\use_bibtopic false
\use_indices false
\paperorientation portrait
\suppress_date false
\justification true
\use_refstyle 1
\index Index
\shortcut idx
\color #008000
\end_index
\secnumdepth 3
\tocdepth 3
\paragraph_separation indent
\paragraph_indentation default
\quotes_language french
\papercolumns 1
\papersides 1
\paperpagestyle default
\tracking_changes false
\output_changes false
\html_math_output 0
\html_css_as_file 0
\html_be_strict false
\end_header

\begin_body

\begin_layout Frame
\begin_inset Argument 4
status collapsed

\begin_layout Plain Layout
Un exemple
\end_layout

\end_inset


\end_layout

\begin_layout Frame
Soit par exemple une citation.
 Dans un environnement 
\begin_inset Flex Structure
status collapsed

\begin_layout Plain Layout
Cite
\end_layout

\end_inset

, vous pouvez spécifier les réglages de recouvrement via 
\begin_inset Flex Alert
status collapsed

\begin_layout Plain Layout
Insérer\SpecialChar menuseparator
Spécifications de recouvrement
\end_layout

\end_inset

.
 Si vous les faites et saisissez 
\begin_inset Quotes fld
\end_inset

2
\begin_inset Quotes frd
\end_inset

, la citation n’apparaîtra que sur la (sous-)diapo 2:
\end_layout

\begin_deeper
\begin_layout Quote
\begin_inset Argument 1
status collapsed

\begin_layout Plain Layout
2
\end_layout

\end_inset


\lang english
Fear no more the heat o’ the sun
\end_layout

\begin_layout Quote

\lang english
Nor the furious winter’s rages
\end_layout

\begin_layout Quote

\lang english
Thou thy worldly task hast done
\end_layout

\begin_layout Quote

\lang english
Home art gone, and ta’en thy wages
\end_layout

\end_deeper
\begin_layout Frame
Voilà comment fonctionne le concept, fondamentalement
\end_layout

\end_body
\end_document


signature.asc
Description: PGP signature


Re: fr/beamer.lyx + pdf4: encoding issue

2016-09-19 Thread Scott Kostyshak
On Tue, Sep 20, 2016 at 01:24:02AM +0200, Kornel Benko wrote:

> > > * change the comment from ERT to comment
> > 
> > I did not think of this possibility. I like it.
> > 
> > > * invert the test (we already have several cases of inverted:ERT)
> > 
> > Indeed but this one seems easily avoidable (I have not checked the
> > others).
> > 
> > Scott
> 
> I'd say, since it is ERT, which means 'latex', use the suggested  \'{e}.

I was at first against this because I thought the ERT inset was meant to
be read by French readers of the LyX beamer manual, and \'{e} looks ugly
(don't we use LyX to avoid backslashes and brackets?). But at the same
time I don't think it makes sense to deviate from the original (English)
version, where ERT is used. So I think you are right that is the way to
go, unless we want to change all versions of the Beamer manual to a
comment or note inset, and that seems like more work than should be done
for this trivial issue.

Changed to \'{e} in stable at 9f3518bc and cherry-picked to master at
1c7835c0.

Thanks for the discussion. I now have a better idea of how to deal with
this for similar issues when they come up.

Scott


signature.asc
Description: PGP signature


Re: cannot compile master

2016-09-19 Thread Kornel Benko
Am Dienstag, 20. September 2016 um 00:07:02, schrieb Stephan Witt 

> Am 11.09.2016 um 15:42 schrieb Kornel Benko :
> > 
> > Am Sonntag, 11. September 2016 um 12:24:26, schrieb Guenter Milde 
> > 
> >> On 2016-09-10, Kornel Benko wrote:
> >>> Am Freitag, 9. September 2016 um 22:29:23, schrieb Guenter Milde 
> >>> 
>  On 2016-09-09, Scott Kostyshak wrote:
> >> 
> >> 
> >> as of today, I cannot compile master, "make" fails with
>  ...
> >> GuiView.cpp:(.text+0x1fa85): undefined reference to 
> >> `QSvgRenderer::~QSvgRenderer()'
>  ...
> >> 
> >> ...
> >> 
> >>> Adding ${QT_QTSVG_LIBRARY} to target_link_libraries for lyx works here.
> >> 
> >> Dear Kornel,
> >> 
> >> this did the trick also here. Could you commit the patch, please?
> >> 
> >> Günter
> > 
> > Done at 050d817. Someone has to check if the change works on windows and 
> > MAC too.
> 
> I’m able to build and run LyX with Qt4 and Qt5 on Mac after your change and 
> with current HEAD.
> I’ve tested it with a cmake build with Xcode generator.
> 
> Stephan

Thanks for confirmation.

Kornel

signature.asc
Description: This is a digitally signed message part.


Re: fr/beamer.lyx + pdf4: encoding issue

2016-09-19 Thread Kornel Benko
Am Montag, 19. September 2016 um 16:28:28, schrieb Scott Kostyshak 

> On Mon, Sep 19, 2016 at 08:20:35PM +, Guenter Milde wrote:
> > On 2016-09-19, Scott Kostyshak wrote:
> > 
> > > [-- Type: text/plain, Encoding: quoted-printable --]
> > 
> > > If I try to compile fr/beamer.lyx to PDF (XeTeX) (using the default TeX
> > > fonts) I get the following LyX error:
> > 
> > >   Could not find LaTeX command for character 'é'. It is suggested to
> > >   change the document encoding to utf8.
> > 
> > This is a very outdated suggestion (and should either be removed or 
> > updated).
> > 
> > In most cases, it only helps to change the encoding to utf8, if you also
> > define new Unicode character bindings in the user-preamble.
> > 
> > Furthermore, with XeTeX and 8-bit TeX fonts, the encoding is ascii - no
> > other encoding works with this combination!
> > 
> > Normally, the é is converted by lib/unicodesymbols to \'{e} and all is fine.
> > 
> > > This error is from a 'é' in a comment (in ERT):
> > > %Pour illustrer le différence entre decouvert et visible:
> > 
> > ERT is a special case - it is up to the user to ensure proper working.
> > 
> > > Should the encoding be change?
> > 
> > No.
> 
> OK thanks for the explanation.
> 
> > Alternatives:
> > 
> > * change the comment from ERT to comment
> 
> I did not think of this possibility. I like it.
> 
> > * invert the test (we already have several cases of inverted:ERT)
> 
> Indeed but this one seems easily avoidable (I have not checked the
> others).
> 
> Scott

I'd say, since it is ERT, which means 'latex', use the suggested  \'{e}.

Kornel

signature.asc
Description: This is a digitally signed message part.


Re: cannot compile master

2016-09-19 Thread Stephan Witt
Am 11.09.2016 um 15:42 schrieb Kornel Benko :
> 
> Am Sonntag, 11. September 2016 um 12:24:26, schrieb Guenter Milde 
> 
>> On 2016-09-10, Kornel Benko wrote:
>>> Am Freitag, 9. September 2016 um 22:29:23, schrieb Guenter Milde 
>>> 
 On 2016-09-09, Scott Kostyshak wrote:
>> 
>> 
>> as of today, I cannot compile master, "make" fails with
 ...
>> GuiView.cpp:(.text+0x1fa85): undefined reference to 
>> `QSvgRenderer::~QSvgRenderer()'
 ...
>> 
>> ...
>> 
>>> Adding ${QT_QTSVG_LIBRARY} to target_link_libraries for lyx works here.
>> 
>> Dear Kornel,
>> 
>> this did the trick also here. Could you commit the patch, please?
>> 
>> Günter
> 
> Done at 050d817. Someone has to check if the change works on windows and MAC 
> too.

I’m able to build and run LyX with Qt4 and Qt5 on Mac after your change and 
with current HEAD.
I’ve tested it with a cmake build with Xcode generator.

Stephan

Re: fr/beamer.lyx + pdf4: encoding issue

2016-09-19 Thread Scott Kostyshak
On Mon, Sep 19, 2016 at 08:20:35PM +, Guenter Milde wrote:
> On 2016-09-19, Scott Kostyshak wrote:
> 
> > [-- Type: text/plain, Encoding: quoted-printable --]
> 
> > If I try to compile fr/beamer.lyx to PDF (XeTeX) (using the default TeX
> > fonts) I get the following LyX error:
> 
> >   Could not find LaTeX command for character 'é'. It is suggested to
> >   change the document encoding to utf8.
> 
> This is a very outdated suggestion (and should either be removed or updated).
> 
> In most cases, it only helps to change the encoding to utf8, if you also
> define new Unicode character bindings in the user-preamble.
> 
> Furthermore, with XeTeX and 8-bit TeX fonts, the encoding is ascii - no
> other encoding works with this combination!
> 
> Normally, the é is converted by lib/unicodesymbols to \'{e} and all is fine.
> 
> > This error is from a 'é' in a comment (in ERT):
> > %Pour illustrer le différence entre decouvert et visible:
> 
> ERT is a special case - it is up to the user to ensure proper working.
> 
> > Should the encoding be change?
> 
> No.

OK thanks for the explanation.

> Alternatives:
> 
> * change the comment from ERT to comment

I did not think of this possibility. I like it.

> * invert the test (we already have several cases of inverted:ERT)

Indeed but this one seems easily avoidable (I have not checked the
others).

Scott


signature.asc
Description: PGP signature


Re: fr/beamer.lyx + pdf4: encoding issue

2016-09-19 Thread Guenter Milde
On 2016-09-19, Scott Kostyshak wrote:

> [-- Type: text/plain, Encoding: quoted-printable --]

> If I try to compile fr/beamer.lyx to PDF (XeTeX) (using the default TeX
> fonts) I get the following LyX error:

>   Could not find LaTeX command for character 'é'. It is suggested to
>   change the document encoding to utf8.

This is a very outdated suggestion (and should either be removed or updated).

In most cases, it only helps to change the encoding to utf8, if you also
define new Unicode character bindings in the user-preamble.

Furthermore, with XeTeX and 8-bit TeX fonts, the encoding is ascii - no
other encoding works with this combination!

Normally, the é is converted by lib/unicodesymbols to \'{e} and all is fine.

> This error is from a 'é' in a comment (in ERT):
> %Pour illustrer le différence entre decouvert et visible:

ERT is a special case - it is up to the user to ensure proper working.

> Should the encoding be change?

No.

Alternatives:

* change the comment from ERT to comment
* invert the test (we already have several cases of inverted:ERT)

Günter



fr/beamer.lyx + pdf4: encoding issue

2016-09-19 Thread Scott Kostyshak
If I try to compile fr/beamer.lyx to PDF (XeTeX) (using the default TeX
fonts) I get the following LyX error:

  Could not find LaTeX command for character 'é'. It is suggested to
  change the document encoding to utf8.

This error is from a 'é' in a comment (in ERT):
%Pour illustrer le différence entre decouvert et visible:

Should the encoding be change?

Scott


signature.asc
Description: PGP signature


Re: suspended ctests

2016-09-19 Thread Guenter Milde
On 2016-09-16, Kornel Benko wrote:

> [-- Type: text/plain, Encoding: quoted-printable --]

> Am Freitag, 16. September 2016 um 19:28:04, schrieb Guenter Milde 
> 
>> On 2016-09-13, Guenter Milde wrote:
>> > On 2016-09-13, Kornel Benko wrote:

>> >>> >> * Do you still need the "suspendeTests"? What for?

>> >>> > Yes, we need them. This tests will not be executed with the call
>> >>> > 'ctest
>> >>> > -L export'.

>> ...

>> >>> In the meantime, we know the particular problem for most of the suspended
>> >>> tests.
>> >>> Some were fixed. Others require inversion (we know the problem is a
>> >>> wontfix or a bug on trac).

>> Therefore, I'll reword the question:

>> Do you call `ctest -L export` regularely?

> This is my alias for export:
>   ctest -j12 -timeout 300 -L export -E "xhtml|lyx16|lyx21|lyx22"

>> Could you imagine calling `ctest -L export -LE "texissues|attic"` instead?

> Sure, but if you think texissues should not be tested, make them part
> of suspended.

-1 this would mean duplicating all 83 lines of the "texissues" section in
   invertedTests into suspendedTests
   
-1 this would not allow me to get rid of the suspendedTests filter.   

OTOH, the alias might easily be changed to:

   ctest -j12 -timeout 300 -L export -E "xhtml|lyx16|lyx21|lyx22" -LE 
"texissues|attic"

>>   +1 filters not only 58 but 80 "wontfix" inverted tests

>>   +4 makes the test system less complicated.


Günter