Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Re-constitution of `ds' symbol processing. First, push the | Kristaps Dzonsons | 2010-07-07 | 18 | -173/+137 |
| | | | | | | | | | 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. | ||||
* | Revert Makefile to using mandoc.c instead of libmandoc.c. Remove | Kristaps Dzonsons | 2010-07-06 | 2 | -401/+5 |
| | | | | | | newborn libmandoc.c. While here, remove superfluous dep of libman on mandoc.c. | ||||
* | Resurrect mandoc.c after bogus removal (was: libmandoc.c). | Kristaps Dzonsons | 2010-07-06 | 1 | -0/+396 |
| | |||||
* | Give -T[x]html `Bk -words' capability. | Kristaps Dzonsons | 2010-07-06 | 3 | -6/+68 |
| | |||||
* | Brought function arguments and style in ine with term_word() in term.c | Kristaps Dzonsons | 2010-07-06 | 1 | -7/+7 |
| | | | | to make sharing of TERMP_KEEP easier. | ||||
* | Clarified `Bk' operation in mdoc.7. | Kristaps Dzonsons | 2010-07-06 | 1 | -10/+12 |
| | |||||
* | Documented `En', `Es', `Hf', `Ic', `Lp', `Nd', `No', `Oc', `Oo', `Op', | Kristaps Dzonsons | 2010-07-06 | 1 | -0/+109 |
| | | | | `Pa', `Pc', `Po', `Pq', `Pp', and `Va'. | ||||
* | Proper `Bk -words' support: only suppress breaks within a line, but | Kristaps Dzonsons | 2010-07-06 | 1 | -0/+17 |
| | | | | | | | allow end-of-line to break. This fixes the bad behaviour found when macros within `Bk' never break. "Excellent" schwarze@ | ||||
* | Move register information into mandoc.h, which is where it should have | Kristaps Dzonsons | 2010-07-05 | 2 | -25/+37 |
| | | | | been in the first place (mandoc.h contains system-wide declarations). | ||||
* | Renamed mandoc.c to libmandoc.c. This is in the efforts of getting a | Kristaps Dzonsons | 2010-07-05 | 2 | -5/+5 |
| | | | | | | | cleaner namespace for functions across the entire system (mandoc.h: getting parsed-string values, or declarations necessary for the AST data), and compiler functions (libmandoc.h: back-end functions and declarations). | ||||
* | Manual clean-ups. Add syntax message for `Bd', `Bk', and `Bl'. | Kristaps Dzonsons | 2010-07-05 | 1 | -15/+56 |
| | | | | Document `Eo' and `Ec'. Add context-end notes `Ec' and `Fc'. | ||||
* | Remove caching TODO: this has been committed. | Kristaps Dzonsons | 2010-07-05 | 1 | -5/+0 |
| | |||||
* | Suppress duplicate "Page: 1 1" -Tps printing and instead relay on | Kristaps Dzonsons | 2010-07-05 | 1 | -5/+1 |
| | | | | PS_NEWPAGE to do the job for us. Noted by Dillo. | ||||
* | Assert my copyright, making it explicit that i'm granting the same license | Ingo Schwarze | 2010-07-04 | 11 | -7/+18 |
| | | | | | on those parts of the code and text that i have written as Kristaps is. "fine with me" kristaps@ | ||||
* | Cache column sizes and char pointer into mdoc_bl. Finally get rid of | Kristaps Dzonsons | 2010-07-04 | 5 | -54/+24 |
| | | | | the loops here and there to track down the MDOC_Column arguments. | ||||
* | gv(1) doesn't remember the last set font when displaying new pages, so | Kristaps Dzonsons | 2010-07-04 | 1 | -6/+24 |
| | | | | | print it out for each new page. This also prevents superfluous printings of the font before the %%Page: comment has been displayed. | ||||
* | Set line-height to be 1.4em. Removed check for minimum margins that are no | Kristaps Dzonsons | 2010-07-04 | 2 | -18/+6 |
| | | | | longer important. | ||||
* | Suppress printing blank eof pages in -Tps. Delay printing of Page: | Kristaps Dzonsons | 2010-07-04 | 1 | -9/+13 |
| | | | | until actual text is ready to be displayed. | ||||
* | Suppress printing of newlines/space at start of new -Tps page. | Kristaps Dzonsons | 2010-07-04 | 2 | -16/+33 |
| | | | | | Also renamed "psstate" -> "flags" (was wrongly implying some sort of state machine). | ||||
* | Backed out margin calculations in favour of much simpler rule of thumb: | Kristaps Dzonsons | 2010-07-04 | 2 | -19/+12 |
| | | | | margins are 1/9 the length/width. | ||||
* | Auto-margins. Documented in mandoc.1. Also bumped line-height and made | Kristaps Dzonsons | 2010-07-04 | 2 | -13/+43 |
| | | | | sure header and footer accomodate for said line-height. | ||||
* | Allow empty `Fo' to get by without an assertion. | Kristaps Dzonsons | 2010-07-03 | 1 | -1/+3 |
| | |||||
* | Note to myself on what I need to do regarding inter-library functions. | Kristaps Dzonsons | 2010-07-03 | 1 | -0/+9 |
| | |||||
* | Rudimentary implementation of user-defined strings; | Ingo Schwarze | 2010-07-03 | 4 | -1/+192 |
| | | | | | | no time for more refinement right now. In particular, fixes terminfo(3) and mdoc.samples(7). ok kristaps@, who will add the HTML frontend bits | ||||
* | The roff escape function "\s" is definitely not urgent, | Ingo Schwarze | 2010-07-03 | 1 | -0/+9 |
| | | | | but it is used in the tree and we should not forget. | ||||
* | Not only for -tag lists, but for -hang, -ohang, -inset, -diag, | Ingo Schwarze | 2010-07-02 | 1 | -6/+3 |
| | | | | | | | and -item list as well, empty bodies are OK, they do not even warrant a warning, much less the error they were throwing. According to kristaps, joerg@ also brought this up some time ago. ok kristaps@ jmc@ | ||||
* | Cached `An' arguments in struct mdoc_an. Note that this isn't a | Kristaps Dzonsons | 2010-07-02 | 3 | -29/+32 |
| | | | | pointer like the other data members, as there's no need to copy it around. | ||||
* | Fix: was checking HEAD for arguments. | Kristaps Dzonsons | 2010-07-02 | 1 | -4/+6 |
| | |||||
* | Add documentation for Bf/Ef. | Kristaps Dzonsons | 2010-07-02 | 1 | -0/+38 |
| | |||||
* | Stash `Bf' parameters into struct mdoc_bf. | Kristaps Dzonsons | 2010-07-02 | 8 | -71/+100 |
| | |||||
* | Lint fixes. | Kristaps Dzonsons | 2010-07-02 | 4 | -4/+8 |
| | |||||
* | Lint tweak. | Kristaps Dzonsons | 2010-07-02 | 1 | -0/+1 |
| | |||||
* | Added TODO to sanitise `Nm' blocks such that HEAD optionally contains | Kristaps Dzonsons | 2010-07-02 | 1 | -0/+4 |
| | | | | only a TEXT element consisting of the name. | ||||
* | Implemented -Thtml bits for handling `Nm' blocks. | Kristaps Dzonsons | 2010-07-02 | 1 | -8/+61 |
| | |||||
* | Remove my own dumb FIXME and mark a static function defn as static. | Kristaps Dzonsons | 2010-07-01 | 1 | -3/+2 |
| | |||||
* | Make struct_bl and struct_bd into pointers. This removes the need to do | Kristaps Dzonsons | 2010-07-01 | 7 | -118/+132 |
| | | | | | | | | | | | copying on internals after modification. Even more importantly, if an ENDBODY token is provided, it would have been impossible for post-change copying of the data to take place in the BLOCK. This allows it to happen by dint of pointers. Also did some bikeshedding in mdoc_term.c: checking against enum type and explicitly casting to the "post" function to void. This is for my own readability. | ||||
* | In the mdoc(7) parser, inspect roff registers early such that all parts | Ingo Schwarze | 2010-07-01 | 4 | -15/+34 |
| | | | | | | | | | | | | of the parser can use the resulting cues. In particular, this allows to use .nr nS to force SYNOPSIS-style .Nm indentation outside the SYNOPSIS as needed by ifconfig(8). To actually make this useable, .Pp must rewind .Nm, or the rest of the section would end up indented. Implement a quick hack for now, a generic solution can be designed later. ok kristaps@ and tested by sobrado@ | ||||
* | Prevent validator from puking on ENDBODY `Bl' nodes. | Kristaps Dzonsons | 2010-07-01 | 1 | -0/+2 |
| | |||||
* | Correct handling of trailing punctuation in MDOC_DELIM blk_full HEADs. | Ingo Schwarze | 2010-07-01 | 1 | -0/+3 |
| | | | | | | | The bug was uncovered by SYNOPSIS .Nm as this happened to be the first block with this particular combination of properties. Found the hard way by kristaps@ in NetBSD gcc-contrib(1), fix by me. | ||||
* | Improve .Nm indentation in the SYNOPSIS; | Ingo Schwarze | 2010-07-01 | 5 | -16/+127 |
| | | | | | | | kristaps@ will do the missing HTML part soon. "looks nicer" jmc@ "seems perfect to me" sobrado@ "slap it in" kristaps@ | ||||
* | More reality-checks for the p->end type. | Kristaps Dzonsons | 2010-07-01 | 2 | -3/+3 |
| | |||||
* | p->end is an enum: treat it as such. | Kristaps Dzonsons | 2010-07-01 | 1 | -2/+2 |
| | |||||
* | First, I'm defaulting to 11-point font, which renders much nicer (the | Kristaps Dzonsons | 2010-07-01 | 2 | -16/+51 |
| | | | | | | | | | | | "Internet" vaguely suggests using 11- or 9-Point for serifed fonts). This verified on GNU/Linux, Mac OSX, Windows, and OpenBSD. Noted in mandoc.1. Then added a3, a4, a5, letter, legal, and custom page dimensions. These seem to be the main players. Noted in mandoc.1. Lintified the casting. | ||||
* | "Tweak previous": "badly nested" becomes badly-nested, some typos | Kristaps Dzonsons | 2010-07-01 | 1 | -17/+24 |
| | | | | corrected, and a bit of clarity for my own sake. | ||||
* | remove a couple of issues that have been fixed | Ingo Schwarze | 2010-06-30 | 1 | -27/+1 |
| | |||||
* | Now using Times AFM provided by Dillo. Verified on OpenBSD by me and Mac OSX | Kristaps Dzonsons | 2010-06-30 | 2 | -272/+272 |
| | | | | by M. Deksters. | ||||
* | improve error reporting: | Ingo Schwarze | 2010-06-30 | 2 | -33/+53 |
| | | | | | | | | | * avoid error exit code after mere warnings * add ERROR: and FATAL: to messages when appropriate * sort the code in mmsg() to make it easier on the eye * make the mandocerrs[] list easier to maintain * update a few comments in mandoc.h ok kristaps@ | ||||
* | Correct dimensions for DocumentMedia. Noted by schwarze@, as gv(1) was | Kristaps Dzonsons | 2010-06-30 | 1 | -5/+4 |
| | | | | puking on input. | ||||
* | Embedding Charter proportional-width glyphs. Nice-looking output. | Kristaps Dzonsons | 2010-06-30 | 1 | -288/+288 |
| | |||||
* | PostScript can now handle scaled glyph sizes (see "scale" in struct | Kristaps Dzonsons | 2010-06-30 | 2 | -17/+28 |
| | | | | termp_ps) to arbitrarily scale font. Tested with 10 (default), 12, 14. |