Re: Preferences dialog: Save = Close ??

2000-10-29 Thread Lars Gullik Bjønnes

"R. Lahaye" [EMAIL PROTECTED] writes:

|  | The Save button in the Preferences dialog
|  | does the save, but also closes the dialog.
|  What if it said "Ok"?
| 
| I can't follow in what direction you are thinking.
| Just adding an Ok button wouldn't solve the
| confusion.

I thought more of just changing "save" to "ok" and be done with it.

Lgb



Re: Preferences dialog: Save = Close ??

2000-10-29 Thread R. Lahaye

"Lars Gullik Bjnnes" wrote:
 
 "R. Lahaye" [EMAIL PROTECTED] writes:
 
 |  | The Save button in the Preferences dialog
 |  | does the save, but also closes the dialog.
 |  What if it said "Ok"?
 |
 | I can't follow in what direction you are thinking.
 | Just adding an Ok button wouldn't solve the
 | confusion.
 
 I thought more of just changing "save" to "ok" and be done with it.
 

Well, it's easy for me to criticize the dialog's layout, but
I still believe the current layout and setup should be more
intuitive.

Que sera, sera...

Rob.



Re: Two small fixes

2000-10-29 Thread Lars Gullik Bjønnes

Dekel Tsur [EMAIL PROTECTED] writes:

| 1. If a line in the TOC contains %, it will not appear in the TOC menu
| (as % is a special char for popups).
| If fixed this bug by replacing each '%' char by '%%'
| (actually, in XForms0.88 this doesn't work, so I'm replacing '%' by '?'.
| Please check if the fix is OK with XForms0.89).
| 
| 2. Correct drawing of accents (macron) when using iso10646-1 font.

Ok, I applied this.

Lgb



language settings vs. spell checker

2000-10-29 Thread R. Lahaye


Hi,

I ran into trouble when having several documents
loaded each in a different language (which is set
per document in Layout-Document-Language).

The spellingchecker will use that language setting
to find the correct database. However, names
are not the same. For example with dutch:

 In LyX this is "dutch"
 In ispell this is "nederlands" ("dutch" in dutch).

I can manually enter "nederlands" in the language
settings in Preferences, but then my other english
document is wrongly spellchecked :).

I have several remarks  questions to this problem:

1) Assuming that each document is entirely in one
   single language, but simultaneously loaded documents
   can each be in a different language: it then would
   not be convenient to set the ispell language in
   the general Preferences dialog.
   An additional ispell-language setting should be
   added to the Layout-Document-Language dialog.
   Does that make sense?

2) Another solution for 1) could be changing the
   language file, that comes with LyX. The first
   and second column in this file are ALWAYS the
   same. Why is that? We could use the second column
   for an equivalent language name, for example:

  dutch  nederlands
  french francais
  spanishespanol
  german deutsch
  swedishsvenska

   If ispell reports to LyX that it can't find the "dutch"
   database, then LyX should tell ispell to try again for
   the "nederlands" database.

3) If I remember well, one can change the language
   settings (temporarily) anywhere inside a LaTeX
   document. You can mix lanaguages and tell LaTeX
   to do the appropriate hyphenation correctly per
   language-section.
   If that could be done in LyX too, LyX could use
   that information with the ispell call (change the
   ispell-database when a language change appears). 
   Would that be suitable for a future extension?


Just some thoughts.

Regards,
Rob.



Re: language settings vs. spell checker

2000-10-29 Thread Lars Gullik Bjønnes

"R. Lahaye" [EMAIL PROTECTED] writes:

| 1) Assuming that each document is entirely in one
|single language, but simultaneously loaded documents
|can each be in a different language: it then would
|not be convenient to set the ispell language in
|the general Preferences dialog.
|An additional ispell-language setting should be
|added to the Layout-Document-Language dialog.
|Does that make sense?

No... we don't want to add a item for all the differenct spell
checkers, the documents language should be translatet to the
spellcheckers notion of the language in the spellchecker module.


| 2) Another solution for 1) could be changing the
|language file, that comes with LyX. The first
|and second column in this file are ALWAYS the
|same. Why is that? We could use the second column
|for an equivalent language name, for example:

Did you check the meanings of the fields?

I'd rather remove one of the fields instead of adding more.
(but then we would need a "babel" module.

| 3) If I remember well, one can change the language
|settings (temporarily) anywhere inside a LaTeX
|document. You can mix lanaguages and tell LaTeX
|to do the appropriate hyphenation correctly per
|language-section.
|If that could be done in LyX too, LyX could use
|that information with the ispell call (change the
|ispell-database when a language change appears). 
|Would that be suitable for a future extension?

Sure... we would probably like to have several ispells running at the
same time. Some rewrite is needed to accomplish that.

Lgb



Re: FormPreferences patch

2000-10-29 Thread Lars Gullik Bjønnes

Angus Leeming [EMAIL PROTECTED] writes:

| What to do with individual bind keys?
| Eg \bind "Delete" "delete-backward"
| \bind "F12" "language french"

Imho bindings should go into their own file, why they can very well be
edited from preferences.

In the preferences file we store the "main" bindings file, and in
f.ex. user_bindings the modifications to this are stored.

When stating lyx we first load the bindings file in preferences and
then the bindings in user_bindings.

Also the bindings parsing in class lyxrc should be moved to an other
class.

| What about the following stuff. Is it all still needed? Where to put it?
| 
|   /// ???
|   bool pdf_mode;

get rid of it

Lgb




Re: Problem compiling lyx with gnome on a linux box (fwd)

