source@mandoc.bsd.lv
 help / color / mirror / Atom feed
* mdocml: The mdoc(7) \*(Ba predefined string actually forces roman font;
@ 2012-07-18 10:39 schwarze
  0 siblings, 0 replies; only message in thread
From: schwarze @ 2012-07-18 10:39 UTC (permalink / raw)
  To: source

Log Message:
-----------
The mdoc(7) \*(Ba predefined string actually forces roman font;
that's stupid because it may break enclosing font changes,
but let's do the same for groff bug compatibility.

--> Never use \*(Ba, use just plain "|"! <--

Also, predefined strings are already expanded by the roff(7) parser,
so the mdoc(7) parser has to look for the expanded string.

OpenBSD rev. mdoc.c 1.90 and predefs.in 1.3

Modified Files:
--------------
    mdocml:
        TODO
        mdoc.c
        predefs.in

Revision Data
-------------
Index: predefs.in
===================================================================
RCS file: /usr/vhosts/mdocml.bsd.lv/cvs/mdocml/predefs.in,v
retrieving revision 1.3
retrieving revision 1.4
diff -Lpredefs.in -Lpredefs.in -u -p -r1.3 -r1.4
--- predefs.in
+++ predefs.in
@@ -26,7 +26,7 @@
  */
 
 PREDEF("Am", "&")
-PREDEF("Ba", "|")
+PREDEF("Ba", "\\fR|\\fP")
 PREDEF("Ge", "\\(>=")
 PREDEF("Gt", ">")
 PREDEF("If", "infinity")
Index: TODO
===================================================================
RCS file: /usr/vhosts/mdocml.bsd.lv/cvs/mdocml/TODO,v
retrieving revision 1.137
retrieving revision 1.138
diff -LTODO -LTODO -u -p -r1.137 -r1.138
--- TODO
+++ TODO
@@ -203,11 +203,6 @@
   is just "o\bo".
   see for example OpenBSD ksh(1)
 
-- The characters "|" and "\*(Ba" should never be bold,
-  not even in the middle of a word, e.g. ".Cm b\*(Bac" in
-  "mknod [-m mode] name b|c major minor"
-  in OpenBSD ksh(1)
-
 - A bogus .Pp between two .It must not produce a double blank line,
   see between -R and -r in OpenBSD rm(1), before "update" in mount(8),
   or in DIAGNOSTICS in init(8), or before "is always true" in ksh(1).
@@ -268,13 +263,6 @@
   Port OpenBSD man_term.c rev. 1.25 to mdoc_term.c
   and document it in mdoc(7) and man(7) COMPATIBILITY
   found while talking to Chris Bennett
-
-- In man(7), the sequence
-    .HP
-    one line of regular text
-    .SH
-  should not produce two blank lines before the .SH,
-  see for example named-checkconf(8).
 
 - In man(7), the sequence
     .SH HEADER
Index: mdoc.c
===================================================================
RCS file: /usr/vhosts/mdocml.bsd.lv/cvs/mdocml/mdoc.c,v
retrieving revision 1.199
retrieving revision 1.200
diff -Lmdoc.c -Lmdoc.c -u -p -r1.199 -r1.200
--- mdoc.c
+++ mdoc.c
@@ -982,7 +982,7 @@ mdoc_isdelim(const char *p)
 
 	if (0 == strcmp(p + 1, "."))
 		return(DELIM_CLOSE);
-	if (0 == strcmp(p + 1, "*(Ba"))
+	if (0 == strcmp(p + 1, "fR|\\fP"))
 		return(DELIM_MIDDLE);
 
 	return(DELIM_NONE);
--
 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:[~2012-07-18 10:39 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-07-18 10:39 mdocml: The mdoc(7) \*(Ba predefined string actually forces roman font; schwarze

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).