Bo Peng wrote:
Thank you for the help Bo, but I did not need to do what you suggested.
Instead, as Steve mentioned, I deleted the python package that the LyX
installer installed and the Tex Info Rescan function works fine now.
The problem seems to be with the bundled python, which misses some
module to recognize iso-8859-15 encoding. Since 8859-15 is not really
needed (8859-1 works fine), the easiest solution is to change the
encoding, rather than adding more modules and making the windows
installer larger.
Of course, installing a full python will work, and may be an easier
solution than modifying the scripts.
Cheers,
Bo
Do you think the script, #!, is the reason?
TeXFiles.py
#!/usr/bin/env python <---**
# -*- coding: iso-8859-1 -*-
-------------------------------------------------
http://pytut.infogami.com/node4.html
"For example, to write Unicode literals including the Euro currency
symbol, the ISO-8859-15 encoding can be used, with the Euro symbol
having the ordinal value 164. This script will print the value 8364
(the Unicode codepoint corresponding to the Euro symbol) and then exit:
# -*- coding: iso-8859-15 -*-
currency = u"€"
print ord(currency)
If your editor supports saving files as UTF-8 with a byte order mark
(BOM), you can use that instead of an encoding declaration. IDLE
supports this capability if Options/General/Default Source
Encoding/UTF-8 is set. Note that older versions of Python (2.2 and
earlier) don't understand the BOM, and it also doesn't work with
executable scripts that uses the #! mechanism." <-------**
------------------------------------------------------
Enrico Forestieri wrote:
"After selecting "TeX information" you can see the following
error on the console:
File "C:/Programmi/LyX14/Resources/scripts/TeXFiles.py", line 2
SyntaxError: encoding problem: with BOM<------**
-----------------------------------------------------------
Regards,
Stephen