Re: Should I add this to lstrings.[Ch]?

2003-09-25 Thread Andre Poenitz
On Wed, Sep 24, 2003 at 06:40:37PM +, Angus Leeming wrote: string output = subst(lowercase(input), $$rotatebegin, \\rotatebox[30]{); because I want to match the placeholder $$rotatebegin only and don't care about it being upper or

Re: Should I add this to lstrings.[Ch]?

2003-09-25 Thread Andre Poenitz
On Wed, Sep 24, 2003 at 07:20:52PM +, Angus Leeming wrote: My take is that you should do the whole thing with just a subst (no lowercase things at all.) Then this differs from other places where we use key words. The whole of lyxlex for example is insensitive to the case of its

Re: Should I add this to lstrings.[Ch]?

2003-09-25 Thread Jean-Marc Lasgouttes
Lars == Lars Gullik Bjønnes [EMAIL PROTECTED] writes: Lars Yes. And I really want to change that. IMHO our language Lars should be case sensitive. I am not sure if Jean-Marc still Lars agrees with this, but he did once upon a time. I still agree with that. Let's keep things simple. JMarc

lyx 1.3.2: xpm files

2003-09-25 Thread Hartmut Haase
Why can some xpm files like /usr/share/lyx/images/depth-increment.xpm or /usr/share/lyx/images/math/sqrt.xpm be seen in LyX AND xdvi/gv/acroread and other like /usr/share/lyx/images/font-noun.xpm or /usr/share/lyx/images/math/blacktriangle.xpm ONLY in LyX? -- Regards, Hartmut Hungerhilfe:

Re: lyx 1.3.2: xpm files

2003-09-25 Thread Angus Leeming
Hartmut Haase wrote: Why can some xpm files like /usr/share/lyx/images/depth-increment.xpm or /usr/share/lyx/images/math/sqrt.xpm be seen in LyX AND xdvi/gv/acroread and other like /usr/share/lyx/images/font-noun.xpm or /usr/share/lyx/images/math/blacktriangle.xpm ONLY in LyX? Because

Re: boostifying DebugStream

2003-09-25 Thread Angus Leeming
Lars Gullik Bjønnes wrote: Grrr. We just had a mini powercut that hosed the message I was writing. Try 2. Dunno, why, but all your attachements are unnamed, so it's hard to refer to them. Also, they all come with mome-type application/octet-stream. Why not some text format? Anyway... File

Re: boostifying DebugStream

2003-09-25 Thread Lars Gullik Bjønnes
Angus Leeming [EMAIL PROTECTED] writes: | Lars Gullik Bjønnes wrote: | Grrr. We just had a mini powercut that hosed the message I was writing. | Try 2. | Dunno, why, but all your attachements are unnamed, so it's hard to refer to | them. Also, they all come with mome-type

Re: boostifying DebugStream

2003-09-25 Thread Angus Leeming
Lars Gullik Bjønnes wrote: The teebuf has been there forever :-) Just unused. Why master/slave? Well only master is listened to when it comes to error conditions and return values. The slave just tags along. I don't want the teebuf to _ever_ handle more than two streambufs, so no need

Re: boostifying DebugStream

2003-09-25 Thread Lars Gullik Bjønnes
Angus Leeming [EMAIL PROTECTED] writes: | Lars Gullik Bjønnes wrote: The teebuf has been there forever :-) Just unused. Why master/slave? Well only master is listened to when it comes to error conditions and return values. The slave just tags along. I don't want the teebuf to _ever_

Re: boostifying DebugStream

