summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Double-up DECO_RESERVED switch branch for colours.Kristaps Dzonsons2010-07-191-15/+5
|
* Properly discard \m colour escapes. Noted by J.C. Roberts.Kristaps Dzonsons2010-07-182-3/+16
|
* Throw out a2roffdeco() in out.c for a readable version. The prior oneKristaps Dzonsons2010-07-183-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 Dzonsons2010-07-182-3/+2
| | | | Noted by Theo de Raadt. Ok schwarze@.
* Text ending in a full stop, exclamation mark or question markIngo Schwarze2010-07-185-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 issuesIngo Schwarze2010-07-181-10/+14
|
* Clean up mandoc_special() (in order later to catch \m). It also flagsKristaps Dzonsons2010-07-182-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 Dzonsons2010-07-171-7/+6
|
* By letting strncmp() do its job and not helping it with a prior lengthKristaps Dzonsons2010-07-172-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 isKristaps Dzonsons2010-07-166-406/+461
| | | | later formatted in html.c.
* Removed completed TODO.Kristaps Dzonsons2010-07-161-4/+0
|
* Fixed dquote to be \*q.Kristaps Dzonsons2010-07-161-2/+2
|
* Fix which escapes are used to format \".Kristaps Dzonsons2010-07-161-2/+2
|
* After .Sm on, spacing ought to restart right away, before the next token,Ingo Schwarze2010-07-161-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 Schwarze2010-07-151-0/+12
|
* correct lots of copyright notices;Ingo Schwarze2010-07-1317-17/+16
| | | | ok kristaps@
* Pre-tag checkin of release bits and shortlist.VERSION.1.10.4Kristaps Dzonsons2010-07-112-2/+23
|
* remove three issues fixed near the end of the c2k10 hackathonIngo Schwarze2010-07-111-17/+0
|
* Re-constitution of `ds' symbol processing. First, push theKristaps Dzonsons2010-07-0718-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. RemoveKristaps Dzonsons2010-07-062-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 Dzonsons2010-07-061-0/+396
|
* Give -T[x]html `Bk -words' capability.Kristaps Dzonsons2010-07-063-6/+68
|
* Brought function arguments and style in ine with term_word() in term.cKristaps Dzonsons2010-07-061-7/+7
| | | | to make sharing of TERMP_KEEP easier.
* Clarified `Bk' operation in mdoc.7.Kristaps Dzonsons2010-07-061-10/+12
|
* Documented `En', `Es', `Hf', `Ic', `Lp', `Nd', `No', `Oc', `Oo', `Op',Kristaps Dzonsons2010-07-061-0/+109
| | | | `Pa', `Pc', `Po', `Pq', `Pp', and `Va'.
* Proper `Bk -words' support: only suppress breaks within a line, butKristaps Dzonsons2010-07-061-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 haveKristaps Dzonsons2010-07-052-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 aKristaps Dzonsons2010-07-052-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 Dzonsons2010-07-051-15/+56
| | | | Document `Eo' and `Ec'. Add context-end notes `Ec' and `Fc'.
* Remove caching TODO: this has been committed.Kristaps Dzonsons2010-07-051-5/+0
|
* Suppress duplicate "Page: 1 1" -Tps printing and instead relay onKristaps Dzonsons2010-07-051-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 licenseIngo Schwarze2010-07-0411-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 ofKristaps Dzonsons2010-07-045-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, soKristaps Dzonsons2010-07-041-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 noKristaps Dzonsons2010-07-042-18/+6
| | | | longer important.
* Suppress printing blank eof pages in -Tps. Delay printing of Page:Kristaps Dzonsons2010-07-041-9/+13
| | | | until actual text is ready to be displayed.
* Suppress printing of newlines/space at start of new -Tps page.Kristaps Dzonsons2010-07-042-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 Dzonsons2010-07-042-19/+12
| | | | margins are 1/9 the length/width.
* Auto-margins. Documented in mandoc.1. Also bumped line-height and madeKristaps Dzonsons2010-07-042-13/+43
| | | | sure header and footer accomodate for said line-height.
* Allow empty `Fo' to get by without an assertion.Kristaps Dzonsons2010-07-031-1/+3
|
* Note to myself on what I need to do regarding inter-library functions.Kristaps Dzonsons2010-07-031-0/+9
|
* Rudimentary implementation of user-defined strings;Ingo Schwarze2010-07-034-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 Schwarze2010-07-031-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 Schwarze2010-07-021-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 aKristaps Dzonsons2010-07-023-29/+32
| | | | pointer like the other data members, as there's no need to copy it around.
* Fix: was checking HEAD for arguments.Kristaps Dzonsons2010-07-021-4/+6
|
* Add documentation for Bf/Ef.Kristaps Dzonsons2010-07-021-0/+38
|
* Stash `Bf' parameters into struct mdoc_bf.Kristaps Dzonsons2010-07-028-71/+100
|
* Lint fixes.Kristaps Dzonsons2010-07-024-4/+8
|
* Lint tweak.Kristaps Dzonsons2010-07-021-0/+1
|