1 /* Copyright (C) 2000-2014 Free Software Foundation, Inc.
2 Written by Gaius Mulley (gaius@glam.ac.uk)
4 This file is part of groff.
6 groff is free software; you can redistribute it and/or modify it under
7 the terms of the GNU General Public License as published by the Free
8 Software Foundation, either version 3 of the License, or
9 (at your option) any later version.
11 groff is distributed in the hope that it will be useful, but WITHOUT ANY
12 WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
16 You should have received a copy of the GNU General Public License
17 along with this program. If not, see <http://www.gnu.org/licenses/>. */
25 #include "stringclass.h"
26 #include "html-strings.h"
29 * This file contains a very simple set of routines which might
30 * be shared by preprocessors. It allows a preprocessor to indicate
31 * when an inline image should be created.
32 * This string is intercepted by pre-grohtml and substituted for
33 * the image name and suppression escapes.
35 * pre-html runs troff twice, once with -Thtml (or -Txhtml) and once
36 * with -Tps. `troff -Thtml' (and `troff -Txhtml') emits a
37 * <src='image'.png> tag and the postscript device driver works out
38 * the min/max limits of the graphic region. These region limits are
39 * read by pre-html and an image is generated via
41 * troff -Tps -> gs -> png
45 * html_begin_suppress - emit a start of image tag which will be seen
48 void html_begin_suppress()
50 put_string(HTML_IMAGE_INLINE_BEGIN, stdout);
54 * html_end_suppress - emit an end of image tag which will be seen
57 void html_end_suppress()
59 put_string(HTML_IMAGE_INLINE_END, stdout);