title: What is the proper way to separate an SVG path into its visible components in SED?
body: <p>I have an <code>SVG</code> file with a font on it. I would like all the individual letters to be on separate paths (for easier parsing and stuff like that).
  The thing is, all the letters are on the same path.</p>
  
  <p>I have tried using the following <code>SED</code> script:</p>
  
  <pre><code>#!/bin/sed -f
  
  s/ M/\"\/\&gt;\n\&lt;path d=\"M/g
  </code></pre>
  
  <p>(the <code>SVG</code> in question starts and ends it's paths like that, so I don't think that should be a problem.)</p>
  
  <p>However, this results in a lot of areas being filled in that weren't filled in in the original. I thought <code>M</code> meant move to a specific place. </p>
  
  <p>What am I doing wrong? Is this a problem that is too big for <code>SED</code>?</p>
  
  <p>EDIT:</p>
  
  <p>link to my code and SVG-s:
  <a href="https://gitlab.com/smeagolthellama/glyphgenerator/tree/master" rel="nofollow noreferrer">https://gitlab.com/smeagolthellama/glyphgenerator/tree/master</a></p>
  
  <p>SVG's are in <code>fonts/</code>. Base file is <code>black_path1.svg</code>, result is <code>black_path1_seperated.svg</code> (sorry for the typo, will fix).</p>