# HG changeset patch # User nemo # Date 1544646231 18000 # Node ID 22a1cfe0eaf34a4a6a37a37de1b9c9c1b170d5a6 # Parent b41bffc4636e4c8c4becb9100a18c43d538cd59d another regex diff -r b41bffc4636e -r 22a1cfe0eaf3 SVGImport.wiki --- a/SVGImport.wiki Wed Dec 12 13:51:07 2018 -0500 +++ b/SVGImport.wiki Wed Dec 12 15:23:51 2018 -0500 @@ -39,8 +39,10 @@ :s/\(\d\) \(\d\)/\1 L\2/g :s/,/ /g :s/\(\d\+\) \(\d\+\) V/\1 \2 L\1/g +:s/\(\d\+\) \(\d\+\) H/\1 \2 L\2/g :s/\([LM]\)\s*/\1/g }}} +Note... the V/H fix attempt is for vertical line, horizontal line which Inkscape started emitting recently in optimised mode. Could try saving as plain SVG instead. Also depending on how minor the lines are could try just stripping them. 9) It is probably a good idea to remove duplicate points. Here's a regex for that. {{{ s/\(L\d\+ \d\+ \)\1/\1/g}}} - you should run that a couple of times, then {{{s/M\(\d\+ \d\+ \)L\1/M\1/g}}}. That just cuts down on a bit of redundancy. If these regexes match anything, you probably should rerun them.