Skip to content
This repository has been archived by the owner on Oct 30, 2021. It is now read-only.

Error: Conditional processing attributes is not supported. #107

Closed
JoKalliauer opened this issue Dec 14, 2017 · 6 comments
Closed

Error: Conditional processing attributes is not supported. #107

JoKalliauer opened this issue Dec 14, 2017 · 6 comments

Comments

@JoKalliauer
Copy link
Contributor

If i compress https://commons.wikimedia.org/wiki/File:Germanwings_Flight_9525_flight_path_topographic_vector.svg
with:

$ svgcleaner.exe Germanwings_Flight_9525_flight_path_topographic_vector.svg test.svg

I get an Error:
Error: Conditional processing attributes is not supported.

@RazrFalcon
Copy link
Owner

Yes. Such svg files is not supported.

@JoKalliauer
Copy link
Contributor Author

JoKalliauer commented Dec 14, 2017

So the language-switch is not supported.
I am repairing broken Files and make workarounds for libRSVG-bugs on Wikipedia: https://github.com/JoKalliauer/cleanupSVG
(Not as great tool as yours and much more then 10times slower)

My tool searches for svg-files in the current folder and uses different tools such as scour or yours and save the output as new svg and the old one will be renamed to a backup-file with a different fileextension, therfore the next tool can't find any svg-files. (I could rewrite my code.)

Therefore I have two questions:
1)is it (easily) possible to compress the part outside the language-switch (without cut&paste the < switch>[...]< / switch> on my own)
2)If svgcleaner is not possible to handle the file, can I enforce svgcleaner to write "any" file (the unprocessed file)?

@RazrFalcon
Copy link
Owner

RazrFalcon commented Dec 15, 2017

  1. Currently - no. switch is the easy one, but there are stuff that will never be supported, like scripting and animations. It's too easy to mess up everything, so svgcleaner just skip those files completely for now.
  2. --copy-on-error?

@JoKalliauer
Copy link
Contributor Author

Thanks great. Shame on me, again didn't read
$ svgcleaner.exe --help
because I expected it is not implemented.

Your tool is great 👍 and the support also, and an awesome documentation.
I like the perception of (good &) free software and also this great support, for my dumb questions.

Therefore I would like to thank you with to financially support (just in the amount of a coffee or so) your open source project.

@RazrFalcon
Copy link
Owner

Thanks, but I don't have an online wallet. =)

@RazrFalcon
Copy link
Owner

Conditional processing depends on UA, so it can be done in the svgc.

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

No branches or pull requests

2 participants