source@mandoc.bsd.lv
 help / color / mirror / Atom feed
* mdocml: Make any un-recognised font be considered a call for the Roman
@ 2011-05-18 23:59 kristaps
  0 siblings, 0 replies; only message in thread
From: kristaps @ 2011-05-18 23:59 UTC (permalink / raw)
  To: source

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2011-05-18 23:59 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-05-18 23:59 mdocml: Make any un-recognised font be considered a call for the Roman kristaps

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).