1114402Sru/* Copyright (C) 2000, 2001, 2002 Free Software Foundation, Inc.
2114402Sru     Written by Gaius Mulley (gaius@glam.ac.uk)
3114402Sru
4114402SruThis file is part of groff.
5114402Sru
6114402Srugroff is free software; you can redistribute it and/or modify it under
7114402Sruthe terms of the GNU General Public License as published by the Free
8114402SruSoftware Foundation; either version 2, or (at your option) any later
9114402Sruversion.
10114402Sru
11114402Srugroff is distributed in the hope that it will be useful, but WITHOUT ANY
12114402SruWARRANTY; without even the implied warranty of MERCHANTABILITY or
13114402SruFITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
14114402Srufor more details.
15114402Sru
16114402SruYou should have received a copy of the GNU General Public License along
17114402Sruwith groff; see the file COPYING.  If not, write to the Free Software
18151497SruFoundation, 51 Franklin St - Fifth Floor, Boston, MA 02110-1301, USA. */
19114402Sru
20114402Sru#include "lib.h"
21114402Sru
22114402Sru#include <stddef.h>
23114402Sru#include <stdlib.h>
24114402Sru
25114402Sru#include "nonposix.h"
26114402Sru#include "stringclass.h"
27114402Sru#include "html-strings.h"
28114402Sru
29114402Sru/*
30114402Sru *  This file contains a very simple set of routines which might
31114402Sru *  be shared by preprocessors.  It allows a preprocessor to indicate
32114402Sru *  when an inline image should be created.
33114402Sru *  This string is intercepted by pre-grohtml and substituted for
34114402Sru *  the image name and suppression escapes.
35114402Sru *
36114402Sru *  pre-html runs troff twice, once with -Thtml and once with -Tps.
37114402Sru *  troff -Thtml device driver emits a <src='image'.png> tag
38114402Sru *  and the postscript device driver works out the min/max limits
39114402Sru *  of the graphic region.  These region limits are read by pre-html
40114402Sru *  and an image is generated via troff -Tps -> gs -> png
41114402Sru */
42114402Sru
43114402Sru/*
44114402Sru *  html_begin_suppress - emit a start of image tag which will be seen
45114402Sru *                        by pre-html.
46114402Sru */
47114402Sruvoid html_begin_suppress()
48114402Sru{
49114402Sru  put_string(HTML_IMAGE_INLINE_BEGIN, stdout);
50114402Sru}
51114402Sru
52114402Sru/*
53114402Sru *  html_end_suppress - emit an end of image tag which will be seen
54114402Sru *                      by pre-html.
55114402Sru */
56114402Sruvoid html_end_suppress()
57114402Sru{
58114402Sru  put_string(HTML_IMAGE_INLINE_END, stdout);
59114402Sru}
60