papirus-icon-theme/tools
2019-09-19 20:37:54 +03:00
..
work Fix viewBox issue for font.svg and keyboard-font.svg 2019-09-19 20:37:54 +03:00
_clean_attrs.sed ffsvg.sh/svgo: convert ellipse to circle when it possible 2019-09-17 14:51:24 +03:00
_clean_style_attr.sed ffsvg.sh: remove clip-rule when clip-path is missing 2019-03-01 19:32:03 +02:00
_fix_color_scheme.sh Replace highlight color in templates and scripts 2019-02-14 12:08:56 +02:00
_scour.sh Disable ID stripping for scour 2019-03-29 12:05:39 +02:00
_svgo.yml ffsvg.sh/svgo: convert ellipse to circle when it possible 2019-09-17 14:51:24 +03:00
build_color_folders.sh Replace tabs with spaces in build_color_folders.sh 2019-04-17 12:43:17 +03:00
ffsvg.sh Minor changes to tools 2018-09-03 09:40:34 +03:00
README.md

Tools

  • ffsvg.sh PATH... — finds, fixes and cleans SVG files
  • _clean_attrs.sed — removes unused attributes and removes attributes with default values from elements inside SVG files (part of ffsvg.sh)
  • _clean_style_attr.sed — removes unused properties and removes properties with default values from style attributes inside SVG files (part of ffsvg.sh)
  • _fix_color_scheme.sh FILE... — looks in the SVG files for certain colors and replaces them with the corresponding stylesheet class. Fixes a color scheme after Inkscape (part of ffsvg.sh)
  • _scour.sh FILE... — Scour wrapper (part of ffsvg.sh)
  • _svgo.ymlSVGO configuraion (part of ffsvg.sh)

Useful snippets

Optimize and fix SVG files that are added or modified but not committed (recommended)

git status --porcelain | awk '/A|M/{print $2}' | xargs ./tools/ffsvg.sh

Optimize and fix SVG files that are committed in 043906b

git show --name-only 043906b | xargs ./tools/ffsvg.sh