PageRenderTime 89ms CodeModel.GetById 23ms RepoModel.GetById 0ms app.codeStats 0ms

/contrib/groff/ChangeLog.115

https://bitbucket.org/freebsd/freebsd-head/
Unknown | 6147 lines | 4331 code | 1816 blank | 0 comment | 0 complexity | 1d72fa60b2c86dc27b8e32bd70b4fe5b MD5 | raw file
Possible License(s): MPL-2.0-no-copyleft-exception, BSD-3-Clause, LGPL-2.0, LGPL-2.1, BSD-2-Clause, 0BSD, JSON, AGPL-1.0, GPL-2.0
  1. Version 1.15 released
  2. =====================
  3. 1999-12-28 Werner LEMBERG <wl@gnu.org>
  4. * NEWS, VERSION: Changed to 1.15
  5. 1999-12-27 Paul Eggert <eggert@twinsun.com>
  6. * nroff/nroff.man: -S is safer, not safe.
  7. * groff/groff.cc (main): Use `safer', not `safe', in variable
  8. names. This does not change the behavior.
  9. * troff/input.cc (main): Likewise.
  10. * nroff/nroff.sh: Likewise.
  11. * troff/input.cc (prepend_string): New function.
  12. (main): Prepend -msafer, so that we check macro libraries for
  13. safety.
  14. * PROBLEMS: Report problem with Sun C++ 5.0 and 5.1.
  15. Version 1.14 released
  16. =====================
  17. 1999-12-26 Werner LEMBERG <wl@gnu.org>
  18. * NEWS, VERSION: Changed to 1.14.
  19. 1999-12-24 Werner LEMBERG <wl@gnu.org>
  20. * refer/refer.cc: Fixing the last fix.
  21. Version 1.13 released
  22. =====================
  23. 1999-12-23 Werner LEMBERG <wl@gnu.org>
  24. * tmac/tmac.an: A typo (`.if' instead of `.ie') made the page
  25. number disappear.
  26. * NEWS: Updated.
  27. * tmac/tmac.safer: Forgot to remove `so' from the `rm' request.
  28. * VERSION: Changed to 1.13 -- to be compliant with the Adobe 3.0
  29. document conventions, the version number must be a real.
  30. Version 1.12.1 released
  31. =======================
  32. 1999-12-22 Werner LEMBERG <wl@gnu.org>
  33. * VERSION: Changed to 1.12.1.
  34. 1999-12-22 Alan Rooks <arooks@istar.ca>
  35. * refer/refer.cc (do_file): Slight modification to satisfy the
  36. `Standard system CC - C++ Compilation System 3.1 03/03/99' on SCO
  37. UnixWare 7.1.
  38. 1999-12-20 Werner LEMBERG <wl@gnu.org>
  39. * changed prep.ai.mit.edu -> ftp.gnu.org; updated copyright
  40. notices.
  41. * tmac/tmac.safer, tmac/groff_msafer.man: Remove `so' (again) from
  42. list of unsafe requests.
  43. * pic/pic.man: Fixed a typo.
  44. * man/groff_out.man: Fixed a typo.
  45. 1999-12-18 Werner LEMBERG <wl@gnu.org>
  46. * Makefile.in: Doc fixes.
  47. 1999-12-17 Fabrizio Polacco <fab@prosa.it>
  48. * groff/groff.cc: Missing `U' option added to getopt().
  49. * troff/troff.man: Missing `U' option added to synopsis.
  50. Version 1.12 released
  51. =====================
  52. 1999-12-14 Werner LEMBERG <wl@gnu.org>
  53. * troff/input.cc (usage), groff/groff.cc (synopsis): Added -U flag
  54. to the synopsis.
  55. * nroff/nroff.sh, nroff/nroff.man: Replaced `secure', `unsecure'
  56. with the more appropriate terms `safer' and `unsafe'.
  57. * libgroff/strerror.c, aclocal.m4, configure.in: Added checks for
  58. sys_nerr and sys_errlist[].
  59. * pic/pic.h, aclocal.m4, configure.in: Added check for hypot().
  60. * pic/pic.y, pic/pic.cc: Added check for fmod().
  61. 1999-12-13 Werner LEMBERG <wl@gnu.org>
  62. * VERSION: Changed to 1.12.
  63. Here some patches from various sources; most of them taken from
  64. the Debian distribution.
  65. * tmac/groff_mdoc.man, tmac/groff_mdoc.samples.man,
  66. tmac/Makefile.sub: New files copied directly from the NetBSD
  67. distribution. Probably, some additional adaptation later on is
  68. necessary...
  69. * tmac/tmac.safer, tmac/groff_msafer.man: Added `so' to the list
  70. of unsafe requests.
  71. * groff/groff.cc, groff/groff.man, nroff/nroff.sh,
  72. nroff/nroff.man, pic/main.cc, pic/pic.man, troff/input.cc,
  73. troff/troff.man: Added option `-U' for unsafe mode. Safe mode
  74. (`-S') is now the default.
  75. * README, NEWS: Updated.
  76. 1999-12-09 Werner LEMBERG <wl@gnu.org>
  77. * doc/groff.texinfo: Regenerated nodes and menus with emacs.
  78. * doc/Makefile (clean): Added cleaning commands for groff.texinfo.
  79. 1999-12-06 Werner LEMBERG <wl@gnu.org>
  80. * configure.in: Removed AC_PREFIX_PROGRAM since it causes more
  81. grief than relief today. Additionally, it is against the GNU
  82. coding standards.
  83. * configure: Recreated.
  84. 1999-12-05 Werner LEMBERG <wl@gnu.org>
  85. * configure.in: Added GROFF_LIBM.
  86. * configure: Recreated.
  87. * aclocal.m4 (GROFF_LIBM): New function which tests whether -lm is
  88. necessary.
  89. * Makefile.in: Added definition of $(LIBM).
  90. * Makefile.comm (LIBM): Removed.
  91. * pfbtops/Makefile.sub: On AIX, -lm is needed also.
  92. 1999-12-03 Gaius Mulley <gaius@glam.ac.uk>
  93. * doc/Makefile: Added rule for generation pic.html.
  94. (clean): Files produced by grohtml will be removed also.
  95. * doc/pic.ms: Small fix.
  96. * tmac/tmac.html: Fixed suppression of headers.
  97. 1999-11-16 Gaius Mulley <gaius@glam.ac.uk>
  98. * tmac/tmac.html: Fixing horizontal arrows.
  99. Turning off hyphenation.
  100. * tmac/tmac.an: Improved support for grohtml; better indentation,
  101. no footers/headers.
  102. 1999-10-31 Gaius Mulley <gaius@glam.ac.uk>
  103. * tmac/tmac.arkup: Added CDFTP macro
  104. * tmac/tmac.html: All headers are turned off for ms, me, and mm
  105. macros.
  106. * tmac/troffrc: Some additions for HTML stuff.
  107. 1999-10-06 Gaius Mulley <gaius@glam.ac.uk>
  108. * tmac/tmac.html: Small changes.
  109. 1999-09-26 Werner LEMBERG <wl@gnu.org>
  110. * doc/groff.texinfo: Minor fixes.
  111. 1999-09-26 Gaius Mulley <gaius@glam.ac.uk>
  112. * devhtml/TR: Changed spacewidth to 3.
  113. * tmac/Makefile.sub (NORMALFILES): Added tmac.arkup.
  114. * tmac/tmac.html: Moved markup macros to tmap.arkup.
  115. * tmac/tmac.arkup: New file.
  116. * grohtml/ChangeLog: New file.
  117. 1999-09-16 Werner LEMBERG <wl@gnu.org>
  118. * doc/groff.texinfo (Common Features): Added Copying chapter.
  119. Changed format to @smallbook.
  120. 1999-09-15 Werner LEMBERG <wl@gnu.org>
  121. * NEWS: Added info about groff.texinfo.
  122. * doc/groff.texinfo: Will now compile (using texi2dvi) without
  123. warning messages.
  124. 1999-09-14 Werner LEMBERG <wl@gnu.org>
  125. * groff/groff.man: More updates.
  126. 1999-09-13 Werner LEMBERG <wl@gnu.org>
  127. * doc/groff.texinfo: New file. This manual is still very
  128. rudimentary. It has been originally contributed by Trent
  129. A. Fisher <trent@gnurd.portland.or.us> with first corrections and
  130. additions by me.
  131. * INSTALL: Added information about the `doc' subdir
  132. * troff/troff.man: Minor fixes.
  133. * groff/groff.man: Added missing `-L arg' to SYNOPSIS section;
  134. reordered options.
  135. * troff/input.cc (usage): Added missing `-ffam' to usage message.
  136. * Makefile.in (dist): groff-$(version).tar.gz must be removed
  137. also, otherwise it is included itself in another call of `make
  138. dist'.
  139. * groff/groff.cc (synopsis): Removed superfluous space.
  140. * PROJECTS, PROBLEMS, NEWS: Updated.
  141. * VERSION: Updated to 1.12beta.
  142. * BUG-REPORT: Some cosmetic fixes. Corrected email address.
  143. * README: Updated: Included documentation about CVS repository,
  144. mailing lists, and daily snapshots.
  145. * tmac/Makefile.sub: Fixed $(tmap_wrap) finally.
  146. 1999-09-12 Bjarni Ingi Gislason <bjarniig@rhi.hi.is>
  147. * tmac/tmac.an: If the tag didn't fit into the space that the
  148. macro `TP' specifies, the rest of the tag went into the space for
  149. the next line.
  150. 1999-09-12 Jeffrey Copeland <jeff@opennt.com>
  151. * grolj4/lj4.cc: Added duplex printing (option `-d').
  152. * grolj4/grolj4.man: Document duplex printing.
  153. 1999-09-12 Werner LEMBERG <wl@gnu.org>
  154. * doc/Makefile (pic.ps): Fixed rule which caused problems with
  155. non-GNUish sed programs.
  156. * tmac/doc-syms: Removed extra space from -iso8802-3 macro
  157. definition.
  158. * configure.in (LIBS): Added `-lc'
  159. * Makefile.comm (.man.n): Added substitution for @TMAC_AN_PREFIX@.
  160. * pic/tex.cc (solid_arc): Casting M_PI to double.
  161. * libgroff/putenv.c (putenv): Changed function header to ANSI C.
  162. * groff/groff.man, tmac/Makefile.sub (MAN7), tmac/groff_msafer.man
  163. (new file), tmac/msafer.man (deleted), tmac/groff_me.man (new
  164. file), tmac/me.man (deleted): {me,msafer} -> groff_{me,msafer}.
  165. * groff/groff_man.man: New file. This manual page was originally
  166. written for the Debian GNU/Linux system by Susan G. Kleinmann
  167. <sgk@debian.org>.
  168. * eqn/list.cc (list_box::compute_metrics,
  169. list_box::compute_sublist_width): Removed variable declaration to
  170. avoid shadowing warnings.
  171. * grops/psrm.cc (resource_manager::process_file): Ditto.
  172. * tfmtodit/tfmtodit.cc (main): Ditto.
  173. * libgroff/font.cc (font::load_desc): Renamed auxiliary variable
  174. to avoid shadowing warnings.
  175. * tbl/table.cc (block_entry::do_divert, table::do_row): Renamed
  176. shadowing loop variable.
  177. * groff/groff.man, troff/troff.man: Added doc about grohtml.
  178. 1999-09-12 Gaius Mulley <gaius@glam.ac.uk>
  179. New grohtml frontend to convert groff input to html.
  180. * Makefile.in (CCPROGDIRS, DEVDIRS): Added html device.
  181. * tmac/Makefile.sub (NORMALFILES): Added tmac.html.
  182. * tmac/eqnrc: Added html device.
  183. * tmac/tmac.html: New file.
  184. * eqn/main.cc (do_file, inline_equation), pic/troff.cc
  185. (troff_output::start_picture, troff_output::finish_picture),
  186. tbl/main.cc (process_input_file):
  187. Surrounded output with `graphics_start' and `graphics_end' so that
  188. the html driver can identify non-text portions.
  189. * grodvi/dvi.cc (dvi_printer::set_char), grolj4/lj4.cc
  190. (lj4_printer::set_char), grops/ps.cc (ps_printer::set_char),
  191. grotty/tty.ps (tty_printer::set_char): Additional parameter
  192. `name'.
  193. * include/printer.h: Class printer: New function
  194. set_char_and_width; new variables (is_char_named, is_named_set,
  195. named_command, named_char_s, named_char_n) to hold information
  196. about named characters -- needed by the html driver.
  197. * libdriver/printer.cc (printer::set_ascii_char,
  198. printer::set_special_char): Use set_char_and_width.
  199. * devhtml/*: New device files for html driver.
  200. * grohtml/*: New driver grohtml.
  201. 1999-09-11 Wilfredo Sanchez <wsanchez@apple.com>
  202. * tmac/doc-common, tmac/tmac.an: Removed the word `UNIX' in
  203. default strings.
  204. 1999-09-11 Luke Mewburn <lukem@netbsd.org>
  205. * libgroff/string.cc (search): Small fix to test against NULL
  206. pointer.
  207. 1999-09-11 Jeff Conrad <jeff_conrad@msn.com>
  208. * troff/node.cc (copy): The characters in a bracket escape (e.g.,
  209. \b'abc') were stacked in reverse order when processed in a
  210. diversion.
  211. * troff/node.h: Added `*last' to struct `node' to make the above
  212. fix work.
  213. * troff/input.cc (read_draw_node), libdriver/input.cc (do_file):
  214. The default scale for the 'f' and 't' graphics functions were 'm'
  215. rather than 'u' (i.e., no scaling).
  216. 1999-09-11 Peter Miller <peterm@jna.com.au>
  217. * groff/groff.cc (main), groff.man, soelim/soelim.cc (main,
  218. do_file), soelim/soelim.man: Added `-I file' option to soelim,
  219. defining include paths.
  220. * soelim/soelim.cc (include_path_append): New function.
  221. 1999-09-11 Larry Jones <larry.jones@sdrc.com>
  222. * tbl/main.cc (process_options): Unix (at least Documenter's
  223. Workbench) tbl allows arbitrary non-alpha characters between
  224. options.
  225. 1999-09-11 Paul Eggert <eggert@twinsun.com>
  226. Y2k fixes. Don't assume that the current year precedes 2000.
  227. * doc/meref.me: Add \n(y2, \n(y4.
  228. * tmac/doc-common (Yr): New number register.
  229. (Dd): Don't assume current year precedes 2000.
  230. * tmac/tmac.e (td): Likewise.
  231. (y2, y4): New number registers.
  232. * pic/pic.man: Update reference for pic paper to May, 1991
  233. version.
  234. 1999-09-11 Werner LEMBERG <wl@gnu.org>
  235. * tmac/Makefile.sub (install_data, stamp-wrap, uninstall_sub):
  236. Removed quotation marks which prevented correct expansion of
  237. $(tmac_wrap).
  238. * devlj4/Makefile.sub (LJ4RES): Fixed value (600 instead of 300).
  239. 1999-09-10 Werner LEMBERG <wl@gnu.org>
  240. * Makefile.sub (DISTCLEANFILES): Added `config.log' and
  241. `config.cache'.
  242. * Removed configure.old.
  243. 1999-08-31 Werner LEMBERG <wl@gnu.org>
  244. * VERSION: Updated to 1.11.1
  245. 1999-05-27 Werner LEMBERG <wl@gnu.org>
  246. * doc/Makefile: changed `.PS' postfix to `.ps' for consistency.
  247. * tmac/Makefile.sub (install_data, stamp-wrap, uninstall_sub):
  248. added quotations around $(tmac_wrap) to avoid syntax error if
  249. variable is empty.
  250. * configure: Newly generated using autoconf 2.13.
  251. * Makefile.in (LDFLAGS): Set variable to @LDFLAGS@.
  252. Fri Aug 15 08:51:47 1997 Eric S. Raymond <esr@snark.thyrsus.com>
  253. * README, PROJECTS, NEWS, INSTALL, VERSION,
  254. doc/Makefile. doc/pic.ms, groff/groff.man:
  255. Prepare for 1.11 release. No code changes.
  256. Documentation for pic added (doc/pic.ms).
  257. Sun Nov 26 11:45:13 1995 James Clark <jjc@jclark.com>
  258. * Version 1.10 released.
  259. Fri Nov 24 09:56:16 1995 James Clark <jjc@jclark.com>
  260. * afmtodit/afmtodit.pl: Avoid comment on first line.
  261. Mon Nov 20 11:13:49 1995 James Clark <jjc@jclark.com>
  262. * aclocal.m4 (GROFF_INSTALL_SH): New macro.
  263. * configure.in: Call it.
  264. * Makefile.sub (configure): Depends on aclocal.m4 not acgroff.m4.
  265. (distfiles): Doesn't depend on config.log or config.cache.
  266. Sun Oct 1 08:45:36 1995 James Clark <jjc@jclark.com>
  267. * grog/grog.sh: Use print "" rather than print in END rule.
  268. Wed Aug 23 13:30:52 1995 James Clark <jjc@jclark.com>
  269. * tbl/main.cc (process_data): Don't give error for excess data
  270. entries that are comments.
  271. Fri Jul 28 11:00:27 1995 James Clark <jjc@jclark.com>
  272. * tbl/main.cc (process_data): Fix case where new for-scope rules
  273. silently change meaning of code.
  274. Tue Jul 4 23:39:51 1995 James Clark <jjc@jclark.com>
  275. * troff/env.cc (hyphenate): Loop over all consecutive sequences
  276. of non-zero hyphenation codes.
  277. Sat Jul 1 00:42:15 1995 James Clark <jjc@jclark.com>
  278. * aclocal.m4 (GROFF_POSIX): Use conflicting declaration technique.
  279. Thu Jun 29 13:58:36 1995 James Clark <jjc@jclark.com>
  280. * tmac/tmac.e (ip): Divert the tag so as to freeze the spaces.
  281. Tue Jun 27 12:30:16 1995 James Clark <jjc@jclark.com>
  282. * tmac/tmac.andoc: Make it work in compatibility mode.
  283. * refer/token.h (token_info::is_range_sep): New function.
  284. * refer/token.cc (init_special_chars): Make \(en a RANGE_SEP.
  285. * refer/ref.cc (reference::output): More sophisticated check for
  286. multiple pages.
  287. * devps/prologue.ps (MANUAL): New procedure.
  288. * grops/ps.cc (main): New -m option.
  289. (usage): Include -m.
  290. (ps_printer::~ps_printer): Implement -m.
  291. * aclocal.m4 (GROFF_G): New macro.
  292. * configure.in: Call it.
  293. * Makefile.in (g): Provided by configure.
  294. * hpftodit/hpftodit.cc (basename): Rename to xbasename.
  295. * tmac/tmac.tty: Disable warning about bad fonts. Remove font
  296. translations.
  297. * Makefile.in (tmacpath): Don't include /usr/lib/tmac.
  298. (tmac_m, tmac_s): Deleted.
  299. (sys_tmac_prefix, tmac_wrap, tmac_prefix, tmac_an_prefix,
  300. tmac_s_prefix): New variables.
  301. (MDEFINES): Change accordingly.
  302. * Makefile.comm (.man.n): Use new TMAC_* variables.
  303. * configure.in (GROFF_TMAC): Call.
  304. * aclocal.m4 (GROFF_TMAC): Define.
  305. * tmac/Makefile.sub (stamp_wrap): New target.
  306. (install_data, uninstall_sub): Handle macro wrapping.
  307. Mon Jun 26 14:54:39 1995 James Clark <jjc@jclark.com>
  308. * tbl/main.cc (main): Ignore -T option.
  309. Thu Jun 22 09:08:06 1995 James Clark <jjc@jclark.com>
  310. * devlj4/generate/special.map: Add definition of \(nb.
  311. * tmac/tmac.dvi: Add definition of \(nb.
  312. * troff/dictionary.c (dictionary::dictionary): association::v gets
  313. initialized by association::association.
  314. * tmac/Makefile.sub: Avoid using temporary files when installing.
  315. * troff/env.cc (environment::set_font): Make bad font number a
  316. warning.
  317. * Makefile.in (fontpath): Remove $(prefix)/lib/font from fontpath.
  318. * Makefile.in (datadir): Use share rather than lib.
  319. * groff/groff.cc (basename): Rename to xbasename.
  320. Wed Jun 21 16:59:46 1995 James Clark <jjc@jclark.com>
  321. * Makefile (CCLIBS): Don't use.
  322. * Makefile.ccpg: Likewise.
  323. * acgroff.m4: Rename to...
  324. * aclocal.m4: Modify extensively for autoconf 2.
  325. * configure.in: Likewise.
  326. * Makefile.in: Likewise.
  327. * groff/pipeline.c (const): Declare as empty if __STDC__ not
  328. defined.
  329. (xstrsignal): Check for definition of NSIG. Conditionalize
  330. on SYS_SIGLIST_DECLARED. Make return type const.
  331. Sat Jun 10 12:28:16 1995 James Clark <jjc@jclark.com>
  332. * troff/input.cc (interpolate_macro): Rephrase missing space
  333. warning.
  334. Thu May 11 01:07:16 1995 Jason Merrill <jason@phydeaux.cygnus.com>
  335. * addftinfo/addftinfo.cc, eqn/delim.cc, eqn/lex.cc, eqn/list.cc,
  336. grodvi/dvi.cc, groff/groff.cc, grops/ps.cc, grops/psrm.cc,
  337. grotty/tty.cc, include/ptable.h indxbib/indxbib.cc,
  338. libbib/index.cc, libbib/linear.cc, libbib/search.cc,
  339. libdriver/input.cc, libdriver/printer.cc, libgroff/font.cc,
  340. libgroff/lf.cc, libgroff/nametoindex.cc, libgroff/ptable.cc,
  341. libgroff/string.cc, lkbib/lkbib.cc, lookbib/lookbib.cc,
  342. pic/lex.cc, pic/object.cc, pic/pic.y refer/label.y refer/ref.cc,
  343. refer/refer.cc, refer/token.cc, tbl/main.cc, tbl/table.cc,
  344. tfmtodit/tfmtodit.cc, troff/dictionary.cc, troff/div.cc,
  345. troff/env.cc, troff/input.cc, troff/node.cc, troff/symbol.cc:
  346. Fix 'for' scoping.
  347. Wed Apr 19 21:15:11 1995 James Clark <jjc@jclark.com>
  348. * troff/input.cc (spring_trap): Push a macro_iterator rather than a
  349. string_iterator.
  350. (spring_trap, postpone_traps, unpostpone_traps): Move to later in
  351. file.
  352. (macro_iterator::macro_iterator): Add additional argument.
  353. Mon Apr 10 12:06:02 1995 James Clark <jjc@jclark.com>
  354. * troff/div.cc (vertical_size::vertical_size): In place of integer
  355. specifying line spacing use cunits specifying post vertical
  356. space.
  357. (macro_diversion::output, top_level_diversion::output): Likewise.
  358. * troff/div.h: Change declarations accordingly.
  359. * troff/env.cc (pending_output_line): Replace ls field by post_vs
  360. field.
  361. (pending_output_line::pending_output_line,
  362. pending_output_line::output, environment::output,
  363. environment::output_line, environment::output_title,
  364. environment::hyphenate_line): In place of
  365. integer specifying line spacing use cunits specifying post vertical
  366. space.
  367. (environment::environment): Add post_vertical_spacing and
  368. prev_post_vertical_spacing arguments.
  369. (environment::get_post_vertical_spacing): New function.
  370. (environment::total_post_vertical_spacing): New function.
  371. (environment::post_vertical_spacing): New function.
  372. (init_env_requests): Initialize pvs request and .pvs register.
  373. * troff/env.h: Change declarations.
  374. Tue Mar 28 09:52:07 1995 James Clark <jjc@jclark.com>
  375. * tmac/tmac.pspic: Immediately remove the temporary file.
  376. Sat Mar 25 10:43:11 1995 James Clark <jjc@jclark.com>
  377. * tmac/tmac.pspic (PSPIC): Scale graphic uniformly even when
  378. height is specified.
  379. Thu Jan 26 16:20:13 1995 James Clark <jjc@jclark.com>
  380. * tbl/table.c (struct vertical rule, class table_entry): Use int
  381. not short for start_row and end_row.
  382. Fri Jan 13 13:53:05 1995 James Clark <jjc@jclark.com>
  383. * troff/input.cc (trapping_blank_line, blank_line_macro): New
  384. functions.
  385. (diverted_space_node::reread, process_input_stack): Call
  386. trapping_blank_line() rather than blank_line().
  387. (init_input_requests): Bind "blm" to blank_line_macro().
  388. * tmac/tmac.s (XA): Use .br and par@reset rather than XA.
  389. Tue Jan 10 11:40:35 1995 James Clark <jjc@jclark.com>
  390. * troff/env.cc (environment::possibly_break_line): Require that
  391. width total excluding width of final space node be greater than
  392. the target text length.
  393. Tue Jan 3 09:13:37 1995 James Clark <jjc@jclark.com>
  394. * troff/node.cc (kern_pair_node::vertical_extent): New function.
  395. Sun Dec 4 13:19:07 1994 James Clark <jjc@jclark.com>
  396. * troff/node.cc (charinfo_node): New class.
  397. (glyph_node, composite_node): Derive from charinfo_node. Change
  398. member functions accordingly.
  399. Wed Nov 30 10:29:29 1994 James Clark <jjc@jclark.com>
  400. * nroff/nroff.sh: Use -Tlatin1 not -TLatin1.
  401. Mon Aug 8 10:17:59 1994 James Clark (jjc@jclark.com)
  402. * tmac/tmac.tty-char: Add definitions for \(ab and \[arrowvertex].
  403. * devps/generate/textmap (notsubset): Add.
  404. * tmac/tmac.a4: New file.
  405. Sun Jul 24 20:08:42 1994 James Clark (jjc@jclark.com)
  406. * pic/main.cc (had_parse_error): New variable.
  407. (do_picture, do_whole_file): Set had_parse_error if yyparse()
  408. returns non-zero.
  409. (main): Return 1 if had_parse_error is true.
  410. Tue Jul 19 13:40:31 1994 James Clark (jjc@jclark.com)
  411. * grolj4/lj4.cc (main): Avoid use of strtoul.
  412. Mon Jul 18 15:03:02 1994 James Clark (jjc@jclark.com)
  413. * nroff/nroff.sh: Default device is -Tlatin1 if $LC_CTYPE is
  414. iso_8859_1 or $LESSCHARSET is latin1.
  415. Sun Jul 10 13:38:35 1994 James Clark (jjc@jclark.com)
  416. * hpftodit: New directory.
  417. * Makefile.in (CCPROGDIRS): Add hpftodit.
  418. * devlj4/generate: New directory.
  419. Thu Jul 7 23:49:48 1994 James Clark (jjc@jclark.com)
  420. * configure.in: Don't use AC_VFORK.
  421. * groff/pipeline.c (run_pipeline): Use fork() always.
  422. Wed Jul 6 11:13:17 1994 James Clark (jjc@jclark.com)
  423. * grops/ps.cc (main): Use %1 not %s in error message for -w.
  424. * Makefile.in (CCPROGDIRS): Add grolj4.
  425. (DEVDIRS): Add devlj4.
  426. * grolj4, devlj4: New directories.
  427. * tmac/troffrc: Handle lj4.
  428. * tmac/tmac.lj4: New file.
  429. Fri Jun 17 18:02:53 1994 James Clark (jjc@jclark.com)
  430. * tmac/tmac.e (@n): Set indent to 0 before calling |h.
  431. Wed Jun 1 07:33:47 1994 James Clark (jjc@jclark.com)
  432. * troff/input.cc (do_if_request): At end of second string, switch
  433. environments before getting next token.
  434. Fri May 20 07:39:18 1994 James Clark (jjc@jclark.com)
  435. * devps/psstrip.sed: Split rule that strips whitespace on either
  436. side of delimiters.
  437. Wed May 18 08:13:47 1994 James Clark (jjc@jclark.com)
  438. * troff/node.h (font_family::make_definition): Add return value to
  439. declaration. * troff/symbol.h (symbol::operator==,
  440. symbol::operator!=): Likewise.
  441. Tue May 17 20:46:06 1994 James Clark (jjc@jclark.com)
  442. * groff/groff.cc (main, help, synopsis): Handle -S.
  443. (possible_command::insert_arg): New function.
  444. * tmac/tmac.safer: New file.
  445. * tmac/msafer.man: New file.
  446. * tmac/Makefile.sub (FILES): Add tmac.safer and msafer.man.
  447. Thu Mar 10 01:58:30 1994 Paul Eggert (eggert@twinsun.com)
  448. * pic/pic.h, pic/main.cc (safer_flag): New variable.
  449. * pic/pic.y (placeless_element): Avoid unsafe operations if
  450. `safer_flag' is set.
  451. * pic/main.cc (main): Add -S option, which sets `safer_flag'.
  452. Tue May 10 13:02:31 1994 James Clark (jjc@jclark.com)
  453. * eqn/lex.cc (get_token): Put call to add_context() in block to
  454. work around Sun C++ 4.0 bug.
  455. * include/stringclass.h (operator +): Use ?: instead of `if' to
  456. work around Sun C++ 4.0 bug.
  457. Thu May 5 11:18:03 1994 James Clark (jjc@jclark.com)
  458. * tbl/main.cc (process_format): Accept - as a synonym for the _
  459. key letter.
  460. * libbib/index.cc (minus_one): Don't declare as const.
  461. Fri Apr 29 09:32:48 1994 James Clark (jjc@jclark.com)
  462. * troff/input.cc (get_char_for_escape_name): Push back a newline.
  463. Wed Apr 27 21:14:18 1994 James Clark (jjc@jclark.com)
  464. * troff/input.cc (write_macro_request): New function.
  465. (init_input_requests): Bind write_macro_request to writem.
  466. Sun Apr 17 11:15:38 1994 James Clark (jjc@jclark.com)
  467. * tmac/tmac.s (@EN): Turn filling back on even if there was no
  468. equation.
  469. * eqn/lex.cc (do_space): Supply missing argument to lex_error.
  470. * tmac/tmac.s (@TS): Renamed from TS.
  471. (TS): Call LP then TS again.
  472. (cov*ab-init): Alias @TS to TS.
  473. * tmac/tmac.s: Allow QP or RS to initialize.
  474. * tmac/tmac.s (par@load-init): New macro. Call at end of file.
  475. Move initializations of PS and LL here.
  476. (par@init): Don't initialize HY. Avoid changing environment 0.
  477. (par*env-init): Don't all par@reset.
  478. Thu Apr 14 19:15:45 1994 James Clark (jjc@jclark.com)
  479. * include/posix.h: Include <fcntl.h> only if not using <osfcn.h>.
  480. Sun Apr 10 09:54:44 1994 James Clark (jjc@jclark.com)
  481. * Makefile.in (MDEFINES): Add LDFLAGS.
  482. (LDFLAGS): Add definition line.
  483. Thu Apr 7 22:22:22 1994 James Clark (jjc@jclark.com)
  484. * troff/input.cc (get_optional_char): Split off error check into...
  485. (check_missing_character): New function.
  486. * troff/token.h: Declare it.
  487. * troff/env.cc (margin_character): Don't call get_optional_char.
  488. Only call tok.next() after making the node.
  489. * include/lib.h (getopt): Make 2nd argument char *const *.
  490. Fri Mar 11 07:28:03 1994 James Clark (jjc@jclark.com)
  491. * nroff/conftest.sh: Deleted.
  492. Fri Mar 4 10:51:36 1994 James Clark (jjc@jclark.com)
  493. * pic/make-dos-dist: Deleted.
  494. Wed Mar 2 20:59:16 1994 James Clark (jjc@jclark.com)
  495. * devps/psstrip.sed: Strip comments before stripping trailing
  496. white space.
  497. Sat Feb 19 13:07:16 1994 James Clark (jjc@jclark.com)
  498. * Version 1.09 released.
  499. Wed Feb 16 16:53:49 1994 James Clark (jjc@jclark.com)
  500. * tmac/doc-ditroff (hK): Don't reset page number if \nC is > 0.
  501. Mon Feb 14 08:26:40 1994 James Clark (jjc@jclark.com)
  502. * libgroff/font.cc (font::load_desc): Fix typo in error message.
  503. Sun Feb 13 09:37:38 1994 James Clark (jjc@jclark.com)
  504. * libgroff/new.cc (operator new): Rewrite so as to avoid warning
  505. about returning without a value.
  506. * troff/charinfo.h (charinfo::get_special_translation): Cast
  507. TRANSLATE_NONE to int.
  508. * refer/token.cc (lookup_token, store_token): Remove bogus loop
  509. test. Fix test so that it works with n unsigned.
  510. * pic/pic.y (defaults_table): Fully bracket initializer.
  511. * pic/lex.cc (lookup_keyword): Likewise.
  512. * eqn/lex.cc (token_table, def_table): Likewise.
  513. * eqn/box.cc (param_table): Likewise.
  514. * troff/input.cc (warning_table): Likewise.
  515. * libgroff/font.cc (table): Likewise.
  516. * grops/ps.cc (ps_printer::special): Likewise.
  517. * grops/psrm.cc (resource_manager::process_file): Likewise.
  518. * tfmtodit/tfmtodit.cc (lig_chars, lig_table): Likewise.
  519. * refer/command.cc (command_table): Likewise.
  520. * addftinfo/addftinfo.cc (param_table): Likewise.
  521. * troff/symbol.cc (symbol::symbol): Prevent compiler warnings
  522. about temp's being unused.
  523. (unused): New function.
  524. * groff/pipeline.cc: Declare c_fatal.
  525. * libbib/linear.cc (bmpattern::search): Cast patterrn[--j] to
  526. uchar.
  527. * libbib/index.cc (index_search_item::load): Prevent compiler
  528. warnings about fd_closer's being unused.
  529. (unused): New function.
  530. Sat Feb 12 10:31:59 1994 James Clark (jjc@jclark.com)
  531. * troff/input.cc (copy_mode_error): Make `prefix' static.
  532. Fix typo.
  533. * include/posix.h: Include <osfcn.h> is HAVE_CC_OSFCN_H is
  534. defined.
  535. * acgroff.m4, configure.in, Makefile: Rename HAVE_CC_UNISTD_H to
  536. HAVE_CC_OSFCN_H and modify accordingly.
  537. * troff/input.cc (init_charset_table): radicalex overlaps
  538. horizontally.
  539. * groff/acgroff.m4 (GROFF_ISC_SYSV3): New macro (from
  540. udodo!hans@relay.NL.net).
  541. * groff/configure.in: Call it.
  542. * groff/acgroff.m4 (GROFF_PCLOSE): New macro.
  543. * groff/configure.in: Call it.
  544. * include/lib.h: Conditionalize declaration of pclose.
  545. * troff/div.cc (last_page_number): New global variable.
  546. (top_level_diversion::begin_page): Exit if we just printed the
  547. last page.
  548. * troff/div.h (last_page_number): Declare it.
  549. * troff/input.cc (parse_output_page_list): Set last_page_number.
  550. * eqn/sqrt.cc: Rename \(rn to \[radicalex].
  551. * devps/S, devps/textmap, tmac/tmac.ps, tmac/tmac.dvi,
  552. tmac/tmac.X: Likewise.
  553. * tmac/tmac.ps, tmac/tmac.X, tmac.dvi: Add definitions of \(rn.
  554. * tmac.dvi: Make \(ru and \(ul extend beyond their width by .04m.
  555. Fri Feb 11 11:45:40 1994 James Clark (jjc@jclark.com)
  556. * tmac/doc-ditroff (hK): Remove groff specific code which
  557. prevented page-breaks between separate manual entries. If this is
  558. the first page, don't set the page number to 1.
  559. * acgroff.m4 (GROFF_POSIX): New macro.
  560. * configure.in: Use it.
  561. * troff/node.cc (class real_output_file,
  562. real_output_file::real_output_file,
  563. real_output_file::~real_output_file): Conditionalize use of
  564. popen/pclose on POPEN_MISSING.
  565. * troff/node.h: Conditionalize pipe_command on POPEN_MISSING.
  566. * troff/input.cc (pipe_command): Give an error if POPEN_MISSING.
  567. (pipe_source): Similarily.
  568. * acgroff.m4 (GROFF_PROG_CCC): Update message about libg++.
  569. * acgroff.m4 (GROFF_GETOPT, GROFF_PUTENV, GROFF_POPEN): Detect
  570. presence of declarations by trying to compile example with
  571. conflicting declarations. (gcc only gives a warning for missing
  572. declarations.)
  573. Wed Feb 9 09:12:23 1994 James Clark (jjc@jclark.com)
  574. * tmac/tmac.pspic (PSPIC): Allow options to specify alignment
  575. (from Ulrich Lauther).
  576. Tue Feb 8 03:56:40 1994 James Clark (jjc@jclark.com)
  577. * libbib/linear.cc (file_buffer::load): Use S_ISREG macro.
  578. Thu Feb 3 09:34:35 1994 James Clark (jjc@jclark.com)
  579. * indxbib/indxbib.cc (write_hash_table): Add code for case where
  580. pointers and ints have different sizes.
  581. Sun Jan 9 16:17:51 1994 James Clark (jjc@jclark.com)
  582. * tmac/tmac.s (par*env-init): Call par@reset.
  583. Fri Jan 7 10:24:27 1994 James Clark (jjc@jclark.com)
  584. * tmac/tmac.s (@IP): Switch to a new environment when diverting
  585. tag.
  586. (par*push-tag-env, par*pop-tag-env): New macros.
  587. Wed Jan 5 21:18:34 1994 James Clark (jjc@jclark.com)
  588. * grops/ps.cc (ps_printer::ps_printer): Use MAX_LINE_LENGTH for
  589. initializing `out'. Reduce MAX_LINE_LENGTH from 79 to 72.
  590. * grops/ps.cc (ps_printer::~ps_printer): Output %%CreationDate
  591. comment. Include <time.h>.
  592. Wed Dec 15 14:14:00 1993 James Clark (jjc@jclark.com)
  593. * grops/ps.cc (is_small_h, is_small_v): Deleted.
  594. (ps_printer::flush_sbuf): Use absolute motion only at beginning of
  595. lines.
  596. Tue Dec 14 10:06:34 1993 James Clark (jjc@jclark.com)
  597. * troff/input.cc (read_request): Only print a prompt if reading
  598. from the terminal. Also clearerr on EOF if reading from the
  599. terminal. Declare isatty.
  600. Mon Nov 29 08:38:15 1993 James Clark (jjc@jclark.com)
  601. * refer/label.y: Rename map_t to map_func and extractor_t to
  602. extractor_func.
  603. Sat Oct 30 06:38:12 1993 James Clark (jjc@jclark.com)
  604. * include/assert.h: Don't use volatile.
  605. * libgroff/assert.cc: Likewise.
  606. Fri Oct 29 15:00:23 1993 James Clark (jjc@jclark.com)
  607. * troff/input.cc (abort_request): Look at character in tok before
  608. calling get_copy().
  609. Thu Oct 28 14:09:48 1993 James Clark (jjc@jclark.com)
  610. * troff/troff.h (NO_RETURN): Deleted.
  611. * troff/div.cc (cleanup_and_exit): Don't declare aas NO_RETURN.
  612. * troff/input.cc (exit_troff): Likewise
  613. * Makefile.in: Remove `Making ...' messages since GNU make now
  614. gives these.
  615. * configure.in: Use AC_HAVE_HEADERS(unistd.h) instead of AC_UNISTD_H.
  616. Wed Oct 27 11:12:51 1993 James Clark (jjc@jclark.com)
  617. * tmac/tmac.s (@init): Initialize PO to \n(.o here, rather than
  618. to constant 1 inch.
  619. Sat Oct 23 10:03:52 1993 James Clark (jjc@jclark.com)
  620. * tmac/tmac.e (hl): Use \n[.in] rather than \n(.i.
  621. Thu Oct 14 12:09:45 1993 James Clark (jjc@jclark.com)
  622. * eqn/delim.cc (delim_box::compute_metrics): Don't increase
  623. MARK_REG if there was no left delimiter.
  624. Sat Oct 2 19:54:47 1993 James Clark (jjc@jclark.com)
  625. * pic/troff.cc (troff_output::text): Set line thickness to
  626. relative before outputting text.
  627. * tmac/tmac.e (@k): Don't zero ?T.
  628. ((z): Likewise.
  629. Sat Sep 25 11:08:43 1993 James Clark (jjc@jclark.com)
  630. * tmac/tmac.e ($p): Handle possibility that $3 is empty.
  631. Wed Aug 18 08:51:41 1993 James Clark (jjc@jclark.com)
  632. * troff/input.cc (decode_args): Warn about unquoted tabs (from
  633. Paul Eggert).
  634. Tue Aug 10 08:38:32 1993 James Clark (jjc@jclark.com)
  635. * troff/input.cc (ignoring): New variable.
  636. (ignore): Set ignoring during call to do_define_macro.
  637. (do_define_macro): Clear ignoring before interpolating terminating
  638. macro.
  639. (copy_mode_error): New function.
  640. (get_char_for_escape_name, read_long_escape_name,
  641. interpolate_arg): Use copy_mode_error.
  642. (warning_table): Add WARN_IG.
  643. * troff/troff.h (WARN_IG): Declare.
  644. (WARN_TOTAL): Change accordingly.
  645. * groff/pipeline.c (strsignal): Rename to xstrsignal.
  646. * groff/groff.cc (strsignal): Delete declaration.
  647. Fri Jul 16 01:43:12 1993 James Clark (jjc@jclark.com)
  648. * troff/div.cc (page_offset): Use 'm' as default scaling.
  649. Sat Jul 3 09:11:38 1993 James Clark (jjc@jclark.com)
  650. * nroff/nroff.sh: Ignore -u.
  651. Wed Jun 9 12:17:27 1993 James Clark (jjc@jclark.com)
  652. * Makefile.in (MDEFINES): Pass down MAKEOVERRIDES.
  653. Fri Jun 4 17:35:47 1993 James Clark (jjc@jclark.com)
  654. * tmac/tmac.s (par*box-draw): Set adjustment mode to l while
  655. drawing box.
  656. (B2): With -Tascii, leave additional vertical space before
  657. and after. Ensure that the left and right indent is restored to
  658. what it was even if the point size changes. Don't call
  659. par@finish. Change the indent, line length and title length
  660. directly. With -Tascii, make the width of the box 1n less.
  661. (B1): Remember 1n at the current point size. Don't call
  662. par@reset. Change the indent, line length and title length
  663. directly. Ensure that the temporary indent is preserved.
  664. (par*box-mark-top): Turn off no spacing mode.
  665. Thu Jun 3 17:47:14 1993 James Clark (jjc@jclark.com)
  666. * Makefile.in (dist): Use .gz suffix.
  667. Thu May 27 20:04:59 1993 James Clark (jjc@jclark.com)
  668. * troff/input.cc (main): Add return 0.
  669. * pic/main.cc (main): Use return instead of exit.
  670. * tbl/main.cc (main): Likewise.
  671. * eqn/main.cc (main): Likewise.
  672. * grops/ps.cc (main): Likewise.
  673. * grotty/tty.cc (main): Likewise.
  674. * groff/groff.cc (main): Likewise.
  675. * grodvi/dvi.cc (main): Likewise.
  676. * refer/refer.cc (main): Likewise.
  677. * indxbib/indxbib.cc (main): Likewise.
  678. * lkbib/lkbib.cc (main): Likewise.
  679. * soelim/soelim.cc (main): Likewise.
  680. * addftinfo/addftinfo.cc (main): Likewise.
  681. * acgroff.m4 (GROFF_PROG_CCC, GROFF_CC_COMPILE_CHECK,
  682. GROFF_COOKIE_BUG, GROFF_CC_ANSI_BUG): Likewise.
  683. * troff/token.h (process_input_stack): Don't declare as static.
  684. * troff/input.cc: Likewise.
  685. * troff/node.c (invalidate_fontno): Make it a static member of
  686. class font_family. Change callers.
  687. * troff/node.c: Change declaration.
  688. * tbl/main.cc (struct input_entry_format): Add explicit public
  689. specifier.
  690. * tbl/table.cc (struct text_stuff, struct single_hline_stuff,
  691. struct double_hline_stuff): Likewise.
  692. * tbl/table.h (struct entry_format): Likewise.
  693. * pic/object.h (struct saved_state): Likewise.
  694. * include/stringclass.h: Add forward declarations of friend
  695. functions that are later declared as inline. Don't include inline
  696. specifier in friend declaration.
  697. * libgroff/lib.h: Declare popen and pclose.
  698. * acgroff.m4 (GROFF_POPEN): New macro.
  699. * configure.in: Call it.
  700. * include/lib.h (PI): New constant. Undef first if necessary.
  701. * tfmtodit/tfmtodit.cc (main): Use PI rather than M_PI.
  702. * grops/ps.cc (degrees, radians): Likewise.
  703. * libgroff/font.cc (font::get_skew): Likewise.
  704. * grops/ps.cc (is_ascii): New function.
  705. (ps_output::put_string): Use is_ascii. Use csprint rather than
  706. isprint.
  707. (ps_printer::define_encoding): Use csspace.
  708. * libgroff/strtol.c (ISASCII): New macro.
  709. (strtol): Cast arguments to is*() and tolower() to unsigned char.
  710. Use ISASCII rather than isascii.
  711. * libgroff/cmap.cc: Use isascii() only if <ctype.h> defines it.
  712. * libgroff/cset.cc: Likewise.
  713. * libdriver/input.cc: Include cset.h.
  714. (do_file, get_integer, possibly_get_integer): Use csdigit() rather
  715. than isdigit().
  716. * refer/refer.cc (main): Use %ld rather than %d for longs.
  717. * libbib/index.cc (index_search_item_iterator::get_tag): Use
  718. S_ISREG macro.
  719. * addftinfo/addftinfo.cc (param_t): Add explicit `int'.
  720. Mon May 24 08:51:37 1993 James Clark (jjc@jclark.com)
  721. * troff/input.cc (hyphenation_code): Skip white space between
  722. char/code pairs.
  723. Sun May 16 08:15:52 1993 James Clark (jjc at jclark.com)
  724. * tbl/table.h (table::entry_list_tailp): New member.
  725. (table::table): Initialize it.
  726. (table::add_entry): Use entry_list_tailp to avoid O(n^2)
  727. behaviour.
  728. Sat May 15 17:26:00 1993 James Clark (jjc at jclark.com)
  729. * grotty/tty.cc (tty_printer::add_char): Don't discard characters
  730. with negative horizontal positions. Remove casts of glyph::hpos to
  731. int.
  732. (USHRT_MAX): Delete definition.
  733. (SHRT_MAX, SHRT_MIN): New definitions.
  734. (glyph::hpos): Change type to short.
  735. (tty_printer::end_page): Output multiple backspaces if necessary.
  736. Remove casts of glyph::hpos to int.
  737. Fri May 7 12:14:37 1993 James Clark (jjc at jclark.com)
  738. * tmac/tmac.s (@RT): New definition.
  739. Thu May 6 21:36:54 1993 James Clark (jjc at jclark.com)
  740. * refer/refer.cc (do_file): Make sure current_filename is set when
  741. filename is "-".
  742. * pic/common.cc (common_output::dot_line): Handle zero length
  743. lines.
  744. Sun May 2 19:54:16 1993 James Clark (jjc at jclark.com)
  745. * tmac/tmac.s (par@reset): Get value for .hy for \n[HY].
  746. (par@init): Initialize \n[HY].
  747. Mon Apr 26 11:43:16 1993 James Clark (jjc at jclark.com)
  748. * troff/dictionary.cc (dictionary::remove): Continue when
  749. r < j < i.
  750. Sun Apr 25 11:03:00 1993 James Clark (jjc at jclark.com)
  751. * Makefile.com (.y.cc): Avoid ending up with two versions of
  752. $(YTABH).
  753. Thu Apr 22 21:03:45 1993 James Clark (jjc at jclark.com)
  754. * tmac/tmac.dvi (\(,c): Define only if it does not exist.
  755. (\(,C): Likewise. Also fix typo.
  756. Wed Apr 21 08:47:32 1993 James Clark (jjc at jclark.com)
  757. * lib.h: Delete extraneous semi-colon.
  758. * Add pso request: `so' from a pipe.
  759. * troff/input.c (file_iterator::file_iterator): Add 3rd argument.
  760. (file_iterator::close): New function.
  761. (file_iterator::~file_iterator, file_iterator::next_file): Use
  762. file_iterator::close.
  763. (file_iterator::backtrace): Say `process' rather than `file' when
  764. the stream is popened.
  765. (pipe_source): New function.
  766. (init_input_requests): Bind ".pso" to pipe_source.
  767. Tue Apr 20 00:02:26 1993 James Clark (jjc at jclark.com)
  768. * afmtodit/afmtodit.pl: Avoid single quotes in comments.
  769. * pfbtops/pfbtops.c: Output 64 characters per line. Output hex
  770. digits in lower case.
  771. Mon Apr 19 09:55:57 1993 James Clark (jjc at jclark)
  772. * Version 1.08 released.
  773. * Makefile.in (dist): Insert || true after ln -s commands that
  774. might fail.
  775. * mm: Update to mm 1.16.
  776. * acgroff.m4 (GROFF_CSH_HACK): New macro.
  777. * configure.in: Call GROFF_CSH_HACK. Substitute for
  778. SH_SCRIPT_SED_CMD.
  779. * Makefile.in (SH_SCRIPT_SED_CMD): New variable. Include in
  780. MDEFINES.
  781. * nroff/Makefile.sub (nroff): New target.
  782. (install_data): Install nroff.
  783. * eqn/Makefile.sub (neqn): Sed with SH_SCRIPT_SED_CMD.
  784. * grog/Makefile.sub (grog): Sed grog.sh with SH_SCRIPT_SED_CMD.
  785. Sat Apr 17 08:24:28 1993 James Clark (jjc at jclark)
  786. * eqn/Makefile.sub (neqn): Add chmod +x.
  787. * grog/Makefile.sub (grog): Remove spurious semi-colon.
  788. Fri Apr 16 22:41:57 1993 James Clark (jjc at jclark)
  789. * troff/input.cc (string_iterator::string_iterator()): Initialize
  790. lineno and count.
  791. Tue Apr 13 10:22:28 1993 James Clark (jjc at jclark)
  792. * troff/div.cc (macro_diversion::space,
  793. top_level_diversion::space): Don't set high_water_mark.
  794. (macro_diversion::output, top_level_diversion::output): Don't
  795. include post line space in high water mark.
  796. Wed Apr 7 12:48:18 1993 James Clark (jjc at jclark)
  797. * eqn/eqn.y: Don't define YYDEBUG.
  798. * pic/pic.y: Likewise.
  799. Mon Apr 5 10:15:15 1993 James Clark (jjc at jclark)
  800. * tmac/tmac.e ([3): Add space after comma following editors.
  801. Change double spaces to single spaces.
  802. ([4): Change double spaces to single spaces.
  803. * grops/ps.h (USE_PS_ADOBE_2_0): New flag for broken_flags.
  804. * grops/ps.cc (ps_printer::~ps_printer): If the USE_PS_ADOBE_2_0
  805. bit is set in broken_flags, use 2.0 rather than 3.0 as the version
  806. after %!PS-Adobe- (for Newsprint).
  807. * troff/div.cc (top_level_diversion::begin_page): When
  808. before_first_page is 1, set page_number to 1.
  809. Sun Apr 4 14:28:53 1993 James Clark (jjc at jclark)
  810. * eqn/box.cc (box::top_level): Protect equation with \&.
  811. Sat Apr 3 23:27:25 1993 James Clark (jjc at jclark)
  812. * groff/groff.cc (possible_command::set_name): Delete old name.
  813. * groff/groff.cc (possible_command::~possible_command): Use
  814. a_delete.
  815. * troff/node.cc (troff_output_file::begun_page): New member.
  816. (troff_output_file::troff_output_file): Initialize it.
  817. (troff_output_file::really_begin_page): Only output V command if a
  818. page has been begun.
  819. * pic/pic.y (placeless_element): Delete argument to PRINT after
  820. use.
  821. Fri Apr 2 11:31:02 1993 James Clark (jjc at jclark)
  822. * Make wrapman work.
  823. * troff/div.h (class top_level_diversion): Replace
  824. first_page_begun by before_first_page (with opposite sense).
  825. * Change first_page_begun to before_first_page inverting sense.
  826. * troff/div.cc (class nl_reg): New class.
  827. (init_div_requests): Use class nl_reg for \n(nl.
  828. (top_level_diversion::begin_page): Don't call
  829. output_file::begin_page if before_first_page is 2;
  830. reset before_first_page afterwards. If have_next_page_number is
  831. false, then always increment page_number.
  832. * tmac/tmac.an: Set traps within TH rather than at the top-level.
  833. Restore compatibility mode after loading, and then disable
  834. compatibility mode in TH.
  835. Thu Apr 1 11:09:34 1993 James Clark (jjc at jclark)
  836. * grotty/tty.cc (tty_printer::end_page): Don't discard characters
  837. past last line.
  838. * troff/node.h (output_file::trailer): Declare.
  839. * troff/div.cc (cleanup_and_exit): Call output_file::trailer().
  840. * troff/node.cc (output_file::trailer): New function.
  841. (troff_output_file::~troff_output_file): Move most code into...
  842. (troff_output_file::trailer): New function.
  843. (class troff_output_file): Delete page_length member. Declare
  844. trailer().
  845. (troff_output_file::really_begin_page): Use current page length
  846. for final V command.
  847. * tbl/main.cc (struct options): New decimal_point_char member.
  848. (options::options): Initialize this.
  849. (process_options): Implement decimalpoint option.
  850. (process_data): Pass decimal_point_char option to table::table.
  851. * tbl/table.h (class table): New decimal_point_char member.
  852. (table::table): Add additional argument.
  853. * tbl/table.cc (find_dot): Rename to find_decimal_point. Add
  854. second argument specifying decimal point character. Use this
  855. instead of '.'.
  856. (table::table): Initialize decimal_point_char.
  857. (table::add_entry): Change call to find_dot.
  858. * troff/input.cc (get_copy, token::next): Implement \V.
  859. (interpolate_environment_variable): New function.
  860. Tue Mar 30 14:41:39 1993 James Clark (jjc at jclark)
  861. * pic/lex.cc (lookup_keyword): Rename MIN to K_MIN, MAX to K_MAX.
  862. * pic/pic.y: Likewise.
  863. * grotty/tty.cc (tty_printer::add_char, tty_printer::end_page):
  864. Add casts to int.
  865. * refer/ref.cc (reference::insert_field, reference::delete_field):
  866. Likewise.
  867. * troff/number.cc (parse_term): Likewise.
  868. * acgroff.m4 (GROFF_PROG_YACC): New macro.
  869. * configure.in: Use GROFF_PROG_YACC.
  870. * acgroff.m4 (GROFF_PROG_CCC): Don't add -O automatically for gcc
  871. and g++.
  872. * Makefile.in (OPTIMIZE): New define.
  873. (DEBUG): Empty by default.
  874. (CCFLAGS, CFLAGS): Include $(OPTIMIZE).
  875. * acgroff.m4 (GROFF_SYS_SIGLIST): Don't quote program.
  876. (GROFF_ARRAY_DELETE): Likewise.
  877. (GROFF_CC_COMPILE_CHECK): Quote use of $2 and $3.
  878. * troff/env.cc (trie::~trie): Make virtual to shut up g++.
  879. * devps/psstrip.sed: Use different delimiter on last line (so that
  880. it works with BSD 4.4 sed.)
  881. Mon Mar 29 17:07:14 1993 James Clark (jjc at jclark)
  882. * devps/psstrip.sed: Delete comments.
  883. * acgroff.m4 (AC_GETOPT): Don't test whether <unistd.h> declares
  884. optind, opterr, optarg.
  885. * lib.h: When UNISTD_H_DECLARES_GETOPT is defined, declare optind,
  886. opterr, optarg.
  887. Sun Mar 28 17:44:25 1993 James Clark (jjc at jclark)
  888. * Makefile.in (check): Dummy target.
  889. Wed Mar 3 04:53:38 1993 James Clark (jjc at jclark)
  890. * Version 1.07 released.
  891. * Integrate mm 1.11.
  892. * tbl/table.cc (alphabetic_block_entry::print): start_row was used
  893. where start_col was meant.
  894. Thu Feb 25 07:55:36 1993 James Clark (jjc at jclark)
  895. * grog/grog.sh, grog/grog.pl: Recognize PH and SA as -mm macros.
  896. Wed Feb 24 10:15:34 1993 James Clark (jjc at jclark)
  897. * troff/input.cc (token::next): Make \z\o'...' and similar things
  898. work.
  899. * env.h (MARGIN_CHARACTER_ON, MARGIN_CHARACTER_NEXT): New
  900. constants.
  901. (environment): Add margin_character_flags member.
  902. * env.cc (environment::environment(symbol),
  903. environment::environment(const environment *): Initialize
  904. margin_character_flags.
  905. (margin_character): Rewrite.
  906. (environment::output_line): Add a margin character if
  907. margin_character_flags is non-zero. Turn off the
  908. MARGIN_CHARACTER_NEXT bit. If that makes margin_character_flags
  909. zero, use margin_character_node without copying and then set
  910. margin_character_node to 0.
  911. * devps/DESC.in: Change minimum size to 1000.
  912. Tue Feb 23 14:57:49 1993 James Clark (jjc at jclark)
  913. * troff/symbol.h (symbol::hash): Change return type to unsigned
  914. long.
  915. * troff/dictionary.cc (dictionary::lookup, dictionary::remove):
  916. Add casts to int.
  917. * test-groff: Use -r rather than -x.
  918. * grops/psfig.diff: Include in distribution again.
  919. Mon Feb 22 09:10:44 1993 James Clark (jjc at jclark)
  920. * Makefile.in (dist): Use gzip.
  921. Sun Feb 21 11:12:53 1993 James Clark (jjc at jclark)
  922. * acgroff.m4 (GROFF_GETOPT): Check for declaration of getopt() in
  923. unistd.h as well as in stdlib.h.
  924. * include/lib.h: Include <stdlib.h> is STDLIB_H_DECLARES_GETOPT is
  925. defined; otherwise include <sys/types.h> and <unistd.h> if
  926. UNISTD_H_DECLARES_GETOPT is defined.
  927. * configure.in: use builtin(include, ... rather than include(...
  928. * configure: Regenerate with autoconf 1.3.
  929. * libdriver/print.cc (printer::adjust_arc_center): Use new
  930. algorithm suggested by Andy Fyfe.
  931. * libdriver/printer.cc (printer::adjust_arc_center): New function.
  932. * include/printer.h: Declare this.
  933. * grops/ps.cc (ps_printer::draw): Use it.
  934. * grodvi/dvi.cc (dvi_printer::draw): Use it.
  935. Fri Feb 19 23:13:51 1993 James Clark (jjc at jclark)
  936. * Makefile.comm (.man.n): Replace macrodir by tmacdir.
  937. Thu Feb 11 16:46:59 1993 James Clark (jjc at jclark)
  938. * eqn/main.cc (main): Handle "eqn -".
  939. Mon Jan 4 20:29:56 1993 James Clark (jjc at jclark)
  940. * tmac/tmac.e (++): Install fix from comp.bugs.4sd.
  941. * mm: Integrate version 1.08.
  942. * pic/troff.cc (troff_output::finish_picture): Set
  943. EQN_NO_EXTRA_SPACE reg to 0 rather than removing it.
  944. * eqn/box.cc (box::extra_space): Set EQN_NO_EXTRA_SPACE_REG to 0
  945. if it's not defined. Check whether the register is non-zero rather
  946. than whether it's not defined.
  947. * tmac.e ({, <): Make argument to \x zero if \n(0x is non-zero.
  948. * indxbib/indxbib.cc: Move all signal handling into...
  949. * indxbib/signal.c: New file.
  950. * configure.in: Call AC_RETSIGTYPE.
  951. * acgroff.m4 (GROFF_STRUCT_EXCEPTION): New macro.
  952. * configure.in: Call GROFF_STRUCT_EXCEPTION.
  953. * libgroff/matherr.c: Protect with ifdef HAVE_STRUCT_EXCEPTION.
  954. * troff/input.cc (token::token, token::operator=): Work round SGI
  955. C++ bug.
  956. * pic/object.cc (position::position): Likewise.
  957. Mon Dec 28 21:50:21 1992 James Clark (jjc at jclark)
  958. * pic/pic.h: Move declaration of hypot().
  959. Wed Dec 16 12:28:29 1992 James Clark (jjc at jclark)
  960. * pic/pic.h: Declare hypot().
  961. * pic/pic.h: Define M_PI if necessary.
  962. Thu Dec 10 12:03:29 1992 James Clark (jjc at jclark)
  963. * tmac/tmac.e (re): Add alternative version that doesn't use groff
  964. `.ta T' feature.
  965. * devps/prologue.ps (RE): Handle the possibility that the old font
  966. doesn't have a FontName entry.
  967. Wed Dec 2 10:25:29 1992 James Clark (jjc at jclark)
  968. * tmac/tmac.e (fam): Redefine to set family in environment 2.
  969. (@C): Use @fam not fam.
  970. Thu Nov 26 16:01:25 1992 James Clark (jjc at jclark)
  971. * lookbib/lookbib.cc (main): Change type of start to const char *.
  972. * lkbib/lkbib.cc (main): Likewise.
  973. * eqn/lex.cc (definition::definition): Don't use member
  974. initializer syntax for members of anonymous unions.
  975. * troff/input.cc (input_stack::backtrace): Change type of to const
  976. char *.
  977. Wed Nov 25 13:43:09 1992 James Clark (jjc at jclark)
  978. * include/stringclass.h (class string): Declare inline friend
  979. functions as inline in class declaration.
  980. * troff/hvunits.h (class hunits, class vunits): Likewise.
  981. * include/refid.h (class reference_id): Likewise
  982. * troff/troff.h (points_to_units(units), scale(units, double)):
  983. Delete declarations.
  984. * libdriver/input.cc (get_char): Delete declaration.
  985. * include/lib.h: Change 2nd argument of getopt from const char **
  986. to char **.
  987. * troff/symbol.cc (symbol::symbol): Cast `new char *[n]' to `const
  988. char **' before assigning to a `const char **'.
  989. * tbl/table.cc: Delete extra declarations of prints().
  990. Tue Nov 24 14:33:13 1992 James Clark (jjc at jclark)
  991. * libgroff/font.cc (font::load_desc): Cast `new char *[n]' to `const
  992. char **' before assigning to a `const char **'.
  993. * libgroff/errarg.cc (errarg::errarg): Don't use member
  994. initializer syntax for members of anonymous unions.
  995. Sat Nov 21 05:02:23 1992 James Clark (jjc at jclark)
  996. * mm: Integrate version 1.07.
  997. Tue Nov 17 16:44:27 1992 James Clark (jjc at jclark)
  998. * troff/input.c (translate2): Rename to
  999. (translate_no_transparent).
  1000. (init_input_requests): Rename tr2 to trnt.
  1001. Mon Nov 16 09:49:32 1992 James Clark (jjc at jclark)
  1002. * troff/charinfo.h (class charinfo): Add transparent_translate field.
  1003. (charinfo::set_translation, charinfo::set_special_translation):
  1004. Add second argument that specifies value for
  1005. transparent_translate.
  1006. (charinfo::get_translation, charinfo::get_special_translation):
  1007. Add optional second argument that specifies whether translation is
  1008. being used for transparent throughput.
  1009. * troff/input.cc (charinfo::set_translation,
  1010. charinfo::set_special_translation): Handle second argument.
  1011. (charinfo::charinfo): Initialize transparent_translate.
  1012. (translate): Split main part off into
  1013. (do_translate): New function. Pass argument saying whether
  1014. translation applies to transparent throughput.
  1015. (translate2): New request.
  1016. (init_input_requests): Bind translate2 to `tr2'.
  1017. Wed Nov 11 11:43:20 1992 James Clark (jjc at jclark)
  1018. * tbl/table.h (class table): Add `nokeep' flag.
  1019. * tbl/main.cc (process_options): Handle `nokeep' option.
  1020. * tbl/table.cc (table::init_output, table::do_row, table::do_top,
  1021. table::do_bottom): Don't output keep/release macro definitions or
  1022. calls when `nokeep' option has been specified.
  1023. Sat Nov 7 01:28:33 1992 James Clark (jjc at jclark)
  1024. * tmac/tmac.Xps (Xps-char): Use " as delimiter for \Z.
  1025. Wed Nov 4 16:29:04 1992 James Clark (jjc at jclark)
  1026. * tbl/table.cc (table_entry::divert, block_entry::do_divert,
  1027. block_entry::divert, alphabetic_block_entry::divert): Add extra
  1028. argument giving column separation.
  1029. (table::compute_widths): Pass column separation to
  1030. table_entry::divert().
  1031. (block_entry::do_divert): If an entry spans multiple columns and a
  1032. minimumum width has been specified for each column, then set the
  1033. line length to the sum of the widths (plus possibly the column
  1034. separations).
  1035. * troff/input.cc (set_escape_char): Don't set the escape_char
  1036. until after calling has_arg().
  1037. Tue Nov 3 11:23:27 1992 James Clark (jjc at jclark)
  1038. * tbl/table.cc (table::do_top): Add missing \s0 for double box
  1039. case.
  1040. * tbl/table.cc (table::print_double_hline): Avoid extra new line
  1041. in case where r > nrows - 1.
  1042. * tbl/table.cc (BODY_HEIGHT): Deleted.
  1043. (LINE_SEP): New definition.
  1044. (table::print_single_hline, table::print_double_hline,
  1045. table::compute_vrule_top_adjust, table::compute_vrule_bot_adjust,
  1046. table::do_row, table::do_top): Use LINE_SEP space before a line
  1047. instead of \n[.v]-BODY_HEIGHT-BODY_DEPTH.
  1048. * tbl/table.cc (text_entry::print_contents): New function.
  1049. (text_string_name, right_text_string_name): Deleted.
  1050. (TEXT_STRING, RIGHT_TEXT_STRING): Deleted.
  1051. (simple_text_entry::do_width, numeric_text_entry::do_width,
  1052. alphabetic_text_entry::do_width): Don't store the contents of the
  1053. entry in a string.
  1054. (left_text_entry::simple_print, right_text_entry::simple_print,
  1055. center_text_entry::simple_print,
  1056. alphabetic_text_entry::simple_print,
  1057. numeric_text_entry::simple_print): Print the entry directly
  1058. instead of using the stored string.
  1059. Fri Oct 30 10:39:32 1992 James Clark (jjc at jclark)
  1060. * devps/Makefile: Strip PostScript files.
  1061. * devps/prologue: Rename to...
  1062. * devps/prologue.ps.
  1063. * devps/psstrip.sed: New file.
  1064. * devps/download: Use .pfa rather than .ps for installed versions
  1065. of fonts.
  1066. Thu Oct 29 09:14:43 1992 James Clark (jjc at jclark)
  1067. * troff/env.cc (input_trap): Give a warning if the argument is out
  1068. of range.
  1069. * troff/env.cc (adjust): Treat negative argument as missing. Round
  1070. argument > 5 down to 5.
  1071. * troff/env.cc (center, right_justify): Make negative argument zero.
  1072. * troff/div.cc (page_offset, vertical_position_traps): Treat
  1073. invalid argument as missing.
  1074. * troff/env.cc (line_spacing, line_length, title_length, indent,
  1075. underline, hyphen_line_max_request, control_char,
  1076. no_break_control_char, widow_control_request, adjust, input_trap,
  1077. point_size): Likewise.
  1078. * troff/node.cc (ligature, kern_request, bold_font, track_kern,
  1079. constant_space): Likewise.
  1080. * troff/input.cc (compatible, shift, warn_request,
  1081. set_escape_char): Likewise.
  1082. * tbl/main.cc (format::format): Avoid doing `new int[0]'.
  1083. * tbl/table.cc (table::table): Likewise.
  1084. * Makefile.dev (install_dev): depends on $(DEVFILES).
  1085. Wed Oct 28 08:30:57 1992 James Clark (jjc at jclark)
  1086. * devX75, devX75-12, devX100, devX100-12: New directories.
  1087. * Makefile.in: Add these to DEVDIRS.
  1088. * troff/Makefile.sub, eqn/Makefile.sub, indxbib/Makefile.sub,
  1089. afmtodit/Makefile.sub, tmac/Makefile.sub, nroff/Makefile.sub,
  1090. grog/Makefile.sub, mm/Makefile.sub (uninstall_sub): New target.
  1091. * Makefile.in (uninstall, uninstall_sub, uninstall_dirs): New
  1092. targets.
  1093. * Makefile.ccpg, Makefile.cpg, Makefile.dev, Makefile.man
  1094. (uninstall): New target.
  1095. * Makefile.comm (uninstall, uninstall_sub, uninstall_man,
  1096. uninstall_prog, uninstall_dev): New targets.
  1097. * troff/div.cc (return_request): Treat an invalid argument as
  1098. missing.
  1099. Mon Oct 26 11:33:47 1992 James Clark (jjc at jclark)
  1100. * tmac/tmac.e ((f): Set up the environment even when there's a
  1101. current diversion. Transperently throughput a call to @N.
  1102. (@N): New macro.
  1103. Thu Oct 22 05:05:59 1992 James Clark (jjc at jclark)
  1104. * tbl/table.cc (table::compute_vrule_top_adjust): Round adjustment
  1105. up to vertical resolution.
  1106. * tbl/table.cc (table::do_row): Change row number after printing
  1107. stuff list.
  1108. * pic/lex.cc (get_token_after_dot): Make .left and .right work.
  1109. Wed Oct 21 14:46:45 1992 James Clark (jjc at jclark)
  1110. * Rename CHANGES to NEWS.
  1111. Tue Oct 20 23:25:21 1992 James Clark (jjc at jclark)
  1112. * libgroff/new.cc (operator new): Avoid calling malloc(0).
  1113. Mon Oct 19 09:10:13 1992 James Clark (jjc at jclark)
  1114. * man.ultrix: Removed.
  1115. Sun Oct 18 06:35:15 1992 James Clark (jjc at jclark)
  1116. * Makefile.comm (extraclean): Delete files whose names begin with
  1117. `='.
  1118. * pic/troff.cc (troff_output::text): Fix typo in implementation of
  1119. aligned text.
  1120. Sat Oct 10 09:32:29 1992 James Clark (jjc at jclark)
  1121. * troff/env.cc (hyphenate_request, vertical_spacing, no_number):
  1122. * troff/div.cc (page_length, need_space, space_request): Treat
  1123. invalid optional argument as missing.
  1124. * troff/env.cc (number_lines): If the first argument is present
  1125. but not a number, turn on line numbering, don't change the next
  1126. line number and parse the remaining arguments.
  1127. * tmac/tmac.e (@q): Do the `ne' before changing to environment 2.
  1128. Thu Oct 8 10:24:40 1992 James Clark (jjc at jclark)
  1129. * eqn/box.h: Change declaration accordingly.
  1130. * eqn/box.cc (set_gsize): Change return type to int. Return 0 if
  1131. the specified size was bad but don't give an error. Check for
  1132. overflow.
  1133. * eqn/main.cc (main): Change caller. Leave validation to set_gsize.
  1134. * eqn/lex (do_size): Likewise.
  1135. Wed Oct 7 09:48:59 1992 James Clark (jjc at jclark)
  1136. * acgroff.m4 (GROFF_PROG_CCC): Use fopen when checking for C++
  1137. compatible headers.
  1138. Sun Oct 4 18:24:02 1992 James Clark (jjc at jclark)
  1139. * tbl/table.cc (table::init_output): Improve error message when
  1140. table won't fit on one page.
  1141. Fri Oct 2 10:41:40 1992 James Clark (jjc at jclark)
  1142. * pic/troff.cc (troff_output::start_picture): Generate line
  1143. containing a horizontal motion equal to the width of the picture.
  1144. * groff/groff.cc (main): Allow PROG_PREFIX to be set at runtime
  1145. using GROFF_COMMAND_PREFIX environment variable.
  1146. Fri Sep 25 11:40:40 1992 James Clark (jjc at jclark)
  1147. * mdate.sh: Use $NF rather than $(NF).
  1148. Tue Sep 22 09:47:24 1992 James Clark (jjc at jclark)
  1149. * pic/main.cc (main): Use %1 not %c in argument to warning.
  1150. * eqn/main.cc (main): Output code to check that geqn was given the
  1151. correct -T option.
  1152. Mon Sep 21 10:59:16 1992 James Clark (jjc at jclark)
  1153. * Makefile.in (dist): Instead of doing `make -f ../Makefile', do
  1154. `ln -s ../Makefile .; make; rm -f Makefile'.
  1155. * troff/hyphen: Rename to...
  1156. * troff/hyphen.us:
  1157. * troff/input.cc (main): Delete -H option. Don't call
  1158. read_hyphen_file().
  1159. * troff/env.cc: Include searchpath.h and macropath.h.
  1160. (exception_dictionary): Deleted.
  1161. (ht): Deleted.
  1162. (read_hyphen_file): Deleted.
  1163. (hyphenation_language): New struct.
  1164. (class trie, class hyphen_trie): Move declarations up.
  1165. (trie_node::~trie_node): Deleted.
  1166. (trie::delete_trie_node): New function.
  1167. (trie::do_delete): New pure virtual function.
  1168. (hyphen_trie::do_delete): New function.
  1169. (trie::~trie): New function.
  1170. (hyphen_trie::~hyphen_trie): New function.
  1171. (trie::clear): No need to chcek that tp is not 0.
  1172. (current_language, language_dictionary): New variables.
  1173. (hyphen_word): Give an error if no current language. Use
  1174. exceptions dictionary in current language.
  1175. (hyphen_trie::read_patterns_file): Find file using macro_path.
  1176. Allow comments (starting with %) in patterns file. Don't make it
  1177. a fatal error if the file can't be found.
  1178. (hyphenate): Return if no current language. Get the exceptions
  1179. dictionary and the hyphenation patterns from the current language.
  1180. (set_hyphenation_language): New variable.
  1181. (hyphenation_patterns_file): New function.
  1182. (hyphenation_language_reg): New class.
  1183. (hyphenation_language_reg::get_string): New function.
  1184. (init_hyphen_requests): Bind "hla" to set_hyphenation_language and
  1185. "hpf" to hyphenation_patterns_file. Initialize `.hla' number
  1186. register.
  1187. * groff/groff.cc (main, help, synopsis): Delete -H option.
  1188. * include/Makefile.sub: Don't define HYPHENFILE.
  1189. * Makefile.in: Delete hyphenfile variable and remove from MDEFINES.
  1190. * Makefile.comm (.man.n): Don't substitute for HYPHENFILE.
  1191. * tmac/troffrc: Set hyphenation language to `us'. Load `hyphen.us'
  1192. hyphenation patterns.
  1193. Sun Sep 20 09:33:02 1992 James Clark (jjc at jclark)
  1194. * eqn/neqn.sh: New file.
  1195. * eqn/Makefile.sub: Handle neqn.sh.
  1196. * eqn/eqn.h: Declare `nroff' variable.
  1197. * eqn/box.cc (param_table): Add `nroff' param.
  1198. (nroff): Define it.
  1199. * eqn/lex.cc (yylex): Handle TDEFINE and NDEFINE using `nroff'
  1200. variable.
  1201. * tmac/eqnrc: Set `nroff' to 1 for -Tascii or -Tlatin1.
  1202. * troff/troff.h (WARN_FONT): New warning.
  1203. (WARN_TOTAL): Change accordingly.
  1204. * troff/input.cc (DEFAULT_WARNING_MASK): Include WARN_FONT.
  1205. (warning_table): Add WARN_FONT.
  1206. * troff/node.cc (mount_font_no_translate): Pass argument to
  1207. font::load_font. If this is non-zero, give a warning.
  1208. Don't give an error message when accessing a font that has already
  1209. been found to be invalid.
  1210. * include/font.h (font::load, font::load_font): Add additional
  1211. optional argument which suppresses error message if the font is
  1212. not found.
  1213. * libgroff/font.cc (font::load_font): Handle additional argument.
  1214. (font::load): Add additional argument. If this is non-null, set it
  1215. to 1 and don't give error message.
  1216. * include/printer.h (printer::end_page): Add argument giving
  1217. length of page.
  1218. * libdriver/input.cc (do_file): Pass this.
  1219. * grops/ps.cc (ps_printer::end_page): Add argument.
  1220. * grodvi/dvi.cc (dvi_printer::end_page,
  1221. draw_dvi_printer::end_page): Add argument.
  1222. * grotty/tty.cc (class tty_printer): Remove lines_per_page and
  1223. columns_per_page members. New member nlines.
  1224. (DEFAULT_LINES_PER_PAGE): Deleted.
  1225. (tty_printer::tty_printer): Don't compute lines_per_page from
  1226. font::paperlength. Don't compute columns_per_page from
  1227. font::paperwidth.
  1228. (tty_printer::add_char): Don't check horizontal position against
  1229. columns_per_page. Grow glyphs vector if neccessary.
  1230. (tty_printer::end_page): Add argument giving page_length in units.
  1231. Discard lines past end of page.
  1232. Wed Sep 16 06:29:52 1992 James Clark (jjc at jclark)
  1233. * tmac/tmac.tty-char: Fix definition of \(/l.
  1234. * tmac/tmac.X: Define \(en.
  1235. Tue Sep 15 10:37:13 1992 James Clark (jjc at jclark)
  1236. * acgroff.m4 (GROFF_PRINT): If a system has lpr and lp but not
  1237. lpq, then use lp rather than lpr.
  1238. * tmac/tmac.s (par@reset): Don't call `ad'.
  1239. (par*env-init): Call `ad'.
  1240. Sun Sep 13 18:48:20 1992 James Clark (jjc at jclark)
  1241. * mdate.sh: Use $(NF) instead of $6 to extract year from output of
  1242. date.
  1243. * troff/symbol.cc: #undef BLOCK_SIZE if it's defined.
  1244. * indxbib/indxbib.cc: Likewise.
  1245. Sun Sep 6 09:44:46 1992 James Clark (jjc at jclark)
  1246. * libgroff/putenv.c: New file.
  1247. * libgroff/Makefile.sub: Add putenv.c to CSRCS.
  1248. * Makefile.in: Say that putenv.o can be one of LIBOBJS.
  1249. * configure.in: Test for putenv with AC_REPLACE_FUNCS. Test for
  1250. stdlib.h with AC_HAVE_HEADERS.
  1251. Sat Sep 5 18:11:52 1992 James Clark (jjc at jclark)
  1252. * indxbib/dirnamemax.c: Include <sys/dir.h> only if <dirent.h>
  1253. does not exist.
  1254. Fri Sep 4 09:43:26 1992 James Clark (jjc at jclark)
  1255. * eqn/box.cc (gsize): Make it an int.
  1256. (set_gsize): Parse argument handling increment or decrement.
  1257. (box::top_level): Convert gsize to a string.
  1258. * troff/input.cc (exit_troff): Make buf unsigned char [].
  1259. Call to make_temp_iterator casts buf to char*.
  1260. * Makefile.in ($(TARGETS), dot): Pass $(MDEFINES) to recursive makes.
  1261. * Makefile.ccpg (depend.temp): Depends on $(YTABC).
  1262. * Makefile.cpg (depend.temp): Likewise.
  1263. * Makefile.dep: Remove Makefile.dep from $(REALCLEANFILES).
  1264. * Makefile.comm: Add y.output to MOSTLYCLEANFILES.
  1265. Thu Sep 3 08:01:55 1992 James Clark (jjc at jclark)
  1266. * tmac/tmac.s (B, I, BI, CW): Rewrite avoiding aliases.
  1267. Tue Sep 1 18:24:53 1992 James Clark (jjc at jclark)
  1268. * Version 1.06 released.
  1269. * Integrate mm 1.04.
  1270. Fri Aug 28 11:28:19 1992 James Clark (jjc at jclark)
  1271. * Makefile.comm, Makefile.ccpg, Makefile.cpg: Fix TAGS target.
  1272. Thu Aug 27 11:03:33 1992 James Clark (jjc at jclark)
  1273. * afmtodit/afmtodit.pl: Add -n option that disables generation of
  1274. ligatures command.
  1275. * devps/generate/Makefile (CR, CB, CI, CBI): Pass -n flag to
  1276. afmtodit. Regenerate.
  1277. * tmac/tmac.e ()z): Adjust _b if necessary so as to avoid moving
  1278. @f back past the current position.
  1279. * tmac/tmac.e: Change calls to @R so that comments are not part of
  1280. arguments.
  1281. Tue Aug 25 10:42:07 1992 James Clark (jjc at jclark)
  1282. * configure.in: Check for mkstemp with AC_HAVE_FUNCS.
  1283. * acgroff.m4 (GROFF_PROG_CCC): Don't check for <osfcn.h>. Instead
  1284. check that we can link a call to a function declared in <stdio.h>.
  1285. (GROFF_UNISTD_H): New macro.
  1286. * configure.in: Call it.
  1287. * Makefile.in: Document it.
  1288. * include/posix.h: New file.
  1289. * troff/troff.h: Don't include <osfcn.h>
  1290. * troff/input.cc: Include posix.h.
  1291. * libgroff/new.cc, libgroff/tmpfile.cc: Include posix.h rather than
  1292. osfcn.h.
  1293. * indxbib/indxbib.cc, libbib/{search.cc,linear.cc,index.cc}:
  1294. Include posix.h rather <sys/types.h>, <sys/stat.h>, <osfcn.h>,
  1295. <fcntl.h>.
  1296. * indxbib/indxbib.cc (S_IRUSR, S_IRGRP, S_IROTH): Delete definitions.
  1297. * libbib/index.cc (S_ISREG, O_RDONLY): Delete definitions.
  1298. * libbib/search.cc (O_RDONLY): Delete definition.
  1299. * refer/refer.cc, include/driver.h, pic/pic.h, groff/groff.cc:
  1300. Don't include <osfcn.h>.
  1301. * acgroff.m4 (GROFF_TIME_T): New macro.
  1302. * configure.in: Call it.
  1303. * Makefile.in: Document it.
  1304. * acgroff.m4 (GROFF_TRADITIONAL_CPP): New macro.
  1305. * configure.in: Call it.
  1306. * Makefile.in: Document -DTRADITIONAL_CPP.
  1307. * include/ptable.h: Don't include generic.h.
  1308. (name2): Define it.
  1309. * tmac/tmac.s (][): Make [T1 and [T2 aliases for [T.
  1310. Afterwards remove [T1 and [T2.
  1311. (ref*spec!0, ref*spec!2): Use T1 rather than T.
  1312. (ref*spec!1, ref*spec!4, ref*spec!4): Use T2 rather than T.
  1313. (ref*add-T2): Renamed from ref*add-T.
  1314. (ref*add-T1): New macro.
  1315. Mon Aug 24 11:11:11 1992 James Clark (jjc at jclark)
  1316. * acgroff.m4 (AC_PROG_CCC): Use GROFF_EXIT rather than exit 1.
  1317. * libbib/index.cc: Include <fcntl.h>.
  1318. (O_RDONLY): Define if necessary.
  1319. (make_index_search_item, index_search_item_iterator::get_tag,
  1320. index_search_item::check_files): Use O_RDONLY.
  1321. * libbib/seach.cc: Include <fcntl.h>, <sys/types.h>, <sys/stat.h>.
  1322. (O_RDONLY): Define if necessary.
  1323. (search_list::add_file): Use O_RDONLY.
  1324. * indxbib/indxbib.cc: Include <fcntl.h>, <sys/types.h>,
  1325. <sys/stat.h>.
  1326. (S_IRUSR, S_IRGRP, S_IROTH): Define if necessary.
  1327. (main): Use these.
  1328. * libbib/index.cc (S_ISREG): Define it if necessary.
  1329. (index_search_item::load): Use S_ISREG.
  1330. * include/driver.h: Include <errno.h>.
  1331. Sun Aug 23 11:32:18 1992 James Clark (jjc at jclark)
  1332. * eqn/box.cc (body_height): Increase default value to 85.
  1333. (body_depth): Increase default value to 35.
  1334. Fri Aug 21 05:34:42 1992 James Clark (jjc at jclark)
  1335. * eqn/pbox.h (SAVE_FONT_STRING): Define it.
  1336. * eqn/box.cc (box::top_level): Hide use of \R in a string that is
  1337. protected from expansion with \E.
  1338. * acgroff.m4 (GROFF_PAGE): Use `case' to test domain.
  1339. * Makefile (Makefile): New target.
  1340. * Makefile.sub (configure, distfiles): New targets.
  1341. * acgroff.m4 (GROFF_BROKEN_SPOOLER_FLAGS): Avoid using ${var:-val}
  1342. construct.
  1343. Thu Aug 20 12:27:26 1992 James Clark (jjc at jclark)
  1344. * eqn/box.cc (param_table): Add body_height and body_depth.
  1345. * eqn/lex.cc (def_table): Make circumflex in hat_def roman.
  1346. Tue Aug 18 16:24:25 1992 James Clark (jjc at jclark)
  1347. * psbb/Makefile.sub: Don't link with libgroff.a.
  1348. * acgroff.m4 (GROFF_PUTENV): New macro.
  1349. * configure.in: Call GROFF_PUTENV.
  1350. * Makefile.in: Document STDLIB_H_DECLARES_PUTENV.
  1351. * groff/groff.cc: Don't declare putenv if STDLIB_H_DECLARES_PUTENV
  1352. is defined.
  1353. * troff/env.cc (distribute_space): Rename force_forward argument
  1354. to force_reverse. Reverse the list if force_reverse is true.
  1355. Mon Aug 17 17:49:05 1992 James Clark (jjc at jclark)
  1356. * tmac/tmac.an: Don't define a string `T'. Just define Tm.
  1357. * eqn/pile.cc (matrix_box::compute_metrics): Don't allow computed
  1358. height or depth to be negative. Guard against SUP_RAISE quantity
  1359. being negative.
  1360. Sat Aug 15 08:18:54 1992 James Clark (jjc at jclark)
  1361. * devps/generate/textmap: Add `an' (arrowhorizex).
  1362. * tmac/tmac.ps: \(an overlaps horizontally.
  1363. * tmac/tmac.dvi, tmac/tmac.tty: Add `an'.
  1364. * devps/symbolchars: Add arrowverttp, arrowvertbt.
  1365. * devps/textmap: Add arrowvertex.
  1366. * eqn/delim.cc (delim_table): Add uparrow, downarrow and
  1367. updownarrow delimiters.
  1368. * tmac/tmac.ps, tmac/tmac.X: Add definition of \(va.
  1369. * tbl/table.cc (simple_entry::position_vertically,
  1370. block_entry::position_vertically): For a centered entry, perform
  1371. the motion in two stages.
  1372. * refer/refer.cc (split_punct): Don't call lookup_token if there
  1373. is no token.
  1374. Fri Aug 14 11:14:58 1992 James Clark (jjc at jclark)
  1375. * troff/input.cc (token::next): Delete token_node after copying
  1376. token.
  1377. * grodvi/grodvi.cc (dvi_printer::dvi_printer): Initialize
  1378. cur_point_size.
  1379. * libdriver/printer.cc (printer::load_font): Delete old_font_table.
  1380. * grops/ps.cc (ps_printer::define_encoding): Delete elements of vec.
  1381. Tue Aug 11 13:50:38 1992 James Clark (jjc at jclark)
  1382. * grops/ps.cc (usage): -b option takes an argument.
  1383. * devps/prologue (PLG): New procedure.
  1384. * grops/ps.cc (main, usage): New -g option.
  1385. (ps_printer::~ps_printer): If guess_flag is set, guess the paper
  1386. length using PLG.
  1387. Mon Aug 10 11:17:53 1992 James Clark (jjc at jclark)
  1388. * include/cset.h: Include <limits.h> if we have it.
  1389. * libgroff/illegal.cc: New file.
  1390. * include/lib.h (illegal_input_char): Use table.
  1391. * troff/input.cc (ESCAPE_RIGHT_PARENTHESIS): Renumber to 0206.
  1392. * pic/lex.cc (ARG1): Renumber to 14.
  1393. * eqn/lex.cc (ARG1): Likewise.
  1394. * troff/Makefile.sub (majorminor.cc): Handle 3 part versions
  1395. (eg 1.05.90) correctly.
  1396. Sun Aug 9 13:35:43 1992 James Clark (jjc at jclark)
  1397. * tmac/tmac.e (sr): Deleted. Set $r and $R directly.
  1398. Rename $r and $R registers to $v and $V.
  1399. ($r, $R): Initialize to 0.
  1400. (@v, @V): New macros.
  1401. (sz): Call @v.
  1402. (@M): Call @V.
  1403. * troff/input.cc (main, usage): Add -R option that says not to
  1404. load troffrc.
  1405. * eqn/main.cc (main, usage): Rename -n to -R.
  1406. Sat Aug 8 00:16:00 1992 James Clark (jjc at jclark)
  1407. * devps/DESC.in: Leave font positions 5-9 blank.
  1408. * devdvi/DESC.in: Likewise.
  1409. * grog/grog.pl: Handle `.PS <file' correctly.
  1410. * troff/input.cc (input_stack::push): Improve error message when
  1411. input stack limit exceeded.
  1412. Fri Aug 7 13:08:16 1992 James Clark (jjc at jclark)
  1413. * refer/refer.cc (main): Fix typo in handling of `a' option.
  1414. * refer/refer.cc (do_bib): In state START after a newline remain
  1415. in state START.
  1416. * groff/groff.sh: Deleted.
  1417. * groff/Makefile.sub: Delete handling of groff.sh.
  1418. * pic/troff.cc (troff_output::text): Test \n(0p rather than \*(.T
  1419. to determine whether to use \X'ps:...'.
  1420. * tmac/troffrc: Set 0p register to 0.
  1421. * tmac/tmac.ps: Set 0p register to 1.
  1422. * groff/groff.cc: Support -X option. Give warning for -TXps and
  1423. transform to -X -Tps. Pass troff a -r.X=1 option if -X is used.
  1424. * tmac/troffrc: Support -r.X=1.
  1425. * pic/troff.cc (troff_output::dot): Don't test
  1426. zero_length_line_flag.
  1427. Thu Aug 6 13:32:08 1992 James Clark (jjc at jclark)
  1428. * include/lib.h: Declare getopt() and friends unless
  1429. STDLIB_H_DECLARES_GETOPT is defined.
  1430. * doc/chars.tr: Delete.
  1431. * man/groff_char.man: New file.
  1432. Wed Aug 5 00:38:58 1992 James Clark (jjc at jclark)
  1433. * tmac/tmac.e (np, bu): Test \n($p with string expression in case
  1434. user has changed register format.
  1435. Mon Aug 3 11:22:18 1992 James Clark (jjc at jclark)
  1436. * groff/groff.cc: Get rid of device_table. Get postprocessor from
  1437. `postpro' command in DESC file. Get spooler command from `print'
  1438. command in DESC file. Execute spooler command with /bin/sh.
  1439. * groff/groff.cc: Split Unix-specific parts into...
  1440. * groff/pipeline.c: New file.
  1441. * LICENSE: Delete.
  1442. * COPYING: New file.
  1443. * all files: Update copyright notices.
  1444. * Rearrange files. Redo Makefiles. Use autoconf.
  1445. Sat Aug 1 09:36:50 1992 James Clark (jjc at jclark)
  1446. * troff/input.c (charinfo_to_node_list): Interpret character
  1447. definition with escape_char of `\'.
  1448. Tue Jul 28 12:20:12 1992 James Clark (jjc at jclark)
  1449. * lib/strerror.c, lib/iftoa.c, lib/itoa.c: Don't include lib.h.
  1450. Define INT_DIGITS as big enough for 64-bit integer.
  1451. * lib/strtol.c: Don't include lib.h.
  1452. * lib/lib.h: Delete ifdef __cplusplus stuff.
  1453. Mon Jul 27 11:08:50 1992 James Clark (jjc at jclark)
  1454. * ps/devps/Makefile: Add DESC to DEVICEFILES. Separate out rule
  1455. for making DESC. Make $(FONTS) depend on DESC. afmtodit should
  1456. get DESC from current directory.
  1457. Sun Jul 26 15:38:26 1992 James Clark (jjc at jclark)
  1458. * tbl/main.c (main): Always reset the line number when reading
  1459. from stdin.
  1460. * tbl/table.c (table::print_single_hline, table::print_double_hline,
  1461. table::define_bottom_macro, table::do_row, table::do_top): Round
  1462. vertical spacing up to vertical resolution.
  1463. Fri Jul 24 14:32:07 1992 James Clark (jjc at jclark)
  1464. * ps/ps.h (enum resource_type): Avoid comma at end of
  1465. enumerator-list.
  1466. * dvi/dvi.c (class dvi_printer): Likewise.
  1467. * dvi/tfmtodit.c (gf::load): Likewise.
  1468. * refer/label.y (struct expression): Likewise.
  1469. * refer/refer.c (class label_processing_state): Likewise.
  1470. * refer/indxbib.c (do_file): Likewise.
  1471. * troff/troff.c (enum warning_type): Likewise.
  1472. * tbl/main.c (process_data): Likewise.
  1473. * troff/charinfo.h (class charinfo):
  1474. Wed Jul 22 09:17:58 1992 James Clark (jjc at jclark)
  1475. * dvi/devdvi/textt.map: Add entry for `-'. Regenerate fonts.
  1476. Tue Jul 21 11:39:26 1992 James Clark (jjc at jclark)
  1477. * groff.c: Move to new groff subdirectory.
  1478. * groff/Makefile: New file.
  1479. * Makefile: Remove handling of groff.c. Add groff to SUBDIRS.
  1480. * man/mdate.sh: Use ls -L if supported.
  1481. * Consolidate all header files produced by gendef into lib/defs.h.
  1482. * lib/macropath.c, lib/fontfile.c, lib/device.c: Include defs.h.
  1483. Don't include path.h.
  1484. * lib/Makefile (path.h): Don't generate.
  1485. * troff/input.c: Include defs.h. Don't include config.h.
  1486. * troff/Makefile (config.h): Don't generate.
  1487. * refer/index.h: Don't include suffix.h.
  1488. * refer/index.c: Include defs.h.
  1489. * refer/indxbib.c: Include defs.h.
  1490. * refer/refer.h, refer/lkbib.h: Don't include path.h. Include
  1491. defs.h.
  1492. * refer/Makefile (suffix.h, path.h): Don't generate.
  1493. * groff.c: Don't include config.h. Include defs.h.
  1494. * Makefile (config.h): Don't generate.
  1495. (lib/defs.h): Generate.
  1496. (topclean): Remove lib/defs.h.
  1497. Mon Jul 20 10:12:57 1992 James Clark (jjc at jclark)
  1498. * lib/malloc.c, lib/getpagesize.h: Deleted.
  1499. * Makefile: Add COOKIE_BUG configuration option. Delete malloc
  1500. related stuff.
  1501. * lib/Makefile: Delete malloc-related stuff.
  1502. * lib/new.c: Workaround COOKIE_BUG if necessary.
  1503. * refer/lkbib.c, refer/indxbib.c: Don't include refer.h. Include
  1504. needed header files directly.
  1505. * refer/refer.h: Omit definition of DEFAULT_INDEX.
  1506. * Makefile: Include definition of DEFAULT_INDEX in path.h.
  1507. Sun Jul 19 10:19:22 1992 James Clark (jjc at jclark)
  1508. * lib/font.c (FONT_COMMAND_HANDLER): Pass command name and single
  1509. argument.
  1510. * lib/font (font::load_desc, font::load): Don't split argument of
  1511. unknown command.
  1512. (font::handle_unknown_font_command): Change type.
  1513. * ps/ps.c (ps_font::handle_unknown_font_command,
  1514. handle_unknown_desc_command): Change type.
  1515. * dvi/dvi.c (dvi_font::handle_unknown_font_command): Change type.
  1516. Fri Jul 17 11:12:49 1992 James Clark (jjc at jclark)
  1517. * lib/font.h (font::handle_unknown_font_command): Add file and
  1518. line arguments.
  1519. * lib/font.c (font::handle_unknown_font_command):
  1520. * ps/ps.c (ps_font::handle_unknown_font_command):
  1521. * dvi/dvi.c (dvi_font::handle_unknown_font_command): Add file and
  1522. lineno arguments. Use _with_file_and_line functions for error
  1523. reporting.
  1524. * lib/fontfile.c (font::unknown_desc_command_handler): New static
  1525. data member.
  1526. * lib/font.c (font::set_unknown_desc_command_handler): New
  1527. function.
  1528. (font::load_desc): For unknown commands, call
  1529. unknown_desc_command_handler if not null.
  1530. * lib/font.h (class font): Declare them.
  1531. (FONT_COMMAND_HANDLER): New typedef.
  1532. * ps/ps.c (handle_unknown_desc_command): New function.
  1533. (main): Set bflag if we had a -b option. Call
  1534. font::set_unknown_desc_command_handler.
  1535. (broken.h): Don't include.
  1536. * ps/Makefile: No need for broken.h. Pass BROKEN_SPOOLER_FLAGS to
  1537. submake
  1538. * ps/devps/Makefile: Add `broken' command to DESC file using
  1539. BROKEN_SPOOLER_FLAGS.
  1540. * macros/tmac.e ([, ]): Add as synonyms for { and }.
  1541. * macros/tmac.e ($p): Only exdent if \$3 > 0.
  1542. * macros/tmac.e (@R, @S): New macros.
  1543. Declare @, po, $0, $i, $p, df, so, fu, bt, *, ?a, ?b, ?C, ?e, ?H,
  1544. ?I, ?n, ?o, ?R, ?s, ?T, ?W, ?w registers with @R.
  1545. Declare $H, $[0-9], .. macros with @S.
  1546. Declare |0, |1, |2, |3 strings with @S.
  1547. * macros/tmac.e (@S): Rename to @U.
  1548. * macros/tmac.e (@z): Define @b and bp as empty instead of
  1549. deleting them,
  1550. * macros/tmac.e (@m): Deleted.
  1551. (@h): Don't call @m.
  1552. (@z): Don't set @m trap.
  1553. * macros/tmac.e ($h, $f): Define |z as empty string.
  1554. * macros/tmac.e (@D): Rework to avoid unbalanced .el requests.
  1555. (@q): Likewise.
  1556. * macros/tmac.e (@h): Set ?H, ?C , ?s registers to 0 rather than
  1557. removing them.
  1558. ()f): Likewise for * register.
  1559. * macros/tmac.e (sr): Don't ever scale the arguments. If the third
  1560. argument is missing, don't change $R. Call sr with three
  1561. arguments when initializing.
  1562. Thu Jul 16 12:17:12 1992 James Clark (jjc at jclark)
  1563. * macros/tmac.e (sr): New macro.
  1564. Initialize $r and $R using sr.
  1565. * macros/tmac.e (,): Delete \*(#[.
  1566. * troff/env.c (set_tabs): Read the tab type even if the position
  1567. is bad. Allow the position of the first tab stop to be negative.
  1568. Wed Jul 15 13:14:37 1992 James Clark (jjc at jclark)
  1569. * refer/dirnamemax.c: Use pathconf() if <unistd.h> defines
  1570. _POSIX_VERSION.
  1571. * refer/Makefile: Compile dirnamemax.c using -DHAVE_UNISTD_H
  1572. rather than -DPATHCONF_MISSING.
  1573. * Makefile: Get rid of PATHCONF_MISSING.
  1574. * refer/map.c: New file.
  1575. * refer/index.c: Interface to mmap through map.c. Rename map_size
  1576. to map_len.
  1577. * refer/Makefile: Handle map.c.
  1578. * Makefile: Include -DHAVE_MMAP in OLDCFLAGS rather than CFLAGS.
  1579. Tue Jul 14 14:15:20 1992 James Clark (jjc at jclark)
  1580. * Makefile: RANLIB should be `true' if there is no ranlib.
  1581. * lib/Makefile (libgroff.a): Simplify.
  1582. * driver/Makefile (libdriver.a): Simplify.
  1583. * Makefile: Change -DWAIT_COREDUMP_0200 to -DWCOREFLAG=0200.
  1584. * groff.c (WCOREDUMP): Use WCOREFLAG. Define only if not already
  1585. defined.
  1586. Sat Jul 11 09:19:17 1992 James Clark (jjc at jclark)
  1587. * troff/env.c (compare_ranges): Declare as extern "C".
  1588. * troff/input.c (init_registers): Use `struct tm' instead of `tm'.
  1589. * macros/tmac.s, macros/tmac.e: Change .nx /dev/null to .nx.
  1590. Wed Jul 8 11:52:27 1992 James Clark (jjc at jclark)
  1591. * pic/troff.c (troff_output::text): Merge in grops_output::text,
  1592. but conditionalize use of \X based on \*(.T.
  1593. (grops_output::*): Deleted.
  1594. * pic/output.h: Delete declaration of make_grops_output.
  1595. * pic/main.c (main): Ignore -p and -x. driver_extension_flag is 1
  1596. by default. -n sets it to 0.
  1597. (usage): Corresponding changes.
  1598. * groff.c (main): Don't pass -x or -p to pic.
  1599. * groff.sh: Likewise.
  1600. * ps/ps.c (ps_printer::do_exec, ps_printer::do_file): Force ndefs
  1601. to be non-zero.
  1602. * ps/devps/afmtodit: Change calculation of asc_boundary and
  1603. desc_boundary. Make these bounds inclusive.
  1604. * ps/devps: Regenerate font files.
  1605. Tue Jul 7 13:14:15 1992 James Clark (jjc at jclark)
  1606. * macros/tmac.latin1: New file.
  1607. * macros/tmac.tty-char: Use tmac.latin1.
  1608. (tmac.tty-tr): Deleted.
  1609. * macros/Makefile: Install tmac.latin1.
  1610. * macros/tmac.dvi: Use tmac.latin1.
  1611. * macros/troffrc: Translate \[char160] onto no-break space here.
  1612. * macros/{tmac.dvi,tmac.ps,tmac.tty,tmac.X75}: Don't do it here.
  1613. Mon Jul 6 11:06:52 1992 James Clark (jjc at jclark)
  1614. * macros/tmac.Xps: Use `do' request.
  1615. * macros/tmac.ps: Use `do' request.
  1616. * macros/tmac.e (@C): Use `do' request.
  1617. * macros/tmac.X, macros/tmac.Xps: Moved from xditview.
  1618. * macros/Makefile: Install tmac.X*.
  1619. * tty/tmac.tty, tty/tmac.tty-char: Move to macros.
  1620. * tty/Makefile: Don't install tmac.tty*.
  1621. * macros/Makefile: Install tmac.tty*.
  1622. * dvi/tmac.dvi: Move to macros.
  1623. * dvi/Makefile: Don't install tmac.dvi.
  1624. * macros/Makefile: Install tmac.dvi.
  1625. * ps/tmac.ps*: Move to macros.
  1626. * ps/Makefile: Don't install tmac.ps*.
  1627. * macros/Makefile: Install tmac.ps*.
  1628. * eqn/box.c: Provide draw_lines parameter corresponding to -D
  1629. option.
  1630. * macros/eqnrc: Set draw_lines parameter based on device.
  1631. * groff.c: Don't pass -D flag to eqn.
  1632. * groff.sh: Likewise.
  1633. * eqn/main.c: Warn about use of -D.
  1634. * troff/input.c (process_startup_file): New function.
  1635. (main): Call process_startup_file().
  1636. * macros/troffrc: New file.
  1637. * macros/Makefile: Install troffrc.
  1638. * groff.c (main): Don't pass extra -m option to troff. For a
  1639. pseudo device pass the name of the pseudo device to troff using
  1640. -d.
  1641. * groff.sh: Likewise.
  1642. * groff.c (possible_command::prepend_arg): Deleted.
  1643. * troff/input.c (do_request): New function.
  1644. (init_input_requests): Bind "do" to do_request.
  1645. * eqn/main.c (main): Instead of loading eqnchar from device directory,
  1646. load eqnrc from macro directory.
  1647. * macros/eqnrc: New file.
  1648. * macros/Makefile: Install eqnrc.
  1649. * ps/devps/eqnchar: Deleted.
  1650. * ps/devps/Makefile: Don't install eqnchar.
  1651. * dvi/devdvi/eqnchar: Deleted.
  1652. * dvi/devdvi/Makefile: Don't install eqnchar.
  1653. * groff.c (main): Pass -M to eqn. Don't pass -F to eqn. New
  1654. variable optM.
  1655. * lib/device.[ch]: New files.
  1656. * lib/font.h (font::set_device_name, font::get_device_name):
  1657. Deleted.
  1658. * lib/fontfile.c: Use device.h.
  1659. * lib/Makefile: Handle device.[ch]. Make paths.h define DEVICE.
  1660. * troff/input.c: Delete definition of `device'.
  1661. (main): Don't initialize device.
  1662. * troff/troff.h: Include device.h rather than declaring device.
  1663. * troff/Makefile: No need to handle DEVICE.
  1664. * driver/input.c: Include device.h. Don't use
  1665. font::{set,get}_device_name.
  1666. * groff.c, Makefile: Rename device.h to config.h.
  1667. * groff.c: Use library device variable.
  1668. * eqn/main.c: Use library device variable.
  1669. * eqn/Makefile: No need to handle DEVICE.
  1670. * lib/searchpath.[ch]: New files.
  1671. * lib/Makefile: Handle searchpath.[ch].
  1672. * troff/input.c (open_file, init_dirs): Deleted.
  1673. (macro_dirs): Deleted.
  1674. (open_mac_file, macro_source): Use class search_path.
  1675. (add_string, struct string_list): Move definition.
  1676. (main): Change -M option to use macro_path. Delete call to
  1677. init_dirs().
  1678. * lib/fontfile.c (font::command_line_font_dir, font::open_file):
  1679. Rewrite to use class search_path.
  1680. * lib/font.h, lib/fontfile.c (font::cl_font_dirs): Deleted.
  1681. * lib/Makefile: fontfile.c depends on searchpath.h.
  1682. * lib/Makefile: Rename fontpath.h to paths.h. Make paths.h define
  1683. MACROPATH.
  1684. * lib/macropath.[ch]: New files.
  1685. * troff/Makefile: No need to handle MACROPATH.
  1686. * troff/input.c: Delete DUMP code.
  1687. * lib/fontfile.c, lib/font.h: Delete
  1688. font::forget_command_line_font_dirs.
  1689. * troff/input.c (push_token): New function.
  1690. (handle_first_page_transition): Use push_token().
  1691. (process_input_stack): Change handling of a space at the beginning
  1692. of the line.
  1693. Sun Jul 5 17:11:09 1992 James Clark (jjc at jclark)
  1694. * troff/input.c (font_dirs): Delete unused variable.
  1695. * eqn/lex.c (do_set): Correct error messages.
  1696. Sat Jul 4 10:20:55 1992 James Clark (jjc at jclark)
  1697. * troff/input.c (do_define_string): Allow the string name to be
  1698. followed immediately by a tab.
  1699. (define_character): Likewise.
  1700. Thu Jul 2 10:59:15 1992 James Clark (jjc at jclark)
  1701. * ps/ps.c (ps_printer::draw): When drawing an arc, don't allow k to
  1702. be negative.
  1703. * troff/input.c (input_iterator::is_file): New virtual function.
  1704. (file_iterator::is_file): New function.
  1705. (input_stack::end_file): New function.
  1706. (input_stack::next_file): Handle the situation where there is no
  1707. file on the input stack correctly. Avoid making two passes over
  1708. the input stack.
  1709. (next_file): Make the filename optional; in this case call
  1710. input_stack::end_file().
  1711. Wed Jul 1 10:17:25 1992 James Clark (jjc at jclark)
  1712. * dvi/tmac.dvi: Change the definitions of \(ul and _ so that they
  1713. produce a real _ charater when the current font is CW and _
  1714. otherwise.
  1715. * lib/errarg.c (errarg::errarg(const char *)): Invert conditional
  1716. expression to work around gcc 2.2 bug.
  1717. Wed Jun 24 08:12:24 1992 James Clark (jjc at jclark)
  1718. * eqn/main.c (main): Don't give an error if we can't find eqnchar.
  1719. * troff/env.c (environment::add_padding): New function.
  1720. (environment::add_char): Use add_padding().
  1721. (environment::space): Likewise.
  1722. (environment::wrap_up_field): Add some padding if there is none
  1723. and there's no current tab.
  1724. * troff/env.h: Declare environment::add_padding.
  1725. Mon Jun 22 08:37:45 1992 James Clark (jjc@jclark)
  1726. * pic/pic.y: undef fmod and rand before declaring them.
  1727. Sun Jun 14 11:40:18 1992 James Clark (jjc@jclark)
  1728. * troff/input.c (main): If the DESC file specifies a font name of
  1729. 0, then leave the corresponding font position empty.
  1730. * nroff.sh: New file.
  1731. * Makefile (install.nobin): Install nroff.sh.
  1732. * tty/devlatin1/R.proto: Add ao as synonym for de.
  1733. * tty/tmac.tty-char: Define ao as o.
  1734. * tty/dev{ascii,latin1}/R.proto: Add aq.
  1735. * tty/tmac.tty-char: Delete definition of aq.
  1736. Mon Jun 8 11:43:20 1992 James Clark (jjc@jclark)
  1737. * troff/input.c (init_charset_table): Don't translate 0240.
  1738. * ps/tmac.ps: Translate char160 to space.
  1739. * dvi/tmac.dvi: Likewise.
  1740. * tty/tmac.tty: Likewise.
  1741. Sun Jun 7 10:52:35 1992 James Clark (jjc@jclark)
  1742. * dvi/tmac.dvi: Add support for all Latin-1 characters.
  1743. * macros/tmac.s: Delete definitions of \(rg, \(ah, \(ad, \(a-,
  1744. \(ao, \(ac, \(ho, \(-D, \(Sd, \(TP, \(Tp, \(ss, \(AE, \(ae, \(OE,
  1745. \(oe, \(r?, \(r!.
  1746. * tty/tmac.tty-char: Add \(ah.
  1747. * dvi/tmac.dvi: Add definitions of Tp, TP, Sd, -D, ho.
  1748. No need to define \(FM and \(!/. Conditionalize all character
  1749. definitions.
  1750. * ps/devps/lgreekmap: Add +h, +f, +p.
  1751. * ps/tmac.psnew: New file.
  1752. * ps/Makefile: Install tmac.psnew.
  1753. * troff/input.c (charinfo_to_node_list): Don't ever interpret
  1754. character definitions in compatible mode.
  1755. * troff/input.c (remove_character): New function.
  1756. (init_input_requests): Bind remove_character to "rchar".
  1757. * ps/tmac.psold: New file.
  1758. * ps/Makefile: Install tmac.psold.
  1759. * ps/tmac.ps: Load tmac.psold. Move definitions of ISO Latin-1
  1760. characters into tmac.psold. Make these definitions unconditional.
  1761. * tty/tmac.tty-char: Define \n(_C only if it is not already defined.
  1762. * ps/tmac.ps: Don't define \('c and \('C.
  1763. * ps/devps/textmap: Move Greek characters to...
  1764. * ps/devps/symbolchars:
  1765. Sat Jun 6 16:41:17 1992 James Clark (jjc@jclark)
  1766. * ps/devps/text.enc: Add quotesingle.
  1767. * ps/devps/textmap: Add +h, +f, +p, Fn, Bq, bq, aq, lz.
  1768. * tty/tmac.tty-char: Likewise.
  1769. * dvi/devdvi/texmi.map: Add +h, +f, +p.
  1770. * dvi/devdvi/texi.map: Add Fn.
  1771. * dvi/devdvi/msam.map: Add lz.
  1772. * dvi/tmac.dvi: Handle Bq, bq, aq.
  1773. * pic/lex.c (get_token): Recognize 'th.
  1774. * pic/map.y: Allow `expr'th in contexts where ORDINAL was allowed.
  1775. Fri Jun 5 11:20:46 1992 James Clark (jjc@jclark)
  1776. * ps/devps/textmap: Move di, mu, +- to...
  1777. * ps/devps/symbolchars:
  1778. * macros/tmac.s (@XS): Don't call par@reset or fi.
  1779. (XA): Call LP. Turn off adjustment. Reduce line length.
  1780. * macros/tmac.s: Initially alias XS to LP.
  1781. (XS): Rename to @XS.
  1782. (cov*ab-init): Alias XS to @XS.
  1783. Thu Jun 4 09:12:05 1992 James Clark (jjc@jclark)
  1784. * troff/token.h: Delete TOKEN_CHAR_HEIGHT, TOKEN_CHAR_SLANT,
  1785. TOKEN_FONT_NAME, TOKEN_FONT_POSITION, TOKEN_SIZE tokens.
  1786. (token::is_size, token::changes_env): Deleted.
  1787. * troff/number.c (parse_term): No need to process \s explicitly.
  1788. Call tok.next() only after scale indicator has been processed.
  1789. * troff/input.c (do_overstrike, do_bracket): No need to process \s,
  1790. \f etc explicitly.
  1791. (token::next): Handle \s, \f, \S, \H immediately rather than
  1792. returning them as tokens.
  1793. (token::operator==, token::description, token::add_to_node_list,
  1794. token::process): Remove handling of deleted tokens.
  1795. * troff/env.c (environment::add_char): When adding padding
  1796. indicator character, call start_line() if necessary.
  1797. Wed Jun 3 09:55:50 1992 James Clark (jjc@jclark)
  1798. * ps/devps/afmtodit: Don't output 0 kerns.
  1799. * ps/devps/afmtodit: Remove directory from name of encoding in
  1800. font description file.
  1801. * ps/devps/afmtodit: Improve error messages.
  1802. * ps/devps/afmtodit: Allow DESC file to be specified with -d.
  1803. * ps/devps/Makefile: Incorporate FontMakefile. Rework.
  1804. * ps/devps/FontMakefile: Deleted.
  1805. * ps/devps/afmname: New file.
  1806. * ps/devps/symbol.sed: New file.
  1807. * ps/devps/symbol.diff: Deleted.
  1808. * ps/devps/FontMakefile: Generate symbol.afm using symbol.sed.
  1809. Generate zapfdr.afm from zapfd.afm.
  1810. * tty/tmac.tty (tty-char): Prefix definition with ".
  1811. * macros/tmac.an (TP): Don't start a diversion if one has already
  1812. been started.
  1813. * tty/tmac.tty-char: Add Latin-1 characters.
  1814. * tty/tmac.tty-char: Incorporate suggestions from Paul Eggert.
  1815. Tue Jun 2 00:54:34 1992 James Clark (jjc@jclark)
  1816. * tbl/table.c (table::allocate): Delete old_vline, old_entry.
  1817. Move declaration of struct horizontal_span.
  1818. * tbl/table.c (table::table): Initialize span_list.
  1819. (table::~table): Delete span_list.
  1820. * lib/ptable.h (PTABLE(T)::~PTABLE(T)): Delete v.
  1821. * ps/devps/Makefile: Avoid dependency on GNU make.
  1822. * ps/tmac.ps: Check that character does not already exist before
  1823. defining it.
  1824. * tty/tmac.tty: Add definitions of \(ff, \(!=, \(==, \(~=, \(sq,
  1825. \(OE, \(oe, \(AE, \(ae, \(lh, \(rh. Delete definitions of \(en,
  1826. \(ru, \(ul, \(br, \(bv, \(sl which are in the font description
  1827. files.
  1828. * tty/tmac.tty-char: New file.
  1829. * tty/Makefile: Install tmac.tty-char.
  1830. * tty/tmac.tty: Move definitions of \(ua, \(da, \(uA, \(dA into
  1831. tmac.tty-char.
  1832. * tty/tmac.tty: Fix definition of \(34.
  1833. * tty/dev{ascii,latin1}/R.proto: Add ha and ti. Map
  1834. bracket-drawing characters onto |. Add *o.
  1835. * troff/env.c (environment::wrap_up_tab): Increment field_spaces
  1836. only if current_field.
  1837. * troff/dictionary.c (dictionary::lookup): Free old_table after
  1838. rehashing.
  1839. Mon Jun 1 10:15:22 1992 James Clark (jjc@jclark)
  1840. * tty/dev{ascii,latin1}/R.proto: Add uppercase Greek characters
  1841. whose glyphs are identical to glyphs of some Roman character.
  1842. * tty/devlatin1/R.proto (bu): Deleted.
  1843. * tty/devascii/R.proto (bu): Deleted.
  1844. * tty/tmac.tty: Add definition of \(bu.
  1845. * eqn/main.c (do_file): Pass FILE as argument.
  1846. (main): Automatically load eqnchar. New options -F and -n.
  1847. Pass do_file an opened FILE.
  1848. * groff.c: Don't pass eqnchar to eqn. Pass -F options onto eqn.
  1849. No need to include font.h.
  1850. * groff.sh: Likewise. Don't need to use - for standard input.
  1851. Prefix files with -- if first file starts with -.
  1852. * macros/tmac.e: Conditionalize use of \$* on \n(.g.
  1853. * troff/env.c (environment::possibly_break_line): Don't set line
  1854. to 0 across call to output_line(). Don't call output_line() until
  1855. after discarding nodes after break.
  1856. Sun May 31 10:45:29 1992 James Clark (jjc@jclark)
  1857. * request.h (macro::empty): Declare it.
  1858. * input.c (macro::empty): New method.
  1859. (interpolate_macro): Don't give a WARN_SPACE if the two-character
  1860. macro is empty.
  1861. Sat May 30 10:27:15 1992 James Clark (jjc@jclark)
  1862. * troff/env.c (environment::start_field): Decrement space_total
  1863. when a space is frozen.
  1864. Fri May 22 14:34:38 1992 James Clark (jjc@jclark)
  1865. * macros/tmac.an (R): Delete macro.
  1866. * troff/input.c (get_copy, token::next): Support \# (like \" but
  1867. newline is ignored).
  1868. * troff/input.c (token::next): Fix error message in 'Y' case.
  1869. Thu May 21 09:26:24 1992 James Clark (jjc@jclark)
  1870. * eqn/delim.c (define_extensible_string): Recognize any prefix of
  1871. a delimiter name.
  1872. Fri May 15 10:20:41 1992 James Clark (jjc at jclark)
  1873. * c++test.c: Include <osfcn.h>.
  1874. * lib/strtol.c, lib/getcwd.c, ps/psbb.c: Declare errno in case
  1875. <errno.h> doesn't.
  1876. Fri May 8 09:37:19 1992 James Clark (jjc at jclark)
  1877. * tbl/table.c (table::divide_span): Don't count column separation
  1878. if expand was specified.
  1879. * tbl/main.c (process_format): Don't ignore width specs in
  1880. continued format. Give warning for changing equal widths or
  1881. column separation in continued format.
  1882. (process_data): Set column separation, minimum width, equal
  1883. columns at end of table.
  1884. Thu May 7 08:50:40 1992 James Clark (jjc at jclark)
  1885. * troff/node.c (kern_pair_node::add_discretionary_hyphen,
  1886. node::add_discretionary_hyphen): Use soft_hyphen_char.
  1887. (set_soft_hyphen_char): New function.
  1888. (init_node_requests): Bind to shc. Initialize soft_hyphen_char.
  1889. * Makefile (c++tested): Give more helpful message if test fails.
  1890. Tue May 5 10:58:39 1992 James Clark (jjc at jclark)
  1891. * troff/input.c (init_charset_table): Translate 0240 to
  1892. an unbreakable space.
  1893. * troff/token.h (token::hyphen_indicator): New function.
  1894. * troff/charinfo.h (TRANSLATE_HYPHEN_INDICATOR): New special
  1895. translation.
  1896. * troff/input.c (translate): Allow translation to \%.
  1897. * troff/node.c (node::add_char): Handle
  1898. TRANSLATE_HYPHEN_INDICATOR.
  1899. (make_node): Don't allow TRANSLATE_HYPHEN_INDICATOR here.
  1900. * troff/input.c (init_charset_table): Don't set BREAK_AFTER flag
  1901. for \(hy.
  1902. * tty/devlatin1/R.proto: \(hy and - should print as 055.
  1903. Tue Apr 21 09:24:42 1992 James Clark (jjc at jclark)
  1904. * groff.c (run_commands): If the last command gets a SIGPIPE send
  1905. a SIGPIPE to all children than haven't yet terminated. When
  1906. command terminates, set pid field to -1.
  1907. Fri Apr 17 11:20:48 1992 James Clark (jjc at jclark)
  1908. * groff.c (main): Pass an appropriate -filename option to gxditview.
  1909. Thu Apr 16 15:11:40 1992 James Clark (jjc at jclark)
  1910. * Makefile.bd (install): Remove existing program before copying.
  1911. * Makefile, */Makefile, Makefile.bd, groff.sh, groff.c: Allow
  1912. programs which have Unix counterparts to be installed with
  1913. user-specified prefix.
  1914. * troff/input.c (exit_troff): Don't check if exit_started.
  1915. (exit_request): Don't call exit_troff if exit_started.
  1916. * Makefile.bd (install.mm): Rename to install.dwbmm.
  1917. Tue Apr 14 10:05:10 1992 James Clark (jjc at jclark)
  1918. * driver/input.c (do_file): Add missing break for '#' case.
  1919. Mon Apr 13 10:11:02 1992 James Clark (jjc at jclark)
  1920. * troff/input.c (input_stack::clear): Clear past any boundaries and
  1921. then add the boundaries back.
  1922. * troff/input.c (exit_troff): Return immediately if already
  1923. exiting.
  1924. * macros/tmac.s (pg@end-text): New macro. Use pg@end-text for the
  1925. end macro.
  1926. (pg*end-page): If the text has ended and there are no more
  1927. footnotes or keeps, exit.
  1928. * macros/doc-ditroff (Lq, Rq): Define as \(lq and \(rq.
  1929. * troff/input.c (init_charset_table): Make \(rq transparent by
  1930. default.
  1931. * macros/tmac.an: Define lq and rq strings.
  1932. * macros/tmac.s (Q, U): Define as \(lq and \(rq.
  1933. Sun Apr 12 12:54:37 1992 James Clark (jjc at jclark)
  1934. * troff/env.c (environment::final_break): New function.
  1935. (environment::newline): Set prev_line_interrupted to 2 if
  1936. exit_started.
  1937. * troff/env.h: Declare environment::final_break.
  1938. * troff/input.c (exit_troff): Call environment::final_break()
  1939. instead of environment::do_break().
  1940. * macros/Makefile: Install man.local if $(MACRODIR)/man.local
  1941. doesn't already exist.
  1942. * macros/man.local: New file.
  1943. * macros/tmac.an: Load man.local.
  1944. * macros/man.ultrix: New file.
  1945. Sat Apr 11 17:32:04 1992 James Clark (jjc at jclark)
  1946. * troff/input.c (exit_groff): Rename to...
  1947. (exit_troff): New function.
  1948. * troff/div.c (exit_started, done_end_macro,
  1949. seen_last_page_ejector): New global variables.
  1950. (began_page_in_end_macro): New static variable.
  1951. (exit_flag): Deleted.
  1952. (top_level_diversion::top_level_diversion): Initialize
  1953. last_page_count.
  1954. (top_level_diversion): More elaborate test for whether
  1955. cleanup_and_exit() should be called.
  1956. Set began_page_in_end_macro if the end macro isn't yet finished.
  1957. * troff/div.h (top_level_diversion::last_page_count): New data
  1958. member.
  1959. (top_level_diversion::set_last_page): New function.
  1960. (exit_started, done_end_macro, seen_last_page_ejector): Declare.
  1961. * troff/env.c (do_break): Zero prev_line_interrupted.
  1962. * troff/input.c (exit_flag): Delete declaration.
  1963. (LAST_PAGE_EJECTOR): New magic cookie.
  1964. (token::next): Handle LAST_PAGE_EJECTOR.
  1965. (exit_groff): Set exit_started and done_end_macro instead of
  1966. exit_flag. Call top_level_diversion::set_last_page. Push a
  1967. LAST_PAGE_EJECTOR instead of calling push_page_ejector(). Do
  1968. another ejection after setting seen_last_page_ejector.
  1969. Thu Apr 9 04:37:11 1992 James Clark (jjc at jclark)
  1970. * etc/grog.sh, etc/grog.sh: Recognize -me sh macro.
  1971. * macros/tmac.e (TH): Make sure there's room for the initial
  1972. header.
  1973. * macros/tmac.s (par@init): Make PD and DD at least \n(.V.
  1974. Set FVS in points rather than units.
  1975. Mon Apr 6 11:21:32 1992 James Clark (jjc at jclark)
  1976. * troff/div.c (top_level_diversion::add_trap): Don't consider the
  1977. position of empty slots.
  1978. Fri Apr 3 10:46:45 1992 James Clark (jjc at jclark)
  1979. * ps/devps/S: Fix height and depth of parenrightex.
  1980. * ps/devps/symbol.diff: Regenerate.
  1981. Sat Mar 28 21:17:52 1992 James Clark (jjc at jclark)
  1982. * tmac.e (u): Do underlining as in -mgs.
  1983. Fri Mar 27 09:23:44 1992 James Clark (jjc at jclark)
  1984. * tty/tty.c (tty_printer::end_page): If overstriking is
  1985. suppressed, still turn overstruck horizontal and vertical lines
  1986. into +.
  1987. * lib/new.c: Back out Feb 24 change; no longer needed with gcc
  1988. 2.1.
  1989. * refer/label.y (format_expr::evaluate): Avoid use of %0*d.
  1990. Wed Mar 18 09:29:10 1992 James Clark (jjc at jclark)
  1991. * Version 1.05 released.
  1992. Tue Mar 17 16:50:45 1992 James Clark (jjc at jclark)
  1993. * tty/tty.c: Instead of keeping an array of glyphs and then
  1994. sorting it, keep a ordered linked list of glyphs for each line.
  1995. * driver/driver.h: Include stddef.h.
  1996. * tty/tty.c (compare_glyph):
  1997. * refer/refer.c (rcompare):
  1998. * troff/env.c (compare_ranges): Arguments of qsort comparison
  1999. function should be const void *.
  2000. * troff/number.c (parse_term):
  2001. * dvi/dvi.c (draw_dvi_printer::draw): Avoid initialization in
  2002. switch statement.
  2003. * refer/label.y (consider_authors): Don't access variables
  2004. constructed under a condition outside that condition: put braces
  2005. round for statement containing declaration; redeclare use of same
  2006. variable later.
  2007. * pic/pic.y (text_expr): Delete production that allows
  2008. parenthesised text_expr.
  2009. (expr): Allow a conditional_expr to appear in parentheses.
  2010. (conditional_expr): Rename to any_expr.
  2011. * mm: Install new version 1.01 from jh.
  2012. * lib/font.c (font::get_width): Cache scaled widths.
  2013. (font::font): Initialize widths_cache.
  2014. (font::~font): Destroy widths_cache.
  2015. * lib/font.h: Add font::widths_cache. Declare font_widths_cache.
  2016. Mon Mar 16 10:16:10 1992 James Clark (jjc at jclark)
  2017. * c++test.c, c++test.ref: New files.
  2018. * Makefile: Check that the C++ compiler works.
  2019. * ps/tmac.pspic (PSPIC): Do a break.
  2020. * ps/tmac.ps: Move definition of PSPIC into...
  2021. * ps/tmac.pspic: New file.
  2022. (PSPIC): Draw box around picture, but make it invisible to grops.
  2023. * ps/tmac.ps: Load tmac.pspic.
  2024. * ps/Makefile: Install tmac.pspic.
  2025. Sun Mar 15 14:18:08 1992 James Clark (jjc at jclark)
  2026. * lib/font.c (scale_round): If n is negative,
  2027. subtract .5 before truncating floating point result.
  2028. * lib/fontfile.c: Include <errno.h>.
  2029. Tue Mar 10 14:17:03 1992 James Clark (jjc at jclark)
  2030. * driver/input.c (get_char): Inline. Don't update current_lineno.
  2031. Change callers to up date current_lineno if necessary.
  2032. Use get_char() instead of getc(current_file).
  2033. Sun Mar 8 18:05:28 1992 James Clark (jjc at jclark)
  2034. * ps/tmac.ps: Fix up spacing of \(mo and \(nm.
  2035. Fri Mar 6 19:38:58 1992 James Clark (jjc at jclark)
  2036. * tty/tty.c (tmac.tty): Define \(rg as (R).
  2037. Tue Mar 3 10:11:25 1992 James Clark (jjc at jclark)
  2038. * lib/lib.h: New define a_delete.
  2039. * Use a_delete instead of delete when deleting an array of objects
  2040. without destructors.
  2041. * lib/lib.h: Rename adelete to ad_delete.
  2042. * Change uses of adelete.
  2043. Mon Mar 2 12:41:05 1992 James Clark (jjc at jclark)
  2044. * eqn/eqn.y: Include lib.h.
  2045. * troff/node.c (grow_font_table): Delete old_font_table.
  2046. * mm: Install new version from jh.
  2047. Fri Feb 28 10:42:23 1992 James Clark (jjc at jclark)
  2048. * tbl/table.h (format_type): Make global instead of local to class
  2049. entry_format. Prefix enumerators with FORMAT_.
  2050. * tbl/table.c, tbl/main.c: Corresponding changes.
  2051. * refer/token.h (token_type): Make global. Prefix enumerators
  2052. with TOKEN_.
  2053. * refer/token.[ch]: Corresponding changes.
  2054. * Makefile: Get rid of -DNO_NESTED_TYPES configuration option.
  2055. * troff/div.c (node::set_vertical_size): Don't name argument.
  2056. Thu Feb 27 10:29:19 1992 James Clark (jjc at jclark)
  2057. * Makefile: New configuration option ARRAY_DELETE_NEEDS_SIZE.
  2058. * lib/lib.h: Define adelete accordingly.
  2059. * pic/object.c (graphic_object::graphic_object):
  2060. * tbl/main.c (format::~format):
  2061. * tbl/table.c (table::~table):
  2062. * refer/ref.c (reference::~reference, reference::merge,
  2063. reference::insert_field, reference::delete_field): Use adelete.
  2064. * Makefile: Change NESTED_TYPES to NO_NESTED_TYPES.
  2065. * refer/token.h:
  2066. * tbl/table.h: Corresponding changes.
  2067. * common.c (common_output::dashed_arc, common_output::dotted_arc):
  2068. Ensure total_angle is positive.
  2069. Wed Feb 26 08:49:26 1992 James Clark (jjc at jclark)
  2070. * refer/ref.c (reference::merge, reference::insert_field,
  2071. reference::delete_field): Avoid delete[0].
  2072. * refer/token.c (init_special_chars): Move calls to cmupper
  2073. outside calls to init_two_char_letter to work around bug in gcc
  2074. 2.0.
  2075. Mon Feb 24 14:20:00 1992 James Clark (jjc at jclark)
  2076. * lib/new.c (operator new): Use __builtin_new for g++.
  2077. * pic/object.c (graphic_object::~graphic_object): Don't use
  2078. delete [] on 0.
  2079. * pic/object.c (output::compute_scale): Initialize max_width and
  2080. max_height.
  2081. Sat Feb 15 09:55:20 1992 James Clark (jjc at jclark)
  2082. * troff/input.c (write_request): Call fflush.
  2083. * troff/node.h (class composite_node): Move declaration to node.c
  2084. * troff/input.c (charinfo_to_node): Rename to ...
  2085. (charinfo_to_node_list): Return node list rather than composite
  2086. node.
  2087. * troff/node.c (make_composite_node): New function.
  2088. (make_node, add_char): Call make_composite_node instead of
  2089. charinfo_to_node.
  2090. (class composite_node): Add a tfont * member. Delete font_size
  2091. member.
  2092. (composite_node::composite_node, composite_node::copy,
  2093. composite_node::size): Corresponding changes.
  2094. (composite_node::tprint): Provide constant spacing, emboldening
  2095. and track kerning as specified in tfont.
  2096. (composite_node::width): Change width calculation accordingly.
  2097. * troff/env.h (environment::composite): New member.
  2098. (environment::is_composite, environment::set_composite): New
  2099. functions.
  2100. * troff/env.c (environment::environment): Initialize composite.
  2101. * troff/input.c (charinfo_to_node): Call
  2102. environment::set_composite.
  2103. * troff/node.c (make_composite_node, make_glyph_node): Use the
  2104. plain version of the tfont if the environment is composite.
  2105. * troff/node.c (font_info::get_space_width): Additional argument
  2106. giving space_size. Handle constant space correctly. Scale by
  2107. space_size unless constant spaced.
  2108. (env_sentence_space_width): New function.
  2109. * troff/node.h: Declare it.
  2110. * troff/env.h (environment::get_space_size,
  2111. environment::get_sentence_space_size,
  2112. environment::get_narrow_space_width,
  2113. environment::get_half_narrow_space_width): Make inline.
  2114. (environment::get_space_width): Make inline. Just call
  2115. env_space_width.
  2116. * troff/env.c: Delete definitions for funtions made inline.
  2117. (environment::space_newline, environment::space): Use
  2118. env_sentence_space_width(). Don't scale by space_size.
  2119. * troff/node.h: Move declarations of env*space_width() functions
  2120. into env.h.
  2121. Sat Feb 8 09:30:22 1992 James Clark (jjc at jclark)
  2122. * macros/tmac.s (PS): Don't try to set negative indent.
  2123. Thu Feb 6 09:00:35 1992 James Clark (jjc at jclark)
  2124. * pic/pic.y: Fix min function.
  2125. Tue Jan 28 07:52:29 1992 James Clark (jjc at jclark)
  2126. * man/mdate.sh: Clear LANGUAGE.
  2127. Sun Jan 19 13:02:41 1992 James Clark (jjc at jclark)
  2128. * pic/pic.y, pic/lex.c: Rename COMMAND token to COMMAND_LINE.
  2129. * pic/lex.c: New COMMAND keyword.
  2130. * pic/pic.y (print_args, print_arg): New rules.
  2131. (placeless_element): Use print_args for PRINT.
  2132. New COMMAND element.
  2133. Tue Jan 7 13:14:31 1992 James Clark (jjc at jclark)
  2134. * troff/input.c (terminal): Handle missing argument correctly.
  2135. * pic/pic.y (text_expr): New rule.
  2136. * pic/pic.y: Implement := operator.
  2137. Sun Jan 5 10:23:02 1992 James Clark (jjc at jclark)
  2138. * etc/grog.pl, etc/grog.sh: Distinguish old and new versions of
  2139. mdoc.
  2140. Sat Jan 4 14:42:26 1992 James Clark (jjc at jclark)
  2141. * ps/devps/dingbatsrmap: Include this in the distribution.
  2142. * macros/tmac.doc: Replace with new version from 2nd Networking
  2143. Release. Fix loading of doc-* files.
  2144. * macros/{doc-common,doc-ditroff,doc-nroff,doc-syms}: New files.
  2145. * macros/tmac.doc.old: New file. Apply fixes that had been
  2146. applied to old tmac.doc.
  2147. * macros/tmac.andoc: Check that we're running under groff.
  2148. * macros/Makefile: Rework.
  2149. Fri Jan 3 13:27:51 1992 James Clark (jjc at jclark)
  2150. * tbl/table.h (format_type):
  2151. * refer/token.h (token_type): If NESTED_TYPES is defined, use
  2152. typedef to make these types visible at file scope.
  2153. * Makefile: Add NESTED_TYPES configuration option.
  2154. * troff/div.c (mark): At the top level use the value of
  2155. nl_reg_contents rather than the current vertical position.
  2156. Thu Jan 2 10:34:51 1992 James Clark (jjc at jclark)
  2157. * tty/tty.c: Implement \D for horizontal or vertical lines.
  2158. (tty_printer::set_char): Use vec_used+2 as serial number.
  2159. Don't allow size of vector to exceed USHRT_MAX-2.
  2160. Split off part into...
  2161. (tty_printer::add_char): New function.
  2162. (tty_printer::draw): New function.
  2163. (compare_glyph): Handle equal serial numbers.
  2164. (tty_printer::end_page): Handle overstruck characters from \D.
  2165. (main, usage): Implement -d option.
  2166. Mon Dec 23 10:37:51 1991 James Clark (jjc at jclark)
  2167. * tbl/main.c (process_format):
  2168. * eqn/text.c (split_text):
  2169. * troff/input.c (token::next): Use inner block for declarations
  2170. with initializers in switch statement.
  2171. Mon Dec 16 20:52:03 1991 James Clark (jjc at jclark)
  2172. * pic/common.c (common_output::dash_line): Cope with zero-length
  2173. lines.
  2174. Sun Nov 17 12:04:08 1991 James Clark (jjc at jclark)
  2175. * Version 1.04 released.
  2176. Wed Nov 13 05:27:21 1991 James Clark (jjc at jclark)
  2177. * macros/tmac.an (TH): Define a macro an-init to define variables
  2178. based on command line arguments.
  2179. (an-header): Call it.
  2180. Sun Nov 3 12:07:34 1991 James Clark (jjc at jclark)
  2181. * Makefile (install.mm): Rename to install.dwbmm.
  2182. * Makefile: Integrate mm.
  2183. * mm: New directory.
  2184. Wed Oct 30 10:11:34 1991 James Clark (jjc at jclark)
  2185. * refer/dirnamemax.c: If PATHCONF_MISSING is defined, include
  2186. <sys/types.h>.
  2187. * pic/troff.c (troff_output::simple_spline,
  2188. troff_output::simple_polygon): Rename variable `v' to `d' to avoid
  2189. shadowing parameter.
  2190. * lib/tmpfile.c (xtmpfile): Declare dir as const char *.
  2191. * lib/ptable.h: Add explicit casts when converting from unsigned
  2192. long to unsigned.
  2193. * dvi/devdvi/{SA,SB,msam.map,msbm.map}: New files.
  2194. * dvi/devdvi/Makefile: Install SA, SB.
  2195. * refer/indxbib.c: Add declaration of mktemp.
  2196. * refer/lookbib.c: Add declaration of isatty.
  2197. Fri Oct 25 09:00:17 1991 James Clark (jjc at jclark)
  2198. * pic/lex.c (interpolate_macro_with_args): While collecting
  2199. arguments, keep track of whether we're in a string.
  2200. Wed Oct 23 08:42:48 1991 James Clark (jjc at jclark)
  2201. * ps/tmac.ps (PSPIC): Do the .sp after the \X, and move the \X
  2202. down with \v, so as to avoid problems with top of page trap
  2203. setting no space mode.
  2204. Tue Oct 22 17:38:49 1991 James Clark (jjc at jclark)
  2205. * eqn/lex.c (get_delimited_text): Allow tab before macro body.
  2206. Tue Oct 15 17:24:53 1991 James Clark (jjc at jclark)
  2207. * ps/psrm.c (ps_get_line): Fix bug when lines longer than 255.
  2208. Improve error message.
  2209. Fri Oct 11 11:09:38 1991 James Clark (jjc at jclark)
  2210. * ps/psrm.c (print_ps_string): Don't pass negative numbers to
  2211. printf("%03o");
  2212. Wed Oct 9 17:50:14 1991 James Clark (jjc at jclark)
  2213. * groff.c (possible_command::execp): Always use _exit() after a
  2214. failed exec.
  2215. * Makefile: Add HAVE_UNION_WAIT, HAVE_PID_T, WAIT_COREDUMP_0200,
  2216. NO_SYS_WAIT_H configuration options.
  2217. * groff.c: Use these options. Use POSIX-style macros to extract
  2218. fields from the status returned by wait().
  2219. Fri Oct 4 12:12:27 1991 James Clark (jjc at jclark)
  2220. * tbl/table.c (table::compute_separation_factor): Allow the
  2221. separation factor to drop to 0.
  2222. Tue Oct 1 18:12:38 1991 James Clark (jjc at jclark)
  2223. * refer/search.c: Include <errno.h>.
  2224. Sun Sep 29 08:40:57 1991 James Clark (jjc at jclark)
  2225. * pic/pic.y (YYDEBUG): Don't define for Borland C++.
  2226. * lib/lib.h: #ifdef out declarations of itoa and iftoa for Borland
  2227. C++.
  2228. * pic/lex.c (input_stack::bol): Move definition out of class body.
  2229. * pic/main.c: On MSDOS munge argv[0].
  2230. * lib/ptable.h: Define name2 as _Paste2 for Borland C++.
  2231. * lib/ptable.c (hash_string): Use unsigned long rather than
  2232. unsigned.
  2233. (next_ptable_size): Use unsigned rather than int. Give an error
  2234. message if we've hit the largest table size.
  2235. * lib/ptable.c: Corresponding changes. Also use unsigneds for the
  2236. table size.
  2237. * pic/object.h (object_spec): Make flags unsigned long. Declare
  2238. flags as const unisgned long rather than as enums.
  2239. * pic/output.c: Deleted.
  2240. * pic/troff.c (troff_output::simple_ellipse): Remove spurious %.
  2241. * tbl/table.c (simple_entry::note_double_vrule_on_{left,right}):
  2242. Add additional argument.
  2243. (line_entry::note_double_vrule_on_{left,right}): Set value of
  2244. douvle_vrule_on_{right,left} flag according to argument.
  2245. (simple_line_entry::simple_print,
  2246. simple_line_entry::double_line_print): If adjacent to double vrule
  2247. on a corner extend rather than shorten the rule by half the double
  2248. vrule sep.
  2249. * troff/number.c (parse_term): In checking for overflow, handle the
  2250. case where the current horizontal position is negative.
  2251. Thu Sep 12 08:26:09 1991 James Clark (jjc at jclark)
  2252. * pic/object.c (draw_arrow): Check for object having zero length.
  2253. Wed Sep 11 10:32:38 1991 James Clark (jjc at jclark)
  2254. * eqn/main.c (do_file): Split off inline equation handling into...
  2255. (inline_equation): New function. Search for starting delimiter
  2256. using...
  2257. (delim_search): New function. Don't recognize a delimiter that
  2258. occurs in the name of an escape sequence, number register, string
  2259. etc.
  2260. Tue Sep 10 04:01:11 1991 James Clark (jjc at jclark)
  2261. * eqn/delim.c (delim_box::compute_metrics): Don't call
  2262. define_extensible_string if left is 0.
  2263. (delim_box::output): Don't print the left delimiter if left is 0.
  2264. (delim_box::debug_print): Check for left == 0 before calling printf.
  2265. Fri Aug 23 13:02:30 1991 James Clark (jjc at jclark)
  2266. * troff/Makefile (majorminor.c): Include only digits in
  2267. minor_version.
  2268. Thu Aug 22 09:35:37 1991 James Clark (jjc at jclark)
  2269. * refer/dirnamemax.c: new file.
  2270. * refer/genlimits.c: Deleted.
  2271. * refer/indxbib.c (main): Use dir_name_max() instead of NAME_MAX.
  2272. Don't check path length.
  2273. * refer/Makefile: Add dir_name_max.o; delete genlimits.
  2274. * Makefile: Add PATHCONF_MISSING option.
  2275. * refer/indxbib.c (get_cwd): New function.
  2276. (main): Use get_cwd().
  2277. * lib/getcwd.c: New file.
  2278. * Makefile: Delete -DHAVE_GETWD. Include GETCWD variable. Pass
  2279. GETCWD in SUBFLAGS.
  2280. * lib/Makefile: Compile getcwd.o.
  2281. * ps/tmac.psatk (psatk-defs): Define showpage after pushing
  2282. userdict.
  2283. * refer/indxbib.c (main): Check success of mktemp.
  2284. * lib/tmpfile.c: New file.
  2285. * lib/Makefile: Add tmpfile.c.
  2286. * lib/lib.h: Declare xtmpfile(); include <stdio.h>.
  2287. * ps/ps.h: Delete declaration of mktemp().
  2288. * ps/ps.c (ps_printer::ps_printer): Use xtmpfile().
  2289. * refer/refer.c (divert_to_temporary_file): Use xtmpfile().
  2290. * driver/driver.h: No need now to include errno.h.
  2291. * everywhere: Set errno to 0 before calling fopen().
  2292. * eqn/eqn.h, etc/soelim.c, driver/driver.h, etc/addftinfo.c,
  2293. dvi/tfmtodit.c, groff.c, refer/index.c, refer/linear.c,
  2294. refer/lookbib.c, refer/refer.h, ps/psbb.c: Include <errno.h>.
  2295. Mon Aug 19 10:52:18 1991 James Clark (jjc at jclark)
  2296. * troff/env.h (translate_space_to_dummy): Declare it.
  2297. * troff/env.c (environment::space_newline, environment::space):
  2298. If translate_space_to_dummy is set then make the width of spaces 0.
  2299. * troff/input.c (translate): If the second character of a
  2300. translation is a space, translate to unbreakable space. If the
  2301. first character is a space, set or clear translate_space_to_dummy
  2302. according to whether the second character is \&. Weird!
  2303. Tue Jul 30 10:03:56 1991 James Clark (jjc at jclark)
  2304. * groff.c (run_commands): Don't use non-zero exit code because a
  2305. command gets SIGPIPE.
  2306. * groff.c, groff.sh: Use -mXps with -TXps.
  2307. * ps/ps.c (ps_printer::special): Move call to flush_sbuf() into...
  2308. (ps_printer::do_exec, ps_printer::do_file, ps_printer::do_def,
  2309. ps_printer::do_mdef, ps_printer::do_import): Call flush_sbuf().
  2310. (ps_printer::special): New specials invis and endinvis.
  2311. (ps_printer::do_invis, ps_printer::do_endinvis): New functions.
  2312. (ps_printer::set_char, ps_printer::draw): Return if invis_count>0.
  2313. (ps_printer::end_page): Check that invis_count == 0.
  2314. (ps_printer::invis_count): New member.
  2315. (ps_printer::ps_printer): Initialize invis_count to 0.
  2316. * troff/env.c (environment::hyphenate_line): Hyphenation
  2317. indicator at beginning of word inhibits splitting after -, \(em
  2318. etc.
  2319. * pic/pic.y (element): Allow another element to follow } without
  2320. any intervening separator.
  2321. Mon Jul 22 12:27:37 1991 James Clark (jjc at jclark)
  2322. * pic/lex.c (get_delimited): Allow tabs before delimiter.
  2323. Wed Jul 17 10:59:08 1991 James Clark (jjc at jclark)
  2324. * groff.c: Get rid of HAVE_UNION_WAIT stuff. Instead suppress
  2325. declaration of wait() in header files.
  2326. * Makefile: Get rid of -DHAVE_UNION_WAIT.
  2327. * tbl/table.c (alphabetic_text_entry::add_tab): New function.
  2328. * lib/lib.h: Declare return type of strerror as char *.
  2329. * man/Makefile: Add g flag to sed substitutions.
  2330. * Makefile (shgroff, bindist): Likewise.
  2331. Sun Jul 14 11:57:02 1991 James Clark (jjc at jclark)
  2332. * ps/ps.c (ps_printer::do_import): Move push of userdict into...
  2333. * ps/devps/prologue (PBEGIN): Define showpage after pushing
  2334. userdict.
  2335. Sat Jul 13 20:53:04 1991 James Clark (jjc at jclark)
  2336. * ps/devps/prologue (PBEGIN): Zap any definition of showpage in
  2337. userdict.
  2338. Fri Jul 12 07:10:09 1991 James Clark (jjc at jclark)
  2339. * man/mdate.sh: Handle the fact that BSD ls -l does not print the
  2340. group.
  2341. Sun Jul 7 08:00:23 1991 James Clark (jjc at jclark)
  2342. * troff/input.c (define_number_reg): If currently undefined,
  2343. don't define it if the argument is an invalid expression.
  2344. * Makefile: Ignore return value of `if' commands without `else'
  2345. parts.
  2346. * Makefile: Split up CPPDEFINES into a series of separate
  2347. configuration options.
  2348. * troff/input.c (init_registers): Use time_t instead of long
  2349. unless LONG_FOR_TIME_T is defined. Use returned result rather
  2350. than passing pointer.
  2351. * Makefile: Document LONG_FOR_TIME_T as a CPPDEFINE.
  2352. * lib/Makefile (fontpath.h): Use gendef.
  2353. Thu Jul 4 09:48:05 1991 James Clark (jjc at jclark)
  2354. * troff/input.c (input_iterator::shift): Delete argument name.
  2355. * troff/node.c (suppress_output_file::really_begin_page,
  2356. suppress_output_file::really_transparent_char, node::ascii_print,
  2357. node::tprint): Delete names of unused arguments.
  2358. Wed Jul 3 17:34:57 1991 James Clark (jjc at jclark)
  2359. * refer/label.y (string): Pass $4 to command_error.
  2360. Tue Jul 2 15:06:01 1991 James Clark (jjc at jclark)
  2361. * Version 1.03 released.
  2362. Sat Jun 29 08:14:01 1991 James Clark (jjc at jclark)
  2363. * Makefile: Pass definition of SHELL in SUBFLAGS.
  2364. * gendef: New file.
  2365. * Makefile, eqn/Makefile, refer/Makefile, troff/Makefile,
  2366. ps/Makefile: Use gendef to construct header files that are
  2367. constructed from the Makefile.
  2368. * macros/Makefile: make all should build stripped version of tmac.e.
  2369. * refer/Makefile (clean): Remove y.output.
  2370. Fri Jun 28 09:44:36 1991 James Clark (jjc at jclark)
  2371. * ps/pfbtops.c (main): Add -v option which prints out a version
  2372. number.
  2373. * ps/Makefile (pfbtops): Link with libgroff.a.
  2374. Fri Jun 21 07:43:23 1991 James Clark (jjc at jclark)
  2375. * refer/search.h (linear_searcher::get_nkeys): Delete declaration.
  2376. * refer/linear.c (linear_searcher::get_nkeys): Delete definition.
  2377. * refer/lkbib.c (main): Always terminate reference with blank
  2378. line.
  2379. * refer/lookbib.c (main): Likewise.
  2380. * refer/linear.c (file_buffer::load): Check that the file is not a
  2381. binary file.
  2382. * refer/Makefile (genlimits): Possibly add -DHAVE_SYS_DIR_H.
  2383. (genlimits.c): Include <sys/dir.h> if HAVE_SYS_DIR_H is defined.
  2384. Delete second inclusion of <sys/param.h>.
  2385. Tue Jun 18 01:32:26 1991 James Clark (jjc at jclark)
  2386. * troff/token.h (token::special): Deleted.
  2387. * tbl/main.c (process_format): Rework so that opt->tab_char is
  2388. recognized only when appropriate.
  2389. * ps/Makefile (clean): Remove pfbtops.
  2390. Sun Jun 16 09:37:19 1991 James Clark (jjc at jclark)
  2391. * lib/font.c (text_file::next): Don't return if we have got a
  2392. blank line.
  2393. Fri Jun 14 09:52:26 1991 James Clark (jjc at jclark)
  2394. * refer/refer.c (store_reference): Get hash code from old_table[i]
  2395. when rehashing the table.
  2396. Thu Jun 13 01:26:43 1991 James Clark (jjc at jclark)
  2397. * eqn/box.c (box::top_level): Save size and prev size using \R and
  2398. restore it afterwards. Set the size to the size at the beginning
  2399. of the line.
  2400. * eqn/pbox.h: Declare SAVED_INLINE_PREV_SIZE_REG,
  2401. SAVED_INLINE_SIZE_REG, and SAVED_SIZE_REG.
  2402. * refer/Makefile (limits.h): Use ./genlimits.
  2403. Wed Jun 12 16:05:34 1991 James Clark (jjc at jclark)
  2404. * refer/index.c: Delete declarations of stat() and fstat().
  2405. Tue Jun 11 14:52:49 1991 James Clark (jjc at jclark)
  2406. * tty/tmac.tty: Add character definitions for \(>= and \(<=.
  2407. Mon Jun 10 22:49:48 1991 James Clark (jjc at jclark)
  2408. * etc/grog.sh, etc/grog.pl: Change regex for .PS.
  2409. Fri Jun 7 09:13:06 1991 James Clark (jjc at jclark)
  2410. * troff/input.c (token::get_char): Handle \e.
  2411. * refer/linear.c: Delete declarations of fstat() and stat().
  2412. Wed Jun 5 09:11:59 1991 James Clark (jjc at jclark)
  2413. * troff/node.c, troff/env.c, troff/input.c, Makefile: Remove
  2414. OP_DELETE_BROKEN stuff, since we now have a fix for g++.
  2415. Mon Jun 3 13:41:32 1991 James Clark (jjc at jclark)
  2416. * troff/input.c (do_define_macro): Improve error handling for end
  2417. of file while defining macro.
  2418. Sun Jun 2 10:20:24 1991 James Clark (jjc at jclark)
  2419. * eqn/box.h: Fix declaration of set_gsize.
  2420. * eqn/box.c (set_gsize): Make argument const char *.
  2421. (gsize): Declare as char *.
  2422. * eqn/main.c (main): Don't convert gsize to int.
  2423. * eqn/lex.c (do_gsize): Pass char * to set_gsize.
  2424. * Version 1.02 released.
  2425. Sat Jun 1 12:19:46 1991 James Clark (jjc at jclark)
  2426. * macros/tmac.andoc: New file.
  2427. * macros/Makefile: Install tmac.andoc.
  2428. * troff/node.c, troff/env.c, troff/input.c: Conditionalize use of
  2429. operator new and delete on OP_DELETE_BROKEN not being defined.
  2430. * Makefile: Mention OP_DELETE_BROKEN.
  2431. Mon May 27 13:49:07 1991 James Clark (jjc at jclark)
  2432. * Makefile (bindist): Pass SUBFLAGS.
  2433. Sun May 26 14:13:22 1991 James Clark (jjc at jclark)
  2434. * Makefile, groff.c: Pass definitions to groff.c via device.h.
  2435. * tty/tty.c (tty_font::load_tty_font): Avoid shadowing
  2436. parameter.
  2437. * ps/Makefile, ps.c: Pass BROKEN_SPOOLER_FLAGS via broken.h.
  2438. * ps/ps.h, ps/psrm.c: Make comment_table and
  2439. header_comment_table local to resource_manager::process_file.
  2440. * groff.sh: With -TXps pass -printCommand option to gxditview.
  2441. * groff.c (possible_command::print): Implement using
  2442. append_arg_to_string.
  2443. * xditview: Merge in new implementation with own ChangeLog.
  2444. Sat May 25 18:33:20 1991 James Clark (jjc at jclark)
  2445. * groff.c (main): Implement PRINT_OPTION.
  2446. (append_arg_to_string): New command.
  2447. (device_table): Set PRINT_OPTION flag for Xps.
  2448. Fri May 24 09:48:58 1991 James Clark (jjc at jclark)
  2449. * troff/groff.h: Rename to troff.h.
  2450. * pic/lex.c (lookup_keyword, docmp): New functions.
  2451. (get_token): Use new lookup_keyword.
  2452. Don't include key.h.
  2453. * pic/key.[ch], pic/pic.gperf: Deleted.
  2454. * pic/Makefile: Remove gperf stuff.
  2455. * pic/Makefile, pic/output.h: Move definition of TEX_SUPPORT
  2456. into output.h.
  2457. * pic/tex.c: Move include of pic.h before test of TEX_SUPPORT.
  2458. * troff/Makefile, troff/node.c: Move definition of
  2459. STORE_WIDTH into node.c.
  2460. * etc/grog.pl, etc/grog.sh: Support -mdoc.
  2461. Thu May 23 12:30:49 1991 James Clark (jjc at jclark)
  2462. * dvi/devdvi/texr.map, dvi.devdvi/texi.map,
  2463. dvi/devdvi/texb.map: Add lq and rq.
  2464. dvi/devdvi: Regenerate fonts.
  2465. * ps/devps/textmap: Add lq and rq.
  2466. * ps/devps: Regenerate fonts.
  2467. * tty/devascii/R.proto, tty/devlatin1/R.proto: Add lq and rq.
  2468. * macros/tmac.e: Define \*(lq and \*(rq to be \(lq and \(rq.
  2469. * pic/object.c (position_rectangle): When checking radius
  2470. cope with possiblity that width or height is negative.
  2471. (box_object::box_object): Have separate xrad and yrad with
  2472. signs matching signs of dim components.
  2473. (box_object::{north,south}_{east,west}): Use xrad and yrad.
  2474. (box_object::print): With rounded boxes use absolute values
  2475. for dim and rad arguments.
  2476. * lib/Makefile, lib/fontfile.o: Pass definition of FONTPATH
  2477. in fontpath.h.
  2478. * eqn/Makefile, eqn/main.c: Pass definition of DEVICE in device.h.
  2479. * various files: Add explicit destructors to keep Saber CC +d
  2480. happy.
  2481. Wed May 22 11:37:11 1991 James Clark (jjc at jclark)
  2482. * eqn/box.c (box::top_level): Restore fonts correctly after
  2483. font changes in line containing inline equation. Also
  2484. restore previous font as well as current font.
  2485. * eqn/pbox.h: Define necessary string and register names.
  2486. * troff/input.c (token::next): Case 'R' calls do_register.
  2487. (do_register): New function.
  2488. Tue May 21 11:28:23 1991 James Clark (jjc at jclark)
  2489. * groff.c, groff.sh: Support Xps device. Allow each device
  2490. to have a pseudo_name and a real_name.
  2491. * groff.c (run_commands): Don't print `Broken pipe' messages.
  2492. * ps/pfbtops.c: New file.
  2493. * ps/Makefile: Add pfbtops.
  2494. * troff/number.c (parse_term): Improved error message.
  2495. Mon May 20 11:22:14 1991 James Clark (jjc at jclark)
  2496. * groff.c, groff.sh, etc/grog.sh, etc/grog.pl: Support grefer.
  2497. * Makefile: Integrate refer.
  2498. * refer: New directory.
  2499. * man/grefer.man, man/glookbib.man, man/gindxbib.man,
  2500. man/lkbib.man: New files.
  2501. * man/Makefile: Support refer man pages.
  2502. * lib/lib.h: Declare is_prime.
  2503. * lib/prime.c: New file.
  2504. * troff/input.c (macro_source): New function.
  2505. (init_input_requests): Bind "mso" to macro_source.
  2506. * troff/env.c (environment::possibly_break_line): Maintain
  2507. pointer to pointer to node to be split in ndp so as to avoid
  2508. using address of freed node.
  2509. * troff/env.c (environment::hyphenate_line): Maintain pointer to
  2510. pointer to first node to be hyphenated in startp so as to
  2511. avoid using address of freed node.
  2512. * troff/env.c (class trie, class hyphen_trie): Make the
  2513. elements of the trie be of type char not unsigned char.
  2514. Declare arguments to be const char* instead of unsigned char *.
  2515. * troff/env.c (hyphenate): Initialize hbuf[0].
  2516. * troff/input.c (set_string): Declare p to be char * and cast
  2517. *p to unsigned char when necessary.
  2518. * troff/input.c (do_define_macro): Declare s to be const
  2519. char*. Cast element to unisgned char when necessary, Declare
  2520. d to be an int. Handle EOF better.
  2521. * troff/Makefile, troff/input.c: Different scheme for passing
  2522. definitions of MACROPATH, HYPHENFILE and DEVICE.
  2523. Tue May 14 13:41:36 1991 James Clark (jjc at jclark)
  2524. * tty/devascii/R.proto: Delete entry for em.
  2525. * tty/devlatin1/R.proto: Likewise.
  2526. Sat May 11 11:13:28 1991 James Clark (jjc at jclark)
  2527. * troff/input.c (translate): Stop when we get a space. Treat eof
  2528. like newline.
  2529. * macros/tmac.an (IP): Only pass quoted argument to TP when \n(.$>1.
  2530. Wed Apr 24 19:24:33 1991 James Clark (jjc at jclark)
  2531. * tbl/main.c (process_format): A font name following a `f'
  2532. modifier that starts with a digit can be only one character long.
  2533. Also deal with EOF on the second character of the font name.
  2534. Wed Apr 17 11:23:43 1991 James Clark (jjc at jclark)
  2535. * troff/input.c (token::next): Turn \~ into an
  2536. unbreakable_space_node.
  2537. * troff/node.c (unbreakable_space_node): New class.
  2538. * troff/node.h: Declare it.
  2539. Tue Apr 16 10:47:12 1991 James Clark (jjc at jclark)
  2540. * dvi/dvi.c (dvi_printer::set_char): Make code an int. Check that
  2541. it's >= 0, before outputting it as a single byte.
  2542. Mon Apr 15 11:20:23 1991 James Clark (jjc at jclark)
  2543. * lib/font.c: Make font_char_metric::code an int.
  2544. (font::get_code): Change return type to int.
  2545. (font::load): Allow code to be arbitrary integer.
  2546. * lib/font.h (font::get_code): Change return type to int.
  2547. (font::number_to_index): Change argument type to int.
  2548. * troff/input.c (token::next): In case 'N', allow any value.
  2549. Store value in token::val.
  2550. (token::operator==): For TOKEN_NUMBERED_CHAR test equality of val.
  2551. (token::get_char, token::add_to_node_list, token::process): Get
  2552. number from val.
  2553. (charinfo::set_number): Change argument to int.
  2554. (charinfo::get_number): Require that NUMBERED flag be set.
  2555. (get_charinfo_by_number): Store numbered characters not between 0
  2556. and 255 in a dictionary.
  2557. * troff/charinfo.h (get_charinfo_by_number): Change argument type
  2558. to int.
  2559. (charinfo::number): Change type to int.
  2560. (charinfo::set_number): Change type of set_number to int.
  2561. * troff/node.c (troff_output_file::put_char_width,
  2562. troff_output_file::put_char): Test whether character is numbered
  2563. using charinfo::numbered().
  2564. * driver/printer.c (printer::set_numbered_char): Allow arbitrary
  2565. values of num.
  2566. * lib/nametoindex.c: New implementation to cope with arbitrary
  2567. number characters.
  2568. * troff/input.c (token::operator==): Test val for
  2569. TOKEN_CHAR_HEIGHT, TOKEN_CHAR_SLANT, TOKEN_FONT_POSITION, and
  2570. TOKEN_SIZE.
  2571. * man/Makefile: Add definiton of BROKEN_SPOOLER_FLAGS.
  2572. (.man.n): sed out @BROKEN_SPOOLER_FLAGS@.
  2573. Sun Apr 14 12:57:00 1991 James Clark (jjc at jclark)
  2574. * ps/devps/zapfdr.ps: Don't copy UniqueID. Avoid use of newdict
  2575. variable.
  2576. * all Makefiles: rm targets of cp and >.
  2577. * xditview/xtotroff.c (MapFont): Unlink troff_name before opening
  2578. it.
  2579. * eqn/lex.c (def_table): Add dollar.
  2580. Sat Apr 13 13:02:44 1991 James Clark (jjc at jclark)
  2581. * troff/input.c (do_width): Push back newline before closing delim
  2582. like do_bracket.
  2583. Fri Apr 12 15:16:03 1991 James Clark (jjc at jclark)
  2584. * groff.c (possible_command::prepend_arg): New function.
  2585. (main): Prepend device -m option.
  2586. * groff.sh: Put device -m options before command-line options.
  2587. Tue Apr 9 10:24:43 1991 James Clark (jjc at jclark)
  2588. * macros/tmac.an (IP): Quote argument to TP.
  2589. * ps/ps.c (main): New option -b, which sets...
  2590. (broken_flags): New variable.
  2591. (ps_printer::~ps_printer): Incorporate the setup section in the
  2592. prolog if (broken_flags & NO_SETUP_SECTION).
  2593. (ps_printer::begin_page): Generate {Begin,End}PageSetup comments.
  2594. (ps_printer::merge_download_fonts, ps_printer::merge_import_fonts,
  2595. ps_printer::merge_ps_fonts, ps_printer::print_font_comment,
  2596. ps_printer::print_needed_font_comment,
  2597. ps_printer::print_supplied_font_comment,
  2598. ps_printer::print_include_font_comments,
  2599. ps_printer::lookup_doc_font, ps_printer::download_fonts,
  2600. ps_printer::read_download_file, read_document_fonts, add_font,
  2601. skip_line, parse_fonts_arg, document_font::document_font,
  2602. document_font::~document_font, document_font::download,
  2603. ps_output::include_file): Deleted.
  2604. (ps_printer::~ps_printer): Generate %%EOF. Generate %!PS-Adobe-3.0
  2605. rather than %!PS-Adobe-2.0. Make calls to
  2606. resource_manager::need_font for each font that we used. Replace
  2607. calls to merge_ps_fonts, merge_download_fonts, print_font_comment,
  2608. print_supplied_font_comment, print_needed_font_comment by call to
  2609. resource_manager::print_header_comments. Output %%Orientation
  2610. comment. Output %%Requirements: numcopies comment if ncopies > 1.
  2611. Don't output the prolog directly. Instead call
  2612. resource_manager::output_prolog. Only define #copies when ncopies
  2613. > 1. Delete calls to print_include_font_comments and
  2614. download_fonts. Add call to resource_manager::document_setup.
  2615. (ps_printer::do_file): Call resource_manager::import_file instead
  2616. of including it ourselves.
  2617. (ps_printer::do_import): Likewise. Also don't call
  2618. merge_import_fonts. Push userdict on the dictionary stack before
  2619. and pop it afterwards.
  2620. Move declaration of ps_output into ps.h.
  2621. * ps/psrm.c: New file implementing resource_manager class.
  2622. * ps/ps.h: New file declaring ps_output and resource_manager
  2623. classes.
  2624. * ps/devps/zapfdr.ps:
  2625. * ps/devps/symbolsl.ps:
  2626. * ps/devps/prologue: Use 3.0 conventions.
  2627. * ps/Makefile: Pass definition of BROKEN_SPOOLER_FLAGS in DEFINES.
  2628. Add default definition of BROKEN_SPOOLER_FLAGS.
  2629. * Makefile: New variable BROKEN_SPOOLER_FLAGS. Add
  2630. BROKEN_SPOOLER_FLAGS to SUBFLAGS.
  2631. Mon Apr 8 09:26:54 1991 James Clark (jjc at jclark)
  2632. * etc/grog.pl: New file.
  2633. * Makefile (GROG): New variable.
  2634. Add GROG to SUBFLAGS.
  2635. * etc/Makefile (GROG): New variable.
  2636. (install.nobin): Install $(GROG) rather than grog.sh.
  2637. Thu Apr 4 11:36:45 1991 James Clark (jjc at jclark)
  2638. * eqn/special.c (special_box::compute_metrics): Make the input and
  2639. output strings the same. Get the new height and depth from the
  2640. predefined height and depth registers. Also make subscript kern
  2641. and skew available.
  2642. (special_box::compute_subscript_kern, special_box::compute_skew):
  2643. New functions.
  2644. * eqn/box.c (pointer_box::compute_skew,
  2645. simple_box::compute_metrics, box::top_level)
  2646. * eqn/text.c (prime_box::compute_metrics,
  2647. prime_box::comput_subscript_kern)
  2648. * eqn/limit.c (limit_box::compute_metrics):
  2649. * eqn/delim.c (build_extensible, delim_box::compute_metrics):
  2650. * eqn/sqrt.c (sqrt_box::compute_metrics): Protect possibly
  2651. negative numbers in `nr' requests with a leading 0.
  2652. Wed Apr 3 15:58:23 1991 James Clark (jjc at jclark)
  2653. * eqn/special.c: New file.
  2654. * eqn/eqn.y: Declare token SPECIAL. Make it right associative.
  2655. Add new rule for simple.
  2656. * eqn/lex.c (token_table): Add SPECIAL.
  2657. * eqn/box.h: Declare make_special_box.
  2658. * eqn/Makefile: Add special.[co].
  2659. Sat Mar 30 10:57:53 1991 James Clark (jjc at jclark)
  2660. * ps/devps/prologue: Possibly set packing to true while defining.
  2661. Create grops dictionary here. Initialize local variables before
  2662. defining procedures.
  2663. (PICTURE): Rename to PBEGIN. Also do save, noop showpage, count
  2664. the dictionary stack. Set strokeadjust and overprint to false if
  2665. the relevant operators are defined.
  2666. (PEND): New procedure.
  2667. * ps/ps.c (ps_printer::~ps_printer): In the prolog just include
  2668. prologue. Do everything else in the setup section.
  2669. (ps_printer::do_import): Just call PBEGIN and PEND around the
  2670. picture. Also push userdict before, and pop it afterwards.
  2671. Wed Mar 27 07:59:50 1991 James Clark (jjc at jclark)
  2672. * troff/node.c (bracket_node::tprint): Brackets were being printed
  2673. 1m too low.
  2674. * macros/tmac.an (SH, SS): Set fill mode.
  2675. Tue Mar 26 07:46:31 1991 James Clark (jjc at jclark)
  2676. * troff/div.c (top_level_diversion::begin_page): Set
  2677. high_water_mark to 0.
  2678. Fri Mar 22 09:19:46 1991 James Clark (jjc at jclark)
  2679. * man/mdate.sh: New file.
  2680. * man/mdate.c: Deleted.
  2681. * man/Makefile: Use mdate.sh instead of mdate.
  2682. (mdate): Deleted.
  2683. * eqn/lex.c (do_gsize): Supply missing argument to error message.
  2684. Tue Mar 19 11:06:50 1991 James Clark (jjc at jclark)
  2685. * man/mdate.c: New file.
  2686. * man/*.man: Replace modification date by @MDATE@.
  2687. * man/Makefile (.man.n): Replace @MDATE@ by `mdate $<`.
  2688. (mdate): New target.
  2689. * lib/font.c (text_file::next): Deal with arbitrarily long lines.
  2690. Remove illegal input characters.
  2691. Mon Mar 18 08:32:25 1991 James Clark (jjc at jclark)
  2692. * macros/tmac.s (pg*start-col): Do .ns *after* running the hooks.
  2693. Sat Mar 16 03:52:25 1991 James Clark (jjc at jclark)
  2694. * troff/div.c (begin_page): Change behaviour when
  2695. !first_page_begun and !break_flag.
  2696. * troff/input.c (do_name_test): Return 0 if argument is empty.
  2697. * troff/input.c (read_long_escape_name): Require closing ] to be
  2698. at same input level as opening [.
  2699. * troff/input.c (read_increment_and_escape_name): New function.
  2700. (get_copy, process_input_stack): Use this for \n.
  2701. Fri Mar 15 00:31:48 1991 James Clark (jjc at jclark)
  2702. * troff/div.c (top_level_diversion::begin_page): Ignore the
  2703. current value of page_number if !first_page_begun.
  2704. * groff.c (main): Fix declaration of buf.
  2705. * troff/input.c (do_name_test): New function.
  2706. (token::next): Implement \A.
  2707. (token::next): Implement \e by turning it into a TOKEN_ESCAPE.
  2708. (token::description, token::add_to_node_list, token::process):
  2709. Handle TOKEN_ESCAPE.
  2710. * troff/token.h: New token TOKEN_ESCAPE.
  2711. Thu Mar 14 10:22:26 1991 James Clark (jjc at jclark)
  2712. * pic/main.c (do_picture): Allow space before and after filename
  2713. following `<'. Check that the filename is not empty.
  2714. Wed Mar 13 12:49:40 1991 James Clark (jjc at jclark)
  2715. * Version 1.01 released.
  2716. * dvi/devdvi/CompileFonts: Add cm*ss10 fonts.
  2717. * dvi/tmac.dvi: ftr HR to H.
  2718. * macros/tmac.e: Round up computation of $r.
  2719. * xditview/tmac.X: Don't give up completely in compatibility mode.
  2720. Use \n(.s instead of \n[.s].
  2721. * dvi/tmac.dvi: Don't give up completely in compatibility mode.
  2722. Use \(ci instead of \[ci]. Use \n(.s instead of \n[.s].
  2723. Add u to factors inside \s[...]. Rename frac to dvi-frac.
  2724. Translate \(FM onto \[prime] and \(!/ onto \[slashnot]; use these
  2725. short names in the char definitions.
  2726. * ps/tmac.ps: Don't give up completely in compatibility mode.
  2727. Fix the fraction definitions to use \n(.s and \(f/. Add an extra
  2728. quote in front of \n(.s. Add u to factors inside \s[...].
  2729. Mon Mar 11 12:01:20 1991 James Clark (jjc at jclark)
  2730. * tty/tmac.tty: Call the nroff request.
  2731. * macros/tmac.e ((x, )x): Better definitions that work properly
  2732. in a diversion.
  2733. (@0, @1): Helper macros for (x.
  2734. * macros/tmac.e ($s, hl): Use \l rather than \D.
  2735. * tty/tmac.tty: Make it work better in compatibility mode.
  2736. (pchar): Rename to tty-char.
  2737. * macros/tmac.e (@E): New macro.
  2738. (r, i, b, rb, bi): Use @E.
  2739. * macros/tmac.e (@F): Don't use (;...) syntax.
  2740. * macros/tmac.e: Remove mention of \*(||/revisions. Mention that
  2741. it was modified for groff.
  2742. * macros/tmac.e: Make sure \n(ps and \n(es are >= \n(.V.
  2743. * macros/tmac.e (<., .>): Removed.
  2744. ([., .]): If \n(.V>=1v, use [] instead of superscripting.
  2745. * macros/tmac.e: Remove check that groff is being used.
  2746. * macros/tmac.e (@C): Change families only if using groff; turn
  2747. compatibility mode off while changing familes. Save compatibility
  2748. mode before changing families and restore it afterwards.
  2749. * macros/tmac.e (@h): Remove test for offset + line length.
  2750. * macros/tmac.e (sorry): Rename to @S. Use \$1 instead of \$0
  2751. (lo, th, ac): Define to call @S instead of using als.
  2752. * macros/tmac.e: Make $r and $R now contain \n(.v*100/\n(.sp, ie
  2753. the ratio of the vertical spacing to the point size in units
  2754. expressed as a percentage. Use these instead of $10r and $10R,
  2755. Delete $10r and $10R.
  2756. * lib/font.c (font::load): In default computation of space_width,
  2757. divide by sizescale. Use scale_round.
  2758. * macros/tmac.an (TP): Don't call `nf'.
  2759. (an-do-tag): Don't call `fi'.
  2760. Sun Mar 10 09:52:35 1991 James Clark (jjc at jclark)
  2761. * troff/input.c (process_input_stack): Handle the case where
  2762. spaces at the beginning of an input line are followed by a
  2763. newline.
  2764. Thu Mar 7 20:18:07 1991 James Clark (jjc at jclark)
  2765. * groff.c (device_table): Add PIC_X_OPTION for dvi device.
  2766. * groff.sh: Use pic -x with the dvi device.
  2767. * dvi/devdvi/FontMakefile (H): Don't use -s.
  2768. * dvi/devdvi/HI, dvi/devdvi/HB: New files.
  2769. * dvi/devdvi/Makefile: Add HI and HB to FONTS.
  2770. * dvi/devdvi/FontMakefile: Add rules for HI and HB. Include these
  2771. in FONTS.
  2772. Mon Mar 4 13:20:14 1991 James Clark (jjc at jclark)
  2773. * ps/psfig.diff: New file.
  2774. * ps/tmac.psfig: New file.
  2775. Sat Mar 2 00:15:09 1991 James Clark (jjc at jclark)
  2776. * macros/tmac.s (]=, ref*do-tl, ref*bib-print): Deleted.
  2777. (]-): Don't call ref*do-tl.
  2778. * macros/tmac.s (ref*end-print): Use XP if [F not defined.
  2779. * macros/tmac.s (ref*normal-print): Call FS rather than fn@do-FS.
  2780. (fn@do-FS): Rename to fn*do-FS.
  2781. * troff/input.c (transparent_translate): New function.
  2782. (process_input_stack): Apply transparent_translate before calling
  2783. diversion::transparent_output(unsigned char).
  2784. Wed Feb 27 00:13:25 1991 James Clark (jjc at jclark)
  2785. * troff/input.c (do_define_macro): Define the macro before calling
  2786. skip_line.
  2787. * xditview/Makefile: Add DEVICES variable. Change install target
  2788. to use this.
  2789. Tue Feb 26 10:46:22 1991 James Clark (jjc at jclark)
  2790. * groff.c (run_commands): Handle the possibility that there are
  2791. child processes other than those forked by us.
  2792. Sun Feb 24 21:32:30 1991 James Clark (jjc at jclark)
  2793. * lib/string.c (string::append): New function.
  2794. * lib/stringclass.h: Declare it.
  2795. Thu Feb 21 11:49:26 1991 James Clark (jjc at jclark)
  2796. * eqn/main.c (main): New option -N which sets
  2797. no_newline_in_delim_flag.
  2798. (do_file): If no_newline_in_delim_flag is set don't allow newlines
  2799. in delimiters.
  2800. * groff.c (main): Pass -N on to eqn.
  2801. (help, synopsis): Mention -N.
  2802. * groff.sh: Implement -N.
  2803. Wed Feb 20 15:16:10 1991 James Clark (jjc at jclark)
  2804. * macros/tmac.s (]=, ref*bib-print, ref*do-tl): New macros.
  2805. (]-): Call ref*do-tl if ref*need-tl is non-zero.
  2806. (XP): Allow as initializer.
  2807. Tue Feb 19 14:09:06 1991 James Clark (jjc at jclark)
  2808. * troff/env.c (environment::wrap_up_field): If field_spaces are
  2809. non-zero and we have a current_tab, subtract padding from
  2810. tab_distance. If this makes tab_distance <= 0, use the next tab
  2811. stop instead. If there isn't any next tab or it's a left tab,
  2812. wrap up the current tab.
  2813. (environment::start_field): Initialize tab_precedes_field.
  2814. (environment::wrap_up_tab): If there's a current field, update
  2815. pre_field_width, field_distance and tab_precedes_field.
  2816. * troff/env.h (environment::tab_precedes_field): New member.
  2817. Fri Feb 15 01:24:00 1991 James Clark (jjc at jclark)
  2818. * ps/ps.c (ps_printer::do_file): New function.
  2819. (ps_printer::special): Bind to `file' special.
  2820. (ps_printer::do_exec): Set ndefined_styles to 0.
  2821. Sat Feb 9 03:03:04 1991 James Clark (jjc at jclark)
  2822. * eqn/text.c (split_text): Grok \* and similar escapes sequences.
  2823. Avoid stripping first character from the start of unrecognized
  2824. escapes. Use lex_error instead of error to report errors.
  2825. * eqn/lex.c (get_token): Rework handling of escapes.
  2826. (lex_error): Move declaration into...
  2827. * eqn/eqn.h.
  2828. * xditview/xditview.c (main): Make -page option work.
  2829. * Makefile: Correct comment about -DBROKEN_SPOOLER and pageview.
  2830. Wed Feb 6 12:28:43 1991 James Clark (jjc at jclark)
  2831. * macros/tmac.s (B2): Correct size of box.
  2832. Tue Feb 5 00:37:35 1991 James Clark (jjc at jclark)
  2833. * macros/tmac.s (B2): Postpone drawing the box until in the
  2834. top-level diversion.
  2835. * tty/tmac.tty: Add font translations for C, CR, CW.
  2836. * groff.c (synopsis, help): Document -i.
  2837. * groff.sh: Implement -i.
  2838. * macros/tmac.s (@NH): Put a `.' after multi-part numbers.
  2839. Simplify the construction of SN.
  2840. * troff/number.c (parse_term): Give `|' a higher precedence.
  2841. * tbl/table.c (numeric_text_entry::simple_print): Parenthesise
  2842. accordingly.
  2843. * macros/tmac.s (B2): Use par@finish instead of par@reset.
  2844. Mon Feb 4 12:36:09 1991 James Clark (jjc at jclark)
  2845. * lib/string.c (string::move): New function.
  2846. * lib/stringclass.h: Declare it.
  2847. Sat Feb 2 16:02:16 1991 James Clark (jjc at jclark)
  2848. * troff/env.c (distribute_space): Add optional argument
  2849. `force_forward'.
  2850. (environment::wrap_up_field): Call distribute_space with
  2851. `force_forward' argument of 1.
  2852. Fri Feb 1 19:36:33 1991 James Clark (jjc at jclark)
  2853. * lib/string.c, lib/stringclass.h (string::operator+=(char)):
  2854. Inline it. Move reallocation into...
  2855. (string::grow1): New function.
  2856. * pic/Makefile, tbl/Makefile, eqn/Makefile, ps/Makefile: Redo
  2857. dependencies to include library header files.
  2858. * lib/Makefile: Make string.c and lf.c depend on stringclass.h.
  2859. Thu Jan 31 15:02:27 1991 James Clark (jjc at jclark)
  2860. * macros/tmac.s (@NH): Use the same number registers than -ms does
  2861. for the heading level counters. Use the same string that -ms does
  2862. for the number for this heading.
  2863. Wed Jan 30 14:25:40 1991 James Clark (jjc at jclark)
  2864. * lib/new.c (operator new): Cast result of malloc to char *.
  2865. * troff/input.c (spring_trap, lookup_request): Add assert that nm
  2866. is not null.
  2867. Tue Jan 29 18:08:05 1991 James Clark (jjc at jclark)
  2868. * groff.c (main): Support -i.
  2869. Sun Jan 27 13:23:17 1991 James Clark (jjc at jclark)
  2870. * pic/pic.h: Include <osfcn.h>.
  2871. * ps/ps.c: Add declaration of mktemp.
  2872. * Makefile: Add -DHAVE_UNION_WAIT option for CPPDEFINES.
  2873. * groff.c: If HAVE_UNION_WAIT is defined, declare wait()'s
  2874. argument as union wait *.
  2875. (run_commands): If HAVE_UNION_WAIT is defined cast wait()'s
  2876. argument to union wait *.
  2877. Sat Jan 26 12:04:52 1991 James Clark (jjc at jclark)
  2878. * tty/tmac.tty: Add definition of \(co.
  2879. * pic/object.c (make_arc): Only increase radius when radius
  2880. strictly less than d.
  2881. (arc_object::update_bounding_box): May need to add 4.0 to end_quad
  2882. more than once.
  2883. * troff/env.c (environment::environment(symbol),
  2884. environment::environment(const environment *)): Initialize
  2885. input_trap_count.
  2886. Sat Jan 19 08:18:35 1991 James Clark (jjc at jclark)
  2887. * tbl/main.c (main): Add exit(0).
  2888. * ps/ps.c (ps_printer::~ps_printer): Use fseek instead of rewind.
  2889. * pic/main.c (main):
  2890. * eqn/main.c (main):
  2891. * tbl/main.c (main):
  2892. * etc/soelim.c (main):
  2893. * driver/printer.c (printer::~printer):
  2894. * troff/node.c (real_output_file::~real_output_file,
  2895. real_output_file::flush): Check for errors on stdout.
  2896. * most files: Add 1991 to copyright notice.
  2897. * macros/tmac.s: Don't test \n(.x and \n(.y.
  2898. * troff/input.c (token::next): Rename `escape_char' label to
  2899. `handle_escape_char' and `normal_char' label to
  2900. `handle_normal_char'.
  2901. Thu Jan 17 15:46:35 1991 James Clark (jjc at jclark)
  2902. * groff.c (main, synopsis, help): Support -a option.
  2903. * groff.sh: Likewise. Also eliminate Zflag variable by adding -z
  2904. to trflags while parsing options.
  2905. Tue Jan 15 13:07:27 1991 James Clark (jjc at jclark)
  2906. * troff/number.c (parse_term): With `m', `M' and `n' scale
  2907. indicators, convert scale factor to hunits before scaling.
  2908. Mon Jan 14 12:39:12 1991 James Clark (jjc at jclark)
  2909. * lib/font.c (scale_round): Better test for overflow when n is
  2910. negative.
  2911. Thu Jan 10 11:10:56 1991 James Clark (jjc at jclark)
  2912. * tbl/main.c (process_format): Add second argument of type
  2913. options*. Change callers. Allow opt->tab_char as well as '\t'
  2914. between format items.
  2915. Mon Jan 7 12:30:18 1991 James Clark (jjc at jclark)
  2916. * macros/tmac.an (PD): With no arguments, make sure register PD is
  2917. at least \n[.V].
  2918. (TH): Call PD with no argument, instead of setting register PD
  2919. directly.
  2920. Sun Jan 6 11:18:39 1991 James Clark (jjc at jclark)
  2921. * Version 1.00 released.
  2922. Sat Jan 5 08:44:30 1991 James Clark (jjc at jclark)
  2923. * ps/tmac.ps, xditview/tmac.X: Add font translation of C to CR.
  2924. * dvi/devdvi/DESC: Mount CW instead of CR.
  2925. * dvi/tmac.dvi: Add definition of \(tm.
  2926. * dvi/devdvi/texsy.map: Add lh, and rh.
  2927. * dvi/devdvi/texex.map: Add lt, rt, lb, rb, lk, rk.
  2928. * dvi/devdvi/texmi.map: Add *o. Regenerate fonts.
  2929. * dvi/devdvi/FontMakefile: Generate H from cmss10.
  2930. * dvi/devdvi/Makefile: Install H.
  2931. * dvi/devdvi/H: New file.
  2932. Fri Jan 4 15:04:57 1991 James Clark (jjc at jclark)
  2933. * troff/env.c (vertical_spacing): Don't allow vertical spacing to
  2934. be 0.
  2935. Thu Jan 3 13:41:19 1991 James Clark (jjc at jclark)
  2936. * macros/tmac.s (@EN): Add \n(.V to the argument to ds@need.
  2937. * macros/tmac.pic (PS): Avoid attempting to set negative indent.
  2938. * macros/tmac.s (@EN): Handle the case where the equation is empty
  2939. but the label is not.
  2940. Wed Jan 2 10:31:44 1991 James Clark (jjc at jclark)
  2941. * troff/groff.h: New warning category WARN_SPACE.
  2942. * troff/input.c: Add WARN_SPACE to DEFAULT_WARNING_MASK. Add
  2943. WARN_SPACE to warning_table.
  2944. (interpolate_macro): Give a warning of type WARN_SPACE if the name
  2945. is longer than two characters and is not defined, but the first
  2946. two characters do make a defined name.
  2947. * PROBLEMS: New file.
  2948. * CHANGES: New file.
  2949. * README-0.6, README-1.00: Deleted.
  2950. * groff.c, groff.sh: Add X75-12 and X100-12 devices.
  2951. * xditview/devX75/Makefile: Make devX75-12.
  2952. * xditview/devX100/Makefile: Make devX100-12.
  2953. * xditview/devX100/eqnchar, xditview/devX75/eqnchar,
  2954. dvi/devdvi/eqnchar, ps/devps/eqnchar: Remove use of \R.
  2955. Tue Jan 1 19:24:01 1991 James Clark (jjc at jclark)
  2956. * README-0.7: Rename to README-1.00.
  2957. * macros/tmac.pic: New file.
  2958. * macros/Makefile (install.nobin): Install tmac.pic.
  2959. Mon Dec 31 10:40:53 1990 James Clark (jjc at jclark)
  2960. * troff/env.c (hyphen_word): Correct the test for whether the
  2961. token is a hyphen. Reset npos to 0.
  2962. * macros/tmac.s (par@sup-start, par@sup-end): New implementations.
  2963. Sun Dec 30 15:53:13 1990 James Clark (jjc at jclark)
  2964. * macros/tmac.s (ds*common-end): Call par*reset.
  2965. (PE): Likewise.
  2966. (par@reset-indent): Deleted.
  2967. * macros/tmac.s (@IP): Divert the label.
  2968. Sat Dec 29 14:33:32 1990 James Clark (jjc at jclark)
  2969. * xditview/draw.c (setGC): Use a line width of .1m rather than
  2970. .04m by default; round rather than truncate value.
  2971. * tbl/table.c (class empty_entry): New class.
  2972. (empty_entry::empty_entry, empty_entry::line_type): New functions.
  2973. (table::add_entry): Represent empty entries by objects of type
  2974. empty_entry.
  2975. (table_entry::line_type): Return -1.
  2976. (table::determine_row_type): Ignore entries with line_type 0.
  2977. Treat type -1 as non-lines.
  2978. Fri Dec 28 15:04:41 1990 James Clark (jjc at jclark)
  2979. * ps/devps/textmap, xditview/libXdvi/DviChar.c, tty/devlatin1/R.proto,
  2980. macros/tmac.s: Rename \(-d to \(Sd.
  2981. Thu Dec 27 12:35:47 1990 James Clark (jjc at jclark)
  2982. * ps/devps/textmap: Add `sd', `/_' and `3d' characters.
  2983. * xditview/libXdvi/DviChar.c: Likewise.
  2984. * dvi/devdvi/texsy.map: Add `<<', `>>'.
  2985. Wed Dec 26 13:33:23 1990 James Clark (jjc at jclark)
  2986. * troff/div.c (top_level_diversion::begin_page): Call
  2987. init_output() if the_output is 0.
  2988. Sat Dec 22 12:35:29 1990 James Clark (jjc at jclark)
  2989. * troff/input.c: Replace ESCAPE_E by ESCAPE_e and ESCAPE_C by
  2990. ESCAPE_c.
  2991. (get_copy): Turn \E into ESCAPE_E.
  2992. (token::process, asciify): Handle ESCAPE_E.
  2993. * macros/tmac.s (ds*common-end, par@reset): Add `.rj 0'.
  2994. (RD): New macro.
  2995. (DS): Implement `.DS R'.
  2996. Fri Dec 21 11:41:53 1990 James Clark (jjc at jclark)
  2997. * macros/tmac.s (FS): New macro.
  2998. * macros/tmac.s (fn@do-FS): Use @LP instead of LP.
  2999. * macros/tmac.s (cov*tl-init): Remove after first execution
  3000. instead of aliasing to @nop. Call top of page macro explicitly
  3001. instead of setting trap; call @init first. Set pg@top as top of
  3002. page macro.
  3003. (cov*auto-init): Deleted. Set cov*tl-init instead of
  3004. cov*auto-init as top of page trap.
  3005. (TL, LP): Do a break instead of calling cov*tl-init.
  3006. (cov*print): With RP format but no TL, alias FS and FE to @FS and
  3007. @FE; in this case also give a warning and always start another
  3008. page. No need to set pg@top here.
  3009. (cov*tl-init): Rename to cov*first-page-init.
  3010. * macros/tmac.s (RP): Do `.pn 0'.
  3011. (cov*tl-init): With RP format don't do `.pn 0'.
  3012. * macros/tmac.s (pg@cs-top): Set no space mode.
  3013. * macros/tmac.s (par@TL, par@AU, par@AI): New macros.
  3014. (cov*ab-init): Alias TL, AU and AI to these.
  3015. Thu Dec 20 10:10:50 1990 James Clark (jjc at jclark)
  3016. * macros/tmac.s (@EQ): Move the space before the equation into @EN
  3017. (@EN): Do nothing unless \n[dl] is > 0.
  3018. Tue Dec 18 12:20:47 1990 James Clark (jjc at jclark)
  3019. * pic/object.c (ellipse_object::radius): New function.
  3020. * VERSION: Change version to 0.7.
  3021. * tbl/table.c (block_entry::do_divert): Declare return type as
  3022. void.
  3023. (block_entry::divert, alphabetic_block_entry::divert): Return 1.
  3024. Mon Dec 17 12:30:34 1990 James Clark (jjc at jclark)
  3025. * troff/column.c: New file.
  3026. * troff/Makefile: Corresponding changes.
  3027. * troff/hvunits.c (scale(vunits, vunits, vunits)): New function.
  3028. Friend of vunits.
  3029. * troff/div.c (top_level_diversion::space): If the space causes
  3030. the first-page transition and springs a trap, truncate the space
  3031. to 0.
  3032. Fri Dec 14 12:30:02 1990 James Clark (jjc at jclark)
  3033. * ps/ps.c (ps_printer::do_import): Add a `clear' after including
  3034. the document.
  3035. * pic/troff.c (troff_output::line_thickness,
  3036. troff_output::set_fill): Do a horizontal motion to compensate for
  3037. the width of the \D escape sequence.
  3038. Thu Dec 13 10:17:14 1990 James Clark (jjc at jclark)
  3039. * xditview/tmac.X: Reinstate definition of \(rn, but only for X100
  3040. (not X75).
  3041. * eqn/sqrt.c (sqrt_box::compute_metrics): Supply missing argument
  3042. to printf.
  3043. * tbl/table.c (simple_entry::simply_print): Don't declare as pure.
  3044. Supply empty definition.
  3045. (text_entry::simple_print, simple_text_entry::simple_print):
  3046. Delete declarations.
  3047. (table::add_entry): Represent empty entries by objects of type
  3048. `simple_entry'.
  3049. Wed Dec 12 08:50:48 1990 James Clark (jjc at jclark)
  3050. * troff/Makefile: Remove -DHYPHEN_CONTROL from DEFINES.
  3051. * tbl/table.c (left_text_entry::add_tab): New function.
  3052. * macros/tmac.s: Make @RT an alias for par@reset. Make RT
  3053. initialize like LP.
  3054. Mon Dec 10 11:19:55 1990 James Clark (jjc at jclark)
  3055. * troff/env.c (environment::start_field): Give an error message if
  3056. there is no next tab.
  3057. Sun Dec 9 11:46:40 1990 James Clark (jjc at jclark)
  3058. * troff/env.c (hyphenate): Skip initial elements with zero
  3059. hyphenation code.
  3060. * macros/tmac.s (par@init): Keep VS in points rather than units.
  3061. Sat Dec 8 23:00:27 1990 James Clark (jjc at jclark)
  3062. * pic/main.c (main): Implement `-c' option.
  3063. * pic/output.h: Declare make_tpic_output().
  3064. * pic/tex.c (tex_output::set_pen_size): Make it virtual and
  3065. protected.
  3066. (tpic_output): New class.
  3067. (tpic_output::tpic_output, tpic_output::set_pen_size,
  3068. tpic_output::command, make_tpic_output): New functions.
  3069. Fri Dec 7 11:57:41 1990 James Clark (jjc at jclark)
  3070. * tbl/main.c (main): Call `.ab' if \n(.g is false. Define TS/TE
  3071. if they're not already defined.
  3072. * tbl/table.c (init_output): Don't test \n(.g.
  3073. * troff/input.c (do_if_request): Delete `g' condition. Recognize
  3074. `d', `r' and `c' conditions even in compatibility mode.
  3075. Tue Dec 4 09:13:47 1990 James Clark (jjc at jclark)
  3076. * ps/tmac.ps (ps-bb): Protect against negative numbers in bounding
  3077. box.
  3078. Mon Dec 3 07:18:26 1990 James Clark (jjc at jclark)
  3079. * troff/env.h (environment::prev_line_interrupted): New member.
  3080. (environment::get_prev_line_interrupted): New function.
  3081. * troff/env.c (environment::newline): Set prev_line_interrupted.
  3082. (environment::environment(const environment *),
  3083. environment::environment(symbol)): Initialize
  3084. prev_line_interrupted.
  3085. * troff/input.c (process_input_stack): Don't give special
  3086. treatment to space and newline at the beginning of the line if the
  3087. previous line was interrupted.
  3088. Sat Dec 1 15:48:37 1990 James Clark (jjc at jclark)
  3089. * eqn/eqn.y: Disallow PRIME by itself.
  3090. * eqn/lex.c (token_table): Bind `opprime' instead of `prime' to
  3091. PRIME.
  3092. (def_table): Remove definition of '. Define prime to be `.
  3093. * eqn/eqn.y: Split off part of rule `script' into a new rule
  3094. `nonsup'.
  3095. Fri Nov 30 10:23:44 1990 James Clark (jjc at jclark)
  3096. * macros/tmac.s ({, }): New string aliases.
  3097. Thu Nov 29 11:34:40 1990 James Clark (jjc at jclark)
  3098. * README-0.7: New file.
  3099. Wed Nov 28 10:09:57 1990 James Clark (jjc at jclark)
  3100. * macros/tmac.s: New file.
  3101. * man/groff_ms.man: New file.
  3102. * Makefile: Add definition of TMAC_S. Pass TMAC_S in SUBFLAGS.
  3103. * Makefile.bd: Similarily.
  3104. * man/Makefile: Add groff_ms.n to MAN7PAGES. Replace @TMAC_S@. Add
  3105. definition of TMAC_S.
  3106. * macros/Makefile: Add definition of TMAC_S. Install tmac.s.
  3107. * macros/TODO: New file.
  3108. Sat Nov 24 20:04:54 1990 James Clark (jjc at jclark)
  3109. * troff/env.c (right_justify): New function.
  3110. (init_env_requests): Bind this to request "rj".
  3111. (center_lines): Set right_justify_lines to 0. If we get a bad
  3112. integer, center 1 line.
  3113. (environment::environment(symbol), environment::environment(const
  3114. environment *)): Initialize right_justify_lines.
  3115. (environment::get_right_justify_lines): New function.
  3116. (init_env_requests): Bind this to number_register ".rj".
  3117. * troff/env.c (environment::choose_breakpoint): Implement
  3118. hyphenation_margin and hyphenation_space.
  3119. (environment::get_hyphenation_space,
  3120. environment::get_hyphenation_margin): New functions.
  3121. (init_env_requests): Bind these to .hys and .hym.
  3122. (hyphenation_space_request, hyphenation_margin_request): New
  3123. functions
  3124. (init_env_requests): Bind these to hys and hym.
  3125. (environment::environment(symbol), environment::environment(const
  3126. environment *)): Initialize hyphenation_margin and
  3127. hyphenation_space.
  3128. * troff/env.h: Corresponding changes to class environment.
  3129. Fri Nov 23 09:08:16 1990 James Clark (jjc at jclark)
  3130. * troff/div.c (blank_line): Always do a break.
  3131. * eqn/box.c (do_text): Turn off escapes while appending text to
  3132. string.
  3133. Thu Nov 22 10:58:59 1990 James Clark (jjc at jclark)
  3134. * troff/input.c (while_break_request, while_continue_request): New
  3135. functions.
  3136. (init_input_requests): Bind these to "break" and "continue".
  3137. (while_depth, while_break_flag): New variables.
  3138. (while_request): Update while_depth. Break out of loop if
  3139. while_break_flag is set.
  3140. Wed Nov 21 10:54:40 1990 James Clark (jjc at jclark)
  3141. * tbl/table.c (init_span_reg): Initialize span_width_reg to \n(.H
  3142. rather than 0.
  3143. Mon Nov 19 00:45:03 1990 James Clark (jjc at jclark)
  3144. * Makefile: Include -DBROKEN_SPOOLER by default. Expand comment.
  3145. * stringify: New file.
  3146. * Makefile (groff.o): Use stringify.
  3147. * xditview/tmac.X: Remove definition of \(rn.
  3148. * xditview/libXdvi/DviChar.c: Remove radicalex from
  3149. Adobe_symbol_map.
  3150. Sat Nov 17 10:44:58 1990 James Clark (jjc at jclark)
  3151. * tbl/table.c (table::add_entry): Allow alphabetic text blocks.
  3152. (alphabetic_block_entry::alphabetic_block_entry,
  3153. alphabetic_block_entry::divert, alphabetic_block_entry::print):
  3154. New functions.
  3155. (block_entry::divert): Split off body into ...
  3156. (block_entry::do_divert): If the block is alphabetic, subtract 2n
  3157. from the line length; also update the span width to dl+2n, and the
  3158. alphabetic span width to dl.
  3159. * driver/input.c (do_file): While reading argument to D command,
  3160. when expanding buffer, multiply szp by sizeof(int) rather than 2
  3161. in the argument to memcpy.
  3162. * tbl/table.c (compute_span_width): Add 2n rather than 1n to the
  3163. width of alphabetic columns.
  3164. Fri Nov 16 06:34:27 1990 James Clark (jjc at jclark)
  3165. * troff/node.c (lookup_family): Supply second argument to lookup.
  3166. * troff/dictionary.c (dictionary::lookup): After an unsuccesful
  3167. search, return immediately if v is 0.
  3168. * pic/troff.c: Define EQN_NO_EXTRA_SPACE_REG.
  3169. (troff_output::start_picture): Set this reg.
  3170. (troff_output::end_picture): Remove this reg
  3171. * eqn/box.c (box::extra_space): Don't produce `\x's if
  3172. EQN_NO_EXTRA_SPACE_REG is defined.
  3173. * eqn/eqn.y: Allow just a PRIME to be a `simple'.
  3174. * eqn/text.c (split_text): Map ' to \(fm when it's the first
  3175. character.
  3176. Thu Nov 15 10:35:06 1990 James Clark (jjc at jclark)
  3177. * macros/tmac.e: Use font 3 instead of B in $c. Remove `bd'
  3178. requests.
  3179. * troff/div.c (top_level_diversion::top_level_diversion):
  3180. Initialize page_number to 0.
  3181. Wed Nov 14 21:41:58 1990 James Clark (jjc at jclark)
  3182. * groff/troff (environment::environment(const environment *)):
  3183. Initialize name to e->name, rather than "anonymous".
  3184. Sat Nov 10 01:59:37 1990 James Clark (jjc at jclark)
  3185. * xditview/libXdvi/Dvi.c (ShowDvi): If eof is encountered, reset
  3186. requested_page. Split middle part into ...
  3187. (FindPage): New function.
  3188. (SetValues): If we don't yet know the last page, and the requested
  3189. page is greater than the current page, call FindPage.
  3190. Update the font_map_string before doing this.
  3191. * xditview/tmac.X: Add definitions of \(sq, \(ga, \(dg and \(dd.
  3192. Translate \(lh and \(rh into left and right double arrows.
  3193. * troff/node.c (class hyphen_inhibitor_node): New class.
  3194. (hyphen_inhibitor_node::hyphen_inhibitor_node,
  3195. hyphen_inhibitor_node::copy, hyphen_inhibitor_node::same,
  3196. hyphen_inhibitor_node::type,
  3197. hyphen_inhibitor_node::get_hyphenation_type): New functions.
  3198. (node::add_discretionary_hyphen): Use hyphen_inhibitor_node rather
  3199. than dbreak_node(0, 0) to represent a `\%' at the beginning of a
  3200. word.
  3201. Fri Nov 9 16:05:38 1990 James Clark (jjc at jclark)
  3202. * troff/node.h (dummy_node::get_hyphenation_type,
  3203. transparent_dummy_node::get_hyphenation_type): Declare them.
  3204. * troff/node.c: (dummy_node::get_hyphenation_type,
  3205. transparent_dummy_node::get_hyphenation_type): New functions.
  3206. Wed Nov 7 10:09:06 1990 James Clark (jjc at jclark)
  3207. * xditview/libXdvi/draw.c: If M_PI not defined after including
  3208. math.h, then define it.
  3209. * xditview/Makefile: Add definition of AR. Pass it to the submake
  3210. in libXdvi.
  3211. * xditview/libXdvi/Makefile: Add definitions of AR and RANLIB.
  3212. Tue Nov 6 10:14:27 1990 James Clark (jjc at jclark)
  3213. * troff/dictionary.h (object_dictionary::alias): Declare return
  3214. value as int.
  3215. * troff/dictionary.c (object_dictionary::alias): Return non-zero
  3216. if the old name was defined.
  3217. * troff/input.c (alias_macro): Give a warning if the old name was
  3218. not defined.
  3219. * troff/reg.c (alias_reg): Likewise.
  3220. Mon Nov 5 00:31:39 1990 James Clark (jjc at jclark)
  3221. * troff/input.c (token::next): Delete implementation of \R.
  3222. * macros/Makefile: Strip comments from tmac.e while installing it.
  3223. * troff/input.c: New variable `nroff_mode'.
  3224. (troff_request, nroff_request): New functions.
  3225. (init_input_requests): Bind `troff' and `nroff' to troff_request
  3226. and nroff_request.
  3227. (do_if_request): Compute results of t and n conditions from
  3228. nroff_mode.
  3229. * text/text.c (split_text): Fix typo in >=.
  3230. * eqn/lex.c: Add definition of `==' to def_table.
  3231. Fri Nov 2 02:49:09 1990 James Clark (jjc at jclark)
  3232. * pic/tex.c (tex_output::start_picture): Change the definitions of
  3233. \graph and \graphtemp so that they work properly with Plain TeX.
  3234. * pic/tex.c (tex_output::solid_arc): Ensure that the second angle
  3235. argument to `ar' is not less than the first.
  3236. * pic/pic.y: Allow a comma between elements of the variable list
  3237. in the argument to `reset'.
  3238. * pic/object.c (arc_object::arc_object): Fix computation of
  3239. radius.
  3240. * eqn/main.c (main): Add exit(0).
  3241. Thu Nov 1 02:03:50 1990 James Clark (jjc at jclark)
  3242. * troff/div.c (begin_page): Test no_space_mode after doing the
  3243. break, but still push the page ejector cookie before doing the
  3244. break. Also set the next page number after doing the break.
  3245. * xditview/xditview.c (NewFile): Don't set the title and icon name
  3246. if this is the first file and its name is `-'.
  3247. * groff/groff.c: Define a new device flag XT_OPTION. Set it for
  3248. the X75 and X100 devices.
  3249. (main): If a device has the XT_OPTION flag set and there's exactly
  3250. one file argument, pass the driver -xrm and -title options to set
  3251. the icon name and window title to the name of the file.
  3252. * troff/env.c (environment_switch): If there was an argument but
  3253. it wasn't a valid number or name, then pop an environment but
  3254. don't give an error message on underflow.
  3255. * troff/number.c (start_number): Correct spelling in error message.
  3256. * troff/input.c (token::delimiter): Don't print an error message
  3257. if err is false.
  3258. * xditview/libXdvi/parse.c (ParseInput): In case 'D', only call
  3259. ParseDrawFunction if dw->display_enable is true.
  3260. Wed Oct 31 05:49:50 1990 James Clark (jjc at jclark)
  3261. * pic/pic.y: Parse text positioning like normal attributes, so as
  3262. to allow `"text" at 0,0 ljust'. Don't allow `center' as a
  3263. positioning attribute.
  3264. Mon Oct 29 22:50:38 1990 James Clark (jjc at jclark)
  3265. * tbl/main.c (process_data): When in state START while reading a
  3266. text block, don't change to state MIDDLE if c is a newline.
  3267. Sun Oct 28 21:59:56 1990 James Clark (jjc at jclark)
  3268. * dvi/dvi.c (dvi_printer::begin_page): Rename `i' variable to `j'
  3269. so as to avoid shadowing parameter.
  3270. Wed Oct 24 18:35:39 1990 James Clark (jjc at jclark)
  3271. * tbl/table.c (trim_space): Deleted.
  3272. (table::add_entry): Don't call trim_space.
  3273. Mon Oct 22 03:48:39 1990 James Clark (jjc at jclark)
  3274. * VERSION: Change version to 0.6.
  3275. * troff/number.c (parse_expr): Make == work.
  3276. Sat Oct 20 11:28:17 1990 James Clark (jjc at jclark)
  3277. * man/grog.man: New file.
  3278. * man/Makefile: Add grog.n to MAN1PAGES.
  3279. * etc/grog.sh: New file.
  3280. * etc/Makefile: Install grog.sh as grog.
  3281. Fri Oct 19 11:17:15 1990 James Clark (jjc at jclark)
  3282. * troff/input.c (token::next): Implement \E.
  3283. Thu Oct 18 11:56:24 1990 James Clark (jjc at jclark)
  3284. * xditview/tmac.X: Change font translations to match tmac.ps.
  3285. * troff/input.c (non_empty_name_warning): Don't give a warning if
  3286. `\{' terminates the name.
  3287. Tue Oct 16 10:04:23 1990 James Clark (jjc at jclark)
  3288. * ps/devps/symbol.diff: New file.
  3289. * ps/devps/FontMakefile: Mention symbol.diff.
  3290. Sun Oct 14 11:46:46 1990 James Clark (jjc at jclark)
  3291. * troff/node.c (font_position): Use get_long_name to read the
  3292. external_name.
  3293. * troff/env.c (environment_switch): If we get a number that's < 0
  3294. or >= NENVIRONMENTS, treat it like a name.
  3295. Change NENVIRONMENTS to 10.
  3296. * troff/groff.h: Remove definition of FONTS_MAX.
  3297. * troff/node.h (class font_family): Make map a pointer instead of
  3298. an array. Add a map_size member. Make it a class. Make nm const
  3299. and public. Make invalidate_fontno a friend.
  3300. * troff/node.c: Define font_table_size. Make font_info a pointer
  3301. rather than an array.
  3302. (class troff_output_file): Allocate font_position dynamically. Add
  3303. nfont_positions member.
  3304. (troff_output_file::set_font): Grow font_position if necessary.
  3305. (troff_output_file::~troff_output_file): Delete font_position.
  3306. (troff_output_file::troff_output_file): Allocate font_position.
  3307. (grow_font_table): New function.
  3308. (troff_output_file::really_begin_page,
  3309. troff_output_file:really_copy_page): Use nfont_positions rather
  3310. than FONTS_MAX.
  3311. (mount_font_no_translate, mount_style): Call grow_font_table if
  3312. necessary.
  3313. (font_family::font_family): Allocate map.
  3314. (font_family::make_definite): Grow map if necessary. Use
  3315. font_table_size instead of FONTS_MAX.
  3316. (font_family::~font_family): New function.
  3317. (invalidate_fontno): Use font_family::map_size.
  3318. (get_fontno, env_space_width, env_half_narrow_space_width,
  3319. env_narrow_space_width, symbol_fotno, is_good_fontno,
  3320. get_bold_fontno, make_glyph_node): Use font_table_size rather than
  3321. FONTS_MAX.
  3322. (next_available_font_position): Never return 0.
  3323. Fri Oct 12 10:17:52 1990 James Clark (jjc at jclark)
  3324. * ps/tmac.ps: Add font translations for compatibility with dpost.
  3325. Thu Oct 11 12:09:03 1990 James Clark (jjc at jclark)
  3326. * eqn/pile.c: Rename default_baseline_sep to baseline_sep.
  3327. Move BASELINE_SEP_FORMAT and COLUMN_WIDTH_FORMAT into pbox.h.
  3328. Move definitions baseline_sep, shift_down, column_sep,
  3329. matrix_side_sep into...
  3330. * eqn/box.c: Add them to param_table.
  3331. * eqn/pbox.h: Add declarations to pbox.h.
  3332. * troff/input.c (set_string): Cast value to unsigned char *.
  3333. * troff/token.h (process_input_stack): Declare it static before
  3334. declaring it a friend.
  3335. Wed Oct 10 09:59:13 1990 James Clark (jjc at jclark)
  3336. * dvi/devdvi/texex.map: Fix positions of extensible brace middle
  3337. and bottom.
  3338. * dvi/devdvi/EX: Regenerate.
  3339. * troff/input.c (init_charset_table): Make ", ', ), ], *, \(dg
  3340. transparent.
  3341. Tue Oct 9 08:34:02 1990 James Clark (jjc at jclark)
  3342. * eqn/lex.c: In defaults_table, make definition of `dot' call
  3343. `dot_def'. Don't explicitly make it roman. Similarily for other
  3344. accents.
  3345. * pic/lex.c (for_input::for_input): Add by_is_multiplicative
  3346. argument.
  3347. (for_input::get, for_input::peek): Use this.
  3348. (do_for): Add by_is_multiplicative argument.
  3349. * pic/pic.y: Change optional_by clause to allow '*' after `by'.
  3350. Change semantic value of optional_by to be a double plus a flag
  3351. saying whethet the by clause is multiplicative.
  3352. * eqn/lex.c (get_delimited_text): Remember location of start of
  3353. definition. Improve error handling when EOF is encountered.
  3354. * lib/font.h: Rename handle_x_command to
  3355. handle_unknown_font_command.
  3356. * lib/font.c (font::load): Call handle_unknown_font_command for
  3357. any unknown command in the font description file. Don't call
  3358. handle_x_command. Include the name of the command in the argv.
  3359. Improve message for unknown command after kernpairs or charset
  3360. command.
  3361. * ps/ps.c (ps_font::handle_x_command): Rename to
  3362. handle_unknown_font_command. Remove message about `x download'
  3363. command. Give error message for wrong number of arguments.
  3364. * ps/devps/afmtodit: Generate `encoding' instead of `x encoding'.
  3365. * dvi/dvi.c (dvi_font::handle_x_command): Rename to
  3366. handle_unknown_font_command. Give an error message for wrong
  3367. number of arguments. Rename design_size to designsize.
  3368. * dvi/tfmtodit.c (main): Generate `checksum' instead of `x
  3369. checksum', `designsize' instead of `design_size'.
  3370. Mon Oct 8 00:38:55 1990 James Clark (jjc at jclark)
  3371. * eqn/*.[chy]: Change underaccent to uaccent.
  3372. * eqn/eqn.y: Add rule for underaccent. Declare UNDERACCENT token;
  3373. give it the same precedence as ACCENT.
  3374. * eqn/other.c (make_underaccent_box): New function.
  3375. * eqn/box.h: Declare it.
  3376. * eqn/lex.c: Add UNDERACCENT to token_table. Add utilde to
  3377. def_table.
  3378. Sun Oct 7 11:25:16 1990 James Clark (jjc at jclark)
  3379. * pic/pic.y (reset_all): New function. Called in rule for RESET.
  3380. (parse_init): Call reset_all.
  3381. (define_variable): When defining scale reset only those
  3382. pre-defined variables that are scaled.
  3383. (defaults_table): Add `scale' as non-scaled value.
  3384. * pic/pic.y: Redo parsing of text adjustments: parse adjustments
  3385. together with the text; allow any number of positioning words;
  3386. allow center as a positioning word.
  3387. * pic/object.c (output::compute_scale): Get picture maximum height
  3388. and width from variables called maxpswid and maxpsht.
  3389. * pic/pic.y: Add maxpswid and maxpsht to defaults_table.
  3390. Sat Oct 6 10:16:56 1990 James Clark (jjc at jclark)
  3391. * pic/object.c (object_spec::make_text): Multiply textht by number
  3392. of text items.
  3393. * pic/pic.y: Allow `sprintf("string", expr,...)' wherever text can
  3394. occur.
  3395. (do_sprintf): New function.
  3396. (pic.gperf): Add sprintf token.
  3397. (text, sprintf): New rules.
  3398. * pic/pic.y: `rand()' with no arguments returns a random number
  3399. in the range [0,1).
  3400. * pic/pic.y: Allow a bare expression to be an attribute: change
  3401. precedences to support this. Change optional_ordinal rule to
  3402. optional_ordinal_last to avoid reduce/reduce conflict.
  3403. * pic/object.c (object_spec::object_spec): Initialize direction.
  3404. * pic/pic.y: Implement ^ operator meaning exponentiation.
  3405. * troff/node.h: Add default argument to mount_font.
  3406. * troff/node.c (font_position): Read an optional third argument
  3407. giving the external_name.
  3408. (mount_font): Add optional argument giving the external_name.
  3409. (mount_font_not_translate): Have additional argument giving
  3410. external name. Use this name to load the font. Pass both names
  3411. to font_info::font_info.
  3412. (font_info::font_info): Have additional argument giving
  3413. external_name.
  3414. (class tfont): New member external_name.
  3415. (font_info::get_tfont): Use external name to construct tfont_spec.
  3416. Fri Oct 5 04:03:13 1990 James Clark (jjc at jclark)
  3417. * eqn/lex.c (init_table): Add argument giving device. Define
  3418. name of device to be "1".
  3419. (do_ifdef): Counts as true if the argument has been defined with
  3420. `define'.
  3421. * eqn/main.c (main): Call init_table with device argument. Make
  3422. device local to main.
  3423. * eqn/eqn.h: Change declaration of init_table. Remove declaration
  3424. of device.
  3425. * pic/lex.c (get_delimited): Allow text to be delimited by
  3426. matching {}s. Don't recognize ending delimiter within a string.
  3427. * troff/input.c (get_delim_name): New function.
  3428. (token::next): Implement \C.
  3429. * lib/font.c (font::load): Grok ---. Add an alias for each
  3430. character based on its code.
  3431. (font::get_code_width): Deleted.
  3432. * lib/font.h (class font): Declare font::number_to_index().
  3433. Remove declaration of font::get_code_width.
  3434. * lib/nametoindex.c (font::name_to_index): Add 512 rather than 256
  3435. to indices of named characters.
  3436. (font::number_to_index): New function.
  3437. * troff/input.c (font::number_to_index): New function.
  3438. (get_charinfo_by_number, charinfo::get_number,
  3439. charinfo::set_number): New functions.
  3440. (token::next): Turn \N into a TOKEN_NUMBERED_CHAR.
  3441. (token::process, token::description, token::get_char,
  3442. token::add_to_node_list, token::operator==): Handle
  3443. TOKEN_NUMBERED_CHAR.
  3444. * troff/charinfo.h: Declare get_charinfo_by_number,
  3445. charinfo::get_number, charinfo::set_number. Add NUMBERED flag to
  3446. charinfo class.
  3447. (charinfo::numbered): New function.
  3448. * troff/token.h: Add TOKEN_NUMBERED_CHAR.
  3449. * troff/env.h (class environment): Remove declaration of ...
  3450. * troff/env.c (environment::make_numbered_char_node): Deleted.
  3451. * troff/node.c (make_numbered_node): Deleted.
  3452. (class numbered_glyph_node): Remove.
  3453. (troff_output_file::put_char_width, troff_output_file::put_char):
  3454. Handle numbered chars.
  3455. (troff_output_file::numbered_char): Removed.
  3456. (tfont::get_code_width): Removed.
  3457. (make_glyph_node): Don't search special fonts for numbered
  3458. characters.
  3459. * troff/node.h: Remove declaration of make_numbered_node.
  3460. * driver/input.c (do_file): Handle N command.
  3461. * driver/printer.h: Add declaration of ...
  3462. * driver/printer.c (printer::set_numbered_char): New function.
  3463. * dvi/tfmtodit.c (main): Generate unnamed entries.
  3464. * ps/devps/afmtodit: Likewise.
  3465. * xditview/xtotroff.c (MapFont): Likewise.
  3466. * xditview/libXdvi/parse.c (ParseInput): Grok N command.
  3467. * tbl/main.c (process_format): If multiple widths are specified
  3468. for a column but all the widths are the same, don't give an error
  3469. message.
  3470. * tbl/table.c (table::do_row): If the current row is all lines and
  3471. the stuff doesn't contains a line, mark the top of the row after
  3472. printing stuff before the row. If the current row is not all
  3473. lines and the stuff doesn't contain a line, don't unnecessarily
  3474. mark the top of the row before printing the stuff.
  3475. Mon Oct 1 11:42:00 1990 James Clark (jjc at jclark)
  3476. * troff/groff.h: Remove MAX_PATH.
  3477. * troff/input.c (open_file): Dynamically allocate space for the
  3478. path.
  3479. (open_mac_file, process_macro_file): Corresponding changes.
  3480. Sun Sep 23 18:56:26 1990 James Clark (jjc at jclark)
  3481. * troff/node.h (class output_file): Make copy_file pure. Add
  3482. vspace method ifdef COLUMN. Add is_printing method.
  3483. * troff/node.c: Add class printing_reg. Add class
  3484. real_output_file. Derive other output_file classes from
  3485. real_output_file; in these classes rename begin_page to
  3486. really_begin_page, print_line to really_print_line, copy_file to
  3487. really_copy_file, transparent_char to really_transparent_char.
  3488. Move output_file::flush to real_output_file. Add printing member
  3489. to class output_file.
  3490. * troff/div.h: Remove printing member from top_level_diversion.
  3491. Add vspace member function to class diversion ifdef COLUMN. Add
  3492. some declarations ifdef COLUMN.
  3493. * troff/div.c (top_level_diversion::copy_file,
  3494. top_level_diversion::transparent_output,
  3495. top_level_diversion::output): Don't test printing member before
  3496. output.
  3497. * troff/input.c: Handle initial variable_space_request ifdef
  3498. COLUMN.
  3499. * troff/Makefile: Add column.c but comment it out. Add -DCOLUMN
  3500. but comment it out.
  3501. Sat Sep 22 11:32:22 1990 James Clark (jjc at jclark)
  3502. * troff/div.c (diversion::need): Make any space forced. If we
  3503. sprung a trap, set truncated_space to minus the distance to the
  3504. trap and set needed_space to the amount that was needed.
  3505. (top_level_diversion::space): A forced space turns no_space_mode
  3506. off.
  3507. (class constant_vunits_reg): New class.
  3508. (init_div_requests): Implement number registers .trunc and .ne
  3509. using constant_vunits_reg.
  3510. (class truncated_space_reg): Deleted.
  3511. * troff/div.h: Don't have a no_space_mode member in diversion.
  3512. Instead have it in top_level_diversion.
  3513. * troff/div.c (diversion::diversion): Don't initialize
  3514. no_space_mode.
  3515. (top_level_diversion::top_level_diversion): Initialize
  3516. no_space_mode.
  3517. (no_space, restore_spacing): Do nothing if curdiv != topdiv.
  3518. (macro_diversion::output): Don't clear no_space_mode.
  3519. * troff/input.c (diverted_space_node::reread): Don't call
  3520. environment::do_break. In fill mode, act like a blank line.
  3521. (diverted_copy_file_node::reread): Don't call
  3522. environment::do_break.
  3523. * troff/div.c (blank_line): New function.
  3524. * troff/div.h: Declare it.
  3525. * troff/input.c (process_input_stack): Call it.
  3526. * troff/div.c (truncated_space_reg::get_string): New function.
  3527. (init_div_requests): Bind to .trunc.
  3528. (space_request, top_level_diversion::space,
  3529. top_level_diversion::output, macro_diversion::space,
  3530. macro_diversion::output): Update truncated_space.
  3531. (macro_diversion::output): Redo calculations when trap sprung.
  3532. (macro_diversion::output, macro_diversion::space): No need for
  3533. trap_flag.
  3534. * troff/div.c (top_level_diversion::output): Set nl_reg_contents
  3535. after truncating post line spacing.
  3536. Fri Sep 21 11:27:25 1990 James Clark (jjc at jclark)
  3537. * ps/devps/prologue (MF, SF): Make them work even if setfont is
  3538. defined as a procedure rather than as an operator.
  3539. Thu Sep 20 12:55:05 1990 James Clark (jjc at jclark)
  3540. * troff/div.c (macro_diversion::space): Ignore no_space_mode.
  3541. Wed Sep 19 10:54:37 1990 James Clark (jjc at jclark)
  3542. * troff/div.c (top_level_diversion::output): Merge
  3543. output_file::print_line and output_file::end_of_line member
  3544. functions.
  3545. * troff/div.h (class output_file):
  3546. * troff/node.c (troff_output_file::print_line,
  3547. troff_output_file::end_of_line, output_file::end_of_line,
  3548. ascii_output_file::print_line, suppress_output_file::print_line):
  3549. Corresponding changes.
  3550. Tue Sep 18 11:31:47 1990 James Clark (jjc at jclark)
  3551. * troff/input.c (token::next): Don't give a warning for `\.'.
  3552. * troff/env.c (environment::get_center_lines): New function.
  3553. (init_env_requests): Bind number register .ce to it.
  3554. * troff/env.h: Declare it.
  3555. * tbl/table.c (table::init_output): Define reset macro to restore
  3556. .ce. If center option not given, store .ce in SAVED_CENTER_REG.
  3557. Then do .ce 0.
  3558. (table::print): If center option not given, then imply center
  3559. option if SAVED_CENTER_REG > 0.
  3560. Mon Sep 17 09:19:19 1990 James Clark (jjc at jclark)
  3561. * ps/devps/Makefile: Remove T from FONTS. Remove TSymbol.ps and
  3562. Troff.ps from DOWNLOAD.
  3563. * troff/Makefile: Change comment in DEFINES to avoid confusing
  3564. System V make.
  3565. * ps/ps.c (ps_printer::do_exec): Allow newlines within PostScript
  3566. code. Don't try to catch errors with stopped.
  3567. (check_line_lengths): New function.
  3568. * ps/devps/prologue (EXEC): Deleted.
  3569. (EBEGIN, EEND): New procedures.
  3570. Sun Sep 16 14:51:15 1990 James Clark (jjc at jclark)
  3571. * troff/input.c: Include request.h before node.h.
  3572. * troff/node.c: Likewise.
  3573. * troff/env.c: Likewise.
  3574. * troff/div.c: Likewise.
  3575. * troff/node.h (class special_node): Store argument as a macro
  3576. rather than a char *.
  3577. * troff/node.c (special_node::special_node, special_node::copy):
  3578. Grok this.
  3579. (special_node::~special_node): Deleted.
  3580. (special_node::tprint): Deleted.
  3581. (special_node::tprint_start, special_node::tprint_end,
  3582. special_node::tprint_char): New functions.
  3583. (troff_output_file::special): Deleted.
  3584. (troff_output_file::start_special, troff_output_file::end_special,
  3585. troff_output_file::special_char): New functions.
  3586. * troff/input.c (special_node::tprint): New function.
  3587. (do_special): Use macro not char *.
  3588. (do_transparent_macro): Deleted.
  3589. (token::next): Don't call do_transparent_macro.
  3590. * troff/input.c (token::next): Add 'Y' case.
  3591. (do_transparent_macro): New function.
  3592. * troff/node.c (troff_output_file::special): Handle newlines with
  3593. argument using new continuation convention.
  3594. * driver/input.c (get_string): Cope with continuation convention.
  3595. (do_file): Don't call skip_line after calling get_string(1).
  3596. * ps/ps.c (ps_printer::special, ps_printer::do_import,
  3597. ps_printer::do_def, ps_printer::do_exec): Cope with newlines in
  3598. arg.
  3599. * xditview/libXdvi/parse.c (ParseInput): Ignore lines starting
  3600. with +.
  3601. Sat Sep 15 19:00:10 1990 James Clark (jjc at jclark)
  3602. * troff/input.c (asciify): By default, illegal input characters
  3603. should return empty string.
  3604. * troff/input.c (copy_file): Handle first page transition like title.
  3605. (token::next, process_input_stack): Grok COPY_FILE_REQUEST.
  3606. * troff/input.c (token::next): Improve error message for EOF after
  3607. escape character.
  3608. (input_char_description): New function.
  3609. (get_char_for_escape_name): Use input_char_description.
  3610. (token::next): Warn about unrecognized escape sequences.
  3611. (warning_table): Add WARN_ESCAPE.
  3612. * troff/groff.h: Declare WARN_ESCAPE. Change WARN_TOTAL
  3613. accordingly.
  3614. * troff/token.h: Remove declaration of process_input_stack.
  3615. * troff/input.c: Remove declaration of init_hyphen_requests.
  3616. * troff/request.h: Correct spelling in declaration of same.
  3617. * troff/input.c (token::next): Check whether escape_char is 0.
  3618. Fri Sep 14 12:09:25 1990 James Clark (jjc at jclark)
  3619. * groff.c (main, usage, help): Implement -P and -L options.
  3620. * groff.sh: Likewise.
  3621. * troff/input.c (token::next): Use some gotos to avoid code
  3622. duplication.
  3623. * troff/input.c (get_long_name, get_name, read_long_ecsape_name):
  3624. Avoid calling symbol::symbol if name empty.
  3625. Thu Sep 13 06:21:45 1990 James Clark (jjc at jclark)
  3626. * troff/input.c (init_input_requests): Make \n(.x return the major
  3627. version number and \n(.y return the minor version number.
  3628. * troff/Makefile: Construct file majorminor.c defining
  3629. major_version and minor_version automatically from ../VERSION.
  3630. * troff/node.c (class glyph_node): Make operator new and operator
  3631. delete public.
  3632. (class ligature_node): Similarily.
  3633. * troff/input.c (operator==(const macro &, const macro &)): New
  3634. function.
  3635. (non_interpreted_node::same): Use this.
  3636. (string_iterator::string_iterator): Make macro& argument const.
  3637. * troff/input.c (input_iterator::get): New function. Don't make
  3638. asciify_macro or class non_interpreted_node friends of class
  3639. input_iterator.
  3640. (non_interpreted_node::interpret): Use input_iterator::get.
  3641. (asciify_macro): Likewise.
  3642. * troff/input.c (~token_node, ~string_iterator, ~arg_list,
  3643. ~non_interpreted_node): Deleted.
  3644. * troff/node.c: (~suppress_output_file, ~ascii_output_file):
  3645. Deleted.
  3646. * troff/symbol.h: Make all symbol member functions const.
  3647. * lib/strtol.c: New file.
  3648. * lib/Makefile: Add strtol.c.
  3649. * Makefile: Define STRTOL as strtol.o to include strtol in
  3650. libgroff.a.
  3651. Wed Sep 12 10:00:49 1990 James Clark (jjc at jclark)
  3652. * pic/troff.c (troff_output::simple_circle): Divide by scale.
  3653. Tue Sep 11 14:17:16 1990 James Clark (jjc at jclark)
  3654. * troff/input.c (do_special): Use input_level.
  3655. * troff/token.h (TOKEN_BACKSPACE): New token.
  3656. (token::backspace): New function.
  3657. * troff/input.c (token::description, token::next, token::process):
  3658. Grok TOKEN_BACKSPACE.
  3659. (do_special): Turn TOKEN_BACKSPACE back into \b.
  3660. * troff/token.h (token::leader): New function.
  3661. * troff/input.c (do_special): Turn TOKEN_LEADER back into \001.
  3662. * troff/input.c (do_special): Turn TOKEN_TAB back into \t.
  3663. * troff/input.c (do_special): Use token::description in error
  3664. message.
  3665. Mon Sep 10 11:06:27 1990 James Clark (jjc at jclark)
  3666. * troff/input.c (decode_args): Combine quoted and
  3667. quote_input_level variables. Make it a for (;;) loop.
  3668. * troff/input.c (get_char_for_escape_name): Check for \001 and \b.
  3669. * troff/input.c (read_long_escape_name): The test for whether to
  3670. expand buffer was off by 1.
  3671. (read_string): Similarily.
  3672. Fri Sep 7 11:45:50 1990 James Clark (jjc at jclark)
  3673. * troff/input.c: Use `const int' rather than `static const int'.
  3674. * troff/div.h (diversion::copy_file): Declare as pure virtual.
  3675. (macro_diversion::copy_file): New function.
  3676. * troff/node.h: New class diverted_copy_file_node.
  3677. * troff/node.c: Implement it.
  3678. * troff/input.c (copy_file): Use diversion::copy_file. Handle
  3679. first page transition by pushing a diverted_copy_file_node.
  3680. * troff/input.c (token::next, process_input_stack): Don't handle
  3681. COPY_FILE_REQUEST.
  3682. Thu Sep 6 13:29:10 1990 James Clark (jjc at jclark)
  3683. * ps/ps.c (flush_sbuf): Remember to add sbuf_kern when checking
  3684. whether space widths need adjusting.
  3685. * troff/charinfo.h: Generalize translated_to_space to
  3686. special_translation so as to allow translation to \&.
  3687. * troff/input.c (translate): Allow translation to \&.
  3688. (charinfo::*): Corresponding changes.
  3689. * troff/node.c (make_node, node::add_char): Corresponding changes.
  3690. * troff/node.h (dummy_node::dummy_node): Allow optional first
  3691. argument.
  3692. * lib/lib.h: Make codes 0200 to 0237 illegal input characters.
  3693. * troff/token.h: Remove TOKEN_TITLE. Remove token::title. Add
  3694. TOKEN_REQUEST.
  3695. * troff/input.c (token::next): Turn a TITLE_REQUEST into a
  3696. TOKEN_REQUEST with an argument of TITLE_REQUEST.
  3697. (token::process): Grok that.
  3698. * troff/input.c (copy_file): Handle first page transition like
  3699. title by pushing a COPY_FILE_REQUEST cookie.
  3700. (token::next, process_input_stack): Grok that.
  3701. * troff/node.h (output_file::copy_file): Add x and y arguments.
  3702. Make it non-pure.
  3703. * troff/div.c (top_level_diversion::copy_file): Supply them.
  3704. * troff/node.c (troff_output_file::copy_file): Add x and y
  3705. arguments; moveto specified position. Invalidate font_position
  3706. array after copying file.
  3707. (output_file::copy_file): New function.
  3708. (suppressed_output_file::copy_file, ascii_output::copy_file):
  3709. Removed.
  3710. * troff/input.c (transparent_file): New function.
  3711. (init_input_requests): Bind to "trf".
  3712. (token::next): Handle TRANSPARENT_FILE_REQUEST cookie.
  3713. (process_input_stack): Likewise.
  3714. * troff/Makefile: Add ../lib/lib.h to GROFF_H.
  3715. * troff/node.c (init_node_requests): New number registers .kern
  3716. pointing to global_kern_mode, and .lg pointing to
  3717. global_ligature_mode.
  3718. * troff/node.c (ligature): Don't change it if we get a bad
  3719. integer.
  3720. * troff/input.c (do_define_string): Don't strip tabs.
  3721. * troff/input.c (asciify_macro): Make the string_iterator auto.
  3722. * troff/node.c (init_font_requests): Rename to...
  3723. (init_node_requests):
  3724. * troff/node.h: Change declaration.
  3725. * troff/input.c (main): Change call.
  3726. * troff/input.c (node::reread, diverted_space_node::reread): New
  3727. methods.
  3728. (process_input_stack): Call reread rather than
  3729. get_diverted_space_node.
  3730. * troff/node.c (node::get_diverted_space_node,
  3731. diverted_space_node::get_diverted_space_node): Removed.
  3732. * troff/node.h: Declare reread methods instead of
  3733. get_diverted_space_node methods. Make `n' member private.
  3734. * troff/input.c: (token::diverted_space): Removed.
  3735. * troff/token.h: Removed declaration.
  3736. Tue Sep 4 00:48:04 1990 James Clark (jjc at jclark)
  3737. * eqn/script.c (script_box::compute_metrics): Don't let
  3738. SUP_RAISE_FORMAT become negative.
  3739. * tbl/table.c (table::do_row): Entries that don't end in the
  3740. this row shouldn't make the row non-blank.
  3741. * tbl/table.c (table::make_columns_equal): Only set the width of
  3742. columns which are marked as equal.
  3743. * tbl/main.c (process_data): Before issuing excess data error,
  3744. if last character was a newline unget it; then get it again after
  3745. the error. Also include the contents of the entry in the message.
  3746. * groff.c: New file.
  3747. * Makefile: Build groff from groff.c. Make it possible to use
  3748. either groff.sh or groff.c as groff.
  3749. * Makefile.bd: Similarily.
  3750. Mon Sep 3 09:39:49 1990 James Clark (jjc at jclark)
  3751. * groff.sh: Don't delay expansion of $@ in assignment to files.
  3752. Remove occurrences of \".
  3753. Sun Sep 2 09:56:59 1990 James Clark (jjc at jclark)
  3754. * all Makefiles: Simplify and rearrange.
  3755. * Makefile: Handle fmod like malloc.
  3756. * lib/Makefile: Similarily.
  3757. * lib/fmod.c: Remove #ifdef NEED_FMOD.
  3758. * Makefile: Rename OPTIMISE to OPTIMIZE.
  3759. * groff.sh: Remove assignment to PATH.
  3760. * Makefile: Remove SHPATH variable.
  3761. * Makefile.bd: Similarily.
  3762. * groff.sh: Add -V option to print the pipeline instead of
  3763. executing it.
  3764. Fri Aug 31 00:56:46 1990 James Clark (jjc at jclark)
  3765. * lib/font.c: Split off file searching into ...
  3766. * lib/fontfile.c: New file.
  3767. * lib/strerror.c (strerror): Use `Error %d' for unknown errors.
  3768. Thu Aug 30 13:13:55 1990 James Clark (jjc at jclark)
  3769. * tbl/table.c (table::do_hspan): Delete assertion that e != 0.
  3770. Also change misleading comment.
  3771. (table::do_vspan): Change similarily misleading comment.
  3772. * tbl/main.c (process_data): A format row with an explicit `s'
  3773. uses up a data line, even if all the other columns are `_' or `='.
  3774. * troff/input.c (token::description): Fix description of
  3775. TOKEN_DUMMY and TOKEN_EMPTY.
  3776. Wed Aug 29 04:12:08 1990 James Clark (jjc at jclark)
  3777. * groff.sh: Fix description of -Z in help message.
  3778. Tue Aug 28 07:28:33 1990 James Clark (jjc at jclark)
  3779. * pic/object.c (object_spec::make_object): Allow negative and zero
  3780. line thicknesses.
  3781. * pic/pic.y: Give linethick default value of -1.0.
  3782. * pic/troff.c (troff_output::troff_output): Initialize
  3783. last_line_thickness to BAD_THICKNESS.
  3784. (troff_output::finish_picture): Set thickness to BAD_THICKNESS.
  3785. (troff_output::line_thickness): Canonicalize negative thicknesses
  3786. to RELATIVE_THICKNESS.
  3787. * pic/tex.c (tex_output::set_pen_size): Silently map negative line
  3788. thicknesses to DEFAULT_PEN_SIZE. Canonicalize negative pen sizes
  3789. to -1.0.
  3790. (tex_output::start_picture): Set pen_size to -2.0.
  3791. * ps/ps.c (ps_printer::set_line_thickness): If line_thickness is
  3792. 0, then use 0 linewidth.
  3793. (ps_printer::ps_printer): Initialize line_thickness to -1.
  3794. * pic/troff.c (troff_output::simple_ellipse): Divide by scale.
  3795. * ps/devps/symbolchars: Remove `or'.
  3796. * ps/tmac.ps: Implement \(or with .char.
  3797. * ps/devps/symbolchars: Move most characters into textmap.
  3798. * ps/devps/textmap: Add names for troff bracket characters. Remove
  3799. ul, ru, br, bv.
  3800. * ps/devps/TSymbol.ps: Removed.
  3801. * ps/devps/FontMakefile: Make S from Symbol not TSymbol.
  3802. * ps/tmac.ps: Do with .char what TSymbol did.
  3803. * ps/devps/download: Remove TSymbol.
  3804. * ps/devps/T: Removed.
  3805. * ps/devps/Troff.ps: Removed.
  3806. * ps/devps/Troff.afm: Removed.
  3807. * ps/tmac.ps: Implement \(ru, \(ul, and \(br with .char.
  3808. * ps/devps/download: Remove Troff.
  3809. * ps/devps/FontMakefile: Remove T target.
  3810. * ps/devps/DESC-A4: Remove T from font list.
  3811. * ps/devps/DESC-letter: Likewise.
  3812. * troff/input.c (macro_to_node): Rename to ...
  3813. (charinfo_to_node): Don't pass mac argument. Temporarily remove the
  3814. character's definition while processing it.
  3815. * troff/node.c (node::add_char, make_node): Change calls to
  3816. macro_to_node accordingly.
  3817. * troff/input.c (token::next): Translate \_ to \(ul.
  3818. * tty/devascii/R.proto: Add `|'.
  3819. * tty/devlatin1/R.proto: Likewise.
  3820. Mon Aug 27 11:25:41 1990 James Clark (jjc at jclark)
  3821. * man: Put the version number in all the man pages.
  3822. Sun Aug 26 11:40:05 1990 James Clark (jjc at jclark)
  3823. * Makefile.bd: New file.
  3824. * README.bd: New file.
  3825. * VERSION: New file.
  3826. * lib/version.c: Removed.
  3827. * lib/Makefile: Create version.c from ../VERSION. Remove version.c
  3828. in clean target.
  3829. * troff/input.c (main): Get hyphen_file from GROFF_HYPHEN
  3830. environment variable.
  3831. * all Makefiles: Split install target into install.bin for
  3832. binaries, and install.nobin for everything else.
  3833. * Makefile: Add bindist target.
  3834. * man/afmtodit.man: New file.
  3835. * man/Makefile: Add afmtodit.n to MAN1PAGES.
  3836. * ps/devps/Makefile: Add textmap to DEVICEFILES. Install afmtodit
  3837. in BINDIR.
  3838. * ps/Makefile: Pass BINDIR to make install in devps.
  3839. * ps/ps.c (ps_printer::set_char): Do nothing if the character is
  3840. the space character.
  3841. * ps/devps/FontMakefile: Rename symbol.afm to tsymbol.afm.
  3842. Sat Aug 25 15:39:03 1990 James Clark (jjc at jclark)
  3843. * ps/ps.c: Redo font downloading.
  3844. * ps/devps/download: New file.
  3845. * ps/devps/Makefile: Add download to DEVICEFILES.
  3846. * ps/devps/afmtodit: Remove -d option.
  3847. * ps/devps/FontMakefile: Don't use -d option with afmtodit.
  3848. * ps/devps/symbosl.ps: Add %%DocumentFonts comment.
  3849. * ps/devps/zapfdr.ps: Likewise.
  3850. * ps/devps/TSymbol.ps: Likewise.
  3851. Fri Aug 24 20:10:30 1990 James Clark (jjc at jclark)
  3852. * groff.sh: Initialize dev to ${GROFF_TYPESETTER:-@DEVICE@}.
  3853. Thu Aug 23 10:03:47 1990 James Clark (jjc at yquem)
  3854. * ps/ps.c (ps_output::include_file): If BROKEN_SPOOLER is defined,
  3855. then strip the first line if it starts with %.
  3856. * Makefile: Add a comment about this.
  3857. * man/tfmtodit.man: New file.
  3858. * man/Makefile: Add tfmtodit.n to MAN1PAGES.
  3859. * dvi/Makefile: Install tfmtodit in BINDIR.
  3860. * dvi/tfmtodit.c (usage): Mention -v option.
  3861. Wed Aug 22 09:56:36 1990 James Clark (jjc at yquem)
  3862. * troff/node.c (troff_output_file::end_of_line): Call do_motion.
  3863. * troff/node.c (troff_output_file::transparent_char): Don't call
  3864. flush_tbuf.
  3865. * eqn: Add check_tabs method to most box classes.
  3866. * eqn/box.c (box::top_level): Call check_tabs.
  3867. * eqn/script.c (script_box::output): Use \Z.
  3868. * eqn/limit.c (limit_box::output): Use \Z.
  3869. * eqn/box.c (box::top_level): Use itoa.
  3870. Tue Aug 21 09:29:28 1990 James Clark (jjc at yquem)
  3871. * dvi/tmac.dvi: Add font translations for CR, C, TT.
  3872. * dvi/devdvi/Makefile: Don't make links to CW.
  3873. * ps/tmac.ps: Add font translations for C, CW, CO, CX, CD, H, HO,
  3874. HX, HD.
  3875. * xditview/tmac.X: Likewise.
  3876. * troff/node.c: Add font translation feature.
  3877. (get_font_translation): New function.
  3878. (symbol_fontno): Translate the font name.
  3879. (mount_font_no_translate): Rename to mount_font to this.
  3880. (mount_font): New function.
  3881. (font_family::make_definite): Call mount_font_no_translate instead
  3882. of mount_font.
  3883. (mount_style): Translate the font name.
  3884. (font_translate): New function.
  3885. (init_font_requests): Bind "ftr" to font_translate.
  3886. * ps/devps/prologue (SN): New procedure that rounds a position to
  3887. the nearest (pixel + (.25,.25)).
  3888. (DL): Use SN to round endpoints.
  3889. * lib/version.c: Changed version to 0.5.
  3890. Sat Aug 18 04:43:21 1990 James Clark (jjc at yquem)
  3891. * Makefile: Move definition of PAGE to the very beginning, so that
  3892. people are less likely to miss it.
  3893. Fri Aug 17 02:15:11 1990 James Clark (jjc at yquem)
  3894. * man/Makefile: Don't need to sed out @UPCASE_PROG_PREFIX@.
  3895. * troff/env.c (environment::choose_breakpoint): Make `can't find
  3896. breakpoint' error a warning of type WARN_BREAK. Change message to
  3897. `can't break line'.
  3898. * troff/groff.h: Declare WARN_BREAK with code 4; change WARN_INPUT to
  3899. code 040000.
  3900. * troff/input.c: Add WARN_BREAK to warning_table. Include
  3901. WARN_BREAK in DEFAULT_WARNING_MASK.
  3902. * tty/tmac.tty: Add definition of \(+-.
  3903. * groff.sh: Remove `--' option to set command.
  3904. * dvi/devdvi/texsy.map: Remove duplicate md entry.
  3905. * ps/devps/eqnchar: Better definition of cdot using md.
  3906. * dvi/devdvi/eqnchar: Likewise.
  3907. * xditview/devX100/eqnchar: Likewise.
  3908. * xditview/devX75/eqnchar: Likewise.
  3909. * eqn/lex.c: Add definition of cdot.
  3910. Thu Aug 16 09:33:57 1990 James Clark (jjc at yquem)
  3911. * troff/input.c (get_optional_char): New function.
  3912. * troff/input.c (set_page_character): Use get_optional_char(),
  3913. rather than has_arg() and tok.get_char(1).
  3914. * troff/env.c (tab_character, leader_character, hyphen_char,
  3915. field_characters): Likewise.
  3916. (margin_character): Likewise. Also always delete the
  3917. margin_character_node.
  3918. * troff/input.c (token::get_char): Use token::description.
  3919. * troff/input.c (has_arg): Don't skip over tab and \}.
  3920. * troff/number.c (start_number): Give a warning if the number
  3921. starts with \} (WARN_RIGHT_BRACE) or tab (WARN_TAB).
  3922. Wed Aug 15 10:04:37 1990 James Clark (jjc at yquem)
  3923. * troff/input.c (empty_name_warning, non_empty_name_warning): New
  3924. functions.
  3925. (get_name, get_long_name): Use these. Rename `warn' argument to
  3926. `required'.
  3927. * troff/node.c (get_fontno): Test that the symbol is not null.
  3928. * troff/input.c (token::description): New function.
  3929. * troff/number.c (parse_term): Use token::description in `numeric
  3930. expression expected' message.
  3931. * troff/groff.h: Add WARN_MISSING.
  3932. * troff/number.c (start_number): New function.
  3933. * troff/number.c (get_vunits, get_hunits, get_number, get_integer,
  3934. get_incr_number): Use start_number().
  3935. * troff/input.c (DEFAULT_WARNING_MASK): Enable WARN_NUMBER by
  3936. default.
  3937. * troff/input.c (get_name, get_long_name): Use WARN_MISSING.
  3938. * troff/reg.c (alter_format): Use WARN_MISSING. Also use
  3939. token::descripion.
  3940. * troff/input.c (token::get_char): Use WARN_MISSING.
  3941. * troff/input.c (token::delimiter): Use token::description.
  3942. * troff/env.c (environment_switch): Back out Aug 3 change.
  3943. * troff/input.c (has_arg): Skip over \}s and tabs but give a
  3944. warning.
  3945. * troff/token.h (token::tab): New function.
  3946. * troff/node.c (get_fontno): Use tok.skip() rather than has_arg().
  3947. * troff/reg.c (alter_format): Likewise.
  3948. * troff/node.c (bold_font): Use has_arg() rather than tok.skip().
  3949. Tue Aug 14 10:11:21 1990 James Clark (jjc at yquem)
  3950. * troff (most files): Redo warnings. Divide warnings into various
  3951. categories; warning() has an additional first argument indicating
  3952. the category it falls into.
  3953. * troff/input.c (main): -w now takes an argument. New option -W.
  3954. (enable_warning, disable_warning): New functions.
  3955. * ps/devps/afmtodit: Add -a option to lie about the italic angle.
  3956. * ps/devps/FontMakefile: Pretend TI has an angle of 7.
  3957. Mon Aug 13 10:11:16 1990 James Clark (jjc at yquem)
  3958. * ps/devps/eqnchar: Better definitions of dotdot, vec, dyad, inf.
  3959. * xditview/devX100/eqnchar: Likewise. Remove definition of dot.
  3960. * xditview/devX75/eqnchar: Likewise.
  3961. * dvi/devdvi/eqnchar: Better definitions of vec, dyad, dotdot.
  3962. * eqn/other.c: When bar or over applies to a single character
  3963. don't produce an overline_box or an underline_box. Instead produce
  3964. an accent_box or an underaccent_box, with the accent a line
  3965. whose width is accent_width. New classes underaccent_box,
  3966. overline_char_box and underline_char_box.
  3967. * eqn/box.h: Move overline_box, underline_box, accent_box class
  3968. declarations into eqn/other.c. Add declarations of
  3969. make_underline_box, make_overline_box, make_accent_box.
  3970. * eqn/eqn.y: Call make_overline_box, make_underline_box
  3971. make_accent_box instead of constructors.
  3972. * eqn/pbox.h, eqn/box.c: Add accent_width parameter.
  3973. * eqn/other.c: Add accent_box::~accent_box.
  3974. * eqn/box.h: Declare it.
  3975. * groff.sh: With -Tps, use eqn -D.
  3976. * eqn/other.c (overline_box::output): Use \Z. If draw_flag use \D
  3977. rather than \l.
  3978. (underline_box::output): Similarily.
  3979. (accent_box::output): Use \Z.
  3980. * xditview/tmac.X: Add definitions of ~ and ^ (so that they are a
  3981. bit smaller.)
  3982. Sun Aug 12 09:41:15 1990 James Clark (jjc at yquem)
  3983. * troff/div.c (top_level_diversion::transparent_output(unsigned
  3984. char)): Use asciify.
  3985. * troff/input.c (asciify): Don't make it static.
  3986. * troff/token.h (asciify): Declare it.
  3987. * troff/input.c (get_name, get_long_name, token::get_char,
  3988. token::delimiter): Add an extra default argument which says
  3989. whether a warning should be printed.
  3990. * troff: Pass a non-zero argument to one of these rather than
  3991. printing a warning directly.
  3992. Sat Aug 11 09:02:21 1990 James Clark (jjc at yquem)
  3993. * troff: Consistently use symbol::is_null.
  3994. * troff/dictionary.h: Move some inline functions into
  3995. dictionary.c.
  3996. * troff/request.h: Move inline functions into input.c.
  3997. (request_or_macro::invoke): Make it pure.
  3998. * troff/input.c, troff/reg.h: New class `constant_int_reg'.
  3999. * troff/input.c (init_input_requests): Use class constant_int_reg.
  4000. (class compatible_reg): Deleted.
  4001. * troff/div.c (init_div_requests): Use class constant_int_reg.
  4002. (class last_post_line_extra_space_reg): Deleted.
  4003. * troff/env.c (tab_character): Don't change the tab character if
  4004. we get an invalid argument.
  4005. (hyphen_char): Similarily.
  4006. * troff/reg.c (alter_format): Check that nm is not null.
  4007. * Makefile, groff.sh: Make it possible to customize the commands
  4008. used for printing PostScript and dvi files. Also make it possible
  4009. to customize the path used by groff.sh.
  4010. * eqn/eqn.y: Make `left' right associative.
  4011. Fri Aug 10 18:20:39 1990 James Clark (jjc at yquem)
  4012. * pic/pic.h: Added definition of M_SQRT2 for those systems that
  4013. don't have it.
  4014. * pic/pic.h: Removed definition of INT_MAX.
  4015. * troff/node.c (italic_corrected_node::vertical_extent): Omit
  4016. `return'.
  4017. * troff/input.c (token::next): Handle \R like \n.
  4018. Tue Aug 7 09:46:33 1990 James Clark (jjc at yquem)
  4019. * ps/tmac.pc (PSPIC): Simplify.
  4020. * troff/env.c (tab_stops::to_string):
  4021. * pic/pic.y (object_type_name):
  4022. * pic/troff.c (simple_output::line):
  4023. * pic/tex.c (tex_output::spline):
  4024. * pic/object.c (object_spec::make_object):
  4025. * tbl/main.c (process_data): Add cases to switch statements to
  4026. avoid cfront warnings. (Some of these are spurious, since the
  4027. switch already has a default case.)
  4028. * ps/tmac.ps (PSPIC): Reformatted. Prefix all local names with
  4029. `ps-'. Don't test systat; instead check number of arguments to
  4030. ps-bb.
  4031. Mon Aug 6 00:13:07 1990 James Clark (jjc at yquem)
  4032. * macros/tmac.e: Do not decrease the page offset by 0.5i.
  4033. * ps/ps.c (ps_printer::ps_printer): Use mktemp instead of tempnam.
  4034. Unlink the file as soon as we have opened it, so that we don't
  4035. have to bother with signal handlers.
  4036. (handler): Deleted.
  4037. (fatal_error_exit): Deleted.
  4038. (main): Don't call signal.
  4039. * dvi/tfmtodit.c: Add -k option so that kerns with the skewchar
  4040. can be ignored.
  4041. * dvi/devdvi/Makefile: Use the -k option with S and MI.
  4042. * pic/pic.y: If there is a label, or an nth construction before
  4043. the first `.' in the argument to `with', ignore it and generate a
  4044. warning.
  4045. * pic/lex.c (lex_warning): New function.
  4046. * tbl/table.c (table::init_output): In section keep and release
  4047. macro, use 0 indent when diverting and the correct indent when
  4048. rereading.
  4049. * troff/input.c (interpolate_number_format): Do not interpolate
  4050. anything if the number register is not defined.
  4051. * tbl/main.c (process_data): Don't add entry when col >= ncolumns.
  4052. Sat Aug 4 08:12:05 1990 James Clark (jjc at yquem)
  4053. * ps/devps/prologue (PICTURE): Set components of graphics state to
  4054. their default values.
  4055. * ps/devps/text.enc: Add trademark
  4056. * ps/devps/textmap: Add names for club, spade, heart, diamond,
  4057. carriagereturn, suchthat. Use Upsilon1 rather than Upsilon.
  4058. * ps/devps/symbolchars: Add names for summation and product.
  4059. * dvi/devdvi/texsy.map: Add names for club, spade, heart, diamond,
  4060. suchthat. Add pp. Add upper-case letters.
  4061. * xditview/libXdvi/DviChar.c: Add names for club, spade, heart,
  4062. diamond, carriagereturn, suchthat. Use Upsilon1 rather than
  4063. Upsilon.
  4064. * dvi/devdvi/texsy.map: Rename lA (left angle bracket) to la, and
  4065. rA (right angle bracket) to ra. Introduce names for double-headed
  4066. arrows and double-barred arrows: <>, va, lA, rA, hA, uA, dA, vA.
  4067. * ps/devps/textmap: Likewise for ps device.
  4068. * xditview/libXdvi/DviChar.c: Likewise for X100 and X75 devices.
  4069. * tty/devascii/R.proto: Rename lA to la and rA to ra.
  4070. * tty/devascii/R.proto: Likewise.
  4071. * tty/tmac.tty: Provide definitions for \(<>, \(lA, \(rA, \(hA,
  4072. \(uA, \(dA.
  4073. * eqn/delim.c: In delim_table, rename \(lA to \(la and \(rA to \(ra.
  4074. * xditview/tmac.X: Add definitions for \(fi \(fl \(ff \(Fi \(Fl.
  4075. * eqn/lex.c: Added definitions of `approx', `grad' and `del' to
  4076. def_table.
  4077. Fri Aug 3 09:59:27 1990 James Clark (jjc at yquem)
  4078. * troff/div.c (when_request): Use symbol::is_null rather than
  4079. has_arg to determine whether we have an argument.
  4080. (change_trap): Remove the trap if we get an invalid number. Give
  4081. an error if we don't get at least the macro name.
  4082. (diversion_trap): Remove trap if we get an invalid name or number.
  4083. * troff/env.c (environment_switch): Pop if we get an invalid
  4084. symbol or numeric expression.
  4085. * troff/input.c (do_define_macro): If EOF is encoutered while
  4086. defining the macro, do tok.next() before returning.
  4087. * troff/token.h (has_arg): Move definition from here, to ...
  4088. * troff/input.c (has_arg): ... here
  4089. * troff/env.c (space_size): Do nothing if we get an invalid argument.
  4090. * troff/input.c (shift): Likewise.
  4091. * pic/lex.c (get_token_after_dot): Accept `.center' as a synonym
  4092. for `.c'.
  4093. * pic/troff.c (troff_output::start_picture): Comment out calls to
  4094. `..'.
  4095. * eqn/main.c (do_file): Subtract 1 from current_lineno if
  4096. interpret_lf_args succeeds.
  4097. * eqn/main.c (do_file): Don't recognize delimiter if preceded by
  4098. \\. This avoids problems with \$N.
  4099. * groff.sh: Pass -C to preprocessors.
  4100. * lib/lf.c (interpret_lf_args): Be more flexible.
  4101. * tbl/main.c (main): Add -C option.
  4102. (table_input::get): Do not recognize TE if followed by character
  4103. other than a space or newline unless -C option given.
  4104. (process_input_file): Likewise for lf, TS.
  4105. (process_data): Likewise for lf in text blocks.
  4106. * eqn/main.c (main): Add -C option.
  4107. (do_file): Don't recognize EQ, EN or lf if followed by character
  4108. other than space or newline unless -C option given.
  4109. * eqn/lex.c (file_input::read_line): Similarily.
  4110. * eqn/eqn.h: Declare compatible_flag.
  4111. * etc/soelim.c (main): Add -C option.
  4112. (interpret_lf_args): Use version in libgroff.
  4113. (do_file):
  4114. * pic/main.c (main): Add -C option, which sets compatible_flag.
  4115. (top_input::get), (top_input::peek): If -C option not given,
  4116. do not recognize .PS/.PE/.PF/.lf if followed by a character
  4117. other than space or newline.
  4118. * pic/lex.c (file_input::read_line): Similarily.
  4119. * pic/pic.h: Add declaration of compatible_flag.
  4120. Thu Aug 2 11:11:27 1990 James Clark (jjc at yquem)
  4121. * ps/tmac.ps (PSPIC): Avoid use of `echo -n'.
  4122. * troff/node.c, troff/node.h: Add `asciify' methods to classes
  4123. derived from node. New class space_char_hmotion_node.
  4124. * troff/input.c (asciify_macro): New function.
  4125. * troff/input.c (init_input_requests): New request `asciify' bound
  4126. to asciify_macro.
  4127. * macros/mm.diff: New file.
  4128. * Makefile: In install.mm target use `patch' to apply
  4129. macros/mm.diff.
  4130. * troff/input.c (macro::print_size): Just print the size in bytes.
  4131. * troff/div.c (return_request): Correct the argument
  4132. interpretation.
  4133. Wed Aug 1 12:38:36 1990 James Clark (jjc at yquem)
  4134. * troff/node.h (class composite_node): Add sz member.
  4135. * troff/node.c (composite_node::size): Return sz.
  4136. * troff/input.c (macro_to_node): Use the initial size in the
  4137. environment as the size of the composite_node.
  4138. * troff/node.c (node::zero_width_tprint): Provide a reasonable
  4139. default.
  4140. Tue Jul 31 10:07:10 1990 James Clark (jjc at yquem)
  4141. * troff/div.c (change_trap): If we get a bad number expression,
  4142. do nothing.
  4143. Mon Jul 30 10:30:49 1990 James Clark (jjc at yquem)
  4144. * lib/matherr.c (matherr): Define this only if math.h defines
  4145. TLOSS.
  4146. Sun Jul 29 10:34:27 1990 James Clark (jjc at yquem)
  4147. * troff/div.c (macro_diversion::distance_to_next_trap): If there
  4148. no diversion trap return vunits(INT_MAX - vresolution).
  4149. Sat Jul 28 14:28:14 1990 James Clark (jjc at yquem)
  4150. * troff/input.c (do_zero_width): New implementation that doesn't
  4151. use a temporary environment. Use instead:
  4152. (token::add_to_node_list): New function.
  4153. * troff/env.c (environment::get_prev_char_height),
  4154. (environment::get_prev_char_height),
  4155. (environment::get_prev_char_skew): New functions.
  4156. (environment::get_prev_char): New function.
  4157. (environment::get_prev_char_width): Change to use get_prev_char.
  4158. (init_env_request): Implement new registers .cht, .cdp, .csk.
  4159. * eqn/sqrt.c (sqrt_box::output): Don't rely upon the argument to
  4160. \Z being processed in a separate environment.
  4161. Fri Jul 27 10:21:25 1990 James Clark (jjc at yquem)
  4162. * tbl/table.c: Removed TABLE_BOTTOM_REG.
  4163. * tbl/table.c (table::init_output): In the section release macro,
  4164. give a warning message if the section won't fit on one page.
  4165. * tbl/table.c (table::do_top): Emit table keep only if table is
  4166. boxed.
  4167. (table::do_bottom): Likewise for table release.
  4168. (table::table), (table::add_vertical_rule): Remove reference to
  4169. keep member.
  4170. * tbl/table.h: Remove keep member.
  4171. * tbl/table.c: New register SUPPRESS_BOTTOM_REG. In
  4172. SECTION_RELEASE_MACRO, if there's not enough space before the next
  4173. trap to output the diversion, call T# ourselves, set
  4174. SUPPRESS_BOTTOM_REG to 1, spring the trap, then set
  4175. SUPPRESS_BOTTOM_REG back to 0. In T#, do nothing if
  4176. SUPPRESS_BOTTOM_REG is non-zero. In T#, always mark the current
  4177. vertical position and return to it before turning traps on again.
  4178. Thu Jul 26 02:54:32 1990 James Clark (jjc at yquem)
  4179. * troff/node.c, troff/node.h: In classes derived from node,
  4180. replace prev_char_width method by last_char_node method.
  4181. * troff/env.c (environment::get_prev_char_width): Use
  4182. node::last_char_node rather than node::get_prev_char_width.
  4183. * Makefile: Added comment about -fno-inline on 68030-based
  4184. Apollos.
  4185. * troff/reg.c (number_format_to_ascii), eqn/delim.c (DELIM_TABLE_SIZE),
  4186. tty/tty.c (tty_font::load_tty_font), dvi/tfmtodit.c (main): Cast
  4187. expressions using sizeof to int.
  4188. * dvi/dvi.c (dvi_font::handle_x_command): Avoid long->int warnings.
  4189. * macros/tmac.e (TS): Don't move @f back past the current
  4190. position.
  4191. Wed Jul 25 09:11:08 1990 James Clark (jjc at yquem)
  4192. * ps/ps.c (main): Buffer stderr.
  4193. * dvi/dvi.c (main): Likewise.
  4194. * tty/tty.c (main): Likewise.
  4195. * ps/ps.c (ps_printer::do_import): Improve error handling.
  4196. * troff/input.c (abort_request): Use asciify.
  4197. * driver/printer.h (printer::draw), driver/printer.c (printer::draw),
  4198. ps/ps.c (ps_printer::draw), dvi/dvi.c (dvi_printer::draw): Make
  4199. type of first argument int rather than char. This works around a
  4200. bug on the 68030 based Apollo using g++ 1.37.1.
  4201. * tbl/table.h (class table): Add `keep' member.
  4202. * tbl/table.c (table::table): Initialize `keep'.
  4203. (table::add_vertical_rule): Set `keep' to 1.
  4204. (table::do_top): Only emit table keep macro is `keep' is non-zero.
  4205. (table::do_bottom): Likewise for table release macro.
  4206. (table::do_row): Emit section keep macro even if the row is 0.
  4207. Tue Jul 24 08:35:07 1990 James Clark (jjc at yquem)
  4208. * macros/tmac.e (@C): Preserve the font family across the change
  4209. in environments.
  4210. Mon Jul 23 10:15:23 1990 James Clark (jjc at yquem)
  4211. * lib/font.c: Initialize font::hor and font::vert to 1.
  4212. (font::load_desc): Check the values of font::hor and font::vert.
  4213. * lib/lib.h: Added definition of INT_DIGITS. Fix it so that it can
  4214. be included in a C compilation.
  4215. (iftoa): Use INT_DIGITS. Include lib.h.
  4216. (itoa): Likewise.
  4217. (as_string): Likewise.
  4218. * tbl/table.c: Removed definition of INT_DIGITS.
  4219. * eqn/box.c (box::top_level): Use INT_DIGITS + 1 instead of 12.
  4220. * troff/input.c (input_input_requests): Likewise.
  4221. * ps/ps.c (make_encoding_name): Likewise.
  4222. (ps_printer::set_style): Likewise.
  4223. (ps_output::put_number): Use 1 + INT_DIGITS + 1 instead of 12.
  4224. * tty/devascii/R.proto: Map fm onto '.
  4225. * tty/devlatin1/R.proto: Likewise.
  4226. Sat Jul 21 12:45:07 1990 James Clark (jjc at yquem)
  4227. * tbl/table.c: Use ' instead of DELIMITER_CHAR in places where the
  4228. argument to \w is at a different input level.
  4229. * tbl/table.c (table::init_output): Define a new macro
  4230. REPEATED_VPT_MACRO, like vpt but if in a diversion also
  4231. transparently outputs itself.
  4232. (table::define_bottom_macro): Use REPEATED_VPT_MACRO instead of
  4233. vpt.
  4234. (table::do_row): Likewise.
  4235. * tbl/table.c (vertical_rule::print): Prefix the .sp -1 line with
  4236. TRANSPARENT_STRING_NAME.
  4237. * tbl/table.c (table::init_output): In the table release macro
  4238. print an error message and don't produce any output if after
  4239. issuing the need request the table still will not fit. Also
  4240. remove the diversion after bringing it back.
  4241. * tbl/table.c (table::init_output): Define a new macro
  4242. REPEATED_MARK_MACRO, like mk but if in a diversion also
  4243. transparently outputs itself.
  4244. (table::do_row): Mark row_top_reg using REPEATED_MARK_MACRO. This
  4245. is necessary because .TH might not call .T#.
  4246. (table::do_top): Likewise TOP_REG.
  4247. (table::define_bottom_macro): If TOP_REG is no longer valid, use
  4248. #T - DOUBLE_LINE_SEP rather than #T. This is necessary because the
  4249. table header might contain just the two top rules.
  4250. Fri Jul 20 10:51:42 1990 James Clark (jjc at yquem)
  4251. * troff/div.c: Implement new request `ptr' to print all traps.
  4252. * troff/env.c (init_env_requests): Implement `.tabs' reg with
  4253. init_string_env_reg.
  4254. * troff/env.c (class tab_reg): Deleted.
  4255. Thu Jul 19 12:07:16 1990 James Clark (jjc at yquem)
  4256. * troff/div.c: New number register .pn returns the number of the
  4257. next page as set by the pn request.
  4258. * macros/tmac.an: Redid headers and footers. Number each manual
  4259. entry starting from 1 unless \nC is > 0, like Sun. Added an
  4260. optional 5th argument to .TH which specifies the manual name and
  4261. appears in the center of the header. Understand the X, P and D
  4262. registers like Sun.
  4263. Wed Jul 18 10:23:31 1990 James Clark (jjc at yquem)
  4264. * troff/env.c (init_env_requests): New number register `.lt' to
  4265. return the title length.
  4266. * troff/node.h (class transparent_dummy_node): New class.
  4267. * troff/node.c (class transparent_dummy_node): Provide member
  4268. functions.
  4269. * troff/env.c (interrupt): Add a transparent_dummy_node, rather
  4270. than a dummy_node.
  4271. * troff/input.c (token::next): New escape sequence \).
  4272. * troff/input.c (get_copy): Recognize \) in copy mode.
  4273. * troff/input.c (input_stack::clear): New function.
  4274. * troff/input.c (exit_request): Use input_stack::clear.
  4275. * troff/token.h: Removed TOKEN_NO_PRINT_CHAR.
  4276. * troff/input.c (token::process): Removed case TOKEN_NO_PRINT_CHAR.
  4277. * troff/env.c: Move set_page_character to input.c. Move
  4278. page_character to input.c also.
  4279. * troff/env.c (title): Split off the reading of the parts of the
  4280. title into read_title_parts.
  4281. * troff/input.c (read_title_parts): New function. Check the
  4282. input_level when testing whether a token matches the delimiter.
  4283. * troff/input.c (exit_request): New function.
  4284. * troff/input.c (init_input_requests): Bind ex request to
  4285. exit_request rather than exit_groff.
  4286. * troff/input.c (exit_groff): Call tok.next() before
  4287. process_input_stack().
  4288. Mon Jul 16 09:47:23 1990 James Clark (jjc at yquem)
  4289. * troff/env.c: ifdef widow control support on WIDOW_CONTROL.
  4290. * troff/env.h: ditto.
  4291. * troff/input.c: ditto.
  4292. * troff/env.c (environment::is_empty): Test pending_lines.
  4293. * troff/env.c (environment::have_pending_lines): Removed.
  4294. * troff/input.c: Add request to flush pending lines from the
  4295. environment.
  4296. * troff/env.c, troff/env.h: Add automatic widow control feature.
  4297. * troff/input.c (exit_groff): Do process_input_stack() after
  4298. do_break() but before setting exit_flag to 2.
  4299. * troff/input.c: Remove FLUSH_PENDING_LINES and
  4300. TOKEN_FLUSH_PENDING_LINES. Instead, flush pending lines from
  4301. environment after END_TRAP token seen, but only if there aren't
  4302. any more traps still unfinished.
  4303. * troff/token.h: Remove TOKEN_FLUSH_PENDING_LINES.
  4304. Sun Jul 15 10:50:08 1990 James Clark (jjc at yquem)
  4305. * troff/env.c: Rename the `retain_size' member of class
  4306. pending_output_line to `no_fill'.
  4307. * troff/env.c (title): When the line is output, make the
  4308. retain_size argument !fill.
  4309. * troff/node.h: Add `hyphenated' member to struct breakpoint.
  4310. * troff/node.c (space_node::get_breakpoints),
  4311. (dbreak_node::get_breakpoints): Fill this in.
  4312. * troff/env.c: Allow specification of maximum number of
  4313. consecutive hyphenated lines.
  4314. * troff/env.c (environment::is_empty): Add test for !current_tab.
  4315. Sat Jul 14 11:23:01 1990 James Clark (jjc at yquem)
  4316. * troff/env.c (environment::hyphenate_line): Don't completely give
  4317. up if the word is not to be hyphenated; continue so that breaks
  4318. can be made at break_char_node's.
  4319. * lib/lib.h: Only define INT_MAX if it's not already defined;
  4320. undef INT_MIN if it's already defined.
  4321. * Makefile: Make it easy to define CFRONT_ANSI_BUG.
  4322. * lib/lib.h: If CFRONT_ANSI_BUG is defined, cast INT_MIN to long.
  4323. This works around a bug in AT&T C++ 2.0 used with an ANSI C
  4324. compiler.
  4325. * macros/tmac.an (an-header): Set no-space mode.
  4326. * macros/tmac.an (TH): Start a new page if necessary.
  4327. * Started using ChangeLog at version 0.4.
  4328. Local Variables:
  4329. version-control: never
  4330. coding: latin-1
  4331. End: