summaryrefslogtreecommitdiff
path: root/tmac/doc.tmac
Commit message (Collapse)AuthorAgeFilesLines
* [mdoc] Implement `.%C'.wl2013-07-311-0/+69
| | | | | * tmac/doc.tmac, tmac/doc-common: Do it. * tmac/groff_mdoc.man: Updated.
* [mdoc] Make `Fl' correctly restore fonts.wl2012-07-181-1/+1
| | | | * tmac/doc.tmac (doc-flag-recursion): Do it.
* Fix typos.wl2011-10-081-2/+2
| | | | Found by Kevin Lyda <kevin@ie.suberic.net>.
* [mdoc] Within .An, .Aq, .Ao, and .Ac now use `<' and `>'.wl2011-03-041-4/+16
| | | | | | | Problem reported by Ulrich Spörlein <uqs@spoerlein.net> * tmac/doc.tmac (Aq, Ao, Ac): Implement it to follow RFC 822 and RFC 2822.
* Implement `%U' in mdoc for URL references.wl2009-10-261-1/+70
| | | | | | | | | | | | * 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.tmac: Call `ec' before mapping characters.wl2009-04-011-3/+3
|
* * tmac/an-old.tmac, tmac/doc.tmac: For -Tutf8, map \-, -, ', and `wl2009-01-021-0/+13
| | | | conservatively to ASCII for the sake of easy cut and paste.
* Move comment lines to make it work without stripping. Suggested by Gunnarwl2007-10-201-10/+10
| | | | Ritter.
* * 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.tmac (Sm): Improved. It didn't work properly in manywl2005-01-241-25/+40
| | | | | | | | | cases. (Re): Emit a warning if called without `.Rs'. (doc-finish-reference): Use parameter for decreasing `doc-reference-count'. (doc-print-reference): Pass specific count parameters to `doc-finish-reference'.
* * tmac/doc.tmac (Ef): Restore doc-curr-font and doc-curr-size.wl2005-01-141-0/+2
|
* * tmac/doc.tmac (An): Fix error message.FDLwlemb2004-08-281-1/+1
|
* Support multiple calls of .Lb in LIBRARY section.wlemb2003-09-201-0/+2
| | | | | | | | | | | | | | * 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-reset-reference): Handle data for `%I' also.wlemb2003-09-091-1/+7
|
* * tmac/doc.tmac (Bd): Change to doc-Li-font later.wlemb2003-07-051-3/+5
| | | | * tmac/an-old.tmac [cR]: Redefine `bp' to avoid empty lines.
* * tmac/doc.tmac (doc-do-func, doc-do-func-args): Don't print a commawlemb2003-07-031-17/+69
| | | | | | | | | | | | | | | | | 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.tmac (doc-tag-list): Force horizontal mode after tagwlemb2003-05-191-0/+1
| | | | to make items work which consist only of a tag.
* * tmac/doc.tmac (doc-tag-list): Don't use \Z to assure that spaceswlemb2003-05-181-7/+7
| | | | | | | | | | | | | | | | | aren't stretched in a tag (this can fail with unformatted boxes). Instead, insert a break and go back one line. * src/roff/troff/input.cc (return_macro_request): If called with argument pop macro twice. We need this to trace `return'. * tmac/trace.tmac: Handle `return'. Fix typos. * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo: Document. * tmac/groff_ms.man, doc/groff.texinfo: Improve documentation of registers `FPS', `FVS', and `FPD'.
* * font/devX*/S: Regenerated.wlemb2002-12-211-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * font/devdvi/generate/ec.map: Remove `pl'. * font/devdvi/generate/tc.map: Remove `mi', `14', `12', `34'. * font/devdvi/*{TC,EC}: Regenerated. * font/devhtml/R.proto: Add `-+'. Remove double entries for `rk', `lk', `lt', `rt', `rb', `lb'. * font/devlbp/*: Remove `or'. * font/devlj4/generate/special.map: Remove `or'. * font/devlj4/S: Regenerated. * font/devps/generate/textmap: Add `fiveeighths', `oneeighth', `seveneighths', `threeeighths'. Remove `plusmath'. Replace `minusplus' with `uni2213'. * font/devps/symbolmap: Regenerated. * font/devutf8/R.proto: Replace `shc' with unnamed glyph. Add `-+'. * src/roff/troff/charinfo.h (charinfo): Add `is_normal' inline function. * src/roff/troff/node.cc (troff_output_file::put_char_width): Call glyph_color and fill_color even if tcommand_flag isn't set. (make_node, node::add_char): Check not ci->is_fallback but ci->is_normal. * tmac/lj4.tmac, tmac/lbp.tmac: Define `or'. * tmac/ec.tmac: Add remove entry for `f/'. Don't remove `12', `14', `34'. Define `pl' to be always roman. * tmac/ps.tmac (ps-frac, ps-frac-mono): New macros. Define `18', `38', `58', `78'. * tmac/tty.tmac: Add `-+'. * tmac/dvi.tmac: Define `f/'. (dvi-frac): Use `f/'. * tmac/X.tmac (X-frac, X-frac-mono): New macros. Define `18', `38', `58', `78'.
* Fix computation of .trunc register. Additionally, its value (andwlemb2002-10-301-9/+3
| | | | | | | | | | | | | | | | | | | | | | 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-12/+14
| | | | | | | | | | | | | | | (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.
* Changing the substring request to make it fit better with otherwlemb2002-07-071-9/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-33/+33
| | | | | | | | | | | | | | | | | | * 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-16/+17
| | | | | | | | | | | 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-6/+5
| | | | | | avoid (harmless) warning. * tmac/doc.tmac (Bd): There is no reason to enforce -compact when in the SYNOPSIS section.
* Use macros of the official interface to test for reloading.wlemb2001-11-281-1/+1
|
* * tmac/an-old.tmac, tmac/doc.tmac, contrib/mm/m.tmac: Assure thatwlemb2001-11-281-0/+3
| | | | | | the macro package is loaded only once. * tmac/groff_man.man: Minor cosmetic fix.
* * NEWS, man/groff_differences.man, doc/groff.texinfo: Updated.wlemb2001-11-161-2/+2
| | | | | | | | | | | | * 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 (doc-flag-recursion): Protect arguments againstwlemb2001-10-191-1/+1
| | | | being handled as end-of-sentence characters,
* * tmac/doc.tmac (Ex): New implementation.wlemb2001-08-141-3/+61
| | | | * tmac/doc-common, tmac/groff_tmac.man: Updated.
* * tmac/doc.tmac (Rv): Implement support for 0 or more than 1wlemb2001-08-141-13/+48
| | | | | argument. * tmac/groff_tmac.man: Updated.
* 2001-07-12 Ruslan Ermilov <ru@FreeBSD.org>wlemb2001-07-121-52/+99
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Merge -xwidth into -width. Add -xwidth functionality to -column also. * tmac/doc.tmac (Bl): Add dummy doc-typeXXX and doc-spaceXXX to avoid warning. (doc-do-Bl-args): Merge -xwidth code with -width. Test whether string immediately following a leading dot starts with a valid mdoc argument. Add similar code to the -column branch. (doc-Bl-usage): Updated. * groff_mdoc.man: s/-xwidth/-width/. 2001-07-12 Gaius Mulley <gaius@glam.ac.uk> * src/devices/grohtml/post-html.cc (text_glob::is_br): Stop titles running into centered or non-formatted text. 2001-07-11 Werner LEMBERG <wl@gnu.org> Introduce short and long prefixes to have the selection at run-time whether there is a 8+3 limit for names of temporary files. * src/libs/libgroff/tmpfile.cc (TMPFILE_PREFIX): Replaced with... (TMPFILE_PREFIX_SHORT, TMPFILE_PREFIX_LONG): This. (tmpfile_prefix, tmpfile_prefix_len, use_short_prefix): New variables. (temp_init): New global structure to initialize above three variables. (xtmptemplate): Use two parameters for long and short prefix. Simplify code use above three variables. (xtmpfile): Use long and short prefixes as parameters. * src/include/lib.h: Updated. * src/preproc/html/pre-html.cc ({PAGE,PS,REGION}_TEMPLATE): Replace with ... ({PAGE,PS,REGION}_TEMPLATE_{SHORT,LONG}): This. (createAllPages, makeTempFiles): Updated. 2001-07-09 Werner LEMBERG <wl@gnu.org> * REVISION: Increased to 3.
* * tmac/doc.tmac (Rv): Make `Rv' really not parseable.wlemb2001-07-071-15/+7
| | | | | Fix synopsis. * tmac/groff_mdoc.man: Fix synopsis.
* * tmac/doc.tmac (doc-inset-list, doc-hang-list, doc-ohang-list):wlemb2001-07-051-0/+12
| | | | Restore `doc-Pa-font'.
* * tmac/doc-common, tmac/doc.tmac (doc-display-ft-stack,wlemb2001-07-031-4/+28
| | | | | doc-display-ps-stack): Implement font and font size stack for displays.
* fix compatibility issues with man and mdocwlemb2001-05-081-1/+1
|
* * 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).
* Added skeleton macro for defunct macros.wlemb2001-04-101-42/+29
| | | | | | | | | | | | | | | 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-82/+84
| | | | | | | | | | | | | | | | | | | | | | | | 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.
* * tmac/doc.tmac (Cd): Simplify code.wlemb2001-04-071-29/+8
| | | | * tmac/groff_mdoc.man: Document some behaviour of `Cd' request.
* Fixes from Ruslan. See ChangeLog.wlemb2001-04-061-75/+58
|
* Remove .Ld from mdoc package; replace it with special handling ofwlemb2001-03-301-3/+9
| | | | | | | | | | | | | | | | | `...'. * 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.
* fixing subfile postfixeswlemb2001-03-231-4/+4
|
* Replaced mdoc implementation. The new version is `state of thewlemb2001-03-231-3311/+6118
| | | | | | | | | | | | | | | | | | | 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.
* Convert macros `tmac.XXX' to `XXX.tmac'. Special cases:wlemb2000-10-261-0/+3425
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).