Jürgen Spitzmüller wrote:
Paul A. Rubin wrote:
Preambles still amble along.  The problem is the copyright symbol in the
footer:

\cfoot{PROPRIETARY\\\vspace{2mm}Copyright © 2004 NECSA, CompuSim AB}

For whatever reason, LyX can't digest it.

Have a look at the RELEASE-NOTES:

Known issues with version 1.5.0
------------------------------------

- User layout files must be converted to UTF-8

In previous versions, layout styles were allowed to use non-ASCII names
using the local encodings. LyX-1.5 now assumes that all layout files are
UTF-8 encoded. This means that non-ASCII style names are still allowed
but they must be valid UTF-8 strings. One way of doing the conversion
is to use iconv. Using bash, the script below should work:

#! /bin/sh

cd /path/to/layouts
for l in *
do
  cp "$l" tmp.txt
  iconv -f latin1 -t utf8 tmp.txt -o "$l"
done
rm -f tmp.txt


Actually, it was iconv that spit up the error message about the illegal byte sequence in Erwin's layout file. Also, I used an editor (Notepad++) to convert the layout file. Notepad++ reported the original as being ASCII, despite the presence of the copyright character. I saved it as UTF-8 (or so Notepad++ said); the copyright symbol was still there and iconv was still unhappy. Maybe I need to use something other than Notepad++ for conversions (?).

Fortunately, manual conversion (backspace over the copyright symbol) worked (which Erwin confirmed). :-)

/Paul

Reply via email to