Re: [PATCH] bug 515: cycle between buffers function needed

2004-10-22 Thread Bennett Helm
On Oct 22, 2004, at 6:28 AM, Jean-Marc Lasgouttes wrote: "Jean-Marc" == Jean-Marc Lasgouttes <[EMAIL PROTECTED]> writes: Jean-Marc> This is a patch for something that should have been done Jean-Marc> looong ago. It adds new functions buffer-next and Jean-Marc> buffer-previous. The implementation i

Re: [preliminary patch] moving XFig files

2004-10-22 Thread Andreas Vox
Alfredo Braunstein <[EMAIL PROTECTED]> writes: > what about [ `dirname "$1"` -ef `dirname "$2"` ] ? > > No idea about portability and such. Works on MacOSX (bash). Apparently the default on MacOSX is "pwd -L" rather than "pwd -P" as stated in the manpage, so the original script would not work

Re: [preliminary patch] moving XFig files

2004-10-22 Thread Alfredo Braunstein
Angus Leeming wrote: > The attached patch enables us to move XFig files to the temp directory and > continue to generate DVI files, etc that show any included picture files. > > The next step is to add an ability to iterate over the specialized copier > functions and ascertain which ones have bee

Re: Spirit for XML file parsing

2004-10-22 Thread Andre Poenitz
On Mon, Oct 18, 2004 at 11:36:43PM +0200, Lars Gullik Bjønnes wrote: > | Confirming bugs needs web access. I currently have a choice between > | either net access and no time at all, or no net, but a couple of > | minutes to spare. I.e. I can handle offline mail and news, but no http. > > > | When

Re: Spirit for XML file parsing

2004-10-22 Thread Andre Poenitz
On Mon, Oct 18, 2004 at 01:41:04PM +0100, Angus Leeming wrote: > Andre Poenitz wrote: > > May I suggest a slightly different approach? > > > > Let's have some MetaInset that's a proper LyX inset, i.e. deriving > > from InsetBase, but which mainly acts as a data storage capable to > > store attrib

Re: [PATCH] bug 515: cycle between buffers function needed

2004-10-22 Thread Andre Poenitz
On Mon, Oct 18, 2004 at 02:15:21PM +0200, Jean-Marc Lasgouttes wrote: > What do kword or abiword do? I did not find anything relevant in the > Gnome or KDE HIG. I guess windows apps use C-Tab, but mathed already > uses that. I did not find anything for (x)emacs. I have no religious feelings on C-T

Re: [PATCH] Docbook equation element with elements

2004-10-22 Thread Andre Poenitz
On Mon, Oct 18, 2004 at 04:14:19PM +, Andreas Vox wrote: > Andre Poenitz <[EMAIL PROTECTED]> writes: > > > This is guaranteed to work in any Standard conforming C or C++ compiler. > > That's why I prefer Java! ;-) Well. I prefer getting my work done. Tastes are different, an so are religions

Re: lyx140cvs: german menu translations

2004-10-22 Thread Andre Poenitz
On Mon, Oct 18, 2004 at 11:27:01PM +0100, Angus Leeming wrote: > The only problem is, 'Nach' and 'Bis' should be encoded in the 'German' > language. 'Nach' and 'Bis' don't need any special encoding in the German language. > Angus (smart arse) Andre' (no further comment)

Re: [PATCH] Docbook export math/graphic/refs

2004-10-22 Thread Andre Poenitz
On Mon, Oct 18, 2004 at 08:32:21PM +0200, Chris Karakas wrote: > #! /bin/sh > > for x in `ls *.$1`; do This should be for x in *.$1 Especially for people advocating the support of Windows formats. After all, these are the guys most likely to run into file names with spaces. > y=`basename $x

[preliminary patch] moving XFig files

2004-10-22 Thread Angus Leeming
The attached patch enables us to move XFig files to the temp directory and continue to generate DVI files, etc that show any included picture files. The next step is to add an ability to iterate over the specialized copier functions and ascertain which ones have been added and which ones have been

Re: CVS lyx: make rpmdist failing

2004-10-22 Thread Kayvan A. Sylvan
On Fri, Oct 22, 2004 at 01:33:39PM +0200, Georg Baum wrote: > Kayvan A. Sylvan wrote: > > > Have you tried it with an empty body? My RPM complains about the > > empty body and it never gets substituted. > > I thought I had tried it, but obviously did not. The attached patch works > for me. Can yo

Re: problem with XFig figures under PDF

2004-10-22 Thread M.K.
--- Georg Baum <[EMAIL PROTECTED]> wrote: > In this case it is hardcoded in lyx. [FIG->PNG conversion instead of FIG->PDF, when generating document LyX->PDF(pdflatex)] Ahhh. Too bad, but I can see how this would be a reasonable first approach to this problem. > The following is more a develope

Re: Moving files from one dir to another

2004-10-22 Thread Angus Leeming
Andreas Vox wrote: >> Points to note: >> * Instant Preview works only if the user has preview.sty installed. > > Maybe we could bundle it and set the TEXINPUTS accordingly before the > latex call? Yet another thing to fix when things go wrong. Documenting it is enough, IMO. >> * Can a LyX docboo

Re: [patch] Fix gtk menu crash

2004-10-22 Thread John Spray
On Fri, 2004-10-22 at 14:40, Jean-Marc Lasgouttes wrote: > You should also get rid of this one: > > case MenuItem::Command: > { > FuncStatus const flag = > view_->getLyXFunc().getStatus(i->func()); Done, see revised p

Re: [PATCH]

2004-10-22 Thread José Abílio Oliveira Matos
On Fri, Oct 22, 2004 at 05:13:59PM +0200, Lars Gullik Bjønnes wrote: > > Then why not a even clearer mark "!-- inntermakr standard --"? Because it is usually easy to see from the context which element it refers. Also I'm lazy and change the code to filter all empty comments for stable releases

Re: [PATCH]

2004-10-22 Thread Lars Gullik Bjønnes
José Abílio Oliveira Matos <[EMAIL PROTECTED]> writes: | On Fri, Oct 22, 2004 at 04:54:15PM +0200, Lars Gullik Bjønnes wrote: >> > >> | You forgot the quotes around the !-- -- >> | Quite easy to find actually. :-) >> >> This look like a hack, is it? >> >> -- >> Lgb > | InnerTag

Re: [PATCH]

2004-10-22 Thread José Abílio Oliveira Matos
On Fri, Oct 22, 2004 at 04:54:15PM +0200, Lars Gullik Bjønnes wrote: > > > | You forgot the quotes around the !-- -- > | Quite easy to find actually. :-) > > This look like a hack, is it? > > -- > Lgb InnerTag "" would give the same result, if that is what you ask.

Re: [PATCH]

2004-10-22 Thread Lars Gullik Bjønnes
José Abílio Oliveira Matos <[EMAIL PROTECTED]> writes: | On Thu, Oct 21, 2004 at 10:30:05AM +0200, Andreas Vox wrote: >> Hi! >> >> Another small and independent patch which corrects the behaviour >> of starsection in DocBook. The other patch nested an inner >> element into the , which is against

Re: [patch] fix bug 1677

2004-10-22 Thread Lars Gullik Bjønnes
Juergen Spitzmueller <[EMAIL PROTECTED]> writes: | http://bugzilla.lyx.org/show_bug.cgi?id=1677 > | The command \thanks is a special kind of "footnote" for titling commands | (\title, \author, \date). LyX always uses \footnote, though, which works well | with most classes, since the standard cla

Re: [PATCH]

2004-10-22 Thread José Abílio Oliveira Matos
On Thu, Oct 21, 2004 at 10:30:05AM +0200, Andreas Vox wrote: > Hi! > > Another small and independent patch which corrects the behaviour > of starsection in DocBook. The other patch nested an inner > element into the , which is against DocBook DTD. > > /Andreas > > Index: lib/layouts/db_stdstars

Re: [PATCH] Changelogs for the other Docbook patches

2004-10-22 Thread José Abílio Oliveira Matos
On Fri, Oct 22, 2004 at 01:49:37PM +, Andreas Vox wrote: > > Sorry, that's what happens if I use anything but vi to edit changelogs. > > Forgiven? Certainly. :-) The whole exercise was just to show you that small patches are a lot easier to deal for all of us. :-) And also that we rea

Re: [PATCH] Changelogs for the other Docbook patches

2004-10-22 Thread Andreas Vox
Josà AbÃlio Oliveira Matos <[EMAIL PROTECTED]> writes: > On Thu, Oct 21, 2004 at 10:38:56AM +0200, Andreas Vox wrote: > > Hi! > > > > I bundled those extra since they relate to all other patches. > > This time I didn't erase any blanks but replaced all blanks > > by double blanks, as is required

[patch] fix bug 1677

2004-10-22 Thread Juergen Spitzmueller
http://bugzilla.lyx.org/show_bug.cgi?id=1677 The command \thanks is a special kind of "footnote" for titling commands (\title, \author, \date). LyX always uses \footnote, though, which works well with most classes, since the standard classes (and lots of other) do a \let\footnote\thanks inside t

Re: [patch] Fix gtk menu crash

