Hello Martin. Thank you for this information. Glad to see that you have
thought about using <imageToolkit>
(https://www.xmlmind.com/xmleditor/_distrib/doc/configure/imageToolkit.html).
On 4/14/25 18:23, Martin Goik wrote:
Dear Hussein,
That's good news! For the time being I've configured a transitionary
approach for myself namely treating Plantuml graphics like ordinary images.
For Xmledit rendering I'm using:
<imageToolkit name="Plantuml creating png">
<description>Converts Plantuml to PNG.</description>
<converter>
<input extensions="puml"
magicStrings="@startuml" />
<output extensions="png"/>
<shell
command='cat "%I" | plantuml -p > "%O"' /> <!-- requires
plantuml being installed -->
</converter>
</imageToolkit>
This in my case allows for using regular Docbook <imagedata
fileref="start.puml"/> elements. It basically handles Plantuml graphics
like other (symbolic) image types e.g. SVG. Obvious limitations:
1. A shell rendering process delays image conversion in comparison to a
true Java based image plugin residing in Xxe's process space
2. Images in generated (Webhelp) output will not show up due to lacking
a conversion from Plantuml to e.g. svg.
Plantuml being pure Java both problems might be solvable with limited
effort. Unfortunately this is not true for Mermaid diagrams which some
of your users might fancy as well.
Addressing the second topic I've modified my own webhelp pipeline
converting Plantuml diagram files to svg. plantuml.jar seems to be quite
stable so far.
Martin
--
XMLmind XML Editor Support List
[email protected]
http://www.xmlmind.com/mailman/listinfo/xmleditor-support