[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Groff] [patch] Typographic quotes in -mdoc %T

From: Anthony J. Bentley
Subject: [Groff] [patch] Typographic quotes in -mdoc %T
Date: Wed, 05 Nov 2014 23:07:08 -0700


The below patch causes -mdoc to generate typographic quotes around
a %T (reference title) instead of straight quotes.

I also submitted similar diffs to mandoc and heirloom troff (which
haven't been committed yet). It would be nice for the major
implementations not to differ here, and the change is trivial.

It's worth noting that groff's refer(1) already uses typographic quotes
around %T with my -ms documents.

diff --git a/tmac/doc.tmac b/tmac/doc.tmac
index 80c6b88..ee25144 100644
--- a/tmac/doc.tmac
+++ b/tmac/doc.tmac
@@ -5296,7 +5296,7 @@
 .    unformat doc-reference-title-name-for-book
 .    chop doc-reference-title-name-for-book
 .    ie ((\n[doc-journal-count] == 1) : (\n[doc-book-count] == 1)) \{\
-.      nop \)\*[q]\)\*[doc-reference-title-name-for-book]\)\*[q]\c
+.      nop \)\*[Lq]\)\*[doc-reference-title-name-for-book]\)\*[Rq]\c
 .      doc-finish-reference \n[doc-reference-title-count]
 .    \}
 .    el \{\

reply via email to

[Prev in Thread] Current Thread [Next in Thread]