Re: about tex2lyx and Unicode

2008-10-16 Thread Andre Poenitz
On Thu, Oct 16, 2008 at 05:41:56PM +0200, Georg Baum wrote: > Abdelrazak Younes wrote: > > > On 13/10/2008 21:31, Georg Baum wrote: > >> Both ascii and latin1 are a subset of utf8, > > > > ascii certainly but latin1, I don't think so, AFAIK. latin1 is a subset > > of ucs4/utf32, is that what you

Re: about tex2lyx and Unicode

2008-10-16 Thread Andre Poenitz
On Thu, Oct 16, 2008 at 05:40:51PM +0200, Georg Baum wrote: > Andre Poenitz wrote: > > > Or slurp in the contents of the .tex file and try various encodings > > until we find one that "does the trick", possibly after cutting it > > into parts for which we know that the encoding stays constant. >

Re: about tex2lyx and Unicode

2008-10-16 Thread Georg Baum
Abdelrazak Younes wrote: > On 13/10/2008 21:31, Georg Baum wrote: >> Both ascii and latin1 are a subset of utf8, > > ascii certainly but latin1, I don't think so, AFAIK. latin1 is a subset > of ucs4/utf32, is that what you meant? Of course you are right, I mixed that up. So if tex2lyx detects a

Re: about tex2lyx and Unicode

2008-10-16 Thread Georg Baum
Andre Poenitz wrote: > Or slurp in the contents of the .tex file and try various encodings > until we find one that "does the trick", possibly after cutting it > into parts for which we know that the encoding stays constant. Yes. Note that this can become quite tricky, though: Some variable width

Re: about tex2lyx and Unicode

2008-10-13 Thread rgheck
Andre Poenitz wrote: On Tue, Oct 14, 2008 at 12:19:28AM +0200, Uwe Stöhr wrote: BTW, does the fact that you are now working on this mean that the tex2lyx-python ghost is finally dead? What was this ghost? Some people were pondering re-doing tex2lyx in python. There even seems s

Re: about tex2lyx and Unicode

2008-10-13 Thread Uwe Stöhr
Andre Poenitz schrieb: So I am glad to hear that I am allowed to contribute to this excellent piece of code even if only one developer agrees with me. You are welcome ;-) regards Uwe

Re: about tex2lyx and Unicode

2008-10-13 Thread Andre Poenitz
On Tue, Oct 14, 2008 at 12:19:28AM +0200, Uwe Stöhr wrote: > > BTW, does the fact that you are now working on this mean that the > > tex2lyx-python ghost is finally dead? > > What was this ghost? Some people were pondering re-doing tex2lyx in python. There even seems some bits of python out there

Re: about tex2lyx and Unicode

2008-10-13 Thread Uwe Stöhr
> BTW, does the fact that you are now working on this mean that the > tex2lyx-python ghost is finally dead? What was this ghost? I'm now working for over a year on tex2lyx, fixed many bugs and added lots of new features for every past LyX 1.5.x release. Also JMarc and Jürgen contributed a lot, s

Re: about tex2lyx and Unicode

2008-10-13 Thread Andre Poenitz
On Mon, Oct 13, 2008 at 11:17:56PM +0200, Jean-Marc Lasgouttes wrote: > Andre Poenitz <[EMAIL PROTECTED]> writes: > > That assertion seems incompatible with e.g. line 2244-2249 in > > tex2lyx/text.cpp, which, incidentally have been changed last by you. > > Once upon a time, That was 03/03/03 18:4

Re: about tex2lyx and Unicode

2008-10-13 Thread Jean-Marc Lasgouttes
Andre Poenitz <[EMAIL PROTECTED]> writes: > That assertion seems incompatible with e.g. line 2244-2249 in > tex2lyx/text.cpp, which, incidentally have been changed last by you. Once upon a time, a lazy gremlin decided that latin1 German umlauts were an absolute prerequisite for a tex->lyx converte

Re: about tex2lyx and Unicode

2008-10-13 Thread Abdelrazak Younes
On 13/10/2008 21:31, Georg Baum wrote: Both ascii and latin1 are a subset of utf8, ascii certainly but latin1, I don't think so, AFAIK. latin1 is a subset of ucs4/utf32, is that what you meant? Abdel.

Re: about tex2lyx and Unicode

2008-10-13 Thread Andre Poenitz
On Mon, Oct 13, 2008 at 11:02:12PM +0200, Jean-Marc Lasgouttes wrote: > Andre Poenitz <[EMAIL PROTECTED]> writes: > > Acually I think we should switch .lyx encoding to utf8 for good. Of > > course, the parameter to \inputencoding can and should be kept and if > > possible used in the output, but ot

Re: about tex2lyx and Unicode

2008-10-13 Thread Jean-Marc Lasgouttes
Andre Poenitz <[EMAIL PROTECTED]> writes: > Acually I think we should switch .lyx encoding to utf8 for good. Of > course, the parameter to \inputencoding can and should be kept and if > possible used in the output, but otherwise there is no real reason to > keep an uncertain encoding in the .lyx fo

Re: about tex2lyx and Unicode

2008-10-13 Thread Andre Poenitz
On Mon, Oct 13, 2008 at 09:31:34PM +0200, Georg Baum wrote: > Uwe Stöhr wrote: > > > "magic" does not help in general as we will still stay sticked where we > > are. We need a general solution to be able to create a lyxformat newer > > than 248. I attached a LyX file and its TeX output. This one c

Re: about tex2lyx and Unicode

2008-10-13 Thread Georg Baum
Uwe Stöhr wrote: > "magic" does not help in general as we will still stay sticked where we > are. We need a general solution to be able to create a lyxformat newer > than 248. I attached a LyX file and its TeX output. This one compiles fine > with latex and pdflatex. The exercise we have is to imp

about tex2lyx and Unicode

2008-10-12 Thread Uwe Stöhr
>> So, does this completely fix this? Or is there still work to be done >> with the inputenc stuff? > > I guess there's a lot left. But I'll approach that on a case-by-case > base. Better get known cases right instead of being stuck for years > while waiting for perfect solutions to appear magical