Approved Comment Syntax? #173
Replies: 2 comments 3 replies
-
Interesting. I would like to make it easier to post-process the nomnoml output. Not sure I fully understand, could you provide an example of how such metadata could be expressed in the nomnoml-source and in the svg file? |
Beta Was this translation helpful? Give feedback.
-
I'd previously kept the metadata in an XLSX file and loaded it with R script to extend the SVG so I'm not sure exactly what syntax to put it in a nomnoml comment for ease of parsing (probably in Python), but here's the idea with ## as a comment syntax for nomnoml:
in the SVG (partial):
I might move towards a syntax within the comment like the nomnoml syntax:
but the only support needed from nomnoml would be an approved comment syntax. I could also see using comments to note the author of the diagram, date, to do items, etc. |
Beta Was this translation helpful? Give feedback.
-
Related to the idea of adding metadata. I don't think there is an official "comment" mechanism in nomnoml script? Would you consider adding an approved comment syntax to nomnoml?
The approach I'm working with now to add metadata (anchor tags and tooltips in the SVG file) is to call the Server hosted SVG URL to generate the SVG from a Python script and pull the SVG back to parse and add in the metadata. If I could embed the metadata in the nomnoml script as a comment, and that comment was included in the SVG, then I could have both the nomnoml and metadata in the same text block, which would be convenient, at least for small amounts of metadata.
Thanks for considering.
Beta Was this translation helpful? Give feedback.
All reactions