W3C home > Mailing lists > Public > www-math@w3.org > July 2002

AW: Math Editor Implementation Questions

From: Bernhard Keil <Bernhard.Keil@soft4science.com>
Date: Tue, 2 Jul 2002 20:52:28 +0200
To: "Peter" <zegelin@actonline.com.au>, <www-math@w3.org>
Message-ID: <IIEOKCCPKDALHBHODAENAEEMCCAA.Bernhard.Keil@soft4science.com>

Hello Peter,

well I think it would help if you would
have a clear seperation line between the object tree wich is your
applications data model and the XML tree of the MathML

When you load the MathML you build up an object tree out of the XML tree.

In the object tree any node would have properties for
representing style attributes.

Than when you save the tree to MathML you will have to "merge"
nodes with the same style attributes and insert them as
a child node of a mstyle element.

Hope that helps.



-----Ursprungliche Nachricht-----
Von: www-math-request@w3.org [mailto:www-math-request@w3.org]Im Auftrag
von Peter
Gesendet: Dienstag, 2. Juli 2002 05:23
An: www-math@w3.org
Betreff: Math Editor Implementation Questions

    I'm working on a sort of mini Label Editor for my own purposes and
because I need super and subscripting capabilities ( and maybe fractions) I
decided to settle on (a subset of) MathMl as my model.

    Everything was going pretty well until I added styles to the mix. My
style element itself works fine but figuring out how to actually edit it is
turning into a real pain. In a sense the style element is a bit different to
the others because it can be split etc. depending on the current selection.
You can end up with two styles the same next to each other, which really
should be combined - and if they only contain text then the text elements
should also be combined to make a single text element. Various other
complicated situations also arise!

    The simplest thing to do of course is to just leave the styles in, but
they soon overwhelm the whole structure, with a large number of redundant
style elements.

    My current implementation for clearing out the redundant styles nearly
works but it is so complicated that I dont have any real confidence that it
will ever be bug free so I have decided to reimplement the whole thing.
Before I do however I thought I'd see if anyone has some suggestions on the
best way to do this.

Any help would be greatly appreciated!

Received on Tuesday, 2 July 2002 14:54:46 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:27:32 UTC