source@mandoc.bsd.lv
 help / color / mirror / Atom feed
* mandoc: Explain the ASCII rendering of single quotes because that
@ 2019-02-23 18:54 schwarze
  0 siblings, 0 replies; only message in thread
From: schwarze @ 2019-02-23 18:54 UTC (permalink / raw)
  To: source

Log Message:
-----------
Explain the ASCII rendering of single quotes because that repeatedly
caused confusion in the past.  People plainly do not expect that 
there are limits to the compatibility between Unicode and ASCII,
but there are.

The information belongs here and not into mandoc_char(7) because
it explains how the specific output device (-T ascii) works and
because it has nothing to do with the question of how characters
are represented on the input side.

Modified Files:
--------------
    mandoc:
        mandoc.1

Revision Data
-------------
Index: mandoc.1
===================================================================
RCS file: /home/cvs/mandoc/mandoc/mandoc.1,v
retrieving revision 1.236
retrieving revision 1.237
diff -Lmandoc.1 -Lmandoc.1 -u -p -r1.236 -r1.237
--- mandoc.1
+++ mandoc.1
@@ -267,6 +267,17 @@ instead.
 The special characters documented in
 .Xr mandoc_char 7
 are rendered best-effort in an ASCII equivalent.
+In particular, opening and closing
+.Sq single quotes
+are represented as characters number 0x60 and 0x27, respectively,
+which agrees with all ASCII standards from 1965 to the latest
+revision (2012) and which matches the traditional way in which
+.Xr roff 7
+formatters represent single quotes in ASCII output.
+This correct ASCII rendering may look strange with modern
+Unicode-compatible fonts because contrary to ASCII, Unicode uses
+the code point U+0060 for the grave accent only, never for an opening
+quote.
 .Pp
 The following
 .Fl O
--
 To unsubscribe send an email to source+unsubscribe@mandoc.bsd.lv

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

only message in thread, other threads:[~2019-02-23 18:54 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-02-23 18:54 mandoc: Explain the ASCII rendering of single quotes because that 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).