Re: mathcursor invalidation?

2001-04-25 Thread Allan Rae

On Wed, 25 Apr 2001, Garst R. Reese wrote:

 When I do:
 bash$ cvs update -dP lyx-devel

 I get:
  'Directory' missingE protocol error: directory
 '/usr/local/lyx/cvsroot/lyx-devel' not within root '/cvs/lyx'
 Thanks, Garst
 What do I need to change?

You're trying to update from a different repository to the one you
originally used aren't you?  It seems you had a tree checked out from
cvs.lyx.org and now you want to update it from cvs.sylvan.com instead.

You need to replace every CVS/Root file with one that has:

:pserver:[EMAIL PROTECTED]:/cvs/lyx

instead. Or at least some variation on that which you should be able to
figure out from what's already in those files.  Fortunately,  all these
files have the same contents.

The other way to fix this is to checkout a new copy from kayvans site.

Allan. (ARRae)




Re: mathcursor invalidation?

2001-04-25 Thread Garst R. Reese

Allan Rae wrote:

 The other way to fix this is to checkout a new copy from kayvans site.
 
Thanks Allan
Garst



xforms tabbed dialog shortcuts

2001-04-25 Thread Allan Rae


Good News:   They work!

Bad News:They only work for the deepest tabfolder that has shortcuts.

What this means is that if we define shortcuts for the inner tab folder we
can't switch to a different outer tab using shortcuts.

Try the attached patch for an example.

Allan. (ARRae)



Index: src/frontends/xforms/FormPreferences.C
===
RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/frontends/xforms/FormPreferences.C,v
retrieving revision 1.64
diff -u -p -r1.64 FormPreferences.C
--- src/frontends/xforms/FormPreferences.C  2001/04/24 17:33:00 1.64
+++ src/frontends/xforms/FormPreferences.C  2001/04/25 06:31:01
@@ -200,37 +200,46 @@ void FormPreferences::build()
spellchecker_.build();
 
