metanorma / isodoc

Generate HTML/Word from Metanorma XML
https://www.metanorma.org
BSD 2-Clause "Simplified" License
3 stars 3 forks source link

svgmap is failing to process in iso10303-41 #532

Closed opoudjis closed 1 year ago

opoudjis commented 1 year ago

This is also occurring in annotated-express, so it is not a stepmod issue: the svgmap element is not currently recognised by isodoc at all.

opoudjis commented 1 year ago

https://github.com/metanorma/annotated-express/issues/124

opoudjis commented 1 year ago

Sectionsplit rewraps svgs in svgmap, in order to update their anchors. Which is fine, except svgmaps are eliminated in Presentation XML, and sectionsplit already converts the Semantic XML to Presentation XML before svgmaps are processed; so svgmaps end up left in the Presentation XML generated by sectionsplit.

The solution is to do the svg preprocessing in Semantic XML, not Presentation XML.

opoudjis commented 1 year ago

In turn, this solution means that section split must be run on Semantic not Presentation XML in general --- so that the svg wrapping can get to the file in time.

opoudjis commented 1 year ago

We are now recognising SVGs. Unfortunately the highlight areas are now misaligned with the image.

opoudjis commented 1 year ago

That is the svg out of the box, so it has been reported to stepmod2mn.