Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | Have the standard manpage header and footer print on every page of -Tps | Kristaps Dzonsons | 2010-06-09 | 1 | -7/+10 | |
| | | | | | | | | | | | | | | | 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. | |||||
* | Broke ascii_*() functions into term_ascii.c | Kristaps Dzonsons | 2010-06-08 | 1 | -7/+18 | |
| | | | | Made low-level engine functions into function pointers. | |||||
* | No functionality changes: just restructuring. Deprecated | Kristaps Dzonsons | 2010-06-08 | 1 | -1/+3 | |
| | | | | | terminal_free() in favour of ps_free() and ascii_free(). Moved ps_*() functions into term_ps.c so that they don't clutter up term.c. | |||||
* | First check-in of PostScript output. This does not change any logic | Kristaps Dzonsons | 2010-06-07 | 1 | -1/+23 | |
| | | | | | | 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. | |||||
* | sync to OpenBSD: | Ingo Schwarze | 2010-05-24 | 1 | -1/+2 | |
| | | | | | | | save the visual cursor position in term_flushln() and use that to avoid multiple blank lines in nested lists while still putting subsequent empty list tags each on their own line; "go ahead" kristaps@ | |||||
* | Handle literal tab characters both in literal context (.Bd -literal) | Ingo Schwarze | 2010-05-24 | 1 | -1/+2 | |
| | | | | | | | | and outside. In literal context, tab stops are at each eigth column; outside, they are at each fifth column. from OpenBSD mdoc_term.c rev. 1.75; "commit" kristaps@ | |||||
* | Make the output width an option for ascii_alloc and use that to compute | Joerg Sonnenberger | 2010-05-15 | 1 | -1/+2 | |
| | | | | the default margin. Hard-code 80 chars/line for now. | |||||
* | Tiny EOS patch. Back-end cues front-end through flag. Front-end cues ↵ | Kristaps Dzonsons | 2010-05-12 | 1 | -1/+2 | |
| | | | | output engine with flag. | |||||
* | -man also now has unbound margins for literal context. | Kristaps Dzonsons | 2010-05-10 | 1 | -1/+3 | |
| | ||||||
* | Fixed two very subtle bugs in retaining overstep and maxrmargin widths ↵ | Kristaps Dzonsons | 2010-03-23 | 1 | -1/+2 | |
| | | | | between parse sequences. | |||||
* | Basically re-wrote -Tascii font handling: instead of incrementers for | Kristaps Dzonsons | 2009-11-12 | 1 | -7/+18 | |
| | | | | | | | | | 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. | |||||
* | Correct support for `\fX' font modes in -Tascii. | Kristaps Dzonsons | 2009-11-05 | 1 | -1/+5 | |
| | ||||||
* | Made sure devices and formats recognise that -man and -mdoc have different ↵ | Kristaps Dzonsons | 2009-10-18 | 1 | -3/+3 | |
| | | | | 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 | -1/+4 | |
| | | | | Terminal scaling backend pushed into term.c. | |||||
* | ascii_xxx -> chars_xxx (intended to hold more than just ascii encoding). | Kristaps Dzonsons | 2009-09-17 | 1 | -6/+1 | |
| | | | | More html work. | |||||
* | Made tree/term/out() functions return void. | Kristaps Dzonsons | 2009-09-16 | 1 | -4/+2 | |
| | | | | 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 ↵ | Kristaps Dzonsons | 2009-09-15 | 1 | -4/+3 | |
| | | | | | | increments. Cleaned up confusing behaviour of p->flags. | |||||
* | Moved indentation size into *term.c files. | Kristaps Dzonsons | 2009-08-10 | 1 | -6/+1 | |
| | | | | Improved handling of libman `IP' macro (still needs work). | |||||
* | Correct handling of \*(xx, \*[xxx], \*x versus \x, \(xx, \([xxx]: predefined ↵ | Kristaps Dzonsons | 2009-07-27 | 1 | -1/+2 | |
| | | | | strings and escape characters, respectively. | |||||
* | Full support for `An -split/-nosplit'. Compat documented. | Kristaps Dzonsons | 2009-07-24 | 1 | -1/+4 | |
| | ||||||
* | Fixed transcription error of define values (bah). | Kristaps Dzonsons | 2009-07-21 | 1 | -2/+2 | |
| | ||||||
* | Bringing spacing more in line with groff, patches from schwarze@openbsd.org. ↵ | Kristaps Dzonsons | 2009-07-21 | 1 | -1/+2 | |
| | | | | Pre-testing. | |||||
* | Removed unused TERMP_LITERAL. | Kristaps Dzonsons | 2009-07-19 | 1 | -6/+5 | |
| | ||||||
* | Renamed TERMP_NONOSPACE -> TERMP_DANGLE. | Kristaps Dzonsons | 2009-07-14 | 1 | -11/+12 | |
| | | | | | Added TERMP_HANG. Reordered TERMP flags to be a little easier on my old eyes. | |||||
* | Fixed license email address. | Kristaps Dzonsons | 2009-06-10 | 1 | -2/+2 | |
| | ||||||
* | Using proper license template (const). | Kristaps Dzonsons | 2009-04-12 | 1 | -12/+10 | |
| | ||||||
* | Manual .Dt fields CAPITALISED. | Kristaps Dzonsons | 2009-04-12 | 1 | -2/+3 | |
| | | | | | | | | Indent set to 5 chars (nroff compat). Half-indent set to 3 chars (nroff compat). Default behaviour is loose-y (ignore macro/char/escape). Added -fstrict. Added unknown-character ignoring. | |||||
* | Initial front-end formatting for -man pages. | Kristaps Dzonsons | 2009-03-26 | 1 | -38/+1 | |
| | ||||||
* | *** empty log message *** | Kristaps Dzonsons | 2009-03-25 | 1 | -3/+3 | |
| | ||||||
* | -man printing linked to -Ttree. | Kristaps Dzonsons | 2009-03-23 | 1 | -1/+2 | |
| | ||||||
* | First addition of -man macro support. | Kristaps Dzonsons | 2009-03-23 | 1 | -2/+2 | |
| | | | | Abstraction of mdoc. | |||||
* | Lint fixes. | Kristaps Dzonsons | 2009-03-21 | 1 | -2/+2 | |
| | ||||||
* | Support for `Bd' of all types (see mdoc.7 for newline/tab rules).VERSION_1_6_2 | Kristaps Dzonsons | 2009-03-20 | 1 | -11/+11 | |
| | | | | | Renamed term.c and terminal.c functions to be term_. Some bugfixes to lists. | |||||
* | Split mdocterm.c -> main.c terminal.c. | Kristaps Dzonsons | 2009-03-19 | 1 | -1/+8 | |
| | | | | | | Abstracted output with -T selector (default ascii). Name change: mdocterm -> mandoc. Re-imported tree with -Ttree. | |||||
* | Many more ASCII escapes added. | Kristaps Dzonsons | 2009-03-19 | 1 | -12/+10 | |
| | | | | | | Stripped nroff punt from mdocterm.c. Fixed multiple-file handling for mdocterm.c. Cleared up mdoc.h API. | |||||
* | Clean up ASCII table's memory. | Kristaps Dzonsons | 2009-03-17 | 1 | -1/+2 | |
| | ||||||
* | Fixed mdoc_phrase escape handling. | Kristaps Dzonsons | 2009-03-16 | 1 | -69/+21 | |
| | | | | | | | | | | | Added MDOC_IGNDELIM (Pf, soon Li, etc.). macro_constant_delimited ignargs -> argv.c parsing. Renamed macro functions to correspond to ontologies. `Fo' and `St' made callable (compat documented). strings.sh deprecated (directly using CPP). Abstracted ASCII translation into ascii.{c,in}. ASCII table uses a self-reordering chained hashtable. Removed old regressions. | |||||
* | Backed out all ANSI code.VERSION_1_5_1 | Kristaps Dzonsons | 2009-03-15 | 1 | -14/+2 | |
| | ||||||
* | mdoclint accepts multiple files | Kristaps Dzonsons | 2009-03-15 | 1 | -2/+3 | |
| | | | | mdocterm punts to nroff if it fails parsing | |||||
* | Added colour styles (not being used) to struct termp. | Kristaps Dzonsons | 2009-03-14 | 1 | -17/+22 | |
| | | | | | | Added nroff style-escape encoding. Removed ANSI schema string tables (there's only ANSI and nroff/backspace). Pushed styling directly into pword (simpler). | |||||
* | Bumped version. | Kristaps Dzonsons | 2009-03-14 | 1 | -2/+3 | |
| | | | | | Added \| (non-breaking space, like \&). Fixed termsym (TERMSYM_ALL). | |||||
* | Expanded perfect htab to use 27 * 26 * 3 space. | Kristaps Dzonsons | 2009-03-11 | 1 | -2/+4 | |
| | | | | | | Added Brq, Bro and Brc macros. Added lbrace and rbrace to special characters. Fixed spacing in braces. | |||||
* | -tag, if followed by empty body, doesn't newline. | Kristaps Dzonsons | 2009-03-04 | 1 | -1/+2 | |
| | | | | Versioning up. | |||||
* | Fixed some character-escapes. | Kristaps Dzonsons | 2009-03-04 | 1 | -2/+4 | |
| | ||||||
* | Considerably cleaned up list handling. | Kristaps Dzonsons | 2009-03-04 | 1 | -3/+1 | |
| | ||||||
* | -inset and -diag lists now supported. | Kristaps Dzonsons | 2009-03-03 | 1 | -1/+3 | |
| | ||||||
* | Character-escape addition simplified (see README.addescape, also added). | Kristaps Dzonsons | 2009-03-03 | 1 | -1/+10 | |
| | ||||||
* | Added new old escape sequence \*[nn]. | Kristaps Dzonsons | 2009-03-02 | 1 | -2/+48 | |
| | | | | | Initial correct .Bd support (still only text in literal displays). Symbols put into tables (character-encoding). | |||||
* | Support for maxrmargin-breaking with TERMP_NOBREAK. | Kristaps Dzonsons | 2009-03-02 | 1 | -1/+3 | |
| | | | | Tabs auto-converted to spaces. | |||||
* | Fixed TERMP_NOBREAK and line overruns. | Kristaps Dzonsons | 2009-03-01 | 1 | -3/+3 | |
| | | | | Fixed TERMP_SETFLAGS and current-flag omission. |