Re: [Devel] Re: "Textclass" problems

2002-03-05 Thread Martin Vermeer
On Tue, Mar 05, 2002 at 10:24:45PM +0100, Lars Gullik Bjønnes wrote: > Michael Schmitt <[EMAIL PROTECTED]> writes: > > | Hi Lars, > > > | I still encounter problems with your recent changes. Currently, I > | cannot even load one of my files! LyX just aborts. > > > | Maybe we should start with a

Tilde bug

2002-03-05 Thread Michael
Hi LyX fails to protect a tilde (~) in the input path when supplied to LaTeX: Eg \def\input@path{{/home/username/age~5/}} or (under Cygwin) \def\input@path{{C:/Progra~1/Cygwin/tmp/}} . If each occurrence of the tilde were preceeded by "\string", this problem would be solved and

Re: Fonts

2002-03-05 Thread Allan Rae
On 5 Mar 2002, Jean-Marc Lasgouttes wrote: > > "Allan" == Allan Rae <[EMAIL PROTECTED]> writes: [...] > Allan> FWIW, wouldn't it make sense for FontLoader to use a pattern > Allan> that includes the screen DPI setting? > > I do not like this one, especially if DPI is not 75 or 100. > > Allan>

Re: biblio.C compiled with debug (was Re: Crashes with CVS(02282002))

2002-03-05 Thread Lars Gullik Bjønnes
Herbert Voss <[EMAIL PROTECTED]> writes: | Lars Gullik Bjønnes wrote: > >> John Levon <[EMAIL PROTECTED]> writes: >> | On Tue, Mar 05, 2002 at 01:35:22PM +0100, Lars Gullik Bjønnes >> wrote: >> anyway... imagine what happens here if data does not contain a '=' or if data is empty. >>

Re: biblio.C compiled with debug (was Re: Crashes with CVS (02282002))

2002-03-05 Thread Herbert Voss
Lars Gullik Bjønnes wrote: > John Levon <[EMAIL PROTECTED]> writes: > > | On Tue, Mar 05, 2002 at 01:35:22PM +0100, Lars Gullik Bjønnes wrote: > >>>anyway... imagine what happens here if data does not contain a '=' or >>>if data is empty. >>> >>>biblio.C: 356 >>>data = data.substr(data.find('='

Re: xforms image loader

2002-03-05 Thread Lars Gullik Bjønnes
Angus Leeming <[EMAIL PROTECTED]> writes: | So, I would prefer either leaving things as they are or sorting out separate | configure scripts for the frontends now. Unfortuanately, I'm no expert at | this sort of thing. Ok, but create a function for it anyway. | What do you think? > >> btw. wh

Re: biblio.C compiled with debug (was Re: Crashes with CVS(02282002))

2002-03-05 Thread Lars Gullik Bjønnes
John Levon <[EMAIL PROTECTED]> writes: | On Tue, Mar 05, 2002 at 01:35:22PM +0100, Lars Gullik Bjønnes wrote: > >> anyway... imagine what happens here if data does not contain a '=' or >> if data is empty. >> >> biblio.C: 356 >> data = data.substr(data.find('='), data.length() - 1); > | I've nev

Re: lyx-devel src/frontends/controllers/: ChangeLog biblio.C

2002-03-05 Thread Herbert Voss
On Tuesday, 5. March 2002 19:36, [EMAIL PROTECTED] wrote: > CVSROOT: /usr/local/lyx/cvsroot > Module name: lyx-devel > Repository: lyx-devel/src/frontends/controllers/ > Changes by: [EMAIL PROTECTED]02/03/05 18:36:23 > > Modified files: > lyx-devel/src/frontends/controllers

Re: [PATCH] Re: biblio.C compiled with debug (was Re: Crashes with CVS (02282002))

2002-03-05 Thread Angus Leeming
On Tuesday 05 March 2002 5:42 pm, Herbert Voss wrote: > the following patch fixes the crash when using lyxlayout "bibliography" > but scanning for a bibtex-entry. > > Herbert Super. I fix the crash, you remove the need to check parseBibTeX in the first place. I'll apply it. Angus

[PATCH] Re: biblio.C compiled with debug (was Re: Crashes with CVS (02282002))

2002-03-05 Thread Herbert Voss
the following patch fixes the crash when using lyxlayout "bibliography" but scanning for a bibtex-entry. Herbert -- http://www.lyx.org/help/ Index: src/frontends/controllers/ChangeLog === RCS file: /usr/local/lyx/cvsroot/lyx-deve

Re: biblio.C compiled with debug (was Re: Crashes with CVS (02282002))

2002-03-05 Thread Angus Leeming
On Tuesday 05 March 2002 11:05 am, Abdelrazak Younes wrote: > So here is the backtrace of the crash obtained with the attached file when you > 1) click on the Citation reference 'CATNET' > 2) click on 'GPS-GLONASS_RTK' inside the Citation Reference dialog > > Regards, > Abdel. Thanks, Abdel. No

Re: xforms image loader

2002-03-05 Thread Angus Leeming
On Tuesday 05 March 2002 4:36 pm, Lars Gullik Bjønnes wrote: > +### Check whether the xforms library has a viable image loader > +### For now, run this test always so config.h is unchanged by a change in > +### frontend > +TEMP_LDFLAGS=$LDFLAGS > +LDFLAGS=$XFORMS_LIB $LDFLAGS > + > +lyx_use_xforms

Re: Fonts

2002-03-05 Thread Jean-Marc Lasgouttes
> "Allan" == Allan Rae <[EMAIL PROTECTED]> writes: >> Note that the dpi settings are not zero in this case. This is how >> you can recognize them. Allan> I thought I gave an example of this in my email anyway? I knew Allan> this part. Fine. >> No, #12 tells you that a bitmap font of size

Re: biblio.C compiled with debug (was Re: Crashes with CVS (02282002))

2002-03-05 Thread John Levon
On Tue, Mar 05, 2002 at 01:35:22PM +0100, Lars Gullik Bjønnes wrote: > anyway... imagine what happens here if data does not contain a '=' or > if data is empty. > > biblio.C: 356 > data = data.substr(data.find('='), data.length() - 1); I've never understood why the STL can't handle this, it cau

Re: textclass as string

2002-03-05 Thread Lars Gullik Bjønnes
Jean-Marc Lasgouttes <[EMAIL PROTECTED]> writes: >> "Lars" == Lars Gullik Bjønnes <[EMAIL PROTECTED]> writes: > | Lars> Since I commited the layout-as-string patch, I though I should | Lars> air the other one in the series as well. > | Lars> This make the textclass as string as well. > | Is t

Re: xforms image loader

2002-03-05 Thread Lars Gullik Bjønnes
Angus Leeming <[EMAIL PROTECTED]> writes: | Attached is a patch for an image loader using the xforms library. > | It is used only if your version of the xforms libraries are up to the task. > | I _think_ I've got the qt2 and gnome stuff right, but this is untested. It's | be good if someone coul

Re: [Patch] Re: reproducable crash

2002-03-05 Thread Jean-Marc Lasgouttes
> "Lars" == Lars Gullik Bjønnes <[EMAIL PROTECTED]> writes: Lars> This is the correct patch: ... and you were faster than me to commit it! JMarc

Re: [Patch] Re: reproducable crash

2002-03-05 Thread Martin Vermeer
On Tue, Mar 05, 2002 at 05:26:55PM +0100, Lars Gullik Bjønnes wrote: > Jean-Marc Lasgouttes <[EMAIL PROTECTED]> writes: > > >> "Martin" == Martin Vermeer <[EMAIL PROTECTED]> writes: ... > | Martin> ...when the only definition of applyLayout I can find expects > | Martin> a string argument

Re: textclass as string

2002-03-05 Thread Jean-Marc Lasgouttes
> "Lars" == Lars Gullik Bjønnes <[EMAIL PROTECTED]> writes: Lars> Since I commited the layout-as-string patch, I though I should Lars> air the other one in the series as well. Lars> This make the textclass as string as well. Is this one useful _now_, or do you plan to apply it after 1.2.0?

Re: LyX Migration

2002-03-05 Thread Jean-Marc Lasgouttes
> "Helmut" == Helmut Lichtenberg <[EMAIL PROTECTED]> writes: Helmut> The NewLine does not have any effect as long as I have the Helmut> lines TextFont Latex latex EndFont in it. I also checked it by Helmut> inserting these 3 lines into dinbrief.layout Helmut> (Send_To_Address), which comes wi

Re: [Patch] Re: reproducable crash

2002-03-05 Thread Lars Gullik Bjønnes
Jean-Marc Lasgouttes <[EMAIL PROTECTED]> writes: >> "Martin" == Martin Vermeer <[EMAIL PROTECTED]> writes: > | Martin> Ehh, text.C: > | Martin>// well this is the caption hack since one caption is | Martin> really enough if (layout.labeltype == LABEL_SENSITIVE) { if | Martin> (!cursor.pos

Re: putting devguide.html back on the web

2002-03-05 Thread Jean-Marc Lasgouttes
> "Angus" == Angus Leeming <[EMAIL PROTECTED]> writes: Angus> Anyway, here it is. Please test and apply. Looks good. Applied. JMarc

Re: cut & paste from e-mail

2002-03-05 Thread Jean-Marc Lasgouttes
> "Garst" == Garst R Reese <[EMAIL PROTECTED]> writes: Garst> Thanks, I figured it might be, but the wizards prevail so Garst> often, I asked. The skip form of paragraphing seems to work Garst> now. It didn't for awhile. How about a way to replace some Garst> character with a new line? Could

