Have you looked at Willem Vree's conversion scripts at
https://wim.vree.org/svgParse/index.html ?
Maybe you can make use of that for a future version? No need to reinvent the wheel.
https://wim.vree.org/svgParse/index.html ?
Maybe you can make use of that for a future version? No need to reinvent the wheel.