Sha256: 2921752f0193ab5c2fa4446375121606dc1e8e463f57b904599b49ad76adfc61
Contents?: true
Size: 909 Bytes
Versions: 18
Compression:
Stored size: 909 Bytes
Contents
#!/usr/bin/env ruby ######################################### # inkscape_lint # # uses inkscape to re-save SVG images # cleaning out dirty/non-standard # adobe etc. namespaces ######################################### require 'rubygems' gem 'emojidex' require 'emojidex' require 'fileutils' require 'shellwords' emoji_root = File.expand_path('../../emoji/', __FILE__) utf_path = File.expand_path('utf', emoji_root) extended_path = File.expand_path('extended', emoji_root) utf = Emojidex::Collection.new utf.load_local_collection utf_path extended = Emojidex::Collection.new extended.load_local_collection extended_path utf.each do |moji| puts "cleaning: #{moji.code}" `inkscape --vacuum-defs #{Shellwords.escape("#{utf_path}/#{moji.code}.svg")}` end extended.each do |moji| puts "cleaning: #{moji.code}" `inkscape --vacuum-defs #{Shellwords.escape("#{extended_path}/#{moji.code}.svg")}` end
Version data entries
18 entries across 18 versions & 1 rubygems