From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from krisdoz.my.domain (kristaps@localhost [127.0.0.1]) by krisdoz.my.domain (8.14.3/8.14.3) with ESMTP id p4INx9qg031937 for ; Wed, 18 May 2011 19:59:09 -0400 (EDT) Received: (from kristaps@localhost) by krisdoz.my.domain (8.14.3/8.14.3/Submit) id p4INx8Va022069; Wed, 18 May 2011 19:59:08 -0400 (EDT) Date: Wed, 18 May 2011 19:59:08 -0400 (EDT) Message-Id: <201105182359.p4INx8Va022069@krisdoz.my.domain> X-Mailinglist: mdocml-source Reply-To: source@mdocml.bsd.lv MIME-Version: 1.0 From: kristaps@mdocml.bsd.lv To: source@mdocml.bsd.lv Subject: mdocml: Make any un-recognised font be considered a call for the Roman X-Mailer: activitymail 1.26, http://search.cpan.org/dist/activitymail/ Content-Type: text/plain; charset=utf-8 Log Message: ----------- Make any un-recognised font be considered a call for the Roman font. This makes sequences of \f[unknown] \fP not completely puke. From a TODO by schwarze@. Modified Files: -------------- mdocml: TODO html.c term.c Revision Data ------------- Index: term.c =================================================================== RCS file: /usr/vhosts/mdocml.bsd.lv/cvs/mdocml/term.c,v retrieving revision 1.194 retrieving revision 1.195 diff -Lterm.c -Lterm.c -u -p -r1.194 -r1.195 --- term.c +++ term.c @@ -471,6 +471,8 @@ term_word(struct termp *p, const char *w case (ESCAPE_FONTITALIC): term_fontrepl(p, TERMFONT_UNDER); break; + case (ESCAPE_FONT): + /* FALLTHROUGH */ case (ESCAPE_FONTROMAN): term_fontrepl(p, TERMFONT_NONE); break; Index: html.c =================================================================== RCS file: /usr/vhosts/mdocml.bsd.lv/cvs/mdocml/html.c,v retrieving revision 1.144 retrieving revision 1.145 diff -Lhtml.c -Lhtml.c -u -p -r1.144 -r1.145 --- html.c +++ html.c @@ -272,6 +272,8 @@ print_metaf(struct html *h, enum mandoc_ case (ESCAPE_FONTBOLD): font = HTMLFONT_BOLD; break; + case (ESCAPE_FONT): + /* FALLTHROUGH */ case (ESCAPE_FONTROMAN): font = HTMLFONT_NONE; break; @@ -392,6 +394,8 @@ print_encode(struct html *h, const char case (ESCAPE_SPECIAL): print_spec(h, seq, len); break; + case (ESCAPE_FONT): + /* FALLTHROUGH */ case (ESCAPE_FONTPREV): /* FALLTHROUGH */ case (ESCAPE_FONTBOLD): Index: TODO =================================================================== RCS file: /usr/vhosts/mdocml.bsd.lv/cvs/mdocml/TODO,v retrieving revision 1.105 retrieving revision 1.106 diff -LTODO -LTODO -u -p -r1.105 -r1.106 --- TODO +++ TODO @@ -56,11 +56,6 @@ - \c (interrupted text) occurs in chat(8) -- \f(CW (constant width font) occurs in rsyncd.conf(5). - I think we should treat unknown/unavailable fonts as \fR - such that switching back with \fP works correctly - - and doesn't revert the _previous_ \fP. - --- missing mdoc features ---------------------------------------------- - fix bad block nesting involving multiple identical explicit blocks -- To unsubscribe send an email to source+unsubscribe@mdocml.bsd.lv