Discussion:
MathML editing in BitFlux possible
s***@writtenauthority.com
2004-05-16 10:27:54 UTC
Permalink
Hi,

I'm am wondering whether it could be possible to do WYSIWYG editing of
MathML with BitFlux or any other WYSIWYG browser based editor.

Thanks

Steven
--
bx-editor-dev mailing list
bx-editor-***@lists.bitflux.ch
http://lists.bitflux.ch/cgi-bin/listinfo/bx-editor-dev
Christian Stocker
2004-05-16 11:15:35 UTC
Permalink
Post by s***@writtenauthority.com
Hi,
I'm am wondering whether it could be possible to do WYSIWYG editing of
MathML with BitFlux or any other WYSIWYG browser based editor.
AFAIK, Mozilla does understand MathML, right? So therefore it would be
theoretically possible, although never tried it.

One problem would be, that BXE would try to translate MathML Elements to
some HTML and this should be prevented in this case (as we do with
Elements in the XHTML Namespace itself).

Is there any MathML Relax NG somewhere? Then we could try to do that

chregu
Post by s***@writtenauthority.com
Thanks
Steven
--
christian stocker | Bitflux GmbH | schoeneggstrasse 5 | ch-8004 zurich
phone +41 1 240 56 70 | mobile +41 76 561 88 60 | fax +41 1 240 56 71
http://www.bitflux.ch | ***@bitflux.ch | gnupg-keyid 0x5CE1DECB
--
bx-editor-dev mailing list
bx-editor-***@lists.bitflux.ch
http://lists.bitflux.ch/cgi-bin/listinfo/bx-editor-dev
Steven Chan
2004-05-17 01:12:12 UTC
Permalink
Hi chregu,

I think docbook has some MathML for RelaxNG. I think it is a docbook module.

I've been looking at many different Online WYSIWY editors and I'm trying
to find out the difference between them and BitFlux. I am just curious,
but does BitFlux use the Rich-Text Editing features of Mozilla? Or does
it use something else totally different? I figure that since you need
caret browsing, it is probably uses a different architecture than most
WYSIWYG editors.

Anyway, lets say there was a RelaxNG schema for MathML. Would it be very
hard to modify BitFlux to incorporate that? I'm just a PHP programmer
myself and know only enough javascript to get confirm dialog boxes to
appear.

Please forgive me if I appear very ignorant.

Thanks

Steven
Post by Christian Stocker
Post by s***@writtenauthority.com
Hi,
I'm am wondering whether it could be possible to do WYSIWYG editing of
MathML with BitFlux or any other WYSIWYG browser based editor.
AFAIK, Mozilla does understand MathML, right? So therefore it would be
theoretically possible, although never tried it.
One problem would be, that BXE would try to translate MathML Elements to
some HTML and this should be prevented in this case (as we do with
Elements in the XHTML Namespace itself).
Is there any MathML Relax NG somewhere? Then we could try to do that
chregu
Post by s***@writtenauthority.com
Thanks
Steven
--
bx-editor-dev mailing list
bx-editor-***@lists.bitflux.ch
http://lists.bitflux.ch/cgi-bin/listinfo/bx-editor-dev
Christian Stocker
2004-05-17 09:08:43 UTC
Permalink
Hi

I did some quick tests with MathML. And it would be technically
possible, but the Mozilla MathML Parser is quite picky... If I delete
for example a number in a tag, i immediatly get "invalid markup" error
and can't edit that node anymore (except in source mode).

Furthermore, it's not that easy to edit MathML with BXE, since it has
quite a complex and deep XML Structure and you don't have currently any
shortcuts in BXE for easy MathML editing.

