Replied: Mon, 13 Feb 95 22:49:29 EST Replied: njm Received: from oldnova.npac.syr.edu by spica.npac.syr.edu (4.1/I-1.98K) id AA23076; Mon, 13 Feb 95 16:12:36 EST Message-Id: <9502132112.AA03167@oldnova.npac.syr.edu> Received: from localhost.npac.syr.edu by oldnova.npac.syr.edu (4.1/N-0.12) id AA03167; Mon, 13 Feb 95 16:12:35 EST To: gcf Cc: njm, kamala, pduffin, tolson, paulc, hawick Subject: more on scripts for persuasion talks Date: Mon, 13 Feb 95 16:12:34 EST From: njm Geoffrey, Here are the aliases I use to change directories for setting up talks. alias talkindex cd /usr/local/archives/public/docs/by_index/presentations alias talkmodule cd /usr/local/archives/public/docs/by_module/presentations Under "by_index" is kept the actual gif directories as a kind of archive. (This separation is left over from the days of having non-duplicated slides.) Under "by_module" is where the talk modules are kept. Both of these are at the top of the tree of talks. To look at an example, say the first IDA talk, go down more from there: oldnova% cd fox/1995/Ida1 oldnova% ls dolinks images_via_html makelinkfile ida1head importlink normal ida1outline.txt index.html slide_titles Todd's script is called images_via_html. It expects to find a file called "slide_titles" with a list of the titles of the talk - they are formatted like this: 001.gif: InfoMall -- The Virtual Corporation for HPCC Systems and Software Development 002.gif: Abstract of InfoMall Background Presentation at IDA etc. It also expects to find a directory called "normal" in which there are normal-sized gifs for the talk slides in order. Originally, normal looks like this: oldnova% cd normal oldnova% ls 001.gif 007.gif 013.gif 019.gif 025.gif 031.gif 037.gif 043.gif 002.gif 008.gif 014.gif 020.gif 026.gif 032.gif 038.gif 044.gif 003.gif 009.gif 015.gif 021.gif 027.gif 033.gif 039.gif 045.gif 004.gif 010.gif 016.gif 022.gif etc. Todd's script also gives a bunch of other options such as having your own names for everything, having a directory of thumbnail-sized gifs, and appending beginning or ending text. These are specified under the unix command option structure - if you go back to the directory with the script and call it with the "help option", it lists them: oldnova% cd .. oldnova% images_via_html -h images_via_html [options] [options] = -dt directory of thumbnails -dn directory of normal images -li file of image_titles -ln file of "next" button -lp file of "previous" button -lr file of "return" button -lb file of "blank" button -w max number of images per line -fi::: format for image_title -ft::: format for thumbnail -fm::: format for missing thumbnails -fh::: format for html inline -Fl::: format for html list -Ft::: format for title line -FT::: format for thumb line -nohtml supresses links to html inline -notitles supresses inline thumbnails -nothumbs supresses inline thumbnails -T html title -nowrapper supresses -v gives version -s statistics to stderr -u or -h this usage/help message -H more extensive help -debug RECOMMENDED USAGES images_via_html > slideshow.html (cat head; images_via_html -nowrapper ;cat tail ) > slideshow.html So the script produces output which is the html file which lists all the titles, and which we've been calling the slideshow (no relation to Persuasion slideshow). I put the abstract into a header file with the beginning and <h1> html and put it at the beginning of this file, so I usually call the script as follows: (cat head; images_via_html -nowrapper -nothumbs ) > index.html In addition to producing the main html file, the script also produces the individual html files in the normal directory: oldnova% cd normal oldnova% ls 001.gif 007.gif 013.gif 019.gif 025.gif 031.gif 037.gif 043.gif 001.html 007.html 013.html 019.html 025.html 031.html 037.html 043.html 002.gif 008.gif 014.gif 020.gif 026.gif 032.gif 038.gif 044.gif 002.html 008.html 014.html 020.html 026.html 032.html 038.html 044.html 003.gif 009.gif 015.gif 021.gif 027.gif 033.gif 039.gif 045.gif 003.html 009.html 015.html 021.html 027.html 033.html 039.html 045.html 004.gif 010.gif 016.gif 022.gif 028.gif 034.gif 040.gif 004.html 010.html 016.html 022.html 028.html 034.html 040.html etc. Note that these are actually links to gifs, but this makes no difference to the script. We can change the location of the current gif directories with no effect on the script or the html. (These are actually links using the importlink in the main directory). Now I've looked at Wojtek's talk modules on kayak and it has the structure that in a directory for a talk called, say MIME, there is a file MIME.html and a directory MIME which has in it two file 00nn.html and 00nn.gif for each slide. So this is an entirely compatible file structure, except that Wojtek puts lots of talks in one directory. Presumably, this could be easily altered if we wanted to insist on one talk per directory. Then we can just add the text file and directory. Nancy