Forum Bugs

SVG path data parser lacks correct exponent parsing

cleitner
Hello,

according to http://www.w3.org/TR/2003/REC-SVG11-20030114/paths.html#PathDataBNF path data may contain exponent signs, which prince can't parse.

The first line of this test file renders correctly, the remaining two cause a
warning: svg: path: command L/l: (x, y)+ required.
message:

<svg xmlns:svg="http://www.w3.org/2000/svg" width="10" height="7">

 <path
  style="fill: none; stroke: black; stroke-width: 1;" 
  d=" 
   M 0 1.5 
   l 1e1 0
   m -10 2
   l 1e+1 0
   m -10 2
   l 100e-1 0
  "
 />
</svg>


This bug is an issue, because Inkspace uses negative exponent signs in some paths.

Thanks for this great product btw.!
mikeday
Thanks, we'll move this issue up the roadmap. The next release should include a number of other SVG improvements as well.
mikeday
Prince 8.0 fixes this issue, and several other SVG issues, including support for the SVG <style> element.