Nevertheless I put my testings online at
http://cvsdemo.bitfluxeditor.org/examples/MathML
(it's in Subversion as well, if you want to hack on that)

The relaxng schema was generated with Trang from the example i took
(http://cvsdemo.bitfluxeditor.org/examples/MathML/inline.xml)
Post by Steven Chan
I think docbook has some MathML for RelaxNG. I think it is a docbook module.
I've been looking at many different Online WYSIWY editors and I'm trying
to find out the difference between them and BitFlux. I am just curious,
but does BitFlux use the Rich-Text Editing features of Mozilla?
nope
Post by Steven Chan
Or does
it use something else totally different? I figure that since you need
caret browsing, it is probably uses a different architecture than most
WYSIWYG editors.
yes, we use mozile as underlying library, which directly communicates
with the DOM of Mozilla. Therefore every keystroke and every action is
handled by Mozile resp. BXE itself.

Have fun and if you have any further questions, just ask

chregu
Post by Steven Chan
Anyway, lets say there was a RelaxNG schema for MathML. Would it be very
hard to modify BitFlux to incorporate that? I'm just a PHP programmer
myself and know only enough javascript to get confirm dialog boxes to
appear.
Please forgive me if I appear very ignorant.
Thanks
Steven
Post by Christian Stocker
Post by s***@writtenauthority.com
Hi,
I'm am wondering whether it could be possible to do WYSIWYG editing of
MathML with BitFlux or any other WYSIWYG browser based editor.
AFAIK, Mozilla does understand MathML, right? So therefore it would be
theoretically possible, although never tried it.
One problem would be, that BXE would try to translate MathML Elements
to some HTML and this should be prevented in this case (as we do with
Elements in the XHTML Namespace itself).
Is there any MathML Relax NG somewhere? Then we could try to do that
chregu
Post by s***@writtenauthority.com
Thanks
Steven
--
christian stocker | Bitflux GmbH | schoeneggstrasse 5 | ch-8004 zurich
phone +41 1 240 56 70 | mobile +41 76 561 88 60 | fax +41 1 240 56 71
http://www.bitflux.ch | ***@bitflux.ch | gnupg-keyid 0x5CE1DECB
--
bx-editor-dev mailing list
bx-editor-***@lists.bitflux.ch
http://lists.bitflux.ch/cgi-bin/listinfo/bx-editor-dev
Steven Chan
2004-05-17 10:22:37 UTC
Permalink
Thanks so much chregu,

Just a few questions. In the example, why does the MathML not render as
nice equations (like the example)? I'm using Mozilla 1.5 on Win2K. Is it
supposed to be like that and is that a limitation of Mozilla?

Once again, thanks so much for your help. I will play around with BitFlux.

Steven
Post by Christian Stocker
Hi
I did some quick tests with MathML. And it would be technically
possible, but the Mozilla MathML Parser is quite picky... If I delete
for example a number in a tag, i immediatly get "invalid markup" error
and can't edit that node anymore (except in source mode).
Furthermore, it's not that easy to edit MathML with BXE, since it has
quite a complex and deep XML Structure and you don't have currently any
shortcuts in BXE for easy MathML editing.
Nevertheless I put my testings online at
http://cvsdemo.bitfluxeditor.org/examples/MathML
(it's in Subversion as well, if you want to hack on that)
The relaxng schema was generated with Trang from the example i took
(http://cvsdemo.bitfluxeditor.org/examples/MathML/inline.xml)
Post by Steven Chan
I think docbook has some MathML for RelaxNG. I think it is a docbook module.
I've been looking at many different Online WYSIWY editors and I'm
trying to find out the difference between them and BitFlux. I am just
curious, but does BitFlux use the Rich-Text Editing features of Mozilla?
nope
Post by Steven Chan
Or does it use something else totally different? I figure that since
you need caret browsing, it is probably uses a different architecture
than most WYSIWYG editors.
yes, we use mozile as underlying library, which directly communicates
with the DOM of Mozilla. Therefore every keystroke and every action is
handled by Mozile resp. BXE itself.
Have fun and if you have any further questions, just ask
chregu
Post by Steven Chan
Anyway, lets say there was a RelaxNG schema for MathML. Would it be
very hard to modify BitFlux to incorporate that? I'm just a PHP
programmer myself and know only enough javascript to get confirm
dialog boxes to appear.
Please forgive me if I appear very ignorant.
Thanks
Steven
Post by Christian Stocker
Post by s***@writtenauthority.com
Hi,
I'm am wondering whether it could be possible to do WYSIWYG editing of
MathML with BitFlux or any other WYSIWYG browser based editor.
AFAIK, Mozilla does understand MathML, right? So therefore it would
be theoretically possible, although never tried it.
One problem would be, that BXE would try to translate MathML Elements
to some HTML and this should be prevented in this case (as we do with
Elements in the XHTML Namespace itself).
Is there any MathML Relax NG somewhere? Then we could try to do that
chregu
Post by s***@writtenauthority.com
Thanks
Steven
--
bx-editor-dev mailing list
bx-editor-***@lists.bitflux.ch
http://lists.bitflux.ch/cgi-bin/listinfo/bx-editor-dev
Christian Stocker
2004-05-17 10:16:49 UTC
Permalink
Post by Steven Chan
Thanks so much chregu,
Just a few questions. In the example, why does the MathML not render as
nice equations (like the example)? I'm using Mozilla 1.5 on Win2K. Is it
supposed to be like that and is that a limitation of Mozilla?
It does render quite nicely on my Mozilla 1.6 on Mac OSX. How does it
look like on your machine? Can you send me a screenshot?

chregu
Post by Steven Chan
Once again, thanks so much for your help. I will play around with BitFlux.
Steven
Post by Christian Stocker
Hi
I did some quick tests with MathML. And it would be technically
possible, but the Mozilla MathML Parser is quite picky... If I delete
for example a number in a tag, i immediatly get "invalid markup" error
and can't edit that node anymore (except in source mode).
Furthermore, it's not that easy to edit MathML with BXE, since it has
quite a complex and deep XML Structure and you don't have currently
any shortcuts in BXE for easy MathML editing.
Nevertheless I put my testings online at
http://cvsdemo.bitfluxeditor.org/examples/MathML
(it's in Subversion as well, if you want to hack on that)
The relaxng schema was generated with Trang from the example i took
(http://cvsdemo.bitfluxeditor.org/examples/MathML/inline.xml)
Post by Steven Chan
I think docbook has some MathML for RelaxNG. I think it is a docbook module.
I've been looking at many different Online WYSIWY editors and I'm
trying to find out the difference between them and BitFlux. I am just
curious, but does BitFlux use the Rich-Text Editing features of Mozilla?
nope
Post by Steven Chan
Or does it use something else totally different? I figure that since
you need caret browsing, it is probably uses a different architecture
than most WYSIWYG editors.
yes, we use mozile as underlying library, which directly communicates
with the DOM of Mozilla. Therefore every keystroke and every action is
handled by Mozile resp. BXE itself.
Have fun and if you have any further questions, just ask
chregu
Post by Steven Chan
Anyway, lets say there was a RelaxNG schema for MathML. Would it be
very hard to modify BitFlux to incorporate that? I'm just a PHP
programmer myself and know only enough javascript to get confirm
dialog boxes to appear.
Please forgive me if I appear very ignorant.
Thanks
Steven
Post by Christian Stocker
Post by s***@writtenauthority.com
Hi,
I'm am wondering whether it could be possible to do WYSIWYG editing of
MathML with BitFlux or any other WYSIWYG browser based editor.
AFAIK, Mozilla does understand MathML, right? So therefore it would
be theoretically possible, although never tried it.
One problem would be, that BXE would try to translate MathML
Elements to some HTML and this should be prevented in this case (as
we do with Elements in the XHTML Namespace itself).
Is there any MathML Relax NG somewhere? Then we could try to do that
chregu
Post by s***@writtenauthority.com
Thanks
Steven
--
christian stocker | Bitflux GmbH | schoeneggstrasse 5 | ch-8004 zurich
phone +41 1 240 56 70 | mobile +41 76 561 88 60 | fax +41 1 240 56 71
http://www.bitflux.ch | ***@bitflux.ch | gnupg-keyid 0x5CE1DECB
--
bx-editor-dev mailing list
bx-editor-***@lists.bitflux.ch
http://lists.bitflux.ch/cgi-bin/listinfo/bx-editor-dev
Steven Chan
2004-05-17 10:47:01 UTC
Permalink
Hi chregu

Here is the screen shot. Maybe I will install a newer version of Mozilla
or FireFox.

Thanks

Steven
Post by Christian Stocker
Post by Steven Chan
Thanks so much chregu,
Just a few questions. In the example, why does the MathML not render
as nice equations (like the example)? I'm using Mozilla 1.5 on Win2K.
Is it supposed to be like that and is that a limitation of Mozilla?
It does render quite nicely on my Mozilla 1.6 on Mac OSX. How does it
look like on your machine? Can you send me a screenshot?
chregu
Post by Steven Chan
Once again, thanks so much for your help. I will play around with BitFlux.
Steven
Post by Christian Stocker
Hi
I did some quick tests with MathML. And it would be technically
possible, but the Mozilla MathML Parser is quite picky... If I delete
for example a number in a tag, i immediatly get "invalid markup"
error and can't edit that node anymore (except in source mode).
Furthermore, it's not that easy to edit MathML with BXE, since it has
quite a complex and deep XML Structure and you don't have currently
any shortcuts in BXE for easy MathML editing.
Nevertheless I put my testings online at
http://cvsdemo.bitfluxeditor.org/examples/MathML
(it's in Subversion as well, if you want to hack on that)
The relaxng schema was generated with Trang from the example i took
(http://cvsdemo.bitfluxeditor.org/examples/MathML/inline.xml)
Post by Steven Chan
I think docbook has some MathML for RelaxNG. I think it is a docbook module.
I've been looking at many different Online WYSIWY editors and I'm
trying to find out the difference between them and BitFlux. I am
just curious, but does BitFlux use the Rich-Text Editing features of
Mozilla?
nope
Post by Steven Chan
Or does it use something else totally different? I figure that since
you need caret browsing, it is probably uses a different
architecture than most WYSIWYG editors.
yes, we use mozile as underlying library, which directly communicates
with the DOM of Mozilla. Therefore every keystroke and every action
is handled by Mozile resp. BXE itself.
Have fun and if you have any further questions, just ask
chregu
Post by Steven Chan
Anyway, lets say there was a RelaxNG schema for MathML. Would it be
very hard to modify BitFlux to incorporate that? I'm just a PHP
programmer myself and know only enough javascript to get confirm
dialog boxes to appear.
Please forgive me if I appear very ignorant.
Thanks
Steven
Post by Christian Stocker
Post by s***@writtenauthority.com
Hi,
I'm am wondering whether it could be possible to do WYSIWYG editing of
MathML with BitFlux or any other WYSIWYG browser based editor.
AFAIK, Mozilla does understand MathML, right? So therefore it would
be theoretically possible, although never tried it.
One problem would be, that BXE would try to translate MathML
Elements to some HTML and this should be prevented in this case (as
we do with Elements in the XHTML Namespace itself).
Is there any MathML Relax NG somewhere? Then we could try to do that
chregu
Post by s***@writtenauthority.com
Thanks
Steven
Christian Stocker
2004-05-17 11:27:12 UTC
Permalink
Post by Steven Chan
Hi chregu
Here is the screen shot. Maybe I will install a newer version of Mozilla
or FireFox.
mmh, yes, that looks quite differently in my browser ;)

chregu
Post by Steven Chan
Thanks
Steven
Post by Christian Stocker
Post by Steven Chan
Thanks so much chregu,
Just a few questions. In the example, why does the MathML not render
as nice equations (like the example)? I'm using Mozilla 1.5 on Win2K.
Is it supposed to be like that and is that a limitation of Mozilla?
It does render quite nicely on my Mozilla 1.6 on Mac OSX. How does it
look like on your machine? Can you send me a screenshot?
chregu
Post by Steven Chan
Once again, thanks so much for your help. I will play around with BitFlux.
Steven
Post by Christian Stocker
Hi
I did some quick tests with MathML. And it would be technically
possible, but the Mozilla MathML Parser is quite picky... If I
delete for example a number in a tag, i immediatly get "invalid
markup" error and can't edit that node anymore (except in source mode).
Furthermore, it's not that easy to edit MathML with BXE, since it
has quite a complex and deep XML Structure and you don't have
currently any shortcuts in BXE for easy MathML editing.
Nevertheless I put my testings online at
http://cvsdemo.bitfluxeditor.org/examples/MathML
(it's in Subversion as well, if you want to hack on that)
The relaxng schema was generated with Trang from the example i took
(http://cvsdemo.bitfluxeditor.org/examples/MathML/inline.xml)
Post by Steven Chan
I think docbook has some MathML for RelaxNG. I think it is a docbook module.
I've been looking at many different Online WYSIWY editors and I'm
trying to find out the difference between them and BitFlux. I am
just curious, but does BitFlux use the Rich-Text Editing features
of Mozilla?
nope
Post by Steven Chan
Or does it use something else totally different? I figure that
since you need caret browsing, it is probably uses a different
architecture than most WYSIWYG editors.
yes, we use mozile as underlying library, which directly
communicates with the DOM of Mozilla. Therefore every keystroke and
every action is handled by Mozile resp. BXE itself.
Have fun and if you have any further questions, just ask
chregu
Post by Steven Chan
Anyway, lets say there was a RelaxNG schema for MathML. Would it be
very hard to modify BitFlux to incorporate that? I'm just a PHP
programmer myself and know only enough javascript to get confirm
dialog boxes to appear.
Please forgive me if I appear very ignorant.
Thanks
Steven
Post by Christian Stocker
Post by s***@writtenauthority.com
Hi,
I'm am wondering whether it could be possible to do WYSIWYG editing of
MathML with BitFlux or any other WYSIWYG browser based editor.
AFAIK, Mozilla does understand MathML, right? So therefore it
would be theoretically possible, although never tried it.
One problem would be, that BXE would try to translate MathML
Elements to some HTML and this should be prevented in this case
(as we do with Elements in the XHTML Namespace itself).
Is there any MathML Relax NG somewhere? Then we could try to do that
chregu
Post by s***@writtenauthority.com
Thanks
Steven
------------------------------------------------------------------------
--
christian stocker | Bitflux GmbH | schoeneggstrasse 5 | ch-8004 zurich
phone +41 1 240 56 70 | mobile +41 76 561 88 60 | fax +41 1 240 56 71
http://www.bitflux.ch | ***@bitflux.ch | gnupg-keyid 0x5CE1DECB
--
bx-editor-dev mailing list
bx-editor-***@lists.bitflux.ch
http://lists.bitflux.ch/cgi-bin/listinfo/bx-editor-dev
Steven Chan
2004-05-17 11:53:04 UTC
Permalink
Hi chregu,

I installed FireFox0.8 and it renders ok. In fact, I also get the
"Invalid markup" warning when I try to edit.

Once again, thanks for all your help.

Steven
Post by Christian Stocker
Post by Steven Chan
Hi chregu
Here is the screen shot. Maybe I will install a newer version of
Mozilla or FireFox.
mmh, yes, that looks quite differently in my browser ;)
chregu
Post by Steven Chan
Thanks
Steven
Post by Christian Stocker
Post by Steven Chan
Thanks so much chregu,
Just a few questions. In the example, why does the MathML not render
as nice equations (like the example)? I'm using Mozilla 1.5 on
Win2K. Is it supposed to be like that and is that a limitation of
Mozilla?
It does render quite nicely on my Mozilla 1.6 on Mac OSX. How does it
look like on your machine? Can you send me a screenshot?
chregu
Post by Steven Chan
Once again, thanks so much for your help. I will play around with BitFlux.
Steven
Post by Christian Stocker
Hi
I did some quick tests with MathML. And it would be technically
possible, but the Mozilla MathML Parser is quite picky... If I
delete for example a number in a tag, i immediatly get "invalid
markup" error and can't edit that node anymore (except in source mode).
Furthermore, it's not that easy to edit MathML with BXE, since it
has quite a complex and deep XML Structure and you don't have
currently any shortcuts in BXE for easy MathML editing.
Nevertheless I put my testings online at
http://cvsdemo.bitfluxeditor.org/examples/MathML
(it's in Subversion as well, if you want to hack on that)
The relaxng schema was generated with Trang from the example i took
(http://cvsdemo.bitfluxeditor.org/examples/MathML/inline.xml)
Post by Steven Chan
I think docbook has some MathML for RelaxNG. I think it is a docbook module.
I've been looking at many different Online WYSIWY editors and I'm
trying to find out the difference between them and BitFlux. I am
just curious, but does BitFlux use the Rich-Text Editing features
of Mozilla?
nope
Post by Steven Chan
Or does it use something else totally different? I figure that
since you need caret browsing, it is probably uses a different
architecture than most WYSIWYG editors.
yes, we use mozile as underlying library, which directly
communicates with the DOM of Mozilla. Therefore every keystroke and
every action is handled by Mozile resp. BXE itself.
Have fun and if you have any further questions, just ask
chregu
Post by Steven Chan
Anyway, lets say there was a RelaxNG schema for MathML. Would it
be very hard to modify BitFlux to incorporate that? I'm just a PHP
programmer myself and know only enough javascript to get confirm
dialog boxes to appear.
Please forgive me if I appear very ignorant.
Thanks
Steven
Post by Christian Stocker
Post by s***@writtenauthority.com
Hi,
I'm am wondering whether it could be possible to do WYSIWYG editing of
MathML with BitFlux or any other WYSIWYG browser based editor.
AFAIK, Mozilla does understand MathML, right? So therefore it
would be theoretically possible, although never tried it.
One problem would be, that BXE would try to translate MathML
Elements to some HTML and this should be prevented in this case
(as we do with Elements in the XHTML Namespace itself).
Is there any MathML Relax NG somewhere? Then we could try to do that
chregu
Post by s***@writtenauthority.com
Thanks
Steven
------------------------------------------------------------------------
--
bx-editor-dev mailing list
bx-editor-***@lists.bitflux.ch
http://lists.bitflux.ch/cgi-bin/listinfo/bx-editor-dev
Loading...