solved problem descried in bug report(ticket:6766) which related utf8-encoding text in lstlisting environment

2010-06-14 Thread l.f.hwang
hi all, recently I hava a problem to insert code in lstlisting environment of Lyx 2.0.0alpha2,which described in bug report: http://www.lyx.org/trac/ticket/6766 but it's so urgent for me to solve this problem out. so I have to dig into the source code of Lyx(the same rev as descried above), and

Re: Navigate to last paragraph of section

2010-06-14 Thread Vincent van Ravesteijn
I noticed the following three things: ParagraphList::iterator finish = start; ParagraphList::iterator const end = pars.end(); // Move out (down) from the section header to find last // paragraph in section if (finish != end) ++finish; int const thistoclevel = start-layout().toclevel; In

Some questions relating to Cursor MathAtom

2010-06-14 Thread Sidharth Kshatriya
Hi All, I'm a newbie currently trying to understand the LyX source. It would be awesome if someone could explain to me: * Conceptually what is an anchor in a Cursor? * What does it mean for an inset to be locked ? * What is dispatching in context of Cursors? Can you explain the concept of

Re: Some questions relating to Cursor MathAtom

2010-06-14 Thread Vincent van Ravesteijn
* Conceptually what is an anchor in a Cursor? The anchor is the starting point of a selection. If you have selected the word hello starting from the 'h' to the 'o', the anchor is positioned at 'h' and the cursor at 'o'. * What does it mean for an inset to be locked ? I've no idea, but

Re: Navigate to last paragraph of section

2010-06-14 Thread Guenter Milde
On 2010-06-14, Rob Oakes wrote: Specifically, I'd like to create an LFUN that allows me to quickly place = the cursor at the end of the last paragraph of the current section = (e.g., the paragraph before another section at the same toclevel). I = initially thought that I could use some of

Re: solved problem descried in bug report(ticket:6766) which related utf8-encoding text in lstlisting environment

2010-06-14 Thread Jürgen Spitzmüller
l.f.hwang wrote: as discussed above, it seems to be the latex package lstlisting handle utf8-enocoded text well. as I using Xetex now so it possible Xetex has some effort for it,but I have the time to research it. Unfortunately not. Listings cannot handle multibyte characters yet. Maybe XeTeX

Re: Upload cygwin binary to ftp.lyx.org.

2010-06-14 Thread Jürgen Spitzmüller
Bo Peng wrote: The official cygwin port of lyx has not been updated for a long time (mostly due to its lack of a qt4 port). I gathered some courage and built a cygwin binary for lyx 1.6.6. Can someone help me upload it to ftp://ftp.lyx.org/pub/lyx/bin/1.6.6.1/cygwin? I tried but could not

Re: Upload cygwin binary to ftp.lyx.org.

2010-06-14 Thread Liviu Andronic
(off-topic) On Mon, Jun 14, 2010 at 9:09 AM, Jürgen Spitzmüller sp...@lyx.org wrote: What do you mean by official? We do have a cygwin port for 1.6.6.1 from Enrico here: ftp://ftp.lyx.org/pub/lyx/bin/1.6.6.1/ I am curious: what would be the interest of using Cygwin when Windows binaries are

Re: [Patch] New version of Keytest.

2010-06-14 Thread Jean-Marc LASGOUTTES
John McCabe-Dansted gma...@gmail.com writes: I don't think we have discussed what the benefit of having keystest in-tree is. LyX can run without keytest, and keytest can be applied to software other than LyX, so it is not strongly coupled to LyX, and splitting it off would be a possibility. I

Re: [Patch] New version of Keytest.

2010-06-14 Thread Jean-Marc LASGOUTTES
John McCabe-Dansted gma...@gmail.com writes: I understand that with SVN you can easily give me access just to the keytest directory. Should we do that? I don't think there is much benefit to giving me write access out side that directory as I think at this stage I should run everything outside

Re: Upload cygwin binary to ftp.lyx.org.

2010-06-14 Thread Bo Peng
What do you mean by official? We do have a cygwin port for 1.6.6.1 from Enrico here: ftp://ftp.lyx.org/pub/lyx/bin/1.6.6.1/ Official means that users can use the cygwin setup tool to install lyx, which is much easier. It has to use cygwin/qt4 so it uses X instead of qt4/win32. In this sense,

