Re: Using CVS?

2005-09-18 Thread Lars Gullik Bjønnes
Bo Peng <[EMAIL PROTECTED]> writes: | > Given Bo's problems accessing CVS and that I've heard the issue being | > mentioned a few times on this list lately... Where can you now find | > instructions on how to access CVS? | | Off topic: if the lyx developers are planning on any major operation | t

Re: Python version of configure script (preview version)

2005-09-18 Thread Bo Peng
> I know, we have decided to proceed since this code is supposed to be only > run in windows and there the above argument does not apply. I would guess > that every new install will have at least python 2.3 installed. :-) > This solves the problem by now but what if we want to add some new feat

Re: Python version of configure script (preview version)

2005-09-18 Thread Jose' Matos
On Sunday 18 September 2005 21:52, Angus Leeming wrote: > > def get_version_info(): > version_re = re.compile("([0-9])\.([0-9])") > > match = version_re.match(sys.version) > if match == None: > error("Unable to extract version info from 'sys.version'") > > return int(match.g

Re: Python version of configure script (preview version)

2005-09-18 Thread Angus Leeming
Jose' Matos wrote: >> mkstemp is used for the cygwin path detection, which is new to python >> 2.3. popen is used but "it is not stable under windows prior to python >> 2.0". mkstemp can be easily replaced by using explicit temp file name >> but someone has to run the script with python 1.5.2 to te

Re: [PATCH] vspace metrics/draw corrections/improvements

2005-09-18 Thread Michael Gerz
Michael Gerz wrote: if you place the cursor in front of a vspace inset, it is displayed way too high. I had a look at method "metrics" in insetvspace.C which IMHO is a bit confusing (and partially wrong - Why is size set to 10 initially? Why do we decrease the font size twice but compute som

Re: [patch] fix broken documents in lib/doc

2005-09-18 Thread Jose' Matos
On Sunday 18 September 2005 19:55, Bo Peng wrote: > > For me that is a burden, the absence of the extended operators in > > python (+=, -=, ... op=) makes the code dull, the fact that string were > > made a first class type only in python 2.0 does not help either. > > What? += and string class is

Re: Python version of configure script (preview version)

2005-09-18 Thread Jose' Matos
On Sunday 18 September 2005 19:51, Bo Peng wrote: > > World is a small place, really. I have seen your contributions around > > several places lately (R, rpy, ...) :-) > > Well, I make a living on python, r, rpy and lyx. I make contributions > only to make my own life easier. :-) I have packag

Re: [patch] fix broken documents in lib/doc

2005-09-18 Thread Bo Peng
> For me that is a burden, the absence of the extended operators in python > (+=, -=, ... op=) makes the code dull, the fact that string were made a first > class type only in python 2.0 does not help either. What? += and string class is not in 1.5.2? I use it a lot in configure.py. > If you

Re: converter for layout files

2005-09-18 Thread Jose' Matos
On Sunday 18 September 2005 19:09, Bo Peng wrote: > > Just one reason why use of configure.py might not be a good idea. > > Then why do we need to 'convert' a layout file? Why can not we simply > handle two versions internally? Anyway, a version signature would help > in all cases. FWIW that is

Re: [patch] fix broken documents in lib/doc

2005-09-18 Thread Jose' Matos
On Sunday 18 September 2005 10:18, Angus Leeming wrote: > > I understand that string.strip(foo) is deprecated in favour of foo.strip(). > Ditto with string.split(foo). > > http://docs.python.org/lib/node110.html > > José, why do we continue to use the deprecated versions? Support for > ancient Pyth

Re: Python version of configure script (preview version)

2005-09-18 Thread Bo Peng
> World is a small place, really. I have seen your contributions around > several places lately (R, rpy, ...) :-) Well, I make a living on python, r, rpy and lyx. I make contributions only to make my own life easier. :-) > What is the minimum required python version for your script? > As An

