Re: POT file generation is broken!

2003-11-14 Thread Alfredo Braunstein
Michael Schmitt wrote: > something is wrong which the POT file creation! I can't believe that two > fifth of all messages have gone during the code cleanup It can be. Possibly the boost_format change has eliminated a lot of repetitions... Alfredo

Re: tex2lyx and optional arguments

2003-11-14 Thread Jose' Matos
On Thursday 13 November 2003 20:56, Georg Baum wrote: > Problem: > > Solution 2: > Create a list of commands that take optional arguments and only serach for > them when they are expected. The drawback is of course the hardcoding of > commands. > > > I don't like either solution. Does anybody have

Re: Latest CVS Edit->Paragraph Settings inoperative

2003-11-14 Thread Angus Leeming
Kayvan A. Sylvan wrote: >> LCursor::dispatch: >> >> trying to dispatch to main text 0x100b2cd0 >> LyXText::dispatch: cmd: action: 123 arg: '' x: 0 y: 0 >>result: 0 >> ### NOT DISPATCHED BY Cursor::dispatch() ### >> BufferView::Pimpl::fitCursor. > > Is anyone looking into this? Martin Vermee

Re: tex2lyx and optional arguments

2003-11-14 Thread Angus Leeming
Jose' Matos wrote: > On Thursday 13 November 2003 20:56, Georg Baum wrote: >> Problem: >> >> Solution 2: >> Create a list of commands that take optional arguments and only >> serach for them when they are expected. The drawback is of course >> the hardcoding of commands. >> >> >> I don't like eith

Re: [patch] selection

2003-11-14 Thread Angus Leeming
Alfredo Braunstein wrote: > This patch sanitizes selection handling. > Basically removes all InsetText special case selection-handling code > and adjust the LyXText code a bit to handle also insets. > Comments? Between you, you are making this stuff understandable. I'm not sure I approve. --

Re: Linking time

2003-11-14 Thread Jean-Marc Lasgouttes
> "Michael" == Michael Schmitt <[EMAIL PROTECTED]> writes: Michael> I did not ask to make -gstabs the default debug option. But Michael> for people who have to build the lyx binary many, many times, Michael> it can be a big relief. What we could do is, like for the --enable-optimization=-O3 s

Re: [patch] selection

2003-11-14 Thread Alfredo Braunstein
Angus Leeming wrote: > Alfredo Braunstein wrote: > >> This patch sanitizes selection handling. >> Basically removes all InsetText special case selection-handling code >> and adjust the LyXText code a bit to handle also insets. > >> Comments? > > Between you, you are making this stuff understand

Re: [patch] selection

2003-11-14 Thread Angus Leeming
Alfredo Braunstein wrote: > Angus Leeming wrote: > >> Alfredo Braunstein wrote: >> >>> This patch sanitizes selection handling. >>> Basically removes all InsetText special case selection-handling >>> code and adjust the LyXText code a bit to handle also insets. >> >>> Comments? >> >> Between y

Re: [patch] selection

2003-11-14 Thread Alfredo Braunstein
Angus Leeming wrote: >> I'm not sure I understand what you are saying. > I was being silly. It's Friday. Doh! Sorry ;-) > I agree with you. Moreover, this last problem will just go away when > you go down the "use absolute coords for this sort of stuff > internally" route that you proposed the

[Patch] Re: XML sanitation ;-)

2003-11-14 Thread Martin Vermeer
On Tue, Nov 11, 2003 at 10:05:45AM +, Jose' Matos spake thusly: > On Sunday 09 November 2003 14:27, Martin Vermeer wrote: ... > > LatexParam"4|revnumber" ... > > Does this make sense? > > Completly. :-) > > > - Martin > > -- > José Abílio Patch attached. I'll che

Re: Latin1 in strings (awk hacker help needed!)

