1 /* $NetBSD: htmlhint.cpp,v 1.1.1.1 2016/01/13 18:41:48 christos Exp $ */ 2 3 /* Copyright (C) 2000, 2001, 2002 Free Software Foundation, Inc. 4 Written by Gaius Mulley (gaius@glam.ac.uk) 5 6 This file is part of groff. 7 8 groff is free software; you can redistribute it and/or modify it under 9 the terms of the GNU General Public License as published by the Free 10 Software Foundation; either version 2, or (at your option) any later 11 version. 12 13 groff is distributed in the hope that it will be useful, but WITHOUT ANY 14 WARRANTY; without even the implied warranty of MERCHANTABILITY or 15 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 16 for more details. 17 18 You should have received a copy of the GNU General Public License along 19 with groff; see the file COPYING. If not, write to the Free Software 20 Foundation, 51 Franklin St - Fifth Floor, Boston, MA 02110-1301, USA. */ 21 22 #include "lib.h" 23 24 #include <stddef.h> 25 #include <stdlib.h> 26 27 #include "nonposix.h" 28 #include "stringclass.h" 29 #include "html-strings.h" 30 31 /* 32 * This file contains a very simple set of routines which might 33 * be shared by preprocessors. It allows a preprocessor to indicate 34 * when an inline image should be created. 35 * This string is intercepted by pre-grohtml and substituted for 36 * the image name and suppression escapes. 37 * 38 * pre-html runs troff twice, once with -Thtml and once with -Tps. 39 * troff -Thtml device driver emits a <src='image'.png> tag 40 * and the postscript device driver works out the min/max limits 41 * of the graphic region. These region limits are read by pre-html 42 * and an image is generated via troff -Tps -> gs -> png 43 */ 44 45 /* 46 * html_begin_suppress - emit a start of image tag which will be seen 47 * by pre-html. 48 */ 49 void html_begin_suppress() 50 { 51 put_string(HTML_IMAGE_INLINE_BEGIN, stdout); 52 } 53 54 /* 55 * html_end_suppress - emit an end of image tag which will be seen 56 * by pre-html. 57 */ 58 void html_end_suppress() 59 { 60 put_string(HTML_IMAGE_INLINE_END, stdout); 61 } 62