]>
git.cameronkatri.com Git - mandoc.git/log
Kristaps Dzonsons [Sun, 15 Nov 2009 06:45:31 +0000 (06:45 +0000)]
\f escapes appear to work properly for -Thtml -man. Needs more testing.
Kristaps Dzonsons [Sat, 14 Nov 2009 19:23:58 +0000 (19:23 +0000)]
Initial check-in of -man -Thtml \f support (needs testing).
Kristaps Dzonsons [Sat, 14 Nov 2009 12:04:59 +0000 (12:04 +0000)]
Removed superfluous HTML_NEWLINE.
Kristaps Dzonsons [Sat, 14 Nov 2009 12:00:24 +0000 (12:00 +0000)]
Fix of fix of -Thtml nospace.
Kristaps Dzonsons [Sat, 14 Nov 2009 11:58:36 +0000 (11:58 +0000)]
Fixed \c handling in -Thtml.
Kristaps Dzonsons [Thu, 12 Nov 2009 08:21:05 +0000 (08:21 +0000)]
Fixed \c support for all input and output modes (documented in mandoc_char.7).
Kristaps Dzonsons [Thu, 12 Nov 2009 08:00:21 +0000 (08:00 +0000)]
Deprecated ".i <notext>" support (nobody uses it -- it can be re-added, but adds a bit of complexity that I'd rather avoid).
Kristaps Dzonsons [Thu, 12 Nov 2009 05:58:30 +0000 (05:58 +0000)]
FreeBSD sys/types inclusion fixed.
Kristaps Dzonsons [Thu, 12 Nov 2009 05:50:12 +0000 (05:50 +0000)]
Basically re-wrote -Tascii font handling: instead of incrementers for
bold and underline, we use a stack (no cascading, no double-font-mode).
Font modes with \f only affect the current stack point, as documented in
mdoc.7 and man.7. While -mdoc stacks fonts with embedded macros, -man
replaces them (the stack is always size 1). This works for all
invocations in supported systems' manual corpora to date. It doesn't
support groff's insanity with line-scoped \f as documented in mdoc.7.
Kristaps Dzonsons [Thu, 12 Nov 2009 05:02:56 +0000 (05:02 +0000)]
Removed superfluous monospace note in example.style.css (they're all monospace).
Kristaps Dzonsons [Wed, 11 Nov 2009 20:16:10 +0000 (20:16 +0000)]
Protected example.style.css from cascading styles.
Kristaps Dzonsons [Tue, 10 Nov 2009 16:32:00 +0000 (16:32 +0000)]
Lint fixes in function call.
Kristaps Dzonsons [Tue, 10 Nov 2009 16:20:22 +0000 (16:20 +0000)]
(Forgot to update html.h with metafonts. Build will puke on check-out.)
Kristaps Dzonsons [Tue, 10 Nov 2009 12:03:29 +0000 (12:03 +0000)]
Noted that -man text decoration is re-set when exiting a macro invocation.
Kristaps Dzonsons [Tue, 10 Nov 2009 11:45:57 +0000 (11:45 +0000)]
Disable metafonts when printing document footer.
Kristaps Dzonsons [Mon, 9 Nov 2009 05:11:46 +0000 (05:11 +0000)]
Documented \s and cleaned up \f documentation in mdoc.7, man.7.
-Thtml now using a2roffdeco().
Kristaps Dzonsons [Sun, 8 Nov 2009 09:23:35 +0000 (09:23 +0000)]
a2roffdeco() now supports \s escapes.
Kristaps Dzonsons [Sat, 7 Nov 2009 14:14:15 +0000 (14:14 +0000)]
Hooked up -Tascii to a2roffdeco backend.
Kristaps Dzonsons [Sat, 7 Nov 2009 08:26:45 +0000 (08:26 +0000)]
Initial abstraction of front-end decoration events (special characters, text decorations, etc.).
Kristaps Dzonsons [Fri, 6 Nov 2009 10:31:31 +0000 (10:31 +0000)]
-Tascii now correctly ignores \s clauses.
Kristaps Dzonsons [Thu, 5 Nov 2009 10:16:01 +0000 (10:16 +0000)]
Documented that `\s' and `\f' don't work in HTML mode (and why).
Added support for recognising the many forms of `\s' (doesn't yet render).
Kristaps Dzonsons [Thu, 5 Nov 2009 08:40:16 +0000 (08:40 +0000)]
Correct support for `\fX' font modes in -Tascii.
Kristaps Dzonsons [Thu, 5 Nov 2009 08:39:36 +0000 (08:39 +0000)]
Consolidated `RI' and `IR' handlers (-man -Tascii).
Kristaps Dzonsons [Thu, 5 Nov 2009 08:37:12 +0000 (08:37 +0000)]
Fixed `RI' (was reversed).
Kristaps Dzonsons [Thu, 5 Nov 2009 07:21:01 +0000 (07:21 +0000)]
Added functionality of -Tascii non-breaking `\~' space.
Kristaps Dzonsons [Wed, 4 Nov 2009 08:07:59 +0000 (08:07 +0000)]
(Fix again for default `Bf Li' font.)
Kristaps Dzonsons [Wed, 4 Nov 2009 08:07:31 +0000 (08:07 +0000)]
Fixed `Bf Li' default style (monospace).
Kristaps Dzonsons [Mon, 2 Nov 2009 17:37:19 +0000 (17:37 +0000)]
Version: 1.9.13.
Kristaps Dzonsons [Mon, 2 Nov 2009 17:07:30 +0000 (17:07 +0000)]
Examples not being link-referenced (consistency).
Kristaps Dzonsons [Mon, 2 Nov 2009 11:39:40 +0000 (11:39 +0000)]
Copied over and modified manual structure from man.7.
Kristaps Dzonsons [Mon, 2 Nov 2009 09:56:42 +0000 (09:56 +0000)]
Fixed `Sx' links in man.7 (todo: add a check for these).
Kristaps Dzonsons [Mon, 2 Nov 2009 09:53:15 +0000 (09:53 +0000)]
Significant improvements to man(7). More or less finished.
Kristaps Dzonsons [Mon, 2 Nov 2009 08:40:31 +0000 (08:40 +0000)]
Fix in junking dot lines in -man (from PR by Alex Kozlov).
Kristaps Dzonsons [Mon, 2 Nov 2009 08:29:25 +0000 (08:29 +0000)]
Added forgotten newline terminators in main.c.
Kristaps Dzonsons [Mon, 2 Nov 2009 08:13:48 +0000 (08:13 +0000)]
Added lint to __attribute__ defines.
Kristaps Dzonsons [Mon, 2 Nov 2009 08:08:23 +0000 (08:08 +0000)]
Using straight-up __attribute__ (inspired by portable openssh).
Kristaps Dzonsons [Mon, 2 Nov 2009 06:22:44 +0000 (06:22 +0000)]
Added mandoc_a2time() for proper date conversion.
Fitted TH and Dd handlers to use mandoc_a2time().
Documented date syntax for -man, fixed documentation for -mdoc.
Kristaps Dzonsons [Sun, 1 Nov 2009 15:34:44 +0000 (15:34 +0000)]
Lint fix.
Kristaps Dzonsons [Sun, 1 Nov 2009 15:34:15 +0000 (15:34 +0000)]
Using putchar for single-character prints (noted by Joerg Sonnenberger).
Kristaps Dzonsons [Sun, 1 Nov 2009 08:15:20 +0000 (08:15 +0000)]
print_encode() using strcspn instead of looping/putchar() (noted by Joerg Sonnenberger).
Kristaps Dzonsons [Sun, 1 Nov 2009 07:44:32 +0000 (07:44 +0000)]
Replaced putchar() loop with fwrite() (noted by Joerg Sonnenberger).
Kristaps Dzonsons [Sun, 1 Nov 2009 07:34:22 +0000 (07:34 +0000)]
More libraries entered into lib.in (thanks Joerg Sonnenberger).
Kristaps Dzonsons [Sat, 31 Oct 2009 08:37:26 +0000 (08:37 +0000)]
Finished section-by-section definitions in man.7 (will be used as baseline for mdoc.7).
Kristaps Dzonsons [Sat, 31 Oct 2009 08:34:12 +0000 (08:34 +0000)]
Fixed -Thtml printing of -ohang lists (-mdoc).
Fixed validation of -ohang lists as having no widths.
Kristaps Dzonsons [Sat, 31 Oct 2009 06:50:25 +0000 (06:50 +0000)]
Patch on DragonFly BSD syntax (thanks Sascha Wildner).
Noted inclusion into DragonFly BSD (thanks Sascha Wildner).
Kristaps Dzonsons [Sat, 31 Oct 2009 06:38:08 +0000 (06:38 +0000)]
Fixed in make dist (in version 1.9.12).
Kristaps Dzonsons [Sat, 31 Oct 2009 06:23:28 +0000 (06:23 +0000)]
Version: 1.9.12.
Kristaps Dzonsons [Sat, 31 Oct 2009 06:17:19 +0000 (06:17 +0000)]
Removed non-portable __progname (thanks Joerg Sonnenberger).
Kristaps Dzonsons [Sat, 31 Oct 2009 06:10:57 +0000 (06:10 +0000)]
Using perror() instead of fprintf for failure from library functions.
Kristaps Dzonsons [Fri, 30 Oct 2009 18:53:08 +0000 (18:53 +0000)]
More lint fixes.
Removed err.h from inclusions (less main.c--still in progress).
Kristaps Dzonsons [Fri, 30 Oct 2009 18:50:11 +0000 (18:50 +0000)]
Lint fixes.
Made realloc puke with fprintf.
Kristaps Dzonsons [Fri, 30 Oct 2009 18:43:24 +0000 (18:43 +0000)]
Continued safe handling of allocations.
Kristaps Dzonsons [Fri, 30 Oct 2009 05:58:36 +0000 (05:58 +0000)]
libmdoc and libman now using non-recoverable allocations (simpler code).
Kristaps Dzonsons [Fri, 30 Oct 2009 04:57:17 +0000 (04:57 +0000)]
Added newline after block-level closing tags (suggested by Joerg Sonnenberger).
Kristaps Dzonsons [Thu, 29 Oct 2009 04:34:38 +0000 (04:34 +0000)]
Clean-ups in mdoc_action (using libmandoc.h functions).
Kristaps Dzonsons [Wed, 28 Oct 2009 19:21:59 +0000 (19:21 +0000)]
Slow movement of internal allocations to fail completely.
Kristaps Dzonsons [Wed, 28 Oct 2009 08:08:53 +0000 (08:08 +0000)]
Using "--warn" for validate, plus some accessibility fixes.
Kristaps Dzonsons [Wed, 28 Oct 2009 08:00:17 +0000 (08:00 +0000)]
Fixed `sp', `br', `Pp', etc. so as not to have an empty div (-Thtml, -man, -mdoc).
Made html_idcat be completely correct (messy standard) (-Thtml).
Fixed warnings about -ohang and -item lists (-Thtml, -mdoc).
Fixed typo in index.sgml.
Kristaps Dzonsons [Wed, 28 Oct 2009 06:54:12 +0000 (06:54 +0000)]
Removed superfluous memset (thanks Joerg Sonnenberger).
Kristaps Dzonsons [Wed, 28 Oct 2009 05:08:17 +0000 (05:08 +0000)]
Fixed un-reset buffer in `.In', -Thtml, -mdoc.
Added html_id[cat,cpy] for transforming id's into well-formed attribute strings (no %s, etc.).
Kristaps Dzonsons [Tue, 27 Oct 2009 08:49:44 +0000 (08:49 +0000)]
Removed dynamic allocations of header/footer data.
Kristaps Dzonsons [Tue, 27 Oct 2009 08:26:11 +0000 (08:26 +0000)]
bzero() -> memset() (noted by Joerg Sonnenberger).
Kristaps Dzonsons [Tue, 27 Oct 2009 08:05:39 +0000 (08:05 +0000)]
Merged Ingo's comments on term_flushln() variable names.
Fixed assertion (this needs more consideration) when an overstep line is exactly as long as the rmargin.
Kristaps Dzonsons [Tue, 27 Oct 2009 04:50:14 +0000 (04:50 +0000)]
Added "summary" tag to tables in order to silence HTML-tidy's complaints.
Kristaps Dzonsons [Mon, 26 Oct 2009 17:05:43 +0000 (17:05 +0000)]
Added time.h to various files for FreeBSD compilation (thanks Ulrich Sporlein).
Kristaps Dzonsons [Mon, 26 Oct 2009 15:44:51 +0000 (15:44 +0000)]
Merged patch to allow -fign-escape (thanks Joerg Sonnenberger).
Kristaps Dzonsons [Mon, 26 Oct 2009 10:36:46 +0000 (10:36 +0000)]
Fix to segfault in ordering Rs blocks (d'oh!).
Version: 1.9.11.
Kristaps Dzonsons [Mon, 26 Oct 2009 09:06:03 +0000 (09:06 +0000)]
Lint fix.
Kristaps Dzonsons [Mon, 26 Oct 2009 09:00:41 +0000 (09:00 +0000)]
Version: 1.9.10.
Kristaps Dzonsons [Mon, 26 Oct 2009 08:42:37 +0000 (08:42 +0000)]
Allowed -O to be invoked multiple times.
Kristaps Dzonsons [Mon, 26 Oct 2009 08:18:15 +0000 (08:18 +0000)]
Portability: replaced queue macros in html.c (Joerg Sonnenberger).
Fixed "-o" residue.
Added "-O" to usage() (-o didn't appear there either).
Kristaps Dzonsons [Mon, 26 Oct 2009 07:18:23 +0000 (07:18 +0000)]
Fixed overstep patch.
Kristaps Dzonsons [Mon, 26 Oct 2009 07:11:06 +0000 (07:11 +0000)]
-man also prints unknown macro (noted by Joerg Sonnenberger).
Kristaps Dzonsons [Mon, 26 Oct 2009 04:15:41 +0000 (04:15 +0000)]
Changed `-o' to `-O' for clarity. THIS BREAKS UTILITIES DEPENDING ON -o!
Kristaps Dzonsons [Mon, 26 Oct 2009 04:09:45 +0000 (04:09 +0000)]
Full `%U' support.
`Lk' display fixed.
Renamed arg2xxxx as a2xxxx for consistency.
Renamed print_foot to print_man_foot for consistency.
Removed default printing of `~' when `Lk' not provided (not sure where I got that from).
Kristaps Dzonsons [Sat, 24 Oct 2009 06:19:34 +0000 (06:19 +0000)]
Removed need for superfluous `os' value in overstep calculation (thanks Ingo Schwarze).
Kristaps Dzonsons [Sat, 24 Oct 2009 05:52:13 +0000 (05:52 +0000)]
Added `%U' to -mdoc (doesn't render in a nice way yet).
Kristaps Dzonsons [Sat, 24 Oct 2009 05:45:04 +0000 (05:45 +0000)]
Added `PD' to -man (doesn't do anything, yet).
Kristaps Dzonsons [Thu, 22 Oct 2009 18:59:00 +0000 (18:59 +0000)]
Linuxisms.
Kristaps Dzonsons [Thu, 22 Oct 2009 18:55:32 +0000 (18:55 +0000)]
Fixed maddening mismatch between groff and strftime mismatch of day ("%e"). Noted by Ulrich Sporlein.
Kristaps Dzonsons [Thu, 22 Oct 2009 18:19:36 +0000 (18:19 +0000)]
Fixed order of printing backspace-encoding for terms that are both bold and underlined (noted by Joerg Sonnenberger).
Kristaps Dzonsons [Thu, 22 Oct 2009 17:54:24 +0000 (17:54 +0000)]
Added ability to set OS name at compile-time with -DOSNAME="\"foo\"".
Kristaps Dzonsons [Thu, 22 Oct 2009 10:36:20 +0000 (10:36 +0000)]
Typo in mdoc.7 fixed (thanks to Joerg Sonnenberger).
Kristaps Dzonsons [Thu, 22 Oct 2009 10:35:33 +0000 (10:35 +0000)]
Fix adding -centred to `Bd' types (thanks to Joerg Sonnenberger).
Kristaps Dzonsons [Thu, 22 Oct 2009 10:33:28 +0000 (10:33 +0000)]
Groff-compatibility fix (Ds) (noted by Joerg Sonnenberger).
Kristaps Dzonsons [Thu, 22 Oct 2009 03:35:35 +0000 (03:35 +0000)]
Noted downstream in NetBSD base. Many thanks to Joerg et al. for their efforts in getting it checked in!
Kristaps Dzonsons [Wed, 21 Oct 2009 03:31:49 +0000 (03:31 +0000)]
Fixed strftime stray %d -> %e (pointed out by Ulrich Sporlein).
Kristaps Dzonsons [Tue, 20 Oct 2009 18:31:04 +0000 (18:31 +0000)]
Temporarily turned off validation (mandoc -Thtml needs URI encoding!).
Aesthetic fixes in index.sgml.
Kristaps Dzonsons [Tue, 20 Oct 2009 18:20:59 +0000 (18:20 +0000)]
Version: 1.9.9.
Kristaps Dzonsons [Tue, 20 Oct 2009 18:14:31 +0000 (18:14 +0000)]
Added cvsweb. Whee!
Kristaps Dzonsons [Tue, 20 Oct 2009 05:45:21 +0000 (05:45 +0000)]
More updates to mdoc.7.
Kristaps Dzonsons [Mon, 19 Oct 2009 15:18:30 +0000 (15:18 +0000)]
More fixes to scaling-width multipliers (which, just to make my life difficult, differ not only between -mdoc and -man, but between various invocation, e.g., -offset and -width).
Kristaps Dzonsons [Mon, 19 Oct 2009 11:02:23 +0000 (11:02 +0000)]
Continued work on mdoc.7.
Noted buffer overwrite bug in -Thtml -mdoc (will fix later).
Kristaps Dzonsons [Mon, 19 Oct 2009 10:18:05 +0000 (10:18 +0000)]
Fixed -mdoc -Thtml with -item lists not to default-indent when width isn't specified.
Many more cleanups to mdoc.7 (ongoing completion and documentation of all macros).
Kristaps Dzonsons [Mon, 19 Oct 2009 09:40:23 +0000 (09:40 +0000)]
Fixed `-file' argument to `Bd', which is NOT a type, but instead just an argument.
Kristaps Dzonsons [Mon, 19 Oct 2009 07:44:30 +0000 (07:44 +0000)]
Made man.7 use lots of Sx/Ss to link between macro definitions and references.
Kristaps Dzonsons [Mon, 19 Oct 2009 07:34:43 +0000 (07:34 +0000)]
Beginning of mdoc.7 full-reference in place.
Kristaps Dzonsons [Sun, 18 Oct 2009 19:17:14 +0000 (19:17 +0000)]
Lint fixes.
Kristaps Dzonsons [Sun, 18 Oct 2009 19:03:36 +0000 (19:03 +0000)]
Made sure devices and formats recognise that -man and -mdoc have different syntax for scaling widths: -mdoc assumes no unit means that the value is a string literal while -man instead uses the default vertical/horizontal scale.
Kristaps Dzonsons [Sun, 18 Oct 2009 19:02:10 +0000 (19:02 +0000)]
Had out.h roff-scale converters accept default unit scale (because -mdoc and -man differ).