#include <errno.h>
#include <teem/air.h>
#include <teem/biff.h>
#include <teem/hest.h>
#include <teem/nrrd.h>
Data Structures | |
struct | tkwbSlide |
union | _tkwbU |
Defines | |
#define | TKWB "talkweb" |
#define | TKWB_TAG_TOC 0 |
#define | TKWB_TAG_TITLE 1 |
#define | TKWB_TAG_IMAGE 2 |
#define | TKWB_TAG_FIRST 3 |
#define | TKWB_TAG_PREV 4 |
#define | TKWB_TAG_NEXT 5 |
#define | TKWB_TAG_LAST 6 |
#define | TKWB_TAG_TEXT 7 |
#define | TKWB_TAG_MAX 7 |
Functions | |
tkwbSlide * | tkwbSlideNew (char *title, char *image, char *text) |
tkwbSlide * | tkwbSlideNix (tkwbSlide *slide) |
int | tkwbReadFileToString (char **strP, int *hitEOF, FILE *file, char *stop) |
int | tkwbReadTemplate (char **tmplSP, char *filename) |
int | tkwbReadSlides (tkwbSlide ***slideP, char *filename, airArray *pmop) |
int | tkwbExpandImageInfo (tkwbSlide **slide) |
int | tkwbWriteStringToFile (char *filename, char *content) |
int | _tkwbStringSubst (char **sP, char *f, char *r) |
void | tkwbStringSubst (char **sP, char *f, char *r) |
int | tkwbWriteIndex (char *_index, tkwbSlide **slide, char *tag[TKWB_TAG_MAX+1]) |
int | tkwbWriteSlides (tkwbSlide **slide, int numSlides, char *tmpl, char *tag[TKWB_TAG_MAX+1], char *link[4]) |
int | tkwbDoit (char *indexS, char *tmplS, char *scriptS, char *tag[TKWB_TAG_MAX+1], char *link[4]) |
int | main (int argc, char *argv[]) |
Variables | |
char * | tkwbInfo |
int | tkwbArrayIncr = 16 |
#define TKWB "talkweb" |
#define TKWB_TAG_FIRST 3 |
#define TKWB_TAG_IMAGE 2 |
#define TKWB_TAG_LAST 6 |
#define TKWB_TAG_MAX 7 |
#define TKWB_TAG_NEXT 5 |
#define TKWB_TAG_PREV 4 |
#define TKWB_TAG_TEXT 7 |
#define TKWB_TAG_TITLE 1 |
#define TKWB_TAG_TOC 0 |
int _tkwbStringSubst | ( | char ** | sP, | |
char * | f, | |||
char * | r | |||
) |
int main | ( | int | argc, | |
char * | argv[] | |||
) |
int tkwbDoit | ( | char * | indexS, | |
char * | tmplS, | |||
char * | scriptS, | |||
char * | tag[TKWB_TAG_MAX+1], | |||
char * | link[4] | |||
) |
int tkwbExpandImageInfo | ( | tkwbSlide ** | slide | ) |
int tkwbReadFileToString | ( | char ** | strP, | |
int * | hitEOF, | |||
FILE * | file, | |||
char * | stop | |||
) |
int tkwbReadTemplate | ( | char ** | tmplSP, | |
char * | filename | |||
) |
tkwbSlide* tkwbSlideNew | ( | char * | title, | |
char * | image, | |||
char * | text | |||
) |
void tkwbStringSubst | ( | char ** | sP, | |
char * | f, | |||
char * | r | |||
) |
int tkwbWriteIndex | ( | char * | _index, | |
tkwbSlide ** | slide, | |||
char * | tag[TKWB_TAG_MAX+1] | |||
) |
int tkwbWriteSlides | ( | tkwbSlide ** | slide, | |
int | numSlides, | |||
char * | tmpl, | |||
char * | tag[TKWB_TAG_MAX+1], | |||
char * | link[4] | |||
) |
int tkwbWriteStringToFile | ( | char * | filename, | |
char * | content | |||
) |
int tkwbArrayIncr = 16 |
char* tkwbInfo |
Initial value:
("Generates HTML pages from slide images and text. " "This program takes multiple inputs: a template for the table of contents " "that will become \"index.html\" (\"-i\"), a template for the pages " "generated for each slide e.g. \"slide000.html\" (\"-t\"), and a script " "text file that contains all the information that will go into the slide " "pages. The format of this file is:\n " "\t\t- Seperator line indicating slide transitions, e.g. \"-------------\"\n " "\t\t- Title of first slide (one line)\n " "\t\t- Filename for image to put on first slide (one line)\n " "\t\t- Body of HTML text to put with the slide image (multiple lines)\n " "\t\t- Seperator\n " "followed by information for the second slide, and so forth. Textual " "subtitutions are performed in the template files, according to the " "replacement tags (\"-r\", see below). Within the slide pages, navigation " "arrows are based on remaining command-line options." )