Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Collapse `nf', `fi', `Vb', and `Ve' into one function as in man_html.c.VERSION.1.10.5.PREPDF | Kristaps Dzonsons | 2010-07-23 | 1 | -18/+17 |
| | |||||
* | Added `in' macro support for -man -Tascii. This is not yet supported in | Kristaps Dzonsons | 2010-07-22 | 1 | -0/+43 |
| | | | | -Thtml (I'm surprised to note that neither is LITERAL mode). | ||||
* | Bring `sp', `Sp', and `br' behaviour for -man in line with how -mdoc's | Kristaps Dzonsons | 2010-07-22 | 1 | -15/+10 |
| | | | | | is handled: correctly. This removes superfluous line breaks in many -man manuals. | ||||
* | Have `nf' and `fi' flush lines. This is necessary or the LITERAL will | Kristaps Dzonsons | 2010-07-22 | 1 | -0/+2 |
| | | | | | | be meaningless when invoked within a non-flushing context. This based on a formatting bug report submitted by Jonathon Gray (jsg@) via Christian Weisgerber (naddy@). | ||||
* | correct lots of copyright notices; | Ingo Schwarze | 2010-07-13 | 1 | -1/+1 |
| | | | | ok kristaps@ | ||||
* | Re-constitution of `ds' symbol processing. First, push the | Kristaps Dzonsons | 2010-07-07 | 1 | -1/+0 |
| | | | | | | | | | roff_getstr() family of functions into roff.c with the "first_string" directly in struct roff. Second, pre-process each line for reserved words in libroff, splicing and re-running a line if it has one (this allows defined symbols to be macros). Remove term.c's invocation of the roff_getstrn() function. Removed function documentation in roff.3 and added roff.7 `ds' documentation. | ||||
* | Churn-ish check-in getting mdoc_parseln() and man_parseln() to accept a | Kristaps Dzonsons | 2010-06-26 | 1 | -0/+1 |
| | | | | const struct regset pointer. No functionality. | ||||
* | Initial chunks for variable-width fonts. Pushes all width calculations | Kristaps Dzonsons | 2010-06-25 | 1 | -40/+38 |
| | | | | | | | | in mdoc_term.c and man_term.c down into term.c. This is still not implemented in term.c, although stubs for width calculations are in place. From now on, offset, rmargin, and other layout variables are abstract screen widths. They will resolve to the the familiar values for -Tascii but -Tps will eventually use points instead of chars. | ||||
* | Churn as I finish email address migration kth.se -> bsd.lv. | Kristaps Dzonsons | 2010-06-19 | 1 | -1/+1 |
| | |||||
* | Fix a regression that crept in in man_term.c 1.73 and mdoc_term.c 1.144. | Ingo Schwarze | 2010-06-10 | 1 | -2/+2 |
| | | | | | | | | | | | | | | | | When the title line uses special characters, mandoc will segfault. Thus, first set up the character tables, then print the header, as we always did. Found in OpenBSD /usr/src/usr.sbin/bind/bin/check/named-checkconf.8. While here, set p->tabwidth in terminal_man() for symmetry with terminal_mdoc(), as suggested by millert@ (and already committed to OpenBSD earlier). Since 5 is the default, this is not strictly required, but it is certainly clearer and more robust. "looks fine" kristaps@ | ||||
* | Have the standard manpage header and footer print on every page of -Tps | Kristaps Dzonsons | 2010-06-09 | 1 | -1/+1 |
| | | | | | | | | | | | | | | | 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 | Kristaps Dzonsons | 2010-06-07 | 1 | -8/+14 |
| | | | | | | 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 | Kristaps Dzonsons | 2010-05-26 | 1 | -1/+4 |
| | | | | Ulrich Spoerlein. | ||||
* | Enable the unified error/warning enumeration in mandoc.h that's | Kristaps Dzonsons | 2010-05-17 | 1 | -0/+1 |
| | | | | | | | | | | | 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. | Joerg Sonnenberger | 2010-05-17 | 1 | -0/+1 |
| | |||||
* | groff uses three vspaces before the footer too. | Joerg Sonnenberger | 2010-05-17 | 1 | -0/+2 |
| | |||||
* | Remove `am', `ami', `de', `dei', and `.' from -man, as they're now in the ↵ | Kristaps Dzonsons | 2010-05-15 | 1 | -5/+0 |
| | | | | roff preprocessor. | ||||
* | Pull `ig' out of -man and leave it the roff preparser. | Kristaps Dzonsons | 2010-05-15 | 1 | -1/+0 |
| | |||||
* | For .IP groff requires a single space only after the head, adopt. | Joerg Sonnenberger | 2010-05-15 | 1 | -2/+0 |
| | |||||
* | Make the output width an option for ascii_alloc and use that to compute | Joerg Sonnenberger | 2010-05-15 | 1 | -2/+6 |
| | | | | the default margin. Hard-code 80 chars/line for now. | ||||
* | Removed restriction on integer manual sections in -man. | Kristaps Dzonsons | 2010-05-15 | 1 | -1/+1 |
| | |||||
* | End-of-sentence spacing for -man -Tascii. | Kristaps Dzonsons | 2010-05-12 | 1 | -0/+3 |
| | |||||
* | Back out OpenBSD special case (ok Ingo Schwarze). | Kristaps Dzonsons | 2010-05-10 | 1 | -11/+11 |
| | |||||
* | Proper leading spaces for new- and old-groff in -man -Tascii mode. | Kristaps Dzonsons | 2010-05-10 | 1 | -1/+19 |
| | |||||
* | -man also now has unbound margins for literal context. | Kristaps Dzonsons | 2010-05-10 | 1 | -4/+2 |
| | |||||
* | Using man_node_delete() instead of man_node_free()/man_node_freelist() and ↵ | Kristaps Dzonsons | 2010-03-24 | 1 | -0/+8 |
| | | | | | | | 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 ↵ | Kristaps Dzonsons | 2010-03-23 | 1 | -1/+4 |
| | | | | between parse sequences. | ||||
* | Support for pod2man standard header macros (Vb, Ve, Sp). Based largely on a ↵ | Kristaps Dzonsons | 2010-03-23 | 1 | -9/+23 |
| | | | | set of patches by Ingo Schwarze. | ||||
* | Accomodate (libman) for next-line macros followed by non-text macros `na', ↵ | Kristaps Dzonsons | 2010-03-22 | 1 | -36/+43 |
| | | | | | | `sp', and `br'. Based on a patch by Ingo Schwarze. | ||||
* | Big check-in of compatibility layer. This should work on most major ↵ | Kristaps Dzonsons | 2010-01-01 | 1 | -5/+4 |
| | | | | architectures. Thanks to Joerg Sonnenberger. | ||||
* | Fixed \c support for all input and output modes (documented in mandoc_char.7). | Kristaps Dzonsons | 2009-11-12 | 1 | -11/+2 |
| | |||||
* | Deprecated ".i <notext>" support (nobody uses it -- it can be re-added, but ↵ | Kristaps Dzonsons | 2009-11-12 | 1 | -13/+1 |
| | | | | adds a bit of complexity that I'd rather avoid). | ||||
* | Basically re-wrote -Tascii font handling: instead of incrementers for | Kristaps Dzonsons | 2009-11-12 | 1 | -79/+35 |
| | | | | | | | | | 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. | Kristaps Dzonsons | 2009-11-10 | 1 | -1/+5 |
| | |||||
* | Disable metafonts when printing document footer. | Kristaps Dzonsons | 2009-11-10 | 1 | -0/+2 |
| | |||||
* | Consolidated `RI' and `IR' handlers (-man -Tascii). | Kristaps Dzonsons | 2009-11-05 | 1 | -24/+9 |
| | |||||
* | Fixed `RI' (was reversed). | Kristaps Dzonsons | 2009-11-05 | 1 | -2/+2 |
| | |||||
* | More lint fixes. | Kristaps Dzonsons | 2009-10-30 | 1 | -1/+0 |
| | | | | Removed err.h from inclusions (less main.c--still in progress). | ||||
* | Removed dynamic allocations of header/footer data. | Kristaps Dzonsons | 2009-10-27 | 1 | -17/+6 |
| | |||||
* | Full `%U' support. | Kristaps Dzonsons | 2009-10-26 | 1 | -29/+29 |
| | | | | | | | `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). | Kristaps Dzonsons | 2009-10-24 | 1 | -0/+3 |
| | |||||
* | Fixed maddening mismatch between groff and strftime mismatch of day ("%e"). ↵ | Kristaps Dzonsons | 2009-10-22 | 1 | -6/+2 |
| | | | | Noted by Ulrich Sporlein. | ||||
* | Fixed strftime stray %d -> %e (pointed out by Ulrich Sporlein). | Kristaps Dzonsons | 2009-10-21 | 1 | -1/+1 |
| | |||||
* | Lint fixes. | Kristaps Dzonsons | 2009-10-18 | 1 | -3/+3 |
| | |||||
* | Made sure devices and formats recognise that -man and -mdoc have different ↵ | Kristaps Dzonsons | 2009-10-18 | 1 | -6/+10 |
| | | | | 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. | Kristaps Dzonsons | 2009-10-18 | 1 | -116/+50 |
| | | | | Terminal scaling backend pushed into term.c. | ||||
* | Fitted -man -Tascii with scaling units (.5i, etc.). | Kristaps Dzonsons | 2009-10-18 | 1 | -1/+44 |
| | |||||
* | Added horizontal scaling units to -Tman -Tascii. | Kristaps Dzonsons | 2009-10-18 | 1 | -26/+45 |
| | |||||
* | Moved output definitions into main.h. | Kristaps Dzonsons | 2009-10-13 | 1 | -7/+27 |
| | | | | Pushed terminal_{mdoc,man} into {mdoc,man}_term.c. | ||||
* | Consolidated some -man -Tascii functions. | Kristaps Dzonsons | 2009-10-08 | 1 | -57/+28 |
| | | | | Added many -man -Thtml functions (almost complete). |