2004-10-22 Thread Jean-Marc Lasgouttes
> "John" == John Spray <[EMAIL PROTECTED]> writes: John> On Fri, 2004-10-22 at 13:49, Jean-Marc Lasgouttes wrote: >> Also, this status() method returns the right value for a submenu >> too. Therefore submenuDisabled is not needed at all. John> Wonderful! This makes the code much shorter. John

Re: [PATCH] Docbook graphic -> mediaobject

2004-10-22 Thread Andreas Vox
Lars Gullik BjÃnnes <[EMAIL PROTECTED]> writes: > And you are sure they was not introduced for a reason? > Since I wrote toDocbookLength() I should remember, no? :-) I used cut&paste to insert the declaraion of these enum constants, that's where the comments come from (and they were of course co

Re: Moving files from one dir to another

2004-10-22 Thread Andreas Vox
Angus Leeming <[EMAIL PROTECTED]> writes: > > existing bitmap file in . Next thing to do is > > generate these bitmaps (previews becoming included files, > > isn't that a mess?) > > Ok. > > Points to note: > * Instant Preview works only if the user has preview.sty installed. Maybe we could bund

Re: [patch] Fix gtk menu crash

2004-10-22 Thread John Spray
On Fri, 2004-10-22 at 13:49, Jean-Marc Lasgouttes wrote: > Also, this status() method returns the right value for a submenu too. > Therefore submenuDisabled is not needed at all. Wonderful! This makes the code much shorter. I'll commit the attached patch if nobody objects. John Index: GMenu

Re: Moving files from one dir to another

2004-10-22 Thread José Abílio Oliveira Matos
On Fri, Oct 22, 2004 at 01:25:08PM +0100, Angus Leeming wrote: > > Does DocBook not use MathML? The XML version, yes, the SGML no. Then the problem is that even if you use it, for some tools and chains is a lot easier to go the tex way, as it is more mature and gives better results. Free t

Re: Moving files from one dir to another

2004-10-22 Thread Angus Leeming
Andreas Vox wrote: > informalequation ::= > (blockinfo?, > (alt?, > (graphic+|mediaobject+))) > > Right now we put LaTeX in and a reference to a non > existing bitmap file in . Next thing to do is > generate these bitmaps (previews becoming included files, > isn't that a mess?) Ok. Points to

Re: [patch] Fix gtk menu crash

2004-10-22 Thread Jean-Marc Lasgouttes
> "John" == John Spray <[EMAIL PROTECTED]> writes: John> Hi, One could easily make the gtk frontend crash with a failed John> assertion in MenuBackend::Getmenu. The problem occurred when John> viewing a document with figures in it: the "Figures" submenu John> item didn't have a submenuname_ fi

Re: Moving files from one dir to another

2004-10-22 Thread Andreas Vox
Angus Leeming <[EMAIL PROTECTED]> writes: > Does DocBook not use MathML? No, not officially. There are extensions for DocBook XML. The content for equations is: informalequation ::= (blockinfo?, (alt?, (graphic+|mediaobject+))) Right now we put LaTeX in and a reference to a non existing b

Re: [PATCH] Docbook graphic -> mediaobject

2004-10-22 Thread José Abílio Oliveira Matos
On Fri, Oct 22, 2004 at 12:27:19PM +, Andreas Vox wrote: > José Abílio Oliveira Matos <[EMAIL PROTECTED]> writes: > > Fix what? In my opinion this is the fix: an older patch introduced those > spurious '<' in toDocbookLength() and I used the opportunity to > delete them in the last patch. S

Re: [PATCH] Docbook graphic -> mediaobject

2004-10-22 Thread Lars Gullik Bjønnes
Andreas Vox <[EMAIL PROTECTED]> writes: | José Abílio Oliveira Matos <[EMAIL PROTECTED]> writes: > >> >> On Thu, Oct 21, 2004 at 10:24:17AM +, Andreas Vox wrote: >> > Lars Gullik Bjønnes ...> writes: >> > >> > > Andreas Vox ...> writes: >> > > | - case LyXLength::PT: //< P

Re: [PATCH] Docbook graphic -> mediaobject

2004-10-22 Thread Andreas Vox
Josà AbÃlio Oliveira Matos <[EMAIL PROTECTED]> writes: > > On Thu, Oct 21, 2004 at 10:24:17AM +, Andreas Vox wrote: > > Lars Gullik BjÃnnes ...> writes: > > > > > Andreas Vox ...> writes: > > > | - case LyXLength::PT: //< Point = 1/72.27in = 0.351mm > > > | + c

Re: Moving files from one dir to another

2004-10-22 Thread Angus Leeming
Andreas Vox wrote: >> > For my taste this whole external file business is already very >> > complicated. A Mover would be a clean solution but also another >> > concept to learn. (my head is already spinning from converters, >> > templates, previewloaders, graphicloaders, etc.) >> >> Oh, it isn't

Re: Moving files from one dir to another

2004-10-22 Thread Andreas Vox
Angus Leeming <[EMAIL PROTECTED]> writes: > > Andreas Vox wrote: > >> It looks like I opened a can of worms with this XFig stuff > >> > > I caught up with my reading (previous DVI file thread on lyx-devel, > > insetexternal, etc.) and I don't envy you > > InsetExternal is actually one of the m

Re: How to resolve relyx bugs?

2004-10-22 Thread Georg Baum
Lars Gullik Bjønnes wrote: > I have used WONTFIX, but of course if the same but is in tex2lyx the > bug should be transfered there with a note. Ok, I used WONTFIX. IMHO it does not make any sense to transfer the bug to tex2lyx, since it is fixed, and relyx still has it. Georg

Re: Moving files from one dir to another

2004-10-22 Thread Georg Baum
Angus Leeming wrote: > All conversions for a given buffer (document) take place in a single temp > directory. All files that need to be converted to a different format are > first copied to this temp directory and there names are mangled to ensure > that files that are originally in different dire

Re: Moving files from one dir to another

2004-10-22 Thread Georg Baum
Angus Leeming wrote: > It looks like I opened a can of worms with this XFig stuff :-( > > Trivial as it may seem, it just isn't that easy to define and use a > $$orig_i placeholder. Lots of messy and fragile changes all over the > place. > > However, it seems to me that the problems can be isola

Re: CVS lyx: make rpmdist failing

2004-10-22 Thread Georg Baum
Kayvan A. Sylvan wrote: > Have you tried it with an empty body? My RPM complains about the > empty body and it never gets substituted. I thought I had tried it, but obviously did not. The attached patch works for me. Can you please test wether it works for you too? Georg--- lyx-1.4-cvs/config/l

Re: Preview is broken due to quotes!

2004-10-22 Thread Angus Leeming
José Abílio Oliveira Matos wrote: > On Fri, Oct 22, 2004 at 12:35:33PM +0200, Jean-Marc Lasgouttes wrote: >> I am all for it. > I support that. :-) One nice side effect is that things like Quote() and our definitions of converters will no longer need to have Unix and Win32 variants because we wil

Re: Patch - DTD - And lyx file

2004-10-22 Thread José Abílio Oliveira Matos
On Thu, Oct 21, 2004 at 10:21:49PM -0400, John Weiss wrote: > > I say define anything that depends on environment ... like the > textclasses ... as simple string attributes. We can make exceptions > for *certain* textclasses ... like "Standard" ... that are pretty much > universal. Just my $0.02

Re: Preview is broken due to quotes!

2004-10-22 Thread José Abílio Oliveira Matos
On Fri, Oct 22, 2004 at 12:35:33PM +0200, Jean-Marc Lasgouttes wrote: > > I am all for it. I support that. :-) > JMarc -- José Abílio Matos LyX and docbook a perfect match. :-)

