summaryrefslogtreecommitdiff
path: root/tmac/Makefile.sub
Commit message (Collapse)AuthorAgeFilesLines
* Add some generic fallback characters.wl2012-05-241-2/+2
| | | | | | * tmac/fallbacks.tmac: New file. * tmac/troffrc: Include it. * tmac/Makefile.sub (NORMALFILES): Include it.
* Add new output device `gropdf'.wl2011-07-261-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | * font/devpdf/*: New device files for gropdf. * src/devices/gropdf/*: New device. * Makefile.comm (install_dev, uninstall_dev): Handle more subdirectories. * Makefile.in (DEVDIRS, OTHERDIRS, EXTRADIRS): Add directories related to gropdf. * MANIFEST: Updated. * test-groff.in (GROFF_BIN_PATH): Updated. * tmac/Makefile.sub (NORMALFILES): Updated. * tmac/pdf.tmac: New file. * tmac/troffrc: Updated. * doc/groff.texinfo: Document it. * doc/Makefile.in, doc/Makefile.sub (groff_bin_dirs): Udpated. * doc/pic.ms: Updated. * man/groff_out.man, src/devices/grops/grops.man, src/preproc/pic/pic.man, src/roff/groff/groff.man, src/utils/afmtodit/afmtodit.man, src/utils/pfbtops/pfbtops.man: Updated. * contrib/pdfmark/pdfmark.ms: Updated.
* Handle `refer*.tmac'.wl2011-01-281-2/+2
| | | | | * tmac/Makefile.sub (NORMALFILES): Add `refer*.tmac'. * tmac/refer-mm.tmac: Moved to contrib/mm.
* Add Japanese localization.wl2010-12-131-2/+4
| | | | | | | Remove trailing spaces. * tmac/ja.tmac: New file. * tmac/Makefile.sub (NORMALFILES): Updated.
* * */Makefile.* (CLEANADD, CLEANNOTSRCDIRADD, CLEANDIRADD): Renamedgroff-1_20_1wl2009-01-081-1/+1
| | | | | to... (MOSTLYCLEANADD, MOSTLYCLEANNOTSRCDIRADD, MOSTLYCLEANDIRADD): This.
* Update copyright year.wl2009-01-051-1/+1
|
* * */*: Update GPL2 to GPL3.wl2009-01-041-5/+4
|
* Typowl2007-10-301-1/+1
|
* * tmac/cs.tmac: New file holding Czech strings, contributed bywl2007-10-301-1/+2
| | | | | | | | | Marcela Maslanova <mmaslano@redhat.com>. * tmac/hyphen.cs, tmac/hyphenex.cs: New hyphenation pattern files for Czech, taken from CTAN. * LICENSES: Updated. * tmac/Makefile (NORMALFILES): Add Czech stuff. * doc/groff_tmac.man: Mention cs.tmac.
* * tmac/an-ext.tmac: New file, containing extension macroswl2007-01-151-2/+2
| | | | | | | | for -man. See discussion on the groff mailing list for background information. * tmac/an-old.tmac: Load an-ext.tmac. Decorate .ds and as with comment escapes where appropriate. * tmac/Makefile.sub (NORMALFILES): Add an-ext.tmac.
* Add support for German. For activation, simply use -mde or -mdenwl2006-12-191-1/+2
| | | | | | | | | | | (for traditional and new orthgraphy, respectively) as the last macro package. * tmac/de.tmac, tmac/den.tmac, tmac/hyphen.det, tmac/hyphen.den, tmac/hyphenex.det: New files, partly taken from CTAN. * LICENSES: Updated list of hyphenation patterns. * man/groff_tmac.man: Mention de.tmac and den.tmac. * NEWS: Updated.
* * man/roff.man, doc/groff.texinfo: Improve history of roff, based onwl2006-11-191-0/+1
| | | | | | | | | | | | | | | | information from Tom Van Vleck <thvv@multicians.org>. * tmac/62bit.tmac: New macro package. * tmac/Makefile.sub (NORMALFILES): Add it. * NEWS: Document it. * tmac/trace.tmac: Protect against being loaded again. (nr): Always show result. * doc/groff.texinfo (Input Encodings): Document latin-5. * man/grof_tmac.man: Document sv, latinX, cp1047, 60bit, ec.
* * src/libs/libgroff/font.cpp (font::load): Reject fonts calledwl2006-05-301-16/+33
| | | | | | | | | | | | | | | | | | | | `DESC'. Reduce number of false positives for `.if F ...' conditionals. Improve warning messages. * tmac/Makefile.sub: Add copyright notice. (NORMALFILES): Add man.tmac and ms.tmac. (SPECIALFILES): Remove man.tmac and ms.tmac. (CLEANADD): Remove man.tmac-sed and ms.tmac-sed. (install_data, uninstall_sub): Don't handle man.tmac and ms.tmac specially. (stamp-sed): Don't handle man.tmac and ms.tmac. Remove obsolete components in sed's regexp. * doc/Makefile.sub (EXAMPLEFILES): Add gnu.eps. * Makefile.in (OTHERDIRS, NOMAKEDIRS): Add hdtbl.
* * src/roff/troff/input.cpp (encode_char): Emit special characterswl2006-03-271-1/+1
| | | | | | | for -Thtml as `\[...]'. * src/devices/grohtml/post-html.cpp (page::add_and_encode): Updated. * doc/groff.texinfo (\X): Updated.
* * tmac/Makefile.sub (NORMALFILES, SPECIALFILES): Add various missingwl2006-03-271-3/+6
| | | | files.
* * Makefile.in: Add comment about DESTDIR.wl2006-02-261-37/+45
| | | | | | | | | | | | | | | | | | * Makefile.sub: Add DESTDIR to install and uninstall targets to support staged installations. * Makefile.comm: Likewise. * doc/Makefile.sub: Likewise. * contrib/eqn2graph/Makefile.sub: Likewise. * contrib/gdiffmk/Makefile.sub: Likewise. * contrib/grap2graph/Makefile.sub: Likewise. * contrib/pic2graph/Makefile.sub: Likewise. * src/devices/xditview/Makefile.sub: Likewise. * src/preproc/eqn/Makefile.sub: Likewise. * src/roff/grog/Makefile.sub: Likewise. * src/roff/nroff/Makefile.sub: Likewise. * src/utils/afmtodit/Makefile.sub: Likewise. * src/utils/indxbib/Makefile.sub: Likewise. * tmac/Makefile.sub: Likewise.
* * doc/Makefile.sub (uninstall_sub): Use --remove, not --deletewl2005-08-031-0/+1
| | | | | | | | | | | as argument to $(INSTALL_INFO). The latter isn't portable. Remove $(HTMLEXAMPLEFILES) too. * Makefile.in (uninstall_dirs): Remove $(datadir)/doc/groff and $(datadir)/doc too. Suppress warning messages and return always true. * tmac/Makefile.sub (uninstall_sub): Remove www.tmac too.
* Add Cyrillic support to devutf8.wl2005-03-141-0/+1
| | | | | | | | | | | | * font/devutf8/R.proto: Add Cyrillic blocks. * tmac/unicode.tmac: New file. * tmac/tty.tmac: Include unicode.tmac if device is utf8. * tmac/Makefile.sub (NORMALFILES): Add unicode.tmac. * NEWS: Updated.
* Make `test-groff' work again -- previously, wrong paths have beenwl2004-12-161-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | used. Additionally, it can now be called from anywhere. * test-groff.in: Don't test for groff binary. This is no longer necessary since the proper paths are determined by `configure'. (EXEEXT): Removed. No longer used. (srcdir, builddir): Use values provided by the configure script. (XENVIRONMENT): Updated. * INSTALL: Updated. Make .tag and .taga work for all devices (but only grohtml actually handles them). * src/devices/grohtml/post-html.cpp: s/html-tag/devtag/. (text_glob::is_br, page::add_tag, html_printer::troff_tag, html_printer::handle_assertion): Don't use hard-coded string lengths. (html_printer::lookahead_for_table): Reset `tbl' properly if necessary. (html_printer::devtag): New function, handling `devtag'. (html_printer::special): Don't handle `html-tag'. * src/include/printer.h, src/libs/libdriver/printer.cpp (printer::devtag): New virtual function. * src/libs/libdriver/input.cpp (parse_x_command) <'X'>: Handle `devtag'. * src/roff/troff/env.cpp, src/roff/troff/mtsm.cpp, src/roff/troff/node.cpp: s/html-tag/devtag/. * src/roff/troff/input.cpp (tag, taga): Always call curenv->add_node. * tmac/an-old.tmac, tmac/s.tmac, tmac/troffrc-end: Use DEVTAG* macros instead of HTML-TAG*. * tmac/devtag.tmac: New file, defining the DEVTAG-* macros. * tmac/www.tmac: Load devtag.tmac. Replace HTML-TAG* macros with DEVTAG* macros. (HTML, HTML-NS): Changed definitions. (URL): Use HTML-NS. (HTML-TAG, HTML-TAG-NS, HTML-TAG-NEXT): Removed. * tmac/Makefile.sub (NORMALFILES): Add devtag.tmac.
* Add register \n[.height] which returns the value of \H.wlemb2003-04-101-1/+1
| | | | | | | | | | | | | | | | | | | | Add register \n[.slant] which returns the value of \S. * src/roff/troff/env.cc (init_env_requests): Implement. * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo: Document. * tmac/html.tmac: Move some of the data into html-end.tmac. Remove most of the character translations for eqn since html fonts now cover those characters. Load www.tmac. * tmac/html-end.tmac: New file. * tmac/troffrc: Load html.tmac not www.tmac for -Thtml. * tmac/troffrc-end: Load html-end.tmac not html.tmac for -Thtml. * tmac/Makefile.sub (NORMALFILES): Add html-end.tmac. * man/groff_out.man: Document negative values of `N' if -Thtml is used.
* Make variable `pr' local to libdriver/input.cc. Based on a patchwlemb2003-03-121-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | by Bernd Warken <bwarken@mayn.de>. * src/include/driver.h (pr): Removed. * src/libs/libdriver/input.cc (pr): New global variable. (do_file): Deallocate `pr'. * src/libs/libdriver/printer.cc (pr): Removed. * src/devices/grodvi/dvi.cc (main), src/devices/grohtml/post-html.cc (main), src/devices/grolbp/lbp.cc (main), src/devices/grolj4/lj4.cc (main), src/devices/grops/ps.cc (main), src/devices/grotty/tty.cc (main): Don't delete `pr'. * tmac/a4.tmac, tmac/composite.tmac: Use `.do'. * tmac/papersize.tmac: New file. * tmac/troffrc: Include `papersize.tmac'. * tmac/Makefile.sub (NORMALFILES): Add `papersize.tmac'. * tmac/an-old.tmac: Set LT to LL by default. * NEWS, MANIFEST, tmac/groff_man.man, man/groff_tmac.man, doc/groff.texinfo: Updated. * src/libs/libgroff/paper.cc (add_iso_paper): Fix very embarassing bug which caused all odd iso papers to have wrong dimensions. * src/devices/grops/ps.cc (user_paper_width): New global variable. (main) <'p'>: Set `user_paper_width' also. (ps_printer::media_width, ps_printer::media_height): Use values given with option `-p'.
* * font/devdvi/generate/ec.map: Add some more Unicode entities.wlemb2003-03-011-1/+2
| | | | | | | | | | | * font/devdvi/*EC: Updated. * tmac/composite.tmac, tmac/latin2.tmac, tmac/latin9.tmac: New files. * tmac/latin1 (latin1-tr): Undo any previous mapping. * tmac/troffrc: Load `composite.tmac'. * tmac/Makefile.sub (NORMALFILES): Updated. * NEWS: Updated.
* * aclocal.m4 (GROFF_HTML_PROGRAMS): Add test for pnmtops.wlemb2003-02-251-4/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | (GROFF_PNMTOPS_NOSETPAGE): New macro. * configure.ac: Use it. * configure: Regenerated. * Makefile.in: Updated. * tmac/Makefile.sub (NORMALFILES): Remove www.tmac. (CLEANADD): Add www.tmac-sed. (pnmtops_nosetpage): Define default. (install_data): Handle www.tmac-sed and substitute @PNMTOPS_NOSETPAGE@. (stamp-sed): Add www.tmac. * tmac/www.tmac: Rewritten, based on a patch by Bernd Warken. It now breaks URLs at suitable places. (www:substring_ok): New register set by... (www:@test_substring): New macro. (www:error): New alias to www-error. (www:lenstr, www:splitstr, www:url_breaks, www:url_breaks_splitted): New macros. (URL): Use www:url_breaks. (PIMG, MPIMG): Use @PNMTOPS_NOSETPAGE@. (CDS, CDE): New macros. * src/devices/grops/ps.cc (ps_printer::define_encoding): Avoid buffer overflow.
* Add US-english hyphenation exceptions (converted from Barbarawlemb2003-01-251-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Beeton's hyphenation exception log reports which appear irregularly in TUGBoat). * tmac/hyphen.us: Updated to latest version. * tmac/README: Updated. * tmac/hyphenex.us, tmac/hyphenex.sh: New files. * tmac/troffrc: Load `hyphenex.us'. * tmac/Makefile.sub (NORMALFILES): Add `hyphenex.us'. * doc/groff.texinfo: Updated. Improve hyphenation slightly. This is a first step in redesigning the hyphenation algorithm to make it more flexible (e.g. allowing kerns and ligatures between the hyphenation character and the following character -- while not used normally in English, other languages like German would benefit). * src/roff/troff/env.cc (environment::hyphenate_line): Use assertion instead of if-clause. Let `get_hyphen_list' return the number of involved characters in the hyphenation pattern instead of computing it directly (which often yields too small values). * src/roff/troff/node.h (*::get_hyphen_list): Add second parameter. * src/roff/troff/node.cc (*::get_hyphen_list): Handle new second parameter. Fixing a bug which caused groff to hang if the hyphenation exception dictionary tried to grow. * src/roff/troff/env.cc (hyphen_trie::insert_hyphenation, hyphen_trie::read_patterns_file, do_hyphenation_patterns_file): Use pointer to dictionary.
* Add PS font for various Euro glyphs.wlemb2002-12-011-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * font/devps/generate/freeeuro.sfd: New master font file for pfaedit. * font/devps/generate/sfdtopfa.pe: New conversion script for pfaedit. * font/devps/generate/Makefile (FONTS): Add `EURO'. (EURO, freeeuro.afm, freeeuro.pfa): New rules. * font/devps/freeeuro.pfa, font/devps/freeeuro.afm: Generated from `freeeuro.sfd'. * font/devps/EURO: Generated from `freeeuro.afm'. * font/devps/download: Add `freeuro.pfa'. * font/devps/Makefile.sub (NORMALFILES): Adde `EURO' and `freeeuro.pfa'. * tmac/europs.tmac: New file. * tmac/ps.tmac: Include `europs.tmac'. * tmac/Makefile.sub (DISTFILES): Add `europs.tmac'. * font/devdvi/generate/texsy.map: Remove `lh' and `rh'. * font/devdvi/S: Regenerated. * font/devhtml/R.proto: Fix `CR' and `ci'. Add `OK'. * font/devps/generate/textmap: Fix `lh', `rh', and `sq'. Remove `bs'. * font/devps/symbolmap: Regenerated. * font/devutf8/R.proto: Fix `CR' and `ci'. Add `OK'. * font/devutf8/NOTES: Updated. * src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Fix `CR' and `ci'. Add `OK'. * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Ditto. * tmac/dvi.tmac: Add `lh' and `rh'. * tmac/Xps.tmac: Fix `lh' and `rh'. * tmac/X.tmac: Add `OK'. * tmac/lj4.tmac: Ditto.
* * contrib/pic2graph/pic2graph.*: Use convert(1).wlemb2002-07-171-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * contrib/eqn2graph/eqn2graph.*: Minor fixes. * tmac/groff_trace.man: New file. * tmac/Makefile.sub: Updated. * NEWS: Updated. * src/roff/groff/groff.man: Add some cross references. * src/roff/troff/input.cc (substring_request): Add warnings for string indices out of range. * font/devdvi/generate/ec.map: Fix typo (`(l' -> `/l'). * font/devdvi/*EC: Regenerated. * man/groff_char.man: Updated and extended. * src/roff/troff/input.cc (length_macro): Renamed to... (length_request): This. Move call of `tok.next()' to the very end, otherwise the register value hasn't been updated yet. (init_input_requests): Updated. * src/roff/troff/input.cc (substring_macro): Renamed to... (substring_request): This. (init_input_requests): Updated. * src/roff/troff/request.h: Updated. * src/roff/grog/grog.sh: Fix typo. * win32-diffs: Updated. Handle `papersize' keyword properly in DESC. * src/libs/libgroff/font.cc (font::scan_papersize): Fix argument type. Updated all callers. * src/libs/libgroff/paper.cc: Add four more paper formats used by grolj4. * src/include/paper.h: Updated. * src/devices/grolbp/lbp.cc: Remove unnecessary semicolons. Other minor C syntax fixes. (papersize, paperlength, paperwidth): Renamed to `user_*'. (lbp_printer): Add `papersize', `paperlength', and `paperwidth' members. (lbp_printer::lbp_printer): Pass three arguments. Set paper dimensions properly. (make_printer, main): Updated. (handle_unknown_desc_command): Fix error messages. (main): Handle papersize keyword in DESC properly. * src/devices/grolj4/lj4.cc (paper_size): Renamed to `user_paper_size'. (lbp_printer::lbp_printer): Pass an argument. Set paper_size properly. (handle_unknown_desc_command): Removed. (make_printer, main): Updated. * src/devices/grolj4/grolj4.man: Minor documentation fix. * man/groff_font.man, NEWS: Updated.
* * src/utils/afmtodit/afmtodit.pl: Skip comment lines in encodingwlemb2002-03-021-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | files (as grops already does). * src/utils/afmtodit/afmtodit.man: Document comment lines in map files. * src/devices/grops/grops.man: Document comment lines in encoding files. * tmac/cp1047.tmac: New file. * tmac/dvi.tmac, tmac/tty-char.tmac: Use it. * tmac/ps.tmac: Load latin1.tmac or cp1047.tmac. * tmac/Makefile.sub (NORMALFILES): Updated. * tmac/ec.tmac: Don't load latin1.tmac again. * fonts/devps/generate/lgreekmap, fonts/devps/generate/symbolchars, fonts/devps/generate/dingbats.map, fonts/devps/generate/dingbats.rmap, fonts/devps/text.enc, fonts/devps/generate/Makefile (symbolmap): Add header comment. * fonts/devps/generate/textmap: Ditto. Remove `charXXX' entries. * fonts/devps/symbolmap: Regenerated. * fonts/devps/*: Regenerated all font definition files.
* Add EC and TC fonts to devdvi.wlemb2002-02-271-0/+1
| | | | | | | | | | | | | | | | | | * src/utils/tfmtodit/tfmtodit.man: Document patching of exbase.mf. * font/devdvi/generate/cork.map: Renamed to... * font/devdvi/generate/ec.map: This. Remove entry for `aq'. * font/devdvi/generate/tc.map: New file. * font/devdvi/generate/Makefile (*EC, *TC): New creation rules for EC and TC fonts. (FONTS): Updated. * font/devdvi/*EC, font/devdvi/*TC: New font definition files. * font/devdvi/Makefile.sub (DEVFILES): Updated. * tmac/ec.tmac: New file. * tmac/Makefile.sub (NORMALFILES): Updated. * NEWS, src/devices/grodvi/grodvi.man: Updated. * font/devdvi/{TR,TI,TB,TBI,HR}: Fix `name' field.
* * tmac/groff_tmac.man: Moved to...wlemb2002-02-131-2/+0
| | | | | * man/groff_tmac.man: This place. * tmac/Makefile.sub, man/Makefile.sub: Updated.
* * src/roff/troff/input.cc (get_delim_file_name): Removed since nowlemb2001-12-061-2/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | longer used. * src/devices/grohtml/post-html.cc (html_printer::html_printer): Fix order of initializers. * NEWS: Updated. * doc/groff.texinfo: Fix documentation of \O. * src/devices/grohtml/html-text.cc (html_text::do_indent, html_text::do_table, html_text::do_emittext, html_text::do_para): Use `const' for first argument. (html_text::do_table): Use cast. * src/devices/grohtml/html-text.h: Updated. * src/devices/grohtml/output.cc (simple_output::put_string): Add method for `const string &s'. * src/devices/grohtml/html.h: Updated. * src/devices/grohtml/post-html.cc (MAX_STRING_LENGTH): Removed. (ANCHOR_TEMPLATE): Modified. (manufacture_headings): New global variable to handle `-h' option. (is_subsection): Removed. (char_buffer::add_string): Add `const' to first argument. Protect against invalid string argument. Add method for `const string &s'. (text_glob): Completely redesigned. (page): Use `const' for strings and remove string length variable. (page::add_html): Removed. (page::add_end_encode): New member function. (to_unicode): Moved upwards. (title_desc, header_desc): Updated. (header_desc::write_headings): Updated to new ANCHOR_TEMPLATE definition. (html_printer::is_bold, html_printer::make_bold): New member functions. (html_printer::end_of_line): Updated. (generate_img_src, html_printer::do_auto_image, html_printer::do_title, html_printer::write_header, html_printer::determine_header_level, html_printer::do_heading, html_printer::do_linelength, html_printer::do_pageoffset, html_printer::do_indentation, html_printer::do_tempindent, html_printer::do_indentedparagraph, html_printer::do_break, html_printer::flush_sbuf, get_html_translation, html_printer::begin_page, html_printer::special): Rewritten to get rid of static string length limit. (html_printer::troff_tag): Added `.no-auto-rule'. (html_printer::flush_globs): Small fix. (html_printer::determine_space): Don't compute `space_width'. (html_printer::translate_to_html): Renamed to ... (html_printer::emit_html): This (with updates). (html_printer::write_header): Implement `-h' option. (html_printer::draw): Remove commented-out code. Handle `F' command. (html_printer::add_char_to_sbuf): Removed. (html_printer::add_to_sbuf): Rewritten. (html_printer::sbuf_continuation): Fixed. (html_printer::seen_backwards_escape, reverse, html_printer::remove_last_char_from_sbuf): Removed. (char_translate_to_html, str_translate_to_html): Removed. (html_printer::overstrike): New function member. (html_printer::set_char): Use it. (html_printer::do_body): New function member. (html_printer::~html_printer): Use it. (main): Handle `-h' option. (usage): Updated. * src/devices/grohtml/grohtml.man: Document -h switch. * src/preproc/html/pre-html.cc: Include searchpath.h Replace `POSTSCRIPTRES' macro with `postscriptRes' variable. (get_resolution): New function. (checkImageDir): Use `0777' permissions in mkdir() (write_start_image): Rewritten to use `\O[5...]'. (createImage, generateImages): Updated. (main): Handle `F' and `h' options. Use `get_resolution'. * src/roff/troff/input.cc (begin, end, image): Removed. (do_suppress): Take parameter. Handle modified syntax of `\O'. (token::next): Updated. (init_markup_requests): Removed. (main): Updated. * src/roff/troff/div.h: Add declaration for begin_page(). * tmac/color-html.tmac: Removed. Contents moved to... * tmac/html.tmac: Here. Set background color. * tmac/color.tmac: Removed. Contents moved to... * tmac/ps.tmac: Here. * tmac/www.tmac: Remove the title command when generating images for html. (NO_AUTO_RULE): New macro. (HTML_DO_IMAGE): Use revised `\O' escapes. * tmac/Makefile.sub, tmac/groff_www.man, tmac/troffrc: Updated.
* * src/lib/libbib/map.c, src/utils/pfbtops/pfbtops.c: Includewlemb2001-12-011-0/+1
| | | | | | | | | stdlib.h. * src/roff/troff/input.cc (read_draw_node): Emit error message if more than one argument to \D'f ...'. * tmac/Makefile.sub (NORMALFILES): Add lbp.tmac.
* * aclocal.m4 (GROFF_MKSTEMP): Implement test using C++ linkage.wlemb2001-11-261-2/+2
| | | | | | | | | | | * configure: Regenerated. * win32-diffs: Updated. * tmac/groff_mwww.tmac: Renamed to ... * tmac/groff_www.tmac: This. * tmac/mwww.tmac: Removed. * NEWS, tmac/Makefile.sub: Updated. * doc/groff.texinfo: Improve documentation of the `\v' escape. Fix explanation of `\D' and `rt'.
* Implementing color support in troff, pic, grops, and grohtml. Thesewlemb2001-10-051-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | changes are based on a major patch provided by Gaius Mulley <gaius@glam.ac.uk>. New request: `defcolor', supporting rgb, cmy, cmyk, and gray definitions with both hex values and fractions. New escapes: \m and \M for drawing and background color, respectively. This corresponds to the troff output commands `m' and `DF'. groff and troff accept command line switch `-c' to disable color output (which is automatically disabled in compatibility mode). New scaling indicator `f' for fractions (1f = 65536u). New conditional operator `m' to test for defined colors with `if' and `ie'. New keywords `color' (or `colour', `colored', `coloured'), `outline' (or `outlined'), and `shaded' added to pic. * src/include/color.h: New file. * src/include/driver.h: Include it. * src/include/printer.h: Include color.h. (environment): New members `col' and `fill'. (printer): Remove `adjust_arc_center' member function. * src/include/Makefile.sub: Updated. * src/libs/libdriver/input.cc (do_file): Initialize `env.col' and `env.fill'. Handle `m' and `DF' troff commands. * src/libs/libgroff/color.cc: New file. * src/libs/libgroff/Makefile.sub: Updated. * src/preproc/html/pre-html.cc (IMAGE_BORDER_PIXELS): Set to 2. (stop): Removed. (createImage): Fix computation of `y2'. Use `pnmcrop' also. (buffer::write_file_html): Remove calls to `stop'. * src/preproc/pic/common.h (common_output): New abstract function members `set_color', `reset_color', `get_last_filled', and `get_outline_color'. * src/preproc/pic/object.h: Add `IS_SHADED' and `IS_OUTLINED'. (object_spec): Add members `shaded' and `outlined'. * src/preproc/pic/output.h (output): `command' is now abstract. New function members `set_color', `reset_color', `get_last_filled', and `get_outline_color'. * src/preproc/pic/lex.cc (lookup_keyword): Recognize `colo[u]r[ed]', `outline[d]', and `shaded'. * src/preproc/pic/object.cc (output::command): Removed. (output::set_location):Moved to output.h. (graphic_object): Add protected members `outline_color' and `color_fill'. Add member functions `set_outline_color', `get_outline_color', and `set_fill_color'. (closed_object): Add member function `set_fill_color'. Add member `color_fill'. (graphic_object::print_text): Use `out->set_color' and `out->reset_color'. (box_object::print, ellipse_object::print, circle_object::print, line_object::print, spline_object::print, arc_object::print): Ditto. (object_spec::make_object): Implement `IS_OUTLINED' and `IS_SHADED'. * src/preproc/pic/pic.y: Add tokens `COLORED', `OUTLINED', and `SHADED', making them `%left'. Add rules `object_spec [SHADED|COLORED|OUTLINED] text'. * src/preproc/pic/tex.cc (tex_output): New dummy function members `set_color', `reset_color', `get_last_filled', and `get_outline_color'. * src/preproc/pic/troff.cc (simple_output): New abstract function members `set_color', `reset_color', and `get_last_filled'. (simple_output::polygon, simple_output::circle, simple_output::ellipse): Use `get_last_filled'. (troff_output): New members `last_filled' and `last_outlined'. New function members `set_color', `reset_color', `get_last_filled', and `get_outline_color'. (troff_output::finish_picture): Use `reset_color'. (troff_output::set_fill): Test `last_filled'. * src/preproc/pic/pic.man: Updated. * src/roff/groff/groff.cc (main): Implement `-c' option. (synopsis, help): Updated. src/roff/groff/groff.man: Updated. * src/roff/troff/troff.h: Include color.h. (warning_type): Add WARN_COLOR. * src/roff/troff/env.h (environment): New members `{cur,prev}_{glyph,fill}_color'. New member functions `get_{prev_,}{glyph,fill}_color'. * src/roff/troff/env.cc: Initialize and implement them. * src/roff/troff/input.cc: New global variable `disable_color_flag'. Replace `NULL' with `0' everywhere for consistency. (lookup_color, default_black, do_glyph_color, do_fill_color, get_color_element, read_rgb, read_cmy, read_cmyk, read_gray, define_color): New functions. (token::next): Implement \M and \m escapes. (do_if_request): Implement `m' operator. (usage): Updated. (main): Implement `-c' option. (init_markup_requests): Add `defcolor' request. (warning_table): Add `color' warning. * src/roff/troff/node.h (glyph_color_node, fill_color_node): New classes. * src/roff/troff/node.cc (troff_output_file): New members `current_{page,glyph}color'. New member functions `put_hex', `glyph_color', and `fill_color'. (glyph_color_node::*, fill_color_node::*): Implement it. * src/roff/troff/number.cc (SCALE_INDICATOR_CHARS): Add `f'. (parse_term): Add support for `f'. * src/roff/troff/troff.man: Updated. * src/devices/grodvi/dvi.cc (draw_dvi_printer::draw): Add dummy entry for `F'. * src/devices/grolbp/lbp.cc (lbp_printer::draw): Ditto. * src/devices/grolj4/lj4.cc (lj4_printer::draw): Ditto. * src/devices/grohtml/html-text.h (HTML_TAG): Add COLOR_TAG. (tag_definition): Use `void *' for arg1. (html_text): New member functions `do_color' and `done_color'. Use `void *' for second parameter of `push_para' member function. New `push_para' member function with a single parameter. Use `char *' for parameter of `issue_table_begin' member funtion. New `issue_color_begin' member function. * src/devices/grohtml/html-text.cc (html_text::end_tag): Handle COLOR_TAG. (html_text::issue_color_begin): New function. (html_text::issue_table_begin): Use `char *' for parameter. (html_text::start_tag, html_text::shutdown, html_text::check_emit_text): Updated. (html_text::push_para): Use `void *' for second parameter. Add same function with only one parameter. (html_text::do_*): Updated. (html_text::do_color, html_text::done_color): New functions. * src/devices/grohtml/post-html.cc (style): New member `col'. Mew member `style' with 6 parameters. (style::style, style::operator==): Updated. (html_printer::do_font): Use it. (html_printer::draw): Add dummy entry for `F'. (html_printer::set_char): Updated. * src/devices/grohtml/grohtml.man: Updated. * src/devices/grops/ps.cc (ps_output::put_float): Use `%g' to have trailing zeroes removed. (ps_printer): New members `sbuf_color', `fill_color', and `output_color'. Removed member `fill'. New member function `set_color'. (ps_printer::ps_printer, ps_printer::set_char): Updated. (ps_printer::flush_sbuf, ps_printer::set_line_thickness, ps_printer::fill_path, ps_printer::draw): Use `set_color'. * tmac/color-html.tmac, tmac/color.tmac: New files. * tmac/troffrc: Include them. * tmac/www.tmac (URL, FTP, MAILTO): Use blue color. * tmac/Makefile.sub: Updated. * NEWS, doc/groff.texinfo, doc/pic.ms, man/groff_out.man, man/groff.man: Updated. * font/devps/prologue.ps: Define FC and CO functions. Fix incorrect cropping of images and incorrect handling of special characters. Fix handling of file names in \O. * src/include/geometry.h: New file. * src/libs/libgroff/geometry.cc: New file. * src/libs/libdriver/printer.cc (printer::adjust_arc_center): Moved to `geometry.cc'. * src/roff/troff/input.cc (get_delim_file_name): Fixed problem with initial spaces. (do_suppress): Updated. * src/roff/troff/node.cc: Include geometry.h. (troff_output_file::flush_tbuf): Fixed parameters to `check_output_limits'. (troff_output_file::check_charinfo): Ditto. (troff_output_file::determine_line_limits): Add support for `Da' and `Dl' commands. * src/devices/grohtml/post-html.cc (str_translate_to_html): Add new parameter `is_special' to decode special characters from escape sequences. (html_printer::do_title, html_printer::do_heading, html_printer::do_indentedparagraph, html_printer::translate_to_html, html_printer::special): Updated. * Makefile.sub (DISTCLEANFILES): Add stamp-h. Fix entry for config.h. * test-groff (GROFF_BIN_PATH): Add $builddir/roff/groff. * tmac/troffrc: Translate nonbreakable space character to `\~'. * src/preproc/eqn/eqn.man: Document -d command line option.
* minor installation fixwlemb2001-04-171-1/+1
|
* Removing the grohtml-old device driver which is now obsolete.wlemb2001-04-141-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * src/devices/grohtml-old/*: Removed. * font/devhtml-old/*: Removed. * src/libgroff/htmlindicate.cc (graphic_start, graphic_end): Remove comments. * Makefile.in (CCPROGDIRS, DEVDIRS): Updated. * test-groff (PATH): Updated. * tmac/Makefile.sub (NORMALFILES): Updated. * tmac/an-old.tmac: Remove special code for html-old device. Replace `html-or-html-old' register with `an-html'. * tmac/eqnrc: Updated. * tmac/html-old.tmac: Removed. * tmac/troffrc, tmac/troffrc-end: Updated. * tmac/www.tmac: Remove special code for html-old device. Replace `html-or-html-old' register with `www-html'. * src/libgroff/tmpfile.cc (remove_tmp_files), src/libgroff/htmlindicate.cc (graphic_end), include/htmlindicate.h, src/preproc/grn/*.cc, src/roff/groff/env.{cc,h}: Remove `void' parameter if used as a single argument for consistency with rest of source code. * aclocal.m4, tmac/an-old.tmac: Fix copyright. * src/roff/troff/troff.man: Fixing typos.
* * src/include/nonposix.h (fileno) [_MSC_VER]: Removed.wlemb2001-04-111-1/+1
| | | | | | | | | | | | | | | | | | | | * font/devlbp/Makefile.sub (CLEANADD): Set it. * tmac/Makefile.sub (CLEANADD): Add tmac.local-s. * Makefile.in (dist): Don't remove src/xditview/Imakefile, but ... * Makefile.sub (DISTCLEANFILES): Here. * libs/libgroff/new.cc: Include `nonposix.h'. * win32-diffs: Updated. When inside displays, an empty input line warning should be suppressed. If another macro call is put inside a display, all subsequent empty lines found in that display caused a warning to be emitted. (doc-empty-line): Check the `doc-display-depth' register to determine whether we are inside display or not. the only change is that `.Fn' and `.Fc' put a final semicolon after a function declaration in the SYNOPSIS section).
* * tmac/Makefile.sub: Strip mdoc.local alsowlemb2001-03-241-4/+4
| | | | * tmac/strip.sed: Fixed.
* * tmac/doc-nroff, tmac/doc-ditroff: Implement -rSxx switch forwlemb2001-03-241-1/+0
| | | | | | | | | | selecting the font size. * tmac/groff_mdoc.man, NEWS: Document it. * tmac/groff_mdoc.reference.man: Small updates and renamed to ... * tmac/groff_mdoc.man: This. The quick reference has been removed. * tmac/Makefile.sub, NEWS: Updated.
* Replaced mdoc implementation. The new version is `state of thewlemb2001-03-231-2/+7
| | | | | | | | | | | | | | | | | | | art', using almost all new features of groff 1.17 -- it won't run with older versions. * tmac/doc.tmac: Completely rewritten. * tmac/doc-common: Ditto. * tmac/doc-nroff: Ditto. * tmac/doc-ditroff: Ditto. * tmac/doc-syms: Ditto. * tmac/mdoc.local: New file. * tmac/groff_mdoc.samples.man: Replaced with ... * tmac/groff_mdoc.reference.man: New file, covering mdoc completely. * tmac/strip.sed: Updated. * tmac/Makefile.sub: Updated. * INSTALL: Updated. * tmac/groff_man.man: Add `man.local' to the FILES section.
* * tmac/ps.tmac: Remove call of psold.tmac.wlemb2001-01-181-1/+1
| | | | | | | | | * tmac/psold.tmac: Comment updated. * tmac/psnew.tmac: Removed since no longer needed. * tmac/Makefile.sub, NEWS, src/devices/grops/grops.man: Updated. * font/devutf8/R.proto: Adding `shc' glyph. * font/devutf8/NOTES: Updated.
* First cut of the new html device driver. Changes to pre-html andwlemb2001-01-171-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | the new grohtml are too numerous to be documented here. Stuff related to `html' has been renamed to `html-old' and `html2' stuff has been renamed to `html' (including directories). The new html device driver is therefore invoked as `-Thtml'. Added new `O' escape to suppress output (needed by html driver). Added functions and code to pass info about input-level commands (`.in', `.fl', etc.) to html driver. Three new functions (.html-begin, .html-end, and .html-image) for better html handling: `html-begin' will execute the remaining line if at the outermost nesting level, increasing an internal counter. `html-end' does the same but decreases the internal counter. `html_image' puts its arguments into a special node (suppress_node) to define an image region. The `output' request has been removed. * tmac/html-tags.tmac: Removed. * tmac/arkup.tmac: Updated and renamed to ... * tmac/www.tmac: New file. * tmac/markup.tmac Updated and renamed to ... * tmac/mwww.tmac: New file. * tmac/Makefile.sub: Updated. * tmac/an-old.tmac: Updated. * tmac/eqnrc: Updated. * tmac/groff_man.man * tmac/groff_markup.man: Updated and renamed to ... * tmac/groff_mwww.man: New file. * tmac/groff_tmac.man: Updated. * tmac/html-old.tmac: Updated and Renamed from html.tmac. * tmac/html.tmac: Updated and renamed from html2.tmac. * tmac/pspic.tmac: Updated html support. * tmac/s.tmac: Added html output support. * tmac/troffrc, tmac/troffrc-end: Updated. * Makefile.in, doc/Makefile: Updated. * doc/groff.texinfo: Added info about new `O' escape. * doc/homepage.ms: Use `MAILTO' macro. * font/devhtml/DESC.proto: Add `C' font. * font/devhtml/Makefile.sub: Updated. * font/devhtml/R.proto: Minor fixes. * font/devhtml-old/Makefile.sub: Updated. * src/devices/grohtml-old/Makefile.sub: Updated. * src/libs/libdriver/printer.cc (printer::get_font_from_index): New method. * src/libs/libgroff/htmlindicate.cc (html_begin_suppress, graphic_start): Add `inline' parameter. Update. (html_end_suppress, graphic_end): Update. * src/include/html-strings.h: New file. * src/include/htmlindicate.h: Comments updated. * src/include/printer.h: Updated. * src/preproc/eqn/main.cc (do_file, main): Updated. * src/preproc/pic/troff.cc (troff_output::start_picture, troff_output::finish_picture): Updated. * src/preproc/tbl/main.cc (process_input_file): Updated. * src/roff/groff/groff.cc (main): Updated. Pass device arguments to predrivers also. Use `ps' device for `eqn' preprocessor if `-Thtml' is given. * src/roff/troff/env.h (environment): Updated. New elements `need_eol' and `ignore_next_eol' (for html output). * src/roff/troff/env.cc (environment::environment): Add initializers for `need_eol' and `ignore_next_eol'. (environment::add_html_tag_eol, environment::add_html_tag_tabs): New functions. (point_size, fill, no_fill, center, right_justify, line_length, indent, temporary_indent, break_request, handle_tab): Use `add_html_tag()'. (set_tabs): Use `add_html_tag_tabs()'. (environment::add_html_tag): Updated. (environment::do_break): Updated. * src/roff/troff/div.cc (space_request, flush_output): Use `environment::add_html_tag()'. * src/roff/troff/input.cc: Updated. New variable `html_level' to indicate nested `html-begin' requests. (file_iterator::fill): Use `environment::add_html_tag_eol()'. (non_interpreted_char_node, token_node, non_interpreted_node): Add `force_tprint()' method. (token::next): Handle `O'. (do_suppress): Implement it. (html_begin, html_end, html_image): New functions. (init_output_requests): Renamed to ... (init_html_requests): this. (main): Use it. (macro::append_str, macro::append_unsigned, macro::append_int): New methods. New variable `output_low_mark_miny' to limit minimal value of y. (reset_output_registers): Use it. (output_request): Removed. (get_output_registers): New function. * src/roff/troff/node.h (node): Make `force_tprint()' virtual. (*_node): Added `force_tprint()' if necessary. (special_node): New elements `tf' and `get_tfont()'. (suppress_node): New class. * src/roff/troff/node.cc: New global variables `image_no' and `suppress_start_page'. (real_output_file): New method `is_on()'. (troff_output_file): New method `start_special(tfont)'. (troff_output_file::really_print_line): Use `tprint' conditionally. (real_output_file::print_line): Updated. (real_output_file::on): Updated. (*_node): Added `force_tprint()'. (special_node::special_node): Initializer updated. (special_node::same, special_node::copy, special_node::tprint_start): Updated. (get_reg_int, get_reg_str): New functions. (suppress_node::*): New methods. New global variables last_position, last_image_filename; (min): New inline function. * src/roff/troff/reg.h, src/roff/troff/request.h, src/roff/troff/troff.h: Updated.
* * tmac/safer.tmac: Empty file added (again) for compatibilitywlemb2000-11-191-0/+1
| | | | | reasons. * tmac/Makefile.sub: Updated.
* Add system tmac directory (/usr/local/lib/groff/site-tmac).wlemb2000-11-081-4/+55
| | | | | | | | | | | | | | | | | | | | * Makefile.in: Add $(libdir), $(libprogramdir), and $(systemtmacdir). (uninstall_dirs): Add $(libdir), $(libprogramdir), and $(systemtmacdir). Use @libdir@. * Makefile.comm (.man.n): Add @SYSTEMMACRODIR@. * tmac/Makefile.sub (install_data): Create $(systemtmacdir) and $(localtmacdir). (uninstall_sub): Use $(systemtmacdir) for wrapper macros. * man/roff.man, src/roff/troff/troff.man, src/roff/groff/groff.man, NEWS, doc/groff.texinfo: Updated and minor fixes. * Makefile.comm, Makefile.in: Added tmac_{s,an}_prefix stuff again. * tmac/Makefile.sub: Added `wrap' stuff again, but installing into $(systemtmacdir) since the wrapper files are platform-dependent. * doc/groff.texinfo: Fix typo.
* Convert macros `tmac.XXX' to `XXX.tmac'. Special cases:wlemb2000-10-261-63/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | tmac.doc.old -> doc-old.tmac tmac.an.old -> an-old.tmac * tmac/tmac.*: Moved to ... * tmac/*.tmac: this. * tmac/man.local: Fix comment. * tmac/groff_man.man, tmac/groff_markup.man, tmac/groff_mdoc.man, tmac/groff_me.man, tmac/groff_ms.man, tmac/groff_tmac.man: Updated. Added some `FILES' sections. More use of @...@ directives. Other minor updates. * arch/djgpp/README, font/devutf8/NOTES: Updated. * doc/homepage.ms, doc/groff.texinfo: Updated. * man/groff.man, man/roff.man: Updated. * src/devices/grodvi/grodvi.man, src/devices/grolbp/grolbp.man, src/devices/grolj4/grolj4.man, src/devices/grops/grops.man, src/devices/grotty/grotty.man: Updated. * src/preproc/pic/pic.man: Updated. * src/roff/grog/grog.pl, src/roff/grog/grog.sh: Use -mdoc-old instead of -mdoc.old. * src/roff/grog/grog.man: Document -mdoc and -mdoc-old. * src/roff/nroff/nroff.man: Updated. * NEWS: Updated. * tmac/fixmacros.sed, tmac/strip.sed: Add explanatory comment. * tmac/mm.diff: Removed -- it has no use now since the mm package is part of groff. * tmac/*: Removed trailing spaces. * arch/djgpp/t-groff.bat: Fix GROFF_TMAC_PATH (hyphen.us is now in the tmac subdirectory also).
* Add local tmac directory (groff/site-tmac).wlemb2000-10-241-4/+5
| | | | | | | | | * Makefile.in: Add $(localtmacdir). (uninstall_dirs): Add $(localtmacdir). * Makefile.comm (.man.n): Add @LOCALMACRODIR@. * tmac/Makefile.sub (install_data, uninstall_sub): Handle man.local in $(localtmacdir). Create $(localtmacdir). * man/roff.man, src/roff/troff/troff.man, NEWS: Updated.
* Move hyphen.us to tmac directory.wlemb2000-10-231-1/+1
| | | | | | | | | | | | | | | | * src/roff/troff/hyphen.us: Removed. * src/tmac/hyphen.us: Added. * src/roff/troff/Makefile.sub, tmac/Makefile.sub: Updated. Change installation structure for data files from .../groff/... to .../groff/<version><revision>/... to be conform with other GNU programs. * Makefile.in, Makefile.comm, src/utils/indxbib/Makefile.sub, doc/Makefile, src/xditview/Imakefile.in: Implement it. * NEWS: Document it. * NEWS, src/roff/nroff/nroff.man, src/roff/groff/groff.man,
* Replace tmac.safer with a real secure solution.wlemb2000-10-141-2/+1
| | | | | | | | | | * src/roff/troff/input.cc (open_request, opena_request, pipe_source, system_request, pipe_output): Disable requests if in safer mode. * src/roff/groff/groff.cc (main): Remove reference to tmac.safer. * tmac/tmac.safer, tmac/groff_msafer.man: Removed. * tmac/Makefile.sub, NEWS, man/roff.man, tmac/groff_tmac.man, doc/groff.texinfo, src/roff/groff/groff.man, src/roff/troff/troff.man, arch/djgpp/README: Updated.
* * src/include/posix.h: Remove definition of FILENAME_MAX.wlemb2000-08-251-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * src/preproc/html2/pre-html.h, pre-html.cc: Add return type to `sys_fatal' and `stop' function(). * test-groff: Updated. Added the new troff command .output <arg> to suppress output (while still obeying motion) and also the opminx, opminy, opmaxx, opmaxy registers (for passing the output dimensions to the output device). * src/roff/troff/div.cc (top_level_diversion::output): Use `width' parameter. * src/roff/troff/node.h, src/roff/troff/node.cc (troff_output_file::really_print_line, ascii_output_file::really_print_line, supress_output_file::really_print_line): Use `width' parameter. (troff_output_file::really_on, troff_output_file::really_off, output_file::on, output_file::off, real_output_file::on, real_output_file::off, real_output_file::really_on, real_output_file::really_off): New functions. (real_output_file:public output_file): New variable `output_on'. (real_output_file::begin_page, real_output_file::copy_file, real_output_file::transparent_char, real_output_file::print_line): Use it. (real_output_file::print_line): Use check_output_limits. * src/roff/troff/reg.h, src/roff/troff/request.h, src/roff/troff/input.cc (assign_registers): New function to remove two `goto's. (do_ps_file): Use it. (check_output_limits, reset_output_registers, output_request, init_output_requests): New functions. (init_input_requests): Updated. Added new grohtml2 device and html2 preprocessor (coding not yet finished) which will eventually replace grohtml. * Makefile.in, tmac/Makefile.sub, tmac/eqnrc, tmac/troffrc-end: Updated. * src/include/htmlindicate.h, src/include/htmlindicate (html_begin_suppress, html_end_suppress): New functions. * src/preproc/tbl/main.cc: Use it. * src/roff/groff/groff.cc: Add support for html2 device (which will automatically invoke the html2 preprocessor). * src/roff/troff/input.cc (is_html2): New variable. * src/roff/troff/troff.h, src/roff/troff/env.h, src/roff/troff/env.cc (environment::add_html_tag): New function (uses `is_html2'). (environment::do_break): Use it. * font/devhtml2/*: New files. * src/devices/grohtml2: New device. * src/preproc/html2: New preprocessor. * tmac/tmac.html-tags, tmac/tmac.html2: New files.
* Add support for new BSD-style man pages (with ".Dd" instead ofwlemb2000-08-061-2/+5
| | | | | | | | | | | | | | | | | ".TH"), so that "groff -man" understands both styles, even when running "groff -man" on a host whose system man page macros don't support ".Dd". * tmac/Makefile.sub (NORMALFILES): Add tmac.an.old. (stamp-wrap): Source tmac.andoc first when wrapping man macros, in case the system man macros don't define Dd or TH. * tmac/tmac.an.old: Renamed from tmac/tmac.an. * tmac/tmac.an: New one-line file. * tmac/tmac.andoc (TH): Adjust to the tmac.an.old file renaming. * src/roff/troff/troff.man: Fixing typos.
* Added grap support to grog.wlemb2000-05-011-0/+2
| | | | | | | | | | | | | | | | | | | | | | * src/roff/grog/grog.sh, src/roff/grog/grog.pl: Implement it. * src/roff/grog/grog.man: Document it. * doc/groff.texinfo, NEWS: Add info about grap support. Add new man pages comptributed by Bernd Warken <bwarken@mayn.de> (with slight fixes by me). * tmac/groff_tmac.man: New file documenting tmac mechanism. * tmac/Makefile.sub: Add groff_tmac.man. * man/roff.man: New file giving overview of roff system. * man/troff.man: A short reference of troff. * man/Makefile.sub: Add roff.man and troff.man. Added grap support to groff. * src/roff/groff/groff.cc: Implement it. * src/roff/groff/groff.man: Document it.