Re: Upload cygwin binary to ftp.lyx.org.

2010-06-14 Thread Bo Peng
I am curious: what would be the interest of using Cygwin when Windows binaries are readily available? For Linux users (who have to use windows), cygwin provides an integrated working environment that can be more comfortable to use. For example, they can have a real shell with bash, subversion,

Re: Wish to understand DocIterator class + Willing to Volunteer to document LyX internals

2010-06-14 Thread Pavel Sanda
Sidharth Kshatriya wrote: I find the source code very lightly commented unfortunately. Even if every class had a 3-4 lines describing what it did, it would have been great. It would be wonderful if some more human commenting of each class were part of the goals of the 2.0 version. Even a

Re: spreadsheet capability?

2010-06-14 Thread Helge Hafting
On 29. mai 2010 01:56, Pavel Sanda wrote: Liviu Andronic wrote: On Fri, May 28, 2010 at 8:23 PM, Guenter Mildemi...@users.berlios.de wrote: However, the Gnumeric spreadsheet has a LaTeX export feature, so one could possibly write an external inset wrapper for it. Apparently there is a patch

Re: show the lyx code

2010-06-14 Thread Helge Hafting
On 07. juni 2010 13:45, Vincent van Ravesteijn wrote: Well why not instead of displaying the latex source display directly the LyX source and allow it to be edited and then to be reloaded. Would such a solution be easier to implement? Why would anyone want to edit the LyX source (in LyX) ?

Re: Some questions relating to Cursor MathAtom

2010-06-14 Thread Richard Heck
On 6/14/10 3:12 AM, Vincent van Ravesteijn wrote: * What does it mean for an inset to be locked ? I've no idea, but according to the comment: /// returns whether changing mode during latex export is forbidden. I.e., whether we can switch between math mode and text mode. Confusing,

Re: Navigate to last paragraph of section

2010-06-14 Thread Richard Heck
On 6/14/10 3:23 AM, Guenter Milde wrote: On 2010-06-14, Rob Oakes wrote: Specifically, I'd like to create an LFUN that allows me to quickly place = the cursor at the end of the last paragraph of the current section = (e.g., the paragraph before another section at the same toclevel). I =

Re: Upload cygwin binary to ftp.lyx.org.

2010-06-14 Thread Jürgen Spitzmüller
Bo Peng wrote: Official means that users can use the cygwin setup tool to install lyx, which is much easier. It has to use cygwin/qt4 so it uses X instead of qt4/win32. In this sense, this version will be less useful than Enrico's. So does it make sense to have your version _besides_

Possible branch-inset improvements

2010-06-14 Thread Pavel Sanda
hi, would you find it a good idea to enhance branch insets in the following way ? 1. add possibility to define pre-post latex commands for a branch which would be inserted just before/after each branch inset? 2. different collapsed branches can't be visually distinguished. what about

Re: Possible branch-inset improvements

2010-06-14 Thread Vincent van Ravesteijn
would you find it a good idea to enhance branch insets in the following way ? 1. add possibility to define pre-post latex commands for a branch   which would be inserted just before/after each branch inset? No. 2. different collapsed branches can't be visually distinguished.   what about

Re: Some questions relating to Cursor MathAtom

2010-06-14 Thread Andre Poenitz
On Mon, Jun 14, 2010 at 09:12:51AM +0200, Vincent van Ravesteijn wrote: * Conceptually what is an anchor in a Cursor? The anchor is the starting point of a selection. If you have selected the word hello starting from the 'h' to the 'o', the anchor is positioned at 'h' and the cursor at 'o'.

Re: Navigate to last paragraph of section

2010-06-14 Thread Rob Oakes
Dear Vincent, Guenter and Richard, Thank you for the recommendations and feedback. Following your suggestions, I made several changes that have resolved a few of the problems (specifically, the LFUN no longer crashes LyX every time it gets clicked on). I still make use of a for loop to find

Re: r34656 - lyx-devel/trunk/src

