Re: [Patch] SnippetConversion for previews and DocBook

2005-02-14 Thread Angus Leeming
Andreas Vox wrote: > Angus Leeming <[EMAIL PROTECTED]> writes: > >> Being more explicit: > > Thanks! > >> std::cout << _("my dynamic string") << '\n'; > > I was confused there. So "dynamic string" is short for > "string in a dynamic context". > I first thought you had to treat static strin

Re: [Patch] SnippetConversion for previews and DocBook

2005-02-14 Thread Andreas Vox
Angus Leeming <[EMAIL PROTECTED]> writes: > Being more explicit: Thanks! > std::cout << _("my dynamic string") << '\n'; I was confused there. So "dynamic string" is short for "string in a dynamic context". I first thought you had to treat static string constants and calculated strings

Re: [Patch] SnippetConversion for previews and DocBook

2005-02-14 Thread Jose' Matos
On Saturday 12 February 2005 16:59, Georg Baum wrote: > The advantage of this would be that it is very easy to implement. And > more flexible (i. e. I can export one document with pngs and another one > with bmps). I agree. The mechanism is already in place let us use it. :-) > Georg -- José

Re: [Patch] SnippetConversion for previews and DocBook

2005-02-14 Thread Angus Leeming
Georg Baum wrote: >> - I copied the Alert message verbatim from another place. What do I have >>to do if I introduce new internationalized strings? Any suggestions >>for a better error message? > > Simply enclose the string with _(). It will appear in the po files the > next time they are

Re: [Patch] SnippetConversion for previews and DocBook

2005-02-14 Thread Georg Baum
Andreas Vox wrote: > I thought about that. I changed the methods in Exporter to create non- > existing directories (I thought first about your advice to add an > "addExternalDirectory" method, but when I looked at the code this > looked simpler). It is simpler indeed. But "addExternalDirectory" e

Re: [Patch] SnippetConversion for previews and DocBook

2005-02-13 Thread Andreas Vox
Georg Baum <[EMAIL PROTECTED]> writes: > And I found another problem with a fixed directory name like > "math-images": Things get mixed up if you export two documents in the > same directory. So even if the directory name is fixed for some reason it > should be unique per document, i. e. foo-ma

Re: [Patch] SnippetConversion for previews and DocBook

2005-02-13 Thread Georg Baum
Am Samstag, 12. Februar 2005 20:47 schrieb Chris Karakas: > Is it not wrapped? I didn't know it. However, I don't have any control on it. I use a webmail system - do you know web.de? ;-) Yes I know web.de. I use it sometimes, too, but via POP3 and SMTP. > Maybe you are right. It's O.K. with me

Re: [Patch] SnippetConversion for previews and DocBook

2005-02-13 Thread Chris Karakas
Andreas Vox <[EMAIL PROTECTED]> schrieb am 13.02.05 02:52:53: > > The problem with inlinemath is that you have to know the depth of the > graphic > if you want to align it to the baseline. This depth will be needed by > ANY presentation > if it want to achieve a decent layout. Imagine the two fo

[Patch] SnippetConversion for previews and DocBook

2005-02-12 Thread Andreas Vox
Am 12.02.2005 um 16:39 schrieb Chris Karakas: Andreas Vox <[EMAIL PROTECTED]> schrieb am 10.02.05 19:11:03: I just want to find a way to pass the information to the XML file without breaking too many standards. How any stylesheets interpret this is up to them. Risking to become a pain in the a$$

Re: [Patch] SnippetConversion for previews and DocBook

2005-02-12 Thread Chris Karakas
Georg Baum <[EMAIL PROTECTED]> schrieb am 12.02.05 18:00:31: > > Am Samstag, 12. Februar 2005 15:29 schrieb Chris Karakas: > > And please do us a favor: Wrap your lines after 76 characters or so, > otherwise quoted text looks as ugly as in this mail. > Is it not wrapped? I didn't know it. Howe

Re: [Patch] SnippetConversion for previews and DocBook

2005-02-12 Thread Georg Baum
Am Samstag, 12. Februar 2005 15:29 schrieb Chris Karakas: > let me start by asking a favour from all: please use the word "DocBook" (case is unimportant) in the subject line whenever you post And please do us a favor: Wrap your lines after 76 characters or so, otherwise quoted text looks as ug

Re: [Patch] SnippetConversion for previews and DocBook

2005-02-12 Thread Chris Karakas
Andreas Vox schrieb am 10.02.05 19:11:03: > > Jose' Matos writes: > > . > > > I did some research. It's in the semantics for "CSS3.lines". CSS2 and > > > CSS1 support valign without length or percentage values (which is not > > > better than the default) > > > > The problem as usual, it that t

Re: [Patch] SnippetConversion for previews and DocBook

