From: kristaps@mdocml.bsd.lv
To: source@mdocml.bsd.lv
Subject: mdocml: Make any un-recognised font be considered a call for the Roman
Date: Wed, 18 May 2011 19:59:08 -0400 (EDT) [thread overview]
Message-ID: <201105182359.p4INx8Va022069@krisdoz.my.domain> (raw)
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
reply other threads:[~2011-05-18 23:59 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=201105182359.p4INx8Va022069@krisdoz.my.domain \
--to=kristaps@mdocml.bsd.lv \
--cc=source@mdocml.bsd.lv \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).