2010-06-14 Thread Vincent van Ravesteijn
Op 14-6-2010 21:33, sw...@lyx.org schreef: Author: switt Date: Mon Jun 14 21:33:43 2010 New Revision: 34656 URL: http://www.lyx.org/trac/changeset/34656 + return 0 == m.config ? 0 : to_aspell_speller(m.e_speller); return m.config ? to_aspell_speller(m.e_speller) : 0; ?? Vincent

Re: r34656 - lyx-devel/trunk/src

2010-06-14 Thread Stephan Witt
Am 14.06.2010 um 21:40 schrieb Vincent van Ravesteijn: Op 14-6-2010 21:33, sw...@lyx.org schreef: Author: switt Date: Mon Jun 14 21:33:43 2010 New Revision: 34656 URL: http://www.lyx.org/trac/changeset/34656 +return 0 == m.config ? 0 : to_aspell_speller(m.e_speller); return

Re: Possible branch-inset improvements

2010-06-14 Thread Pavel Sanda
Vincent van Ravesteijn wrote: would you find it a good idea to enhance branch insets in the following way ? 1. add possibility to define pre-post latex commands for a branch   which would be inserted just before/after each branch inset? No. pity. what would be your solution to the

Re: Possible branch-inset improvements

2010-06-14 Thread Vincent van Ravesteijn
would you find it a good idea to enhance branch insets in the following way ? 1. add possibility to define pre-post latex commands for a branch which would be inserted just before/after each branch inset? No. pity. what would be your solution to the problem of having

Re: r34656 - lyx-devel/trunk/src

2010-06-14 Thread Pavel Sanda
Stephan Witt wrote: Author: switt Date: Mon Jun 14 21:33:43 2010 New Revision: 34656 URL: http://www.lyx.org/trac/changeset/34656 + return 0 == m.config ? 0 : to_aspell_speller(m.e_speller); return m.config ? to_aspell_speller(m.e_speller) : 0; ?? Agreed. I'll change

Re: r34656 - lyx-devel/trunk/src

2010-06-14 Thread Vincent van Ravesteijn
Op 14-6-2010 23:40, Pavel Sanda schreef: Stephan Witt wrote: Author: switt Date: Mon Jun 14 21:33:43 2010 New Revision: 34656 URL: http://www.lyx.org/trac/changeset/34656 + return 0 == m.config ? 0 : to_aspell_speller(m.e_speller); return m.config ?

Re: Upload cygwin binary to ftp.lyx.org.

2010-06-14 Thread Enrico Forestieri
On Mon, Jun 14, 2010 at 07:45:39AM -0500, Bo Peng wrote: I am curious: what would be the interest of using Cygwin when Windows binaries are readily available? For Linux users (who have to use windows), cygwin provides an integrated working environment that can be more comfortable to use.

Re: Upload cygwin binary to ftp.lyx.org.

2010-06-14 Thread Enrico Forestieri
On Mon, Jun 14, 2010 at 07:36:44AM -0500, Bo Peng wrote: What do you mean by official? We do have a cygwin port for 1.6.6.1 from Enrico here: ftp://ftp.lyx.org/pub/lyx/bin/1.6.6.1/ Official means that users can use the cygwin setup tool to install lyx, which is much easier. Well, the

Re: spreadsheet capability?

2010-06-14 Thread Pavel Sanda
Helge Hafting wrote: please do you have any idea whether is safe to use blindly ssconvert or gnumeric in the sense that attacker can't write eg some excel macro-virus which would get executed via ssconvert or gnumeric? I don't know if ssconvert supports excel macros well enough to run a

Re: r34656 - lyx-devel/trunk/src

2010-06-14 Thread Pavel Sanda
Vincent van Ravesteijn wrote: or you may want to test it before releasing it ;)..and put it in a5. tested it now and it works well (even quite fast here), so i'm not going to wait any longer. pavel

Re: alpha4

2010-06-14 Thread Pavel Sanda
Pavel Sanda wrote: hi, i plan to release alpha4 next week. anything you would like to have in before? as usual the highest priority bugs are showstoppers. tarballs are on their usual place. i will announce it on the lists later. we seem to have fullscreen problem in qt 4.7, anybody around

solved problem descried in bug report(ticket:6766) which related utf8-encoding text in lstlisting environment

2010-06-14 Thread l.f.hwang
hi all, recently I hava a problem to insert code in lstlisting environment of Lyx 2.0.0alpha2,which described in bug report: http://www.lyx.org/trac/ticket/6766 but it's so urgent for me to solve this problem out. so I have to dig into the source code of Lyx(the same rev as descried above), and

Re: Navigate to last paragraph of section

2010-06-14 Thread Vincent van Ravesteijn
I noticed the following three things: >ParagraphList::iterator finish = start; >ParagraphList::iterator const end = pars.end(); >// Move out (down) from the section header to find last >// paragraph in section >if (finish != end) > ++finish; >int const thistoclevel =

Some questions relating to Cursor & MathAtom

2010-06-14 Thread Sidharth Kshatriya
Hi All, I'm a newbie currently trying to understand the LyX source. It would be awesome if someone could explain to me: * Conceptually what is an anchor in a Cursor? * What does it mean for an inset to be "locked" ? * What is "dispatching" in context of Cursors? Can you explain the concept of

Re: Some questions relating to Cursor & MathAtom

2010-06-14 Thread Vincent van Ravesteijn
> * Conceptually what is an anchor in a Cursor? The anchor is the starting point of a selection. If you have selected the word "hello" starting from the 'h' to the 'o', the anchor is positioned at 'h' and the cursor at 'o'. > * What does it mean for an inset to be "locked" ? I've no idea, but

Re: Navigate to last paragraph of section

2010-06-14 Thread Guenter Milde
On 2010-06-14, Rob Oakes wrote: > Specifically, I'd like to create an LFUN that allows me to quickly place = > the cursor at the end of the last paragraph of the current section = > (e.g., the paragraph before another section at the same toclevel). I = > initially thought that I could use some

Re: solved problem descried in bug report(ticket:6766) which related utf8-encoding text in lstlisting environment

2010-06-14 Thread Jürgen Spitzmüller
l.f.hwang wrote: > as discussed above, it seems to be the latex package lstlisting handle > utf8-enocoded text well. as I using Xetex now so it possible Xetex has > some effort for it,but I have the time to research it. Unfortunately not. Listings cannot handle multibyte characters yet. Maybe

Re: Upload cygwin binary to ftp.lyx.org.

2010-06-14 Thread Jürgen Spitzmüller
Bo Peng wrote: > The official cygwin port of lyx has not been updated for a long time > (mostly due to its lack of a qt4 port). I gathered some courage and > built a cygwin binary for lyx 1.6.6. Can someone help me upload it to > ftp://ftp.lyx.org/pub/lyx/bin/1.6.6.1/cygwin? I tried but could not

Re: Upload cygwin binary to ftp.lyx.org.

2010-06-14 Thread Liviu Andronic
(off-topic) On Mon, Jun 14, 2010 at 9:09 AM, Jürgen Spitzmüller wrote: > What do you mean by "official"? We do have a cygwin port for 1.6.6.1 from > Enrico here: > > ftp://ftp.lyx.org/pub/lyx/bin/1.6.6.1/ > I am curious: what would be the interest of using Cygwin when Windows

Re: [Patch] New version of Keytest.

2010-06-14 Thread Jean-Marc LASGOUTTES
John McCabe-Dansted writes: > I don't think we have discussed what the benefit of having keystest > in-tree is. LyX can run without keytest, and keytest can be applied to > software other than LyX, so it is not strongly coupled to LyX, and > splitting it off would be a

Re: [Patch] New version of Keytest.

2010-06-14 Thread Jean-Marc LASGOUTTES
John McCabe-Dansted writes: > I understand that with SVN you can easily give me access just to the > keytest directory. Should we do that? I don't think there is much > benefit to giving me write access out side that directory as I think > at this stage I should run everything

Re: Upload cygwin binary to ftp.lyx.org.

2010-06-14 Thread Bo Peng
> What do you mean by "official"? We do have a cygwin port for 1.6.6.1 from > Enrico here: > > ftp://ftp.lyx.org/pub/lyx/bin/1.6.6.1/ Official means that users can use the cygwin setup tool to install lyx, which is much easier. It has to use cygwin/qt4 so it uses X instead of qt4/win32. In this

