doc/doc_toc.py: - fix the input encoding of the TOC.lyx files

- set Python file encoding to utf-8
scripts/ext_copy.py: - set Python file encoding to utf-8

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18943 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Uwe Stöhr 2007-06-29 19:13:57 +00:00
parent 39d3f11612
commit c48221aea8
2 changed files with 4 additions and 4 deletions

View File

@ -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 <jamatos@lyx.org>
# Copyright (C) 2004 José Matos <jamatos@lyx.org>
#
# 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 @@ def build_toc(output, documents, lang=None):
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 = "auto")
file.language = data[0]
file.encoding = "utf-8"
body = [ LyX.Paragraph('Title', [data[3]])]

View File

@ -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.