The style files are stored in directories of the form {Application Directory}\style\sync2k. This is an example directory listing of the standard style directory:
F000 HTM 585 09-25-98 4:47p N000 HTM 1,783 01-15-99 3:04p R000 RAM 48 09-25-98 4:47p R000 RPM 105 09-25-98 4:47p STR0 RAM 36 09-25-98 4:47p THUMB HTM 347 09-25-98 4:47p CACHE HTM 277 09-25-98 4:47p INDEX HTM 2,287 12-07-98 3:47p PROBLEMS HTM 1,896 09-25-98 4:47p SLD000 HTM 1,337 01-13-99 4:08pSync-O-Mat following these steps to produce a lecture:
We will provide basic documentation for each.
| String Values - For Each Slide | |
| N*N | Lecture name |
| N#N | Slide Number formatted as three digits - 001 |
| N-N | Previous slide number. At slide 1 this is 001 |
| N+N | Next slide number. At the last slide this is the last slide |
| n#n, n+n, n-n | Same as above except the numbers are not three digit. |
| S#S, S+S, S-S | Slide name - sld001 |
| X#X, X+X, X-X | Slide start time offset from the beginning of the current media file |
| X*X | Duration of this lecture segment. |
| P#P, P+P, P-P | Current part number of the lecture |
| T#T | Current slide title from PowerPoint |
| I#I | The current complete image name - May not be imgnnn.gif |
| Control Structures | |
| !FORPART ... !ENDPART |
Text between FORPART and ENDPART is repeatedly processed for each
lecture part. The variable P#P is incremented each time the text is
generated. All lectures have at least one part.
The N#N and all slide related variables are set to the value for the
first slide in the lecture part. (Deprecated in Sync-O-Matic 2000) |
| !FORSLIDE ... !ENDSLIDE |
Text between FORSLIDE and ENDSLIDE is repeatedly processed for each
slide in the presentation. The variable N#N and all the other string
variables such as T#T correspond to the slide as well.
When a FORSLIDE is embedded within a FORPART, it generates for those slides within the part of the lecture being processed. |
| !IFDEF ... !ENDIF | This is conditionally generated code. There is also a !ELSE. These can be nested. The conditional expressions are very SIMPLE - they are a list of TRUE/FALSE values listed in the following table. |
| IFDEF Values | |
| AUDIO | Is true if audio is present |
| AUDIOONLY | If true if there is NOLY audio present |
| VIDEO | Is true if video is present |
| VIDEOONLY | Is true if there is ONLY video present |
| AUDIOANDVIDEO | Is true if both audio and video exist |
| CDROM | Is true is we are creating a CD-ROM version of the lecture |
| WEB | Is true if we are generating a Web version of the lecture |
| PSEUDOSTREAM | Is true if the user has NOT checked the "Stream" checkbox |
| STREAM | Is true if the use checks the stream checkbox - generally when this is enabled, pseudo-streaming is also available (they obviously have http: capability) so you may want to generate both streaming and pseudo-streaming files and give the user a choice. In the standard style, the problems.htm file gives the user a choice to switch to pseudo-streaming even when streaming is checked and is used as the primary delivery mechanism. |
| Included Materials From PowerPoint | |
| !MAP | Includes any image map information from the slide |
| !HEAD | Includes all the material between HEAD and /HEAD |
| !NOTES | Includes all the notes materials. If the sldnnn.htm file does not exist, Sync-O-Matic looks for a file of the form imgnnn.not and includes its entire contents as notes. The naming is based on removing the suffix from the image file name, and adding ".not", so this can be used with arbitrarily named image files. |
| !RTNOTES | Includes all the notes materials, stripping all the HTML except paragraph tags. This intended to produce good "RealText" material from PowerPoint notes. |
| !INCLUDE | Includes the whole slide. The only use for this is the tsld000.htm file |
To completely replace the PROCESS.BAT, I will need more than these strings and a more flexible configuration capability.
| String Values - For PROCESS.BAT | |
| S*P | PowerPoint Directory |
| S*M | Media Directory |
| F*M | Media File Name (includes path and drive). This changes for each media file in a !FORPART. Outside of a !FORPART, it is the first (usually only) Media File. Useful to copy the media files ino the destination directory. |
| S*C | Copy Directory |
| S*S | Style Directory |
| D*C | Destination CDROM Directory (including drive letter) |
| L*C | Destination CDROM Drive Letter (i.e. C: ) |
| D*W | Destination Web Directory (including drive letter) |
| L*W | Destination Wed Drive Letter |