* html.cc [!_POSIX_VERSION]: Include limits.h and dirent.h or
[s-roff.git] / src / devices / grohtml / ChangeLog
blobdf1e21f018052eccb49cfc0306766598ccf6808f
1 2000-06-17  Eli Zaretskii  <eliz@is.elta.co.il>
3         * html.cc [!_POSIX_VERSION]: Include limits.h and dirent.h or
4         sys/dir.h.  Define NAME_MAX using MAXNAMLEN.  Include nonposix.h.
5         (file_name_max): New function.
6         (html_printer::make_new_image_name): If the filesystem doesn't
7         support file names longer than 14 characters, use a shorter
8         image_name string.
9         (html_printer::convert_to_image): Enlarge the size of buffer[] to
10         accomodate 2 temp file names plus some slack.  Don't put \n at the
11         end of commands passed to system().  Redirect stderr to the null
12         device programmatically, not via the shell.  Use NULL_DEV, not
13         literal "/dev/null".  Print diagnostics if any calls to system()
14         failed.
16 2000-05-31  Keith Thompson  <kst@SDSC.EDU>
18         * html.cc: Added declaration of mktemp() as needed for SunOS 4.1.3.
20 2000-05-11  Werner LEMBERG  <wl@gnu.org>
22         * output.cc (simple_output::simple_output): Reordering of
23         initializers to remove compiler warning.
25 2000-04-28  Gaius Mulley  <gaius@glam.ac.uk>
27         * html.cc (calculate_margin): Calculate the left and right margin
28         irrespective of the boolean `margin_on'.  Fixes a divide by zero bug
29         and a column bug as reported by Steve Blinkhorn <steve@prd.co.uk>.
30         Improved the behaviour of the -m (margin on) option.
32         * html.cc (make_html_indent): More checking.
34         * html.cc (right_indentation): Fixed substitution slip-up.
35         
36 2000-03-30  Werner LEMBERG  <wl@gnu.org>
38         * grohtml.man: Document use of whitespace between command line
39         arguments and its parameters.
41 2000-03-17  Werner LEMBERG  <wl@gnu.org>
43         * grohtml.man: Some formatting.
45 2000-03-11  Werner LEMBERG  <wl@gnu.org>
47         * ordered_list.h (list_element): Added `<T>' twice to satisfy picky
48         compilers.
50 2000-03-01  Gaius Mulley  <gaius@glam.ac.uk>
52         * html.cc (handle_unknown_font_command): Removed dead code as
53         spotted by Werner.
54         
55 2000-02-11  Gaius Mulley  <gaius@glam.ac.uk>
57         * html.cc (create_tmp_file, create_temp_name): Removed.  It has been
58         replaced with calls to xtmpfile() and xtmptemplate().
60 2000-02-07  Gaius Mulley  <gaius@glam.ac.uk>
62         * html.cc (html_printer::make_new_image_name): Tidied up file and
63         fixed name of image if the source file is in a different directory.
65         * html.cc (create_file): Renamed to create_tmp_file.
66         
67 2000-02-07  Colin Phipps  <crp22@cam.ac.uk>
69         * html.cc (create_file): Identified & fixed security bug when
70         creating files in /tmp.
72 2000-02-06  Werner LEMBERG  <wl@gnu.org>
74         * Makefile.sub: Adapted to new directory structure.
76 2000-01-28  Gaius Mulley  <gaius@glam.ac.uk>
78         * html.cc: Minor fixes.
80 2000-01-27  Gaius Mulley  <gaius@glam.ac.uk>
82         * html.cc: Added support for the new tcommand `F'.
83         * TODO: Updated.
84         
85 2000-01-24  Gaius Mulley  <gaius@glam.ac.uk>
87         * design.ms: Revised.  Removed TODO stuff.
89         * TODO: New file.
91 2000-01-21  Gaius Mulley  <gaius@glam.ac.uk>
93         * html.cc: Add support for char names in special requests (to
94         support e.g. accented characters in HTML specials).
96 2000-01-14  Gaius Mulley  <gaius@glam.ac.uk>
98         * html.cc, html.h: Many fixes to table code.
100         Fixes to manual page handling, font changes, spaces, and
101         diacritical characters.  All *standard* html character encodings
102         are handled.
103         
104         Added -T option which turns off all image generation for tables. 
105         One day grohtml should be able to determine this for itself.
107         Altered image name to: <groff_input_file>-<index>.png as per
108         Werners suggestion.
110         * grohtml.man: Document -T option.
112         * html_chars.h: New file, providing diacritical table support.
114         * output.cc: New file, providing basic output routines for grohtml.
116         * Makefile.sub: Added output.cc.
118         * Makefile.dep: Updated.
120 2000-01-13  Bruno Haible  <haible@clisp.cons.org>
122         * html.cc: Avoid most "g++ -Wall -Wno-sign-compare" warnings.
124 2000-01-10  Werner Lemberg  <wl@gnu.org>
126         * html.cc: Use Version_string instead of version_string.
128 1999-12-30  Gaius Mulley  <gaius@glam.ac.uk>
130         * html.cc (is_appropriate_to_start_table): Added a missing
131         declaration.
133 1999-12-28  Gaius Mulley  <gaius@glam.ac.uk>
135         * html.cc: Revisited the table handling code with a vengeance,
136         aiming to make manual pages generate sensible html.
137         Superscripting/subscripting revisited.  Fixed wierd table lengths.
138         Table widths are now specified in percentages.  Fixed the man.n
139         test example which Werner reported.
141 Version 1.15 released
142 =====================
144 1999-12-21  Werner LEMBERG  <wl@gnu.org>
146         * grohtml.man: Fixed copyright year.
148 1999-12-15  Gaius Mulley  <gaius@glam.ac.uk>
150         * html.cc: Some other fixes.
152 1999-12-13  Gaius Mulley  <gaius@glam.ac.uk>
154         * html.cc (main): Added new option `-x' to help debugging tables.
156 1999-12-11  Gaius Mulley  <gaius@glam.ac.uk>
158         * html.cc: Fixed image position bugs.  However, three major bugs
159         remain: Firstly, grohtml sometimes miscalculates the end of an
160         html table resulting in text which appears twice.  Secondly,
161         equation numbers are not handled correctly.  Thirdly, equation
162         macros and pic macros can confuse grohtml; this can be seen by
163         nested `graphic-start's -- I believe the best method to solve this
164         is to detect .EQ, .EN, .TS, .TE, .PS, .PE sequences in troff and
165         add the graphic-start special character at this point.
167         * grohtml.man: Minor fixes.
168         
169 1999-11-29  Gaius Mulley  <gaius@glam.ac.uk>
171         * design.ms: More updates; added some basic introductional
172         information.
174         * html.cc: Fixed more bugs mainly in the table handling code.
175         Making the code terminate a table at the correct position.
176         Indented .IPs appear to work now.  Region ends also correctly
177         terminate tables.
179 1999-11-16  Gaius Mulley  <gaius@glam.ac.uk>
181         * design.ms, grohtml.man: Updated.
183         * html.cc, ordered_list.h: Fixed many bugs in the table handling
184         code.  Reverted the -t switch so that table handling code is used
185         by default and users must turn it off with -t.
187         Manual page generation using `groff -Thtml -man' is much better
188         due in large part to the table code and minor alterations in
189         tmac.an.
191 1999-10-30  Gaius Mulley  <gaius@glam.ac.uk>
193         * implemented auto formatting and introduced html table
194         code. Fixed several text handling bugs and grohtml will
195         detect centered lines - an offshoot of the html table code.
197         * reverted meaning of grohtml's `-a' switch: using -a means that
198         output will be preformatted.
200 1999-10-05  Gaius Mulley  <gaius@glam.ac.uk>
202         * Introduced command line options -r to determine the resolution
203         of generated images, -I to determine the format of images
204         generated.
206         * Fixed many bugs to do with superscripts, subscripts,
207         indentation, font changes, and extraneous spaces.
209         * Fixed bug in determining the range of polygons and splines.
211         * Updated the manual page to reflect the new options.
213         * The default image type is png format, however this will only
214         work if you have a gs with a png output device.  If you don't have
215         a gs with this ability you can either reconfigure html to generate
216         gif images by default (alter a #define in html.cc).  Or
217         alternatively you can use the -Igif option.
219 1999-09-27  Werner LEMBERG  <wl@gnu.org>
221         * html.cc (move_horizontal): Fonts have changed one character too
222         late.
223         
224 1999-09-26  Werner LEMBERG  <wl@gnu.org>
226         * grohtml.man: Minor cosmetic fixes.
228 1999-09-25  Gaius Mulley <gaius@glam.ac.uk>
230         * grohtml.man, html.cc: Rewrite of the html text component.  Basic
231         font faces supported together with font types.  Superscript and
232         subscript have also been implemented.  Temporarily removed the
233         -P-a switch on grohtml as it is not working (never worked).  This
234         is the next `to do'.  Added a simple macro tmac.arkup which
235         contains simple html features.  This macro needs further work.
236         Arc, spline, polygon fill have all been added and arc max/min xy
237         limits are calculated, the same needs to be done for spline.  Many
238         bugs have been fixed regarding basic html text.
240         * design.ms: New file describing how html.cc works.
242 Aug 1999
244         Initial release, very basic html text generated, quite ugly text
245         is generated according to many reports :-) Equations, tables,
246         pictures generate gif files via gs and ppmquant, ppmtogif, grops.