Suppose, for an experiment, I wanted to develop a "plug-in component"
that could
edit MathML content. Ideally, I'd want the ability to edit inline so
that it would
be most natural for users.
For example, if I wanted a subscribed variable I'd need to have:
<math xmlns="http://www.w3.org/1998/Math/MathML">
<msub>
<mi>S</mi>
<mrow><mi>d</mi><mo>+</mo><mn>1</mn></mrow>
</msub>
</math>
which would give me the variable S with a subscribe of d+1.
Obviously, looking at the above, I'd want this to be formatted as an S
with d+1 as
the subscribe because the above markup isn't pretty. Ignoring the
interface issues
for the moment, is this possible? If I have some java component that
can use AWT+Swing
to render an appropriate editing interface, can this be plugged into
the XMLEditor?
...and have that GUI bit modify the document appropriately?
I'd want the following:
* Ultimately, I'd need the component to be able to tell the editor
whether it
should be block, inline-block, or inline.
* The size of the rendered component would be dependent on the
MathML content
read from the document. This, the bounding box (CSS box) would be
dependent
on feedback from the GUI component.
* I'd like to be able to take advantage of the character palette as
most
mathematics characters are available through unicode.
How difficult is this to integrate? Are there any examples?
Alex Milowski FAX: (707) 598-7649
alex at milowski.com
"The excellence of grammar as a guide is proportional to the paucity of
the
inflexions, i.e. to the degree of analysis effected by the language
considered."
Bertrand Russell in a footnote of Principles of Mathematics