pretext icon indicating copy to clipboard operation
pretext copied to clipboard

untested attempt for interactive preview logic, assuming a single local HTML file with all interactives

Open StevenClontz opened this issue 3 years ago • 2 comments

For @rbeezer consideration.

StevenClontz avatar Aug 05 '22 23:08 StevenClontz

Yes, that seems workable. There will need to be a core xsltproc() call to apply the stylesheet I'm working on to the source, with output into a temporary directory full of iframe content files and support files (JS scripts, etc). We can give the HTML file of interactives (fed into snapshotting) a predictable name, say interactives.html.

I suspect that the Python routine can use a small amout of lxml to simply identify theiframe/@id for the things to snapshot. In other words, the present extract-interactives.xsl stylesheet can be retired and its output not consulted.

rbeezer avatar Aug 06 '22 21:08 rbeezer

Agreed on retiring extract-interactives.xsl (and I suspect most extract- sheets could be similarly retired at some point.)

StevenClontz avatar Aug 08 '22 21:08 StevenClontz

@dbrianwalton is well down the road on this one, with preliminary work at #1894, #1895, and more to come.

So I'm going to close this. Thanks, @StevenClontz, for promoting this approach.

rbeezer avatar Jan 14 '23 19:01 rbeezer

Thanks @dbrianwalton !

StevenClontz avatar Jan 14 '23 19:01 StevenClontz