Closed oliveever closed 1 year ago
hm... Unless I miss somethin that link https://github.com/OpenCPN/OpenCPN/blob/master/data/s57data/chartsymbols.xml actually contains json, not the expected xml.
Given that this file isn't any xml file it's not strange that it cannot be opened by various tools expecting XML input.
So, what is this issue really about?
It is pretty simple, OpenCPN understands the somewhat non-standard HP-GL dialect used by IHO in the S52 presentation library.
To make a vector symbol HP-GL definition extracted from chartsymbols.xml
loadable in Inkscape (still with warnings about unknown commands and with usually wrong color due to the pen number to color translation Inkscape does in a way incompatible with IHO's mind), you need to make the SP
commands standard compliant = have a number at the third position, using for example sed -i -e 's/SP./SP1/g' test1.hpgl
, The number is the "pen" ID, in case of Inkscape 0
->White
, 1
->Black
etc.
Anyway, I will convert this to a discussion as it is in no way an issue in OpenCPN
The XML file contains symbol related descriptions. I copied the HPGL label content separately to create the file, but it failed to open using by HPGL Viewer and inkscape. Why can OpenCPN read and render it as an symbol🤔