More About XML[was: Re: Fun file]

2004-10-08 Thread John Weiss
Okay, first, an apology. Mea Culpa. Mea Maxima Culpa. I always seem to make this same mistake with XML: I assume they designed it to do more than it does. I assumed that, given a DTD, an XML parser could tokenize the various tag names. It can't. Mea Culpa. I also assumed that, give a DTD, a

Re: Fun file

2004-10-08 Thread John Weiss
On Fri, Oct 08, 2004 at 08:28:12PM -0400, John Weiss wrote: > On Fri, Oct 08, 2004 at 10:21:02PM +0200, Lars Gullik Bjønnes wrote: > > > > How do you decalre a namespace in a DTD? Okay, just read up on XML namespaces. - A namespace is uniquely identified by a URL. Doesn't have to be an HTTP-r

Re: Fun file

2004-10-08 Thread John Weiss
On Fri, Oct 08, 2004 at 07:11:11PM +0200, Lars Gullik Bjønnes wrote: > > Just what I am saying... let's fiddle right away, we don't need the > DTD for that. A DTD ... even if it's in our own "language" ... gives us a skeleton to work off of. The fiddling that I'm thinking of is, "Do we make this

Re: Fun file

2004-10-08 Thread John Weiss
On Fri, Oct 08, 2004 at 05:25:34PM +0100, Angus Leeming wrote: > > I read that as saying that he effectively has a DTD in his head > already. Of course, forcing him to formalize it would be a good thing. Heck, I'll formalize it for him! > Why don't you start this formal definition, since it's o

XML Format Design [was: Re: Fun file]

2004-10-08 Thread John Weiss
On Fri, Oct 08, 2004 at 06:26:51PM +0200, Lars Gullik Bjønnes wrote: > John Weiss <[EMAIL PROTECTED]> writes: > > | The DTD for an XML format (or, if you prefer, the XSchema for an XML > | format) is like the header file for a C++ class. A file with "an XML > | look" is the *implementation* of an

Re: Fun file

2004-10-08 Thread John Weiss
I second the, "Well done," regarding the whole shebang. One idea I wanted to toss to you, Lars: two parsers in the LyX core. We'd keep the old format's I/O in place while adding the classes needed to parse & write the XML. This gives us an "instant" regression test should we choose to change any

Re: Fun file

2004-10-08 Thread John Weiss
On Fri, Oct 08, 2004 at 10:21:02PM +0200, Lars Gullik Bjønnes wrote: > > How do you decalre a namespace in a DTD? > > I get a lot of > > UserGuide.lyx.xml:354: element eos: validity error : No declaration > for element > eos > Read Extended Features >

Re: Fun file

2004-10-08 Thread José Abílio Oliveira Matos
On Fri, Oct 08, 2004 at 11:39:56PM +0200, Lars Gullik Bjønnes wrote: > | ^ > | This is the DTD I hacked together, and it really shows how bad the > | current xml format is. > > New version of the DTD, missing namespace stuff... it wor

Re: Fun file

2004-10-08 Thread Lars Gullik Bjønnes
[EMAIL PROTECTED] (Lars Gullik Bjønnes) writes: | John Weiss <[EMAIL PROTECTED]> writes: > | | Consider, instead, the case where there's a separate tag in a | | "special-char" XML namespace. You still need to add the code to | | handle the "wynn", of course. However, your parse changes become |

Re: [ANNOUNCE] LyX 1.3.5 is released

2004-10-08 Thread Jean-Marc Lasgouttes
> "John" == John Weiss <[EMAIL PROTECTED]> writes: John> You'll find the following: John> lyx-1.3.5-1_qt.i386.FC2.rpm lyx-1.3.5-1_xforms.i386.FC2.rpm John> in /pub/incoming. Thanks a lot John, and welcome back! The files are on the ftp site. JMarc

Re: Fun file

