papirus-icon-theme/tools
2025-04-02 18:45:28 +03:00
..
work Handle *-symbolic-rtl icons correctly 2025-04-02 18:45:28 +03:00
_clean_attrs.sed ffsvg.sh: handle 0 and 0.00n+ numbers in x|y|rx|ry 2023-08-20 17:54:08 +03:00
_clean_style_attr.sed ffsvg.sh: clean default values for Inkscape 1.2.2 2023-08-09 00:00:05 +03:00
_fix_color_scheme.sh Delete ePapirus from scripts and docs 2025-03-16 11:50:48 +02:00
_scour.sh Minor fixes to scripts 2019-11-19 13:34:03 +02:00
build_color_folders.sh Delete ePapirus from scripts and docs 2025-03-16 11:50:48 +02:00
ffsvg.sh docs: Fix scour dependencies for modern Debian. (#3936) 2025-01-29 11:42:46 +00:00
flathub_list_updater.sh Update Flathub apps list only when new apps detected #2007 2023-12-02 19:35:45 +02:00
make-dist.sh Fix indenting in make-dist.sh script 2023-12-19 14:36:54 +02:00
missing_flathub_apps.sh Remove app ids for apps that provide icons 2023-11-29 07:15:15 +02:00
missing_mimetypes.sh Add a script to find missing mimetypes icons. 2025-03-17 10:15:02 +02:00
README.md fix typos 2021-09-23 18:43:19 +03:00
svgo.config.js svgo: change plugins order to fix sortAttrs 2021-02-19 16:06:40 +02:00

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.config.jsSVGO configuration (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