DeepBlueCLtd / LegacyMan

Legacy content for Field Service Manual
https://deepbluecltd.github.io/LegacyMan/index.html
Apache License 2.0
2 stars 0 forks source link

Generate image map in reference content #438

Closed IanMayo closed 1 year ago

IanMayo commented 1 year ago

File A17 includes an image map.

Create imagemap content in mock reference file.

Create imagemap processor in HtmlToDita.

IanMayo commented 1 year ago

Started in #447

There is an imagemap here: https://github.com/DeepBlueCLtd/LegacyMan/pull/447/files#diff-5460138f2c0b9ffb57c301f9cf2f66bfad6016b96340b4786516b169dda7f30bR124

Here is an example of a DITA imagemap: https://docs.oasis-open.org/dita/v1.0/langspec/imagemap.html

There is working code to generate a DITA imagemap in Parser.py/process_regions. Note: that code is specific to the regions page, so it knows the IDs to get. Our code will be more generic, represented in html_to_dita. Maybe process-regions can retrieve the element(s) of interest, then re-use the code in html_to_dita, once it's in there.

robintw commented 1 year ago

Is that link incorrect? It seems to go to Heroku and want me to log in?

IanMayo commented 1 year ago

Duh, sorry. Doing two jobs at once... Link updated.

robintw commented 1 year ago

Fixed in #459.