// Now add them to the tabfolder
-   fl_addto_tabfolder(dialog_-tabfolder_prefs,
-  _(Look  Feel),
-  look_n_feel_tab_-form);
-   fl_addto_tabfolder(dialog_-tabfolder_prefs,
-  _(Lang Opts),
-  lang_opts_tab_-form);
-   fl_addto_tabfolder(dialog_-tabfolder_prefs,
-  _(Converters),
-  converters_tab_-form);
-   fl_addto_tabfolder(dialog_-tabfolder_prefs,
-  _(Inputs),
-  inputs_tab_-form);
-   fl_addto_tabfolder(dialog_-tabfolder_prefs,
-  _(Outputs),
-  outputs_tab_-form);
-
+   FL_OBJECT * obj = fl_addto_tabfolder(dialog_-tabfolder_prefs,
+_(Look  Feel),
+look_n_feel_tab_-form);
+   fl_set_button_shortcut(obj, #F, 1);
+   obj = fl_addto_tabfolder(dialog_-tabfolder_prefs,
+_(Lang Opts),
+lang_opts_tab_-form);
+   fl_set_button_shortcut(obj, #L, 1);
+   obj = fl_addto_tabfolder(dialog_-tabfolder_prefs,
+_(Converters),
+converters_tab_-form);
+   fl_set_button_shortcut(obj, #V, 1);
+   obj = fl_addto_tabfolder(dialog_-tabfolder_prefs,
+_(Inputs),
+inputs_tab_-form);
+   fl_set_button_shortcut(obj, #I, 1);
+   obj = fl_addto_tabfolder(dialog_-tabfolder_prefs,
+_(Outputs),
+outputs_tab_-form);
+   fl_set_button_shortcut(obj, #O, 1);
+   
// now build the nested tabfolders
// Starting with look and feel
-   fl_addto_tabfolder(look_n_feel_tab_-tabfolder_outer,
-  _(Screen Fonts),
-  screen_fonts_.dialog()-form);
-   fl_addto_tabfolder(look_n_feel_tab_-tabfolder_outer,
-  _(Interface),
-  interface_.dialog()-form);
-   fl_addto_tabfolder(look_n_feel_tab_-tabfolder_outer,
-  _(Colors),
-  colors_.dialog()-form);
-   fl_addto_tabfolder(look_n_feel_tab_-tabfolder_outer,
-  _(Misc),
-  lnf_misc_.dialog()-form);
-
+   obj = fl_addto_tabfolder(look_n_feel_tab_-tabfolder_outer,
+_(Screen Fonts),
+screen_fonts_.dialog()-form);
+   fl_set_button_shortcut(obj, #S, 1);
+   obj = fl_addto_tabfolder(look_n_feel_tab_-tabfolder_outer,
+_(Interface),
+interface_.dialog()-form);
+   fl_set_button_shortcut(obj, #N, 1);
+   obj = fl_addto_tabfolder(look_n_feel_tab_-tabfolder_outer,
+_(Colors),
+colors_.dialog()-form);
+   fl_set_button_shortcut(obj, #C, 1);
+   obj = fl_addto_tabfolder(look_n_feel_tab_-tabfolder_outer,
+_(Misc),
+lnf_misc_.dialog()-form);
+   fl_set_button_shortcut(obj, #M, 1);
+   
// then build converters
fl_addto_tabfolder(converters_tab_-tabfolder_outer,
   _(Formats),



Re: mathcursor invalidation?

2001-04-25 Thread Lars Gullik Bjønnes

Kayvan A. Sylvan [EMAIL PROTECTED] writes:

| On Tue, Apr 24, 2001 at 10:29:32PM +0200, Lars Gullik Bjønnes wrote:
|  Kayvan A. Sylvan [EMAIL PROTECTED] writes:
|  
|  | I will set up anon cvs if it won't get too much traffic.
|  
|  I can't imagine the amount of traffic to be huge.
| 
| Okay. I have set up the anoncvs using rsync. Works great.
| 
| This anon CVS repository is set up to sync from baywatch.lyx.org
| every 15 minutes.

That was a bit often... can you use every other hour or something
instead?
 
| To use it, do:
| 
|   export CVSROOT=:pserver:[EMAIL PROTECTED]:/cvs/lyx
|   cvs login
| 
| Since this is an exact duplicate of the anoncvs at baywatch, the
| password is lyx.
| 
| The instructions at http://www.devel.lyx.org/cvs.php3 for using
| the anonymous CVS server all apply.
| 
| My daily builds are building again. The results can be found
| at ftp://ftp.sylvan.com/pub/lyx/devel

Can we use this as an official mirror?

Your in US right?
(we really should have an European mirror too)

anoncvs.us.lyx.org would that work for you?

-- 
Lgb



Re: StateMachineEngine

2001-04-25 Thread Lars Gullik Bjønnes

Allan Rae [EMAIL PROTECTED] writes:

| On 24 Apr 2001, Lars Gullik [iso-8859-1] Bjønnes wrote:
|  class Macro {
| [...]
|  };
| 
| See, didn't I say that with addition-order and a simple class we could
| have macro-recording!
| 
| So have you added it yet?

No...

but when somebody do so (You or I), then I'd like session logging to
go in at the same time.

So I'd like to see at least six new LFUN's:

macro-begin arg
macro-end
macro-run arg
perhaps:
macro-delete arg
macro-list

session-log-start
session-log-stop
session-log-play

-- 
Lgb



Re: SUN CC 6.0 Update 1 compiles !!! (almost)

2001-04-25 Thread Michael Schmitt

Hmmm,

you never stop learning new options. Enclosed please find the output
of cvs diff -u.

Michael

==
Michael Schmittphone: +49 451 500 3725
Institute for Telematics   secretary: +49 451 500 3721
Medical University of Luebeck  fax:   +49 451 500 3722
Ratzeburger Allee 160  eMail: [EMAIL PROTECTED]
D-23538 Luebeck, Germany   WWW:   http://www.itm.mu-luebeck.de
==

 patches.gz


Re: mathcursor invalidation?

2001-04-25 Thread Kayvan A. Sylvan

On Wed, Apr 25, 2001 at 09:17:04AM +0200, Lars Gullik Bjønnes wrote:

 | Okay. I have set up the anoncvs using rsync. Works great.
 | 
 | This anon CVS repository is set up to sync from baywatch.lyx.org
 | every 15 minutes.
 
 That was a bit often... can you use every other hour or something
 instead?

Why? The most time-consuming sync is the first one. After that, we are only
passing around relatively small files.

 | The instructions at http://www.devel.lyx.org/cvs.php3 for using
 | the anonymous CVS server all apply.
 | 
 | My daily builds are building again. The results can be found
 | at ftp://ftp.sylvan.com/pub/lyx/devel
 
 Can we use this as an official mirror?

Yes.

 Your in US right?

Yup. I am in San Jose, California, USA.

 (we really should have an European mirror too)
 
 anoncvs.us.lyx.org would that work for you?

Sure. You want to set it up as a CNAME for cvs.sylvan.com?

---Kayvan
-- 
Kayvan A. Sylvan   | Proud husband of  | Father to my kids:
Sylvan Associates, Inc.| Laura Isabella Sylvan | Katherine Yelena
http://www.successlinks.com/kayvan | Reach your goals now! | Robin Gregory



math_hash

2001-04-25 Thread Andre Poenitz


Aehm.. how do I add new keywords there?

Looks like I have to run 'gperf' on something, but I really don't know on
waht. Would it hurt if I changed this whole thing to use std::map? It's
only 250 entries or so after all...

Andre'

-- 
André Pönitz . [EMAIL PROTECTED]



Re: mathcursor invalidation?

2001-04-25 Thread Lars Gullik Bjønnes

Kayvan A. Sylvan [EMAIL PROTECTED] writes:

| On Wed, Apr 25, 2001 at 09:17:04AM +0200, Lars Gullik Bjønnes wrote:
| 
|  | Okay. I have set up the anoncvs using rsync. Works great.
|  | 
|  | This anon CVS repository is set up to sync from baywatch.lyx.org
|  | every 15 minutes.
|  
|  That was a bit often... can you use every other hour or something
|  instead?
| 
| Why? The most time-consuming sync is the first one. After that, we are only
| passing around relatively small files.

but you are not the only one using rsync. also remember that the old
anoncvs had a only 30 minutes lag, and that was on the same subnet.

I will possibly set a max connections on the rsync server to lessen
the load on baywatch.
 
|  | The instructions at http://www.devel.lyx.org/cvs.php3 for using
|  | the anonymous CVS server all apply.
|  | 
|  | My daily builds are building again. The results can be found
|  | at ftp://ftp.sylvan.com/pub/lyx/devel
|  
|  Can we use this as an official mirror?
| 
| Yes.

super.
 
|  Your in US right?
| 
| Yup. I am in San Jose, California, USA.

I'll call on you next time I am in the neighbourhood
 
|  (we really should have an European mirror too)
|  
|  anoncvs.us.lyx.org would that work for you?
| 
| Sure. You want to set it up as a CNAME for cvs.sylvan.com?

yes.

done.

anoncvs.us.lyx.org and cvs.us.lyx.org points to cvs.sylvan.com

-- 
Lgb



Re: math_hash

2001-04-25 Thread Lars Gullik Bjønnes

Andre Poenitz [EMAIL PROTECTED] writes:

| Aehm.. how do I add new keywords there?
| 
| Looks like I have to run 'gperf' on something, but I really don't know on
| waht. Would it hurt if I changed this whole thing to use std::map? It's
| only 250 entries or so after all...

fine for me, as this will make it easier to add new symbols. but make
sure that you will be backwards compatible.

If performance is a problem we can use a hash_map later.

-- 
Lgb



How to put something in the preamble?

2001-04-25 Thread Andre Poenitz


What is the recommended way to put something in the preamble that gets
written to a .tex file?

-

Has anybody strong feelings on how a 'macro pool' should be implemented?
I.e. currently we write macro definitions to the .lyx/.tex file according
to their position in the document. This does not work with macro provided
in macro_table.C since they do not have a fixed position in the document,
and as we had discussed ealier, macro definitions are not exactly part of
the body of the document. 

So for writing .tex we would need some mechanism like:

1. Write everything as usual, except macro definitions, if we encounter
an macro, put its name into a list.  After the body of the document has
been written, _pre_pend the definitions of all used macros

-or-

2. Write each macro definition to the preamble first and write everything 
else as usual.

-or-

3. Something I have not thought of yet.

I'd think 2 would probably best, since it is easier and does not lose
information (unused macros).

The .lyx file could contain macro definitions in its haeder and the GUI
should provide a way to edit macro definitions outside the document
text.

Comments?

Main problem with all of this is that it goes beyond the scope of mathed
and I do not really want to do it...


Andre'


-- 
André Pönitz . [EMAIL PROTECTED]



Re: mathcursor invalidation?

2001-04-25 Thread Kayvan A. Sylvan

On Wed, Apr 25, 2001 at 11:27:17AM +0200, Lars Gullik Bjønnes wrote:
 | 
 | Why? The most time-consuming sync is the first one. After that, we are only
 | passing around relatively small files.
 
 but you are not the only one using rsync. also remember that the old
 anoncvs had a only 30 minutes lag, and that was on the same subnet.

I have reset it to once per hour. I hope that's okay.

 done.
 
 anoncvs.us.lyx.org and cvs.us.lyx.org points to cvs.sylvan.com
 

Great.

Being a LyX developer is like being on the PTA. When you start
complaining, you better be prepared to do the work. ;-)

---Kayvan
-- 
Kayvan A. Sylvan   | Proud husband of  | Father to my kids:
Sylvan Associates, Inc.| Laura Isabella Sylvan | Katherine Yelena
http://www.successlinks.com/kayvan | Reach your goals now! | Robin Gregory



Re: math_hash

2001-04-25 Thread Andre Poenitz

 fine for me, as this will make it easier to add new symbols. but make
 sure that you will be backwards compatible.

No problem, after removal of a few unused functions we only need the
mappings 'name-symbol/id' and 'symbol/id-name' disguised in form of 

   latexkey * in_word_set(string const )  and
   latexkey * lm_get_get_by_id(int, short)

Maybe the naming should be fixed later, too...

 If performance is a problem we can use a hash_map later.

Ok.

Andre'

-- 
André Pönitz . [EMAIL PROTECTED]



Re: mathcursor invalidation?

2001-04-25 Thread John Levon

On Wed, 25 Apr 2001, Kayvan A. Sylvan wrote:

 On Wed, Apr 25, 2001 at 11:27:17AM +0200, Lars Gullik Bjønnes wrote:
  | 
  | Why? The most time-consuming sync is the first one. After that, we are only
  | passing around relatively small files.
  
  but you are not the only one using rsync. also remember that the old
  anoncvs had a only 30 minutes lag, and that was on the same subnet.
 
 I have reset it to once per hour. I hope that's okay.
 
  done.
  
  anoncvs.us.lyx.org and cvs.us.lyx.org points to cvs.sylvan.com
  
 
 Great.
 
 Being a LyX developer is like being on the PTA. When you start
 complaining, you better be prepared to do the work. ;-)
 
   ---Kayvan

can someone update the webpages then ? Is this now the permanent anoncvs location ?

thanks
john

-- 
Ninety percent of everything is crap.
- Sturgeon's Law
The other ten per cent is even worse.
- Oak's Corollary




Re: mathcursor invalidation?

2001-04-25 Thread Allan Rae

On Wed, 25 Apr 2001, John Levon wrote:
 can someone update the webpages then ? Is this now the permanent
 anoncvs location ?

Feel free.  I was going to but if you beat me I won't mind.

Allan. (ARRae)




Re: mathcursor invalidation?

2001-04-25 Thread Lars Gullik Bjønnes

John Levon [EMAIL PROTECTED] writes:

| can someone update the webpages then ? Is this now the permanent
| anoncvs location ?

I would've hoped that we could have a couple more anoncvs mirrors.
I am not sure if Kayvan is willing to take all the anoncvs traffic
(not that it is very huge)

And we really should have a mirrors page.

We supposedly have mirrors in Italy,Greece,Mexico,Portugal,US (and
Norway sort of) most of these just for www.

-- 
Lgb



Re: How to put something in the preamble?

2001-04-25 Thread Lars Gullik Bjønnes

Andre Poenitz [EMAIL PROTECTED] writes:

| What is the recommended way to put something in the preamble that gets
| written to a .tex file?

LaTeXFeatures Validate

| So for writing .tex we would need some mechanism like:
| 
| 1. Write everything as usual, except macro definitions, if we encounter
| an macro, put its name into a list.  After the body of the document has
| been written, _pre_pend the definitions of all used macros

why not gather all the macrodefinitions during the Validate?
Just add a mathmacros vector to LaTeXFeatures.

-- 
Lgb



Re: How to put something in the preamble?

2001-04-25 Thread Andre Poenitz

 why not gather all the macrodefinitions during the Validate?
 Just add a mathmacros vector to LaTeXFeatures.

Well, I have no idea what's happening there, but I could try to read the
documentat^H^H^H^Hsources.

Andre'

-- 
André Pönitz . [EMAIL PROTECTED]



mathed65.diff

2001-04-25 Thread Andre Poenitz


This patch contains the implementation of the new 'math-extern' LyX
function.

If you invoke 'math-extern something' (preferably by some keybinding)
in a math inset, the inset will translate its contents into some
normalized form, invoke 'lyx2something normalform outfilename',
and replaces its contents with LaTeX read back from the file outfilename.

The lyx2something can be any executable taking to arguments on the
commandline, namely an normalized form of the content of an math inset
and a file name. It is supposed to produce some LaTeX formula in the
file.

The patch contains a Tcl script 'lyx2maple' which essentially converts
the 'normalized' form into Maple input and pipes this into 'maple -q 
outfile'.

This is far from complete, needs some more work on the mathed parser and
the macro handling as well as a more complete list of supported
functions in the script. The current state is not much more than a toy
(1+2 works, but not much more), so don't expect too much...

Andre'

PS: To implement this correctly we'd probably some semantical structure
in parallel to the purely layout oriented LaTeX-like current structure
similar as MathML does and this will certainly not happen soon...

-- 
André Pönitz . [EMAIL PROTECTED]



Re: the no line break bug

2001-04-25 Thread Lars Gullik Bjønnes

Garst R. Reese [EMAIL PROTECTED] writes:

| Lars Gullik Bjønnes wrote:
|  
|  Reversing this patch, fixes the problem.
| On my checkout for Kayvan's great new mirror, this bug is still present,
| and the patch (jug-bug) does not reverse cleanly. Is there something
| new?
| Thanks, Garst

I am hoping for Jürgen to fix this, since it was hist commit that
broke it.

That patch will probably not patch cleanly now, some stuff has changed
since then.

-- 
Lgb



Re: the no line break bug

2001-04-25 Thread Garst R. Reese

Lars Gullik Bjønnes wrote:
 
 Garst R. Reese [EMAIL PROTECTED] writes:
 
 | Lars Gullik Bjønnes wrote:
 | 
 |  Reversing this patch, fixes the problem.
 | On my checkout for Kayvan's great new mirror, this bug is still present,
 | and the patch (jug-bug) does not reverse cleanly. Is there something
 | new?
 | Thanks, Garst
 
 I am hoping for Jürgen to fix this, since it was hist commit that
 broke it.
OK

 That patch will probably not patch cleanly now, some stuff has changed
 since then.
True, it does not.
Garst



Re: the no line break bug

2001-04-25 Thread Garst R. Reese

Lars Gullik Bjønnes wrote:
 
 Reversing this patch, fixes the problem.
On my checkout for Kayvan's great new mirror, this bug is still present,
and the patch (jug-bug) does not reverse cleanly. Is there something
new?
Thanks, Garst



Re: mathed65.diff

2001-04-25 Thread Dekel Tsur

On Wed, Apr 25, 2001 at 12:52:08PM +0200, Andre Poenitz wrote:
 
 This patch contains the implementation of the new 'math-extern' LyX
 function.

So where is the patch ?

I did try your previous patch, and I got the following error:
bad option map: must be compare, first, index, last, length, match, range, tolower, 
toupper, trim, trimleft, trimright, wordend, or wordstart
while executing
string map { \{ \[  \} \] } $str
(procedure maplize line 3)
invoked from within
maplize $lyxish

(I have tcl 8.0).

 If you invoke 'math-extern something' (preferably by some keybinding)
 in a math inset, the inset will translate its contents into some
 normalized form, invoke 'lyx2something normalform outfilename',
 and replaces its contents with LaTeX read back from the file outfilename.

Can you keep the old contents of the inset and put an equal sign between the
old contents and the result of the script ?



Re: mathed65.diff

2001-04-25 Thread Andre Poenitz

 So where is the patch ?

Oops... didn't I attach it?

I'll try again.

 I did try your previous patch, and I got the following error:
 bad option map: must be compare, first, index, last, length, match, range, 
tolower, toupper, trim, trimleft, trimright, wordend, or wordstart
 while executing
 string map { \{ \[  \} \] } $str
 (procedure maplize line 3)
 invoked from within
 maplize $lyxish
 
 (I have tcl 8.0).

Oh... I have 8.3. Looks like a new feature than. I will try to rewrite this
in order to make it work with 8.0.

  If you invoke 'math-extern something' (preferably by some keybinding)
  in a math inset, the inset will translate its contents into some
  normalized form, invoke 'lyx2something normalform outfilename',
  and replaces its contents with LaTeX read back from the file outfilename.
 
 Can you keep the old contents of the inset and put an equal sign between the
 old contents and the result of the script ?

That's what I tried first, but somehow the inset got messed up... I'll
retry anyway.

Andre'


-- 
André Pönitz . [EMAIL PROTECTED]


Index: src/LyXAction.C
===
RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/LyXAction.C,v
retrieving revision 1.77
diff -u -p -r1.77 LyXAction.C
--- src/LyXAction.C 2001/04/17 13:54:24 1.77
+++ src/LyXAction.C 2001/04/25 10:11:47
@@ -322,6 +322,7 @@ void LyXAction::init()
{ LFUN_MATH_MODE, math-mode, N_(Math mode), Noop },
{ LFUN_MATH_NONUMBER, math-nonumber, , Noop },
{ LFUN_MATH_NUMBER, math-number, , Noop },
+   { LFUN_MATH_EXTERN, math-extern, , Noop },
{ LFUN_MATH_PANEL, math-panel, , Noop },
{ LFUN_MATH_SIZE, math-size, , Noop },
 #if 0
Index: src/commandtags.h
===
RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/commandtags.h,v
retrieving revision 1.57
diff -u -p -r1.57 commandtags.h
--- src/commandtags.h   2001/04/17 13:54:24 1.57
+++ src/commandtags.h   2001/04/25 10:11:47
@@ -141,6 +141,7 @@ enum kb_action {
LFUN_MATH_SIZE,   //  Alejandro 150896
LFUN_MATH_MACRO, // ale970510
LFUN_MATH_MACROARG,  // ale970510  // 120
+   LFUN_MATH_EXTERN,  // Andre' 20010424
LFUN_MATH_PANEL,
LFUN_FIGURE,
 #if 0
Index: src/lyxfunc.C
===
RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/lyxfunc.C,v
retrieving revision 1.206
diff -u -p -r1.206 lyxfunc.C
--- src/lyxfunc.C   2001/04/24 15:25:20 1.206
+++ src/lyxfunc.C   2001/04/25 10:11:47
@@ -1374,11 +1374,11 @@ string const LyXFunc::Dispatch(int ac,
}
break;

+   case LFUN_MATH_EXTERN:
case LFUN_MATH_NUMBER:
case LFUN_MATH_LIMITS:
{
setErrorMessage(N_(This is only allowed in math mode!));
-   
}
break;
 
Index: src/frontends/xforms/MathsSymbols.C
===
RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/frontends/xforms/MathsSymbols.C,v
retrieving revision 1.2
diff -u -p -r1.2 MathsSymbols.C
--- src/frontends/xforms/MathsSymbols.C 2001/03/19 15:38:22 1.2
+++ src/frontends/xforms/MathsSymbols.C 2001/04/25 10:11:47
@@ -283,7 +283,7 @@ static char const ** pixmapFromBitmapDat
 char const ** get_pixmap_from_symbol(char const * arg, int wx, int hx)
 {
char const ** data = 0;
-   latexkeys const * l = in_word_set (arg, strlen(arg));
+   latexkeys const * l = in_word_set(arg);
if (!l)
return 0;
 
Index: src/mathed/formula.C
===
RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/mathed/formula.C,v
retrieving revision 1.99
diff -u -p -r1.99 formula.C
--- src/mathed/formula.C2001/04/24 16:13:38 1.99
+++ src/mathed/formula.C2001/04/25 10:11:47
@@ -14,6 +14,7 @@
 */
 
 #include config.h
+#include fstream
 
 #include Lsstream.h
 
@@ -33,10 +34,11 @@
 #include debug.h
 #include lyx_gui_misc.h
 #include support/LOstream.h
+#include support/lyxlib.h
+#include support/syscall.h
 #include LyXView.h
 #include Painter.h
 #include font.h
-#include support/lyxlib.h
 #include lyxrc.h
 #include math_inset.h
 #include math_parinset.h
@@ -47,7 +49,9 @@
 #include mathed/support.h
 #include lyxfunc.h
 
+using std::ostringstream;
 using std::ostream;
+using std::ifstream;
 using std::istream;
 using std::pair;
 using std::endl;
@@ -1008,7 +1012,7 @@ InsetFormula::LocalDispatch(BufferView *
ilf = lyx::atoi(lf);
else
if (lf[1]) {
-   l = in_word_set(lf, strlen(lf));
+   l = in_word_set(lf);
 

cvs alternatives?

2001-04-25 Thread larry

Is there some alternative to (broken) cvs access, to get the
latest devel sources?

It seems that people are still working on the code and that
changes continue to be exchanged between developers, and we're
going into what, about two weeks since anon cvs went down?

Where is the devel source tree online?

Best Regards,

Larry Marso



Re: Thank you!

2001-04-25 Thread Amir Karger

On Wed, Apr 25, 2001 at 10:25:43AM +1000, Allan Rae wrote:
 On Tue, 24 Apr 2001, Amir Karger wrote:
 
  You didn't read the second line, where I mentioned a new job, which means no
  more 3-hour reLyX coding sessions masquerading as long lunches.
 
 That shouldn't stop you working at night when your wife is working late or
 after she's gone to sleep (sneak out to the computer for a few hours of
 hacking!).

Aha! But I didn't mention lame excuse #2: my wife's expecting a v2.0 in
July!

 There's also weekends and early mornings ;-)

Not anymore (I'm told I'm supposed to be excited about this :)

-Amir



Re: cvs alternatives?

2001-04-25 Thread Kayvan A. Sylvan

Use my CVS mirror:

export CVSROOT=:pserver:[EMAIL PROTECTED]:/cvs/lyx
cvs login
(password is lyx)

You can fix all the Root files in your old repository and do a
cvs update or do a fresh get, your choice.

---Kayvan

On Wed, Apr 25, 2001 at 07:22:46AM -0700, [EMAIL PROTECTED] wrote:
 Is there some alternative to (broken) cvs access, to get the
 latest devel sources?
 
 It seems that people are still working on the code and that
 changes continue to be exchanged between developers, and we're
 going into what, about two weeks since anon cvs went down?
 
 Where is the devel source tree online?
 
 Best Regards,
 
 Larry Marso

-- 
Kayvan A. Sylvan   | Proud husband of  | Father to my kids:
Sylvan Associates, Inc.| Laura Isabella Sylvan | Katherine Yelena
http://www.successlinks.com/kayvan | Reach your goals now! | Robin Gregory



Re: math_hash

2001-04-25 Thread Alejandro Aguilar Sierra

On Wed, 25 Apr 2001, Andre Poenitz wrote:

 Looks like I have to run 'gperf' on something, but I really don't know on
 waht. Would it hurt if I changed this whole thing to use std::map? It's
 only 250 entries or so after all...

Go ahead.

Alejandro




Re: mathed65.diff

2001-04-25 Thread Lars Gullik Bjønnes

Andre Poenitz [EMAIL PROTECTED] writes:

| That's what I tried first, but somehow the inset got messed up... I'll
| retry anyway.

I wonder if this would be a good idea:

--- math_hash.C Wed Apr 25 17:39:36 2001
+++ math_hash.C.new Wed Apr 25 17:38:04 2001
@@ -305,32 +305,45 @@
 
 
 // helper structure to initialize the maps on startup:
-struct init {
-   init() {
-   int const n = sizeof(wordlist)/sizeof(wordlist[0]);
-   for (latexkeys const * it = wordlist; it != wordlist + n; ++it)
{
-   LatexkeyByName[it-name] = it - wordlist;
+struct init_latexkeybyid {
+   init_latexkeybyid() {
+   int const n = sizeof(wordlist) / sizeof(wordlist[0]);
+   latexkeys const * cit = wordlist;
+   latexkeys const * end = wordlist + n;
+   for (; cit != end, ++cit) {
LatexkeyById[symbolindex(it-id, it-token)] = it - wordlist;
}
}
 };
 
-// the Initializer: Its default constructor is executed on loading and
-// fills the maps
-static init dummy;
 
+// helper structure to initialize the maps on startup:
+struct init_latexkeybyname {
+   init_latexkeybyname() {
+   int const n = sizeof(wordlist) / sizeof(wordlist[0]);
+   latexkeys const * cit = wordlist;
+   latexkeys const * end = wordlist + n;
+   for (; cit != end, ++cit) {
+   LatexkeyByName[it-name] = it - wordlist;
+   }
+   }
+};
+
 } // namespace anon
 
 
 latexkeys const * in_word_set(string const  str)
 {
+   static init_latexkeybyname dummy;
+
std::mapstring, int::const_iterator pos = LatexkeyByName.find(str);
return pos == LatexkeyByName.end() ? 0 : wordlist[pos-second];
 }
-
-
+
 latexkeys const * lm_get_key_by_id(int id, short tc)
 {
+   static init_latexkeybyid dymmy;
+
std::mapsymbolindex, int::const_iterator pos
= LatexkeyById.find(symbolindex(id, tc));
return pos == LatexkeyById.end() ? 0 : wordlist[pos-second];


The actual initialization woll be slower, but the cost will be moved
to runtime instead of init time. And documents/sessions that does not
use math at all will not be penalized.

-- 
Lgb



Math Toolbar

2001-04-25 Thread Angus Leeming

Sorry for the long silence; work has been v. busy recently and this isn't 
likely to change for a while...

Anyway, in a few minutes of free time, I've been trying to build the bones of 
a Math Toolbar. The idea is that the Toolbar should become visible when an 
InsetFormula becomes active and that it should disappear again when the 
InsetFormula becomes inactive.

The question is, where's the right place to emit the signals
showMathToolbar
hideMathToolbar

I'd guess that 
BufferView::Pimpl::workAreaButtonPress
BufferView::Pimpl::workAreaButtonRelease
would be right, but what about using the arrow keys to just move the cursor 
into the InsetFormula?

As you can see, I know very little about how all this is controlled; be 
gentle, please!

Angus





Re: LyX-1.1.6cvs libsigc++

2001-04-25 Thread Lars Gullik Bjønnes

Jean-Marc Lasgouttes [EMAIL PROTECTED] writes:

| An alternative is to wait until a 0.10.37 is released. There has been
| so much time since 0.10.35 that I suspect many people have been
| sending patches lately.

0.10.37 is out now.

-- 
Lgb



mathed66.diff

2001-04-25 Thread Andre Poenitz


Also known as mathed65.diff (Service Pack 1)

 - \frac happens to render properly again (I just noticed that I managed to
   break even that)

 - Tcl 8.0 should suffice for lyx2maple

I just noticed that reading arrays is broken again, but I think I won't
bother chasing that bug and rather start with the rewrite of the multiline
stuff...

Andre'

-- 
André Pönitz . [EMAIL PROTECTED]

 /tmp/mathed66.diff.gz


Re: Thank you!

2001-04-25 Thread Kayvan A. Sylvan

On Wed, Apr 25, 2001 at 10:53:11AM -0400, Amir Karger wrote:
 On Wed, Apr 25, 2001 at 10:25:43AM +1000, Allan Rae wrote:
  On Tue, 24 Apr 2001, Amir Karger wrote:
  
   You didn't read the second line, where I mentioned a new job, which means no
   more 3-hour reLyX coding sessions masquerading as long lunches.
  
  That shouldn't stop you working at night when your wife is working late or
  after she's gone to sleep (sneak out to the computer for a few hours of
  hacking!).
 
 Aha! But I didn't mention lame excuse #2: my wife's expecting a v2.0 in
 July!
 
  There's also weekends and early mornings ;-)
 
 Not anymore (I'm told I'm supposed to be excited about this :)
 
 -Amir


Double congrats! You've been busy... ;-}

Now you will be sleep deprived for even more reasons. ;-)

-- 
Kayvan A. Sylvan   | Proud husband of  | Father to my kids:
Sylvan Associates, Inc.| Laura Isabella Sylvan | Katherine Yelena
http://www.successlinks.com/kayvan | Reach your goals now! | Robin Gregory



Re: mathed66.diff

2001-04-25 Thread Lars Gullik Bjønnes

Andre Poenitz [EMAIL PROTECTED] writes:

| Also known as mathed65.diff (Service Pack 1)

I already applied mathed65 so you have to redo this patch.
(just let me commit first)

| I just noticed that reading arrays is broken again, but I think I won't
| bother chasing that bug and rather start with the rewrite of the multiline
| stuff...

Ok, but I wan't us to think about a prerelease soon.

-- 
Lgb



Bug in mathed.

2001-04-25 Thread Dekel Tsur

If I type M-m s (for generating a square root) I don't see the root sign until
a key is pressed (and also, the cursor goes outside of the screen).
However, typing '\sqrt space' works OK.
This bug is very recent (probably caused by mathed64.diff).



glibc2 Linux LyX 1.1.6 binary is 48MB!?

2001-04-25 Thread Jeff Blaine

Hi folks...I'm a sysadmin, and not subscribed to this list.
I just need to know...

Is this normal?

% ls -l
total 47304
-rwxr-xr-x1 jblaine  wheel   0 Apr 20 10:35 listerrors*
-rwxr-xr-x1 jblaine  wheel48433032 Apr 20 10:35 lyx*
-rwxr-xr-x1 jblaine  wheel3954 Apr 20 10:35 noweb2lyx*
-rwxr-xr-x1 jblaine  wheel1996 Apr 20 10:35 reLyX*
% ldd lyx
libXpm.so.4 = /usr/X11R6/lib/libXpm.so.4 (0x40018000)
libpthread.so.0 = /lib/libpthread.so.0 (0x40026000)
libSM.so.6 = /usr/X11R6/lib/libSM.so.6 (0x40039000)
libICE.so.6 = /usr/X11R6/lib/libICE.so.6 (0x40043000)
libX11.so.6 = /usr/X11R6/lib/libX11.so.6 (0x4005b000)
libm.so.6 = /lib/libm.so.6 (0x400ff000)
libc.so.6 = /lib/libc.so.6 (0x4011c000)
/lib/ld-linux.so.2 = /lib/ld-linux.so.2 (0x4000)

Hmm.  I just stripped the binary and it's 3MB.  That's an
AMAZING difference in binary sizes...what's going on there?



Re: glibc2 Linux LyX 1.1.6 binary is 48MB!?

2001-04-25 Thread Kayvan A. Sylvan

Yes, that's normal.

You probably compiled with -g (debugging).

You can also use the RPMs if you don't want the hassle of compiling it
yourself.

---Kayvan

On Wed, Apr 25, 2001 at 03:11:13PM -0400, Jeff Blaine wrote:
 Hi folks...I'm a sysadmin, and not subscribed to this list.
 I just need to know...
 
 Is this normal?
 
 % ls -l
 total 47304
 -rwxr-xr-x1 jblaine  wheel   0 Apr 20 10:35 listerrors*
 -rwxr-xr-x1 jblaine  wheel48433032 Apr 20 10:35 lyx*
 -rwxr-xr-x1 jblaine  wheel3954 Apr 20 10:35 noweb2lyx*
 -rwxr-xr-x1 jblaine  wheel1996 Apr 20 10:35 reLyX*
 % ldd lyx
 libXpm.so.4 = /usr/X11R6/lib/libXpm.so.4 (0x40018000)
 libpthread.so.0 = /lib/libpthread.so.0 (0x40026000)
 libSM.so.6 = /usr/X11R6/lib/libSM.so.6 (0x40039000)
 libICE.so.6 = /usr/X11R6/lib/libICE.so.6 (0x40043000)
 libX11.so.6 = /usr/X11R6/lib/libX11.so.6 (0x4005b000)
 libm.so.6 = /lib/libm.so.6 (0x400ff000)
 libc.so.6 = /lib/libc.so.6 (0x4011c000)
 /lib/ld-linux.so.2 = /lib/ld-linux.so.2 (0x4000)
 
 Hmm.  I just stripped the binary and it's 3MB.  That's an
 AMAZING difference in binary sizes...what's going on there?

-- 
Kayvan A. Sylvan   | Proud husband of  | Father to my kids:
Sylvan Associates, Inc.| Laura Isabella Sylvan | Katherine Yelena
http://www.successlinks.com/kayvan | Reach your goals now! | Robin Gregory



Re: glibc2 Linux LyX 1.1.6 binary is 48MB!?

2001-04-25 Thread Lars Gullik Bjønnes

Jeff Blaine [EMAIL PROTECTED] writes:

| Hi folks...I'm a sysadmin, and not subscribed to this list.
| I just need to know...
| 
| Is this normal?
| 
| % ls -l
| total 47304
| -rwxr-xr-x1 jblaine  wheel   0 Apr 20 10:35 listerrors*
| -rwxr-xr-x1 jblaine  wheel48433032 Apr 20 10:35 lyx*
| -rwxr-xr-x1 jblaine  wheel3954 Apr 20 10:35 noweb2lyx*
| -rwxr-xr-x1 jblaine  wheel1996 Apr 20 10:35 reLyX*
| % ldd lyx
| libXpm.so.4 = /usr/X11R6/lib/libXpm.so.4 (0x40018000)
| libpthread.so.0 = /lib/libpthread.so.0 (0x40026000)
| libSM.so.6 = /usr/X11R6/lib/libSM.so.6 (0x40039000)
| libICE.so.6 = /usr/X11R6/lib/libICE.so.6 (0x40043000)
| libX11.so.6 = /usr/X11R6/lib/libX11.so.6 (0x4005b000)
| libm.so.6 = /lib/libm.so.6 (0x400ff000)
| libc.so.6 = /lib/libc.so.6 (0x4011c000)
| /lib/ld-linux.so.2 = /lib/ld-linux.so.2 (0x4000)
| 
| Hmm.  I just stripped the binary and it's 3MB.  That's an
| AMAZING difference in binary sizes...what's going on there?

Debugging symbols.

My lyx compiled with gcc 3.0 (prerelease) is:

[larsbj@trylle ny]$ ls -l src/lyx
-rwxr-xr-x1 larsbj   larsbj   52009419 Apr 25 21:40 src/lyx

with gcc 2.96-81:

[larsbj@trylle build]$ ls -l src/lyx
-rwxr-xr-x1 larsbj   larsbj   41520026 Apr 25 17:58 src/lyx

so it is quite normal.

Hmm.. and you also seem to have libstdc++ and libforms statically compiled in.
(and libpthread is not needed, and is removed in later versions.)

-- 
Lgb



NEW_INSETS cleanup

2001-04-25 Thread Lars Gullik Bjønnes


Unless I get a lot of protests I will begin to slowly cleanup the
NEW_INSETS ifdef mess.

I will begin with LyXParagraph and progressto LyXText.
I will leave code that is particularly interesting or that is not
quite working in the NEW_INSETS case.

-- 
Lgb



Re: NEW_INSETS cleanup

2001-04-25 Thread Kayvan A. Sylvan

On Wed, Apr 25, 2001 at 09:24:37PM +0200, Lars Gullik Bjønnes wrote:
 
 Unless I get a lot of protests I will begin to slowly cleanup the
 NEW_INSETS ifdef mess.
 
 I will begin with LyXParagraph and progressto LyXText.
 I will leave code that is particularly interesting or that is not
 quite working in the NEW_INSETS case.

It's good that I got anon CVS up and running again, since I'll be able to
give you quick feedback if something you do breaks the build.

No objections!
---Kayvan



It is not a serious bug, is it even a feature?

2001-04-25 Thread Jörg Meiforth

Hai there,

it is not really a problem, more a cosmetic thing:

After placing a Bibliography, the numbering of the following sections 
starts with zero again. This appears only in the WYSIWYM-Editor, in the 
DVI-File everything is fine. I've attached a very small lyx document to 
demonstrate it.

I'm using the precompiled lyx-1.1.6fix1 file from the Lyx-Server.

P.S.: Many thanks for this great program, it is much more fun than all the 
other word-processors, so much that I often forget to work and start 
experimenting, with all the layout and design possibilities for my text...;-))
-- 
e-mail: [EMAIL PROTECTED]
Diese Nachricht wurde mit K-Mail erstellt


#LyX 1.1 created this file. For more info see http://www.lyx.org/
\lyxformat 218
\textclass article
\language german
\inputencoding auto
\fontscheme default
\graphics default
\paperfontsize default
\spacing single 
\papersize Default
\paperpackage a4
\use_geometry 0
\use_amsmath 0
\paperorientation portrait
\secnumdepth 3
\tocdepth 3
\paragraph_separation indent
\defskip medskip
\quotes_language english
\quotes_times 2
\papercolumns 1
\papersides 1
\paperpagestyle default

\layout Section

Chapter 1
\layout Standard

Any text
\layout Section

Chapter 2
\layout Standard

Any Text
\layout Section

Appendix
\layout Bibliography
\bibitem {key-2}

Any source of information
\layout Subsection

Subchapter 1
\layout Standard

Now it starts the numbering with '0' again.
 In the dvi-file everything is right, so I think it is more a cosmetic problem.
\layout Section

Thanks
\layout Standard

I want to thank everyone
\layout Subsection

just any text
\layout Standard

Any text
\the_end



Mathed bug

2001-04-25 Thread Michael Schmitt

Hi,

I checked the latest cvs and I would like to mention a bug that may
indicate some internal memory management problem. Just create a new math
formula with some indexed variable a_i. Then copy a_i (within
mathed) and paste it several times (a_i a_i a_i a_i) . If you try to the
change the index of a copy in the middle of the formula, you will notice
that this is not possible. The cursor either jumps to the first or the
last variable. It is just a guess, but I could assume that mathed does not
make _real_ copies.

Michael

==
Michael Schmittphone: +49 451 500 3725
Institute for Telematics   secretary: +49 451 500 3721
Medical University of Luebeck  fax:   +49 451 500 3722
Ratzeburger Allee 160  eMail: [EMAIL PROTECTED]
D-23538 Luebeck, Germany   WWW:   http://www.itm.mu-luebeck.de
==




Re: LDN-20010425

2001-04-25 Thread Allan Rae

On Wed, 25 Apr 2001, Allan Rae wrote:

 A new LDN will be available sometime in the next 30 minutes or so.  So
 don't rush off now and then complain that the URL is broken.  I've
 committed the changes to CVS but I want to go home by midnight if I can.

Lars?  It's been 12 hours and I don't see any new update.  How often does
www.no.lyx.org update its web pages?

I told LWN that it'd be available and their deadline is RSN.

Allan. (ARRae)




Re: LDN-20010425

2001-04-25 Thread Allan Rae

On Wed, 25 Apr 2001, Allan Rae wrote:

 A new LDN will be available sometime in the next 30 minutes or so.  So
 don't rush off now and then complain that the URL is broken.  I've
 committed the changes to CVS but I want to go home by midnight if I can.

 Anyway,  here's the URL:

   http://www.lyx.org/news/20010425.php3

 but be patient.

It seems that the Norwegian mirror is rather slow at updating.
You can find it at the Italian mirror though:

http://www.it.lyx.org/news/20010425.php3

Allan. (ARRae)




Re: Thank you!

2001-04-25 Thread Allan Rae

On Wed, 25 Apr 2001, Amir Karger wrote:

 On Wed, Apr 25, 2001 at 10:25:43AM +1000, Allan Rae wrote:
  On Tue, 24 Apr 2001, Amir Karger wrote:
 
   You didn't read the second line, where I mentioned a new job, which means no
   more 3-hour reLyX coding sessions masquerading as long lunches.
 
  That shouldn't stop you working at night when your wife is working late or
  after she's gone to sleep (sneak out to the computer for a few hours of
  hacking!).

 Aha! But I didn't mention lame excuse #2: my wife's expecting a v2.0 in
 July!

Congratulations!

Then you'll have an excuse to sit in front of the computer gently rocking
your new born as you type in the wee small hours of the morning ;-)

You have two whole months to practice in the meantime!
What a blessing!

Allan. (ARRae)




Changes in default.ui

2001-04-25 Thread Kayvan A. Sylvan

Looking at the default.ui file, I noticed that the following lines were
recently commented out:

#   Item Melt|M melt
#   Item Open All Figures/Tables|F floats-operate openfig
#   Item Close All Figures/Tables|T floats-operate closefig
#   Item Open All Footnotes/Marginal Notes|A floats-operate openfoot
#   Item Close All Footnotes/Marginal Notes|C floats-operate closefoot

Is this functionality going to go back in at some point?

---Kayvan



LDN-20010425

2001-04-25 Thread Allan Rae


A new LDN will be available sometime in the next 30 minutes or so.  So
don't rush off now and then complain that the URL is broken.  I've
committed the changes to CVS but I want to go home by midnight if I can.

Anyway,  here's the URL:

http://www.lyx.org/news/20010425.php3

but be patient.

Allan. (ARRae)




Re: mathcursor invalidation?

2001-04-25 Thread Allan Rae

On Wed, 25 Apr 2001, Garst R. Reese wrote:

> When I do:
> bash$ cvs update -dP lyx-devel
>
> I get:
>  'Directory' missingE protocol error: directory
> '/usr/local/lyx/cvsroot/lyx-devel' not within root '/cvs/lyx'
> Thanks, Garst
> What do I need to change?

You're trying to update from a different repository to the one you
originally used aren't you?  It seems you had a tree checked out from
cvs.lyx.org and now you want to update it from cvs.sylvan.com instead.

You need to replace every CVS/Root file with one that has:

:pserver:[EMAIL PROTECTED]:/cvs/lyx

instead. Or at least some variation on that which you should be able to
figure out from what's already in those files.  Fortunately,  all these
files have the same contents.

The other way to "fix" this is to checkout a new copy from kayvans site.

Allan. (ARRae)




Re: mathcursor invalidation?

2001-04-25 Thread Garst R. Reese

Allan Rae wrote:

> The other way to "fix" this is to checkout a new copy from kayvans site.
> 
Thanks Allan
Garst



xforms tabbed dialog shortcuts

2001-04-25 Thread Allan Rae


Good News:   They work!

Bad News:They only work for the deepest tabfolder that has shortcuts.

What this means is that if we define shortcuts for the inner tab folder we
can't switch to a different outer tab using shortcuts.

Try the attached patch for an example.

Allan. (ARRae)



Index: src/frontends/xforms/FormPreferences.C
===
RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/frontends/xforms/FormPreferences.C,v
retrieving revision 1.64
diff -u -p -r1.64 FormPreferences.C
--- src/frontends/xforms/FormPreferences.C  2001/04/24 17:33:00 1.64
+++ src/frontends/xforms/FormPreferences.C  2001/04/25 06:31:01
@@ -200,37 +200,46 @@ void FormPreferences::build()
spellchecker_.build();
 
// Now add them to the tabfolder
-   fl_addto_tabfolder(dialog_->tabfolder_prefs,
-  _("Look & Feel"),
-  look_n_feel_tab_->form);
-   fl_addto_tabfolder(dialog_->tabfolder_prefs,
-  _("Lang Opts"),
-  lang_opts_tab_->form);
-   fl_addto_tabfolder(dialog_->tabfolder_prefs,
-  _("Converters"),
-  converters_tab_->form);
-   fl_addto_tabfolder(dialog_->tabfolder_prefs,
-  _("Inputs"),
-  inputs_tab_->form);
-   fl_addto_tabfolder(dialog_->tabfolder_prefs,
-  _("Outputs"),
-  outputs_tab_->form);
-
+   FL_OBJECT * obj = fl_addto_tabfolder(dialog_->tabfolder_prefs,
+_("Look & Feel"),
+look_n_feel_tab_->form);
+   fl_set_button_shortcut(obj, "#F", 1);
+   obj = fl_addto_tabfolder(dialog_->tabfolder_prefs,
+_("Lang Opts"),
+lang_opts_tab_->form);
+   fl_set_button_shortcut(obj, "#L", 1);
+   obj = fl_addto_tabfolder(dialog_->tabfolder_prefs,
+_("Converters"),
+converters_tab_->form);
+   fl_set_button_shortcut(obj, "#V", 1);
+   obj = fl_addto_tabfolder(dialog_->tabfolder_prefs,
+_("Inputs"),
+inputs_tab_->form);
+   fl_set_button_shortcut(obj, "#I", 1);
+   obj = fl_addto_tabfolder(dialog_->tabfolder_prefs,
+_("Outputs"),
+outputs_tab_->form);
+   fl_set_button_shortcut(obj, "#O", 1);
+   
// now build the nested tabfolders
// Starting with look and feel
-   fl_addto_tabfolder(look_n_feel_tab_->tabfolder_outer,
-  _("Screen Fonts"),
-  screen_fonts_.dialog()->form);
-   fl_addto_tabfolder(look_n_feel_tab_->tabfolder_outer,
-  _("Interface"),
-  interface_.dialog()->form);
-   fl_addto_tabfolder(look_n_feel_tab_->tabfolder_outer,
-  _("Colors"),
-  colors_.dialog()->form);
-   fl_addto_tabfolder(look_n_feel_tab_->tabfolder_outer,
-  _("Misc"),
-  lnf_misc_.dialog()->form);
-
+   obj = fl_addto_tabfolder(look_n_feel_tab_->tabfolder_outer,
+_("Screen Fonts"),
+screen_fonts_.dialog()->form);
+   fl_set_button_shortcut(obj, "#S", 1);
+   obj = fl_addto_tabfolder(look_n_feel_tab_->tabfolder_outer,
+_("Interface"),
+interface_.dialog()->form);
+   fl_set_button_shortcut(obj, "#N", 1);
+   obj = fl_addto_tabfolder(look_n_feel_tab_->tabfolder_outer,
+_("Colors"),
+colors_.dialog()->form);
+   fl_set_button_shortcut(obj, "#C", 1);
+   obj = fl_addto_tabfolder(look_n_feel_tab_->tabfolder_outer,
+_("Misc"),
+lnf_misc_.dialog()->form);
+   fl_set_button_shortcut(obj, "#M", 1);
+   
// then build converters
fl_addto_tabfolder(converters_tab_->tabfolder_outer,
   _("Formats"),



Re: mathcursor invalidation?

2001-04-25 Thread Lars Gullik Bjønnes

"Kayvan A. Sylvan" <[EMAIL PROTECTED]> writes:

| On Tue, Apr 24, 2001 at 10:29:32PM +0200, Lars Gullik Bjønnes wrote:
| > "Kayvan A. Sylvan" <[EMAIL PROTECTED]> writes:
| > 
| > | I will set up anon cvs if it won't get too much traffic.
| > 
| > I can't imagine the amount of traffic to be huge.
| 
| Okay. I have set up the anoncvs using rsync. Works great.
| 
| This anon CVS repository is set up to sync from baywatch.lyx.org
| every 15 minutes.

That was a bit often... can you use every other hour or something
instead?
 
| To use it, do:
| 
|   export CVSROOT=:pserver:[EMAIL PROTECTED]:/cvs/lyx
|   cvs login
| 
| Since this is an exact duplicate of the anoncvs at baywatch, the
| password is "lyx".
| 
| The instructions at http://www.devel.lyx.org/cvs.php3 for using
| the anonymous CVS server all apply.
| 
| My daily builds are building again. The results can be found
| at ftp://ftp.sylvan.com/pub/lyx/devel

Can we use this as an official mirror?

Your in US right?
(we really should have an European mirror too)

anoncvs.us.lyx.org would that work for you?

-- 
Lgb



Re: StateMachineEngine

2001-04-25 Thread Lars Gullik Bjønnes

Allan Rae <[EMAIL PROTECTED]> writes:

| On 24 Apr 2001, Lars Gullik [iso-8859-1] Bjønnes wrote:
| > class Macro {
| [...]
| > };
| 
| See, didn't I say that with addition-order and a simple class we could
| have macro-recording!
| 
| So have you added it yet?

No...

but when somebody do so (You or I), then I'd like session logging to
go in at the same time.

So I'd like to see at least six new LFUN's:

macro-begin arg
macro-end
macro-run arg
perhaps:
macro-delete arg
macro-list

session-log-start
session-log-stop
session-log-play

-- 
Lgb



Re: SUN CC 6.0 Update 1 compiles !!! (almost)

2001-04-25 Thread Michael Schmitt

Hmmm,

you never stop learning new options. Enclosed please find the output
of "cvs diff -u".

Michael

==
Michael Schmittphone: +49 451 500 3725
Institute for Telematics   secretary: +49 451 500 3721
Medical University of Luebeck  fax:   +49 451 500 3722
Ratzeburger Allee 160  eMail: [EMAIL PROTECTED]
D-23538 Luebeck, Germany   WWW:   http://www.itm.mu-luebeck.de
==

 patches.gz


Re: mathcursor invalidation?

2001-04-25 Thread Kayvan A. Sylvan

On Wed, Apr 25, 2001 at 09:17:04AM +0200, Lars Gullik Bjønnes wrote:

> | Okay. I have set up the anoncvs using rsync. Works great.
> | 
> | This anon CVS repository is set up to sync from baywatch.lyx.org
> | every 15 minutes.
> 
> That was a bit often... can you use every other hour or something
> instead?

Why? The most time-consuming sync is the first one. After that, we are only
passing around relatively small files.

> | The instructions at http://www.devel.lyx.org/cvs.php3 for using
> | the anonymous CVS server all apply.
> | 
> | My daily builds are building again. The results can be found
> | at ftp://ftp.sylvan.com/pub/lyx/devel
> 
> Can we use this as an official mirror?

Yes.

> Your in US right?

Yup. I am in San Jose, California, USA.

> (we really should have an European mirror too)
> 
> anoncvs.us.lyx.org would that work for you?

Sure. You want to set it up as a CNAME for cvs.sylvan.com?

---Kayvan
-- 
Kayvan A. Sylvan   | Proud husband of  | Father to my kids:
Sylvan Associates, Inc.| Laura Isabella Sylvan | Katherine Yelena
http://www.successlinks.com/kayvan | Reach your goals now! | Robin Gregory



math_hash

2001-04-25 Thread Andre Poenitz


Aehm.. how do I add new keywords there?

Looks like I have to run 'gperf' on something, but I really don't know on
waht. Would it hurt if I changed this whole thing to use std::map? It's
only 250 entries or so after all...

Andre'

-- 
André Pönitz . [EMAIL PROTECTED]



Re: mathcursor invalidation?

2001-04-25 Thread Lars Gullik Bjønnes

"Kayvan A. Sylvan" <[EMAIL PROTECTED]> writes:

| On Wed, Apr 25, 2001 at 09:17:04AM +0200, Lars Gullik Bjønnes wrote:
| 
| > | Okay. I have set up the anoncvs using rsync. Works great.
| > | 
| > | This anon CVS repository is set up to sync from baywatch.lyx.org
| > | every 15 minutes.
| > 
| > That was a bit often... can you use every other hour or something
| > instead?
| 
| Why? The most time-consuming sync is the first one. After that, we are only
| passing around relatively small files.

but you are not the only one using rsync. also remember that the old
anoncvs had a only 30 minutes lag, and that was on the same subnet.

I will possibly set a max connections on the rsync server to lessen
the load on baywatch.
 
| > | The instructions at http://www.devel.lyx.org/cvs.php3 for using
| > | the anonymous CVS server all apply.
| > | 
| > | My daily builds are building again. The results can be found
| > | at ftp://ftp.sylvan.com/pub/lyx/devel
| > 
| > Can we use this as an official mirror?
| 
| Yes.

super.
 
| > Your in US right?
| 
| Yup. I am in San Jose, California, USA.

I'll call on you next time I am in the neighbourhood
 
| > (we really should have an European mirror too)
| > 
| > anoncvs.us.lyx.org would that work for you?
| 
| Sure. You want to set it up as a CNAME for cvs.sylvan.com?

yes.

done.

anoncvs.us.lyx.org and cvs.us.lyx.org points to cvs.sylvan.com

-- 
Lgb



Re: math_hash

2001-04-25 Thread Lars Gullik Bjønnes

Andre Poenitz <[EMAIL PROTECTED]> writes:

| Aehm.. how do I add new keywords there?
| 
| Looks like I have to run 'gperf' on something, but I really don't know on
| waht. Would it hurt if I changed this whole thing to use std::map? It's
| only 250 entries or so after all...

fine for me, as this will make it easier to add new symbols. but make
sure that you will be backwards compatible.

If performance is a problem we can use a hash_map later.

-- 
Lgb



How to put something in the preamble?

2001-04-25 Thread Andre Poenitz


What is the recommended way to put something in the preamble that gets
written to a .tex file?

-

Has anybody strong feelings on how a 'macro pool' should be implemented?
I.e. currently we write macro definitions to the .lyx/.tex file according
to their position in the document. This does not work with macro provided
in macro_table.C since they do not have a fixed position in the document,
and as we had discussed ealier, macro definitions are not exactly part of
the body of the document. 

So for writing .tex we would need some mechanism like:

1. Write everything as usual, except macro definitions, if we encounter
an macro, put its name into a list.  After the body of the document has
been written, _pre_pend the definitions of all used macros

-or-

2. Write each macro definition to the preamble first and write everything 
else as usual.

-or-

3. Something I have not thought of yet.

I'd think 2 would probably best, since it is easier and does not lose
information (unused macros).

The .lyx file could contain macro definitions in its haeder and the GUI
should provide a way to edit macro definitions outside the document
"text".

Comments?

Main problem with all of this is that it goes beyond the scope of mathed
and I do not really want to do it...


Andre'


-- 
André Pönitz . [EMAIL PROTECTED]



Re: mathcursor invalidation?

2001-04-25 Thread Kayvan A. Sylvan

On Wed, Apr 25, 2001 at 11:27:17AM +0200, Lars Gullik Bjønnes wrote:
> | 
> | Why? The most time-consuming sync is the first one. After that, we are only
> | passing around relatively small files.
> 
> but you are not the only one using rsync. also remember that the old
> anoncvs had a only 30 minutes lag, and that was on the same subnet.

I have reset it to once per hour. I hope that's okay.

> done.
> 
> anoncvs.us.lyx.org and cvs.us.lyx.org points to cvs.sylvan.com
> 

Great.

Being a LyX developer is like being on the PTA. When you start
complaining, you better be prepared to do the work. ;-)

---Kayvan
-- 
Kayvan A. Sylvan   | Proud husband of  | Father to my kids:
Sylvan Associates, Inc.| Laura Isabella Sylvan | Katherine Yelena
http://www.successlinks.com/kayvan | Reach your goals now! | Robin Gregory



Re: math_hash

2001-04-25 Thread Andre Poenitz

> fine for me, as this will make it easier to add new symbols. but make
> sure that you will be backwards compatible.

No problem, after removal of a few unused functions we only need the
mappings 'name->symbol/id' and 'symbol/id->name' disguised in form of 

   latexkey * in_word_set(string const &)  and
   latexkey * lm_get_get_by_id(int, short)

Maybe the naming should be fixed later, too...

> If performance is a problem we can use a hash_map later.

Ok.

Andre'

-- 
André Pönitz . [EMAIL PROTECTED]



Re: mathcursor invalidation?

2001-04-25 Thread John Levon

On Wed, 25 Apr 2001, Kayvan A. Sylvan wrote:

> On Wed, Apr 25, 2001 at 11:27:17AM +0200, Lars Gullik Bjønnes wrote:
> > | 
> > | Why? The most time-consuming sync is the first one. After that, we are only
> > | passing around relatively small files.
> > 
> > but you are not the only one using rsync. also remember that the old
> > anoncvs had a only 30 minutes lag, and that was on the same subnet.
> 
> I have reset it to once per hour. I hope that's okay.
> 
> > done.
> > 
> > anoncvs.us.lyx.org and cvs.us.lyx.org points to cvs.sylvan.com
> > 
> 
> Great.
> 
> Being a LyX developer is like being on the PTA. When you start
> complaining, you better be prepared to do the work. ;-)
> 
>   ---Kayvan

can someone update the webpages then ? Is this now the permanent anoncvs location ?

thanks
john

-- 
"Ninety percent of everything is crap."
- Sturgeon's Law
"The other ten per cent is even worse."
- Oak's Corollary




Re: mathcursor invalidation?

2001-04-25 Thread Allan Rae

On Wed, 25 Apr 2001, John Levon wrote:
> can someone update the webpages then ? Is this now the permanent
> anoncvs location ?

Feel free.  I was going to but if you beat me I won't mind.

Allan. (ARRae)




Re: mathcursor invalidation?

2001-04-25 Thread Lars Gullik Bjønnes

John Levon <[EMAIL PROTECTED]> writes:

| can someone update the webpages then ? Is this now the permanent
| anoncvs location ?

I would've hoped that we could have a couple more anoncvs mirrors.
I am not sure if Kayvan is willing to take all the anoncvs traffic
(not that it is very huge)

And we really should have a mirrors page.

We supposedly have mirrors in Italy,Greece,Mexico,Portugal,US (and
Norway sort of) most of these just for www.

-- 
Lgb



Re: How to put something in the preamble?

2001-04-25 Thread Lars Gullik Bjønnes

Andre Poenitz <[EMAIL PROTECTED]> writes:

| What is the recommended way to put something in the preamble that gets
| written to a .tex file?

LaTeXFeatures Validate

| So for writing .tex we would need some mechanism like:
| 
| 1. Write everything as usual, except macro definitions, if we encounter
| an macro, put its name into a list.  After the body of the document has
| been written, _pre_pend the definitions of all used macros

why not gather all the macrodefinitions during the Validate?
Just add a mathmacros vector to LaTeXFeatures.

-- 
Lgb



Re: How to put something in the preamble?

2001-04-25 Thread Andre Poenitz

> why not gather all the macrodefinitions during the Validate?
> Just add a mathmacros vector to LaTeXFeatures.

Well, I have no idea what's happening there, but I could try to read the
documentat^H^H^H^Hsources.

Andre'

-- 
André Pönitz . [EMAIL PROTECTED]



mathed65.diff

2001-04-25 Thread Andre Poenitz


This patch contains the implementation of the new 'math-extern' LyX
function.

If you invoke 'math-extern something' (preferably by some keybinding)
in a math inset, the inset will translate its contents into some
"normalized" form, invoke 'lyx2something  ',
and replaces its contents with LaTeX read back from the file .

The lyx2something can be any executable taking to arguments on the
commandline, namely an "normalized" form of the content of an math inset
and a file name. It is supposed to produce some LaTeX formula in the
file.

The patch contains a Tcl script 'lyx2maple' which essentially converts
the 'normalized' form into Maple input and pipes this into 'maple -q >
outfile'.

This is far from complete, needs some more work on the mathed parser and
the macro handling as well as a more complete list of "supported"
functions in the script. The current state is not much more than a toy
(1+2 works, but not much more), so don't expect too much...

Andre'

PS: To implement this correctly we'd probably some semantical structure
in parallel to the purely layout oriented LaTeX-like current structure
similar as MathML does and this will certainly not happen soon...

-- 
André Pönitz . [EMAIL PROTECTED]



Re: the "no line break bug"

2001-04-25 Thread Lars Gullik Bjønnes

"Garst R. Reese" <[EMAIL PROTECTED]> writes:

| Lars Gullik Bjønnes wrote:
| > 
| > Reversing this patch, fixes the problem.
| On my checkout for Kayvan's great new mirror, this bug is still present,
| and the patch (jug-bug) does not reverse cleanly. Is there something
| new?
| Thanks, Garst

I am hoping for Jürgen to fix this, since it was hist commit that
broke it.

That patch will probably not patch cleanly now, some stuff has changed
since then.

-- 
Lgb



Re: the "no line break bug"

2001-04-25 Thread Garst R. Reese

Lars Gullik Bjønnes wrote:
> 
> "Garst R. Reese" <[EMAIL PROTECTED]> writes:
> 
> | Lars Gullik Bjønnes wrote:
> | >
> | > Reversing this patch, fixes the problem.
> | On my checkout for Kayvan's great new mirror, this bug is still present,
> | and the patch (jug-bug) does not reverse cleanly. Is there something
> | new?
> | Thanks, Garst
> 
> I am hoping for Jürgen to fix this, since it was hist commit that
> broke it.
OK

> That patch will probably not patch cleanly now, some stuff has changed
> since then.
True, it does not.
Garst



Re: the "no line break bug"

2001-04-25 Thread Garst R. Reese

Lars Gullik Bjønnes wrote:
> 
> Reversing this patch, fixes the problem.
On my checkout for Kayvan's great new mirror, this bug is still present,
and the patch (jug-bug) does not reverse cleanly. Is there something
new?
Thanks, Garst



Re: mathed65.diff

2001-04-25 Thread Dekel Tsur

On Wed, Apr 25, 2001 at 12:52:08PM +0200, Andre Poenitz wrote:
> 
> This patch contains the implementation of the new 'math-extern' LyX
> function.

So where is the patch ?

I did try your previous patch, and I got the following error:
bad option "map": must be compare, first, index, last, length, match, range, tolower, 
toupper, trim, trimleft, trimright, wordend, or wordstart
while executing
"string map { \{ \[  \} \] } $str"
(procedure "maplize" line 3)
invoked from within
"maplize $lyxish"

(I have tcl 8.0).

> If you invoke 'math-extern something' (preferably by some keybinding)
> in a math inset, the inset will translate its contents into some
> "normalized" form, invoke 'lyx2something  ',
> and replaces its contents with LaTeX read back from the file .

Can you keep the old contents of the inset and put an equal sign between the
old contents and the result of the script ?



Re: mathed65.diff

2001-04-25 Thread Andre Poenitz

> So where is the patch ?

Oops... didn't I attach it?

I'll try again.

> I did try your previous patch, and I got the following error:
> bad option "map": must be compare, first, index, last, length, match, range, 
>tolower, toupper, trim, trimleft, trimright, wordend, or wordstart
> while executing
> "string map { \{ \[  \} \] } $str"
> (procedure "maplize" line 3)
> invoked from within
> "maplize $lyxish"
> 
> (I have tcl 8.0).

Oh... I have 8.3. Looks like a new feature than. I will try to rewrite this
in order to make it work with 8.0.

> > If you invoke 'math-extern something' (preferably by some keybinding)
> > in a math inset, the inset will translate its contents into some
> > "normalized" form, invoke 'lyx2something  ',
> > and replaces its contents with LaTeX read back from the file .
> 
> Can you keep the old contents of the inset and put an equal sign between the
> old contents and the result of the script ?

That's what I tried first, but somehow the inset got messed up... I'll
retry anyway.

Andre'


-- 
André Pönitz . [EMAIL PROTECTED]


Index: src/LyXAction.C
===
RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/LyXAction.C,v
retrieving revision 1.77
diff -u -p -r1.77 LyXAction.C
--- src/LyXAction.C 2001/04/17 13:54:24 1.77
+++ src/LyXAction.C 2001/04/25 10:11:47
@@ -322,6 +322,7 @@ void LyXAction::init()
{ LFUN_MATH_MODE, "math-mode", N_("Math mode"), Noop },
{ LFUN_MATH_NONUMBER, "math-nonumber", "", Noop },
{ LFUN_MATH_NUMBER, "math-number", "", Noop },
+   { LFUN_MATH_EXTERN, "math-extern", "", Noop },
{ LFUN_MATH_PANEL, "math-panel", "", Noop },
{ LFUN_MATH_SIZE, "math-size", "", Noop },
 #if 0
Index: src/commandtags.h
===
RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/commandtags.h,v
retrieving revision 1.57
diff -u -p -r1.57 commandtags.h
--- src/commandtags.h   2001/04/17 13:54:24 1.57
+++ src/commandtags.h   2001/04/25 10:11:47
@@ -141,6 +141,7 @@ enum kb_action {
LFUN_MATH_SIZE,   //  Alejandro 150896
LFUN_MATH_MACRO, // ale970510
LFUN_MATH_MACROARG,  // ale970510  // 120
+   LFUN_MATH_EXTERN,  // Andre' 20010424
LFUN_MATH_PANEL,
LFUN_FIGURE,
 #if 0
Index: src/lyxfunc.C
===
RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/lyxfunc.C,v
retrieving revision 1.206
diff -u -p -r1.206 lyxfunc.C
--- src/lyxfunc.C   2001/04/24 15:25:20 1.206
+++ src/lyxfunc.C   2001/04/25 10:11:47
@@ -1374,11 +1374,11 @@ string const LyXFunc::Dispatch(int ac,
}
break;

+   case LFUN_MATH_EXTERN:
case LFUN_MATH_NUMBER:
case LFUN_MATH_LIMITS:
{
setErrorMessage(N_("This is only allowed in math mode!"));
-   
}
break;
 
Index: src/frontends/xforms/MathsSymbols.C
===
RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/frontends/xforms/MathsSymbols.C,v
retrieving revision 1.2
diff -u -p -r1.2 MathsSymbols.C
--- src/frontends/xforms/MathsSymbols.C 2001/03/19 15:38:22 1.2
+++ src/frontends/xforms/MathsSymbols.C 2001/04/25 10:11:47
@@ -283,7 +283,7 @@ static char const ** pixmapFromBitmapDat
 char const ** get_pixmap_from_symbol(char const * arg, int wx, int hx)
 {
char const ** data = 0;
-   latexkeys const * l = in_word_set (arg, strlen(arg));
+   latexkeys const * l = in_word_set(arg);
if (!l)
return 0;
 
Index: src/mathed/formula.C
===
RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/mathed/formula.C,v
retrieving revision 1.99
diff -u -p -r1.99 formula.C
--- src/mathed/formula.C2001/04/24 16:13:38 1.99
+++ src/mathed/formula.C2001/04/25 10:11:47
@@ -14,6 +14,7 @@
 */
 
 #include 
+#include 
 
 #include "Lsstream.h"
 
@@ -33,10 +34,11 @@
 #include "debug.h"
 #include "lyx_gui_misc.h"
 #include "support/LOstream.h"
+#include "support/lyxlib.h"
+#include "support/syscall.h"
 #include "LyXView.h"
 #include "Painter.h"
 #include "font.h"
-#include "support/lyxlib.h"
 #include "lyxrc.h"
 #include "math_inset.h"
 #include "math_parinset.h"
@@ -47,7 +49,9 @@
 #include "mathed/support.h"
 #include "lyxfunc.h"
 
+using std::ostringstream;
 using std::ostream;
+using std::ifstream;
 using std::istream;
 using std::pair;
 using std::endl;
@@ -1008,7 +1012,7 @@ InsetFormula::LocalDispatch(BufferView *
ilf = lyx::atoi(lf);
else
if (lf[1]) {
-   l = in_word_set(lf, strlen(lf));
+   l = 

cvs alternatives?

2001-04-25 Thread larry

Is there some alternative to (broken) cvs access, to get the
latest devel sources?

It seems that people are still working on the code and that
changes continue to be exchanged between developers, and we're
going into what, about two weeks since anon cvs went down?

Where is the devel source tree online?

Best Regards,

Larry Marso



Re: Thank you!

2001-04-25 Thread Amir Karger

On Wed, Apr 25, 2001 at 10:25:43AM +1000, Allan Rae wrote:
> On Tue, 24 Apr 2001, Amir Karger wrote:
> 
> > You didn't read the second line, where I mentioned a new job, which means no
> > more 3-hour reLyX coding sessions masquerading as long lunches.
> 
> That shouldn't stop you working at night when your wife is working late or
> after she's gone to sleep (sneak out to the computer for a few hours of
> hacking!).

Aha! But I didn't mention lame excuse #2: my wife's expecting a v2.0 in
July!

> There's also weekends and early mornings ;-)

Not anymore (I'm told I'm supposed to be excited about this :)

-Amir



Re: cvs alternatives?

2001-04-25 Thread Kayvan A. Sylvan

Use my CVS mirror:

export CVSROOT=:pserver:[EMAIL PROTECTED]:/cvs/lyx
cvs login
(password is "lyx")

You can fix all the "Root" files in your old repository and do a
"cvs update" or do a fresh get, your choice.

---Kayvan

On Wed, Apr 25, 2001 at 07:22:46AM -0700, [EMAIL PROTECTED] wrote:
> Is there some alternative to (broken) cvs access, to get the
> latest devel sources?
> 
> It seems that people are still working on the code and that
> changes continue to be exchanged between developers, and we're
> going into what, about two weeks since anon cvs went down?
> 
> Where is the devel source tree online?
> 
> Best Regards,
> 
> Larry Marso

-- 
Kayvan A. Sylvan   | Proud husband of  | Father to my kids:
Sylvan Associates, Inc.| Laura Isabella Sylvan | Katherine Yelena
http://www.successlinks.com/kayvan | Reach your goals now! | Robin Gregory



Re: math_hash

2001-04-25 Thread Alejandro Aguilar Sierra

On Wed, 25 Apr 2001, Andre Poenitz wrote:

> Looks like I have to run 'gperf' on something, but I really don't know on
> waht. Would it hurt if I changed this whole thing to use std::map? It's
> only 250 entries or so after all...

Go ahead.

Alejandro




Re: mathed65.diff

2001-04-25 Thread Lars Gullik Bjønnes

Andre Poenitz <[EMAIL PROTECTED]> writes:

| That's what I tried first, but somehow the inset got messed up... I'll
| retry anyway.

I wonder if this would be a good idea:

--- math_hash.C Wed Apr 25 17:39:36 2001
+++ math_hash.C.new Wed Apr 25 17:38:04 2001
@@ -305,32 +305,45 @@
 
 
 // helper structure to initialize the maps on startup:
-struct init {
-   init() {
-   int const n = sizeof(wordlist)/sizeof(wordlist[0]);
-   for (latexkeys const * it = wordlist; it != wordlist + n; ++it)
{
-   LatexkeyByName[it->name] = it - wordlist;
+struct init_latexkeybyid {
+   init_latexkeybyid() {
+   int const n = sizeof(wordlist) / sizeof(wordlist[0]);
+   latexkeys const * cit = wordlist;
+   latexkeys const * end = wordlist + n;
+   for (; cit != end, ++cit) {
LatexkeyById[symbolindex(it->id, it->token)] = it - wordlist;
}
}
 };
 
-// the "Initializer": Its default constructor is executed on loading and
-// fills the maps
-static init dummy;
 
+// helper structure to initialize the maps on startup:
+struct init_latexkeybyname {
+   init_latexkeybyname() {
+   int const n = sizeof(wordlist) / sizeof(wordlist[0]);
+   latexkeys const * cit = wordlist;
+   latexkeys const * end = wordlist + n;
+   for (; cit != end, ++cit) {
+   LatexkeyByName[it->name] = it - wordlist;
+   }
+   }
+};
+
 } // namespace anon
 
 
 latexkeys const * in_word_set(string const & str)
 {
+   static init_latexkeybyname dummy;
+
std::map::const_iterator pos = LatexkeyByName.find(str);
return pos == LatexkeyByName.end() ? 0 : [pos->second];
 }
-
-
+
 latexkeys const * lm_get_key_by_id(int id, short tc)
 {
+   static init_latexkeybyid dymmy;
+
std::map::const_iterator pos
= LatexkeyById.find(symbolindex(id, tc));
return pos == LatexkeyById.end() ? 0 : [pos->second];


The actual initialization woll be slower, but the cost will be moved
to runtime instead of init time. And documents/sessions that does not
use math at all will not be penalized.

-- 
Lgb



Math Toolbar

2001-04-25 Thread Angus Leeming

Sorry for the long silence; work has been v. busy recently and this isn't 
likely to change for a while...

Anyway, in a few minutes of free time, I've been trying to build the bones of 
a Math Toolbar. The idea is that the Toolbar should become visible when an 
InsetFormula becomes active and that it should disappear again when the 
InsetFormula becomes inactive.

The question is, where's the right place to emit the signals
showMathToolbar
hideMathToolbar

I'd guess that 
BufferView::Pimpl::workAreaButtonPress
BufferView::Pimpl::workAreaButtonRelease
would be right, but what about using the arrow keys to just move the cursor 
into the InsetFormula?

As you can see, I know very little about how all this is controlled; be 
gentle, please!

Angus





Re: LyX-1.1.6cvs libsigc++

2001-04-25 Thread Lars Gullik Bjønnes

Jean-Marc Lasgouttes <[EMAIL PROTECTED]> writes:

| An alternative is to wait until a 0.10.37 is released. There has been
| so much time since 0.10.35 that I suspect many people have been
| sending patches lately.

0.10.37 is out now.

-- 
Lgb



mathed66.diff

2001-04-25 Thread Andre Poenitz


Also known as "mathed65.diff (Service Pack 1)"

 - \frac happens to render properly again (I just noticed that I managed to
   break even that)

 - Tcl 8.0 should suffice for lyx2maple

I just noticed that reading arrays is broken again, but I think I won't
bother chasing that bug and rather start with the rewrite of the multiline
stuff...

Andre'

-- 
André Pönitz . [EMAIL PROTECTED]

 /tmp/mathed66.diff.gz


Re: Thank you!

2001-04-25 Thread Kayvan A. Sylvan

On Wed, Apr 25, 2001 at 10:53:11AM -0400, Amir Karger wrote:
> On Wed, Apr 25, 2001 at 10:25:43AM +1000, Allan Rae wrote:
> > On Tue, 24 Apr 2001, Amir Karger wrote:
> > 
> > > You didn't read the second line, where I mentioned a new job, which means no
> > > more 3-hour reLyX coding sessions masquerading as long lunches.
> > 
> > That shouldn't stop you working at night when your wife is working late or
> > after she's gone to sleep (sneak out to the computer for a few hours of
> > hacking!).
> 
> Aha! But I didn't mention lame excuse #2: my wife's expecting a v2.0 in
> July!
> 
> > There's also weekends and early mornings ;-)
> 
> Not anymore (I'm told I'm supposed to be excited about this :)
> 
> -Amir


Double congrats! You've been busy... ;-}

Now you will be sleep deprived for even more reasons. ;-)

-- 
Kayvan A. Sylvan   | Proud husband of  | Father to my kids:
Sylvan Associates, Inc.| Laura Isabella Sylvan | Katherine Yelena
http://www.successlinks.com/kayvan | Reach your goals now! | Robin Gregory



Re: mathed66.diff

2001-04-25 Thread Lars Gullik Bjønnes

Andre Poenitz <[EMAIL PROTECTED]> writes:

| Also known as "mathed65.diff (Service Pack 1)"

I already applied mathed65 so you have to redo this patch.
(just let me commit first)

| I just noticed that reading arrays is broken again, but I think I won't
| bother chasing that bug and rather start with the rewrite of the multiline
| stuff...

Ok, but I wan't us to think about a prerelease soon.

-- 
Lgb



Bug in mathed.

2001-04-25 Thread Dekel Tsur

If I type M-m s (for generating a square root) I don't see the root sign until
a key is pressed (and also, the cursor goes outside of the screen).
However, typing '\sqrt space' works OK.
This bug is very recent (probably caused by mathed64.diff).



glibc2 Linux LyX 1.1.6 binary is 48MB!?

2001-04-25 Thread Jeff Blaine

Hi folks...I'm a sysadmin, and not subscribed to this list.
I just need to know...

Is this normal?

% ls -l
total 47304
-rwxr-xr-x1 jblaine  wheel   0 Apr 20 10:35 listerrors*
-rwxr-xr-x1 jblaine  wheel48433032 Apr 20 10:35 lyx*
-rwxr-xr-x1 jblaine  wheel3954 Apr 20 10:35 noweb2lyx*
-rwxr-xr-x1 jblaine  wheel1996 Apr 20 10:35 reLyX*
% ldd lyx
libXpm.so.4 => /usr/X11R6/lib/libXpm.so.4 (0x40018000)
libpthread.so.0 => /lib/libpthread.so.0 (0x40026000)
libSM.so.6 => /usr/X11R6/lib/libSM.so.6 (0x40039000)
libICE.so.6 => /usr/X11R6/lib/libICE.so.6 (0x40043000)
libX11.so.6 => /usr/X11R6/lib/libX11.so.6 (0x4005b000)
libm.so.6 => /lib/libm.so.6 (0x400ff000)
libc.so.6 => /lib/libc.so.6 (0x4011c000)
/lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x4000)

Hmm.  I just stripped the binary and it's 3MB.  That's an
AMAZING difference in binary sizes...what's going on there?



Re: glibc2 Linux LyX 1.1.6 binary is 48MB!?

2001-04-25 Thread Kayvan A. Sylvan

Yes, that's normal.

You probably compiled with -g (debugging).

You can also use the RPMs if you don't want the hassle of compiling it
yourself.

---Kayvan

On Wed, Apr 25, 2001 at 03:11:13PM -0400, Jeff Blaine wrote:
> Hi folks...I'm a sysadmin, and not subscribed to this list.
> I just need to know...
> 
> Is this normal?
> 
> % ls -l
> total 47304
> -rwxr-xr-x1 jblaine  wheel   0 Apr 20 10:35 listerrors*
> -rwxr-xr-x1 jblaine  wheel48433032 Apr 20 10:35 lyx*
> -rwxr-xr-x1 jblaine  wheel3954 Apr 20 10:35 noweb2lyx*
> -rwxr-xr-x1 jblaine  wheel1996 Apr 20 10:35 reLyX*
> % ldd lyx
> libXpm.so.4 => /usr/X11R6/lib/libXpm.so.4 (0x40018000)
> libpthread.so.0 => /lib/libpthread.so.0 (0x40026000)
> libSM.so.6 => /usr/X11R6/lib/libSM.so.6 (0x40039000)
> libICE.so.6 => /usr/X11R6/lib/libICE.so.6 (0x40043000)
> libX11.so.6 => /usr/X11R6/lib/libX11.so.6 (0x4005b000)
> libm.so.6 => /lib/libm.so.6 (0x400ff000)
> libc.so.6 => /lib/libc.so.6 (0x4011c000)
> /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x4000)
> 
> Hmm.  I just stripped the binary and it's 3MB.  That's an
> AMAZING difference in binary sizes...what's going on there?

-- 
Kayvan A. Sylvan   | Proud husband of  | Father to my kids:
Sylvan Associates, Inc.| Laura Isabella Sylvan | Katherine Yelena
http://www.successlinks.com/kayvan | Reach your goals now! | Robin Gregory



Re: glibc2 Linux LyX 1.1.6 binary is 48MB!?

2001-04-25 Thread Lars Gullik Bjønnes

Jeff Blaine <[EMAIL PROTECTED]> writes:

| Hi folks...I'm a sysadmin, and not subscribed to this list.
| I just need to know...
| 
| Is this normal?
| 
| % ls -l
| total 47304
| -rwxr-xr-x1 jblaine  wheel   0 Apr 20 10:35 listerrors*
| -rwxr-xr-x1 jblaine  wheel48433032 Apr 20 10:35 lyx*
| -rwxr-xr-x1 jblaine  wheel3954 Apr 20 10:35 noweb2lyx*
| -rwxr-xr-x1 jblaine  wheel1996 Apr 20 10:35 reLyX*
| % ldd lyx
| libXpm.so.4 => /usr/X11R6/lib/libXpm.so.4 (0x40018000)
| libpthread.so.0 => /lib/libpthread.so.0 (0x40026000)
| libSM.so.6 => /usr/X11R6/lib/libSM.so.6 (0x40039000)
| libICE.so.6 => /usr/X11R6/lib/libICE.so.6 (0x40043000)
| libX11.so.6 => /usr/X11R6/lib/libX11.so.6 (0x4005b000)
| libm.so.6 => /lib/libm.so.6 (0x400ff000)
| libc.so.6 => /lib/libc.so.6 (0x4011c000)
| /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x4000)
| 
| Hmm.  I just stripped the binary and it's 3MB.  That's an
| AMAZING difference in binary sizes...what's going on there?

Debugging symbols.

My lyx compiled with gcc 3.0 (prerelease) is:

[larsbj@trylle ny]$ ls -l src/lyx
-rwxr-xr-x1 larsbj   larsbj   52009419 Apr 25 21:40 src/lyx

with gcc 2.96-81:

[larsbj@trylle build]$ ls -l src/lyx
-rwxr-xr-x1 larsbj   larsbj   41520026 Apr 25 17:58 src/lyx

so it is quite normal.

Hmm.. and you also seem to have libstdc++ and libforms statically compiled in.
(and libpthread is not needed, and is removed in later versions.)

-- 
Lgb



NEW_INSETS cleanup

2001-04-25 Thread Lars Gullik Bjønnes


Unless I get a lot of protests I will begin to slowly cleanup the
NEW_INSETS ifdef mess.

I will begin with LyXParagraph and progressto LyXText.
I will leave code that is particularly interesting or that is not
quite working in the NEW_INSETS case.

-- 
Lgb



Re: NEW_INSETS cleanup

2001-04-25 Thread Kayvan A. Sylvan

On Wed, Apr 25, 2001 at 09:24:37PM +0200, Lars Gullik Bjønnes wrote:
> 
> Unless I get a lot of protests I will begin to slowly cleanup the
> NEW_INSETS ifdef mess.
> 
> I will begin with LyXParagraph and progressto LyXText.
> I will leave code that is particularly interesting or that is not
> quite working in the NEW_INSETS case.

It's good that I got anon CVS up and running again, since I'll be able to
give you quick feedback if something you do breaks the build.

No objections!
---Kayvan



It is not a serious bug, is it even a feature?

2001-04-25 Thread Jörg Meiforth

Hai there,

it is not really a problem, more a cosmetic thing:

After placing a "Bibliography", the numbering of the following sections 
starts with zero again. This appears only in the WYSIWYM-Editor, in the 
DVI-File everything is fine. I've attached a very small lyx document to 
demonstrate it.

I'm using the precompiled lyx-1.1.6fix1 file from the Lyx-Server.

P.S.: Many thanks for this great program, it is much more fun than all the 
other word-processors, so much that I often forget to work and start 
experimenting, with all the layout and design possibilities for my text...;-))
-- 
e-mail: [EMAIL PROTECTED]
Diese Nachricht wurde mit K-Mail erstellt


#LyX 1.1 created this file. For more info see http://www.lyx.org/
\lyxformat 218
\textclass article
\language german
\inputencoding auto
\fontscheme default
\graphics default
\paperfontsize default
\spacing single 
\papersize Default
\paperpackage a4
\use_geometry 0
\use_amsmath 0
\paperorientation portrait
\secnumdepth 3
\tocdepth 3
\paragraph_separation indent
\defskip medskip
\quotes_language english
\quotes_times 2
\papercolumns 1
\papersides 1
\paperpagestyle default

\layout Section

Chapter 1
\layout Standard

Any text
\layout Section

Chapter 2
\layout Standard

Any Text
\layout Section

Appendix
\layout Bibliography
\bibitem {key-2}

Any source of information
\layout Subsection

Subchapter 1
\layout Standard

Now it starts the numbering with '0' again.
 In the dvi-file everything is right, so I think it is more a cosmetic problem.
\layout Section

Thanks
\layout Standard

I want to thank everyone
\layout Subsection

just any text
\layout Standard

Any text
\the_end



Mathed bug

2001-04-25 Thread Michael Schmitt

Hi,

I checked the latest cvs and I would like to mention a bug that may
indicate some internal memory management problem. Just create a new math
formula with some indexed variable "a_i". Then copy "a_i" (within
mathed) and paste it several times ("a_i a_i a_i a_i") . If you try to the
change the index of a copy in the middle of the formula, you will notice
that this is not possible. The cursor either jumps to the first or the
last variable. It is just a guess, but I could assume that mathed does not
make _real_ copies.

Michael

==
Michael Schmittphone: +49 451 500 3725
Institute for Telematics   secretary: +49 451 500 3721
Medical University of Luebeck  fax:   +49 451 500 3722
Ratzeburger Allee 160  eMail: [EMAIL PROTECTED]
D-23538 Luebeck, Germany   WWW:   http://www.itm.mu-luebeck.de
==




Re: LDN-20010425

2001-04-25 Thread Allan Rae

On Wed, 25 Apr 2001, Allan Rae wrote:

> A new LDN will be available sometime in the next 30 minutes or so.  So
> don't rush off now and then complain that the URL is broken.  I've
> committed the changes to CVS but I want to go home by midnight if I can.

Lars?  It's been 12 hours and I don't see any new update.  How often does
www.no.lyx.org update its web pages?

I told LWN that it'd be available and their deadline is RSN.

Allan. (ARRae)




Re: LDN-20010425

2001-04-25 Thread Allan Rae

On Wed, 25 Apr 2001, Allan Rae wrote:

> A new LDN will be available sometime in the next 30 minutes or so.  So
> don't rush off now and then complain that the URL is broken.  I've
> committed the changes to CVS but I want to go home by midnight if I can.
>
> Anyway,  here's the URL:
>
>   http://www.lyx.org/news/20010425.php3
>
> but be patient.

It seems that the Norwegian mirror is rather slow at updating.
You can find it at the Italian mirror though:

http://www.it.lyx.org/news/20010425.php3

Allan. (ARRae)




Re: Thank you!

2001-04-25 Thread Allan Rae

On Wed, 25 Apr 2001, Amir Karger wrote:

> On Wed, Apr 25, 2001 at 10:25:43AM +1000, Allan Rae wrote:
> > On Tue, 24 Apr 2001, Amir Karger wrote:
> >
> > > You didn't read the second line, where I mentioned a new job, which means no
> > > more 3-hour reLyX coding sessions masquerading as long lunches.
> >
> > That shouldn't stop you working at night when your wife is working late or
> > after she's gone to sleep (sneak out to the computer for a few hours of
> > hacking!).
>
> Aha! But I didn't mention lame excuse #2: my wife's expecting a v2.0 in
> July!

Congratulations!

Then you'll have an excuse to sit in front of the computer gently rocking
your new born as you type in the wee small hours of the morning ;-)

You have two whole months to practice in the meantime!
What a blessing!

Allan. (ARRae)




Changes in default.ui

2001-04-25 Thread Kayvan A. Sylvan

Looking at the default.ui file, I noticed that the following lines were
recently commented out:

#   Item "Melt|M" "melt"
#   Item "Open All Figures/Tables|F" "floats-operate openfig"
#   Item "Close All Figures/Tables|T" "floats-operate closefig"
#   Item "Open All Footnotes/Marginal Notes|A" "floats-operate openfoot"
#   Item "Close All Footnotes/Marginal Notes|C" "floats-operate closefoot"

Is this functionality going to go back in at some point?

---Kayvan



LDN-20010425

2001-04-25 Thread Allan Rae


A new LDN will be available sometime in the next 30 minutes or so.  So
don't rush off now and then complain that the URL is broken.  I've
committed the changes to CVS but I want to go home by midnight if I can.

Anyway,  here's the URL:

http://www.lyx.org/news/20010425.php3

but be patient.

Allan. (ARRae)