summaryrefslogtreecommitdiff
path: root/tmac/doc-common
Commit message (Collapse)AuthorAgeFilesLines
* [mdoc] Implement `.%C'.wl2013-07-311-0/+1
| | | | | * tmac/doc.tmac, tmac/doc-common: Do it. * tmac/groff_mdoc.man: Updated.
* [mdoc] Synchronize string tables with the mandoc(1) utility.wl2011-10-291-1/+24
| | | | | | | | | | | * tmac/doc-common: Add many architecture names used in NetBSD and OpenBSD (and "arm" from FreeBSD) and remove the duplicate OS version entry for Darwin-10.6.0. * tmac/doc-syms: Add many library names used in NetBSD and FreeBSD. * tmac/groff_mdoc.man: Document all supported architecture names, OS versions, and library names.
* mdoc: Update more OS versions strings.wl2011-07-031-0/+12
| | | | | * tmac/doc-common: Add versions strings for NetBSD, OpenBSD, FreeBSD, and DragonFly.
* mdoc: Update various strings related to Mac OS X and FreeBSD.wl2011-04-081-0/+12
| | | | | * tmac/doc-common: Add strings for FreeBSD 8.2 and Darwin 9.7-11.0. * tmac/doc-syms: Add strings -lbsm and -lSystem.
* [mdoc]: Complete previous patch and document OpenBSD releases.wl2010-11-021-1/+55
| | | | | | | | | | | | | * tmac/doc-common (doc-operating-system-NetBSD): Add versions 5.0, 5.0.1, and 5.0.2. (doc-operating-system-OpenBSD-*): New strings. (doc-operating-system-FreeBSD-*): Add version 8.1. (doc-operating-system-DragonFly-*): Add versions 2.2, 2.4, 2.6, and 2.8. (Os): Handle DragonFly and OpenBSD. * tmac/groff_mdoc.man: Document OpenBSD releases. Add DragonFly release 2.8.
* Add new FreeBSD and Posix versions.wl2010-02-241-0/+3
| | | | | | * tmac/doc-common: Add FreeBSD versions 7.2, 7.3, and 8.0 * tmac/doc-syms: Add Posix 2008 * tmac/groff_mdoc.man: Document it.
* * tmac/doc-common (Dx): Define register.wl2009-10-261-0/+1
|
* Implement `%U' in mdoc for URL references.wl2009-10-261-0/+3
| | | | | | | | | | | | * tmac/doc-common (%U): New register. (Rd): Handle `doc-url-count' and `doc-url-name'. * tmac/doc.tmac (doc-url-count, doc-url-name): New registers. (doc-save-global-vars, doc-restore-global-vars, doc-reset-reference, doc-print-reference): Handle `doc-url-count' and `doc-url-name'. (%U): New macro. * NEWS, tmac/groff_mdoc.man: Document `%U' macro.
* * tmac/doc-common: Add entries for Mac OS X and FreeBSD.wl2008-12-241-1/+4
|
* * tmac/doc-common (Dt): Start a new page if necessary and set upwl2008-11-051-0/+6
| | | | | | | | | headers. * tmac/andoc.tmac (reload-doc): Simplify due to change in doc-common. * NEWS: Document it.
* * tmac/doc-common (doc-operating-system-*), tmac/groff_mdoc.man: Addwl2008-10-161-0/+1
| | | | NetBSD 4.0.1.
* * tmac/doc-common (doc-operating-system-*): Update releases.wl2008-10-041-13/+37
|
* * tmac/doc-common (Dd, Os, Dt): Reset `doc-command-name' to makewl2008-09-061-0/+8
| | | | `.Nm' work properly if next manual page is printed.
* * tmac/doc-common, tmac/groff_doc.man: Add FreeBSD 6.2, documentwl2007-10-021-0/+1
| | | | | | FreeBSD 5.5 and 7.0. * tmac/doc-syms: Give better names for System V releases.
* * tmac/doc-syms (Dx): New macro to identify DragonFly.wl2006-03-211-0/+11
| | | | | | | | | | | (doc-str-St--ieee1275-94, doc-str-St--isoC-amd1, doc-str-St--isoC-tcor1, doc-str-St--isoC-tcor2): New standard strings. (doc-operating-system-FreeBSD-5.5, doc-operating-system-FreeBSD-7.0, doc-operating-system-NetBSD-1.6.3, doc-operating-system-NetBSD-4.0 doc-operating-system-DragonFly-*): New operating system strings. * tmac/groff_mdoc.man, NEWS: Document `Dx'.
* * src/preproc/tbl/tbl.man: Mention default length of text blocks.wl2006-03-131-0/+2
| | | | | * tmac/doc-common (Os): Add more Darwin versions. * tmac/groff_mdoc.man: Document them.
* * tmac/doc-common: Add new FreeBSD and NetBSD versions.wl2006-01-051-0/+5
| | | | * tmac/groff_mdoc.man: Updated.
* * tmac/doc-common (Os): Add some Darwin versions.wl2006-01-011-1/+14
| | | | * tmac/groff_mdoc.man: Document them.
* * tmac/doc-common (doc-operating-system-NetBSD-2.0.1,wl2005-03-181-0/+2
| | | | | | doc-operating-system-NetBSD-2.0.2): New strings. * tmac/groff_mdoc.man: Updated.
* * tmac/groff_mdoc.man, tmac/doc-common, tmac/doc-ditroff,wl2005-02-041-4/+2
| | | | | tmac/doc-nroff, tmac/doc-old.tmac, tmac/doc-syms, tmac/doc.tmac: Update BSD license.
* * tmac/doc-common (Dd), tmac/doc-ditroff (gX, doc-setup-header):wl2005-01-191-4/+0
| | | | | | | | Remove dead code. * src/roff/troff/div.cpp (top_level_diversion::space): Protect against division by zero.
* * tmac/doc-common (doc-volume-as-*): Use lowercase names.wlemb2004-04-151-36/+63
| | | | | | (doc-operating-system-*): Updated. * tmac/doc-syms (doc-str-St-*): Various small fixes. (doc-str-Lb-*): Add more library names.
* * src/libs/libgroff/glyphuni.cpp (glyph_to_unicode_list),wlemb2004-04-081-18/+30
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | src/libs/libgroff/uniglyph.cpp (unicode_to_glyph_list), src/libs/libgroff/uniuni.cpp (unicode_decompose_list), src/preproc/eqn/box.cpp (param_table), src/preproc/grn/hgraph.cpp (polyfill), src/preproc/grn/main.cpp (polyfill), src/preproc/refer/command.cpp (command_table), src/utils/tfmtodit.cpp (lig_table): Don't use anonymous types (which gcc 3.5 doesn't like). Removing many compiler warnings. groff should now compile with a C++ compiler used for C files also. [Simple variable renamings to avoid shadowing aren't logged in detail.] * src/devices/grodvi/dvi.cpp: Some local variable renamings. (draw_dvi_printer::draw) ['c']: Enclose in block. * src/devices/grohtml/post-html.cpp: Some local variable renamings. (page::add_line): Fix typos. * src/devices/grohtml/html-text.cpp: Some local variable renamings. * src/devices/grolbp/lbp.cpp: Don't define _GNU_SOURCE. Some local variable renamings. * src/devices/grolbp/lbp.h: Some local variable renamings. * src/devices/grolj4/lj4.cpp, src/devices/grotty/tty.cpp: Some local variable renamings. * src/libs/libbib/index.cpp (index_search_item_iterator::get_tag): Remove redundant local variable declaration. * src/libs/libbib/map.c (mapread, unmap): Don't use K&R style. Don't use `caddr_t' but `void *'. Enclose functions with `extern "C"' for C++. * src/libs/libdriver/input.cpp (remember_filename, remember_source_filename): Use cast for string constant. * src/libs/libgroff/font.cpp, src/libs/libgroff/fontfile.cpp, src/libs/libgroff/nametoindex.cpp, src/libs/libgroff/paper.cpp, src/libs/libgroff/geometry.cpp: Some local variable renamings. * src/libs/libgroff/iftoa.c, src/libs/libgroff/itoa.c: Don't use K&R style. Enclose functions with `extern "C"' for C++. * src/libs/libgroff/quotearg.c (TRUE,FALSE): Define as macros. (needs_quoting): Return `int'. (quote_arg): Add proper casts to malloc and realloc. * src/libs/libgroff/spawnvp.c: Compile code only for MS-DOS and various MS Windows environments. (spawnvp_wrapper): Add proper cast to malloc. * src/preproc/eqn/box.h: Remove redundant declarations of `make_script_box', `make_mark_box' and `make_lineup_box'. * src/preproc/eqn/eqn.y: Remove redundant declaration of `strsave'. * src/preproc/eqn/script.cpp, src/preproc/eqn/pile.cpp: Some local variable renamings. * src/preproc/grn/hpoint.cpp: Some local variable renamings. * src/preproc/grn/hgraph.cpp: Some local variable renamings. (dx, dy): Renamed functions to... (deltax, deltay): This. * src/preproc/grn/main.cpp: Some local variable renamings. (deffont): Add `const'. (initpic, conv): Use cast for string constant. * src/preproc/html/pre-html.cpp: Some local variable renamings. (makeFileName, alterDeviceTo, addZ): Use cast for string constant. (char_buffer::run_output_filter): Second argument is unused. * src/preproc/html/pushback.cpp: Some local variable renamings. * src/preproc/pic/pic.y: Remove redundant declaration of `do_copy'. * src/preproc/pic/object.cpp: Some local variable renamings. * src/preproc/refer/label.y (lookup_label): Remove redundant declaration of local variable. * src/preproc/soelim.cpp: Remove redundant declaration of `interpret_lf_args'. * src/preproc/tbl/main.cpp: Some local variable renamings. * src/roff/groff/groff.cpp (main): Use cast for string constant. * src/roff/groff/pipeline.c: Enclose declarations of `error', `c_fatal', and `i_to_a' with `extern "C"' for C++. Don't use C++-style comments. * src/roff/troff/env.h: Remove redundant declaration of `title'. * src/roff/troff/node.h, src/roff/troff/env.cpp, src/roff/troff/div.cpp, src/roff/troff/node.cpp: Some local variable renamings. * src/roff/troff/div.h: Remove redundant declaration of `end_diversions'. * src/roff/troff/troff.h: Remove redundant declaration of `cleanup_and_exit' * src/roff/troff/input.cpp: Remove redundant declaration of `handle_first_page_transition' and `process_input_stack'. * src/utils/hpftodit.cpp: Some local variable renamings. * src/utils/indxbib/signal.c: Enclose functions with `extern "C"' for C++. Don't define RETSIGTYPE. * src/utils/indxbib/indxbib.cpp: Some local variable renamings. * src/utils/pfbtops/pfbtops.cpp: Don't use K&R style. (error): Use `const' in argument. (main): Remove redundant declaration of `optind'. Move declaration of `Version_string' to top-level. * PROBLEMS: Document difficulties compiling signal.c if a C++ compiler is used for C. * Makefile.sub (DISTCLEANFILES): Add `test-groff'.
* Support multiple calls of .Lb in LIBRARY section.wlemb2003-09-201-9/+27
| | | | | | | | | | | | | | * tmac/doc-common (doc-in-library-section): New register. (doc-section-library): New string. (Sh): Set `doc-in-library-section'. (Rd): Updated. * tmac/doc-syms (Lb): Insert breaks before and after arguments if in LIBRARY section. * tmac/doc.tmac (doc-save-global-vars): Updated. * NEWS, tmac/groff_mdoc.man: Updated. * tmac/doc-common (doc-default-operating-system): New variable. (Os): Use it.
* * tmac/doc.tmac (doc-do-func, doc-do-func-args): Don't print a commawlemb2003-07-031-3/+25
| | | | | | | | | | | | | | | | | after `/*' and `*/'. Fix spacing. (Fn, Fo): Reduce indentation in synopsis. * tmac/doc-common (doc-check-depth): New macro. (doc-end-macro, Sh, Ss): Use it. (Cd): Fix behaviour in synopsis. (In): Make it parsed and callable. If not in the synopsis, represent the C header file enclosed in angle brackets. (doc-str-Rv-std-suffix, doc-str-Rv-stds-suffix, doc-str-Rv-std0): Use minus, not hyphen. * tmc/groff_mdoc.man: Updated.
* * tmac/doc-common (doc-header): Emit vertical space of 1v instead ofwlemb2003-05-031-1/+4
| | | | `doc-header-space' after header line if register `cR' is set.
* * tmac/doc-common (Nd): Use \[em].wlemb2003-05-021-1/+1
| | | | | | | | | | | * tmac/doc-ditroff, tmac/doc-nroff (doc-header-space, doc-footer-space): Initialize to 0.5i. (doc-setup-page-layout): Don't set doc-header-space and doc-footer-space. * REVISION: Set to 1. * doc/pic.ms: Document possible problems with `figname'.
* * doc/texinfo.tex: New version 2003-02-11.06.wlemb2003-02-271-6/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * tmac/doc-common (Dt): Don't emit warning for unknown section. * tmac/groff_mdoc.man: Fix description of `Dt'. * font/devps/prologue.ps: Fix for included Postscript that does a setpagedevice -- which is now safely ignored. * NEWS: Updated. * src/devices/grops/ps.cc: Now sets the page size in the generated document. This is done in two ways: Via a %%-comment for gv and the like, and via a PageSize and setpagedevice for programs that understands Postscript proper, like ps2pdf. * src/devices/grops/ps.h: New broken-flag to avoid page size definition, if required. * src/devices/grops/grops.man: New broken-flag 16 mentioned. * doc/Makefile.in: Added -nosetpage flag (via @pnmtops_nosetpage@). Not really necessary due to the fix in prologue.ps, but cleaner: Such information does not belong in an .eps file. * doc/Makefile.sub: See doc/Makefile.in. * aclocal.m4 (GROFF_PNMTOPS_NOSETPAGE): Use P2 format for testing instead of P1 since the latter is broken in some versions of netpbm. * configure: Updated.
* Fix computation of .trunc register. Additionally, its value (andwlemb2002-10-301-1/+0
| | | | | | | | | | | | | | | | | | | | | | the value of the .ne register) is now always set before entering the trap. * src/roff/troff/div.cc (diversion::need): Set `truncated_space' and `needed_space' before calling `space'. (top_level_diversion::space): Remove special code for 'sp before the first page. Call `begin_page' with the discarded space as a parameter. (top_level_diversion::begin_page): Add optional parameter to set `truncated_space'. * src/roff/troff/div.h: Updated. * doc/groff.texinfo: Improve documentation of .sp, \n[.trunc], and \n[.ne]. * tmac/an-old.tmac (SH, SS, TP, IP, HP, TS): Undo change 2002-10-26. (LP): Remove superfluous call to `br'. * tmac/doc-common (doc-paragraph): Undo change 2002-10-26. * tmac/doc.tmac (Bd, Bl, doc-set-vertical-and-indent): Ditto.
* * tmac/doc-ditroff: Remove useless switch/variable -rC.wlemb2002-10-261-10/+12
| | | | | | | | | | | | | | | (doc-setup-header): Don't set page register `%'. * tmac/doc-nroff: Remove variable `C'. (doc-setup-page-layout): Set doc-header-space to .5i unconditionally. (doc-setup-header): Don't set page register `%'. Don't call `bp'. * tmac/doc-common (doc-header): Call `ns'. (doc-paragraph): Protect .sp with .br so that it survives the implicit new-page trap. * tmac/doc.tmac (Bp, Bl, doc-set-vertical-and-indent): Ditto. * tmac/doc*:Replace ' with . for consistency in all mdoc-related files if no effect.
* * tmac/doc-common (Ss): Add final `.ns' (similar to `.Sh') towlemb2002-10-071-7/+16
| | | | | | | | | | | | | | | | | | | | | | suppress additional whitespace after the header. * tmac/doc-ditroff, tmac/doc-nroff (Am): New string to be in sync with NetBSD. * src/preproc/grn/grn.man, tmac/groff_mdoc.man, NEWS: Updated. * tmac/doc-common(doc-volume-operating-system-ateol): New flag. (Dt): Use it to improve language localization (especially Russian and French). * src/preproc/grn/gprint.h (BSPLINE, BEZIER): New macros. * src/preproc/grn/hdb.cc (DBGetType): Parse spline and bezier drawing commands. * src/preproc/grn/hgraph.cc (drawwig): Add parameter to control curve type. Call `picurve' for BSPLINE. (HGPrintElt): Handle BSPLINE. * src/preproc/grn/README: Document it.
* * tmac/doc-common (ds-operating-system-FreeBSD-4.*): New versionwlemb2002-09-281-0/+4
| | | | | | strings. * src/roff/troff/node.cc (bracket_node::copy): Check `list' != 0.
* Changing the substring request to make it fit better with otherwlemb2002-07-071-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | string manipulation functions in other programming languages: Index 0 is now the first character in the string, and index -1 indicates the last character. Since this request didn't work properly anyway in the last release, it doesn't harm too much to change the syntax. * src/roff/troff/input.cc (substring_macro): Use loops to get the real string length (ignoring COMPATIBLE_SAVE and COMPATIBLE_RESTORE) and offsets. Implement change described above. * man/groff_char.man, tmac/doc-common (doc-header), tmac/doc.tmac (doc-do-Bd-args, doc-do-Bl-args: Changed accordingly. * NEWS, doc/groff.texinfo, man/groff_diff.man: Updated. Make .chop work with .de1 and friends. COMPATIBLE_SAVE and COMPATIBLE_RESTORE are completely ignored. * src/roff/troff/input.cc (char_list::set, char_list::get): New functions. (macro): `length' field renamed to `len'. Added new field `empty_macro' (1 if macro is empty), to be used instead of checking `len'. Updated all callers. (macro::empty): Updated. (macro::length, macro::set, macro::get): New functions. (macro::append): Ignore COMPATIBLE_SAVE and COMPATIBLE_RESTORE. Set `empty_macro'. (chop_macro): Check and remove trailing COMPATIBLE_SAVE/ COMPATIBLE_RESTORE pairs. (asciify): Ignore COMPATIBLE_SAVE and COMPATIBLE_RESTORE. * src/roff/troff/request.h: Updated. * doc/groff.texinfo: Document .chop's behaviour better. * doc/pic.ms: Fix documentation for the addition of positions. * tmac/doc.tmac, tmac/an-old.tmac: Need groff version 1.18.
* Add new escape \F to switch font family.wlemb2002-04-151-8/+8
| | | | | | | | | | | | | | | | | | * src/roff/troff/input.cc (token::next): Handle \F. * src/roff/troff/env.cc (environment::set_family): Handle `interrupted' flag. * NEWS, doc/groff.texinfo, man/groff_diff.man, man/groff.man: Document it. * tmac/doc.tmac (doc-tag-list): Use \Z to avoid stretching of spaces in tags. * tmac/Xps.tmac: Remove some redundant code. * tmac/doc-common, tmac/doc-ditroff, tmac/doc-nroff, tmac/doc.tmac, tmac/dvi.tmac, contrib/groffer/groffer.man, man/roff.man, man/groff_out.man, man/groff.man, man/groff_diff.man, src/roff/groff/groff.man: Replace \f[P] with \f[].
* * Makefile.comm (.y.o): New rule for make on Solaris 2.5.1 -- thewlemb2002-03-231-1/+1
| | | | | | | | | | | internal .y.o rule took precendence over the .y.cc rule, compiling the yacc files with gcc instead of g++. * tmac/dvi.tmac: Add replacement font for `CB'. * tmac/doc.tmac: s/request/macro/ in messages. (doc-generic-macro): Improve error message. * tmac/groff_mdoc.man: Minor improvements.
* * tmac/doc.common: Initialize %I register for the %I macro towlemb2002-01-181-0/+1
| | | | | | avoid (harmless) warning. * tmac/doc.tmac (Bd): There is no reason to enforce -compact when in the SYNOPSIS section.
* * tmac/doc-common (Dt): Change output of architecture strings.wlemb2001-12-251-75/+70
| | | | | Do some syntax cleanup. * tmac/groff_mdoc.man: Updated.
* * tmac/doc-common, tmac/doc-syms: Small updates.wlemb2001-12-221-0/+3
| | | | | | | | | | * tmac/an-old.tmac (an-p-footer): Set title length in environment 1. * MANIFEST: New file. * src/preproc/grn/grn.man: Updated. * src/preproc/grn/hdb.cc (MAXSTRING_S): New macro. (DBRead): Use it.
* * NEWS, man/groff_differences.man, doc/groff.texinfo: Updated.wlemb2001-11-161-0/+13
| | | | | | | | | | | | * man/Makefile.sub: Include groff_differences.man. * VERSION: Set to 1.18. * REVISION: Set to 0. * src/roff/troff/input.cc (do_define_macro): Allow whitespace before the second dot (or ending macro name) to end a macro. * doc/groff.texinfo: Doc fix. * tmac/doc-common (doc-header): Handle very long document titles better. * tmac/doc.tmac (doc-do-Bl-args): Fix .substring requests.
* * tmac/doc.tmac (Ex): New implementation.wlemb2001-08-141-0/+1
| | | | * tmac/doc-common, tmac/groff_tmac.man: Updated.
* * tmac/doc-common, tmac/doc.tmac (doc-display-ft-stack,wlemb2001-07-031-0/+2
| | | | | doc-display-ps-stack): Implement font and font size stack for displays.
* Added skeleton macro for defunct macros.wlemb2001-04-101-10/+1
| | | | | | | | | | | | | | | Updated documentation. * tmac/doc.tmac (doc-defunct-macro): New macro. (Db, Ds, Ex, Or, Sf): Reimplemented using this macro. (doc-restore-global-vars): Fixed typo. * tmac/doc-common: Removed `Or' and `Sf' registers. Moved obsolete `Ds' macro to doc.tmac. * tmac/groff_mdoc.man: Bump document date. Document `.Vt' under ``Variable Types''. Removed documentation for obsolete `.Or' macro.
* Fix indentation in SYNOPSIS.wlemb2001-04-091-10/+17
| | | | | | | | | | | | | | | | | | | | | | | | Updated to include changes of latest BSD mdoc version (basically, `.Fn' and `.Fc' put a final semicolon after a function declaration in the SYNOPSIS section. * tmac/doc.tmac (doc-in-synopsis-count): Replaced with ... (doc-in-synopsis-section): New variable. Updated all related functions. (doc-indent-synopsis-active): New register. (Nd, Fn, Fo): Use it. (Cd): It requires manipulation of n[doc-indent-synopsis] so that `.Cd' with long argument line produces indented wrapped lines. Also, the misplaced `.nop *[doc-Nm-font]c'' caused extra undesirable line break to be output. (doc-do-func-decl, Nm, Vt, Fn, Fo): Remove extraneous calls to `.rs'. (Fn, Fc): Add final `;' to output. (doc-save-global-vars, doc-restore-global-vars): Updated. * tmac/doc-common: Remove `Ex' register. Updated. * tmac/doc-ditroff, tmac/doc-nroff, tmac/doc-syms: Updated copyright.
* Fixes from Ruslan. See ChangeLog.wlemb2001-04-061-3/+1
|
* Remove .Ld from mdoc package; replace it with special handling ofwlemb2001-03-301-33/+26
| | | | | | | | | | | | | | | | | `...'. * tmac/doc-common: Remove `Ld' register. Uncomment `doc-volume-ds-*' strings. Remove `doc-operating-system-default'. (Os): Updated. * tmac/doc-syms (Ld): Removed. * tmac/doc.tmac (doc-parse-args, doc-parse-arg-vector): Handle `...' specially. * NEWS: Updated. * tmac/groff_mdoc.man: Many fixes and updates. * tmac/www.tmac: Save compatibility mode.
* Replaced mdoc implementation. The new version is `state of thewlemb2001-03-231-343/+920
| | | | | | | | | | | | | | | | | | | 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.
* Initial revisionwlemb2000-02-061-0/+450