another regex
authornemo
Wed, 12 Dec 2018 15:23:51 -0500
changeset 1682 22a1cfe0eaf3
parent 1681 b41bffc4636e
child 1683 e8df7f4501a6
another regex
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.