[adwaita-icon-theme/wip/jimmac/inkscape1] symbolic: inkscape 1 compat
- From: Jakub Steiner <jimmac src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [adwaita-icon-theme/wip/jimmac/inkscape1] symbolic: inkscape 1 compat
- Date: Mon, 4 May 2020 08:20:16 +0000 (UTC)
commit ef429952f8f8bda6070e75baf3792f377023647f
Author: Jakub Steiner <jimmac gmail com>
Date: Mon May 4 10:18:40 2020 +0200
symbolic: inkscape 1 compat
Untested verson of the render script working for Inkscape 1, based on
help by Lukas.
See https://gitlab.gnome.org/GNOME/adwaita-icon-theme/-/issues/57
render-symbolic.rb | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/render-symbolic.rb b/render-symbolic.rb
index 9cb28dd4..0102a513 100755
--- a/render-symbolic.rb
+++ b/render-symbolic.rb
@@ -22,9 +22,9 @@ def chopSVG(icon)
FileUtils.cp(SRC,icon[:file])
puts " >> #{icon[:name]}"
# extract the icon
- cmd = "#{INKSCAPE} -f #{icon[:file]} "
- cmd += "--select #{icon[:id]} --verb=FitCanvasToSelection --verb=EditInvertInAllLayers
--verb=EditDelete " # delete everything but the icon
- cmd += "--verb=FileVacuum --verb=FileSave --verb=FileQuit > /dev/null 2>&1"
+ cmd = "#{INKSCAPE} -g #{icon[:file]} --select #{icon[:id]}
--verb=\"FitCanvasToSelection;EditInvertInAllLayers"
+ cmd +=
";EditDelete;EditSelectAll;SelectionUnGroup;SelectionUnGroup;SelectionUnGroup;StrokeToPath;FileVacuum"
+ cmd += ";FileSave;FileQuit\" > /dev/null 2>&1"
system(cmd)
# remove bounding rectangle
svgcrop = Document.new(File.new(icon[:file], 'r'))
@@ -39,8 +39,8 @@ def chopSVG(icon)
icon_f.puts svgcrop
icon_f.close
# convert any strokes and objects to paths
- cmd = "#{INKSCAPE} -f #{icon[:file]} --verb=EditSelectAll --verb=SelectionUnGroup
--verb=SelectionUnGroup --verb=SelectionUnGroup --verb=ObjectToPath --verb=StrokeToPath "
- cmd += "--verb=FileSave --verb=FileQuit > /dev/null 2>&1"
+ cmd = "#{INKSCAPE} -g #{icon[:file]} --verb=EditSelectAll --verb=\"SelectionUnGroup
--verb=SelectionUnGroup --verb=SelectionUnGroup --verb=ObjectToPath --verb=StrokeToPath "
+ cmd += "--verb=FileSave --verb=FileQuit\" > /dev/null 2>&1"
system(cmd)
# save as plain SVG
cmd = "#{INKSCAPE} -f #{icon[:file]} -z --vacuum-defs --export-plain-svg=#{icon[:file]} >
/dev/null 2>&1"
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]