On Mon, 19 Nov 2007 23:30:04 +0000 (UTC)
Angus Leeming <[EMAIL PROTECTED]> wrote:

> 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

Except that this isn't just a charset conversion problem, but a general
latex -> lyxtext one. Been thinking about using tex2lyx... rather would
avoid that. I would be happy if the common use cases are handled
transparently, and the less common ones without crash or data loss,
with some manual patch-up at most.

- Martin

Reply via email to