Re: lyx2lyx behaviour with truncated documents.

2003-12-10 Thread Jose' Matos
On Sunday 07 December 2003 13:20, Lars Gullik Bjønnes wrote: > > '-e' for log? > > '-l' or '--logfile' would be a bit better. > > imho... stderr should be for error in the program and perhaps debug > messages. But that is precisely what we are logging. And we offer the possibility of redirectio

Re: lyx2lyx behaviour with truncated documents.

2003-12-07 Thread Lars Gullik Bjønnes
"Jose' Matos" <[EMAIL PROTECTED]> writes: | I have implemented that as an option in lyx2lyx. The argument is either -e | or --err, to be consistent with all the other arguments. If it has more than | 2 letters the it get a double dash. '-e' for log? '-l' or '--logfile' would be a bit better

Re: lyx2lyx behaviour with truncated documents.

2003-12-05 Thread Angus Leeming
Jose' Matos wrote: >> Ok, José, the attached patch should make your life easy. You'll >> need to invoke the dialog as >> .getDialogs().show("log", "lyx2lyx "); >> where is the LyXView variable ('*owner') in >> LyXFunc::dispatch. > And where should I do this? I don't know really. The c

Re: lyx2lyx behaviour with truncated documents.

2003-12-05 Thread Jose' Matos
On Friday 05 December 2003 13:11, Angus Leeming wrote: > Angus Leeming wrote: > >> I like that solution, too, but I have no clue how to implement > >> that. > > > > Invoke lyx2lyx as: > > > > string command = LibFileSearch("lyx2lyx", > > "lyx2lyx"); command += " -t"

Re: lyx2lyx behaviour with truncated documents.

2003-12-05 Thread Karsten Heymann
On Fri, 5 Dec 2003 12:08:32 +0100 "Andre Poenitz" <[EMAIL PROTECTED]> wrote: > Some urban legend covers error message translations of long forgotten > OSes. Something like > > 'no space left on device' -> 'Kein Weltraum links vom Gerät' > (sort of 'no outerspace on the left hand side of the

Re: lyx2lyx behaviour with truncated documents.

2003-12-05 Thread Angus Leeming
Angus Leeming wrote: >> I like that solution, too, but I have no clue how to implement >> that. > > Invoke lyx2lyx as: > > string command = LibFileSearch("lyx2lyx", > "lyx2lyx"); command += " -t" > + tostr(LYX_FORMAT) >

Re: lyx2lyx behaviour with truncated documents.

2003-12-05 Thread Jose' Matos
On Friday 05 December 2003 11:20, Andre Poenitz wrote: > > That was my reasoning when initiating this thread, and this is why I > > like Angus solution, that could also be applied to any program used to > > import lyx files. > > I like that solution, too, but I have no clue how to implement that.

Re: lyx2lyx behaviour with truncated documents.

2003-12-05 Thread Angus Leeming
Andre Poenitz wrote: > On Fri, Dec 05, 2003 at 10:44:11AM +, Jose' Matos wrote: >> That was my reasoning when initiating this thread, and this is >> why I like >> Angus solution, that could also be applied to any program used to >> import lyx files. > > I like that solution, too, but I ha

Re: lyx2lyx behaviour with truncated documents.

2003-12-05 Thread Andre Poenitz
On Fri, Dec 05, 2003 at 10:44:11AM +, Jose' Matos wrote: > That was my reasoning when initiating this thread, and this is why I like > Angus solution, that could also be applied to any program used to import lyx > files. I like that solution, too, but I have no clue how to implement that.

Re: lyx2lyx behaviour with truncated documents.

2003-12-05 Thread Andre Poenitz
On Fri, Dec 05, 2003 at 10:29:21AM +, Jose' Matos wrote: > On Friday 05 December 2003 10:10, Angus Leeming wrote: > > > > Can lyx be made to read lyx2lyx's stderr? Maybe lyx should invoke > > lyx2lyx as > > > > lyx2lyx oldfile.lyx > newfile.lyx 2> convert.log > > > > and then load convert.log u

Re: lyx2lyx behaviour with truncated documents.

2003-12-05 Thread Jose' Matos
On Friday 05 December 2003 10:35, Andre Poenitz wrote: > > > > Does tex2lyx passes messages like this to lyx? > > No. tex2lyx is not integrated in LyX at all. I know. :-) > > Say you have some kind of malformed latex, how does tex2lyx reacts to > > that? > > It complains to stderr and tries

Re: lyx2lyx behaviour with truncated documents.

2003-12-05 Thread Andre Poenitz
On Fri, Dec 05, 2003 at 10:24:33AM +, Jose' Matos wrote: > On Friday 05 December 2003 10:01, Andre Poenitz wrote: > > > > > > What should lyx2lyx do in that case? > > > > > > 1) Silently add the missing tag. > > > 2) Complain but add the missing tag. > > > 3) Abort the convertion. > > >

Re: lyx2lyx behaviour with truncated documents.

2003-12-05 Thread Jose' Matos
On Friday 05 December 2003 10:10, Angus Leeming wrote: > > Can lyx be made to read lyx2lyx's stderr? Maybe lyx should invoke > lyx2lyx as > > lyx2lyx oldfile.lyx > newfile.lyx 2> convert.log > > and then load convert.log up into the Log dialog? I like that. I think that the error or warning me

Re: lyx2lyx behaviour with truncated documents.

2003-12-05 Thread Jose' Matos
On Friday 05 December 2003 10:01, Andre Poenitz wrote: > > > > What should lyx2lyx do in that case? > > > > 1) Silently add the missing tag. > > 2) Complain but add the missing tag. > > 3) Abort the convertion. > > 2 would be friendly, but the complain should show up as a real LyX >

Re: lyx2lyx behaviour with truncated documents.

2003-12-05 Thread Angus Leeming
Andre Poenitz wrote: >> 1) Silently add the missing tag. >> 2) Complain but add the missing tag. >> 3) Abort the convertion. > > 2 would be friendly, but the complain should show up as a real LyX > warning message. If that's not possible, I'd even go for 3. Can lyx be made to read lyx2lyx's stder

Re: lyx2lyx behaviour with truncated documents.

2003-12-05 Thread Andre Poenitz
On Fri, Dec 05, 2003 at 09:17:04AM +, Jose' Matos wrote: > Hello all, > I have a doubt regarding lyx2lyx behaviour when facing truncated documents. > We know that we have a truncated document if the \end_document tag is > missing in the lyx file. > > What should lyx2lyx do in th

lyx2lyx behaviour with truncated documents.

2003-12-05 Thread Jose' Matos
Hello all, I have a doubt regarding lyx2lyx behaviour when facing truncated documents. We know that we have a truncated document if the \end_document tag is missing in the lyx file. What should lyx2lyx do in that case? 1) Silently add the missing tag. 2) Complai