2003-11-14 Thread Jean-Marc Lasgouttes
> "Alfredo" == Alfredo Braunstein <[EMAIL PROTECTED]> writes: Alfredo> Jean-Marc Lasgouttes wrote: >> and these ones which come from the math panel ­ Û ± ´ £ @ S ò !(£ >> @) (can these be replaced with real icons?) Alfredo> Can't we make these non-translatable at all? I know there was Alfredo

Re: Latest CVS Edit->Paragraph Settings inoperative

2003-11-14 Thread Alfredo Braunstein
Angus Leeming wrote: > Kayvan A. Sylvan wrote: >>> LCursor::dispatch: >>> >>> trying to dispatch to main text 0x100b2cd0 >>> LyXText::dispatch: cmd: action: 123 arg: '' x: 0 y: 0 >>>result: 0 >>> ### NOT DISPATCHED BY Cursor::dispatch() ### >>> BufferView::Pimpl::fitCursor. >> >> Is anyone

Re: [Patch] Re: XML sanitation ;-)

2003-11-14 Thread Jose' Matos
On Friday 14 November 2003 11:25, Martin Vermeer wrote: > > Patch attached. I support your patch. This effectively means that now there are at least 2 persons who understand this code. :-) And, as Einstein said once, I don't know who is the third. ;-) > I'll check it in later today if no o

Re: Latin1 in strings (awk hacker help needed!)

