2011-08-16 19:44 schwarze * mdoc.7: Replace the .Fl examples by others exhibiting the same features, but avoiding use of .Nm, because letting .Nm call other macros is unusual style, and we don't want unusual style in examples. Issue brought up by kristaps@. 2011-08-16 19:37 schwarze * mdoc.7: More information about lots of macros, many new examples, and various fixes. ok kristaps@ 2011-08-16 18:21 kristaps * Makefile, index.sgml: Added generation of Universal binary. Fixed up index.sgml to be shorter and more expressive. 2011-08-16 08:31 kristaps * Makefile: Version: 1.11.6. 2011-08-16 08:30 kristaps * roff.c: Lint check. 2011-08-16 08:23 kristaps * mdoc_validate.c, term_ps.c: Fixed mingw compatibility where the "z" printf() modifier isn't recognised. It's easier to make these u_int than to jump through hoops for a special formatter. 2011-08-16 08:15 kristaps * Makefile: Updating mingw32 install hooks for new mingw version. 2011-08-16 08:13 kristaps * Makefile, index.sgml: Initial version bits in place. Also added forgotten tests to installed files. 2011-08-10 10:07 kristaps * mdoc.7, mdoc_html.c, mdoc_macro.c, mdoc_validate.c: Allow `Sx' and `Ss' to have child nodes. Fixes manuals in NetBSD. Originally pointed out by joerg@ then again by Thomas Klausner by way of Nicolas Joy. Note: don't use these constructions as you can't link to the sections with `Sx'. 2011-08-03 17:25 schwarze * mdoc.7: Add small chunks of new text and better examples written from scratch, filling gaps found by checking the MANUAL DOMAIN chapter in mdoc.samples(7). While here, fix lots of minor issues. feedback and ok jmc@ 2011-08-01 21:07 schwarze * mdoc.7: The term "reserved terms" is too broad, so narrow it down to "delimiters", and explain which special handling they get as macro arguments. Move the text to a better place and remove a few lies. Postpone figuring out the lists of macros causing that special handling, it would cost too much time right now. feedback and ok jmc@ This also brings the file back in sync with OpenBSD. 2011-08-01 03:45 schwarze * mdoc.7: Add some new text written from scratch after checking whether anything explained in mdoc.samples(7) is missing from mdoc(7): * Discourage trailing whitespace. * Move all information about quoted arguments to the relevant subsection, shortening it a bit, and adding an example. * Mention that blanks can be quoted with a backslash. * A better .Nd line in the template (verbatim from mdoc.samples(7)). * Explain how to escape callable macro names, and provide examples. ok jmc@ 2011-07-31 13:42 schwarze * mdoc.7: trivial fixes found while merging to OpenBSD: * ellipsis is an argument to .Ar, not part of the preceding argument * libz, libpam, on, off are not placeholders for arguments * .Rv is not only relevant for system calls, see atexit(3), sem_init(3) 2011-07-31 13:30 schwarze * att.in, mdoc.7: System III is relevant for string(3) HISTORY. 2011-07-31 07:36 schwarze * predefs.in: Make sure that in -Tascii mode, predefined strings render the same way as in groff. With this fix, \*(If, \*(Pi and \*(Tm change in other output modes, but -Tascii is what matters. Found when merging 1.11.3 to OpenBSD; ok kristaps@. 2011-07-31 07:24 schwarze * chars.c: Regression fixes after merging 1.11.3 to OpenBSD (rev. 1.20): * Do not pass integers outside the ASCII range to isprint(). * Make sure escaped characters are really printed verbatim when the escape sequence has no special meaning. ok kristaps@ 2011-07-29 06:16 kristaps * roff.c: Use a character-table for quick per-character substitution in `tr'. As suggested by joerg@. 2011-07-29 05:19 kristaps * roff.c: Renamed roffstr as roffkv (key-value) and split out char/size_t into roffstr. 2011-07-28 10:53 kristaps * roff.c: Fix border condition in `tr' grokking arguments. 2011-07-28 10:37 kristaps * TODO: Remove TODO entry about `tr'. 2011-07-28 10:17 kristaps * libmandoc.h, man.c, mdoc.c, roff.7, roff.c: An implementation of `tr'. This routes allocations of TEXT nodes through libroff, which does the appropriate translations of `tr'. This is SLOW: it uses the backend of `ds' and `de', which is a simple linear list. However, unlike `ds' and `de', it iterates over EACH CHARACTER of the entire file looking for replacements. 2011-07-27 16:55 kristaps * roff.c: Correctly set valsz this time. 2011-07-27 13:25 kristaps * roff.c: Have roffstr keep track of string lengths. 2011-07-27 10:58 kristaps * roff.c: Fix a memory-offset bug that was hell tracking down. 2011-07-27 10:23 kristaps * roff.c: Rename some terms (incremental part of a larger set of check-ins). 2011-07-27 10:19 kristaps * roff.c: Fix hyphen-replacement loop. 2011-07-27 09:47 kristaps * roff.c: Critical fix to avoid looping forever. 2011-07-27 09:42 kristaps * roff.c: Clean up roff_getstrn() function. 2011-07-27 08:43 kristaps * man.c, mdoc.c: Simply word allocation in libmdoc and libman. 2011-07-27 08:41 kristaps * libmandoc.h, mdoc.c, roff.c: Disable in-line eqn processing for a bit. 2011-07-27 03:32 kristaps * libmandoc.h, mandoc.c, roff.c: Move mandoc_hyph() into roff_parsetext() as a single conditional. While here, do some function renames for clarity and make all function prototypes be in one place. 2011-07-27 03:09 kristaps * mdoc.c, roff.c: First, roff_res() has no need to invoke ROFF_RERUN: since it's executed before any other roff processing occurs, it's Ok to just let it do its thing and pass through. Also, make sure this function is ALWAYS called, not just when first_string is defined. Second, add a new function, roff_parsetext(), that post-processes non-macro lines. This, for the time being, amounts to detecting soft hyphens. This fixes a long-standing bug in that -man now has proper hyphen breaking! 2011-07-27 03:06 kristaps * mandoc.c: Update mandoc_hyph() to the extent that numbers on either side of the hyphen make for a non-breakable hyphen. Found by random testing. 2011-07-26 10:24 kristaps * roff.c: Use correct column of warning messages and make sure this function is run even when `first_string' isn't defined. 2011-07-26 10:09 kristaps * man_validate.c, mdoc_validate.c, roff.c: Move checking of escapes into roff.c, where we're already stepping through looking for user-defined escapes. This clears up a nice bit of validation code. 2011-07-25 11:37 kristaps * Makefile, eqn.c, libmandoc.h, libroff.h, mdoc.c, roff.c, tbl.c: Implement the first steps of equation parsing from within libmdoc. This consists of a shim around the text parser that calls out to libroff if equation components exist on the line. Right now this will do nothing, as the equation delimiter always returns nil.