Martin Vermeer <[EMAIL PROTECTED]> writes: > - # Put here the conversions needed from LaTeX string > - # to LyXText: > + # Put here the conversions needed from LaTeX string to LyXText: > + # Umlauted characters: > + fullcontent = fullcontent.replace(r'\\\"a', u'ä').replace(r'\\\"o', u'ö').replace(r'\\\"u', u'ü') > + # Same German style: > + fullcontent = fullcontent.replace(r'"a', u'ä').replace(r'"o', u'ö').replace(r'"u', u'ü')
This doesn't look very robust. What about Noël/No\"el?. Can't you make use of a tool that's dedicated to this type of conversion, like recode? http://www.delorie.com/gnu/docs/recode/recode_13.html Angus