2000-10-29 Thread Marko Vendelin


 Date: Sat, 28 Oct 2000 10:39:04 +0100
 From: Yann MORERE [EMAIL PROTECTED]
 To: LyX devel [EMAIL PROTECTED]
 Subject: Problem compiling lyx with gnome on a linux box
 
 Hello lyx developpers...
 
 I've got problems compiling lyx with gnome on linux box
 
 here is the error whene configureing with
 ./configure --with-frontend=gnome
 [...]
 checking for gtk-config... (cached) /usr/bin/gtk-config
 checking for GTK - version = 1.2.0... yes
 [...]
 gtk is well detected ...
 
 but 
 
 checking for IceConnectionNumber in -lICE... yes
 checking for XOpenIM... yes
 checking for  /usr/bin/gtkmm-config
 checking for GTK-- - version = 1.2.1... no
 *** Could not run GTK-- test program, checking why...
 *** The test program failed to compile or link. See the file config.log
 for the
 *** exact error that occured. This usually means GTK-- was incorrectly
 installed
 *** or that you have moved GTK-- since it was installed. In the latter
 case, you
 *** may want to edit the gtkmm-config script: /usr/bin/gtkmm-config
 configure: error: Cannot find GTK--: Please install Version 1.2.1+
 [yann@venusia lyx-1.1.6pre1]$ rpm -qa | grep gtk
 gtk+10-1.0.6-6
 gtk-engines-0.7-1
 pygtk-0.6.2-2
 gtk+-1.2.8-1
 gtk+-devel-1.2.8-1
 [yann@venusia lyx-1.1.6pre1]$ 
 
 i've got no gtkmm-config program in my linux box.
 
 where is the problem.
 
 did i forgot something on more time ;-)

Hi Yann!

indeed, you've forgotten to install some required libraries. LyX gnome
port requires three additional libraries: gtk--, gnome--, and libsigc++.
You can obtain these fine libraries from

gtk--  : http://gtkmm.sourceforge.net/ (take the latest one)
gnome--: http://gtkmm.sourceforge.net/ (take the latest one,1.1.12(beta))
libsigc++: http://libsigc.sourceforge.net/

Then run configure with the following options: --with-frontend=gnome
--without-included-libsigc --disable-sigctest . Enjoy the partly gnomefied
LyX!

Marko




BUG: file-export in 1.1.16pre1

2000-10-29 Thread Gerard Vermeulen (CRTBT)

File-Export shows inconsistent behaviour:
I am able to produce *.pdf and *.dvi, but all other options (ASCII,
HTML, LaTeX and Postscript) fail.
Also for instance "lyx myfile.lyx --export latex" does not produce
myfile.tex.

As far as I can see lyx goes through all the steps of generating
the requested output format, but the result gets deleted at the
end.

Thanks very much for your great program -- Gerard

-- 
Gerard Vermeulen   |  TEL: 33 (0)4 76 88 12 53
CRTBT  |   or  33 (0)4 76 88 12 61
BP 166 -- 38042 Grenoble Cedex 9 -- France |  Fax: 33 (0)4 76 87 50 60
http://www-crtbt.polycnrs-gre.fr/he3pol



Re: BUG: file-export in 1.1.16pre1

2000-10-29 Thread R. Lahaye

"Gerard Vermeulen (CRTBT)" wrote:
 As far as I can see lyx goes through all the steps of generating
 the requested output format, but the result gets deleted at the
 end.

I think the output results are left in the tmp directory. Have
a look at something:

  /tmp/lyx_tmp7683aaa/lyx_bufrtmp7683aaa

(are you working on a Linux PC?)

You can copy the files from there.
Not a pretty solution, but works until a bug-fix will be provided.

R.



gnome: cleanup and update() to updateSlot()

2000-10-29 Thread Marko Vendelin


Hi!

the attached patch replaces NULL with 0 in the gnome frontend code and
makes the frontend to compile again by replacing/adding update() with
updateSlot() where appropriate. It seems that DialogBase is changing its
methods quite often which is one more good reason to establish class
hierarchy among gnome frontend classes.

Marko

 patch.gnome.29.10.00.gz


The preferences file

2000-10-29 Thread Baruch Even

I've just saved the preferences from the dialog by mistake and it forgot
about my bind setting, all the rest were copied.

On the same note, the current language changing done in LyX is to toggle
the chosen language from the bind to english. The problem is when I have
several languages at once for example a spanish/hebrew/english document,
It will probably require two bindings to write comfortably, maybe it will
be possible to use a method like windows uses where there is a list of
supported languages and a key binding to rotate them, it also features a
small reminder on screen to show the current language, pressing on it
allows you to quickly change to another language from the smaller set that
you want.

The language list could be a global list but allowing to change it for a
document can help, especially if someone has a long list of languages that
he occasionally writes in, the document list can be used to ease
selection.

-- 
  Baruch Even

http://techst02.technion.ac.il/~sbaruch/   (My Site)
http://www.redrival.com/jindor/(My brothers ADD site)

" Learn to laugh ... it's the path to true love! " 
   - The Angel in the movie Michael





lyx-1.1.5fix2 on irix 6.5

2000-10-29 Thread Eli Tziperman

Hello Lyx experts, 

Like in 1.1.5fix1, version 1.1.5fix2 still has problems compiling on
irix 6.5.  Actually the linking seems to be the problem now.  Am I
doing something wrong?

thanks...  Eli

