#define PROGRAM "mkhtml" #define LONGNAM "Make HTML" #define VERSION "0.0.1-6" #include #include #include #include #include #include FILE *document; /* regular document */ char filename[256] = "mkhtml.html"; /* frameset */ char *frameset = "findex.html"; char *nav_frame = "fnav.html"; char *ban_frame = "fban.html"; char *ban_image = "banner.png"; char *target_frame = "fhome.html"; char *frame_target = "ftarget"; FILE *config; /* /etc/mkhtml.conf - global configuration ~/.mkhtml.conf - local, overwrites global --config file - overwrites both, used last */ DIR *dir; struct dirent *de; /* *************************************************************************************************************************************************************************************************************/ /* htmldefs.h */ /* these char *s can have %format codes inside */ /* defines compile with error when used in the string functions */ char *LEVEL_ONE = "\t"; char *LEVEL_TWO = "\t\t"; char *LEVEL_THREE ="\t\t\t"; char *LEVEL_FOUR = "\t\t\t\t"; char *LEVEL_SIX = "\t\t\t\t\t\t"; char *NEWLINE = "\n"; char *BR_NEWLINE = "
\n"; /* remove tabs and nl */ /* replace above with write_string_to_disk2(int,char*,int); */ /* dieser source muss nun noch gesaeubert werden */ char *DOCTYPE = ""; char *HTML_OPEN = ""; char *HTML_CLOSE = ""; char *HEAD_OPEN = "\t\n"; char *TITLE = "\t\t\n"; char *META_AUTHOR = "\t\t\n"; char *META_DATE = "\t\t\n"; char *META_DESCRIPTION = "\t\t\n"; char *META_KEYWORDS = "\t\t\n"; char *META_LANGUAGE = "\t\t\n"; char *META_GENERATOR ="\t\t\n"; char *META_ROBOTS = "\t\t\n"; char *META_HTEQ_EXPIRES = "\t\t\n"; char *META_HTEQ_REFRESH = "\t\t\n"; char *META_SHORT = META_ROBOTS; char *LINK_ALTERNATE = ""; char *LINK_APPENDIX = ""; char *LINK_BOOKMARK = ""; char *LINK_CHAPTER = ""; char *LINK_CONTENTS = ""; char *LINK_COPYRIGHT = ""; char *LINK_GLOSSARY = ""; char *LINK_HELP = ""; char *LINK_INDEX = ""; char *LINK_NEXT = ""; char *LINK_PREV = ""; char *LINK_SECTION = ""; char *LINK_START = ""; char *LINK_STYLESHEET = ""; char *LINK_SUBSECTION = ""; char *HEAD_CLOSE = "\t\n"; char *SCRIPT_OPEN = "\t\n"; char *CSS_OPEN = "\t\n"; char *BODY_OPEN = "\t\n"; char *BODY_CONTENT_A = "\n"; char *BODY_CONTENT_B = "\t\t
zurück
\n"; char *BODY_CLOSE = "\t\n"; /* Table */ char *TABLE_OPEN = "\t\t\n"; char *TABLE_CLOSE = "\t\t
\n"; char *ROW_OPEN = "\t\t\t\n"; char *ROW_CLOSE = "\t\t\t\n"; char *CELL_OPEN = "\t\t\t\t"; char *TABLE_CELL = "\t\t\t\t\n"; /* remove tabs and newlines if you want */ char *CELL_CLOSE = "\n"; /* List */ char *OL_OPEN = "\t\t
    \n"; char *UL_OPEN = "\t\t
      \n"; char *LI_OPEN = "\t\t\t
    • "; char *LIST_ENTRY = "\t\t\t
    • \n"; char *LI_CLOSE = "\n"; char *OL_CLOSE = "\t\t
\n"; char *UL_CLOSE = "\t\t\n"; /* Frameset */ char *FRAMESET_OPEN = ""; char *FRAMESET_CLOSE =""; char *FRAME_OPEN = ""; char *FRAME_CLOSE = ""; char *IFRAME_OPEN = ""; /* weitere Tags */ char *BASE_HREF = "\t\t\n"; char *BASE_TARGET = "\t\t\n"; char *BGSOUND_TAG = ""; /* multimedia */ char *APPLET_OPEN = ""; char *APPLET_CLOSE = ""; char *OBJECT_OPEN = ""; char *OBJECT_DECLARE_OPEN = ""; char *OBJECT_CLOSE =""; char *EMBED_OPEN = ""; char *EMBED_CLOSE = ""; /* layers */ char *LAYER_OPEN = ""; char *LAYER_CLOSE = ""; char *ILAYER_OPEN = ""; char *ILAYER_CLOSE = ""; /* forms */ char *FORM_OPEN ="
"; char *FORM_CLOSE="
"; char *INPUT_CHECKBOX=""; char *INPUT_RADIO=""; char *INPUT_TEXT=""; char *INPUT_SUBMIT=""; char *INPUT_RESET=""; char *TEXTAREA_OPEN = ""; char *SELECT_OPEN=""; char *OPTION="