Asger Ottar Alstrup wrote:

> LaTeX can do UTF8, it seems.

Yes, we know that, but it is still incomplete.

> http://mail.nl.linux.org/linux-utf8/2004-04/msg00000.html
> 
> Just use "\usepackage[utf8]{inputenc}".
> 
> Let's do UTF-8 all over the place as the first step.
> 
> I can't believe nobody did this so far!
> 
> Georg, you can do that in a hour, can't you?

Maybe not in an hour, but not much more.

> LyX 1.5 would instantly become useful again, and thus there is a chance
> we would have testers!
> 
> After that, we can consider to support the encodings LyX-1.4 can use, to
> the same level as LyX-1.4, but I would say that this is a second
> priority: UTF-8 is superior in almost any way.

I was told that it is not superior in LaTeX.

> After that, we can see if more should be done, but I have not heard many
> requests for strange encodings, so why bother at all?

I have no strong opinion on that. I do however not want to make it work
without knowing that this work goes into the right direction and will not
be ripped apart shortly afterwards.

One possibility would be to convert all latex methods to docstream. For now
we could then use the same utf8 stream we already use for plain text. Later
we could then either use a stringstream and convert the result afterwards,
or we could create a new file stream with a LaTeX conversion facet that
takes the wanted encoding as constructor argument.
In both cases an individual inset could already put some LaTeX commands in
the stream instead of UCS4 characters if that should be needed.

What do others think? If we are going this way I can do the conversion
tonight or tomorrow.


Georg

Reply via email to