//#############################################################################
// CREATE SLIDES FROM SLIDE DEFINITION FILES
//#############################################################################
//
// Usage: makeslides
//
// Input files have the names 'N.def' (where 'N' is a number).
// This tool creates corresponding output files named 'N.htm'
//
// mailto:contact@SpiritAndTruth.org
//
//

// Comment lines begin with the pound sign.
//
//
// Macro definitions begin with double underscore and must be the
// first nonwhitespace in their line.
//
// They follow the form:
//
//     __name|<before>|<endline>|<endblock>|
//     additional text
//     spanning several lines
//     and ending with a blank (empty) line
//
//         '__name' can be any alphanumeric tag which begins with 
//                  double underscore. There are three special names
//                  which are reserved:
//
//                  __banner    designates banner title when invoked
//                              (appears in title bar and splash page)
//
//                  __title     designates slide titles when invoked
//
//                  __audio     designates slide audio file when invoked
//
//                  __include   include a shared file which contains
//                              content or macro definitions
//
//         '<before>' is text to be printed prior to the text given 
//                    with the macro when it is invoked
//
//         '<ndline>' is text printed after the first line of text given 
//                    with the macro when it is invoked
//
//         '<endblock>' is text printed after the any block of text 
//                     defined as part of the macro when it is invoked.
//
//
// Invoke a predefined macro either as:
//
//     __name optional text
//
// Which, in the above example, will generate:
//     
//     <before>optional text<endline>
//     additional text
//     spanning several lines
//     and ending with a blank (empty) line
//     <endblock>

// Define and invoke common header shared by most slides.
__header|<html><body background="bgbeginning.jpg">
__header

// Smaller text.
// Must span other macros so need to have a separate start and end.
__small_start|<font size="-1">
__small_end|</font>

// Line break.
__break|<br>

// Define banner and title style
__banner|<center><h1><font color=red>| |</font></h1></center>
__title|<center><h2><font color=red>| |</font></h2></center>

// Assign banner, title and associated audio file.
__banner Webshow Slide Viewer
__title Introduction
__audio 1.mp3

// Define and insert a standard piece of top text.
__top||||
<center>
<font size = -1><i>
WebShow Slide Viewer
</i>
</font>
</center>
<hr>

__top

// Macro to jump to another slide.
// First word is slide number, rest of line is text to show.
__goSlide|<a href="javascript:parent.parent.S('|')">|</a>

// Generic URL
// First word is the href, rest of line is text to show.
__url|<a href="|">|</a>

// Define my own style macros.
__emphasis|<font color="red">| |</font>
__italics|<i>| |</i>

// Numbered list style
__number_start|<ol><h4><font color=black>
__number_end|</font></h4></ol>

// Bullet list style
__bullet_start|<ul><h4><font color=black>
__bullet_end|</font></h4></ul>

// Start bullet list.
__bullet_start

// List item style
__list_item|<p><h3><li><font color=blue>| |</font></p></h3>

// A list item.
__list_item Automatic
Automatically plays audio recordings with slides in a web browser for a richer instructional experience.

__list_item HTML Format
Slides are regular HTML web pages.

__list_item Linking Slides
Slides may be linked to one another or to any other content (like any other HTML documents).

__list_item Use Over Web
Slides are directly viewable over the internet. (No need to download the entire
slide show. The show can be viewed one slide-at-a-time.)

__list_item Compatibility
No custom viewer or special installation required. Runs in any web browser which supports javascript.

// End bullet list.
__bullet_end

// Define footer for use on subsequent slides.
__footer||||
<hr>
<font size=-2>
<center>
For information: 
<a href="mailto:contact@SpiritAndTruth.org">contact@SpiritAndTruth.org</a>
</font>
</center>
</body>
</html>

// Insert footer.
__footer