2004-10-08 Thread José Abílio Oliveira Matos
On Fri, Oct 08, 2004 at 08:42:36PM +0200, Lars Gullik Bjønnes wrote: > > I am not chaning the structure of the code... just what is output. Notice also that you not taking advantage of knowing the document's enconding, and you are using the hardwire isolatin-1. Again, easy to fix. :-) I k

Re: Fun file

2004-10-08 Thread Lars Gullik Bjønnes
John Weiss <[EMAIL PROTECTED]> writes: | Consider, instead, the case where there's a separate tag in a | "special-char" XML namespace. You still need to add the code to | handle the "wynn", of course. However, your parse changes become | trivial: the tag, "" needs no new code to parse | it (sin

Re: [Patch] gtk ShowFile dialog

2004-10-08 Thread Lars Gullik Bjønnes
John Spray <[EMAIL PROTECTED]> writes: Looks ok to me. -- Lgb

[Patch] gtk ShowFile dialog

2004-10-08 Thread John Spray
Hi, Hot on the heels of the previous dialog (these are small ones, and take no time), here's the ShowFile dialog. John ? tmp Index: ChangeLog === RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/frontends/gtk/ChangeLog,v retrieving rev

Re: Fun file

2004-10-08 Thread Lars Gullik Bjønnes
José Abílio Oliveira Matos <[EMAIL PROTECTED]> writes: | On Fri, Oct 08, 2004 at 08:17:25PM +0200, Lars Gullik Bjønnes wrote: >> [EMAIL PROTECTED] (Lars Gullik Bjønnes) writes: >> >> | Actually it should be pretty safe to put this code in CVS... but I'll >> | hold off on that. >> >> This patch i

Re: Fun file

2004-10-08 Thread José Abílio Oliveira Matos
On Fri, Oct 08, 2004 at 08:17:25PM +0200, Lars Gullik Bjønnes wrote: > [EMAIL PROTECTED] (Lars Gullik Bjønnes) writes: > > | Actually it should be pretty safe to put this code in CVS... but I'll > | hold off on that. > > This patch is a bit nicer, no real changes. > > ? xmlutils.h File missi

Re: Fun file

2004-10-08 Thread Lars Gullik Bjønnes
[EMAIL PROTECTED] (Lars Gullik Bjønnes) writes: | Actually it should be pretty safe to put this code in CVS... but I'll | hold off on that. This patch is a bit nicer, no real changes. xmlformat-2.diff.gz Description: GNU Zip compressed data -- Lgb

Re: LyX/Mac-1.3.5 -- reverse DVI search?

2004-10-08 Thread Bennett Helm
On Oct 8, 2004, at 10:53 AM, Ronald Florence wrote: The source code for late versions of LyX/Mac-1.3.3 and for 1.3.4 was patched to allow reverse DVI search with MacDviX or recent versions of xdvi. LyX/Mac-1.3.5 needs the same patch (included below) for reverse DVI search to work. I've applied

Re: [Patch] gtk Texinfo dialog

2004-10-08 Thread Lars Gullik Bjønnes
John Spray <[EMAIL PROTECTED]> writes: Looks ok to me. -- Lgb

Re: Fun file

2004-10-08 Thread Lars Gullik Bjønnes
John Weiss <[EMAIL PROTECTED]> writes: | On Fri, Oct 08, 2004 at 03:01:18PM +0200, Lars Gullik Bjønnes wrote: >> >> Note that we already have an internal structure, that implicitly >> defines much of the DTD. > | ...making the definition of the DTD very easy. After that, it's just | a matter of

[Patch] gtk Texinfo dialog

2004-10-08 Thread John Spray
Hi, The Texinfo dialog. Will do the 'file' dialog next, since that's what one gets when one activates a filename in the texinfo dialog. John Index: ChangeLog === RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/frontends/gtk/ChangeLog

Re: Fun file

2004-10-08 Thread Lars Gullik Bjønnes
John Weiss <[EMAIL PROTECTED]> writes: | Lars: > | I've checked out the CVS head and built the doxygen srcdocs. I'm | still lost. > | Can I have some hints on how "Buffer", "Paragraph", "Inset", | et. al. fit together? Some source files to look at? Where are the | *.lyx files written/read? Sta