g++ -g -O2 -fno-rtti -fno-exceptions -o lyx BufferView.o BufferView2.o
BufferView_pimpl.o Bullet.o Chktex.o ColorHandler.o CutAndPaste.o
DepTable.o FontInfo.o FontLoader.o ImportLaTeX.o ImportNoweb.o
LColor.o LaTeX.o LaTeXFeatures.o LaTeXLog.o Literate.o LyXAction.o
LyXSendto.o LyXView.o Painter.o PainterBase.o PaperLayout.o
ParagraphExtra.o Spacing.o TableLayout.o TabularLayout.o TextCache.o
ToolbarDefaults.o UpdateInset.o WorkArea.o bmtable.o buffer.o
bufferlist.o bufferparams.o bufferview_funcs.o bullet_forms.o
bullet_forms_cb.o chset.o combox.o credits.o credits_form.o debug.o
filedlg.o font.o form1.o intl.o kbmap.o kbsequence.o language.o
lastfiles.o latexoptions.o layout.o layout_forms.o lyx.o lyx_cb.o
lyx_gui.o lyx_gui_misc.o lyx_main.o lyx_sendfax.o lyx_sendfax_main.o
lyx_sty.o lyxfont.o lyxfr0.o lyxfr1.o lyxfunc.o lyxlex.o
lyxlex_pimpl.o lyxlookup.o lyxrc.o lyxserver.o lyxvc.o main.o menus.o
minibuffer.o paragraph.o print_form.o screen.o sp_form.o
spellchecker.o table.o tabular.o tex-accent.o tex-strings.o
texoptions.o texrow.o text.o text2.o toolbar.o tracer.o trans.o
trans_mgr.o undo.o vc-backend.o vspace.o mathed/.libs/libmathed.a
insets/.libs/libinsets.a support/.libs/libsupport.a ../intl/libintl.a
-liberty -lc -lm -L/usr/lib -lX11 -lpt 
ld32: WARNING 84 : /usr/local/lib/libiberty.a is not used for resolving any symbol.
ld32: FATAL   12 : Expecting n32 objects: /usr/lib/libX11.so is o32.
collect2: ld returned 4 exit status
gmake[3]: *** [lyx] Error 1
gmake[3]: Leaving directory `/usr/local/lyx-1.1.5fix2/src'
gmake[2]: *** [all-recursive] Error 1
gmake[2]: Leaving directory `/usr/local/lyx-1.1.5fix2/src'
gmake[1]: *** [all-recursive-am] Error 2
gmake[1]: Leaving directory `/usr/local/lyx-1.1.5fix2/src'
gmake: *** [all-recursive] Error 1



Re: The preferences file

2000-10-29 Thread Dekel Tsur

On Sun, Oct 29, 2000 at 09:47:05AM +0200, Baruch Even wrote:
 I've just saved the preferences from the dialog by mistake and it forgot
 about my bind setting, all the rest were copied.
 
 On the same note, the current language changing done in LyX is to toggle
 the chosen language from the bind to english. The problem is when I have
 several languages at once for example a spanish/hebrew/english document,
 It will probably require two bindings to write comfortably, maybe it will
 be possible to use a method like windows uses where there is a list of
 supported languages and a key binding to rotate them, it also features a
 small reminder on screen to show the current language, pressing on it
 allows you to quickly change to another language from the smaller set that
 you want.

So you want to have a support for
'bind F12 "language spanish,hebrew,english"' ?

Isn't it better to use two/three keys ? ('bind F12 "language spanish"' and
'bind F11 "language hebrew"' and perhaps 'bind F10 "language english"')



Re: language settings vs. spell checker

2000-10-29 Thread Dekel Tsur

On Sun, Oct 29, 2000 at 08:28:22AM +0100, Lars Gullik Bjnnes wrote:
 
 | 2) Another solution for 1) could be changing the
 |language file, that comes with LyX. The first
 |and second column in this file are ALWAYS the
 |same. Why is that? We could use the second column
 |for an equivalent language name, for example:
 
 Did you check the meanings of the fields?

The second field is the babel name of the language, and it is not always
equal to the first field (the LyX name).

 I'd rather remove one of the fields instead of adding more.
 (but then we would need a "babel" module.

Why not add new fields to the languages file (ispell name, keymap name) ?
The only drawback is decreasing the readability of this file.
A solution for that is to use the following idea: for most languages (e.g.
english) the babel/ispell name is equal to the LyX name, so in this case, we
do not need to repeat it:

#LyX name  Screen nameRTL   encoding   code  babelispell
canadien   "French Canadian" false  iso8859-1  fr_CA frenchb  french
english"English" false  iso8859-1  en *

(the * marks the end of the enlish fields).



Re: The preferences file

2000-10-29 Thread Baruch Even

On Sun, 29 Oct 2000, Dekel Tsur wrote:

 On Sun, Oct 29, 2000 at 09:47:05AM +0200, Baruch Even wrote:
  On the same note, the current language changing done in LyX is to toggle
  the chosen language from the bind to english. The problem is when I have
  several languages at once for example a spanish/hebrew/english document,
  It will probably require two bindings to write comfortably, maybe it will
  be possible to use a method like windows uses where there is a list of
  supported languages and a key binding to rotate them, it also features a
  small reminder on screen to show the current language, pressing on it
  allows you to quickly change to another language from the smaller set that
  you want.
 
 So you want to have a support for
 'bind F12 "language spanish,hebrew,english"' ?
 
 Isn't it better to use two/three keys ? ('bind F12 "language spanish"' and
 'bind F11 "language hebrew"' and perhaps 'bind F10 "language english"')

It won't scale, this is a solution when you use 2 even 3 languages, what
if you need to use more?

This is not something all too important, but it should be considered. I
have no reason to believe that there are many that need this feature but
it might be better than the current solution for those who need it.

-- 
  Baruch Even

http://techst02.technion.ac.il/~sbaruch/   (My Site)
http://www.redrival.com/jindor/(My brothers ADD site)

" Learn to laugh ... it's the path to true love! " 
   - The Angel in the movie Michael





Locale bug in lyx

2000-10-29 Thread Claudius Link

Hi,

I think I found a bug in lyx.

If you set the  LC_NUMERIC environment variable to de_DE (or anything with a 
different decimal_point like ',') lyx will complain when opening for example 
'dinbrief.lyx' (like in new from template):
Warning: need lyxformat 2,15 but found 2,00
and garbage is displayed.

The file contains (imho correctly) 
\lyxformat 2.15

The problem is (I didn't look at the source code) that you use a libc routine
which depends on the locale settings. But the locale setting where different
when the configuration was created.

Suggested solutions could be: Always set locale to C or POSIX before reading
the configuration. Or don't use libc routines for converting numbers.

I hope you don`t think I am impolite to suggest a solution without looking at
the source :-)

