Lars Gullik Bjønnes wrote:
> Angus Leeming <[EMAIL PROTECTED]> writes:
>
> | Lars Gullik Bjønnes wrote:
>>> Either a lib or xml parser for spirit.
>>
> | There are examples of same in the repository at spirit.sf.net. If you
> | want any help, just holler. The spirit-users list is jolly helpful.
>
Angus Leeming <[EMAIL PROTECTED]> writes:
| Lars Gullik Bjønnes wrote:
>> Either a lib or xml parser for spirit.
>
| There are examples of same in the repository at spirit.sf.net. If you want
| any help, just holler. The spirit-users list is jolly helpful.
Ok. I need some help.
I have had a look
Andre Poenitz <[EMAIL PROTECTED]> writes:
| On Fri, Oct 08, 2004 at 11:39:56PM +0200, Lars Gullik Bjønnes wrote:
>> New version of the DTD, missing namespace stuff... it works... kindo.
>
| Could we make mathed a proper citizen of the new LyX world. With a
| for each kind of inset and such?
cer
On Fri, Oct 08, 2004 at 03:43:49PM +0200, Lars Gullik Bjønnes wrote:
> Actually it should be pretty safe to put this code in CVS... but I'll
> hold off on that.
Just go on if you promise to spend at least 10% of the time you
currently invest into LyX with fixing 1.4.0 show-stopper bugs.
Andre'
On Thu, Oct 07, 2004 at 10:02:39PM -0400, John Weiss wrote:
> - If the LyX kernel treats something in a character-like fashion, go
> with entities.
>
> Example: Say that the LyX file "command" for a non-breaking space
> is translated into a character, and that said character is then
> tra
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.
I think I lean onto Lars's side here: Have some well formed XML
resembling LyX internal structu
On Fri, Oct 08, 2004 at 12:16:22PM -0400, John Weiss wrote:
> 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?
A 'Buffer' is basically a .lyx document. Associated to
On Fri, Oct 08, 2004 at 11:39:56PM +0200, Lars Gullik Bjønnes wrote:
> New version of the DTD, missing namespace stuff... it works... kindo.
Could we make mathed a proper citizen of the new LyX world. With a
for each kind of inset and such?
Andre'
[EMAIL PROTECTED] (Lars Gullik Bjønnes) writes:
| [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
John Weiss <[EMAIL PROTECTED]> writes:
| 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.
>
| T
John Weiss <[EMAIL PROTECTED]> writes:
| 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 "instan
John Weiss <[EMAIL PROTECTED]> writes:
| 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 do
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
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
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
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
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
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
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
>
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
[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
|
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
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
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
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
[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
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
o look at? Where are the
| *.lyx files written/read?
Start with Buffer::writeFile, that is the starting point of writing a
.lyx file.
| With those, I can provide a skeleton XSchema.
Look at the Fun File, that mirrors the sturcture quite closely.
(and uses a lot of the tag names that I'd like t
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
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
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
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
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.
>
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
| We can't create a tag named 'part' in a 'paragraph' namespace
| because that tag is only valid in certain types of document.
>
| Example #2: '' ''
| In this example, I've defined a 'font' namespace, which contains
| tags for standa
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
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.
My first suggestion would be to figure out the DTD. At my last job, I
worked wit
On Sun, Oct 03, 2004 at 06:03:10PM +0200, Lars Gullik Bjønnes wrote:
> [XML gibberish]
Believe it or not: I like it.
And while we are at it: My current day time job surprisingly *cough*
developed into a direction *cough* where it involved displaying and
editing certain primitive mathematical stru
Lars Gullik Bjønnes wrote:
> Either a lib or xml parser for spirit.
There are examples of same in the repository at spirit.sf.net. If you want
any help, just holler. The spirit-users list is jolly helpful.
--
Angus
José Abílio Oliveira Matos <[EMAIL PROTECTED]> writes:
| On Mon, Oct 04, 2004 at 03:57:14PM +0200, Lars Gullik Bjønnes wrote:
>>
>> The font stuff was not really trivial, specially font with insets.
>>
>> The tabular stuff was really easy... basically it was already xml.
>> Math had to be hidden
On Mon, Oct 04, 2004 at 03:57:14PM +0200, Lars Gullik Bjønnes wrote:
>
> The font stuff was not really trivial, specially font with insets.
>
> The tabular stuff was really easy... basically it was already xml.
> Math had to be hidden in CDATA, and < > had to be translated to <
> and >
>
> Apart
José Abílio Oliveira Matos <[EMAIL PROTECTED]> writes:
| On Sun, Oct 03, 2004 at 07:19:24PM +0200, Andreas Vox wrote:
>> >Andreas Vox <[EMAIL PROTECTED]> writes:
>> >
>> >| Hi!
>> >>
>> >| This file is not valid! (The DocType declaration is missing ;-) ).
>> >
>> >But it is damn close :-)
>> >
>>
On Sun, Oct 03, 2004 at 07:19:24PM +0200, Andreas Vox wrote:
> >Andreas Vox <[EMAIL PROTECTED]> writes:
> >
> >| Hi!
> >>
> >| This file is not valid! (The DocType declaration is missing ;-) ).
> >
> >But it is damn close :-)
> >
>
> For sure it's well formed :-)
True I loaded it using the dom
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. ;-)
But as you have shown having a rule for the file format is a goo
Andreas Vox <[EMAIL PROTECTED]> writes:
| Hi!
>
| This file is not valid! (The DocType declaration is missing ;-) ).
But it is damn close :-)
For sure it's well formed :-)
| Do I ask too many questions?
yes.
I thought so :-)
/Andreas
Andreas Vox <[EMAIL PROTECTED]> writes:
| Hi!
>
| This file is not valid! (The DocType declaration is missing ;-) ).
But it is damn close :-)
| Do you have a DTD ?
no, and the format can be cleaned up a bit.
| How do I open it in LyX 1.4.0cvs ?
Not possible. I have only finished the writing
Hi!
This file is not valid! (The DocType declaration is missing ;-) ).
Do you have a DTD ?
How do I open it in LyX 1.4.0cvs ?
Is this the new XML feature which was decided upon at the secret 8 and
1/2 conference?
Do I ask too many questions?
Cheers
/Andreas
48 matches
Mail list logo