Re: Fun file

2004-10-08 Thread John Weiss
Lars: I've checked out the CVS head and built the doxygen srcdocs. I'm still lost. Can I have some hints on how "Buffer", "Paragraph", "Inset", et. al. fit together? Some source files to look at? Where are the *.lyx files written/read? With those, I can provide a skeleton XSchema. -- John W

Re: Fun file

2004-10-08 Thread John Weiss
On Fri, Oct 08, 2004 at 03:01:18PM +0200, Lars Gullik Bjønnes wrote: > > Note that we already have an internal structure, that implicitly > defines much of the DTD. ...making the definition of the DTD very easy. After that, it's just a matter of determining how to fiddle with things... > | My

Re: Fun file

2004-10-08 Thread Lars Gullik Bjønnes
John Weiss <[EMAIL PROTECTED]> writes: | On Fri, Oct 08, 2004 at 03:01:18PM +0200, Lars Gullik Bjønnes wrote: >> >> As to the DTD, I don't want to create that right away. Currently we >> have a, as you say, a proof-of-concecpt. I'd like to fiddle with this >> a bit, try to make the XML look the w

Re: Fun file

2004-10-08 Thread Angus Leeming
John Weiss wrote: > If you're uncomfortable with SGML DTD, then let's use XSchema. > XSchema, for those that don't know, is an XML document that defines > DTD's for other XML documents. Since it's all in XML, it's not as > "uncomfortable" for folks who don't know how to read the SGML DTD > languag

Re: lyx 1.4.0cvs: index (makeindex)

2004-10-08 Thread Angus Leeming
Hartmut Haase wrote: > I'm really surprised about what I have started. For several years > nobody cared about anything different from the standard makeindex > call, and now after I made a proposal to include parameter settings > into the preferences menu we have endless discussions. Why can't we >

Re: Fun file

2004-10-08 Thread John Weiss
On Fri, Oct 08, 2004 at 03:01:18PM +0200, Lars Gullik Bjønnes wrote: > > As to the DTD, I don't want to create that right away. Currently we > have a, as you say, a proof-of-concecpt. I'd like to fiddle with this > a bit, try to make the XML look the way we want it. Best practice and > so forth. >

lyx 1.4.0cvs: index (makeindex)

2004-10-08 Thread Hartmut Haase
I'm really surprised about what I have started. For several years nobody cared about anything different from the standard makeindex call, and now after I made a proposal to include parameter settings into the preferences menu we have endless discussions. Why can't we just carry on with my propos

Re: [ANNOUNCE] LyX 1.3.5 is released

2004-10-08 Thread John Weiss
On Fri, Oct 08, 2004 at 08:47:32AM +0100, Angus Leeming wrote: > John Weiss wrote: > > > I just built two binary RPM's for Fedora 2 (xforms UI and qt-3.3.3 > > UI). Where'd you like them uploaded? > > To ftp.devel.lyx.org/pub/incoming please. Done. You'll find the following: lyx-1.3.5-1_q

Re: LyX/Mac-1.3.5 -- reverse DVI search?

2004-10-08 Thread Ronald Florence
The source code for late versions of LyX/Mac-1.3.3 and for 1.3.4 was patched to allow reverse DVI search with MacDviX or recent versions of xdvi. LyX/Mac-1.3.5 needs the same patch (included below) for reverse DVI search to work. Regards, -- Ronald --- src/bufferlist.C.orig Wed Nov 27

LyX/Mac-1.3.5 -- reverse DVI search?

2004-10-08 Thread Ronald Florence
I just installed the binary for LyX/Mac-1.3.5, which works very well and provides an attractive new document icon. One minor problem is that the reverse DVI search feature seems not to be working. My configuration files are set up in accord with the Wiki howto for LyX/Mac-1.3.5, but when I Op

