question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

SVG conformance ?

See original GitHub issue

Hi, currently writing a LaTeX package to add smcat support, it appears Inkscape (and inkview.exe) cannot interpret correctly the produced svg output, ie. from your own example :

initial,
doing: entry/ write unit test
       do/ write code
       exit/ ...,
# smcat recognizes initial
# and final states by name
# and renders them appropriately
final;

initial      => "on backlog" : item adds most value;
"on backlog" => doing        : working on it;
doing        => testing      : built & unit tested;
testing      => "on backlog" : test not ok;
testing      => final        : test ok;

The svg output “features” something like <polygon fill="transparent" stroke="transparent" ... where "transparent" is not recognized.

Check this out :

https://tools.ietf.org/html/draft-brownlee-svg-rfc-13 <- https://tools.ietf.org/id/svg

Did you meant stroke-opacity instead of stroke ?

Please check the result not just in web browsers, but also with more conformant and less forgiving tools.

Btw you’re not the only one to produce “strange” svg files, https://github.com/mermaid-js/mermaid is also pretty “lazy” regarding svg conformance and Inkscape compatibility…

Anyway, good job overall…

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:17 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
Kochisecommented, Feb 4, 2021

Updated https://github.com/Kochise/latex-smcat to reflect your changes.

Many thanks again.

1reaction
Kochisecommented, Jan 25, 2021
Read more comments on GitHub >

github_iconTop Results From Across the Web

Conformance Criteria — SVG 2
This chapter also outlines specific conformance requirements for different types of SVG content, and different classes of software that use or create SVG....
Read more >
SVG conformance ? · Issue #1845 · mermaid-js/mermaid · GitHub
Hi, currently writing a LaTeX package to add mermaid support, it appears Inkscape (and inkview.exe) cannot interpret correctly the produced svg output, ...
Read more >
SVG compliance test - SpinetiX Support Wiki
Test file Test revision HMD 2.2.4 animate‑elem‑02‑t.svg 1.1 pass animate‑elem‑03‑t.svg 1.9 pass animate‑elem‑04‑t.svg 1.9 pass
Read more >
XSL Formatter V3.4 - SVG Conformance - ComponentSource CDN
SVG Conformance. XSL Formatter V3.4 conforms to W3C Scalable Vector Graphics (SVG) 1.1 and supports to display SVG images with a newly developed...
Read more >
AH Formatter V7.0 - SVG Conformance
This conformance is not for SVG Output. Element, Attribute, Condition, Comments. 5.1 <svg>, yes, xmlns="http:// ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found