2003-09-25 Thread Angus Leeming
Lars Gullik Bjønnes wrote: but they are not of equal importance. (even if I'd like them to be...) Perhaps master and slave is the wrong names, but they should be differently named. (primary,secondary?) primary, secondary is better. But I still don't get it. std::ofstream

Re: boostifying DebugStream

2003-09-25 Thread Lars Gullik Bjønnes
Angus Leeming [EMAIL PROTECTED] writes: | Lars Gullik Bjønnes wrote: but they are not of equal importance. (even if I'd like them to be...) Perhaps master and slave is the wrong names, but they should be differently named. (primary,secondary?) | primary, secondary is better. | But I still

Re: boostifying DebugStream

2003-09-25 Thread Angus Leeming
Lars Gullik Bjønnes wrote: | This sends output to the file and to stderr. There is no concept of | importance here at all. if you look at the implementation there is. In this case it is hte ofs2's return values that are used for error handling (and discovery). Got it! Thank you. I'd missed

LyX one dot three dot three

2003-09-25 Thread Jean-Marc Lasgouttes
I have tagged LyX 1.3.3 and uploaded the various bits to ftp.lyx.org. I will make the actual announcement tomorrow (unless something ugly surfaces). JMarc

support::regexMatch

2003-09-25 Thread Angus Leeming
This started off as a simple question about this code in support/lstrings.[Ch]: /** Compares a string and a (simple) regular expression * The only element allowed is * for any string of characters */ bool regexMatch(string const a, string const pattern); bool regexMatch(string const a,

Re: support::regexMatch

2003-09-25 Thread Jean-Marc Lasgouttes
Angus == Angus Leeming [EMAIL PROTECTED] writes: Angus The only place it is used is filetools.C Angus (ReplaceEnvironmentPath) and here the shit really hits the fan. This function is completely broken, and actually kills LyX when you try to use it (we are lucky that nobody uses it, but it would

Re: lyx 1.3.2: xpm files

2003-09-25 Thread Jean-Marc Lasgouttes
Angus == Angus Leeming [EMAIL PROTECTED] writes: Angus Hartmut Haase wrote: Why can some xpm files like /usr/share/lyx/images/depth-increment.xpm or /usr/share/lyx/images/math/sqrt.xpm be seen in LyX AND xdvi/gv/acroread and other like /usr/share/lyx/images/font-noun.xpm or

Re: support::regexMatch

2003-09-25 Thread Angus Leeming
Jean-Marc Lasgouttes wrote: Angus == Angus Leeming [EMAIL PROTECTED] writes: Angus The only place it is used is filetools.C Angus (ReplaceEnvironmentPath) and here the shit really hits the fan. This function is completely broken, and actually kills LyX when you try to use it (we are

Re: lyx 1.3.2: xpm files

2003-09-25 Thread Angus Leeming
Jean-Marc Lasgouttes wrote: It would be nice to change our xpms so that this works consistently. I am not sure though what is the best tool to do that... A shell script... (probably) sed -n 's/^\( *[]*c *#\)\([0-9]\{4\}\)\([0-9]\{4\}\)\([0-9]\{4\}\) * *, *$/\1 \2 \3 \4/p'

Re: lyx 1.3.2: xpm files

2003-09-25 Thread Andre Poenitz
On Thu, Sep 25, 2003 at 04:52:14PM +, Angus Leeming wrote: Ahhh. I could take each \([0-9]\{4\}\) block and split it into two: \([0-9]\{2\}\)\([0-9]\{2\}\) \([0-9][0-9]\) is simpler to understand for the casual reader and not longer. Andre' -- Those who desire to give up

Re: lyx 1.3.2: xpm files

2003-09-25 Thread Angus Leeming
On Thursday 25 September 2003 3:56 pm, Andre Poenitz wrote: On Thu, Sep 25, 2003 at 04:52:14PM +, Angus Leeming wrote: Ahhh. I could take each \([0-9]\{4\}\) block and split it into two: \([0-9]\{2\}\)\([0-9]\{2\}\) \([0-9][0-9]\) is simpler to understand for the casual

Re: lyx 1.3.2: xpm files

2003-09-25 Thread Andre Poenitz
On Thu, Sep 25, 2003 at 05:05:07PM +, Angus Leeming wrote: On Thursday 25 September 2003 3:56 pm, Andre Poenitz wrote: On Thu, Sep 25, 2003 at 04:52:14PM +, Angus Leeming wrote: Ahhh. I could take each \([0-9]\{4\}\) block and split it into two: \([0-9]\{2\}\)\([0-9]\{2\}\)

Re: support::regexMatch

2003-09-25 Thread Stephan Witt
Angus Leeming wrote: Jean-Marc Lasgouttes wrote: Angus == Angus Leeming [EMAIL PROTECTED] writes: [snip] That being the case, this works, but isn't strict enough, allowing 'nested' stuff like this hypothetical example: $ x=M $ echo ${HO${x}E} /home/angus The real shell won't allow this. Just

Re: lyx 1.3.2: xpm files

2003-09-25 Thread Angus Leeming
Andre Poenitz wrote: Ok. But is the idea valid? 1234 - 12 Why not? Done that. Next question: given an rbg.txt database 240 240 240 grey94 242 242 242 gray95 how do I create the appropriate #rrggbb entry from the shell? -- Angus

Re: lyx 1.3.2: xpm files

2003-09-25 Thread Angus Leeming
Angus Leeming wrote: Next question: given an rbg.txt database 240 240 240 grey94 242 242 242 gray95 how do I create the appropriate #rrggbb entry from the shell? Doh! $ printf '%x\n' 240 f0 $ -- Angus

Re: lyx 1.3.2: xpm files

2003-09-25 Thread Angus Leeming
Jean-Marc Lasgouttes wrote: It would be nice to change our xpms so that this works consistently. I am not sure though what is the best tool to do that... A bit slow (about an hour ;-) but looks successful. 472 files changed in the 1.4 tree. -- Angus xpm_cleanup.sh Description:

Rewrite of ReplaceEnvironmentPath

2003-09-25 Thread Angus Leeming
I've rewritten ReplaceEnvironmentPath in a sane manner and got rid of lstrings.[Ch] regexMatch because nothing was using it. I've tested this by inserting a LyX file into the buffer (calling BufferView_pimpl.C's MenuInsertLyXFile which in turn calls support::FileSearch which in turn calls

Re: Rewrite of ReplaceEnvironmentPath

2003-09-25 Thread Angus Leeming
Angus Leeming wrote: I have committed this. Please report any failures. (Don't worry, I didn't commit lib/external_templates which somehow made its way into the diff.) -- Angus

Re: LyX one dot three dot three

2003-09-25 Thread John Levon
On Thu, Sep 25, 2003 at 04:48:29PM +0200, Jean-Marc Lasgouttes wrote: I have tagged LyX 1.3.3 and uploaded the various bits to ftp.lyx.org. RH8.0 RPMs in incoming/ They depend on latex-xft-fonts, naturally. regards john -- Khendon's Law: If the same point is made twice by the same person,

table desing flaws in lyx / possible improvements (was: longtable caption again)

2003-09-25 Thread j.heidemeier
H. Voss schrieb: j.heidemeier schrieb: At the moment longtables really suck :-(. yesss ... :-) Write the whole longtable in pure LaTeX code into a single file (not as LyX file, only text). Then you can use in an esay way a caption. In Lyx do a Insert-file Well, that is only a short term

Re: Should I add this to lstrings.[Ch]?

2003-09-25 Thread Andre Poenitz
On Wed, Sep 24, 2003 at 06:40:37PM +, Angus Leeming wrote: > > string output = subst(lowercase(input), "$$rotatebegin", > > "\\rotatebox[30]{"); > > because I want to match the placeholder "$$rotatebegin" only and don't care > about it being

Re: Should I add this to lstrings.[Ch]?

2003-09-25 Thread Andre Poenitz
On Wed, Sep 24, 2003 at 07:20:52PM +, Angus Leeming wrote: > > My take is that you should do the whole thing with just a subst (no > > lowercase things at all.) > > Then this differs from other places where we use key words. The whole of > lyxlex for example is insensitive to the case of its

Re: Should I add this to lstrings.[Ch]?

2003-09-25 Thread Jean-Marc Lasgouttes
> "Lars" == Lars Gullik Bjønnes <[EMAIL PROTECTED]> writes: Lars> Yes. And I really want to change that. IMHO our "language" Lars> should be case sensitive. I am not sure if Jean-Marc still Lars> agrees with this, but he did once upon a time. I still agree with that. Let's keep things

lyx 1.3.2: xpm files

2003-09-25 Thread Hartmut Haase
Why can some xpm files like /usr/share/lyx/images/depth-increment.xpm or /usr/share/lyx/images/math/sqrt.xpm be seen in LyX AND xdvi/gv/acroread and other like /usr/share/lyx/images/font-noun.xpm or /usr/share/lyx/images/math/blacktriangle.xpm ONLY in LyX? -- Regards, Hartmut Hungerhilfe:

Re: lyx 1.3.2: xpm files

2003-09-25 Thread Angus Leeming
Hartmut Haase wrote: > Why can some xpm files like > /usr/share/lyx/images/depth-increment.xpm or > /usr/share/lyx/images/math/sqrt.xpm be seen in LyX AND xdvi/gv/acroread > and other like > /usr/share/lyx/images/font-noun.xpm or > /usr/share/lyx/images/math/blacktriangle.xpm > ONLY in LyX?

Re: boostifying DebugStream

2003-09-25 Thread Angus Leeming
Lars Gullik Bjønnes wrote: Grrr. We just had a mini powercut that hosed the message I was writing. Try 2. Dunno, why, but all your attachements are unnamed, so it's hard to refer to them. Also, they all come with mome-type application/octet-stream. Why not some text format? Anyway... File

Re: boostifying DebugStream

2003-09-25 Thread Lars Gullik Bjønnes
Angus Leeming <[EMAIL PROTECTED]> writes: | Lars Gullik Bjønnes wrote: | Grrr. We just had a mini powercut that hosed the message I was writing. | Try 2. > | Dunno, why, but all your attachements are unnamed, so it's hard to refer to | them. Also, they all come with mome-type

Re: boostifying DebugStream

2003-09-25 Thread Angus Leeming
Lars Gullik Bjønnes wrote: > The teebuf has been there forever :-) > Just unused. > > Why master/slave? Well only master is listened to when it comes to > error conditions and return values. The slave just tags along. > > I don't want the teebuf to _ever_ handle more than two streambufs, so > no

Re: boostifying DebugStream

2003-09-25 Thread Lars Gullik Bjønnes
Angus Leeming <[EMAIL PROTECTED]> writes: | Lars Gullik Bjønnes wrote: >> The teebuf has been there forever :-) >> Just unused. >> >> Why master/slave? Well only master is listened to when it comes to >> error conditions and return values. The slave just tags along. >> >> I don't want the

Re: boostifying DebugStream

2003-09-25 Thread Angus Leeming
Lars Gullik Bjønnes wrote: > but they are not of equal importance. > (even if I'd like them to be...) > Perhaps master and slave is the wrong names, but they should be > differently named. (primary,secondary?) primary, secondary is better. But I still don't get it. std::ofstream

Re: boostifying DebugStream

2003-09-25 Thread Lars Gullik Bjønnes
Angus Leeming <[EMAIL PROTECTED]> writes: | Lars Gullik Bjønnes wrote: > >> but they are not of equal importance. >> (even if I'd like them to be...) >> Perhaps master and slave is the wrong names, but they should be >> differently named. (primary,secondary?) > | primary, secondary is better. > |

Re: boostifying DebugStream

2003-09-25 Thread Angus Leeming
Lars Gullik Bjønnes wrote: > | This sends output to the file and to stderr. There is no concept of > | importance here at all. > > if you look at the implementation there is. In this case it is hte > ofs2's return values that are used for error handling (and discovery). Got it! Thank you. I'd

LyX one dot three dot three

2003-09-25 Thread Jean-Marc Lasgouttes
I have tagged LyX 1.3.3 and uploaded the various bits to ftp.lyx.org. I will make the actual announcement tomorrow (unless something ugly surfaces). JMarc

support::regexMatch

2003-09-25 Thread Angus Leeming
This started off as a simple question about this code in support/lstrings.[Ch]: /** Compares a string and a (simple) regular expression * The only element allowed is "*" for any string of characters */ bool regexMatch(string const & a, string const & pattern); bool regexMatch(string const &

Re: support::regexMatch

2003-09-25 Thread Jean-Marc Lasgouttes
> "Angus" == Angus Leeming <[EMAIL PROTECTED]> writes: Angus> The only place it is used is filetools.C Angus> (ReplaceEnvironmentPath) and here the shit really hits the fan. This function is completely broken, and actually kills LyX when you try to use it (we are lucky that nobody uses it,

Re: lyx 1.3.2: xpm files

2003-09-25 Thread Jean-Marc Lasgouttes
> "Angus" == Angus Leeming <[EMAIL PROTECTED]> writes: Angus> Hartmut Haase wrote: >> Why can some xpm files like >> /usr/share/lyx/images/depth-increment.xpm or >> /usr/share/lyx/images/math/sqrt.xpm be seen in LyX AND >> xdvi/gv/acroread and other like /usr/share/lyx/images/font-noun.xpm >>

Re: support::regexMatch

2003-09-25 Thread Angus Leeming
Jean-Marc Lasgouttes wrote: >> "Angus" == Angus Leeming <[EMAIL PROTECTED]> writes: > > Angus> The only place it is used is filetools.C > Angus> (ReplaceEnvironmentPath) and here the shit really hits the fan. > > This function is completely broken, and actually kills LyX when you > try to

Re: lyx 1.3.2: xpm files

2003-09-25 Thread Angus Leeming
Jean-Marc Lasgouttes wrote: > It would be nice to change our xpms so that this works consistently. I > am not sure though what is the best tool to do that... A shell script... (probably) sed -n 's/^\( *"[]*c *#\)\([0-9]\{4\}\)\([0-9]\{4\}\)\([0-9]\{4\}\) *" *, *$/\1 \2 \3 \4/p'

Re: lyx 1.3.2: xpm files

2003-09-25 Thread Andre Poenitz
On Thu, Sep 25, 2003 at 04:52:14PM +, Angus Leeming wrote: > Ahhh. I could take each \([0-9]\{4\}\) block and split it into two: > \([0-9]\{2\}\)\([0-9]\{2\}\) \([0-9][0-9]\) is simpler to understand for the casual reader and not longer. Andre' -- Those who desire to give up

Re: lyx 1.3.2: xpm files

2003-09-25 Thread Angus Leeming
On Thursday 25 September 2003 3:56 pm, Andre Poenitz wrote: > On Thu, Sep 25, 2003 at 04:52:14PM +, Angus Leeming wrote: > > Ahhh. I could take each \([0-9]\{4\}\) block and split it into two: > > \([0-9]\{2\}\)\([0-9]\{2\}\) > > \([0-9][0-9]\) > > is simpler to understand for the

Re: lyx 1.3.2: xpm files

2003-09-25 Thread Andre Poenitz
On Thu, Sep 25, 2003 at 05:05:07PM +, Angus Leeming wrote: > On Thursday 25 September 2003 3:56 pm, Andre Poenitz wrote: > > On Thu, Sep 25, 2003 at 04:52:14PM +, Angus Leeming wrote: > > > Ahhh. I could take each \([0-9]\{4\}\) block and split it into two: > > >

Re: support::regexMatch

2003-09-25 Thread Stephan Witt
Angus Leeming wrote: Jean-Marc Lasgouttes wrote: "Angus" == Angus Leeming <[EMAIL PROTECTED]> writes: [snip] That being the case, this works, but isn't strict enough, allowing 'nested' stuff like this hypothetical example: $ x=M $ echo ${HO${x}E} /home/angus The real shell won't allow this.

Re: lyx 1.3.2: xpm files

2003-09-25 Thread Angus Leeming
Andre Poenitz wrote: >> Ok. But is the idea valid? "1234" -> "12" > Why not? Done that. Next question: given an rbg.txt database 240 240 240 grey94 242 242 242 gray95 how do I create the appropriate #rrggbb entry from the shell? -- Angus

Re: lyx 1.3.2: xpm files

2003-09-25 Thread Angus Leeming
Angus Leeming wrote: > Next question: given an rbg.txt database > 240 240 240 grey94 > 242 242 242 gray95 > > how do I create the appropriate #rrggbb entry from the shell? Doh! $ printf '%x\n' 240 f0 $ -- Angus

Re: lyx 1.3.2: xpm files

2003-09-25 Thread Angus Leeming
Jean-Marc Lasgouttes wrote: > It would be nice to change our xpms so that this works consistently. I > am not sure though what is the best tool to do that... A bit slow (about an hour ;-) but looks successful. 472 files changed in the 1.4 tree. -- Angus xpm_cleanup.sh Description:

Rewrite of ReplaceEnvironmentPath

2003-09-25 Thread Angus Leeming
I've rewritten ReplaceEnvironmentPath in a sane manner and got rid of lstrings.[Ch] regexMatch because nothing was using it. I've tested this by inserting a LyX file into the buffer (calling BufferView_pimpl.C's MenuInsertLyXFile which in turn calls support::FileSearch which in turn calls

Re: Rewrite of ReplaceEnvironmentPath

2003-09-25 Thread Angus Leeming
Angus Leeming wrote: > I have committed this. Please report any failures. (Don't worry, I didn't commit lib/external_templates which somehow made its way into the diff.) -- Angus

Re: LyX one dot three dot three

2003-09-25 Thread John Levon
On Thu, Sep 25, 2003 at 04:48:29PM +0200, Jean-Marc Lasgouttes wrote: > I have tagged LyX 1.3.3 and uploaded the various bits to ftp.lyx.org. RH8.0 RPMs in incoming/ They depend on latex-xft-fonts, naturally. regards john -- Khendon's Law: If the same point is made twice by the same person,

table desing flaws in lyx / possible improvements (was: longtable caption again)

2003-09-25 Thread j.heidemeier
H. Voss schrieb: > j.heidemeier schrieb: >> At the moment longtables really suck :-(. >yesss ... :-) >Write the whole longtable in pure LaTeX code into a single >file (not as LyX file, only text). >Then you can use in an esay way a caption. In Lyx do a >Insert->file Well, that is only a