source@mandoc.bsd.lv
 help / color / mirror / Atom feed
* mdocml: Parse and ignore the escape sequences \, and \/ (italic
@ 2015-08-29 22:40 schwarze
  0 siblings, 0 replies; only message in thread
From: schwarze @ 2015-08-29 22:40 UTC (permalink / raw)
  To: source

Log Message:
-----------
Parse and ignore the escape sequences \, and \/ (italic corrections).
Actually using these is very stupid because they are groff extensions
and other roff(7) implementations typically print unintended characters
at the places where they are used.
Nevertheless, some manuals contain them, for example ocserv(8).
Problem reported by Kurt Jaeger <pi at FreeBSD>.

Modified Files:
--------------
    mdocml:
        mandoc.c
        roff.7

Revision Data
-------------
Index: roff.7
===================================================================
RCS file: /home/cvs/mdocml/mdocml/roff.7,v
retrieving revision 1.73
retrieving revision 1.74
diff -Lroff.7 -Lroff.7 -u -p -r1.73 -r1.74
--- roff.7
+++ roff.7
@@ -1,7 +1,7 @@
 .\"	$Id$
 .\"
 .\" Copyright (c) 2010, 2011, 2012 Kristaps Dzonsons <kristaps@bsd.lv>
-.\" Copyright (c) 2010, 2011, 2013, 2014 Ingo Schwarze <schwarze@openbsd.org>
+.\" Copyright (c) 2010, 2011, 2013-2015 Ingo Schwarze <schwarze@openbsd.org>
 .\"
 .\" Permission to use, copy, modify, and distribute this software for any
 .\" purpose with or without fee is hereby granted, provided that the above
@@ -1839,9 +1839,15 @@ For short names, there are variants
 .No \e* Ns Ar c
 and
 .No \e*( Ns Ar cc .
+.Ss \e,
+Left italic correction (groff extension); ignored by
+.Xr mandoc 1 .
 .Ss \e-
 Special character
 .Dq mathematical minus sign .
+.Ss \e/
+Right italic correction (groff extension); ignored by
+.Xr mandoc 1 .
 .Ss \e[ Ns Ar name ]
 .Sx Special Characters
 with names of arbitrary length, see
Index: mandoc.c
===================================================================
RCS file: /home/cvs/mdocml/mdocml/mandoc.c,v
retrieving revision 1.92
retrieving revision 1.93
diff -Lmandoc.c -Lmandoc.c -u -p -r1.92 -r1.93
--- mandoc.c
+++ mandoc.c
@@ -95,6 +95,10 @@ mandoc_escape(const char **end, const ch
 	case 'd':
 		/* FALLTHROUGH */
 	case 'u':
+		/* FALLTHROUGH */
+	case ',':
+		/* FALLTHROUGH */
+	case '/':
 		return(ESCAPE_IGNORE);
 
 	/*
--
 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:[~2015-08-29 22:40 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-08-29 22:40 mdocml: Parse and ignore the escape sequences \, and \/ (italic 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).