Re: Upload cygwin binary to ftp.lyx.org.

2010-06-14 Thread Bo Peng
> I am curious: what would be the interest of using Cygwin when Windows > binaries are readily available? For Linux users (who have to use windows), cygwin provides an integrated working environment that can be more comfortable to use. For example, they can have a real shell with bash,

Re: Wish to understand DocIterator class + Willing to Volunteer to document LyX internals

2010-06-14 Thread Pavel Sanda
Sidharth Kshatriya wrote: > > I find the source code very lightly commented unfortunately. Even if every > > class had a 3-4 lines describing what it did, it would have been great. It > > would be wonderful if some more human commenting of each class were part of > > the goals of the 2.0 version.

Re: spreadsheet capability?

2010-06-14 Thread Helge Hafting
On 29. mai 2010 01:56, Pavel Sanda wrote: Liviu Andronic wrote: On Fri, May 28, 2010 at 8:23 PM, Guenter Milde wrote: However, the Gnumeric spreadsheet has a LaTeX export feature, so one could possibly write an "external inset" wrapper for it. Apparently there is a

Re: show the lyx code

2010-06-14 Thread Helge Hafting
On 07. juni 2010 13:45, Vincent van Ravesteijn wrote: Well why not instead of displaying the "latex source" display directly the LyX source and allow it to be edited and then to be reloaded. Would such a solution be easier to implement? Why would anyone want to edit the LyX source (in LyX) ?

Re: Some questions relating to Cursor & MathAtom

2010-06-14 Thread Richard Heck
On 6/14/10 3:12 AM, Vincent van Ravesteijn wrote: * What does it mean for an inset to be "locked" ? I've no idea, but according to the comment: "/// returns whether changing mode during latex export is forbidden". I.e., whether we can switch between math mode and text mode.

Re: Navigate to last paragraph of section

2010-06-14 Thread Richard Heck
On 6/14/10 3:23 AM, Guenter Milde wrote: On 2010-06-14, Rob Oakes wrote: Specifically, I'd like to create an LFUN that allows me to quickly place = the cursor at the end of the last paragraph of the current section = (e.g., the paragraph before another section at the same toclevel). I =

Re: Upload cygwin binary to ftp.lyx.org.

2010-06-14 Thread Jürgen Spitzmüller
Bo Peng wrote: > Official means that users can use the cygwin setup tool to install > lyx, which is much easier. It has to use cygwin/qt4 so it uses X > instead of qt4/win32. In this sense, this version will be less useful > than Enrico's. So does it make sense to have your version _besides_

Possible branch-inset improvements

2010-06-14 Thread Pavel Sanda
hi, would you find it a good idea to enhance branch insets in the following way ? 1. add possibility to define pre-post latex commands for a branch which would be inserted just before/after each branch inset? 2. different collapsed branches can't be visually distinguished. what about

Re: Possible branch-inset improvements

2010-06-14 Thread Vincent van Ravesteijn
> would you find it a good idea to enhance branch insets in the following > way ? > > 1. add possibility to define pre-post latex commands for a branch >   which would be inserted just before/after each branch inset? > No. > 2. different collapsed branches can't be visually distinguished. >  

Re: Some questions relating to Cursor & MathAtom

2010-06-14 Thread Andre Poenitz
On Mon, Jun 14, 2010 at 09:12:51AM +0200, Vincent van Ravesteijn wrote: > > * Conceptually what is an anchor in a Cursor? > > The anchor is the starting point of a selection. If you have selected > the word "hello" starting from the 'h' to the 'o', the anchor is > positioned at 'h' and the cursor

Re: Navigate to last paragraph of section

2010-06-14 Thread Rob Oakes
Dear Vincent, Guenter and Richard, Thank you for the recommendations and feedback. Following your suggestions, I made several changes that have resolved a few of the problems (specifically, the LFUN no longer crashes LyX every time it gets clicked on). I still make use of a for loop to find

Re: r34656 - lyx-devel/trunk/src