Re: Fun file

2004-10-08 Thread Lars Gullik Bjønnes
José Abílio Oliveira Matos <[EMAIL PROTECTED]> writes: | On Sun, Oct 03, 2004 at 06:03:10PM +0200, Lars Gullik Bjønnes wrote: > | Most of the preamble stuff is ready for xml, as you have shown. The only | obstacles now are the bullets. > | I see that you still use | | > | shame on you Lars

Re: Fun file

2004-10-08 Thread Lars Gullik Bjønnes
John Weiss <[EMAIL PROTECTED]> writes: | I like. It's a good proof-of-concept. > | As I've worked heavily with XML in the past, and am presently | unemployed (and therefore in need of a project to keep my skills | sharp), I'd love to lend a hand with this, Lars. Help would certainly be welcome.

Re: preview-latex

2004-10-08 Thread José Abílio Oliveira Matos
On Fri, Oct 08, 2004 at 01:10:49PM +0200, Jean-Marc Lasgouttes wrote: > > José> Jean-Marc, can I apply this to 1.3.6cvs? > > Yes, please do. Done, I updated also the status. First post, ha ha. :-D ;-) > JMarc -- José Abílio Matos LyX and docbook a perfect match. :-)

Re: preview-latex

2004-10-08 Thread José Abílio Oliveira Matos
On Fri, Oct 08, 2004 at 11:09:59AM +0200, Charpentier Philippe wrote: > > Thank you, like that it works. > > Now does this change can be applied to every > version of python? (if i remenber well,the original > script works on redhat 9) If not there is probabely > something to do in configure...

Re: [Patch] gtk ErrorList dialog

2004-10-08 Thread Juergen Spitzmueller
John Spray wrote: > The mailing list archive only seems to go back as far as this summer, > the "Old Archive" link is a 404, so I've not been able to read any of > Huang's old posts. http://marc.theaimsgroup.com/?l=lyx-devel&m=105763256816730&w=2 Regards, Jürgen

Re: [PATCH] Re: gtk frontend compilation failling at linker stage

2004-10-08 Thread Jean-Marc Lasgouttes
> "Lars" == Lars Gullik Bjønnes <[EMAIL PROTECTED]> writes: Lars> certainly if it work. Done. JMarc

Re: [ANNOUNCE] LyX 1.3.5 is released

2004-10-08 Thread Jean-Marc Lasgouttes
> "Juergen" == Juergen Spitzmueller <[EMAIL PROTECTED]> writes: Juergen> Jean-Marc Lasgouttes wrote: >> Public release of LyX version 1.3.5 Juergen> I have just uploaded a binary RPM for SuSE 9.1 (qt) to Juergen> ftp://ftp.devel.lyx.org/pub/incoming Thanks it is on the web site now. JMarc

Re: [ANNOUNCE] LyX 1.3.5 is released

2004-10-08 Thread Juergen Spitzmueller
Jean-Marc Lasgouttes wrote: > Public release of LyX version 1.3.5 I have just uploaded a binary RPM for SuSE 9.1 (qt) to ftp://ftp.devel.lyx.org/pub/incoming Regards, Jürgen

Re: lyx 1.4.0cvs: index (makeindex)

2004-10-08 Thread Jean-Marc Lasgouttes
> "Juergen" == Juergen Spitzmueller <[EMAIL PROTECTED]> writes: Juergen> Also sprach Jean-Marc Lasgouttes: >> But currently we do not support multiple printindex, right? So >> there is no real problem with styles... Juergen> What are the benefits if the index style selection is located Juerge

Re: lyx 1.4.0cvs: index (makeindex)

2004-10-08 Thread Juergen Spitzmueller
Also sprach Jean-Marc Lasgouttes: > But currently we do not support multiple printindex, right? So there > is no real problem with styles... What are the benefits if the index style selection is located in a printindex dialog? From a theoretical point of view, I'd say that the document dialog is

Re: [Patch] gtk ErrorList dialog