Feel free to contact me.
As I am not on the list please CC.

Regards,
Claudius
-- 

Claudius Link   [EMAIL PROTECTED]



Re: Locale bug in lyx

2000-10-29 Thread Claudius Link

On Mon, Oct 30, 2000 at 01:11:36AM +0100, Claudius Link wrote:
...

Sorry, I forgot to include the version of lyx:

LyX Version 1.1.4fix3 of Fri, Apr 7 2000

Regards,
Claudius
-- 

Claudius Link   [EMAIL PROTECTED]



Re: Locale bug in lyx

2000-10-29 Thread Garst R. Reese

Claudius Link wrote:
 
 On Mon, Oct 30, 2000 at 01:11:36AM +0100, Claudius Link wrote:
 ...
 
 Sorry, I forgot to include the version of lyx:
 
 LyX Version 1.1.4fix3 of Fri, Apr 7 2000
 
 Regards,
 Claudius
 --
 
 Claudius Link   [EMAIL PROTECTED]
You might want to try 1.1.5fix2
http://www.lyx.org
Garst



Literate Programming problems

2000-10-29 Thread Kayvan A. Sylvan

Hi all,

I just checked the latest CVS and I have the following problems with
Literate Programming (probably related to import and export).

1) The Import menu only shows Import-Latex (Import-Noweb is greyed out).

2) The build-program option is not appearing in my File menu.

This happens without a custom lyxrc or default.ui.

Could somebody (Dekel?) please look at this?

---Kayvan



Re: Literate Programming problems

2000-10-29 Thread Garst R. Reese

"Kayvan A. Sylvan" wrote:
 
 Hi all,
 
 I just checked the latest CVS and I have the following problems with
 Literate Programming (probably related to import and export).
 
 1) The Import menu only shows Import-Latex (Import-Noweb is greyed out).
 
 2) The build-program option is not appearing in my File menu.
 
 This happens without a custom lyxrc or default.ui.
 
 Could somebody (Dekel?) please look at this?
 
 ---Kayvan
That's curious. On my system Noweb is OK, but HTML is greyed out.
Garst



Re: Problem compiling lyx with gnome on a linux box

2000-10-29 Thread Yann MORERE

Garst R. Reese wrote:
 

 
  where is the problem.
 
  did i forgot something on more time ;-)
 gtkmm-1.1.2 ?

I looked at that more closely this weekend, truely, the gtkmm-1.1.2
package was not installed. so I installed it in the helix version of
gnome on my suse  linux box.

now configure is good, but I got compilation errors, in fact I have no
/opt/gnome/include/gnome-- directory where the lyx gnome frontend try to
search include files. I' ve got gtk-- gdk--but no gnome-- directory.

Could someone who compiled successfully the gnome frontend give the
requirements for that.

thanks

Yann

 gnome dependencies are frustrating, and there is no road map. I don't
 know how complete gnome support in LyX is yet anyway. I ran into the
 same error trying to install gnumeric, but I don't do RH, so can't help
 you with rpm stuff.
 Garst

-- 
"Y faut liiirrreee, Arlequin, Champion de l'amou" Dany Boon
 ---
(Yann MORERE mailto:[EMAIL PROTECTED] )
(Doctorant Automatique   http://ymorere.multimania.com/ )



Re: Problem compiling lyx with gnome on a linux box (fwd)

2000-10-29 Thread Yann MORERE

Marko Vendelin wrote:
 

  where is the problem.
 
  did i forgot something on more time ;-)
 
 Hi Yann!
 
 indeed, you've forgotten to install some required libraries. LyX gnome
 port requires three additional libraries: gtk--, gnome--, and libsigc++.
 You can obtain these fine libraries from

