aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/out.h
Commit message (Collapse)AuthorAgeFilesLines
* Stuff tbl_calc() into out.c so that it can be shared by all output modesKristaps Dzonsons2011-01-051-15/+26
| | | | | | | | | | | | | | | | (isn't now, but will need to be, used by -T[x]html also). Necessitated a lot of churn in getting tbl_calc* code out of tbl_term.c and into out.c, including renaming some structures and so on. The abstraction is in having a pointer to a wrapper function for calculating string widths. The char devices use term_strlen and term_len; the others will probably just use strlen(). While at it, remove some superfluous assertions in the tbl code. This allows all tbl manuals to clear. Lastly, set the right-margin to be the maximum margin for each table span. This allows big, complicated tbl-pages like terminfo to be displayed. They're ugly, but they work.
* Accomodate for groff's crappy behaviour wherein an unrecognisedKristaps Dzonsons2010-07-211-3/+4
| | | | | | | | | | | | | single-character escape (and ONLY this type of escape) will map back into itself: "If a backslash is followed by a character that does not constitute a defined escape sequence the backslash is silently ignored and the character maps to itself." (From groff.7.) Found by Jason McIntyre.
* Throw out a2roffdeco() in out.c for a readable version. The prior oneKristaps Dzonsons2010-07-181-2/+1
| | | | | | | | | | | | | 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.
* Remove "pt" from struct roffsu, as CSS (the only reason it was there) isKristaps Dzonsons2010-06-251-6/+3
| | | | | unclear about which units accept floats/integers, which leads me to assume that it handles either and rounds as appropriate.
* Churn as I finish email address migration kth.se -> bsd.lv.Kristaps Dzonsons2010-06-191-2/+2
|
* Add support/ignoring of \f(xy, \f[X...], \F(xy, \FX, \F[X...] roff-style ↵Kristaps Dzonsons2010-04-071-1/+3
| | | | font escapes (noted by Frantisek Holop).
* Fixed \c support for all input and output modes (documented in mandoc_char.7).Kristaps Dzonsons2009-11-121-1/+2
|
* a2roffdeco() now supports \s escapes.Kristaps Dzonsons2009-11-081-4/+10
|
* Initial abstraction of front-end decoration events (special characters, text ↵Kristaps Dzonsons2009-11-071-1/+13
| | | | decorations, etc.).
* Fixed maddening mismatch between groff and strftime mismatch of day ("%e"). ↵Kristaps Dzonsons2009-10-221-1/+4
| | | | Noted by Ulrich Sporlein.
* Had out.h roff-scale converters accept default unit scale (because -mdoc and ↵Kristaps Dzonsons2009-10-181-2/+3
| | | | -man differ).
* Scaling factor made floating point (as per groff.7) and, e.g., ↵Kristaps Dzonsons2009-10-091-4/+7
| | | | gnu/usr.bin/cvs/man/cvs.1.
* Additions to -Tman -Thtml: all structural components tested & in place.Kristaps Dzonsons2009-10-071-0/+54
| | | | Fitted both -Thtml with handling of arbitrary vertical and horizontal scaling units (see groff(7)). Undocumented until fitted into -Tascii (next release).
* Removed new-born out.{h,c} (not a good idea).Kristaps Dzonsons2009-09-211-28/+0
| | | | | Removed if 0 for HTML-mode output (why not). Added option -oxxxx for passing options to output devices.
* Tentative addition of front-end utility functions (out.h) (not sure if it's ↵Kristaps Dzonsons2009-09-211-0/+28
necessary). More -Thtml installments.