Am Freitag, 11. August 2006 13:20 schrieb Helge Hafting: > The make went fine. The make install ran for a long time, then: > > make[4]: Entering directory `/usr/src/lyx-devel/lib/doc' > PYTHONPATH=../../lib/lyx2lyx python -tt ./doc_toc.py cs > Traceback (most recent call last): > File "./doc_toc.py", line 131, in ? > main(sys.argv) > File "./doc_toc.py", line 127, in main > file.write() > File "./../lyx2lyx/LyX.py", line 262, in write > self.output.write(line.encode(self.encoding)+"\n") > UnicodeEncodeError: 'latin-1' codec can't encode character u'\u016f' in > position 2: ordinal not in range(256)
We have two problems here: First we need the attached patch, but with the correct Czech translation of "LyX Documentation Table of Contents". Then the error message changes to PYTHONPATH=../../lib/lyx2lyx python -tt ../../../lib/doc/doc_toc.py cs Traceback (most recent call last): File "../../../lib/doc/doc_toc.py", line 132, in ? main(sys.argv) File "../../../lib/doc/doc_toc.py", line 128, in main file.write() File "/home/me/lyx-1.5/lib/lyx2lyx/LyX.py", line 262, in write self.output.write(line.encode(self.encoding)+"\n") File "/usr/lib/python2.3/encodings/iso8859_2.py", line 18, in encode return codecs.charmap_encode(input,errors,encoding_map) UnicodeEncodeError: 'charmap' codec can't encode character u'\xae' in position 10: character maps to <undefined> It seems that lib/doc/cs_Tutorial.lyx contains some non-latin2 characters. Why? In what encoding is lib/doc/cs_Tutorial.lyx supposed to be? Georg
Index: lib/doc/doc_toc.py =================================================================== --- lib/doc/doc_toc.py (Revision 14634) +++ lib/doc/doc_toc.py (Arbeitskopie) @@ -36,7 +36,8 @@ import depend # Specific language information # info["isoname"] = (language, language_quotes, enconding, TOC_translated) -info = { 'da' : ('danish', 'german', 'latin1', "Indholdsfortegnelse over LyX's dokumentation"), +info = { 'cs' : ('czech', 'german', 'latin2', "LyX Documentation Table of Contents"), + 'da' : ('danish', 'german', 'latin1', "Indholdsfortegnelse over LyX's dokumentation"), 'de' : ('german', 'german', 'latin1', "Inhaltsverzeichnis LyX Dokumentation"), 'fr' : ('french', 'french', 'latin1', "Plan de la documentation"), 'ru' : ('russian', 'english', 'koi8-r', "LyX Documentation Table of Contents"),