- From: Peter <zegelin@actonline.com.au>
- Date: Mon, 1 Jul 2002 23:23:25 -0400 (EDT)
- To: <www-math@w3.org>
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! Peter
Received on Tuesday, 2 July 2002 14:30:37 UTC