DeepBlueCLtd / Fi3ldMan

Field Service Manual with advanced data exploitation
https://deepbluecltd.github.io/Fi3ldMan/
Apache License 2.0
1 stars 1 forks source link

Support `grams` applet #121

Open IanMayo opened 2 months ago

IanMayo commented 2 months ago

A legacy document contained Java Applets that allowed users to interact with images, measuring the distance between features on the image.

The document still contains the HTML sources to load the applet and provide configuration parameters.

These text snippets should be of value.

How to represent object in DITA, with users able to edit/maintain the relevant parameters:

<object outputclass="myClass" data="../images/Chrysanthemums.jpg">
             <param name="x" value="y"/>
         </object>

Here is the CSS necessary to display the image in the object in author mode. We would add it to the fieldman_author_styles.css file in the template.

     *[class~="topic/object"][data][outputclass='myClass']{
       content: oxy_url(oxy_base-uri(), attr(data));
     }

We would use XSL to transform the object object into the HTML/CSS code necessary to display the dynamic component.