aboutsummaryrefslogtreecommitdiffstatshomepage
Commit message (Collapse)AuthorAgeFilesLines
* Merge, with considerable changes, tbl.bsd.lv's layout-handling code.Kristaps Dzonsons2010-12-297-13/+359
|
* Initial documentation for TBL, which for the time being is commented-out.Kristaps Dzonsons2010-12-291-2/+48
|
* Whack removed function from libroff.Kristaps Dzonsons2010-12-291-2/+1
|
* Significant update to options handling, which now departs almostKristaps Dzonsons2010-12-296-150/+171
| | | | | | | | | | | | | completely with the BSD.lv code due to performance issues and flat-out errors. Performance issues: functions called per character. Ugly. Flat-out errors: disallowing "reserved" tokens as arguments to those options accepting arguments. Also added are two mandoc.h error codes for general tbl syntax errors and for bad options.
* Fix copyright email.Kristaps Dzonsons2010-12-282-4/+4
|
* Adding initial options processing (not hooked into parse yet). This isKristaps Dzonsons2010-12-284-15/+296
| | | | | more or less copied from tbl.bsd.lv and still needs integration with the general mandoc framework, e.g., with error messages.
* Temporarily remove check for r->tbl at end of parse since we need theKristaps Dzonsons2010-12-281-2/+3
| | | | original parse point to generate a useful error message.
* Fixed enum rofferr return value in tbl_read() (oops).Kristaps Dzonsons2010-12-281-2/+2
|
* Initial tbl framework. Parse point is in libroff, which keeps aKristaps Dzonsons2010-12-285-63/+197
| | | | | | | | | | | | | | | | | | | | | | | | | reference to a current tbl parse and routes ALL text into the tbl parse after stripping reserved words and making block-level pre-processing (e.g., `ig'). This is consistent with an analysis of embedded `TS/TE' in manuals with sprinkled -mdoc, roff, and -man macros. Fact of a parse is exposed to main.c by a return value (ROFF_TBL), which will trigger main.c to add a foreign parsed body to the -mdoc or -man parse stream. This interface isn't in yet, but will follow the parse-text functions in both libraries. I put this login in main.c because I don't want libroff calling directly into libmdoc or libman. As a consequence, a parsed row can be pushed directly into any -mdoc or -man context (put a `Bd -literal -offset indent' into a `TE/TS' block to see why this is necessary). It will then absorb formatting cues in the front-ends. A note on naming. I decided on libroff.h instead of tbl.h because this is purely within the roff layer. Separate tbl implementations will need, then, to interface with libroff. This is "how it should be" because tbl is tightly linked with roff in terms of `ds' and other formatting macros, as well as, of course, special characters and other roffisms.
* In case an ID attribute is written in pieces, only protect the firstIngo Schwarze2010-12-271-10/+14
| | | | | | | | piece with a prepended 'x', not each piece, such that quoted and unquoted .Sh, .Ss, and .Sx arguments are compatible with each other. Fixing a bug reported by Nicolas Joly <njoly at NetBSD dot org>, avoiding a regression in my first patch as pointed out by njoly as well. "feel free to do so" kristaps@
* Note `Sx's connection to `Sh' and `Ss'.Kristaps Dzonsons2010-12-271-2/+7
|
* Whack MDOC_ACTED and MAN_ACTED (these no longer exist).Kristaps Dzonsons2010-12-262-4/+2
|
* pod2man re-writes this and that using `tr', which we don't implement. NotedKristaps Dzonsons2010-12-261-1/+3
| | | | by Andreas Vogele.
* As pointed out by schwarze@, %T/%J renders with a normal double-quote, notKristaps Dzonsons2010-12-251-5/+5
| | | | the fancy double-quote.
* Implement schwarze@'s much more elegant version of my %T/%J fix.Kristaps Dzonsons2010-12-253-23/+10
|
* Specifying both %T and %J in an `Rs' block causes the title to be quotedKristaps Dzonsons2010-12-255-13/+70
| | | | | instead of underlined. This only happens in -Tascii, as -T[x]html both underlines and italicises.
* Whack superfluous font-family in mdocml's www style.css. Noted byKristaps Dzonsons2010-12-241-3/+2
| | | | Anthony J. Bentley. Thanks!
* Make `Fo' use a B instead of SPAN (left-over).Kristaps Dzonsons2010-12-241-3/+3
|
* Have Makefile build XHTML files too.VERSION_1_10_8Kristaps Dzonsons2010-12-241-3/+7
|
* Apparently the U tag is deprecated, so use a SPAN instead (blah). BumpKristaps Dzonsons2010-12-247-13/+10
| | | | version date for release.
* As per schwarze@'s suggestions, roll back the refcount structure inKristaps Dzonsons2010-12-246-149/+158
| | | | | | | | favour of a simpler shim for normalised data in the node allocation and free routines. This removes the need to bump and copy references within validator handlers, removes a pointer redirect, and also kills the refcount structure itself. Data is assumed to "live" either in a MDOC_BLOCK or MDOC_ELEM and is copied accordingly.
* Drastically fix -T[x]html's handling of font-escape mode changes (i.e.,Kristaps Dzonsons2010-12-244-66/+58
| | | | | | | | | | | | | | | using \fI or \fP). Now, using these modes will cause a font to be rendered for each word; furthermore, setting mode within a word will do the correct thing. Second, make -man use real font tags (B, I, SMALL) to set its font instead of using font modes and fix up the pre-macro unsetting of the current mode. This fixes how roff.7 wasn't validating (<P> closing out a font mode) and has been checked against gcc.1 (more will come). I considered failure to validate OUR manual to be a show-stopper for the up-coming release.
* Ensure -Thtml has DIV as child of BLOCKQUOTE.Kristaps Dzonsons2010-12-231-6/+6
|
* Added last version notes and bumped version number and date.Kristaps Dzonsons2010-12-232-15/+16
|
* minor tweaks:Ingo Schwarze2010-12-221-7/+9
| | | | | | | | | 1. improve .Bl wording (from jmc@) 2. jmc@ noted that the .Mt default (the same as in groff) makes no sense, and there is no better default we could use; thus, regard it as implementation dependent and do not document it 3. fix formatting of one COMPATIBILITY note: move "and" out of .Sx ok kristaps@, jmc@
* At the beginning of .Bl, .Sm is allowed,Ingo Schwarze2010-12-221-4/+6
| | | | | and .Lp should cause a warning, not an error. "I don't suppose I mind this." kristaps@
* Build xhtml files for www site exemplaria.Kristaps Dzonsons2010-12-223-2/+16
|
* Revert IGNPAR to a warning after clue-stick applied by schwarze@:Kristaps Dzonsons2010-12-222-4/+4
| | | | | | | although technically-speaking a lost macro is an error (e.g., MANDOCERR_MACRO), casting out some extra whitespace (note, IGNPAR only happens in conditions where whitespace already exists!) is hardly an error matter.
* Implement reference-counted version of original union mdoc_data. ThisKristaps Dzonsons2010-12-229-176/+167
| | | | | | | simplifies clean-up and allows for more types without extra hassle. Also made in-line literal types in -T[x]html use CODE instead of SPAN to match how literal blocks use PRE.
* Throw out negative margin garbage in -man -T[x]html in favour of usingKristaps Dzonsons2010-12-221-97/+79
| | | | TABLE and P and so on. Now renders in text-based browsers.
* Sync to OpenBSD:Ingo Schwarze2010-12-211-12/+44
| | | | | | | | | 1) Now that growing buffers in main.c is safe, bring back the bugfix distinguishing empty and undefined macros that was backed out in the previous roff.c commit: `de' initializes to "", not to NULL. 2) Roff only interpolates \* strings when the leading backslash is not escaped; using optimizations suggested by joerg@ and kristaps@. ok kristaps@
* Sane behaviour for the growing of very small buffers:Ingo Schwarze2010-12-211-2/+2
| | | | | | | Always grow at least to the minimum requested size. Before this, a buffer of 1 byte was grown to 2 bytes, which was too small and sometimes caused segfaults. ok kristaps@
* Clarify style inclusions and update release information.Kristaps Dzonsons2010-12-203-14/+18
|
* Fix list-type being clobbered by margins. Last default styles in place.Kristaps Dzonsons2010-12-203-36/+38
| | | | | Added `Sx' to be default-italic (as in OpenBSD's cvsweb). Added `diag' formatting, which had been lost.
* More use default tags, this time I and U. Also fix a stack overflowKristaps Dzonsons2010-12-204-25/+41
| | | | segfault in the last commit.
* Give header and footer table cells default widths (using WIDTH and ALIGNKristaps Dzonsons2010-12-204-49/+81
| | | | | | | | | atttributes) if no style is specified. Give the default-bold elements a B tag instead of a SPAN tag, as this can be overriden in the stylesheet. Prune some unused attributes from html.h.
* Migrate schwarze@'s `Bk' argument patch to -T[x]html.Kristaps Dzonsons2010-12-191-2/+3
|
* Handle .Bk the same way as groff 1.20.1:Ingo Schwarze2010-12-191-2/+3
| | | | | | .Bk without arguments defaults to -words. .Bk with invalid arguments (including -lines) has no effect. ok kristaps@
* Sync to the installed version in OpenBSD, excluding .ft documentation:Ingo Schwarze2010-12-181-90/+140
| | | | | | Be more careful to not confuse requests, macros and escape sequences. Add more info at various places, including new SEE ALSO and HISTORY sections. OK jmc@ kristaps@
* Sync to OpenBSD: More precise description of .Xo, and don't talkIngo Schwarze2010-12-181-5/+9
| | | | | | | | about deprecation, because there are cases were choosing .Xo or backslash line continuation is merely a matter of taste, not a difference in readability, and well-used .Xo is even slightly more portable. OK jmc@
* Tweak default styles.Kristaps Dzonsons2010-12-172-9/+9
|
* Don't use EM for default widths; use BU instead.Kristaps Dzonsons2010-12-171-3/+3
|
* Merged example.style.css into style.css. Adding version stuff.Kristaps Dzonsons2010-12-173-53/+144
|
* Correctly labelled command-line as `Dl'.Kristaps Dzonsons2010-12-172-6/+6
|
* Prevent double-printing of `D1' or `Dl' DIV.Kristaps Dzonsons2010-12-171-5/+4
|
* Correctly mark the examples as `Dl', not `D1'.Kristaps Dzonsons2010-12-171-6/+6
|
* Add a "list" top-level tag, too.Kristaps Dzonsons2010-12-172-4/+8
|
* Remove useless DIVs in favour of BRs. Fix `Ex' by having it print a priorKristaps Dzonsons2010-12-171-4/+10
| | | | BR. Fix `Rv' by only having it print a BR if there's a prior.
* Make literal `Bd' use a PRE in -Thtml. Make `Bd' output in general useKristaps Dzonsons2010-12-174-33/+31
| | | | only a single DIV or PRE. Tag all displays with display class.
* Banished -man -Thtml header and footer to example.style.css as well.Kristaps Dzonsons2010-12-172-34/+21
|