yes i got closely to this problem this weekend, but after severals
packagezs installations, the gnome-- packages was missing from my helix
gnome cd-rom :-(((, i have no internet connction at home, so i had to
wait monday ;-)
 
 gtk--  : http://gtkmm.sourceforge.net/ (take the latest one)
 gnome--: http://gtkmm.sourceforge.net/ (take the latest one,1.1.12(beta))
 libsigc++: http://libsigc.sourceforge.net/

thanks for these urls, no time to waste with searching, i have lots of
works.
 
 Then run configure with the following options: --with-frontend=gnome
 --without-included-libsigc --disable-sigctest . Enjoy the partly gnomefied
 LyX!


thanks to for the configure command,
 
YAnn

-- 
"Y faut liiirrreee, Arlequin, Champion de l'amou" Dany Boon
 ---
(Yann MORERE mailto:[EMAIL PROTECTED] )
(Doctorant Automatique   http://ymorere.multimania.com/ )



Re: Problem compiling lyx 1.1.6 on OSF 4 alpha

2000-10-29 Thread Yann MORERE

Lars Gullik Bjønnes wrote:
 
 Yann MORERE [EMAIL PROTECTED] writes:
 
 |  I have to admit that I did not look too closely to your error messages, so
 |  maybe the sugesstion is complete nonsense...
 |
 | no, i don't think, so, your remark seems to be good.
 
 This might work: confiugre lyx with --with-inluded-string, that will
 make the mangled name of a lot of functions be a lot a shorter.


sorry but it doesn't work, all same errors... 

previous version of lyx compiled successfully on this station, i work
with the 1.1.5fix2. 

is there a solution?

Yann

 Lgb

-- 
"Y faut liiirrreee, Arlequin, Champion de l'amou" Dany Boon
 ---
(Yann MORERE mailto:[EMAIL PROTECTED] )
(Doctorant Automatique   http://ymorere.multimania.com/ )



Re: Preferences dialog: Save = Close ??

2000-10-29 Thread Lars Gullik Bjønnes

"R. Lahaye" <[EMAIL PROTECTED]> writes:

| > | The  button in the Preferences dialog
| > | does the save, but also closes the dialog.
| > What if it said "Ok"?
| 
| I can't follow in what direction you are thinking.
| Just adding an  button wouldn't solve the
| confusion.

I thought more of just changing "save" to "ok" and be done with it.

Lgb



Re: Preferences dialog: Save = Close ??

2000-10-29 Thread R. Lahaye

"Lars Gullik Bjnnes" wrote:
> 
> "R. Lahaye" <[EMAIL PROTECTED]> writes:
> 
> | > | The  button in the Preferences dialog
> | > | does the save, but also closes the dialog.
> | > What if it said "Ok"?
> |
> | I can't follow in what direction you are thinking.
> | Just adding an  button wouldn't solve the
> | confusion.
> 
> I thought more of just changing "save" to "ok" and be done with it.
> 

Well, it's easy for me to criticize the dialog's layout, but
I still believe the current layout and setup should be more
intuitive.

Que sera, sera...

Rob.



Re: Two small fixes

2000-10-29 Thread Lars Gullik Bjønnes

Dekel Tsur <[EMAIL PROTECTED]> writes:

| 1. If a line in the TOC contains %, it will not appear in the TOC menu
| (as % is a special char for popups).
| If fixed this bug by replacing each '%' char by '%%'
| (actually, in XForms0.88 this doesn't work, so I'm replacing '%' by '?'.
| Please check if the fix is OK with XForms0.89).
| 
| 2. Correct drawing of accents (macron) when using iso10646-1 font.

Ok, I applied this.

Lgb



language settings vs. spell checker

2000-10-29 Thread R. Lahaye


Hi,

I ran into trouble when having several documents
loaded each in a different language (which is set
per document in Layout->Document->Language).

The spellingchecker will use that language setting
to find the correct database. However, names
are not the same. For example with dutch:

 In LyX this is "dutch"
 In ispell this is "nederlands" ("dutch" in dutch).

I can manually enter "nederlands" in the language
settings in Preferences, but then my other english
document is wrongly spellchecked :).

I have several remarks & questions to this problem:

1) Assuming that each document is entirely in one
   single language, but simultaneously loaded documents
   can each be in a different language: it then would
   not be convenient to set the ispell language in
   the general Preferences dialog.
   An additional ispell-language setting should be
   added to the Layout->Document->Language dialog.
   Does that make sense?

2) Another solution for 1) could be changing the
   language file, that comes with LyX. The first
   and second column in this file are ALWAYS the
   same. Why is that? We could use the second column
   for an equivalent language name, for example:

  dutch  nederlands
  french francais
  spanishespanol
  german deutsch
  swedishsvenska

   If ispell reports to LyX that it can't find the "dutch"
   database, then LyX should tell ispell to try again for
   the "nederlands" database.

3) If I remember well, one can change the language
   settings (temporarily) anywhere inside a LaTeX
   document. You can mix lanaguages and tell LaTeX
   to do the appropriate hyphenation correctly per
   language-section.
   If that could be done in LyX too, LyX could use
   that information with the ispell call (change the
   ispell-database when a language change appears). 
   Would that be suitable for a future extension?


Just some thoughts.

Regards,
Rob.



Re: language settings vs. spell checker

2000-10-29 Thread Lars Gullik Bjønnes

"R. Lahaye" <[EMAIL PROTECTED]> writes:

| 1) Assuming that each document is entirely in one
|single language, but simultaneously loaded documents
|can each be in a different language: it then would
|not be convenient to set the ispell language in
|the general Preferences dialog.
|An additional ispell-language setting should be
|added to the Layout->Document->Language dialog.
|Does that make sense?

No... we don't want to add a item for all the differenct spell
checkers, the documents language should be translatet to the
spellcheckers notion of the language in the spellchecker module.


| 2) Another solution for 1) could be changing the
|language file, that comes with LyX. The first
|and second column in this file are ALWAYS the
|same. Why is that? We could use the second column
|for an equivalent language name, for example:

Did you check the meanings of the fields?

I'd rather remove one of the fields instead of adding more.
(but then we would need a "babel" module.

| 3) If I remember well, one can change the language
|settings (temporarily) anywhere inside a LaTeX
|document. You can mix lanaguages and tell LaTeX
|to do the appropriate hyphenation correctly per
|language-section.
|If that could be done in LyX too, LyX could use
|that information with the ispell call (change the
|ispell-database when a language change appears). 
|Would that be suitable for a future extension?

Sure... we would probably like to have several ispells running at the
same time. Some rewrite is needed to accomplish that.

Lgb



Re: FormPreferences patch

2000-10-29 Thread Lars Gullik Bjønnes

Angus Leeming <[EMAIL PROTECTED]> writes:

| What to do with individual bind keys?
| Eg \bind "Delete" "delete-backward"
| \bind "F12" "language french"

Imho bindings should go into their own file, why they can very well be
edited from preferences.

In the preferences file we store the "main" bindings file, and in
f.ex. user_bindings the modifications to this are stored.

When stating lyx we first load the bindings file in preferences and
then the bindings in user_bindings.

Also the bindings parsing in class lyxrc should be moved to an other
class.

| What about the following stuff. Is it all still needed? Where to put it?
| 
|   /// ???
|   bool pdf_mode;

get rid of it

Lgb




Re: Problem compiling lyx with gnome on a linux box (fwd)

2000-10-29 Thread Marko Vendelin


