Re: [PATCH] BUG 1486 copied formula is not previewed.

2007-06-20 Thread Bo Peng
Waiting for two OKs. Please use this version. Bo Index: src/insets/RenderPreview.h === --- src/insets/RenderPreview.h (revision 18839) +++ src/insets/RenderPreview.h (working copy) @@ -51,6 +51,9 @@ RenderPreview(RenderPreview co

[PATCH] BUG 1486 copied formula is not previewed.

2007-06-20 Thread Bo Peng
http://bugzilla.lyx.org/show_bug.cgi?id=1486 Problem: Create a lyx document, enter $x^2$, wait for it to be previewed, now copy this formula and paste. The copied mathed will not be previewed, even if you move your cursor in and out. Diagnosis: In the copy constructor of InsetMathHull, preview

Re: farsi aspell

2007-06-20 Thread Uwe Stöhr
Uwe Stöhr schrieb: Joost provided a new version yesterday. I'll correct the link to this version later today. Done. To have the new Farsi dictionary automatically installed on Windows, you have to wait for LyXWInInstaller for LyX 1.5 RC2. regards Uwe

Re: No paragraph alignment options

2007-06-20 Thread Bennett Helm
On Jun 20, 2007, at 6:22 PM, Anders Ekberg wrote: Richard Heck Wed, 20 Jun 2007 14:30:21 -0700 Bennett Helm wrote: On Jun 20, 2007, at 2:56 PM, Neal Becker wrote: Bennett Helm wrote: On Jun 20, 2007, at 1:54 PM, Neal Becker wrote: 1.50rc1. Under paragraph settings dialog, all alignment op

[patch] fix bug 2928: make Arabic and Farsi correctly usable

2007-06-20 Thread Uwe Stöhr
Mostafa Vahedi schrieb: The correct way is to add the options "LFE,LAE" to the existing call of fontenc in the preamble. You are right. In fact I don't know how to do that. Whether I should do something in the source or somewhere else. The attached patch fixes this. 2) Due to the curren

Re: Ehancement request: paragraph-params-noalign LFUN

2007-06-20 Thread Pavel Sanda
> I usually do not want to start a new paragraph after a display equation, so > I have been setting the next paragraph to \noindent using ERT. was by paragraph-params-noalign meant paragraph-params-noindent ? if so, its already part of #2714. if not, this request should go to bugzilla. pavel

farsi keyboard "farsi.kmap"

2007-06-20 Thread Mostafa Vahedi
I have attached the Farsi keyboard based on Linux Farsi keymap which can be added to directory "LYX_DEVEL/lib/kbd/". The only problem I have is the last line in which I tried to assign a letter to the double quote, i.e. \", and it did not work. Mostafa ---

Ehancement request: paragraph-params-noalign LFUN

2007-06-20 Thread Bob Alvarez
I hope this is the right place to send this. I usually do not want to start a new paragraph after a display equation, so I have been setting the next paragraph to \noindent using ERT. This is quite tedious so I created a keyboard shortcut to do the job (with the help of Richard Heck). \bind "C-y

Re: Using LyX to Prepare Mixed Farsi-Arabic-English documents (Howto)

2007-06-20 Thread Mostafa Vahedi
> Mostafa Vahedi schrieb: > > I have attached the Farsi translation of the file > > "example_lyxified.lyx" (that can be put in the directory "examples\fa\"). > I'll add this. Thanks. > > 1) the fontenc should be adjusted. There are two ways: > > 1-a) One way is to adjust "Tools->Preferenc

Re: [patch] Mini-buffer popup does not close on enter or space, #3588

2007-06-20 Thread Alfredo Braunstein
Stefan Schimanski wrote: > Anybody tried it? Need another OK for committing. Works here (linux). Go ahead. A/

Re: No paragraph alignment options

2007-06-20 Thread Anders Ekberg
Richard Heck Wed, 20 Jun 2007 14:30:21 -0700 Bennett Helm wrote: On Jun 20, 2007, at 2:56 PM, Neal Becker wrote: Bennett Helm wrote: On Jun 20, 2007, at 1:54 PM, Neal Becker wrote: 1.50rc1. Under paragraph settings dialog, all alignment options always seem to be greyed out. Did you uncheck

Re: [patch] crash when highlighting text, #3875

2007-06-20 Thread Uwe Stöhr
I tested this and it works fine. So OK by me. rgards Uwe

Re: Using LyX to Prepare Mixed Farsi-Arabic-English documents (Howto)

2007-06-20 Thread Uwe Stöhr
Uwe Stöhr schrieb: I have attached the Farsi translation of the file "example_lyxified.lyx" (that can be put in the directory "examples\fa\"). I'll add this. Sorry, I was too fast. This will only be added when we fixed the remaining issues correctly because preamble hacks are no solution.

Re: Using LyX to Prepare Mixed Farsi-Arabic-English documents (Howto)

2007-06-20 Thread Uwe Stöhr
Mostafa Vahedi schrieb: Here I will explain how to adjust LyX to prepare mixed Farsi-Arabic-English documents (which is based on ARABI package). Yes, with the arabi-package this is no problem. I have attached the Farsi translation of the file "example_lyxified.lyx" (that can be put in the

Re: [patch] crash when highlighting text, #3875

2007-06-20 Thread Alfredo Braunstein
Stefan Schimanski wrote: > The bug: http://bugzilla.lyx.org/show_bug.cgi?id=3875 > > The problem: On fullscreen redraw the metrics of all visible > paragraphs are recreated and stored in the TextMetrics object. If the > number of paragraphs on screen does not change everything is fine > because t

Re: Empty Math Panel Popups

2007-06-20 Thread Alfredo Braunstein
Edwin Leuven wrote: > Edwin Leuven wrote: >> PING! > > just for the record: > > unless someone shouts out i am gonna put this in by noon tomorrow (thu 21) (shouting) You have my ok :-) A/

Re: [patch] linking source view with text

2007-06-20 Thread Bo Peng
PS2: I'm ok if one or both of them get applied after 1.5.0 is out. This is a new feature so it has to wait after 1.5.0 is out. Bo

Re: Update of previews too lazy

2007-06-20 Thread Bernhard Roider
Bo Peng schrieb: On 6/20/07, Neal Becker <[EMAIL PROTECTED]> wrote: 1.50rc1 When I edit math, previews don't update until I fiddle around a bit. 1. Edit math 2. Click outside math - no update 3. Click inside math again 4. Click outside math again. Maybe update this time. This is because it

Re: Empty Math Panel Popups

2007-06-20 Thread Edwin Leuven
Edwin Leuven wrote: PING! just for the record: unless someone shouts out i am gonna put this in by noon tomorrow (thu 21)

Re: [patch] linking source view with text

2007-06-20 Thread Alfredo Braunstein
Bo Peng wrote: > On 6/20/07, Bo Peng <[EMAIL PROTECTED]> > wrote: >> > This is probably 1.5.x stuff at minimum, but I'd appreciate comments >> > very much nevertheless... >> >> Looks good to me right now... > > I am not familiar with textrow() stuff, I guess Abdel can comment on > that. One thing

Re: No paragraph alignment options

2007-06-20 Thread Richard Heck
Bennett Helm wrote: On Jun 20, 2007, at 2:56 PM, Neal Becker wrote: Bennett Helm wrote: On Jun 20, 2007, at 1:54 PM, Neal Becker wrote: 1.50rc1. Under paragraph settings dialog, all alignment options always seem to be greyed out. Did you uncheck the "Default" box? Ah! Well, at least one reaso

Re: Create new document dialog: Create and cancel, reverse action.

2007-06-20 Thread Bo Peng
> Waiting for 1 OK becuase this is trivial. The patch works for me. Thanks. The patch is committed now. Bo

Re: Create new document dialog: Create and cancel, reverse action.

2007-06-20 Thread Enrico Forestieri
On Wed, Jun 20, 2007 at 02:42:10PM -0500, Bo Peng wrote: > > lyx anewfile.lyx > > > > Lyx asks: 'The document anewfile.lyx does not yet exist. Do you want > > to create a new document? > > > > Click create. no new document is created. > > Click cancel: a new document is created. > > > > This should

Re: [patch] linking source view with text

2007-06-20 Thread Alfredo Braunstein
Bo Peng wrote: >> Right. The #include can also go. Dunno why my compiler didn't >> complain. > > If you are using cmake, it uses pre-compiled headers which is a > superset of header files included in this single file... This has > caused some troubles in the past. That would explain it, thanks.

Re: [patch] linking source view with text

2007-06-20 Thread Bo Peng
Right. The #include can also go. Dunno why my compiler didn't complain. If you are using cmake, it uses pre-compiled headers which is a superset of header files included in this single file... This has caused some troubles in the past. I do not know if autotools has the same problem when pch.h

Re: [patch] linking source view with text

2007-06-20 Thread Alfredo Braunstein
Bo Peng wrote: > #include > +#include Right. The #include can also go. Dunno why my compiler didn't complain. A/

Re: [patch] linking source view with text

2007-06-20 Thread Alfredo Braunstein
Bo Peng wrote: >> Err... what doesn't work exactly? This texrow stuff work at the outer >> paragraphs level, so there should be no particular problem with tables. > > I meant, if you click on texts inside table, your gray bar does not go > there. It always stays at the first line (\begin{table}?)

Re: dead keys do not work properly

2007-06-20 Thread Póta György
Dear All, I found something similar with a Hungarian keyboard: altgrey+^ apparently did not work. It turned out then that if you held the altgrey+^ pressed then a number of ^^^ would appear. But it is still impossible to produce one ^. And one °. Gyorgy Pota

Re: problems to show figures in LyX

2007-06-20 Thread Enrico Forestieri
On Wed, Jun 20, 2007 at 09:44:12AM +0100, José Matos wrote: > On Wednesday 20 June 2007 00:00:06 Enrico Forestieri wrote: > > The attached patch fixes it. José, OK to commit? > > The patch seems right. If you someone to test this and guarantee that it > works (no need to be a developer) it can

Re: Create new document dialog: Create and cancel, reverse action.

2007-06-20 Thread Bo Peng
lyx anewfile.lyx Lyx asks: 'The document anewfile.lyx does not yet exist. Do you want to create a new document? Click create. no new document is created. Click cancel: a new document is created. This should be fixed ASAP. The patch is easy. Note that prompt() returns button index so 'create'

Create new document dialog: Create and cancel, reverse action.

2007-06-20 Thread Bo Peng
lyx anewfile.lyx Lyx asks: 'The document anewfile.lyx does not yet exist. Do you want to create a new document? Click create. no new document is created. Click cancel: a new document is created. This should be fixed ASAP. Cheers, Bo

Re: No paragraph alignment options

2007-06-20 Thread Bennett Helm
On Jun 20, 2007, at 2:56 PM, Neal Becker wrote: Bennett Helm wrote: On Jun 20, 2007, at 1:54 PM, Neal Becker wrote: 1.50rc1. Under paragraph settings dialog, all alignment options always seem to be greyed out. Did you uncheck the "Default" box? Ah! Well, at least one reasonably intell

Re: No paragraph alignment options

2007-06-20 Thread Neal Becker
Bennett Helm wrote: > On Jun 20, 2007, at 1:54 PM, Neal Becker wrote: > >> 1.50rc1. Under paragraph settings dialog, all alignment options >> always seem >> to be greyed out. > > Did you uncheck the "Default" box? > Ah! Well, at least one reasonably intelligent somewhat experienced lyx user

Re: tex2lyx

2007-06-20 Thread Pavel Sanda
> This is probably impossible in sed. It's a well-known theorem that you > can't do parenethesis matching with (standard) regular expressions. You just for fun ... :) you cant do parenthesis matching with standard regular expressions, but sed knows much more things (like branching) and it can be

Re: Update of previews too lazy

2007-06-20 Thread Bo Peng
On 6/20/07, Neal Becker <[EMAIL PROTECTED]> wrote: 1.50rc1 When I edit math, previews don't update until I fiddle around a bit. 1. Edit math 2. Click outside math - no update 3. Click inside math again 4. Click outside math again. Maybe update this time. This is because it takes time for lat

Update of previews too lazy

2007-06-20 Thread Neal Becker
1.50rc1 When I edit math, previews don't update until I fiddle around a bit. 1. Edit math 2. Click outside math - no update 3. Click inside math again 4. Click outside math again. Maybe update this time.

Re: No paragraph alignment options

2007-06-20 Thread Bennett Helm
On Jun 20, 2007, at 1:54 PM, Neal Becker wrote: 1.50rc1. Under paragraph settings dialog, all alignment options always seem to be greyed out. Did you uncheck the "Default" box? Bennett

Re: [patch] linking source view with text

2007-06-20 Thread Bo Peng
On 6/20/07, Stefan Schimanski <[EMAIL PROTECTED]> wrote: Did I miss anything? The original patch needs an '#include '. Please try the attached instead. I think this is an artifact of cmake's 'include-everything' approach. Cheers, Bo Index: src/TexRow.h

No paragraph alignment options

2007-06-20 Thread Neal Becker
1.50rc1. Under paragraph settings dialog, all alignment options always seem to be greyed out.

Re: [patch] linking source view with text

2007-06-20 Thread Stefan Schimanski
Did I miss anything? /Users/sts/Quellen/mac/lyx-devel/src/TexRow.h:89: error: ISO C++ forbids declaration of 'vector' with no type /Users/sts/Quellen/mac/lyx-devel/src/TexRow.h:89: error: typedef name may not be a nested-name-specifier /Users/sts/Quellen/mac/lyx-devel/src/TexRow.h:89: error:

Re: [patch] linking source view with text

2007-06-20 Thread Bo Peng
Err... what doesn't work exactly? This texrow stuff work at the outer paragraphs level, so there should be no particular problem with tables. I meant, if you click on texts inside table, your gray bar does not go there. It always stays at the first line (\begin{table}?) Bo

Re: Empty Math Panel Popups

2007-06-20 Thread Bennett Helm
On Jun 20, 2007, at 1:17 PM, Edwin Leuven wrote: Bennett Helm wrote: Bennett Helm wrote: It works on Mac, though it's not obvious that it should. What I meant is that when the panel pops up, there's no clear indication from its appearance that tearing it off can work, and so people won't l

Re: Can't enter extra whitespace when editing.

2007-06-20 Thread Jean-Marc Lasgouttes
> "Darren" == Darren Freeman <[EMAIL PROTECTED]> writes: Darren> What I'm saying is that from the point of view of typing in Darren> LyX it would feel more natural (to me) if each keypress were Darren> honoured on-screen. Even though it will then be cleaned up Darren> later. That would be eve

Re: Empty Math Panel Popups

2007-06-20 Thread Edwin Leuven
Bennett Helm wrote: Bennett Helm wrote: It works on Mac, though it's not obvious that it should. What I meant is that when the panel pops up, there's no clear indication from its appearance that tearing it off can work, and so people won't likely try clicking there and discover the tear-off

Re: [patch] linking source view with text

2007-06-20 Thread Alfredo Braunstein
Stefan Schimanski wrote: > Cool! Thanks. > Had nearly started to work on this feature myself. No worries... there's plenty of fun stuff in this area it seems ;-) A/

Re: [patch] linking source view with text

2007-06-20 Thread Alfredo Braunstein
Bo Peng wrote: > I am not familiar with textrow() stuff, I guess Abdel can comment on > that. One thing I notice that your patch does not work for tables. Err... what doesn't work exactly? This texrow stuff work at the outer paragraphs level, so there should be no particular problem with tables.

Re: [patch] linking source view with text

2007-06-20 Thread Bo Peng
On 6/20/07, Bo Peng <[EMAIL PROTECTED]> wrote: > This is probably 1.5.x stuff at minimum, but I'd appreciate comments very > much nevertheless... Looks good to me right now... I am not familiar with textrow() stuff, I guess Abdel can comment on that. One thing I notice that your patch does not

[patch] crash when highlighting text, #3875

2007-06-20 Thread Stefan Schimanski
The bug: http://bugzilla.lyx.org/show_bug.cgi?id=3875 The problem: On fullscreen redraw the metrics of all visible paragraphs are recreated and stored in the TextMetrics object. If the number of paragraphs on screen does not change everything is fine because the paragraph metrics cache is j

Re: [patch] linking source view with text

2007-06-20 Thread Bo Peng
This is probably 1.5.x stuff at minimum, but I'd appreciate comments very much nevertheless... Looks good to me right now... - the reverse lookup source-> text (easy) - more fine-grained control than latex lines (harder but a cool project IMO, I think I have good ideas about it) - search in th

Re: [patch] linking source view with text

2007-06-20 Thread Stefan Schimanski
Am 20.06.2007 um 17:06 schrieb Alfredo Braunstein: The following short patch is a links the source view window with the work area: now when navigating with the cursor the line of the latex source which should contain the corresponding position of the cursor position is selected. The patch

Re: tex2lyx

2007-06-20 Thread Richard Heck
Charles de Miramon wrote: It is not perfect because, I have not found a way to suppress with sed a latex tag and the closing brace maybe it should be done in Python with a macro. to go from : \uselesstag{blabla \emph{foo} foo} -> blabla \emph{foo} foo This is probably impossible in sed. It's

[patch] linking source view with text

2007-06-20 Thread Alfredo Braunstein
The following short patch is a links the source view window with the work area: now when navigating with the cursor the line of the latex source which should contain the corresponding position of the cursor position is selected. The patch includes an orthogonal simplification to rowlist (for the s

Re: [Cvslog] r18828 - in /lyx-devel/trunk/src: BufferView.cpp BufferVi...

2007-06-20 Thread Richard Heck
[EMAIL PROTECTED] wrote: Author: younes Date: Tue Jun 19 18:03:47 2007 New Revision: 18828 URL: http://www.lyx.org/trac/changeset/18828 Log: Polish revision 18825 and fix some remaining issues with child documents. The diff is bigger than it should because of white space issues. That was me.

Re: center table

2007-06-20 Thread Neal Becker
Helge Hafting wrote: > Neal Becker wrote: >> I'm using 1.5rc1. I started entering a table. I want the table centered, >> so >> I choose paragraph settings. All the settings are greyed out. Is this a >> bug? >> > If the cursor is inside the table, then you're setting paragraph settings > for

Re: center table

2007-06-20 Thread Helge Hafting
Neal Becker wrote: I'm using 1.5rc1. I started entering a table. I want the table centered, so I choose paragraph settings. All the settings are greyed out. Is this a bug? If the cursor is inside the table, then you're setting paragraph settings for the cell the cursor is in. This is not

RE: Re: tex2lyx

2007-06-20 Thread Leuven, E.
Ekkehart Schlicht wrote: > Jean-Marc: > 2. short.tex: short.doc exported by OpenOfficeWriter 2.2 to Latex. As > you can see it is rather clean. It woulkd be good however, to have a way > for replacing things that LyX don't understand, like > {\selectlanguage{english} or {\textasciigrave} from *with

Re: tex2lyx

2007-06-20 Thread Charles de Miramon
Ekkehart Schlicht wrote: > Jean-Marc: > > I deposited an example to > > http://www.semverteilung.vwl.uni-muenchen.de/temp/short.zip > > It contains > > 1. short.doc: Shortened version of a winword file I obtained from the > publisher > > 2. short.tex: short.doc exported by OpenOfficeWriter 2.

center table

2007-06-20 Thread Neal Becker
I'm using 1.5rc1. I started entering a table. I want the table centered, so I choose paragraph settings. All the settings are greyed out. Is this a bug?

farsi aspell

2007-06-20 Thread Uwe Stöhr
> Are you sure that the farsi aspell installation file for windows which is > mentioned on the wiki page "http://wiki.lyx.org/Windows/Farsi";; is the latest > one. It has an obvious bug. Joost provided a new version yesterday. I'll correct the link to this version later today. regards Uwe

Re: Can't enter extra whitespace when editing.

2007-06-20 Thread christian . ridderstrom
On Wed, 20 Jun 2007, Darren Freeman wrote: On Wed, 2007-06-20 at 10:01 +0200, Enrico Forestieri wrote: On Wed, Jun 20, 2007 at 02:07:25PM +1000, Darren Freeman wrote: On Tue, 2007-06-19 at 17:51 +0200, Jean-Marc Lasgouttes wrote: "Darren" == Darren Freeman <[EMAIL PROTECTED]> writes: Darren

Re: Can't enter extra whitespace when editing.

2007-06-20 Thread Helge Hafting
Darren Freeman wrote: On Wed, 2007-06-20 at 11:50 +0200, Helge Hafting wrote: I just checked that LyX 1.1.6fix4 and 1.3.7 didn't allow that. So, I would say that it has always been like that. I take your word for it, perhaps my memory is faulty. Still I think it would be nicer

Re: Can't enter extra whitespace when editing.

2007-06-20 Thread Darren Freeman
On Wed, 2007-06-20 at 11:50 +0200, Helge Hafting wrote: > >> I just checked that LyX 1.1.6fix4 and 1.3.7 didn't allow that. > >> So, I would say that it has always been like that. > >> > > > > I take your word for it, perhaps my memory is faulty. > > > > Still I think it would be nicer if the

farsi aspell

2007-06-20 Thread Mostafa Vahedi
Are you sure that the farsi aspell installation file for windows which is mentioned on the wiki page "http://wiki.lyx.org/Windows/Farsi"; is the latest one. It has an obvious bug. Mostafa - Sick sense of humor? Visit Yahoo! TV's Comedy with an Edge to see

Re: problems to show figures in LyX

2007-06-20 Thread Enrico Forestieri
On Wed, Jun 20, 2007 at 09:44:12AM +0100, José Matos wrote: > On Wednesday 20 June 2007 00:00:06 Enrico Forestieri wrote: > > The attached patch fixes it. José, OK to commit? > > The patch seems right. If you someone to test this and guarantee that it > works (no need to be a developer) it can

Re: [patch] bug 3764: Implicit \author field in .lyx files

2007-06-20 Thread Georg Baum
Michael Gerz wrote: > Pavel Sanda schrieb: >>> In contrary, my resources are limited at the moment. >>> >> >> the quick fix is below. >> > I think this is a good work-around for the time being (i.e. 1.5rc2). I don't think so, IMHO this hack causes more harm than good: It affects only new

Re: Can't enter extra whitespace when editing.

2007-06-20 Thread Helge Hafting
Darren Freeman wrote: On Wed, 2007-06-20 at 10:01 +0200, Enrico Forestieri wrote: On Wed, Jun 20, 2007 at 02:07:25PM +1000, Darren Freeman wrote: On Tue, 2007-06-19 at 17:51 +0200, Jean-Marc Lasgouttes wrote: "Darren" == Darren Freeman <[EMAIL PROTECTED]> writes:

character pairs such as parenthesis in Farsi (a patch)

2007-06-20 Thread Mostafa Vahedi
Currently (only) Unicode is used for Farsi as the input encoding. Moreover in Unicode the openning parenthesis is always the left one (independent of the language) I have modified the code to reverse the direction of the character-pairs when it wants to display the characters whenever the langua

Re: Can't enter extra whitespace when editing.

2007-06-20 Thread Darren Freeman
On Wed, 2007-06-20 at 10:01 +0200, Enrico Forestieri wrote: > On Wed, Jun 20, 2007 at 02:07:25PM +1000, Darren Freeman wrote: > > On Tue, 2007-06-19 at 17:51 +0200, Jean-Marc Lasgouttes wrote: > > > > "Darren" == Darren Freeman <[EMAIL PROTECTED]> writes: > > > > > > Darren> My point was that

Using LyX to Prepare Mixed Farsi-Arabic-English documents (Howto)

2007-06-20 Thread Mostafa Vahedi
Here I will explain how to adjust LyX to prepare mixed Farsi-Arabic-English documents (which is based on ARABI package). I have attached the Farsi translation of the file "example_lyxified.lyx" (that can be put in the directory "examples\fa\"). 1) the fontenc should be adjusted. There are two w

Re: problems to show figures in LyX

2007-06-20 Thread José Matos
On Wednesday 20 June 2007 00:00:06 Enrico Forestieri wrote: > The attached patch fixes it. José, OK to commit? The patch seems right. If you someone to test this and guarantee that it works (no need to be a developer) it can go in. > -- > Enrico -- José Abílio

Re: Can't enter extra whitespace when editing.

2007-06-20 Thread Enrico Forestieri
On Wed, Jun 20, 2007 at 02:07:25PM +1000, Darren Freeman wrote: > On Tue, 2007-06-19 at 17:51 +0200, Jean-Marc Lasgouttes wrote: > > > "Darren" == Darren Freeman <[EMAIL PROTECTED]> writes: > > > > Darren> My point was that in the past you could enter them and they > > Darren> would be removed