Re: m4 magic --- success!

2002-03-05 Thread Lars Gullik Bjønnes
Jean-Marc Lasgouttes <[EMAIL PROTECTED]> writes: >> "Angus" == Angus Leeming <[EMAIL PROTECTED]> writes: > | Angus> JMarc, the patch below works perfectly and does all I require. | Angus> I'm not sure it's best practise, however. > | It looks reasonable. > | Angus> I have to temporarily augme

Re: [Patch] Re: reproducable crash

2002-03-05 Thread Jean-Marc Lasgouttes
> "Martin" == Martin Vermeer <[EMAIL PROTECTED]> writes: Martin> Ehh, text.C: Martin>// well this is the caption hack since one caption is Martin> really enough if (layout.labeltype == LABEL_SENSITIVE) { if Martin> (!cursor.pos()) // set to standard-layout Martin> cursor.par()->applyLayo

Re: [Patch] Re: reproducable crash

2002-03-05 Thread Lars Gullik Bjønnes
Martin Vermeer <[EMAIL PROTECTED]> writes: | Ehh, > | text.C: > |// well this is the caption hack since one caption is really enough |if (layout.labeltype == LABEL_SENSITIVE) { | if (!cursor.pos()) | // set to standard-layout | cursor.par()->applyLayout(0); | e

xforms image loader

2002-03-05 Thread Angus Leeming
Attached is a patch for an image loader using the xforms library. It is used only if your version of the xforms libraries are up to the task. I _think_ I've got the qt2 and gnome stuff right, but this is untested. It's be good if someone could confirm this. Lars, over to you. Angus xforms_

[Patch] Re: reproducable crash

2002-03-05 Thread Martin Vermeer
Ehh, text.C: // well this is the caption hack since one caption is really enough if (layout.labeltype == LABEL_SENSITIVE) { if (!cursor.pos()) // set to standard-layout cursor.par()->applyLayout(0); else // set to standard-layout cursor.par()->

Re: LyX Migration

2002-03-05 Thread Martin Vermeer
On Tue, Mar 05, 2002 at 03:40:08PM +0100, Helmut Lichtenberg wrote: > Anyway, it helps me in solving one more problem but it also shows me > that using LyX is (currently) not a full alternative for people who > use common office suites. It needs too much knowledge for everyday > users. > > Helm

Re: LyX Migration

2002-03-05 Thread Jules Bean
On Tue, Mar 05, 2002 at 03:40:08PM +0100, Helmut Lichtenberg wrote: > Anyway, it helps me in solving one more problem but it also shows me > that using LyX is (currently) not a full alternative for people who > use common office suites. It needs too much knowledge for everyday > users. ..but mayb

Re: reproducable crash

2002-03-05 Thread Martin Vermeer
Further info: Attached a minimum test file producing the effect, containing little more than the figure float itself. Still crashes. 1. Changing the caption to standard layout removes the crash, but produces lots of Operator[] called with empty n 2. Changing back to caption makes the t

Re: m4 magic --- success!

2002-03-05 Thread Jean-Marc Lasgouttes
> "Angus" == Angus Leeming <[EMAIL PROTECTED]> writes: Angus> JMarc, the patch below works perfectly and does all I require. Angus> I'm not sure it's best practise, however. It looks reasonable. Angus> I have to temporarily augment LDFLAGS to get the program to Angus> link. You could have

Re: LyX Migration

2002-03-05 Thread Helmut Lichtenberg
On Mon, Mar 04, 2002 at 03:09:48PM +0100, Jean-Marc Lasgouttes wrote: > > "Helmut" == Helmut Lichtenberg <[EMAIL PROTECTED]> writes: > > Helmut> Style Adresse > [...] > Helmut> NewLine 1 > [...] > Helmut> End > > The description of NewLine says > > Newline [0, 1] Whether newlines are tran

Re: reproducable crash

2002-03-05 Thread Martin Vermeer
On Tue, Mar 05, 2002 at 03:11:25PM +0100, Edwin Leuven wrote: > 1. Go to figure float at the end of attached document > 2. Put cursor at beginning of caption > 3. hit enter > > Crash: Confirmed. You can put the cursor *anywhere* in the caption and still get a crash. There's just no way to get

reproducable crash

2002-03-05 Thread Edwin Leuven
1. Go to figure float at the end of attached document 2. Put cursor at beginning of caption 3. hit enter Crash: Program received signal SIGSEGV, Segmentation fault. 0x0815bf02 in LyXText::breakParagraph (this=0x8505040, bview=0x8475c28, keep_layout=0 '\000') at /usr/include/g++-3/std/bastrin

Re: Some special units and symbols