> Date: Sat, 28 Oct 2000 10:39:04 +0100
> From: Yann MORERE <[EMAIL PROTECTED]>
> To: LyX devel <[EMAIL PROTECTED]>
> Subject: Problem compiling lyx with gnome on a linux box
> 
> Hello lyx developpers...
> 
> I've got problems compiling lyx with gnome on linux box
> 
> here is the error whene configureing with
> ./configure --with-frontend=gnome
> [...]
> checking for gtk-config... (cached) /usr/bin/gtk-config
> checking for GTK - version >= 1.2.0... yes
> [...]
> gtk is well detected ...
> 
> but 
> 
> checking for IceConnectionNumber in -lICE... yes
> checking for XOpenIM... yes
> checking for  /usr/bin/gtkmm-config
> checking for GTK-- - version >= 1.2.1... no
> *** Could not run GTK-- test program, checking why...
> *** The test program failed to compile or link. See the file config.log
> for the
> *** exact error that occured. This usually means GTK-- was incorrectly
> installed
> *** or that you have moved GTK-- since it was installed. In the latter
> case, you
> *** may want to edit the gtkmm-config script: /usr/bin/gtkmm-config
> configure: error: Cannot find GTK--: Please install Version 1.2.1+
> [yann@venusia lyx-1.1.6pre1]$ rpm -qa | grep gtk
> gtk+10-1.0.6-6
> gtk-engines-0.7-1
> pygtk-0.6.2-2
> gtk+-1.2.8-1
> gtk+-devel-1.2.8-1
> [yann@venusia lyx-1.1.6pre1]$ 
> 
> i've got no gtkmm-config program in my linux box.
> 
> where is the problem.
> 
> did i forgot something on more time ;-)

Hi Yann!

indeed, you've forgotten to install some required libraries. LyX gnome
port requires three additional libraries: gtk--, gnome--, and libsigc++.
You can obtain these fine libraries from

gtk--  : http://gtkmm.sourceforge.net/ (take the latest one)
gnome--: http://gtkmm.sourceforge.net/ (take the latest one,1.1.12(beta))
libsigc++: http://libsigc.sourceforge.net/

Then run configure with the following options: --with-frontend=gnome
--without-included-libsigc --disable-sigctest . Enjoy the partly gnomefied
LyX!

Marko




BUG: file->export in 1.1.16pre1

2000-10-29 Thread Gerard Vermeulen (CRTBT)

File->Export shows inconsistent behaviour:
I am able to produce *.pdf and *.dvi, but all other options (ASCII,
HTML, LaTeX and Postscript) fail.
Also for instance "lyx myfile.lyx --export latex" does not produce
myfile.tex.

As far as I can see lyx goes through all the steps of generating
the requested output format, but the result gets deleted at the
end.

Thanks very much for your great program -- Gerard

-- 
Gerard Vermeulen   |  TEL: 33 (0)4 76 88 12 53
CRTBT  |   or  33 (0)4 76 88 12 61
BP 166 -- 38042 Grenoble Cedex 9 -- France |  Fax: 33 (0)4 76 87 50 60
http://www-crtbt.polycnrs-gre.fr/he3pol



Re: BUG: file->export in 1.1.16pre1

2000-10-29 Thread R. Lahaye

"Gerard Vermeulen (CRTBT)" wrote:
> As far as I can see lyx goes through all the steps of generating
> the requested output format, but the result gets deleted at the
> end.

I think the output results are left in the tmp directory. Have
a look at something:

  /tmp/lyx_tmp7683aaa/lyx_bufrtmp7683aaa

(are you working on a Linux PC?)

You can copy the files from there.
Not a pretty solution, but works until a bug-fix will be provided.

R.



gnome: cleanup and update() to updateSlot()

2000-10-29 Thread Marko Vendelin


Hi!

the attached patch replaces NULL with 0 in the gnome frontend code and
makes the frontend to compile again by replacing/adding update() with
updateSlot() where appropriate. It seems that DialogBase is changing its
methods quite often which is one more good reason to establish class
hierarchy among gnome frontend classes.

Marko

 patch.gnome.29.10.00.gz


The preferences file

2000-10-29 Thread Baruch Even

I've just saved the preferences from the dialog by mistake and it forgot
about my bind setting, all the rest were copied.

On the same note, the current language changing done in LyX is to toggle
the chosen language from the bind to english. The problem is when I have
several languages at once for example a spanish/hebrew/english document,
It will probably require two bindings to write comfortably, maybe it will
be possible to use a method like windows uses where there is a list of
supported languages and a key binding to rotate them, it also features a
small reminder on screen to show the current language, pressing on it
allows you to quickly change to another language from the smaller set that
you want.

The language list could be a global list but allowing to change it for a
document can help, especially if someone has a long list of languages that
he occasionally writes in, the document list can be used to ease
selection.

-- 
  Baruch Even

http://techst02.technion.ac.il/~sbaruch/   (My Site)
http://www.redrival.com/jindor/(My brothers AD site)

" Learn to laugh ... it's the path to true love! " 
   - The Angel in the movie Michael





lyx-1.1.5fix2 on irix 6.5

2000-10-29 Thread Eli Tziperman

Hello Lyx experts, 

Like in 1.1.5fix1, version 1.1.5fix2 still has problems compiling on
irix 6.5.  Actually the linking seems to be the problem now.  Am I
doing something wrong?

thanks...  Eli

