Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Lint-fixes (NetBSD). | Kristaps Dzonsons | 2010-07-21 | 1 | -5/+5 |
| | |||||
* | Finally make mdoc argv CPP-defines into a proper enum. | Kristaps Dzonsons | 2010-07-21 | 3 | -34/+37 |
| | |||||
* | The "wx" value is quite small, so use a u_short instead of a size_t. | Kristaps Dzonsons | 2010-07-21 | 1 | -7/+7 |
| | |||||
* | Strip non-graphable input characters from input. The manuals | Kristaps Dzonsons | 2010-07-20 | 4 | -38/+67 |
| | | | | | | | | | specifically say that this is not allowed, and were it allowed, output would be inconsistent across output media (-Tps will puke, non-your-charset terminals will puke, etc.). With this done, simplify check_text() to only check escapes and for tabs. Add in a new tab warning, too. | ||||
* | Use floating-point -Tps "moveto" arguments to smooth out column and row | Kristaps Dzonsons | 2010-07-20 | 1 | -4/+4 |
| | | | | misalignments. | ||||
* | sync to OpenBSD: | Ingo Schwarze | 2010-07-19 | 1 | -18/+30 |
| | | | | | | | | | * briefly mention the HISTORY of the man(7) language * update the copyright notice * improve the wording in a few places * fix a couple of typos including two suggestions from J.C. Roberts feedback and ok jmc@, ok sobrado@ and kristaps@ | ||||
* | All macros in mdoc.7 are now documented. | Kristaps Dzonsons | 2010-07-19 | 1 | -14/+52 |
| | |||||
* | Finished document -mdoc macros. Note `br' and `sp' remain. | Kristaps Dzonsons | 2010-07-19 | 3 | -6/+124 |
| | | | | | Noted in arch.in and st.in that mdoc.7 must be updated if entries are added. | ||||
* | Added documentation for several more macros. Only a few remaining! | Kristaps Dzonsons | 2010-07-19 | 1 | -109/+170 |
| | | | | | | | | | Applied "new-sentence, new-line" here and there. Refer to "whitespace", not "white-space". Remove long-commented-out CAVEATS, all of which have been addressed or at least discussed to some extent or another. | ||||
* | Remove some FIXMEs: `Ms' accepts arbitrary text, so it can't/shouldn't | Kristaps Dzonsons | 2010-07-19 | 3 | -3/+2 |
| | | | | | | be converted into a symbol. The `Pp' issue has also been fixed. | ||||
* | Fix spurrious newline emitted by `Pp' when specified before or after | Kristaps Dzonsons | 2010-07-19 | 3 | -3/+10 |
| | | | | `Sh'/`Ss'. Reported by Jason McIntyre. | ||||
* | Changed Unicode codepoint of left-arrow right-arrow to be the regular | Kristaps Dzonsons | 2010-07-19 | 1 | -2/+2 |
| | | | | ASCII symbols. | ||||
* | Note discarding of \m, \M, and \s in COMPATIBILITY sections. | Kristaps Dzonsons | 2010-07-19 | 2 | -1/+7 |
| | |||||
* | Remove \s TODO: these are intelligently ignored along with \m and \M. | Kristaps Dzonsons | 2010-07-19 | 1 | -9/+0 |
| | |||||
* | Removed \s documentation, as we (1) never supported it, and (2) never | Kristaps Dzonsons | 2010-07-19 | 2 | -51/+3 |
| | | | | | | will. Also whack the dot-separator from the embedded man.7 manual. | ||||
* | Double-up DECO_RESERVED switch branch for colours. | Kristaps Dzonsons | 2010-07-19 | 1 | -15/+5 |
| | |||||
* | Properly discard \m colour escapes. Noted by J.C. Roberts. | Kristaps Dzonsons | 2010-07-18 | 2 | -3/+16 |
| | |||||
* | Throw out a2roffdeco() in out.c for a readable version. The prior one | Kristaps Dzonsons | 2010-07-18 | 3 | -182/+151 |
| | | | | | | | | | | | | | was completely unmaintainable. The new one is both readable and quite similar to mandoc_special(), which in future versions will easily allow throwing-away of unsupported escapes (such as \m). It's also a fair bit smaller. DECO_SIZE has been removed: this crap, like colours, will not be supported. mandoc_special() also has #if 0'd switch branches for ALL groff.7 escapes and some lint fixes. | ||||
* | Make "\ " produce non-breaking space. | Kristaps Dzonsons | 2010-07-18 | 2 | -3/+2 |
| | | | | Noted by Theo de Raadt. Ok schwarze@. | ||||
* | Text ending in a full stop, exclamation mark or question mark | Ingo Schwarze | 2010-07-18 | 5 | -15/+18 |
| | | | | | | | | | | | | | | | | | | should not flag the end of a sentence if: 1) The punctuation is followed by closing delimiters and not preceded by alphanumeric characters, like in "There is no full stop (.) in this sentence" or 2) The punctuation is a child of a macro and not preceded by alphanumeric characters, like in "There is no full stop .Pq \&. in this sentence" "looks fine" to kristaps@; tested by jmc@ and sobrado@ | ||||
* | fixed .Sm spacing, but there are four new issues | Ingo Schwarze | 2010-07-18 | 1 | -10/+14 |
| | |||||
* | Clean up mandoc_special() (in order later to catch \m). It also flags | Kristaps Dzonsons | 2010-07-18 | 2 | -151/+64 |
| | | | | | | several syntactic errors that weren't caught before. Also un-puke chars.c on zero-length \[]. | ||||
* | Avoid letter-by-letter encoding by using strcspn() in term_word(). | Kristaps Dzonsons | 2010-07-17 | 1 | -7/+6 |
| | |||||
* | By letting strncmp() do its job and not helping it with a prior length | Kristaps Dzonsons | 2010-07-17 | 2 | -379/+378 |
| | | | | | check, we can remove the hard-coded length of all escape patterns. This frees up a nice chunk of memory. | ||||
* | Change chars.in HTML encoding to be a Unicode codepoint (int), which is | Kristaps Dzonsons | 2010-07-16 | 6 | -406/+461 |
| | | | | later formatted in html.c. | ||||
* | Removed completed TODO. | Kristaps Dzonsons | 2010-07-16 | 1 | -4/+0 |
| | |||||
* | Fixed dquote to be \*q. | Kristaps Dzonsons | 2010-07-16 | 1 | -2/+2 |
| | |||||
* | Fix which escapes are used to format \". | Kristaps Dzonsons | 2010-07-16 | 1 | -2/+2 |
| | |||||
* | After .Sm on, spacing ought to restart right away, before the next token, | Ingo Schwarze | 2010-07-16 | 1 | -2/+4 |
| | | | | | | | and not with a delay, after the next token. But be careful not to cause leading white space at the beginning of a line or column. In OpenBSD, improves chmod(1), ksh(1), tar(1), ps(1) and probably many more. ok kristaps@ and tested by jmc@ and sobrado@ | ||||
* | document .Sm; prodded by kristaps@ | Ingo Schwarze | 2010-07-15 | 1 | -0/+12 |
| | |||||
* | correct lots of copyright notices; | Ingo Schwarze | 2010-07-13 | 17 | -17/+16 |
| | | | | ok kristaps@ | ||||
* | Pre-tag checkin of release bits and shortlist.VERSION.1.10.4 | Kristaps Dzonsons | 2010-07-11 | 2 | -2/+23 |
| | |||||
* | remove three issues fixed near the end of the c2k10 hackathon | Ingo Schwarze | 2010-07-11 | 1 | -17/+0 |
| | |||||
* | 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. |