Re: [patch] allow percent lengths for VSpace and HSpace dialog

2009-07-21 Thread Uwe Stöhr
> Thanks, it works now. I committed some small tweaks. Thanks. regards Uwe

Re: Berlin

2009-07-21 Thread Kornel Benko
Am Dienstag 21 Juli 2009 schrieb Andre Poenitz: > On Tue, Jul 21, 2009 at 12:18:20PM +0200, Pavel Sanda wrote: > > Pavel Sanda wrote: > > > ok so lets fix at least wednesday evening. 8 pm? 9 pm? > > > > > > > > > fyi i'm not on a vacation and my resources to explore nearabouts > > > pubs and

Re: Options for modules

2009-07-21 Thread rgheck
On 07/21/2009 02:55 PM, Paul A. Rubin wrote: Hi all, Is there any way to pass an optional argument (entered in Document -> Settings) to a module? I can't see one. (This relates to fixing bug 5058.) Do you mean pass it to a package the module loads? If so, then it will be passed down the l

Options for modules

2009-07-21 Thread Paul A. Rubin
Hi all, Is there any way to pass an optional argument (entered in Document -> Settings) to a module? I can't see one. (This relates to fixing bug 5058.) Thanks, Paul

Re: Berlin

2009-07-21 Thread Andre Poenitz
On Tue, Jul 21, 2009 at 12:18:20PM +0200, Pavel Sanda wrote: > Pavel Sanda wrote: > > ok so lets fix at least wednesday evening. 8 pm? 9 pm? > > > > > fyi i'm not on a vacation and my resources to explore nearabouts > > pubs and sit on net while discussing proposals here will be limited. >

Re: [patch] allow percent lengths for VSpace and HSpace dialog

2009-07-21 Thread Jürgen Spitzmüller
Uwe Stöhr wrote: > The bug was again that I only did the "-" -> "minus" conversion only when > the length contained a percent unit. This is now fixed. Thanks, it works now. I committed some small tweaks. Jürgen

Re: [patch] allow percent lengths for VSpace and HSpace dialog

2009-07-21 Thread Uwe Stöhr
> Thanks, but the result is not correct. Lyx2lyx reverts to > \hspace*{1cm+1mm-2mm} The bug was again that I only did the "-" -> "minus" conversion only when the length contained a percent unit. This is now fixed. regards Uwe

Re: [patch] allow percent lengths for VSpace and HSpace dialog

2009-07-21 Thread Jürgen Spitzmüller
BTW I think that this code o = document.body[i+1].find("\\length") if o == -1: document.warning("Error: Cannot find lenght for \\hspace!") break # search for the beginning of the value via the space k = document.body[i+1].find(" ") length = documen

LyX in different Linux distros (page in Open Source Watershed)

2009-07-21 Thread Christian Ridderström
Hi, The site Open Source Watershed tracks which version of a software that is available in a specific version of a distribution. There's a page for LyX, perhaps useful for us to know about: http://oswatershed.org/pkg/lyx cheers /Christian PS. Here's a dump of the current state: Dis

Re: [patch] allow percent lengths for VSpace and HSpace dialog

2009-07-21 Thread Jürgen Spitzmüller
Uwe Stöhr wrote: > > I was talking about negative *non*-glue lengths such as "-2cm", which do > > not > > > need to be reverted at all. > > This already works correctly. Good. > > Nothing in the test case, BTW, does revert correctly to 1.6. > > Because I only reverted when the glue lengths cont

Re: [patch] allow percent lengths for VSpace and HSpace dialog

2009-07-21 Thread Uwe Stöhr
> I was talking about negative *non*-glue lengths such as "-2cm", which do not > need to be reverted at all. This already works correctly. > Nothing in the test case, BTW, does revert correctly to 1.6. Because I only reverted when the glue lengths contain at least a percent length. This is now

Re: [patch] allow percent lengths for VSpace and HSpace dialog

2009-07-21 Thread Jürgen Spitzmüller
Uwe Stöhr wrote: > > Just one question to the lyx2lyx code: did you exclude minus at the first > > > position? "-2cm" is a valid non-glue length that doesn't need to be > reverted. > > minus is never at the first position when there is also a plus. Lengths > like 5col%-2text% are converted correct

Re: [patch] allow percent lengths for VSpace and HSpace dialog

2009-07-21 Thread Uwe Stöhr
Vincent van Ravesteijn - TNW schrieb: Besides the awful duplication of code, I haven't figured out a simpler solution. But anyway, it works. the following looks suspicious: sstring = value + "\\paperwidth" + end ^ Fixed. And is this warning necessary, or a relic of the debugging phase ?

RE: [patch] allow percent lengths for VSpace and HSpace dialog

2009-07-21 Thread Vincent van Ravesteijn - TNW
>> Attached a patch that implements the glue length >> for texted. Maybe you can do the file format/lyx2lyx >> stuff. > > The lyx2lyx part was more complicated than I thought. > However, attached is the patch to go in. Besides the awful duplication of code, the following looks suspicious: sstri