Angus Leeming <[EMAIL PROTECTED]> writes:

| Lars Gullik Bjønnes wrote:
| > btw... lyxlex (and the filereading) must be adapted to read utf8, and
| > lyx2lyx must do its best to translate the old formats (to utf8)...
| 
| Well, that's trivial because the header

Well, that part yes.

| 
| #LyX 1.3 created this file. For more info see http://www.lyx.org/
| \lyxformat 221
| 
| is unchanged in UTF-8. We'll just need to read the \lyxformat to ascertain
| whether the rest of the file is encoded in UTF-8 and, if not, use Python's
| unicode stuff to perform the transformation from LyX 1.4 format.

You need to parse the file a bit to discover the norm so that you know
from what encoding to convert. But sure, I do not think this will be
hard.

-- 
        Lgb

Reply via email to