g++ -g -O2 -fno-rtti -fno-exceptions -o lyx BufferView.o BufferView2.o
BufferView_pimpl.o Bullet.o Chktex.o ColorHandler.o CutAndPaste.o
DepTable.o FontInfo.o FontLoader.o ImportLaTeX.o ImportNoweb.o
LColor.o LaTeX.o LaTeXFeatures.o LaTeXLog.o Literate.o LyXAction.o
LyXSendto.o LyXView.o Painter.o PainterBase.o PaperLayout.o
ParagraphExtra.o Spacing.o TableLayout.o TabularLayout.o TextCache.o
ToolbarDefaults.o UpdateInset.o WorkArea.o bmtable.o buffer.o
bufferlist.o bufferparams.o bufferview_funcs.o bullet_forms.o
bullet_forms_cb.o chset.o combox.o credits.o credits_form.o debug.o
filedlg.o font.o form1.o intl.o kbmap.o kbsequence.o language.o
lastfiles.o latexoptions.o layout.o layout_forms.o lyx.o lyx_cb.o
lyx_gui.o lyx_gui_misc.o lyx_main.o lyx_sendfax.o lyx_sendfax_main.o
lyx_sty.o lyxfont.o lyxfr0.o lyxfr1.o lyxfunc.o lyxlex.o
lyxlex_pimpl.o lyxlookup.o lyxrc.o lyxserver.o lyxvc.o main.o menus.o
minibuffer.o paragraph.o print_form.o screen.o sp_form.o
spellchecker.o table.o tabular.o tex-accent.o tex-strings.o
texoptions.o texrow.o text.o text2.o toolbar.o tracer.o trans.o
trans_mgr.o undo.o vc-backend.o vspace.o mathed/.libs/libmathed.a
insets/.libs/libinsets.a support/.libs/libsupport.a ../intl/libintl.a
-liberty -lc -lm -L/usr/lib -lX11 -lpt 
ld32: WARNING 84 : /usr/local/lib/libiberty.a is not used for resolving any symbol.
ld32: FATAL   12 : Expecting n32 objects: /usr/lib/libX11.so is o32.
collect2: ld returned 4 exit status
gmake[3]: *** [lyx] Error 1
gmake[3]: Leaving directory `/usr/local/lyx-1.1.5fix2/src'
gmake[2]: *** [all-recursive] Error 1
gmake[2]: Leaving directory `/usr/local/lyx-1.1.5fix2/src'
gmake[1]: *** [all-recursive-am] Error 2
gmake[1]: Leaving directory `/usr/local/lyx-1.1.5fix2/src'
gmake: *** [all-recursive] Error 1



Re: The preferences file

2000-10-29 Thread Dekel Tsur

On Sun, Oct 29, 2000 at 09:47:05AM +0200, Baruch Even wrote:
> I've just saved the preferences from the dialog by mistake and it forgot
> about my bind setting, all the rest were copied.
> 
> On the same note, the current language changing done in LyX is to toggle
> the chosen language from the bind to english. The problem is when I have
> several languages at once for example a spanish/hebrew/english document,
> It will probably require two bindings to write comfortably, maybe it will
> be possible to use a method like windows uses where there is a list of
> supported languages and a key binding to rotate them, it also features a
> small reminder on screen to show the current language, pressing on it
> allows you to quickly change to another language from the smaller set that
> you want.

So you want to have a support for
'bind F12 "language spanish,hebrew,english"' ?

Isn't it better to use two/three keys ? ('bind F12 "language spanish"' and
'bind F11 "language hebrew"' and perhaps 'bind F10 "language english"')



Re: language settings vs. spell checker

2000-10-29 Thread Dekel Tsur

On Sun, Oct 29, 2000 at 08:28:22AM +0100, Lars Gullik Bjnnes wrote:
> 
> | 2) Another solution for 1) could be changing the
> |language file, that comes with LyX. The first
> |and second column in this file are ALWAYS the
> |same. Why is that? We could use the second column
> |for an equivalent language name, for example:
> 
> Did you check the meanings of the fields?

The second field is the babel name of the language, and it is not always
equal to the first field (the LyX name).

> I'd rather remove one of the fields instead of adding more.
> (but then we would need a "babel" module.

Why not add new fields to the languages file (ispell name, keymap name) ?
The only drawback is decreasing the readability of this file.
A solution for that is to use the following idea: for most languages (e.g.
english) the babel/ispell name is equal to the LyX name, so in this case, we
do not need to repeat it:

#LyX name  Screen nameRTL   encoding   code  babelispell
canadien   "French Canadian" false  iso8859-1  fr_CA frenchb  french
english"English" false  iso8859-1  en *

(the * marks the end of the enlish fields).



Re: The preferences file

2000-10-29 Thread Baruch Even

On Sun, 29 Oct 2000, Dekel Tsur wrote:

> On Sun, Oct 29, 2000 at 09:47:05AM +0200, Baruch Even wrote:
> > On the same note, the current language changing done in LyX is to toggle
> > the chosen language from the bind to english. The problem is when I have
> > several languages at once for example a spanish/hebrew/english document,
> > It will probably require two bindings to write comfortably, maybe it will
> > be possible to use a method like windows uses where there is a list of
> > supported languages and a key binding to rotate them, it also features a
> > small reminder on screen to show the current language, pressing on it
> > allows you to quickly change to another language from the smaller set that
> > you want.
> 
> So you want to have a support for
> 'bind F12 "language spanish,hebrew,english"' ?
> 
> Isn't it better to use two/three keys ? ('bind F12 "language spanish"' and
> 'bind F11 "language hebrew"' and perhaps 'bind F10 "language english"')

It won't scale, this is a solution when you use 2 even 3 languages, what
if you need to use more?

This is not something all too important, but it should be considered. I
have no reason to believe that there are many that need this feature but
it might be better than the current solution for those who need it.

-- 
  Baruch Even

http://techst02.technion.ac.il/~sbaruch/   (My Site)
http://www.redrival.com/jindor/(My brothers AD site)

" Learn to laugh ... it's the path to true love! " 
   - The Angel in the movie Michael





Locale bug in lyx

2000-10-29 Thread Claudius Link

Hi,

I think I found a bug in lyx.

If you set the  LC_NUMERIC environment variable to de_DE (or anything with a 
different decimal_point like ',') lyx will complain when opening for example 
'dinbrief.lyx' (like in new from template):
Warning: need lyxformat 2,15 but found 2,00
and garbage is displayed.

The file contains (imho correctly) 
\lyxformat 2.15

The problem is (I didn't look at the source code) that you use a libc routine
which depends on the locale settings. But the locale setting where different
when the configuration was created.

Suggested solutions could be: Always set locale to C or POSIX before reading
the configuration. Or don't use libc routines for converting numbers.

I hope you don`t think I am impolite to suggest a solution without looking at
the source :-)

