Skip to content
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

SVG conformance ? #144

Open
Kochise opened this issue Jan 17, 2021 · 7 comments
Open

SVG conformance ? #144

Kochise opened this issue Jan 17, 2021 · 7 comments

Comments

@Kochise
Copy link

Kochise commented Jan 17, 2021

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

[<frame>Decorator pattern|
  [<abstract>Component||+ operation()]
  [Client] depends --> [Component]
  [Decorator|- next: Component]
  [Decorator] decorates -- [ConcreteComponent]
  [Component] <:- [Decorator]
  [Component] <:- [ConcreteComponent]
]

Check this out :

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

The main "problem" is that transparent is not recognized as a valid command by Inkscape.

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

Anyway, good job overall...

@Kochise
Copy link
Author

Kochise commented Jan 17, 2021

@Kochise
Copy link
Author

Kochise commented Jan 17, 2021

@Kochise
Copy link
Author

Kochise commented Jan 17, 2021

@skanaar
Copy link
Owner

skanaar commented Jan 18, 2021

Thank you for this bug report.
I'll look into spec conformance. Do you know any test suites or services that tests conformance? Would prefer to not manually test these things :)

Very nice with a LaTeX integration 😄

@Kochise
Copy link
Author

Kochise commented Jan 18, 2021

No problem, thanks for the support :p

I don't know about conformance test, as I wrote in the other issue I reported, a SvgTidy tool was supposed to do the job but never saw the light of day.

Maybe it's a Graphviz issue as well.

Will try to find a conformance tool.

@Kochise
Copy link
Author

Kochise commented Jan 25, 2021

Same problem : https://stackoverflow.com/questions/12464533/how-can-i-verify-a-svg-doc-is-correct-version-1-2

Sanitizer with debug output : https://github.com/darylldoyle/svg-sanitizer
Renderer and basic checker : https://svgcheck.toolforge.org/
SVG minifier : https://www.svgminify.com/
Optimizer : https://github.com/svg/svgo

Maybe that one might do it : https://github.com/web-platform-tests/wpt (from https://github.com/w3c/svgwg/wiki/Testing)
The live version is here : http://validator.w3.org/#validate_by_upload (upload a SVG, it will tell you what's wrong with it)

@Kochise
Copy link
Author

Kochise commented Mar 29, 2021

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants