Am 14.08.2018 um 17:39 schrieb Allin Cottrell:
On Fri, 10 Aug 2018, Sven Schreiber wrote:


The easiest way to get this used by browsers is to insert a reference as the second line of the gfn file:

<?xml-stylesheet type="text/xsl" href="gfn2html.xsl"?>
Ah, clever!


That's easy enough to do with a little shell script, and I've processed these three as a sample:

criteria.gfn
corresp.gfn
delayspectral.gfn
Seems to work OK.


I don't think there's any bad fallout from inserting this line. If that's confirmed I can go ahead and batch-process all the gfns.
OK, but there are two remaining issues:

1. Newly incoming (or updated) packages need to get this extra line as well. For the future could this somehow be incorporated into the "gretlcli.exe --makepkg" command (and its equivalent on Linux)?

2. Then there are the zip format packages. With the exception of 'Threshold_Panel' and 'dhurdle' (and anything else?), all of these have PDF help files. My proposal would be to put those pdf files manually into a subdirectory http://ricardo.ecn.wfu.edu/gretl/cgi-bin/current_fnfiles/unzipped/pdf/ - the package moderators including myself can take care of that I think. And then add a link to current_fnfiles/unzipped/pdf/<pkgname>.pdf to the description field of the package listing. This latter step would involve changing the dynamic web code for SHOW_FUNCS, but not much I guess.

I admit this is not 100% coherent, since for .gfn packages you click on the Name field in the list, and for .zip packages you click on the Description. But IMHO it's acceptable and still reasonably intuitive. The gap would be the zip packages without pdf help. Maybe we could make a pdf a requirement for zip packages...

thanks,
sven