2002-03-05 Thread Juergen Vigna
On 05-Mar-2002 Martin Vermeer wrote: > One thing I don't quite like, or find elegant, in your patch is the way > you handle the case where a depth-delta'd paragraph in the buffer > acquires a negative depth. Apparently you just switch off depth-deltaing > at that point! Hmmm I did think of it

Re: Some special units and symbols

2002-03-05 Thread Martin Vermeer
On Tue, Mar 05, 2002 at 11:56:10AM +0100, Juergen Vigna wrote: > On 04-Mar-2002 Martin Vermeer wrote: > > > Good luck (I mean it.) In the meantime, find attached the simple version > > of the patch, which fixes the bug and does nothing more. > > I don't think there is luck involved. Anyway hav

Re: make maintainer-clean error

2002-03-05 Thread Lars Gullik Bjønnes
Angus Leeming <[EMAIL PROTECTED]> writes: | It looks we shouldn't clean . until we've cleaned everything else! | Angus > | aleem@pneumon:devel-> make maintainer-clean | Making maintainer-clean in . | make[1]: Entering directory `/usr/users/aleem/OTHERS_CODE/lyx/devel' | test -z "./Makefile.in ./a

make maintainer-clean error

2002-03-05 Thread Angus Leeming
It looks we shouldn't clean . until we've cleaned everything else! Angus aleem@pneumon:devel-> make maintainer-clean Making maintainer-clean in . make[1]: Entering directory `/usr/users/aleem/OTHERS_CODE/lyx/devel' test -z "./Makefile.in ./aclocal.m4 ./configure ./development/lyx.spec ./

Re: biblio.C compiled with debug (was Re: Crashes with CVS(02282002))

2002-03-05 Thread Lars Gullik Bjønnes
Abdelrazak Younes <[EMAIL PROTECTED]> writes: | Hi, > | In http://www.mail-archive.com/lyx-devel@lists.lyx.org/msg33826.html Jean-Marc | Lasgouttes said : >> "Lars" == Lars Gullik Bjønnes <[EMAIL PROTECTED]> writes: | Lars> Seems that parseBibTeX is using string::replace wrong. > | Except

bt with debug in math_parser.C (Re: Crashes with CVS (02282002))

2002-03-05 Thread Abdelrazak Younes
Hi, I've compiled lyx with debug enabled in math_parser.C and formula.C, here is the backtrace of the crash obtained while loading the attached file. The crash is due to the presence of '{' and '}' characters in the math-label. I hope this help. Regards, Abdel. (gdb) r Starting program: /usr/l

Re: m4 magic --- success!

2002-03-05 Thread Angus Leeming
JMarc, the patch below works perfectly and does all I require. I'm not sure it's best practise, however. I have to temporarily augment LDFLAGS to get the program to link. I use AC_CHECK_FUNCS rather than AC_CHECK_FUNC for all three variables so that I can #include the correct header file in G

biblio.C compiled with debug (was Re: Crashes with CVS (02282002))

2002-03-05 Thread Abdelrazak Younes
Hi, In http://www.mail-archive.com/lyx-devel@lists.lyx.org/msg33826.html Jean-Marc Lasgouttes said : > "Lars" == Lars Gullik Bjønnes <[EMAIL PROTECTED]> writes: Lars> Seems that parseBibTeX is using string::replace wrong. Except that it does not use string::replace at all... It would be n

Re: Some special units and symbols

2002-03-05 Thread Juergen Vigna
On 04-Mar-2002 Martin Vermeer wrote: > Good luck (I mean it.) In the meantime, find attached the simple version > of the patch, which fixes the bug and does nothing more. I don't think there is luck involved. Anyway have a look at the fix I just comitted if you're interested. Jug --

Re: m4 magic

2002-03-05 Thread Angus Leeming
On Tuesday 05 March 2002 9:36 am, Jean-Marc Lasgouttes wrote: > > "Angus" == Angus Leeming <[EMAIL PROTECTED]> writes: > > Angus> How does AC_CHECK_FUNCS(flimage_dup) work? How does it know > Angus> what files to check? > > It tries to link a simple program. Therefore it is better in some >

Re: cut & paste from e-mail

2002-03-05 Thread Jean-Marc Lasgouttes
> "Garst" == Garst R Reese <[EMAIL PROTECTED]> writes: Garst> If I C&P indented paragraphs from e-mail to LyX, the Garst> paragraphing information is lost. Is there any help for that? I don't think we can do a lot about that. Guessing the formatting is a bit difficult. JMarc

Re: m4 magic

2002-03-05 Thread Jean-Marc Lasgouttes
> "Angus" == Angus Leeming <[EMAIL PROTECTED]> writes: Angus> How does AC_CHECK_FUNCS(flimage_dup) work? How does it know Angus> what files to check? It tries to link a simple program. Therefore it is better in some sense, since it checks whether the function is implemented. Here is some unt