Having problems modifying the HTML export
Hi all,
I'm exporting .fml files into HTML. The exported HTML, for my case is 95% there, but there are a couple of issues that I need help with.
The figures in the document (images + their captions) are anchored frames and they're always exported as a single low-resolution image (an image that contains both the figure and its caption). In an ideal world, since the pictures are included as external files, i would get that external file location and caption as text in the HTML.
But so far, I wasn't able to that. So I tried a couple of things:
- I tried to get the anchored frame id into the target HTML so that I can then pick the remaining anchor info from the mif file, but no luck there. I wasn't even able to get the id into the generated html.
- I'm able to programatically set the alt text for the Figure Anchored Frame (I was hoping to write the location of the original image + caption in there), but I cannot get that alt text into the generated HTML
- I tried creating a custom HTML conversion macro and that does get applied to the generated HTML, but I'm not sure on how to include variables to it. Ideally, to each anchored frame I would programatically attach a special variable (e.g. one for the figure path, one for the caption) and then that would be used when generating the target HTML. But so far I wasn't able to get it running. I'm able to write some standard variables (e.g. $paratext) into a normal paragraph's HTML, but no such luck with frames that fully get converted to an image.
Any tips would be welcome.
Thank you!