2004-10-08 Thread Angus Leeming
Lars Gullik Bjønnes wrote: > Angus Leeming <[EMAIL PROTECTED]> writes: > | Have you any thoughts on how to make this frontend robust in the face > | of international font sets? Currently inputting same in the main LyX > | screen is likely to lead to a crash. I seem to remember that Huang > | wante

Re: preview-latex

2004-10-08 Thread Jean-Marc Lasgouttes
> "José" == José Abílio Oliveira Matos <[EMAIL PROTECTED]> writes: José> Jean-Marc, can I apply this to 1.3.6cvs? Yes, please do. JMarc

Re: lyx 1.4.0cvs: index (makeindex)

2004-10-08 Thread Jean-Marc Lasgouttes
> "Juergen" == Juergen Spitzmueller <[EMAIL PROTECTED]> writes: Juergen> With bibtopic (as well as with all the other Juergen> multibib-approaches), you can select a different bst-file for Juergen> each section (you just can't mix author-year with numerical). Juergen> Therefore, it is possible

Re: [Patch] gtk ErrorList dialog

2004-10-08 Thread Lars Gullik Bjønnes
John Spray <[EMAIL PROTECTED]> writes: looks very good to me. -- Lgb

Re: [Patch] gtk ErrorList dialog

2004-10-08 Thread Lars Gullik Bjønnes
Angus Leeming <[EMAIL PROTECTED]> writes: | Have you any thoughts on how to make this frontend robust in the face of | international font sets? Currently inputting same in the main LyX screen | is likely to lead to a crash. I seem to remember that Huang wanted to stay | away from pango although I

Re: [Patch] gtk ErrorList dialog

2004-10-08 Thread John Spray
On Fri, 2004-10-08 at 11:01, Angus Leeming wrote: > I also remember how > tedious it ended up getting, creating 40 odd dialogs. Please don't burn > out ;-) I'm kind of in the swing of it now, there's plenty of copy&pasting of the gtk stuff. It's also very nice that the task is so discretised: I ca

Re: lyx 1.4.0cvs: index (makeindex)

2004-10-08 Thread Juergen Spitzmueller
Jean-Marc Lasgouttes wrote: > Hmm, but only one bibtex index is possible in theory too, isn't it? With bibtopic (as well as with all the other multibib-approaches), you can select a different bst-file for each section (you just can't mix author-year with numerical). Therefore, it is possible to

Re: Fun file

2004-10-08 Thread Juergen Spitzmueller
John Weiss wrote: > My first suggestion would be to figure out the DTD. I don't know if this is relevant, but you might check out http://tbookdtd.sourceforge.net/ for inspirations. AFAIR, the project's author is also interested in LyX. Regards, Jürgen

Re: [Patch] gtk ErrorList dialog

2004-10-08 Thread Angus Leeming
John Spray wrote: > Hi, > > The errorlist dialog, whose interface puts me in mind of a very small > and simple email client which receives nothing but bad news. > > Also, implemented GViewBase::setTitle, for the benefit of this dialog > and any others which care to set a window's title. Looks g

Re: preview-latex

2004-10-08 Thread José Abílio Oliveira Matos
On Fri, Oct 08, 2004 at 10:33:11AM +0100, Angus Leeming wrote: > > Hi, Jose. > Thanks for tracking this down. Could you apply the fix to 1.4.x. also? > > $ (cd ~/lyx/devel/lib/scripts; grep getenv *.py) > legacy_lyxpreview2ppm.py:path = string.split(os.getenv("PATH"), os.pathsep) > lyxpreview2bit

[Patch] gtk ErrorList dialog

2004-10-08 Thread John Spray
Hi, The errorlist dialog, whose interface puts me in mind of a very small and simple email client which receives nothing but bad news. Also, implemented GViewBase::setTitle, for the benefit of this dialog and any others which care to set a window's title. John Index: ChangeLog ==

Re: preview-latex