2005-02-12 Thread Chris Karakas
Andreas Vox <[EMAIL PROTECTED]> schrieb am 10.02.05 17:38:10: > > > > c) Produce illegal valign attributes which can be used directly for XHTML > > > > I will close my eyes here. > > I did some research. It's in the semantics for "CSS3.lines". CSS2 and CSS1 > support valign without length or

Re: [Patch] SnippetConversion for previews and DocBook

2005-02-12 Thread Chris Karakas
"Jose' Matos" <[EMAIL PROTECTED]> schrieb am 10.02.05 16:56:32: > Hi Jose', Andreas and other LyX developers, let me start by asking a favour from all: please use the word "DocBook" (case is unimportant) in the subject line whenever you post something relating to DocBook. Andreas' original po

Re: [Patch] SnippetConversion for previews and DocBook

2005-02-10 Thread Georg Baum
Am Donnerstag, 10. Februar 2005 16:55 schrieb Jose' Matos: > > My ideas: > > a) Do it consistently, maybe drop the entities if noone protests >Now you know the problems. You don't want to have absolute paths in the > exported code, it is ugly and ugh.. no portable. :-) We tried hard to prese

Re: [Patch] SnippetConversion for previews and DocBook

2005-02-10 Thread Andreas Vox
Jose' Matos <[EMAIL PROTECTED]> writes: > > On Thursday 10 February 2005 16:35, Andreas Vox wrote: > > > > enough, XHTML apparently also knows "valign=-7px" > > > > > >What do others use? > > > > What others? > > db2latex Nothing. If it finds an ALT elem with tex code, it puts that in \en

Re: [Patch] SnippetConversion for previews and DocBook

2005-02-10 Thread Jose' Matos
On Thursday 10 February 2005 16:35, Andreas Vox wrote: > > > enough, XHTML apparently also knows "valign=-7px" > > > >What do others use? > > What others? db2latex > > > g) What "density" or magnification should be used for maths? > > > (Not knowing the final font size) > > > > Me nei

Re: [Patch] SnippetConversion for previews and DocBook

2005-02-10 Thread Andreas Vox
Jose' Matos <[EMAIL PROTECTED]> writes: > > > c) How to align math bitmaps vertically. It's no problem to get > > ascent/descent from preview.sty, but how to code it in XML? > > Docbook defines valign=(top|center|bottom) which is not good enough, > > XHTML apparently also knows "valign=-7

Re: [Patch] SnippetConversion for previews and DocBook

2005-02-10 Thread Jose' Matos
On Monday 31 January 2005 20:58, Andreas Vox wrote: > > > Just to simplify my work what are your doubts regarding the docbook > > part? > > Options: > a) using entities for filenames or not (cf. graphicsinset) Whatever is more convenient. The option for entities was due to the need to crea

Re: [Patch] SnippetConversion for previews and DocBook

2005-01-31 Thread Andreas Vox
Jose' Matos <[EMAIL PROTECTED]> writes: > > On Sunday 30 January 2005 16:20, Andreas Vox wrote: > > Hi Angus, Hi JosÃ! > > > > -- I guess this is for you! > > Hi, > I don't have much time now, as soon as I get some time I will review > the > patch? That's fine. > > Just to si

Re: [Patch] SnippetConversion for previews and DocBook

2005-01-31 Thread Jose' Matos
On Sunday 30 January 2005 16:20, Andreas Vox wrote: > Hi Angus, Hi JosÃ! > > -- I guess this is for you! :-) Hi, I don't have much time now, as soon as I get some time I will review the patch? Just to simplify my work :-) what are your doubts regarding the docbook part?

Re: [Patch] SnippetConversion for previews and DocBook

2005-01-30 Thread Andreas Vox
Georg Baum <[EMAIL PROTECTED]> writes: > > Am Sonntag, 30. Januar 2005 17:20 schrieb Andreas Vox: > > > - Ask for overwrite of bitmap files (appears that eporter doesn't do > > that yet) > > It should do. See copyFile() in exporter.C. Are you really sure that it > does not ask if a file exist

Re: [Patch] SnippetConversion for previews and DocBook

2005-01-30 Thread Georg Baum
Am Sonntag, 30. Januar 2005 17:20 schrieb Andreas Vox: > - Ask for overwrite of bitmap files (appears that eporter doesn't do > that yet) It should do. See copyFile() in exporter.C. Are you really sure that it does not ask if a file exists already? Maybe this is related to the following: + st

[Patch] SnippetConversion for previews and DocBook

2005-01-30 Thread Andreas Vox
Hi Angus, Hi José! -- I guess this is for you! :-) I implemented a basic version for generating bitmap files for equations in DocBook output. You can now export to Docbook or Docbook-xml and dozens of "eqn-XYZ.png" files will appear. Here is what I changed: * refactored PreviewLoader to use a new