CVSROOT:        /cvs
Module name:    src
Changes by:     schwa...@cvs.openbsd.org        2012/05/28 07:00:51

Modified files:
        usr.bin/mandoc : html.c html.h mandoc.c mandoc.h term.c term.h 
        regress/usr.bin/mandoc/roff: Makefile 
Added files:
        regress/usr.bin/mandoc/roff/esc: Makefile z.in z.out_ascii 

Log message:
Implement the roff \z escape sequence, intended to output the next
character without advancing the cursor position; implement it to
simply skip the next character, as it will usually be overwritten.

With this change, the pod2man(1) preamble user-defined string \*:,
intended to render as a diaeresis or umlaut diacritic above the
preceding character, is rendered in a slightly less ugly way,
though still not correctly.  It was rendered as "z.." and is now
rendered as ".".

Given that the definition of \*: uses elaborate manual \h positioning,
there is little chance for mandoc(1) to ever render it correctly,
but at least we can refrain from printing out a spurious "z", and
we can make the \z do something semi-reasonable for easier cases.

Reply via email to