Re: Preview is broken due to quotes!

2004-10-22 Thread Jean-Marc Lasgouttes
> "Angus" == Angus Leeming <[EMAIL PROTECTED]> writes: Angus> Note the quotes around 'lyxpreview2bitmap.py'. Someone got busy Angus> in LibScriptSearch and protected the name of the script with Angus> quotes. ViewCVS tells me that this happened on 14 September and Angus> that the busy man was

Re: [PATCH] bug 515: cycle between buffers function needed

2004-10-22 Thread Jean-Marc Lasgouttes
> "Jean-Marc" == Jean-Marc Lasgouttes <[EMAIL PROTECTED]> writes: Jean-Marc> This is a patch for something that should have been done Jean-Marc> looong ago. It adds new functions buffer-next and Jean-Marc> buffer-previous. The implementation is straightforward, Jean-Marc> althouh details such

Re: Moving files from one dir to another

2004-10-22 Thread Angus Leeming
Andreas Vox wrote: >> It looks like I opened a can of worms with this XFig stuff >> > I caught up with my reading (previous DVI file thread on lyx-devel, > insetexternal, etc.) and I don't envy you :-) InsetExternal is actually one of the most powerful concepts in the whole of LyX. Amazing how su

Re: [patch] bug 1523 (LyX 1.3.x)

2004-10-22 Thread Jean-Marc Lasgouttes
> "Juergen" == Juergen Spitzmueller <[EMAIL PROTECTED]> writes: Juergen> No. I just looked for a solution that does not require to Juergen> rewrite the whole function. Juergen> Anyway, attached is the 1.4cvs-solution, backported to 1.3.x Juergen> OK to apply? Yes, I think I prefer that solu