/contrib/groff/ChangeLog.117

https://bitbucket.org/freebsd/freebsd-head/ · Unknown · 2190 lines · 1671 code · 519 blank · 0 comment · 0 complexity · 9913c0c722712863550cee0dc4c07d20 MD5 · raw file

Large files are truncated click here to view the full file

  1. Version 1.17.2 released
  2. =======================
  3. 2001-07-07 Werner LEMBERG <wl@gnu.org>
  4. * src/utils/indxbib/indxbib.cc (main): Change type of `name_max'
  5. to size_t.
  6. 2001-07-06 Ruslan Ermilov <ru@FreeBSD.org>
  7. * tmac/doc.tmac (Rv): Make `Rv' really not parseable.
  8. Fix synopsis.
  9. * tmac/groff_mdoc.man: Fix synopsis.
  10. 2001-07-05 Ruslan Ermilov <ru@FreeBSD.org>
  11. * tmac/doc.tmac (doc-inset-list, doc-hang-list, doc-ohang-list):
  12. Restore `doc-Pa-font'.
  13. 2001-07-04 Werner LEMBERG <wl@gnu.org>
  14. * src/utils/indxbib/dirnamemax.c: Moved to ...
  15. * src/libs/libgroff/maxfilename.cc: Here.
  16. s/dir_name_max/file_name_max/.
  17. Add copyright.
  18. * src/include/lib.h: Add file_name_max.
  19. * src/utils/indxbib/indxbib.cc: Updated.
  20. * src/utils/indxbib/Makefile.sub, src/libs/libgroff/Makefile.sub:
  21. Updated.
  22. * src/libs/libgroff/tmpfile.cc (TMPFILE_PREFIX) [__MSDOS__]: Define
  23. as empty.
  24. (xtmpfile) [_MSC_VER]: Removed -- MSVC has mktemp().
  25. * src/preproc/html/pre-html.cc (PAGE_TEMPLATE, PS_TEMPLATE,
  26. REGION_TEMPLATE): New macros.
  27. (createAllPages, makeTempFiles): Use them.
  28. Include `nonposix.h'.
  29. (html_system): New function.
  30. (createAllPages, createImage): Use it.
  31. Use EXE_EXT.
  32. * tmac/www.tmac: Fix typos.
  33. 2001-07-03 Werner LEMBERG <wl@gnu.org>
  34. * tmac/www.tmac: Disable hyphenation in normal text only if output
  35. device is html.
  36. (URL, FTP, MAILTO): Disable hyphenation of actual URL with `\%'.
  37. * tmac/groff_mwww.man, NEWS: Updated.
  38. 2001-07-03 Gaius Mulley <gaius@glam.ac.uk>
  39. * tmac/www.tmac (.IMAGE): Add fourth parameter to specify vertical
  40. image location.
  41. 2001-07-02 Ruslan Ermilov <ru@FreeBSD.org>
  42. * tmac/doc-common, tmac/doc.tmac (doc-display-ft-stack,
  43. doc-display-ps-stack): Implement font and font size stack for
  44. displays.
  45. 2001-07-02 Werner LEMBERG <wl@gnu.org>
  46. * REVISION: Increased to 2.
  47. * src/roff/troff/input.cc (read_size): Fix special case `\s[0]'.
  48. * src/groff/grog/grog.pl (process): Handle `Oo' and `Oc' not at the
  49. beginning of a line.
  50. * src/groff/grog/grog.sh: Ditto.
  51. 2001-06-29 Peter Marquardt <wwwutz@molgen.mpg.de>
  52. * src/preproc/eqn/neqn.sh: Put `export' keyword in a new line to
  53. make it portable.
  54. 2001-06-27 Werner LEMBERG <wl@gnu.org>
  55. Fix problems with preprocessor string for `man' program.
  56. * *.man: Don't use `s' in preprocessor string -- it doesn't exist.
  57. Updated/added copyright.
  58. Moved Emacs's local variable to identify nroff mode to the end of
  59. the file; add local variable if missing.
  60. 2001-06-26 Andras Salamon <andras@cs.wits.ac.za>
  61. * aclocal.m4: Replace AC_LANG_SAVE + AC_LANG_CPLUSPLUS with
  62. AC_LANG_PUSH(C++) and AC_LANG_RESTORE with AC_LANG_POP(C++).
  63. * configure: Regenerated.
  64. 2001-06-25 Andras Salamon <andras@cs.wits.ac.za>
  65. * aclocal.m4 (GROFF_PAGE): Fix page detection code.
  66. * configure: Regenerated.
  67. 2001-06-24 Werner LEMBERG <wl@gnu.org>
  68. * doc/homepage.ms: Don't include arkup.tmac (which no longer exists)
  69. but www.tmac.
  70. * doc/pic.ms: Fix typos.
  71. Version 1.17.1 released
  72. =======================
  73. 2001-06-21 Golubev I. N. <gin@mo.msk.ru>
  74. * aclocal.m4 (GROFF_NEED_DECLARATION): Fix inclusion of strings.h.
  75. * configure: Updated.
  76. 2001-06-20 Gaius Mulley <gaius@glam.ac.uk>
  77. * src/roff/preproc/html/pre-html.cc (make_message): Fix incorrect
  78. image names.
  79. * src/roff/troff/dic.cc (blank_line): Add html tag.
  80. 2001-06-19 Gaius Mulley <gaius@glam.ac.uk>
  81. * src/roff/troff/input.cc (do_suppress): Fix typo.
  82. 2001-06-18 Gaius Mulley <gaius@glam.ac.uk>
  83. Added two new options (-D and -I) to specify image names and a
  84. subdirectory to place the images in.
  85. Change syntax from \\Ox to \\O[x].
  86. * src/devices/grohtml/post-html.cc (main): Add options.
  87. (usage): Updated.
  88. * src/preproc/html/pre-html.cc: Include `stdarg.h'.
  89. Use `NULL' instead of `0' for null string pointers.
  90. (MAX_RETRIES): New macro.
  91. (lengthOfintToStr, intToStr, make_message): New functions.
  92. (makeFileName): Make function static.
  93. Implement -D and -I options.
  94. (checkImageDir): New function.
  95. (write_end_image, write_start_image): Use new syntax of \O.
  96. (createAllPages, removeAllPages): Implement -D and -I options. Use
  97. make_message().
  98. (createImage): Use make_message().
  99. (addps4html): Add guard for malloc().
  100. (usage, scanArguments): Updated.
  101. (makeTempFiles): Use mkstemp().
  102. (removeTempFiles): Use unlink().
  103. (findPrefix): Add guard for malloc().
  104. (main): Updated.
  105. * src/roff/troff/input.cc (get_delim_file_name): New function to
  106. parse \O.
  107. (do_suppress): Updated to parse new syntax.
  108. * src/devices/grohtml/grohtml.man: Updated.
  109. * tmac/www.tmac: Updated to new syntax.
  110. * NEWS: Updated.
  111. 2001-06-15 Werner LEMBERG <wl@gnu.org>
  112. * src/roff/grog/Makefile.sub: Remove NAMEPREFIX.
  113. * src/devices/grohtml/grohtml.man: Minor improvements.
  114. 2001-06-14 Werner LEMBERG <wl@gnu.org>
  115. * src/preproc/html/Makefile.sub: Remove NAMEPREFIX.
  116. 2001-06-11 Werner LEMBERG <wl@gnu.org>
  117. * man/roff.man, mann/groff.man: Use '\" instead of .\" in the first
  118. line to specify preprocessor options -- mandb 2.3.1 only recognizes
  119. the former.
  120. * src/preproc/grn/grn.man: Add proper '\" string.
  121. 2001-06-11 OKAZAKI Tetsurou <okazaki@be.to>
  122. * test-groff: Don't use PATH but GROFF_BIN_PATH.
  123. 2001-06-08 Werner LEMBERG <wl@gnu.org>
  124. Updated to autoconf 2.50.
  125. * configure.in: Renamed to...
  126. * configure.ac: This.
  127. * aclocal.m4 (AC_OUTPUT_MAKE_DEFS): Removed.
  128. (GROFF_OS390): Updated.
  129. * configure: Regenerated.
  130. 2001-05-18 Werner LEMBERG <wl@gnu.org>
  131. * src/roff/troff/env.c, src/roff/troff/env.h,
  132. src/roff/troff/input.cc, src/roff/troff/troff.man: Undo `ss' change
  133. from 2000-12-21.
  134. 2001-05-17 Jeffrey Friedl <jfriedl@yahoo-inc.com>
  135. * src/roff/troff/input.cc (read_size): Fix special case `\s0'.
  136. 2001-05-16 Werner LEMBERG <wl@gnu.org>
  137. * src/roff/troff/input.cc (read_size): Emit warning if value becomes
  138. less than or equal zero; set it to 1 then.
  139. * src/roff/troff/node.h (node::node): Initialize `last'.
  140. 2001-05-08 Werner LEMBERG <wl@gnu.org>
  141. * tmac/an-old.tmac: Make predefined strings work in compatibility
  142. mode.
  143. Add troff version guard.
  144. * tmac/doc.tmac: Simplify version guard.
  145. 2001-05-07 Werner LEMBERG <wl@gnu.org>
  146. The .ns and .rs requests are now honoured not only in the top-level
  147. but in all diversions (similar to UNIX troff).
  148. This change is based on a patch from Tadziu Hoffmann
  149. <hoffmann@usm.uni-muenchen.de>.
  150. * src/roff/troff/div.h (diversion): Add `no_space_mode' member.
  151. (top_level_diversion): Remove `no_space_mode' member.
  152. * src/roff/troff/div.cc (diversion::diversion,
  153. top_level_diversion::top_level_diversion): Updated.
  154. (macro_diversion::output): Reset `no_space_mode'.
  155. (no_space, restore_spacing): Use `curdiv' unconditionally.
  156. (space_request, blank_line): Check `curdiv->no_space_mode'.
  157. (no_space_mode_reg::get_value, no_space_mode_reg::get_string): Use
  158. `curdiv' unconditionally.
  159. * NEWS, src/roff/troff/troff.man, man/groff.man, doc/groff.texinfo:
  160. Updated.
  161. 2001-05-06 Werner LEMBERG <wl@gnu.org>
  162. Added two new requests `de1' and `am1' which are similar to `de' and
  163. `am' with the difference that compatibility mode is saved on entry,
  164. switched off during macro execution, and restored on exit.
  165. * src/roff/troff/input.h: Added two new special characters
  166. (COMPATIBLE_SAVE, COMPATIBLE_RESTORE).
  167. * src/roff/troff/input.cc (input_iterator): Added two member
  168. functions `save_compatible_flag' and `get_compatible_flag'.
  169. (input_stack): Ditto.
  170. (string_iterator): Ditto. Also add private member
  171. `saved_compatible_flag'.
  172. (token::next): Use COMPATIBLE_SAVE and COMPATIBLE_RESTORE.
  173. (calling_mode): New enumeration.
  174. (do_define_macro): Use it. Insert COMPATIBLE_SAVE and
  175. COMPATIBLE_RESTORE at the beginning and end of macro, respectively.
  176. (define_macro, define_indirect_macro, append_macro, ignore): Use
  177. `calling_mode'.
  178. (define_nocomp_macro, append_nocomp_macro): New functions.
  179. (init_input_requests): Updated.
  180. (do_request): Rename local variable `saved_compatible_flag' to
  181. `old_compatible_flag'.
  182. * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
  183. * tmac/an-old.tmac: Use `de1' instead of `de' request for all
  184. public and trap-invoked macros. As a consequence, the man macros
  185. work in compatibility mode also.
  186. 2001-05-06 Solar Designer <solar@openwall.com>
  187. * Makefile.in: Use $(mandir).
  188. 2001-05-06 Alexios Zavras <zvr@pobox.com>
  189. * src/utils/afmtodit/afmtodit.pl: Fix serious typo.
  190. 2001-05-05 Werner LEMBERG <wl@gnu.org>
  191. Added `.ns' number register: Returns 1 in no-space mode (if in
  192. top-level diversion), 0 otherwise.
  193. * src/roff/troff/div.cc (no_space_mode_reg): New class.
  194. (init_div_requests): Updated.
  195. * NEWS, src/roff/troff/troff.man, man/groff.man, doc/groff.texinfo:
  196. Document it.
  197. 2001-05-04 Werner LEMBERG <wl@gnu.org>
  198. * src/roff/nroff/nroff.man: Improved documentation (especially
  199. locales).
  200. 2001-05-02 Werner LEMBERG <wl@gnu.org>
  201. Added `brp' request: This is \p as a request.
  202. * src/roff/troff/env.cc (environment::do_break): Add parameter
  203. `spread'.
  204. (do_break_request): New function (was `break_request').
  205. (break_request): Calls `do_break_request'.
  206. (break_spread_request): New; calls `do_break_request'.
  207. (init_env_requests): Updated.
  208. * src/roff/troff/env.h: Updated.
  209. * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
  210. * REVISION: Increased to 1.
  211. * win32-diffs: Updated.
  212. 2001-05-01 Werner LEMBERG <wl@gnu.org>
  213. * tmac/an-old.tmac: Fix minor compatibility mode issue.
  214. * tmac/troffrc-end: Make it really work in compatibility mode.
  215. 2001-04-27 Werner LEMBERG <wl@gnu.org>
  216. * src/utils/lkbib/lkbib.cc: Switch inclusion order of stdio.h and
  217. stdlib.h.
  218. 2001-04-22 Werner LEMBERG <wl@gnu.org>
  219. * src/libs/libgroff/getopt.c, src/include/getopt.h: Updating to
  220. latest versions from glibc CVS archive.
  221. * MORE.STUFF: Updated, using a patch from Kees Zeelenberg
  222. <c.zeelenberg@hccnet.nl>.
  223. 2001-04-21 Werner LEMBERG <wl@gnu.org>
  224. * configure.in: Move check for mkstemp() to...
  225. * aclocal.m4 (GROFF_MKSTEMP): This new function.
  226. * configure: Regenerated.
  227. * src/include/groff-getopt.h: Don't use variable names in
  228. declarations.
  229. * src/devices/grohtml/html-chars.h: Removed. It isn't used.
  230. * src/devices/grohtml/Makefile.sub,
  231. src/devices/grohtml/post-html.cc: Updated.
  232. 2001-04-21 Albert Chin-A-Young <china@thewrittenword.com>
  233. * configure.in: Add special check for mkstemp().
  234. * src/libs/libgroff/tmpfile.cc: Use it.
  235. * src/utils/indxbib/indxbib.cc: Ditto.
  236. * src/utils/pfbtops/pfbtops.c (main): Don't use C++ comment style.
  237. * src/devices/grolbp/lbp.h (lbpprintf, lbpputs, vdmprintf): Use
  238. `const'.
  239. 2001-04-20 Bruce Lilly <blilly@erols.com>
  240. `Version_string' as C++ object was not visible to linker from C
  241. object files.
  242. Add `const' to `Version_string'.
  243. * src/utils/pfbtops/pfbtops.c (main), src/roff/groff/groff.cc
  244. (main), src/roff/troff/input.cc (main), src/preproc/tbl/main.cc
  245. (main), src/preproc/pic/main.cc (main), src/preproc/eqn/main.cc
  246. (main), src/preproc/grn/main.cc (main), src/preproc/html/pre-html.cc
  247. (scanArguments), src/preproc/refer/refer.cc (main),
  248. src/preproc/soelim/soelim.cc (main), src/devices/grotty/tty.cc
  249. (main), src/devices/grodvi/dvi.cc (main), src/devices/grolj4/lj4.cc
  250. (main), src/devices/grohtml/post-html.cc (main),
  251. src/devices/grolbp/lbp.cc (main), src/utils/tfmtodit/tfmtodit.cc
  252. (main), src/utils/hpftodit/hpftodit.cc (main),
  253. src/utils/lookbib/lookbib.cc (main), src/utils/indxbib/indxbib.cc
  254. (main), src/utils/lkbib/lkbib.cc (main),
  255. src/utils/addftinfo/addftinfo.cc (main): Implement it.
  256. * src/roff/groff/pipeline.c: Add _UWIN.
  257. * src/include/nonposix.h: Ditto.
  258. 2001-04-20 Werner LEMBERG <wl@gnu.org>
  259. * src/include/lib.h: Use HAVE_STRERROR.
  260. * src/roff/groff/pipeline.c: Ditto.
  261. * src/preproc/html/pre-html.cc: Remove declaration of `strerror'.
  262. * src/libs/libgroff/Makefile.sub (version.cc): Add `extern "C"'.
  263. * src/utils/pfbtops/pfbtops.c: Add copyright notice.
  264. * win32-diffs: Updated.
  265. * src/utils/hpftodit/hpftodit.cc (read_map): Fix compiler warning.
  266. 2001-04-19 Werner LEMBERG <wl@gnu.org>
  267. * src/preproc/html/pre-html.cc (scanArguments): Use `troff_command'
  268. instead of hardwired `"troff"'.
  269. (char_buffer::read_file): Remove unused variables.
  270. (char_buffer::write_file_troff): Ditto.
  271. (char_buffer::write_file_html): Ditto.
  272. (generateImages): Ditto.
  273. (abs): Removed.
  274. * src/utils/addftinfo/addftinfo.cc (main): Fix compilation problem.
  275. * src/include/lib.h: Don't include `groff-getopt.h' for UWIN.
  276. * src/libs/libgroff/font.cc (font::load_desc): Fix compiler warning.
  277. * src/libs/libbib/index.cc (index_search_item_iterator::get_tag,
  278. index_search_item::search1): Ditto.
  279. * src/roff/troff/node.h (width_list): Reorder members.
  280. * src/roff/troff/input.cc (do_define_macro): Fix compiler warning.
  281. (lookup_warning): Ditto.
  282. (prepend_string): Commented out.
  283. * src/roff/troff/dictionary.cc (is_good_size): Fix compiler warning.
  284. * src/roff/troff/reg.cc (number_value_to_ascii): Ditto.
  285. * src/preproc/tbl/main.cc (process_format): Ditto.
  286. * src/preproc/pic/pic.y (define_variable, reset, reset_all): Fix
  287. compiler warnings.
  288. * src/preproc/pic/pic.cc: Updated.
  289. * src/preproc/eqn/lex.cc (init_table): Fix compiler warnings.
  290. * src/preproc/eqn/over.cc (over_box::compute_metrics): Ditto.
  291. * src/preproc/refer/command.cc (execute_command): Ditto.
  292. * src/preproc/refer/ref.cc (sortify_title, find_month): Ditto.
  293. * src/preproc/refer/token.cc (lookup_token): Ditto.
  294. * src/preproc/soelim/soelim.cc: Ditto.
  295. * src/preproc/html/pushbackbuffer.cc (ERROR): Ditto.
  296. (isHexDigit): Commented out.
  297. (pushBackBuffer::isString): Remove unused variable.
  298. * src/devices/grops/ps.cc (ps_printer::special): Fix compiler
  299. warning.
  300. * src/devices/grops/psrm.cc (resource_manager::lookup_font,
  301. resource_manager::read_resource_arg, read_one_of, parse_extensions):
  302. Ditto.
  303. * src/devices/grodvi/dvi.cc (dvi_printer::draw): Ditto.
  304. * src/devices/grolj4/lj4.cc (lj4_font::handle_unknown_font_command,
  305. lookup_paper_size): Ditto.
  306. * src/devices/grohtml/post-html.cc (is_subsection): Commented out.
  307. (text_glob, element_list): Reorder members.
  308. * src/devices/grohtml/html-text.cc (html_text::do_pre): Remove
  309. compiler warning.
  310. * src/devices/grohtml/html-text.h (html_text::emit_space): Change
  311. return value to `void'.
  312. * src/devices/grohtml/output.cc (word_list::word_list): Fix order
  313. of initializers.
  314. * src/devices/grohtml/html.h (simple_output::check_newline,
  315. simple_output::space_or_newline, simple_output::enable_newlines):
  316. Add return value.
  317. * src/devices/grolbp/lbp.cc (wp54charset, set_papersize): Remove
  318. compiler warnings.
  319. * src/utils/tfmtodit/tfmtodit.cc (tfm::load, gf::load, main): Ditto.
  320. * src/utils/hpftodit/hpftodit.cc (File::seek, read_symbol_sets,
  321. output_ligatures, output_charset, read_map): Ditto.
  322. * src/utils/lookbib/lookbib.cc (main): Ditto.
  323. * src/utils/indxbib/indxbib.cc (main, fwrite_or_die): Ditto.
  324. (do_file): Fix typo (`=' -> `==').
  325. * src/utils/lkbib/lkbib.cc (main): Remove compiler warning.
  326. * src/utils/addftinfo/addftinfo.cc (main): Ditto.
  327. 2001-04-18 Ruslan Ermilov <ru@FreeBSD.org>
  328. * src/roff/nroff/nroff.sh: Adding -p (pic) and -t (tbl) options.
  329. Fix usage of GROFF_BIN_PATH.
  330. * src/roff/nroff/nroff.man: Updated.
  331. 2001-04-18 Werner LEMBERG <wl@gnu.org>
  332. * NEWS: Fixing typos.
  333. Updated.
  334. Version 1.17 released
  335. =====================
  336. 2001-04-17 Werner LEMBERG <wl@gnu.org>
  337. * tmac/Makefile.sub (install-data): mdoc.local-s is in current
  338. directory, not in $(srcdir).
  339. 2001-04-16 Werner LEMBERG <wl@gnu.org>
  340. * doc/groff.texinfo: More info on conditionals.
  341. 2001-04-15 Werner LEMBERG <wl@gnu.org>
  342. * doc/groff.texinfo: Added some info about groff internals.
  343. * src/roff/troff/node.cc (make_glyph_node): Emit warning message
  344. about missing special character only if the name is non-null.
  345. 2001-04-14 Werner LEMBERG <wl@gnu.org>
  346. Removing the grohtml-old device driver which is now obsolete.
  347. * src/devices/grohtml-old/*: Removed.
  348. * font/devhtml-old/*: Removed.
  349. * src/libs/libgroff/htmlindicate.cc (graphic_start, graphic_end):
  350. Remove comments.
  351. * Makefile.in (CCPROGDIRS, DEVDIRS): Updated.
  352. * test-groff (PATH): Updated.
  353. * tmac/Makefile.sub (NORMALFILES): Updated.
  354. * tmac/an-old.tmac: Remove special code for html-old device.
  355. Replace `html-or-html-old' register with `an-html'.
  356. * tmac/eqnrc: Updated.
  357. * tmac/html-old.tmac: Removed.
  358. * tmac/troffrc, tmac/troffrc-end: Updated.
  359. * tmac/www.tmac: Remove special code for html-old device.
  360. Replace `html-or-html-old' register with `www-html'.
  361. * src/libs/libgroff/tmpfile.cc (remove_tmp_files),
  362. src/libs/libgroff/htmlindicate.cc (graphic_end),
  363. include/htmlindicate.h, src/preproc/grn/*.cc,
  364. src/roff/groff/env.{cc,h}: Remove `void' parameter if used as a
  365. single argument for consistency with rest of source code.
  366. * aclocal.m4, tmac/an-old.tmac: Fix copyright.
  367. 2001-04-13 Ruslan Ermilov <ru@FreeBSD.org>
  368. * src/roff/troff/troff.man: Fixing typos.
  369. 2001-04-13 Werner LEMBERG <wl@gnu.org>
  370. * doc/pic.ms: Fixing many font switches.
  371. * doc/groff.texinfo: Fixes, additions.
  372. * MORE.STUFF: Updated.
  373. 2001-04-12 Gaius Mulley <gaius@glam.ac.uk>
  374. * src/devices/grohtml/grohtml.man: Updated manual page regarding
  375. simple anchor.
  376. * src/preproc/html/pre-html.cc (createImage): Fixed right hand
  377. cropping of images.
  378. (removeTempFiles): New function to tidy up temporary files.
  379. * src/preproc/html/pre-html.cc (main): Calls `removeTempFiles()'.
  380. Many fixes to do with the new inline suppress node and image regions
  381. are much tighter.
  382. * src/devices/grohtml/post-html.cc: New method `is_auto_img'.
  383. (generate_img_src): New function.
  384. (html_printer::do_auto_image): Utilizes it.
  385. (do_heading, do_title): Include inline images within their contents.
  386. (html_printer::begin_page): Tidied up comments that are issued to
  387. the html output file.
  388. (html_printer::do_fill): Fixed so that `.nf' works with fonts other
  389. than courier.
  390. (text_glob::is_br): New method used by do_heading.
  391. * tmac/s.tmac: If -Thtml then emit $1 in .IP rather than its
  392. equivalent diversion.
  393. * src/include/html-strings.h: Altered image tags to reflect the
  394. inline image node.
  395. * src/include/htmlindicate.h (html_end_suppress): Added `is_inline'
  396. parameter.
  397. * src/preproc/eqn/main.cc: Will suppress generation of image tags if
  398. it is already inside a pic image. Only emit tags if the argument
  399. `-Tps:html' is present.
  400. * src/preproc/tbl/main.cc: Changes to reflect additional
  401. `html_end_suppress' parameter.
  402. * src/roff/troff/env.cc: Only emit eol tag if a node has been
  403. emitted since the last eol tag was written.
  404. * src/roff/troff/env.h: New boolean `emitted_node'.
  405. * src/roff/troff/input.cc (do_suppress): Handles extra suppress
  406. nodes \O3, \O4, \O5. No longer use `output_low_mark_miny'.
  407. * src/roff/troff/node.cc (check_charinfo): New method.
  408. (troff_output_file::determine_line_limits): Alterations to limit
  409. checking.
  410. * tmac/www.tmac: Changes to reflect new suppress nodes.
  411. 2001-04-12 Bruno Haible <haible@clisp.cons.org>
  412. * src/devices/grohtml/post-html.cc (html_printer::add_to_sbuf):
  413. Escape the html_glyph in the buffer.
  414. (str_translate_to_html): Output the unescaped escaped_char.
  415. * src/devices/grohtml/html-text.cc (issue_table_begin): Set
  416. `frame=void', not `frame=none'. Add `border=0'.
  417. 2001-04-12 Werner LEMBERG <wl@gnu.org>
  418. * PROBLEMS: Add some words on how to avoid wrapper macros.
  419. 2001-04-11 Blake McBride <blake@florida-software.com>
  420. * src/include/nonposix.h (fileno) [_MSC_VER]: Removed.
  421. 2001-04-11 Werner LEMBERG <wl@gnu.org>
  422. * font/devlbp/Makefile.sub (CLEANADD): Set it.
  423. * tmac/Makefile.sub (CLEANADD): Add tmac.local-s.
  424. * Makefile.in (dist): Don't remove src/xditview/Imakefile, but ...
  425. * Makefile.sub (DISTCLEANFILES): Here.
  426. * libs/libgroff/new.cc: Include `nonposix.h'.
  427. * win32-diffs: Updated.
  428. 2001-04-10 Ruslan Ermilov <ru@FreeBSD.org>
  429. Added skeleton macro for defunct macros.
  430. Updated documentation.
  431. When inside displays, an empty input line warning should be
  432. suppressed. If another macro call is put inside a display,
  433. all subsequent empty lines found in that display caused a
  434. warning to be emitted.
  435. * tmac/doc.tmac (doc-defunct-macro): New macro.
  436. (Db, Ds, Ex, Or, Sf): Reimplemented using this macro.
  437. (doc-restore-global-vars): Fixed typo.
  438. (doc-empty-line): Check the `doc-display-depth' register to
  439. determine whether we are inside display or not.
  440. * tmac/doc-common: Removed `Or' and `Sf' registers.
  441. Moved obsolete `Ds' macro to doc.tmac.
  442. * tmac/groff_mdoc.man: Bump document date.
  443. Document `.Vt' under ``Variable Types''.
  444. Removed documentation for obsolete `.Or' macro.
  445. 2001-04-10 Werner LEMBERG <wl@gnu.org>
  446. * NEWS: Updated.
  447. * doc/groff.texinfo: Many fixes, additions, clarifications, etc.
  448. 2001-04-10 Bruno Haible <haible@clisp.cons.org>
  449. * src/devices/grodvi/dvi.cc (main): Accept --help and --version.
  450. (usage): Add stream argument. Don't exit.
  451. * src/devices/grohtml/post-html.cc (main): Accept --help and --version.
  452. Write --version output to stdout, not stderr.
  453. (usage): Add stream argument. Don't exit.
  454. * src/devices/grohtml-old/html.cc (main): Accept --help and --version.
  455. (usage): Add stream argument. Don't exit.
  456. * src/devices/grolbp/lbp.cc (long_options): Use symbolic getopt.h
  457. constants.
  458. (usage): Add stream argument. Don't exit.
  459. (main): Write --help output to stdout, not stderr.
  460. * src/devices/grolj4/lj4.cc (main): Accept --help and --version.
  461. (usage): Add stream argument. Don't exit.
  462. * src/devices/grops/ps.cc (main): Accept --help and --version.
  463. (usage): Add stream argument. Don't exit.
  464. * src/devices/grotty/tty.cc (main): Accept --help and --version.
  465. (usage): Add stream argument. Don't exit.
  466. * src/preproc/eqn/main.cc (usage): Add stream argument. Don't exit.
  467. (main): Accept --help and --version.
  468. * src/preproc/grn/main.cc (usage): Add stream argument. Don't exit.
  469. (main): Accept --help and --version.
  470. * src/preproc/html/pre-html.cc (usage): Add stream argument.
  471. (scanArguments): Accept --help and --version.
  472. * src/preproc/pic/main.cc (usage): Add stream argument. Don't exit.
  473. (main): Accept --help and --version.
  474. * src/preproc/refer/refer.cc (main): Accept --help and --version.
  475. (usage): Add stream argument. Don't exit.
  476. * src/preproc/soelim/soelim.cc (usage): Add stream argument. Don't
  477. exit.
  478. (main): Accept --help and --version.
  479. * src/preproc/tbl/main.cc (usage): Add stream argument. Don't exit.
  480. (main): Accept --help and --version.
  481. * src/roff/groff/groff.cc (main): Accept --help and --version.
  482. (synopsis): Add stream argument.
  483. (help): Write --help output to stdout, not stderr.
  484. (usage): Add stream argument. Don't exit.
  485. * src/roff/grog/grog.pl: Accept --help and --version.
  486. (help): New sub.
  487. * src/roff/grog/grog.sh: Accept --help and --version.
  488. * src/roff/nroff/nroff.sh: Accept --help and --version.
  489. * src/roff/troff/input.cc (USAGE_EXIT_CODE): Remove macro.
  490. (usage): Add stream argument. Don't exit.
  491. (main): Accept --help and --version.
  492. * src/utils/addftinfo/addftinfo.cc (main): Accept --help and --version.
  493. (usage): New function with stream argument, doesn't exit.
  494. * src/utils/hpftodit/hpftodit.cc (main): Accept --help and --version.
  495. (usage): New function with stream argument, doesn't exit.
  496. * src/utils/indxbib/indxbib.cc (main): Accept --help and --version.
  497. (usage): Add stream argument. Don't exit.
  498. * src/utils/lkbib/lkbib.cc (usage): Add stream argument. Don't exit.
  499. (main): Accept --help and --version.
  500. * src/utils/lookbib/lookbib.cc (usage): Add stream argument. Don't
  501. exit.
  502. (main): Accept --help and --version.
  503. * src/utils/pfbtops/pfbtops.c (usage): Add stream argument. Don't exit.
  504. (main): Accept --help and --version.
  505. * src/utils/tfmtodit/tfmtodit.cc (main): Accept --help and --version.
  506. (usage): Add stream argument. Don't exit.
  507. 2001-04-10 Ruslan Ermilov <ru@freebsd.org>
  508. Fix indentation in SYNOPSIS.
  509. Updated to include changes of latest BSD mdoc version (basically,
  510. the only change is that `.Fn' and `.Fc' put a final semicolon after
  511. a function declaration in the SYNOPSIS section).
  512. * tmac/doc.tmac (doc-in-synopsis-count): Replaced with ...
  513. (doc-in-synopsis-section): New variable. Updated all related
  514. functions.
  515. (doc-indent-synopsis-active): New register.
  516. (Nd, Fn, Fo): Use it.
  517. (Cd): It requires manipulation of \n[doc-indent-synopsis] so that
  518. `.Cd' with long argument line produces indented wrapped lines.
  519. Also, the misplaced `.nop \*[doc-Nm-font]\c'' caused extra
  520. undesirable line break to be output.
  521. (doc-do-func-decl, Nm, Vt, Fn, Fo): Remove extraneous calls to
  522. `.rs'.
  523. (Fn, Fc): Add final `;' to output.
  524. (doc-save-global-vars, doc-restore-global-vars): Updated.
  525. * tmac/doc-common: Remove `Ex' register.
  526. Updated.
  527. * tmac/doc-ditroff, tmac/doc-nroff, tmac/doc-syms: Updated
  528. copyright.
  529. 2001-04-06 Ruslan Ermilov <ru@freebsd.org>
  530. * tmac/doc.tmac (Cd): Simplify code.
  531. * tmac/groff_mdoc.man: Document some behaviour of `Cd' request.
  532. 2001-04-06 Werner LEMBERG <wl@gnu.org>
  533. Implement continuous underlining for nroff mode. To do that, a new
  534. request in the ditroff language has been added: `x u N' (N is 0
  535. or 1).
  536. \X and \Y are now transparent to end-of-sentence recognition.
  537. * src/include/printer.h (printer): Add `type' parameter to `special'
  538. method.
  539. * src/libs/libdriver/printer.cc (printer::special): Updated.
  540. * src/libs/libdriver/input.cc (do_file): Handle `x u N'.
  541. * src/devices/dvi/dvi.cc (dvi_printer::special): Handle only
  542. specials of type `p'.
  543. * src/devices/grohtml/post-html.cc (html_printer::special): Ditto.
  544. * src/devices/grohtml-old/html.cc (html_printer::special): Ditto.
  545. * src/devices/grops/ps.cc (ps_printer::special): Ditto.
  546. * src/devices/grotty/tty.cc: Add new enum CU_MODE.
  547. (glyph::order): New method.
  548. (tty_printer::add_char): Use it.
  549. (tty_printer::special): New method.
  550. (tty_printer::end_page): Implement it.
  551. * src/roff/troff/node.h (special_node): Add `no_init_string' member.
  552. * src/roff/troff/node.cc (special_node::special_node): Add parameter
  553. to set `no_init_string'.
  554. (special_node::tprint_start): Use it.
  555. (special_node::same, special_node::copy): Updated.
  556. (special_node::ends_sentence): New method.
  557. (troff_output_file::start_special): Add parameter to include
  558. inititialization of special conditionally.
  559. * src/roff/troff/env.h (environment): New member `underline_spaces'.
  560. * src/roff/troff/env.cc (do_underline_special): New function.
  561. (environment::set_font): Use it.
  562. (do_underline): Use it. This was `underline()'.
  563. (underline): Call `do_underline()'.
  564. (continuous_underline): New function which calls `do_underline()'.
  565. (environment::newline): Use `do_underline_special()'.
  566. (init_env_requests): Updated.
  567. * NEWS, man/troff_out.man: Updated.
  568. 2001-04-06 Bruno Haible <haible@clisp.cons.org>
  569. * font/devutf8/R.proto: Fix code of 'shc'.
  570. 2001-04-06 Ruslan Ermilov <ru@freebsd.org>
  571. Many fixes. Diag lists can now be nested also; additionally,
  572. `-compact' and `-offset' are supported.
  573. * tmac/doc.tmac (doc-have-indent): Replaced with ...
  574. (doc-list-have-indent-stackXXX): A new register stack.
  575. (doc-have-diag-list): Removed.
  576. (Bl): Use `doc-list-have-indent-stackXXX'.
  577. (El): Updated.
  578. (doc-diag-list): Use `doc-compact-list-stackXXX'.
  579. (doc-tag-list): Use `doc-list-have-indent-stackXXX'.
  580. (doc-set-vertical-and-indent): Ditto.
  581. (doc-next-list-depth): Removed.
  582. (doc-increment-list-stack): Updated.
  583. (doc-decrement-list-stack): Use `doc-list-depth' instead of
  584. `doc-next-list-depth'.
  585. (doc-end-list, doc-end-column-list): Don't use
  586. `doc-increment-list-stack'.
  587. (doc-set-column-tab): Don't use `doc-list-offset-stackXXX'.
  588. (doc-save-global-vars, doc-restore-global-vars): Updated.
  589. * tmac/doc-common: Updated.
  590. * tmac/groff_mdoc.man: Updated.
  591. * NEWS: Fix typo.
  592. 2001-04-02 Werner LEMBERG <wl@gnu.org>
  593. * src/devices/grotty/grotty.man: Fix grammatical error.
  594. 2001-03-30 Ruslan Ermilov <ru@freebsd.org>
  595. Remove .Ld from mdoc package; replace it with special handling of
  596. `...'.
  597. * tmac/doc-common: Remove `Ld' register.
  598. Uncomment `doc-volume-ds-*' strings.
  599. Remove `doc-operating-system-default'.
  600. (Os): Updated.
  601. * tmac/doc-syms (Ld): Removed.
  602. * tmac/doc.tmac (doc-parse-args, doc-parse-arg-vector): Handle
  603. `...' specially.
  604. * NEWS: Updated.
  605. * tmac/groff_mdoc.man: Many fixes and updates.
  606. 2001-03-29 Werner LEMBERG <wl@gnu.org>
  607. * tmac/troffrc-end: Protect data with `.do'. Reported by T. Kurt
  608. Bond <tkb@tkb.mpl.com>.
  609. * tmac/www.tmac: Save compatibility mode.
  610. 2001-03-28 Ruslan Ermilov <ru@freebsd.org>
  611. * tmac/groff_mdoc.man: Many fixes.
  612. 2001-03-28 Werner LEMBERG <wl@gnu.org>
  613. * src/preproc/soelim/soelim.man: Document that `.<whitespace>so'
  614. isn't recognized.
  615. 2001-03-27 Werner LEMBERG <wl@gnu.org>
  616. * tmac/an-old.tmac (TP, an-do-tag): Reduce line length while in
  617. diversion. This fixes overlong tags.
  618. 2001-03-26 Werner LEMBERG <wl@gnu.org>
  619. * doc/groff.texinfo: Fixed and improved documentation of fonts.
  620. * tmac/doc-syms: Fix error messages.
  621. * tmac/an-old.tmac: Remove incorrect double backslashes.
  622. 2001-03-24 Ruslan Ermilov <ru@freebsd.org>
  623. * tmac/Makefile.sub: Strip mdoc.local also
  624. * tmac/strip.sed: Fixed.
  625. 2001-03-24 Werner LEMBERG <wl@gnu.org>
  626. * tmac/doc-nroff, tmac/doc-ditroff: Implement -rSxx switch for
  627. selecting the font size.
  628. * tmac/groff_mdoc.man, NEWS: Document it.
  629. 2001-03-23 Werner LEMBERG <wl@gnu.org>
  630. * src/roff/troff/div.cc (save_vertical_space): Add default argument
  631. to `sv' request.
  632. * src/roff/troff/env.cc (family_change): Make `.fam' accept no
  633. argument to restore previous font family.
  634. * src/roff/troff/troff.man, man/groff.man, NEWS: Updated.
  635. * doc/groff.texinfo: More fixes and additions (mainly for font
  636. manipulating commands).
  637. * tmac/groff_mdoc.reference.man: Small updates and renamed to ...
  638. * tmac/groff_mdoc.man: This. The quick reference has been removed.
  639. * tmac/Makefile.sub, NEWS: Updated.
  640. 2001-03-23 Werner LEMBERG <wl@gnu.org>
  641. Replaced mdoc implementation. The new version is `state of the
  642. art', using almost all new features of groff 1.17 -- it won't run
  643. with older versions.
  644. * tmac/doc.tmac: Completely rewritten.
  645. * tmac/doc-common: Ditto.
  646. * tmac/doc-nroff: Ditto.
  647. * tmac/doc-ditroff: Ditto.
  648. * tmac/doc-syms: Ditto.
  649. * tmac/mdoc.local: New file.
  650. * tmac/groff_mdoc.samples.man: Replaced with ...
  651. * tmac/groff_mdoc.reference.man: New file, covering mdoc completely.
  652. * tmac/strip.sed: Updated.
  653. * tmac/Makefile.sub: Updated.
  654. * INSTALL: Updated.
  655. * tmac/groff_man.man: Add `man.local' to the FILES section.
  656. 2001-03-22 Werner LEMBERG <wl@gnu.org>
  657. * doc/groff.texinfo: Added many @noindent.
  658. Replaced @end_Example -> @endExample.
  659. Added info whether registers are r/o.
  660. Many other additions and fixes.
  661. 2001-03-21 Werner LEMBERG <wl@gnu.org>
  662. * doc/groff.texinfo: Added macro @Var (and some hacks due to bugs
  663. in makeinfo of texinfo 4.0) to be used in @Def* macros.
  664. Improved @Def* macros: Now the exact syntax of request, register,
  665. and escapes is shown.
  666. Added macros for parentheses and brackets to be used in @Def*.
  667. Many fixes and improvements of the documentation.
  668. 2001-03-20 Werner LEMBERG <wl@gnu.org>
  669. * doc/groff.texinfo: Added new index: `st' (for strings).
  670. Added macros @Defstr(x).
  671. Added macro @Example (adding @group).
  672. Other minor improvements.
  673. 2001-03-19 Werner LEMBERG <wl@gnu.org>
  674. * doc/groff.texinfo: Added two new indices: `es' (for escapes) and
  675. `rq' for requests. `fn' is no longer used.
  676. Added macros @Defreq(x), @Defreg(x), and @Defesc(x).
  677. Removed @Deffn(x).
  678. * tmac/an-old.tmac (an-p-footer): If `cR' is set, replace page
  679. number with name of man page.
  680. 2001-03-19 Larry Kollar <kollar@alltel.net>
  681. * doc/groff.texinfo: Complete revision. Added many @Deffn to gain
  682. consistency.
  683. 2001-03-19 Werner LEMBERG <wl@gnu.org>
  684. * man/groff_font.man: Document `prepro', `postpro', and `print'.
  685. * src/roff/groff/groff.man: Improve documentation of `-l' and `-L'.
  686. * src/devices/grohtml/grohtml.man: Fixing typos.
  687. 2001-03-19 Gaius Mulley <gaius@glam.ac.uk>
  688. * tmac/s.tmac (@IP): Pass `.ip' html tag.
  689. * tmac/groff_mwww.man: Remove .LINE macro
  690. * tmac/www.tmac (LINE): Add `.ti'.
  691. * src/devices/grohtml/post-html.cc (html_printer): New member
  692. `indent'.
  693. (html_printer::emit_raw): Use it.
  694. (html_printer::do_linelength): Ditto.
  695. (html_printer::do_pageoffset): Ditto.
  696. (html_printer::do_indentation): Ditto.
  697. (html_printer::do_tempindent): Ditto.
  698. (html_printer::do_break): Ditto.
  699. (html_printer::begin_page): Ditto.
  700. (html_printer::do_indentedparagraph): New function.
  701. (html_printer::troff_tag): Handle `.ip'.
  702. * src/devices/grohtml/html-text.cc (html_text::issue_table_begin):
  703. Add `<td width=...>' handling.
  704. (html_text::do_table): Add parameter.
  705. (html_text::do_indent): Updated.
  706. * src/devices/groohtml/html-text.h: Updated.
  707. 2001-03-16 Gaius Mulley <gaius@glam.ac.uk>
  708. Introduced simple html tables to implement indentation.
  709. * src/devices/grohtml/html.h (word, word_list): New structures.
  710. (simple_output): Use it.
  711. * src/devices/grohtml/post-html.cc: Add `INDENTATION'.
  712. (html_printer): Improve indentation handling.
  713. (html_printer::emit_raw): Set `in_table' element. Handle
  714. indentation if set.
  715. (html_printer::write_header): Move conditional downwards.
  716. Don't allow whitespace in tags.
  717. (html_printer::do_linelength): Handle line length and indentation
  718. conditionally.
  719. (html_printer::do_pageoffset): Handle indentation conditionally.
  720. (html_printer::do_indentation): Ditto.
  721. (html_printer::do_tempindent): New function member.
  722. (html_printer::do_fill): Take care of indentation.
  723. (html_printer::do_flush): Finish table.
  724. (html_printer::do_links): Ditto.
  725. (html_printer::do_break): New function for handling `.br' and `.ti'.
  726. (html_printer::troff_tag): Use it.
  727. Handle `.ti'.
  728. (html_printer::flush_globs): Fix.
  729. (html_printer::flush_page): Finish table.
  730. (html_printer::html_printer): Fix error message. Set up
  731. `linelength'.
  732. (html_printer::add_to_sbuf): Remove special handling of character
  733. code 255.
  734. (to_unicode): Remove `stop()'.
  735. (html_printer::write_title): Cleanup.
  736. (html_printer::begin_page): Use `put_string()'. Handle indentation.
  737. (html_printer::~html_printer): Flush text and end the line.
  738. Use `put_string()'.
  739. * src/devices/grohtml/html_text.h: Add more *_TAG enum values.
  740. * src/devices/grohtml/html_text.cc (html_text::end_tag): Fix
  741. emission of tags.
  742. (html_text::start_tag): Disable newlines.
  743. (html_text::table_is_void): New function.
  744. (html_text::issue_table_begin): Ditto.
  745. (html_text::issue_table_end): Ditto.
  746. (html_text::push_para): Better table handling.
  747. (html_text::do_indent): New function.
  748. (html_text::do_table): Ditto.
  749. (html_text::done_table): Ditto.
  750. (html_text::do_tt): Handle PRE_TAG.
  751. (html_text::is_in_table): New function.
  752. (html_text::check_emit_text): Handle tables.
  753. (html_text::do_emittext): Use `nl()'.
  754. (html_text::do_para): Handle table.
  755. (html_text::remove_def): New function.
  756. * src/devices/grohtml/output.cc (word, word_list): Implement
  757. methods.
  758. (simple_output::end_line): Flush last word.
  759. (simple_output::simple_comment): Ditto.
  760. (simple_output::begin_comment): Recoded.
  761. (simple_output::end_comment): Ditto.
  762. (simple_output::comment_arg): Removed.
  763. (simple_output::check_newline): Improve test and flush last word.
  764. (simple_output::space_or_newline): Improved.
  765. (simple_output::write_newline): Replaced with...
  766. (simple_output::nl): This.
  767. (simple_output::put_raw_char): Flush last word.
  768. (simple_output::check_space): Removed.
  769. (simple_output::put_translated_string): Ditto.
  770. (simple_output::put_string): Simplified.
  771. (simple_output::put_number): Updated.
  772. (simple_output::put_float): Ditto.
  773. (simple_output::put_symbol): Removed.
  774. (simple_output::enable_newlines): Add `check_newline()'.
  775. (simple_output::flush_last_word): New function.
  776. * src/roff/troff/enc.cc (no_fill): Remove call to add_html_tag().
  777. * src/roff/troff/div.cc (page_offset): Add call to add_html_tag().
  778. * tmac/s.tmac (@PP, @IP): Add html conditional code.
  779. * tmac/an-old.tmac (TP): Ditto.
  780. 2001-03-09 Ruslan Ermilov <ru@freebsd.org>
  781. * mdate.sh: Make it POSIX compliant.
  782. 2001-03-09 Werner LEMBERG <wl@gnu.org>
  783. Added the `return' request to end a macro immediately. It simply
  784. pops iterators from the input stack until a macro iterator is found.
  785. * src/roff/troff/input.cc (input_iterator::is_macro,
  786. macro_iterator::is_macro): New member.
  787. (input_return_boundary): New class to signal an immediate return
  788. to while_request().
  789. (input_stack::add_return_boundary, input_stack::is_return_boundary):
  790. New functions.
  791. (input_stack::clear): Use it.
  792. (input_stack::pop_macro): New function.
  793. (while_request): Use `is_return_boundary()'.
  794. (return_macro_request): New function.
  795. (init_input_requests): Use it.
  796. * src/roff/troff/TODO: Updated.
  797. * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
  798. 2001-03-08 Werner LEMBERG <wl@gnu.org>
  799. * src/roff/troff/input.cc (input_iterator::is_boundary): Minor
  800. cleanup.
  801. 2001-03-07 Werner LEMBERG <wl@gnu.org>
  802. Make `\B' more rigid.
  803. * src/roff/troff/number.cc (parse_expr, parse_term): Add `rigid'
  804. parameter.
  805. (get_number_rigidly): New function.
  806. * src/roff/troff/input.cc (do_expr_test): Use it.
  807. * src/roff/troff/token.h: Updated.
  808. * src/roff/troff/request.h: Fix typo (init_html_request ->
  809. init_markup_request).
  810. 2001-03-04 Gaius Mulley <gaius@glam.ac.uk>
  811. Fixed grohtml handling of any named glyph for glyph indexes < 0x80.
  812. Cosmetic changes to `.html-begin', `.html-end', `.html-image' which
  813. are now `.begin', `.end', `.image'.
  814. * src/devices/grohtml/post-html.cc: Adding UNICODE_DESC_START.
  815. (html_printer::add_to_sbuf): Changing type of `code' parameter.
  816. Use add_char_to_sbuf().
  817. (to_unicode): New function.
  818. (char_translate_to_html): Changing type of `ch' parameter.
  819. Use `to_unicode()'.
  820. (html_printer::~html_printer): Comment out doctype string.
  821. * src/preproc/html/pre-html.cc (write_end_image): Use `.end'
  822. instead of `.html-end'.
  823. (write_start_image): Use `.begin' and `.image' instead of
  824. `.html-begin' and `.html-image'.
  825. * src/roff/troff/input.cc: Rename `html_level' to `begin_level'.
  826. (html_begin): Renamed to ...
  827. (begin): This.
  828. (html_end): Renamed to ...
  829. (end): This.
  830. (html_image): Renamed to ...
  831. (image): This.
  832. (init_html_requests): Renamed to ...
  833. (init_markup_requests): This.
  834. * tmac/www.tmac: Updated.
  835. 2001-02-28 Bram <bram@avontuur.org>
  836. * src/libs/libgroff/font.cc (font_widths_cache): Fixing syntax of
  837. constructor.
  838. 2001-02-26 David Leonard <david.leonard@csee.uq.edu.au>
  839. * doc/meref.me: Fixing some typos.
  840. 2001-02-16 Werner LEMBERG <wl@gnu.org>
  841. * src/roff/troff/node.cc (space_node::get_hyphenation_type): New
  842. method. Return `HYPHEN_MIDDLE' if it was `\:'.
  843. * src/roff/troff/node.h: Updated.
  844. 2001-02-17 Ruslan Ermilov <ru@FreeBSD.org>
  845. * tmac/groff_tmac.man: Fix typo.
  846. 2001-02-16 Werner LEMBERG <wl@gnu.org>
  847. Fixing a bug which prevented proper end-of-sentence recognition
  848. between an `unformatted' box and the following text. As a
  849. consequence, vertical line distances are no longer preserved in
  850. boxes after a call to `.unformat' -- because boxes aren't
  851. line-oriented (contrary to diversions), this doesn't make sense
  852. anyway.
  853. * src/roff/troff/node.cc (*node::set_unformat_flag): Add return
  854. value.
  855. (vertical_size_node::set_unformat_flag): New method.
  856. * src/roff/troff/node.hh: Updated.
  857. * src/roff/troff/input.cc (word_space_node::reread,
  858. hmotion_node::reread): Reset `unformat' flag after usage.
  859. (unformat_macro): Append only if `set_unformat_flag()' returns
  860. non-zero.
  861. * src/roff/troff/troff.man: Updated.
  862. 2001-02-15 Werner LEMBERG <wl@gnu.org>
  863. * src/roff/troff/troff.man, NEWS, man/groff.man: Improved
  864. documentation of `asciify' and `unformat' requests.
  865. 2001-02-13 Werner LEMBERG <wl@gnu.org>
  866. Redesigned the `unformat' request. It is no longer connected with
  867. `asciify' but rather uses new `reread()' methods if the `unformat'
  868. flag is set. Additionally, the handling of space characters after
  869. unformatting has been fixed so that they retain their width.
  870. * src/roff/troff/node.h (width_list): New structure to store
  871. original widths of spaces.
  872. (node): Added `unformat' member.
  873. Replaced `num_spaces' variable with `orig_width' list.
  874. * src/roff/troff/node.cc (*node::asciify,
  875. asciify_reverse_node_list): Removed `unformat_only' flag and related
  876. code.
  877. (word_space_node::asciify, word_space_node::word_space_node): Use
  878. `orig_width'.
  879. (word_space_node::~word_space_node): New destructor.
  880. (word_space_node::copy): Updated to handle `orig_width'.
  881. (hmotion_node::copy, unbreakable_space_node::copy): Updated.
  882. (*node::merge_space): Update `orig_width' list if necessary.
  883. (*node::set_unformat_flag): New methods to set the `unformat' flag.
  884. * src/roff/troff/enc.cc (environment::space_newline): Use
  885. `width_list'.
  886. (environment::space): Added method to handle space width and
  887. sentence space width as parameters. Use `width_list'.
  888. (environment::make_tab_node): Updated.
  889. * src/roff/troff/env.h: Updated.
  890. * src/roff/troff/input.cc (word_space_node::reread,
  891. unbreakable_space_node::reread, hmotion_node::reread): New methods
  892. to handle nodes specially if `unformat' flag is set.
  893. (do_asciify_macro): Renamed back to ...
  894. (asciify_macro): This.
  895. (unformat_macro): New implementation to simply set the `unformat'
  896. flag.
  897. * MORE.STUFF: Added more info about deroff.
  898. 2001-02-08 Werner LEMBERG <wl@gnu.org>
  899. * src/roff/troff/node.h (unbreakable_space_node, hmotion_node,
  900. space_char_hmotion_node, overstrike_node): Add `get_hyphen_list()'
  901. and `add_self()' methods to avoid hyphenation. For example, the
  902. hyphen list for `foo\0\0bar' was `foobar', causing insertion of a
  903. soft hyphen after `foo'. Now the hyphen list is correctly
  904. `foo<ignore><ignore>bar'.
  905. 2001-02-05 Yoshiteru Kageyama <yt-kage@cb3.so-net.ne.jp>
  906. * tmac/groff_tmac.man: Fix `BIR' macro.
  907. 2001-02-04 Werner LEMBERG <wl@gnu.org>
  908. A new escape sequence `\:', inserting a zero-width break point.
  909. * src/roff/troff/input.h: Adding `ESCAPE_COLON'.
  910. * src/roff/troff/input.cc (get_copy, token::next, asciify):
  911. Implement it.
  912. * src/roff/troff/node.h (node): Add `is_escape_colon()' virtual
  913. method.
  914. (space_node): Add `was_escape_colon' member. Add `is_escape_colon()'
  915. and `asciify()' methods.
  916. * src/roff/troff/node.cc (space_node::space_node): Updated.
  917. (space_node::asciify): Handle `was_escape_colon'.
  918. * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
  919. Handle `\~' similar to other comparable requests.
  920. * src/roff/troff/input.cc (process_input_stack): Remove now obsolete
  921. label.
  922. (token::next): Move creation of an unbreakable_space_node to...
  923. (token::add_to_node_list): Here.
  924. Fix a bug which sometimes prevented hyphenation of words connected
  925. with `\~' or `\ ' (and other escape sequences handled as
  926. TOKEN_NODE). This also fixes a hyphenation problem with boxes
  927. (after a call to the `unformat' request).
  928. * src/roff/troff/env.h (environment::possibly_break_line,
  929. environment::hyphenate_line): Introducing `start_here' parameter.
  930. * src/roff/troff/env.cc (environment::space_newline,
  931. environment::space): Use it.
  932. (environment::possibly_break_line, environment::hyphenate_line):
  933. Implement it.
  934. * src/roff/troff/input.cc (process_input_stack): Use it.
  935. * src/roff/troff/node.h (unbreakable_space_node, hmotion_node,
  936. space_char_hmotion_node, overstrike_node): Add
  937. `get_hyphenation_type()' method.
  938. * src/roff/troff/node.cc (break_char_node::asciify): Don't asciify
  939. if `unformat_only' is active.
  940. 2001-01-30 Werner LEMBERG <wl@gnu.org>
  941. Implemented new read-only number register `.linetabs' which
  942. returns 1 if in line-tabs mode, 0 otherwise.
  943. * src/roff/troff/env.h (environment): Add get_line_tabs() member.
  944. * src/roff/troff/env.cc (get_line_tabs): New function.
  945. (init_env_requests): Use it.
  946. * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
  947. * VERSION, REVISION: Changing to 1.17.0.
  948. 2001-01-28 Werner LEMBERG <wl@gnu.org>
  949. Fixed a bug which prevented hyphenation of words which are finished
  950. with `\)'.
  951. * src/roff/troff/token.h (token): Add enum type
  952. `TOKEN_TRANSPARENT_DUMMY' and method `transparent_dummy()'.
  953. * src/roff/troff/input.cc (token::next, token::description,
  954. get_line_arg, token::add_to_node_list, token::process): Use it.
  955. 2001-01-27 Werner LEMBERG <wl@gnu.org>
  956. * src/roff/troff/div.h (diversion): Add `saved_prev_line_interrupted'.
  957. * src/roff/troff/div.cc (do_divert): Use it.
  958. * src/roff/troff/input.cc (asciify): Add ESCAPE_RIGHT_PARENTHESIS.
  959. 2001-01-25 Werner LEMBERG <wl@gnu.org>
  960. Adding the `linetabs' request. If set, tab distances are not
  961. computed relative to the input line but relative to the output line.
  962. * src/roff/troff/env.h (environment): New member `line_tabs'.
  963. * src/roff/troff/env.cc (line_tabs_request): Implement request.
  964. (environment::environment, environment::copy): Updated.
  965. (environment::distance_to_next_tab): Use `line_tabs'.
  966. (init_env_requests): Register request.
  967. * src/roff/troff/troff.man, man/groff.man, NEWS: Document it. Other
  968. fixes.
  969. 2001-01-24 Werner LEMBERG <wl@gnu.org>
  970. Introducing a new read-only register `.int' which is set to a
  971. positive value if the last output line is interrupted (i.e., if it
  972. contains `\c').
  973. * src/roff/troff/env.cc (init_env_requests): Add it.
  974. * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
  975. 2001-01-23 Gaius Mulley <gaius@glam.ac.uk>
  976. * tmac/mwww.tmac: Call `www.tmac', not `arkup.tmac'.
  977. * src/preproc/html/pre-html.cc (findPrefix): New function which
  978. generates the troff executable name via the system prefix.
  979. * src/preproc/eqn/main.cc: Modified warning message.
  980. 2001-01-23 Werner LEMBERG <wl@gnu.org>
  981. troff's `box' and `boxa' requests didn't preserve temporary
  982. indentation.
  983. * src/roff/troff/div.h (diversion): Add `saved_saved_indent' and
  984. `saved_target_text_length' members.
  985. * src/roff/troff/div.cc (do_divert): Use them.
  986. Tabs (but not yet leaders and fields) are now handled correctly by
  987. `asciify' request.
  988. * node.h (hmotion_node): Add field `was_tab'.
  989. * env.cc (environment::make_tab_node): Set it.
  990. * node.cc (hmotion_node::copy, hmotion_node::asciify): Use it.
  991. Added new request `unformat' which will, contrary to `asciify',
  992. preserve font information after unformatting (i.e., only nodes
  993. dealing with horizontal space are converted back to input
  994. characters).
  995. * input.cc (asciify_macro): Renamed to ...
  996. (do_asciify_macro): this, having a new parameter `unformat_only'.
  997. (asciify_macro, unformat_macro): New; using do_asciify_macro.
  998. (init_input_requests): Added `unformat'.
  999. * node.cc (*_node::asciify), asciify_reverse_node_list: Added
  1000. parameter to control asciification process.
  1001. * node.h (*_node::asciify): Ditto.
  1002. * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
  1003. 2001-01-20 Werner LEMBERG <wl@gnu.org>
  1004. * doc/groff.texinfo: Minor improvement of `.in' documentation.
  1005. 2001-01-18 Werner LEMBERG <wl@gnu.org>
  1006. * tmac/ps.tmac: Remove call of psold.tmac.
  1007. * tmac/psold.tmac: Comment updated.
  1008. * tmac/psnew.tmac: Removed since no longer needed.
  1009. * tmac/Makefile.sub, NEWS, src/devices/grops/grops.man: Updated.
  1010. * font/devutf8/R.proto: Adding `shc' glyph.
  1011. * font/devutf8/NOTES: Updated.
  1012. * test-groff: Updated.
  1013. 2001-01-15 Gaius Mulley <gaius@glam.ac.uk>
  1014. First cut of the new html device driver. Changes to pre-html and
  1015. the new grohtml are too numerous to be documented here.
  1016. Stuff related to `html' has been renamed to `html-old' and `html2'
  1017. stuff has been renamed to `html' (including directories). The new
  1018. html device driver is therefore invoked as `-Thtml'.
  1019. Added new `\O' escape to suppress output (needed by html driver).
  1020. Added functions and code to pass info about input-level commands
  1021. (`.in', `.fl', etc.) to html driver.
  1022. Three new functions (.html-begin, .html-end, and .html-image) for
  1023. better html handling: `html-begin' will execute the remaining line
  1024. if at the outermost nesting level, increasing an internal counter.
  1025. `html-end' does the same but decreases the internal counter.
  1026. `html_image' puts its arguments into a special node (suppress_node)
  1027. to define an image region.
  1028. The `output' request has been removed.
  1029. * tmac/html-tags.tmac: Removed.
  1030. * tmac/arkup.tmac: Updated and renamed to ...
  1031. * tmac/www.tmac: New file.
  1032. * tmac/markup.tmac Updated and renamed to ...
  1033. * tmac/mwww.tmac: New file.
  1034. * tmac/Makefile.sub: Updated.
  1035. * tmac/an-old.tmac: Updated.
  1036. * tmac/eqnrc: Updated.
  1037. * tmac/groff_man.man
  1038. * tmac/groff_markup.man: Updated and renamed to ...
  1039. * tmac/groff_mwww.man: New file.
  1040. * tmac/groff_tmac.man: Updated.
  1041. * tmac/html-old.tmac: Updated and Renamed from html.tmac.
  1042. * tmac/html.tmac: Updated and renamed from html2.tmac.
  1043. * tmac/pspic.tmac: Updated html support.
  1044. * tmac/s.tmac: Added html output support.
  1045. * tmac/troffrc, tmac/troffrc-end: Updated.
  1046. * Makefile.in, doc/Makefile: Updated.
  1047. * doc/groff.texinfo: Added info about new `\O' escape.
  1048. * doc/homepage.ms: Use `MAILTO' macro.
  1049. * font/devhtml/DESC.proto: Add `C' font.
  1050. * font/devhtml/Makefile.sub: Updated.
  1051. * font/devhtml/R.proto: Minor fixes.
  1052. * font/devhtml-old/Makefile.sub: Updated.
  1053. * src/devices/grohtml-old/Makefile.sub: Updated.
  1054. * src/libs/libdriver/printer.cc (printer::get_font_from_index): New
  1055. method.
  1056. * src/libs/libgroff/htmlindicate.cc (html_begin_suppress,
  1057. graphic_start): Add `inline' parameter. Update.
  1058. (html_end_suppress, graphic_end): Update.
  1059. * src/include/html-strings.h: New file.
  1060. * src/include/htmlindicate.h: Comments updated.
  1061. * src/include/printer.h: Updated.
  1062. * src/preproc/eqn/main.cc (do_file, main): Updated.
  1063. * src/preproc/pic/troff.cc (troff_output::start_picture,
  1064. troff_output::finish_picture): Updated.
  1065. * src/preproc/tbl/main.cc (process_input_file): Updated.
  1066. * src/roff/groff/groff.cc (main): Updated.
  1067. Pass device arguments to predrivers also.
  1068. Use `ps' device for `eqn' preprocessor if `-Thtml' is given.
  1069. * src/roff/troff/env.h (environment): Updated.
  1070. New elements `need_eol' and `ignore_next_eol' (for html output).
  1071. * src/roff/troff/env.cc (environment::environment): Add initializers
  1072. for `need_eol' and `ignore_next_eol'.
  1073. (environment::add_html_tag_eol, env…