2004-10-08 Thread Angus Leeming
José Abílio Oliveira Matos wrote: > On Fri, Oct 08, 2004 at 11:09:59AM +0200, Charpentier Philippe wrote: >> >> Thank you, like that it works. >> >> Now does this change can be applied to every >> version of python? (if i remenber well,the original >> script works on redhat 9) If not there is pr

Re: preview-latex

2004-10-08 Thread José Abílio Oliveira Matos
On Fri, Oct 08, 2004 at 11:09:59AM +0200, Charpentier Philippe wrote: > > Thank you, like that it works. > > Now does this change can be applied to every > version of python? (if i remenber well,the original > script works on redhat 9) If not there is probabely > something to do in configure...

Re: preview-latex

2004-10-08 Thread Charpentier Philippe
On Fri, 8 Oct 2004 09:22:27 +0100 José Abílio Oliveira Matos <[EMAIL PROTECTED]> wrote: > I'm sorry, it is not os.environ['HOME'] but > os.environ['PATH'] > > Now should work, sorry it was my mistake. > -- > José Abílio Matos > LyX and docbook a perfect match. :-) Thank you, like that it w

Re: lyx 1.4.0cvs: index (makeindex)

2004-10-08 Thread Jean-Marc Lasgouttes
> "Juergen" == Juergen Spitzmueller <[EMAIL PROTECTED]> writes: Juergen> Jean-Marc Lasgouttes wrote: >> Another thing that might be nice, and is perhaps related to >> Martin's proposal, is to be able to select a index style file, like >> is done with the bibtex inset. This would add a new opti

Re: strange font problem in math

2004-10-08 Thread Angus Leeming
Alfredo Braunstein wrote: > Is anyone else seeing this? > > In 1.4.0cvs I cannot display some "composite" math symbols properly: > \mapsto, \notin, \not\in. Basically all is well except for the word "mu" > appearing overprinted (in blue) and weird spacing. Normal math symbols > work fine. Confir

strange font problem in math

2004-10-08 Thread Alfredo Braunstein
Is anyone else seeing this? In 1.4.0cvs I cannot display some "composite" math symbols properly: \mapsto, \notin, \not\in. Basically all is well except for the word "mu" appearing overprinted (in blue) and weird spacing. Normal math symbols work fine. -dbg font,mathed does not reveal anything unu

Re: preview-latex

2004-10-08 Thread José Abílio Oliveira Matos
On Fri, Oct 08, 2004 at 10:18:13AM +0200, Philippe Charpentier wrote: > > > Goto to this line and replace > >os.getenv("PATH") > >by > >os.environ['HOME'] > > > > Does it works now? I'm sorry, it is not os.environ['HOME'] but os.environ['PATH'] Now should work, sorry it was my mistake. > No

Re: preview-latex

2004-10-08 Thread Philippe Charpentier
>> AttributeError: getenv >> Traceback (innermost last): >> File "/usr/local/lyx135/share/lyx/scripts/lyxpreview2ppm.py", line 396, in ? >> main(sys.argv) >> File "/usr/local/lyx135/share/lyx/scripts/lyxpreview2ppm.py", line 337, in main >> path = string.split(os.getenv("PATH"), os.path

Re: lyx-devel src/: ChangeLog LaTeX.C LaTeX.h converter.C outp ...

2004-10-08 Thread Angus Leeming
Martin Vermeer wrote: > On Thu, 2004-10-07 at 18:55, Angus Leeming wrote: >> [EMAIL PROTECTED] wrote: >> > Log message: >> > Implement use of babel language in xindy. >> >> Incidentally, it would make sense to document use >> of the $$lang parameter in lyxrc::getDescription >> which is displayed

Re: [ANNOUNCE] LyX 1.3.5 is released

2004-10-08 Thread Angus Leeming
John Weiss wrote: > I just built two binary RPM's for Fedora 2 (xforms UI and qt-3.3.3 > UI). Where'd you like them uploaded? To ftp.devel.lyx.org/pub/incoming please. -- Angus