> I can not compile doc/TOC.lyx. I guess this is caused by line
> \usepackage[utf-8]{inputenc}.
Because the correct line would be
\usepackage[utf8]{inputenc}
The attached trivial patch fixes this and sets the Python file encoding to utf-8 as we once agred
that all our scripts for LyX 1.5 should be unicode encoded. All are now, only not doc-toc.py and the
brand new "ext_copy.py" from two weeks ago.
OK to apply the patch?
regards Uwe
Index: doc/doc_toc.py
===================================================================
--- doc/doc_toc.py (revision 18933)
+++ doc/doc_toc.py (working copy)
@@ -1,7 +1,7 @@
#! /usr/bin/env python
-# -*- coding: iso-8859-1 -*-
+# -*- coding: utf-8 -*-
# This file is part of the LyX Documentation
-# Copyright (C) 2004 José Matos <[EMAIL PROTECTED]>
+# Copyright (C) 2004 José Matos <[EMAIL PROTECTED]>
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
@@ -113,7 +113,7 @@
lang = dir
file = LyX.NewFile(output = output)
data = info[lang]
- file.set_header(language = data[0], language_quotes = data[1], inputencoding = "utf-8")
+ file.set_header(language = data[0], language_quotes = data[1], inputencoding = "utf8")
file.language = data[0]
file.encoding = "utf-8"
body = [ LyX.Paragraph('Title', [data[3]])]
Index: scripts/ext_copy.py
===================================================================
--- scripts/ext_copy.py (revision 18933)
+++ scripts/ext_copy.py (working copy)
@@ -1,5 +1,5 @@
#! /usr/bin/env python
-# -*- coding: iso-8859-1 -*-
+# -*- coding: utf-8 -*-
# file ext_copy.py
# This file is part of LyX, the document processor.