2003-11-14 Thread Angus Leeming
Jean-Marc Lasgouttes wrote: > The way to do this would be to add awk magic to the following > makefile target: > > $(srcdir)/xforms_l10n.pot: > $(top_srcdir)/src/frontends/xforms/forms/*.fd > awk ' \ >BEGIN { \ >print "#, fuzzy"; \ >

Re: Latin1 in strings (awk hacker help needed!)

2003-11-14 Thread Angus Leeming
Angus Leeming wrote: > Jean-Marc Lasgouttes wrote: >> The way to do this would be to add awk magic to the following >> makefile target: >> >> $(srcdir)/xforms_l10n.pot: >> $(top_srcdir)/src/frontends/xforms/forms/*.fd >> awk ' \ >>BEGIN { \ >>

Re: Latest CVS Edit->Paragraph Settings inoperative

2003-11-14 Thread Angus Leeming
Alfredo Braunstein wrote: > Are we trying to eliminate BufferView::dispatch, moving all LFUNS to > LyXText? No. LFUNs should be handled by the appropriate dispatch function. Martin's move of LFUN_INSET_APPLY, LFUN_INSET_INSERT from BufferView to LyXText was the right thing to do because these LF

Re: Latest CVS Edit->Paragraph Settings inoperative

2003-11-14 Thread Alfredo Braunstein
Angus Leeming wrote: > No. LFUNs should be handled by the appropriate dispatch function. > Martin's move of LFUN_INSET_APPLY, LFUN_INSET_INSERT from BufferView > to LyXText was the right thing to do because these LFUNs aren't > anything to do with the BufferView. Ah, thanks. > Kayvan's reported

Re: Latest CVS Edit->Paragraph Settings inoperative

2003-11-14 Thread Angus Leeming
Alfredo Braunstein wrote: >> Kayvan's reported problem, that a mouse click doesn't get >> translated to a command to open up the paragraph settings dialog is >> a problem with an LFUN that IMO does indeed belong to >> BufferView::dispatch. > > I think it's not a mouse click, but Edit->Paragraphs

Re: [Patch] Re: XML sanitation ;-)

2003-11-14 Thread Jean-Marc Lasgouttes
> "Jose'" == Jose' Matos <[EMAIL PROTECTED]> writes: Jose'> On Friday 14 November 2003 11:25, Martin Vermeer wrote: >> Patch attached. Jose'> I support your patch. This effectively means that now there Jose'> are at least 2 persons who understand this code. :-) And, as Jose'> Einstein said

Re: Latin1 in strings (awk hacker help needed!)

2003-11-14 Thread Jean-Marc Lasgouttes
> "Angus" == Angus Leeming <[EMAIL PROTECTED]> writes: >> Unfortunately, I know nothing about awk. Any taker? Angus> Me neither, but how about [...] I knew you could not resist, Angus... It did not work, but a variation on that did work. I'll send a complete patch once I am satisfied that it

Re: Latin1 in strings (awk hacker help needed!)

2003-11-14 Thread Lars Gullik Bjønnes
Jean-Marc Lasgouttes <[EMAIL PROTECTED]> writes: >> "Alfredo" == Alfredo Braunstein <[EMAIL PROTECTED]> writes: | The way to do this would be to add awk magic to the following | makefile target: > | $(srcdir)/xforms_l10n.pot: $(top_srcdir)/src/frontends/xforms/forms/*.fd | awk ' \

Re: Latin1 in strings (awk hacker help needed!)

2003-11-14 Thread Jean-Marc Lasgouttes
> "Lars" == Lars Gullik Bjønnes <[EMAIL PROTECTED]> writes: Lars> So it is not possible to use images for these? or is it really Lars> hard? No it would not be hard if only somebody did it. I figured this solution would be easier and indeed it works. I'll post a patch soon. JMarc

Re: [Patch] Re: XML sanitation ;-)

2003-11-14 Thread Martin Vermeer
On Fri, Nov 14, 2003 at 02:03:40PM +0100, Jean-Marc Lasgouttes spake thusly: > Jose'> Jean-Marc, any objection? > > No, go ahead. > > JMarc So done. (I was a bit in a hurry, in less than an hour our mail system goes down for the weekend. Installing new spam/virus pumps :-( ) - Martin pgp

[PATCH] remove non-ascii in translatable strings

2003-11-14 Thread Jean-Marc Lasgouttes
The following patch for 1.3.4cvs (should be easy to port to 1.4.0cvs) remove all use of non-ascii characters in strings seen by gettext. Here is a detailed view of the changes: - the strings in symbol font from xforms dialogs are not translatable anymore - removed on occurence of \frac (becau

Re: POT file generation is broken!

2003-11-14 Thread Jean-Marc Lasgouttes
> "Michael" == Michael Schmitt <[EMAIL PROTECTED]> writes: Michael> Hi, something is wrong which the POT file creation! I can't Michael> believe that two fifth of all messages have gone during the Michael> code cleanup It would be nice to try to find out what messages are missing. JMarc

Re: [PATCH] ugly, but...

2003-11-14 Thread Jean-Marc Lasgouttes
> "Lars" == Lars Gullik Bjønnes <[EMAIL PROTECTED]> writes: | So Lars, given these crummy explanations, what shall I do? Lars> Is it possible to keep the ugliness inside the qt dir? Or must Lars> it be visible outside? (to other frontends?) Lars? I did not keep my answer to your question, bu

Re: [PATCH] ugly, but...

2003-11-14 Thread Lars Gullik Bjønnes
Jean-Marc Lasgouttes <[EMAIL PROTECTED]> writes: >> "Lars" == Lars Gullik Bjønnes <[EMAIL PROTECTED]> writes: > | | So Lars, given these crummy explanations, what shall I do? > | Lars> Is it possible to keep the ugliness inside the qt dir? Or must | Lars> it be visible outside? (to other front

Re: [PATCH] ugly, but...

2003-11-14 Thread Jean-Marc Lasgouttes
> "Lars" == Lars Gullik Bjønnes <[EMAIL PROTECTED]> writes: Lars> I cannot remember the case at all... Basically, I applied the patch below to 1.3.x, but it is so ugly that I ask for your approval before checking it in 1.4.0cvs. JMarc Index: src/frontends/ChangeLog =

Re: [PATCH] remove non-ascii in translatable strings

2003-11-14 Thread Angus Leeming
Jean-Marc Lasgouttes wrote: > - use <> instead of «text». If english users find > this too ugly, we  may  have to  provide  a  en.po (translators  > to  any language are  free to  use  real  guillemets  if  they  can) > > - use "90 deg" instead of "90°". This is the part I do not like much > and 

Re: [PATCH] remove non-ascii in translatable strings

2003-11-14 Thread Jean-Marc Lasgouttes
> "Angus" == Angus Leeming <[EMAIL PROTECTED]> writes: Angus> Jean-Marc Lasgouttes wrote: >> - use <> instead of «text». If english users find this too >> ugly, we  may  have to  provide  a  en.po (translators  to  any >> language are  free to  use  real  guillemets  if  they  can) >> >> - us

Re: [PATCH] remove non-ascii in translatable strings

2003-11-14 Thread Angus Leeming
Jean-Marc Lasgouttes wrote: > Angus> So, en.po would contain about 10 entries or so? That seems > Angus> do-able. > > Of course, you will be so ashamed to see it at the bottom of the > "LyX i18n" page that you'll want to translate all the entries (a sed > script?)... Not me. I have no pride in su

Re: [PATCH] remove non-ascii in translatable strings

2003-11-14 Thread Jean-Marc Lasgouttes
> "Angus" == Angus Leeming <[EMAIL PROTECTED]> writes: >> Of course, you will be so ashamed to see it at the bottom of the >> "LyX i18n" page that you'll want to translate all the entries (a >> sed script?)... Angus> Not me. I have no pride in such things. No pride in writing silly sed scri

Re: [PATCH] remove non-ascii in translatable strings

2003-11-14 Thread Angus Leeming
Jean-Marc Lasgouttes wrote: >> "Angus" == Angus Leeming <[EMAIL PROTECTED]> writes: > >>> Of course, you will be so ashamed to see it at the bottom of the >>> "LyX i18n" page that you'll want to translate all the entries (a >>> sed script?)... > > Angus> Not me. I have no pride in such thin

Re: [patch] reduce number of updates

2003-11-14 Thread Andre Poenitz
> Andre Poenitz <[EMAIL PROTECTED]> writes: > > | E.g just one instead of three per . >> > | Plus removal of deleteLyXText >> > | Plus caching 'beginOfBodyPos'. >> > | We should be faster than 1.3 now.. > > You do so much reindetation that it is impossible to see what you are > actually changing. >

Re: tex2lyx and optional arguments

2003-11-14 Thread Andre Poenitz
> Problem: > tex2lyx currently cannot handle commands with optional arguments, > because the brackets are translated to normal text. LyX then produces > {[} instead of [. One example where this happens is the userguide. > > Solution 1: > Call something like > > string opts; > string opt = p.getOp

[patch] selection2.diff

2003-11-14 Thread Alfredo Braunstein
This path is the previous + - fixed an abolute/relative coords wicked bug in rowPainter that is present at least from oct 23, that makes selection on insets [not on the first page of text] to lose the intermediate part of the selection, i.e. to show as selected only the first and last line of sele

Re: [Patch] Re: XML sanitation ;-)

2003-11-14 Thread Andre Poenitz
> On Tue, Nov 11, 2003 at 10:05:45AM +, Jose' Matos spake thusly: > >> On Sunday 09 November 2003 14:27, Martin Vermeer wrote: > > ... > >> > LatexParam"4|revnumber" > > ... > >> > Does this make sense? >> >> Completly. :-) >> >> > - Martin >> >> -- >> José Abílio > > > Patch

Re: [patch] reduce number of updates

2003-11-14 Thread Alfredo Braunstein
Andre Poenitz wrote: > Ups. Sorry. I though it was compiling but then I might have commited from > the wrong machine (again). Was a bit in a hurry. Sorry. > > Could anybody please try to fix that? I won't get access to the sources > before Monday. Maybe you sent the patch from the wrong machine,