2010-06-14 Thread Vincent van Ravesteijn
Op 14-6-2010 21:33, sw...@lyx.org schreef: Author: switt Date: Mon Jun 14 21:33:43 2010 New Revision: 34656 URL: http://www.lyx.org/trac/changeset/34656 + return 0 == m.config ? 0 : to_aspell_speller(m.e_speller); return m.config ? to_aspell_speller(m.e_speller) : 0; ?? Vincent

Re: r34656 - lyx-devel/trunk/src

2010-06-14 Thread Stephan Witt
Am 14.06.2010 um 21:40 schrieb Vincent van Ravesteijn: > Op 14-6-2010 21:33, sw...@lyx.org schreef: >> Author: switt >> Date: Mon Jun 14 21:33:43 2010 >> New Revision: 34656 >> URL: http://www.lyx.org/trac/changeset/34656 >> >> >> +return 0 == m.config ? 0 : to_aspell_speller(m.e_speller);

Re: Possible branch-inset improvements

2010-06-14 Thread Pavel Sanda
Vincent van Ravesteijn wrote: > > would you find it a good idea to enhance branch insets in the following > > way ? > > > > 1. add possibility to define pre-post latex commands for a branch > >   which would be inserted just before/after each branch inset? > > > > No. pity. what would be your

Re: Possible branch-inset improvements

2010-06-14 Thread Vincent van Ravesteijn
would you find it a good idea to enhance branch insets in the following way ? 1. add possibility to define pre-post latex commands for a branch which would be inserted just before/after each branch inset? No. pity. what would be your solution to the problem of having

Re: r34656 - lyx-devel/trunk/src

2010-06-14 Thread Pavel Sanda
Stephan Witt wrote: > >> Author: switt > >> Date: Mon Jun 14 21:33:43 2010 > >> New Revision: 34656 > >> URL: http://www.lyx.org/trac/changeset/34656 > >> > >> > >> + return 0 == m.config ? 0 : to_aspell_speller(m.e_speller); > >> > > > > return m.config ? to_aspell_speller(m.e_speller) : 0;

Re: r34656 - lyx-devel/trunk/src

2010-06-14 Thread Vincent van Ravesteijn
Op 14-6-2010 23:40, Pavel Sanda schreef: Stephan Witt wrote: Author: switt Date: Mon Jun 14 21:33:43 2010 New Revision: 34656 URL: http://www.lyx.org/trac/changeset/34656 + return 0 == m.config ? 0 : to_aspell_speller(m.e_speller); return m.config ?

Re: Upload cygwin binary to ftp.lyx.org.

2010-06-14 Thread Enrico Forestieri
On Mon, Jun 14, 2010 at 07:45:39AM -0500, Bo Peng wrote: > > I am curious: what would be the interest of using Cygwin when Windows > > binaries are readily available? > > For Linux users (who have to use windows), cygwin provides an > integrated working environment that can be more comfortable

Re: Upload cygwin binary to ftp.lyx.org.

2010-06-14 Thread Enrico Forestieri
On Mon, Jun 14, 2010 at 07:36:44AM -0500, Bo Peng wrote: > > What do you mean by "official"? We do have a cygwin port for 1.6.6.1 from > > Enrico here: > > > > ftp://ftp.lyx.org/pub/lyx/bin/1.6.6.1/ > > Official means that users can use the cygwin setup tool to install > lyx, which is much

Re: spreadsheet capability?

2010-06-14 Thread Pavel Sanda
Helge Hafting wrote: >> please do you have any idea whether is safe to use blindly ssconvert or >> gnumeric >> in the sense that attacker can't write eg some excel macro-virus which >> would >> get executed via ssconvert or gnumeric? >> > I don't know if ssconvert supports excel macros well

Re: r34656 - lyx-devel/trunk/src

2010-06-14 Thread Pavel Sanda
Vincent van Ravesteijn wrote: >or you may want to test it before releasing it ;)..and put it in a5. tested it now and it works well (even quite fast here), so i'm not going to wait any longer. pavel

Re: alpha4

2010-06-14 Thread Pavel Sanda
Pavel Sanda wrote: > hi, > > i plan to release alpha4 next week. anything you would like to > have in before? as usual the highest priority bugs are showstoppers. tarballs are on their usual place. i will announce it on the lists later. > we seem to have fullscreen problem in qt 4.7, anybody