Feel free to contact me.
As I am not on the list please CC.

Regards,
Claudius
-- 

Claudius Link   [EMAIL PROTECTED]



Re: Locale bug in lyx

2000-10-29 Thread Claudius Link

On Mon, Oct 30, 2000 at 01:11:36AM +0100, Claudius Link wrote:
...

Sorry, I forgot to include the version of lyx:

LyX Version 1.1.4fix3 of Fri, Apr 7 2000

Regards,
Claudius
-- 

Claudius Link   [EMAIL PROTECTED]



Re: Locale bug in lyx

2000-10-29 Thread Garst R. Reese

Claudius Link wrote:
> 
> On Mon, Oct 30, 2000 at 01:11:36AM +0100, Claudius Link wrote:
> ...
> 
> Sorry, I forgot to include the version of lyx:
> 
> LyX Version 1.1.4fix3 of Fri, Apr 7 2000
> 
> Regards,
> Claudius
> --
> 
> Claudius Link   [EMAIL PROTECTED]
You might want to try 1.1.5fix2
http://www.lyx.org
Garst



Literate Programming problems

2000-10-29 Thread Kayvan A. Sylvan

Hi all,

I just checked the latest CVS and I have the following problems with
Literate Programming (probably related to import and export).

1) The Import menu only shows Import->Latex (Import->Noweb is greyed out).

2) The build-program option is not appearing in my File menu.

This happens without a custom lyxrc or default.ui.

Could somebody (Dekel?) please look at this?

---Kayvan



Re: Literate Programming problems

2000-10-29 Thread Garst R. Reese

"Kayvan A. Sylvan" wrote:
> 
> Hi all,
> 
> I just checked the latest CVS and I have the following problems with
> Literate Programming (probably related to import and export).
> 
> 1) The Import menu only shows Import->Latex (Import->Noweb is greyed out).
> 
> 2) The build-program option is not appearing in my File menu.
> 
> This happens without a custom lyxrc or default.ui.
> 
> Could somebody (Dekel?) please look at this?
> 
> ---Kayvan
That's curious. On my system Noweb is OK, but HTML is greyed out.
Garst



Re: Problem compiling lyx with gnome on a linux box

2000-10-29 Thread Yann MORERE

Garst R. Reese wrote:
> 

> >
> > where is the problem.
> >
> > did i forgot something on more time ;-)
> gtkmm-1.1.2 ?

I looked at that more closely this weekend, truely, the gtkmm-1.1.2
package was not installed. so I installed it in the helix version of
gnome on my suse  linux box.

now configure is good, but I got compilation errors, in fact I have no
/opt/gnome/include/gnome-- directory where the lyx gnome frontend try to
search include files. I' ve got gtk-- gdk--but no gnome-- directory.

Could someone who compiled successfully the gnome frontend give the
requirements for that.

thanks

Yann

> gnome dependencies are frustrating, and there is no road map. I don't
> know how complete gnome support in LyX is yet anyway. I ran into the
> same error trying to install gnumeric, but I don't do RH, so can't help
> you with rpm stuff.
> Garst

-- 
"Y faut liiirrreee, Arlequin, Champion de l'amou" Dany Boon
 ---
(Yann MORERE mailto:[EMAIL PROTECTED] )
(Doctorant Automatique   http://ymorere.multimania.com/ )



Re: Problem compiling lyx with gnome on a linux box (fwd)

2000-10-29 Thread Yann MORERE

Marko Vendelin wrote:
> 

> > where is the problem.
> >
> > did i forgot something on more time ;-)
> 
> Hi Yann!
> 
> indeed, you've forgotten to install some required libraries. LyX gnome
> port requires three additional libraries: gtk--, gnome--, and libsigc++.
> You can obtain these fine libraries from

yes i got closely to this problem this weekend, but after severals
packagezs installations, the gnome-- packages was missing from my helix
gnome cd-rom :-(((, i have no internet connction at home, so i had to
wait monday ;-)
 
> gtk--  : http://gtkmm.sourceforge.net/ (take the latest one)
> gnome--: http://gtkmm.sourceforge.net/ (take the latest one,1.1.12(beta))
> libsigc++: http://libsigc.sourceforge.net/

thanks for these urls, no time to waste with searching, i have lots of
works.
 
> Then run configure with the following options: --with-frontend=gnome
> --without-included-libsigc --disable-sigctest . Enjoy the partly gnomefied
> LyX!


thanks to for the configure command,
 
YAnn

-- 
"Y faut liiirrreee, Arlequin, Champion de l'amou" Dany Boon
 ---
(Yann MORERE mailto:[EMAIL PROTECTED] )
(Doctorant Automatique   http://ymorere.multimania.com/ )



Re: Problem compiling lyx 1.1.6 on OSF 4 alpha

2000-10-29 Thread Yann MORERE

Lars Gullik Bjønnes wrote:
> 
> Yann MORERE <[EMAIL PROTECTED]> writes:
> 
> | > I have to admit that I did not look too closely to your error messages, so
> | > maybe the sugesstion is complete nonsense...
> |
> | no, i don't think, so, your remark seems to be good.
> 
> This might work: confiugre lyx with --with-inluded-string, that will
> make the mangled name of a lot of functions be a lot a shorter.


sorry but it doesn't work, all same errors... 

previous version of lyx compiled successfully on this station, i work
with the 1.1.5fix2. 

is there a solution?

Yann

> Lgb

-- 
"Y faut liiirrreee, Arlequin, Champion de l'amou" Dany Boon
 ---
(Yann MORERE mailto:[EMAIL PROTECTED] )
(Doctorant Automatique   http://ymorere.multimania.com/ )