On 2011-10-03, Jürgen Spitzmüller wrote:
> Tao Cumplido wrote:
>> when I select 'use non-Tex fonts' and select German to be my document
>> language I get an error message.

> It's a bug in polyglossia.

Indeed. However a different one, so that

> Entering
> \usepackage{xkeyval}

does not help. (

In Debian/Ubuntu, polyglossia is at version 2009/01/25 v1.0.2 
and has a bug described e.g. in 
http://web.archiveorange.com/archive/v/tMRBZCv1fz60QnWYVKfO

  fortunately this particular problem is easy to fix: you have just to
  put braces around UTF-8 characters in last 4 \XeTeXinterchartoks rules.
  But unfortunately that's not all. If I compile a German document with
  shorthands, I am still getting erroneous results: for example, "`
  instead of the expected opening quote results into the sequence "?`.
  This is because you are attempting to emulate shorthands using the
  \XeTeXinterchartoks primitive, which (according to the documentation)
  is intended just to insert something between two characters, but not to
  remove those characters from the output.

If editing gloss-german.ldf is not an option, the workaround is to export
the file from LyX and change the line

\setdefaultlanguage[babelshorthands=true]{german}

to 

\setdefaultlanguage{german}

.
  
Polyglossia's babel shorthands are an "experimental feature". 
Does LyX use the babel shorthands anywhere? If not, please remove the
[babelshorthands=true] option from the LyX generated output. 

A power user that wants to use babel shorthands in ERT can easily add the 
line

\setdefaultlanguage[babelshorthands=true]{german}

in his/her LaTeX preamble.

Günter

Reply via email to