Oh thank goodness.  I was worried my use of Batik was breaking stuff.
You've reassured me that it's more likely the library missing something.

On Sat, Nov 13, 2021 at 10:39 AM Thangalin <thanga...@gmail.com> wrote:

> Mermaid appears to be pushing the envelope of Batik's rendering code.
>
> Replicate
>
> First, create an SVG using MermaidJS. For example:
>
>    1. Start Firefox
>    2. Visit https://mermaid-js.github.io/mermaid-live-editor/edit/
>    3. Click View
>    4. Right-click on the page (not diagram)
>    5. Expand the DIV element in the developer tools
>    6. Right-click the SVG element
>    7. Click Copy >> Copy Outer HTML
>    8. Paste the contents into /tmp/mermaid.svg (or see attached)
>
> Next, render the SVG using Batik, such as the following on Linux:
>
>    1. Download Batik 1.14 into /tmp
>    2. Open terminal
>    3. Run:
>    mkdir temp
>    cd temp
>    tar xf /tmp/batik-bin-1.14.tar.gz
>    java -jar batik-1.14/batik-rasterizer-1.14.jar mermaid.svg
>
> Expected
>
> Batik renders the image as per how the browser renders the image.
>
> Actual
>
> Some text and colours are missing. See Batik's mermaid.png versus
> Firefox's firefox.png, attached.
>
> Question
>
> Any ideas about how to fix Batik? (It appears rsvg-convert also cannot
> render some Mermaid diagrams, so perhaps Mermaid is breaking spec?)
>
> Thank you!
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: batik-users-unsubscr...@xmlgraphics.apache.org
> For additional commands, e-mail: batik-users-h...@xmlgraphics.apache.org



-- 

Dan Royer

Owner
------------------------------
1 (604) 259 9564 <16042599564> d...@marginallyclever.com
www.marginallyclever.com <https://www.facebook.com/MarginallyClever/>
<https://www.instagram.com/imakerobots/>
<https://www.youtube.com/channel/UCfbRxqjuOgE2EzRKxcePArw>
<https://twitter.com/MarginallyC> <https://github.com/MarginallyClever/>

Reply via email to