OPM / opm-reference-manual

Other
1 stars 5 forks source link

Script to extract keyword URIs #408

Closed hakonhagland closed 2 weeks ago

hakonhagland commented 3 weeks ago

This script can be used to extract a mapping from keyword names to XML URI tag names. The mapping can be saved to a file and later be used to make keywords clickable. So the goal is to enable the user to click on a keyword referenced in a paragraph of text in the manual, and then automatically jump to the page where that keyword is defined.

The plan is to use the produced mapping in another script (yet to be written) that will convert keyword names into <text:a xlink:href="some_uri" ...>KEYWORD_NAME</text:a> which will make the text KEYWORD_NAME into a clickable link.