Re: Python version of configure script (preview version)

2005-09-18 Thread Jose' Matos
On Thursday 15 September 2005 20:58, Bo Peng wrote: > Dear list, > > Attached is a Python version of the configure script. I currently do > not have access to a windows machine with lyx on so I can not test it > on windows. On my linux machine, it produces identical lyxrc.default > and doc/LaTeXCon

Re: converter for layout files

2005-09-18 Thread Bo Peng
> Just one reason why use of configure.py might not be a good idea. > Then why do we need to 'convert' a layout file? Why can not we simply handle two versions internally? Anyway, a version signature would help in all cases. Bo

Re: converter for layout files

2005-09-18 Thread Angus Leeming
Bo Peng wrote: >> This is not the right place, since layout files are not loaded via the >> converter mechanism. If the converter is to be used we know that it is >> available and it will be called directly from LyX (look how lyx2lyx is >> called). > > I still do not get it. configure/configure.p

Re: converter for layout files

2005-09-18 Thread Bo Peng
> This is not the right place, since layout files are not loaded via the > converter mechanism. If the converter is to be used we know that it is > available and it will be called directly from LyX (look how lyx2lyx is > called). I still do not get it. configure/configure.py will scan through all

Re: Python version of configure script (preview version)

2005-09-18 Thread Bo Peng
> First, however, we should find out from José whether we still need to > support really ancient Pythons in LyX 1.5 I have already used the tmpfile module in the cygwin/pathname part of the script. Bo

Re: Using CVS?

2005-09-18 Thread Bo Peng
> Given Bo's problems accessing CVS and that I've heard the issue being > mentioned a few times on this list lately... Where can you now find > instructions on how to access CVS? Off topic: if the lyx developers are planning on any major operation to the lyx/cvs system, it would be a good idea to

Re: lyx.spec patch

2005-09-18 Thread Angus Leeming
Kayvan A. Sylvan wrote: > This trivial patch is needed for newer rpm versions. Committed. -- Angus

Re: [patch] fix broken documents in lib/doc

2005-09-18 Thread Angus Leeming
Georg Baum wrote: >> Nevertheless, the bug you are looking for is in lib/doc/doc_toc.py. > Yes, doc_toc.py does not include the english versions of the documents > that are not yet translated, but there are also two bugs in lyx2lyx. > This patch fixes them, can it go in? I understand that string.

Re: Python version of configure script (preview version)

2005-09-18 Thread Angus Leeming
Bo Peng wrote: > Hi, Augus, That's "Angus" ;-) > Thank you for the patch. I have merged it to my version, plus some > cosmetic changes. Great! I took the plunge and added it to the repository. Temp files: I wonder if it makes sense to use a wrapper to Python's tempfile module. Ie, use the temp

Re: converter for layout files

2005-09-18 Thread Georg Baum
Am Samstag, 17. September 2005 17:09 schrieb Bo Peng: > Is there a way to tell whether a layout file is 1.3 or 1.4? Only by looking at the contents. I guess we should add a version field. > If so, > your converter can be easily added to configure.py. This is not the right place, since layout f

lyx.spec patch

2005-09-18 Thread Kayvan A. Sylvan
This trivial patch is needed for newer rpm versions. -- Kayvan A. Sylvan | Proud husband of | Father to my kids: Sylvan Associates, Inc. | Laura Isabella Sylvan | Katherine Yelena (8/8/89) http://sylvan.com/~kayvan | "crown of her husband" | Robin Gregory (2/28/92) Index: develo

Re: [patch] fix broken documents in lib/doc

2005-09-18 Thread Georg Baum
Am Freitag, 16. September 2005 16:31 schrieb Jean-Marc Lasgouttes: > Nevertheless, the bug you are looking for is in lib/doc/doc_toc.py. Yes, doc_toc.py does not include the english versions of the documents that are not yet translated, but there are also two bugs in lyx2lyx. This patch fixes t