Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | Have the standard manpage header and footer print on every page of -Tps | 2010-06-09 | 1 | -2/+2 | ||
| | | | | | | | | | | | | | | | output. This is more tricky than you may think: we can't just call the header function out-of-state (i.e., before a flushln has occured) because we'd clobber our current state. Thus, we call at the beginning and dump the output into an auxiliary buffer. For the record, I don't think there's any other clean way to do this. The only other Way That Works is to copy-aside *all* termp state, zero it, and do the necessary headf/footf. This is just as complex, as memory needs to be alloc'd and free'd per margin. Unfortunately, this prohibits page numbering (the margin is only printed once), so I'll probably end up re-writing this down the line. | |||||
* | First check-in of PostScript output. This does not change any logic | 2010-06-07 | 1 | -9/+15 | ||
| | | | | | | within term.c, but does add a small shim over putchar() that switches on the output engine. Prints, for this initial version, only monospace and without font decorations. It's a start. | |||||
* | Allow bad -man dates to flow verbatim into the front-ends. Noted by | 2010-05-26 | 1 | -2/+5 | ||
| | | | | Ulrich Spoerlein. | |||||
* | Enable the unified error/warning enumeration in mandoc.h that's | 2010-05-17 | 1 | -1/+2 | ||
| | | | | | | | | | | | stringified in main.c. Allow `An' to handle an argument and child (with a warning). Allow `Rv' and `Ex' to work without a prior `Nm' as groff does (with a warning). Allow inconsistent column syntax to only raise a warning. | |||||
* | Add support for .AT. Properly implement .UC. Add regress tests. | 2010-05-17 | 1 | -1/+2 | ||
| | ||||||
* | groff uses three vspaces before the footer too. | 2010-05-17 | 1 | -1/+3 | ||
| | ||||||
* | Remove `am', `ami', `de', `dei', and `.' from -man, as they're now in the ↵ | 2010-05-15 | 1 | -6/+1 | ||
| | | | | roff preprocessor. | |||||
* | Pull `ig' out of -man and leave it the roff preparser. | 2010-05-15 | 1 | -2/+1 | ||
| | ||||||
* | For .IP groff requires a single space only after the head, adopt. | 2010-05-15 | 1 | -3/+1 | ||
| | ||||||
* | Make the output width an option for ascii_alloc and use that to compute | 2010-05-15 | 1 | -3/+7 | ||
| | | | | the default margin. Hard-code 80 chars/line for now. | |||||
* | Removed restriction on integer manual sections in -man. | 2010-05-15 | 1 | -2/+2 | ||
| | ||||||
* | End-of-sentence spacing for -man -Tascii. | 2010-05-12 | 1 | -1/+4 | ||
| | ||||||
* | Back out OpenBSD special case (ok Ingo Schwarze). | 2010-05-10 | 1 | -12/+12 | ||
| | ||||||
* | Proper leading spaces for new- and old-groff in -man -Tascii mode. | 2010-05-10 | 1 | -2/+20 | ||
| | ||||||
* | -man also now has unbound margins for literal context. | 2010-05-10 | 1 | -5/+3 | ||
| | ||||||
* | Using man_node_delete() instead of man_node_free()/man_node_freelist() and ↵ | 2010-03-24 | 1 | -1/+9 | ||
| | | | | | | | friends (much simpler). Split blk_imp() into blk_exp() (explicit macros), blk_dotted() (roff macros), and the original. Added de, dei, am, ami, and ig roff macros (for now, these are discarded within the parse). | |||||
* | Fixed two very subtle bugs in retaining overstep and maxrmargin widths ↵ | 2010-03-23 | 1 | -2/+5 | ||
| | | | | between parse sequences. | |||||
* | Support for pod2man standard header macros (Vb, Ve, Sp). Based largely on a ↵ | 2010-03-23 | 1 | -10/+24 | ||
| | | | | set of patches by Ingo Schwarze. | |||||
* | Accomodate (libman) for next-line macros followed by non-text macros `na', ↵ | 2010-03-22 | 1 | -37/+44 | ||
| | | | | | | `sp', and `br'. Based on a patch by Ingo Schwarze. | |||||
* | Big check-in of compatibility layer. This should work on most major ↵ | 2010-01-01 | 1 | -6/+5 | ||
| | | | | architectures. Thanks to Joerg Sonnenberger. | |||||
* | Fixed \c support for all input and output modes (documented in mandoc_char.7). | 2009-11-12 | 1 | -12/+3 | ||
| | ||||||
* | Deprecated ".i <notext>" support (nobody uses it -- it can be re-added, but ↵ | 2009-11-12 | 1 | -14/+2 | ||
| | | | | adds a bit of complexity that I'd rather avoid). | |||||
* | Basically re-wrote -Tascii font handling: instead of incrementers for | 2009-11-12 | 1 | -80/+36 | ||
| | | | | | | | | | bold and underline, we use a stack (no cascading, no double-font-mode). Font modes with \f only affect the current stack point, as documented in mdoc.7 and man.7. While -mdoc stacks fonts with embedded macros, -man replaces them (the stack is always size 1). This works for all invocations in supported systems' manual corpora to date. It doesn't support groff's insanity with line-scoped \f as documented in mdoc.7. | |||||
* | Noted that -man text decoration is re-set when exiting a macro invocation. | 2009-11-10 | 1 | -2/+6 | ||
| | ||||||
* | Disable metafonts when printing document footer. | 2009-11-10 | 1 | -1/+3 | ||
| | ||||||
* | Consolidated `RI' and `IR' handlers (-man -Tascii). | 2009-11-05 | 1 | -25/+10 | ||
| | ||||||
* | Fixed `RI' (was reversed). | 2009-11-05 | 1 | -3/+3 | ||
| | ||||||
* | More lint fixes. | 2009-10-30 | 1 | -2/+1 | ||
| | | | | Removed err.h from inclusions (less main.c--still in progress). | |||||
* | Removed dynamic allocations of header/footer data. | 2009-10-27 | 1 | -18/+7 | ||
| | ||||||
* | Full `%U' support. | 2009-10-26 | 1 | -30/+30 | ||
| | | | | | | | `Lk' display fixed. Renamed arg2xxxx as a2xxxx for consistency. Renamed print_foot to print_man_foot for consistency. Removed default printing of `~' when `Lk' not provided (not sure where I got that from). | |||||
* | Added `PD' to -man (doesn't do anything, yet). | 2009-10-24 | 1 | -1/+4 | ||
| | ||||||
* | Fixed maddening mismatch between groff and strftime mismatch of day ("%e"). ↵ | 2009-10-22 | 1 | -7/+3 | ||
| | | | | Noted by Ulrich Sporlein. | |||||
* | Fixed strftime stray %d -> %e (pointed out by Ulrich Sporlein). | 2009-10-21 | 1 | -2/+2 | ||
| | ||||||
* | Lint fixes. | 2009-10-18 | 1 | -4/+4 | ||
| | ||||||
* | Made sure devices and formats recognise that -man and -mdoc have different ↵ | 2009-10-18 | 1 | -7/+11 | ||
| | | | | syntax for scaling widths: -mdoc assumes no unit means that the value is a string literal while -man instead uses the default vertical/horizontal scale. | |||||
* | Arbitrary horizontal and vertical scaling widths now handled by -mdoc -Tascii. | 2009-10-18 | 1 | -117/+51 | ||
| | | | | Terminal scaling backend pushed into term.c. | |||||
* | Fitted -man -Tascii with scaling units (.5i, etc.). | 2009-10-18 | 1 | -2/+45 | ||
| | ||||||
* | Added horizontal scaling units to -Tman -Tascii. | 2009-10-18 | 1 | -27/+46 | ||
| | ||||||
* | Moved output definitions into main.h. | 2009-10-13 | 1 | -8/+28 | ||
| | | | | Pushed terminal_{mdoc,man} into {mdoc,man}_term.c. | |||||
* | Consolidated some -man -Tascii functions. | 2009-10-08 | 1 | -58/+29 | ||
| | | | | Added many -man -Thtml functions (almost complete). | |||||
* | Header buffers in -man -Tascii are static. | 2009-10-07 | 1 | -8/+3 | ||
| | ||||||
* | Structural components of -man -Thtml in place (note that HP is the same as ↵ | 2009-10-04 | 1 | -2/+1 | ||
| | | | | IP, as HTML doesn't "do" this construction without fixed page widths). | |||||
* | Added initial -man framework for -Thtml. | 2009-10-03 | 1 | -2/+3 | ||
| | ||||||
* | Made tree/term/out() functions return void. | 2009-09-16 | 1 | -20/+13 | ||
| | | | | Put err() functions back into front-ends (no use making it needlessly complex). | |||||
* | Removed TERMP_BOLD, TERMP_UNDER, TERMP_STYLE in favour of recursive-friendly ↵ | 2009-09-15 | 1 | -35/+49 | ||
| | | | | | | increments. Cleaned up confusing behaviour of p->flags. | |||||
* | Added `UC' libman macro (has no effect). | 2009-08-22 | 1 | -2/+13 | ||
| | | | | | Corrected `UC' and `DT' not to print their arguments. Noted that `UC' and `DT' shouldn't be used. | |||||
* | FreeBSD fix (uqs@spoerlein.net). | 2009-08-21 | 1 | -1/+3 | ||
| | ||||||
* | Added `DT' macro (pointed out by joerg@netbsd.org). | 2009-08-20 | 1 | -2/+3 | ||
| | ||||||
* | `RS' blocks correctly formatting in output device. | 2009-08-19 | 1 | -20/+89 | ||
| | ||||||
* | Added RS/RE macro pair (had to adjust closing rules, sec/ssec/rs/par). | 2009-08-19 | 1 | -1/+3 | ||
| |