diff --git a/rc/bin/man b/rc/bin/man index f002c2121..086163f1a 100755 --- a/rc/bin/man +++ b/rc/bin/man @@ -11,6 +11,7 @@ d=0 fn roff { preproc=() + Jpflag=() postproc=cat x=`{doctype $2} if (~ $1 t) { @@ -19,6 +20,8 @@ fn roff { if(~ $x *pic*) preproc=($preproc pic) Nflag=-Tutf + if(grep -s '^.ft Jp|\f\[Jp\]' $2) + Jpflag='-mnihongo' } if not { Nflag='-N' @@ -34,17 +37,17 @@ fn roff { {echo -n $FONTS; cat $2