gusbemacbe / suru-plus

Suru++ 25 — A cyberpunk, elegant, futuristic and Papirus-like third-party icons theme
GNU General Public License v3.0
337 stars 32 forks source link

To preserve "inkscape:label" and "id" in the script ffsvg and to exclude certain icons #121

Closed gusbemacbe closed 5 years ago

gusbemacbe commented 5 years ago

Hello @SmartFinn !

  1. Is it possible to preserve the inkscape:labels and ids during the script ffsvg?
  2. Is it possible to exclude some icons (firefox.svg, etc.) during the script ffsvg which will optimise all once in a while?
SmartFinn commented 5 years ago

Is it possible to preserve the inkscape:labels and ids during the script ffsvg?

Comment the following lines in _svgo.yml

  # removes editors namespaces, elements and attributes
  # - removeEditorsNSData
  # removes unused IDs
  # - cleanupIDs:
  #    minify: false
  #    preserve: [ 'current-color-scheme' ]

But after the changes SVG files will be huge.

Is it possible to exclude some icons (firefox.svg, etc.) during the script ffsvg which will optimise all once in a while?

It's not provided.

gusbemacbe commented 5 years ago

Comment the following lines in _svgo.yml

  # removes editors namespaces, elements and attributes
  # - removeEditorsNSData

Unfortunately it left many Inkscape tags. I pulled a suggestion in the issues list of the SVGO repository.