diff options
author | Jakub Steiner <jimmac@gmail.com> | 2015-02-20 14:31:31 +0100 |
---|---|---|
committer | Jakub Steiner <jimmac@gmail.com> | 2015-02-20 14:31:50 +0100 |
commit | 40c38d98f7bb4c26dc78baa0f73801703b00dc57 (patch) | |
tree | 198632fdc0ba664d20f7e94f1eb5bd586603ab0f | |
parent | 59fc10265dfd3df9d5908991b6cae87882eac117 (diff) | |
download | adwaita-icon-theme-avoid-verbs.tar.gz |
use commandline --export-id instead of verbsavoid-verbs
depends on fix in https://bugs.launchpad.net/inkscape/+bug/171230
-rwxr-xr-x | render-symbolic.rb | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/render-symbolic.rb b/render-symbolic.rb index 8b19efe34..f197fbe36 100755 --- a/render-symbolic.rb +++ b/render-symbolic.rb @@ -15,13 +15,9 @@ def chopSVG(icon) unless (File.exists?(icon[:file]) && !icon[:forcerender]) FileUtils.cp(SRC,icon[:file]) puts " >> #{icon[:name]}" - cmd = "#{INKSCAPE} -f #{icon[:file]} --select #{icon[:id]} --verb=FitCanvasToSelection --verb=EditInvertInAllLayers " - cmd += "--verb=EditDelete --verb=EditSelectAll --verb=SelectionUnGroup --verb=SelectionUnGroup --verb=SelectionUnGroup --verb=StrokeToPath --verb=FileVacuum " - cmd += "--verb=FileSave --verb=FileClose > /dev/null 2>&1" + cmd = "#{INKSCAPE} -f #{icon[:file]} -l #{icon[:file]} -i #{icon[:id]} -j" system(cmd) - #saving as plain SVG gets rid of the classes :/ - #cmd = "#{INKSCAPE} -f #{icon[:file]} -z --vacuum-defs -l #{icon[:file]} > /dev/null 2>&1" - #system(cmd) + #now get rid of some stuff form the SVG and tweak sizing svgcrop = Document.new(File.new(icon[:file], 'r')) svgcrop.root.each_element("//rect") do |rect| w = ((rect.attributes["width"].to_f * 10).round / 10.0).to_i #get rid of 16 vs 15.99999 |