dynamic action name
Are you missing a feature? Request its implementation here.
-
- Posts: 14
- Joined: Thu Sep 24, 2020 8:20 pm
dynamic action name
Is there any way to use editor variables like ${xpath_eval()} for the name of an action defined in a framework or to dynamically generate the action name used for oxy_button? We have a use-case where CSS is defining an oxy_button(...) and the hover text needs to be unique based on attributes of the element it is in. This is for Web Author, but it would be good to know if the functionality exists in the desktop version as well.
The action itself is JS, but the oxy_button is clearly pulling the name from the 'name' field in the framework file instead of getDisplayName. I know there is a way to define the action and the name in the CSS itself using oxy_action. In our case though, the java would be an AuthorOperationWithResult and would still need to continue in JS, so I don't think we can use oxy_action.
The action itself is JS, but the oxy_button is clearly pulling the name from the 'name' field in the framework file instead of getDisplayName. I know there is a way to define the action and the name in the CSS itself using oxy_action. In our case though, the java would be an AuthorOperationWithResult and would still need to continue in JS, so I don't think we can use oxy_action.
-
- Posts: 517
- Joined: Thu Sep 04, 2014 4:22 pm
Re: dynamic action name
Post by cristi_talau »
Hello,
The builtin button does not offer this degree of flexibility. However you can implement a custom form control that behaves like a button, but has a dynamic name. Here is a tutorial [1] and we also have an example which renders MathML equations on GitHub [2].
Best,
Cristian
[1] https://www.oxygenxml.com/maven/com/oxy ... ntrol.html
[2] https://github.com/oxygenxml/web-author-mathml-plugin
The builtin button does not offer this degree of flexibility. However you can implement a custom form control that behaves like a button, but has a dynamic name. Here is a tutorial [1] and we also have an example which renders MathML equations on GitHub [2].
Best,
Cristian
[1] https://www.oxygenxml.com/maven/com/oxy ... ntrol.html
[2] https://github.com/oxygenxml/web-author-mathml-plugin
-
- Posts: 24
- Joined: Tue Jun 08, 2021 8:22 pm
MathML rendering. Was "dynamic action name"
Post by jeankaplansky »
@cristi - please tell me more about the mathml plugin in Github? Does this enable JEuclid math rendering? Is it possible to use this plugin as the basis of a new plugin to enable MathJax rendering in OWA?
Jean Kaplansky
Kaplan North America
jean.kaplansky at kaplan dot com
Kaplan North America
jean.kaplansky at kaplan dot com
-
- Posts: 517
- Joined: Thu Sep 04, 2014 4:22 pm
Re: dynamic action name
Post by cristi_talau »
Hello,
You have several options here:
Cristian
You have several options here:
- Fork our MathML plugin that uses JEuclid and modify it to use MathJAX.
- Use a commercial plugin from WIRIS: https://docs.wiris.com/mathtype/en/math ... uthor.html.
- Use our Latex plugin that uses MathJAX to render Latex equations, or modify it to support also MathML: https://github.com/oxygenxml-incubator/ ... tex-plugin
Cristian
-
- Posts: 24
- Joined: Tue Jun 08, 2021 8:22 pm
Re: dynamic action name
Post by jeankaplansky »
Thanks. We are running. The WIRIS MathType plug-in. We are experiencing issues with the plug-in and OWA V24.1.
Math isn’t rendering properly in OWA and double-clicking an expression no longer launches MathType. The MathML is valid.
I’ll check in with WIRIS.
Do I understand correctly that WIRIS MathType formatting should be visible as rendered math in OWA when we are not in an active MathType editor dialog? Or do we still need a rendering plug-in to get MathML 3.0 support to render math in the OWA editing pane? We have authors and reviewers who are expecting fidelity in math display between what they see in the MathType plug-in and what they see in OWA when MathType is closed.
Thanks for clarifying.
Math isn’t rendering properly in OWA and double-clicking an expression no longer launches MathType. The MathML is valid.
I’ll check in with WIRIS.
Do I understand correctly that WIRIS MathType formatting should be visible as rendered math in OWA when we are not in an active MathType editor dialog? Or do we still need a rendering plug-in to get MathML 3.0 support to render math in the OWA editing pane? We have authors and reviewers who are expecting fidelity in math display between what they see in the MathType plug-in and what they see in OWA when MathType is closed.
Thanks for clarifying.
Jean Kaplansky
Kaplan North America
jean.kaplansky at kaplan dot com
Kaplan North America
jean.kaplansky at kaplan dot com
-
- Posts: 517
- Joined: Thu Sep 04, 2014 4:22 pm
Re: dynamic action name
Post by cristi_talau »
Hello,
When I tested the WIRIS add-on with Web Author version 23.1, it handled both rendering of MathML equations and editing with consistence between renderings.
You can try to contact WIRIS regarding this plugin. You can also add our support email address in CC.
Best,
Cristian
When I tested the WIRIS add-on with Web Author version 23.1, it handled both rendering of MathML equations and editing with consistence between renderings.
You can try to contact WIRIS regarding this plugin. You can also add our support email address in CC.
Best,
Cristian
-
- Posts: 24
- Joined: Tue Jun 08, 2021 8:22 pm
Re: dynamic action name
Post by jeankaplansky »
Thanks, Cristian - I've contacted my SaaS provider (Componize). They manage both our OWA installations and are in direct contact with WIRIS.
Other than the WIRIS outage: Some teams have very high expectations of MathML presentation - they want whatever they see in MathType to render precisely as what they see as "correct" rendering via MathJax in our LMS. I've been down this path before. Achieving fidelity between MathType and MathJax rendering is not entirely possible in my experience. I've had to do some extraordinary things to MathML to get the requested rendering in MathJax, and the resulting MathType rendering does not match. My previous experience is what is driving my question about using a MathML rendering plugin in OWA to achieve MathJax fidelity.
Please tell me how difficult it is to develop a plug-in that uses MathJax for rendering equations directly in the OWA pane that runs alongside the WIRIS MathType plugin. Or is this even possible? You can use T-shirt sizes to tell me how complex the development requirements may be to do something like this.
Thanks!
Jean
Other than the WIRIS outage: Some teams have very high expectations of MathML presentation - they want whatever they see in MathType to render precisely as what they see as "correct" rendering via MathJax in our LMS. I've been down this path before. Achieving fidelity between MathType and MathJax rendering is not entirely possible in my experience. I've had to do some extraordinary things to MathML to get the requested rendering in MathJax, and the resulting MathType rendering does not match. My previous experience is what is driving my question about using a MathML rendering plugin in OWA to achieve MathJax fidelity.
Please tell me how difficult it is to develop a plug-in that uses MathJax for rendering equations directly in the OWA pane that runs alongside the WIRIS MathType plugin. Or is this even possible? You can use T-shirt sizes to tell me how complex the development requirements may be to do something like this.
Thanks!
Jean
Jean Kaplansky
Kaplan North America
jean.kaplansky at kaplan dot com
Kaplan North America
jean.kaplansky at kaplan dot com
-
- Posts: 517
- Joined: Thu Sep 04, 2014 4:22 pm
Re: dynamic action name
Post by cristi_talau »
Hello,
We have a plugin that renders MathML with JEuclid (https://github.com/oxygenxml/web-author-mathml-plugin) and another one that renders LateX with MathJAX (https://github.com/oxygenxml-incubator/ ... ex-plugin/).
To create a plugin that renders MathML equations using MathJAX you have to start with the Latex plugin and change several things:
Best,
Cristian
We have a plugin that renders MathML with JEuclid (https://github.com/oxygenxml/web-author-mathml-plugin) and another one that renders LateX with MathJAX (https://github.com/oxygenxml-incubator/ ... ex-plugin/).
To create a plugin that renders MathML equations using MathJAX you have to start with the Latex plugin and change several things:
- The CSS that controls on which elements to apply the equation rendering - you can copy this from the MathML plugin
- The way in which the math content is sent to the browser (https://github.com/oxygenxml-incubator/ ... r.java#L42) . Here you have to serialize the MathML equation similar to what we do here: https://github.com/oxygenxml/web-author ... e.java#L73
Best,
Cristian
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ SDK-API, Frameworks - Document Types
- ↳ DocBook
- ↳ TEI
- ↳ XHTML
- ↳ Other Issues
- Oxygen XML Web Author
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Content Fusion
- ↳ Feature Request
- ↳ Common Problems
- Oxygen JSON Editor
- ↳ Feature Request
- ↳ Common Problems
- Oxygen PDF Chemistry
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Feedback
- ↳ Feature Request
- ↳ Common Problems
- Oxygen XML WebHelp
- ↳ Feature Request
- ↳ Common Problems
- XML
- ↳ General XML Questions
- ↳ XSLT and FOP
- ↳ XML Schemas
- ↳ XQuery
- NVDL
- ↳ General NVDL Issues
- ↳ oNVDL Related Issues
- XML Services Market
- ↳ Offer a Service