-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
JDK-8210970 : MathML editing issues in HTMLEditor #4
Comments
New issue, new tool to debug.
|
Has to use :
Saves simplyfied content where |
Show formula given in LaTeX or its MathML-conversion in javafx-label
|
Presently, the patch for JDK-8147476 solves MathML display issues in WebView. Consequently, it solves MathML display in HTMLEditor too. The MathML rendering is pretty good and equivalent to MathML Rendering with Safari. Set HTMLEditor content with the following code displays the quadratic formula as expected in JDK-8089878.
The remaining problems are related to editing capabilities. Bugs :
Enhancements : A common user can not easily and directly use MathML to insert a mathematic formula in HTMLEditor.
Each test could be made with the previous MathML code. |
Cursor deplacements : |
See exchanges with ebraminio and khaledhosny. |
Bug id ? - Height of cursor should be same as row-height, not height of text.
|
Add Gradle wrapper files. Relates to #23
|
|
Enchaînement des appels de méthodes :
According this render implementation none paint should be made after a call to the renderBlock paint method. MathML implementation doesn't respect this and paint or paintChildren method are overided and paint proceed direct painting. L'écriture mathématique implique que certaines chaines soient en italique par exemple le nom d'une variable. Mais ce n'est pas le cas pour le nom d'une fonction. Pour simplifer, l'implémentation actuelle considère que les variables d'un seul caractère sont bien des variables et elles sont affichées en italique par exemple |
https://github.com/w3c/mathml : |
The purpose of this issue is to make mathematic editing as simple as possible.
This is referenced in Java Bug Database as
This is tracked in JBS as
Situation
Presently, the patch for JDK-8147476 (javafxports/openjdk-jfx Rendering issues with MathML token elements. w3c/mathml#117) allows to display MathML formula in
WebView
. Consequently we can also work with MathML inHTMLEditor
, the MathML rendering is pretty good.Justification
HTMLEditor
.To insert this simple quadratic formula :
You need to insert the following code :
Conclusions and Roadmap.
HTMLEditor
and underlyingWebView
i.e. embeddedWebKit
implementation are clearly not ready yet for formula editing. It still needs some work to solve issues.Details
HTMLEditor
doesn't create a new line when one presses Enter.<mi>
token when the identifier name has only one character. If the name of the identifier is longer than 1 character, the cursor appears normaly. Note : in W3C<mi>
description, The default font style should (typically) be "normal" (non-slanted) unless the content is a single character, in which case it should be "italic". This not occurs in<mn>
and<mo>
. It's a WebCore issue, then transfered in my WebKit Repository Issue#1.<mo>
, the caret disappears too but only with the minus sign. Related to Hyphen. It's also a WebCore issue, then transfered in my WebKit Repository Issue#2.<row>
or<math>
height (that's why, it is important to correct MathML code when loads a file or paste, see below about these<row>
add and remove corrections). In the following example, move from the left to the right, you can see that the caret height is good outside the formula and too small inside :The caret height should be the same on the two pictures. Its height should be its height just after the word 'test'. That's the usual behavior. So, its size before '+' is wrong. May be a WebCore problem too so transfered to Issue#4
<mi>
token.<mi>
with only one character, css attributes are not apply. It's a WebCore issue too, then transfered in my WebKit Repository Issue#3.See the same formula with my application ScientificPad, only one rectangle selection :
Port the language register selection method : daily french and english, AsciiMath, OpenOffice Math and LaTex languages.
Port the Fluent Mathematic Writing logic.
Related to HTMLEditor and MathML w3c/mathml#118
The text was updated successfully, but these errors were encountered: