* mdocml: Add \*(Ai (ANSI) and \*(Px (POSIX) predefined strings, which are
@ 2011-04-20 22:50 kristaps
0 siblings, 0 replies; only message in thread
From: kristaps @ 2011-04-20 22:50 UTC (permalink / raw)
To: source
Log Message:
-----------
Add \*(Ai (ANSI) and \*(Px (POSIX) predefined strings, which are part of
groff's tmac.doc package. Originally noted by Matthew Dempsky.
Feedback by Jason McIntyre, joerg@, and schwarze@. Also add some
documentation about predefined strings, tweaked by schwarze@.
Modified Files:
--------------
mdocml:
chars.c
chars.in
mandoc_char.7
Revision Data
-------------
Index: chars.c
===================================================================
RCS file: /usr/vhosts/mdocml.bsd.lv/cvs/mdocml/chars.c,v
retrieving revision 1.34
retrieving revision 1.35
diff -Lchars.c -Lchars.c -u -p -r1.34 -r1.35
--- chars.c
+++ chars.c
@@ -41,7 +41,7 @@ struct ln {
#define CHARS_BOTH (CHARS_CHAR | CHARS_STRING)
};
-#define LINES_MAX 351
+#define LINES_MAX 353
#define CHAR(in, ch, code) \
{ NULL, (in), (ch), (code), CHARS_CHAR },
Index: chars.in
===================================================================
RCS file: /usr/vhosts/mdocml.bsd.lv/cvs/mdocml/chars.in,v
retrieving revision 1.36
retrieving revision 1.37
diff -Lchars.in -Lchars.in -u -p -r1.36 -r1.37
--- chars.in
+++ chars.in
@@ -375,6 +375,8 @@ STRING("right-parenthesis", ")", 41)
STRING("right-singlequote", "\'", 8217)
STRING("rp", ")", 41)
STRING("Tm", "(Tm)", 8482)
+STRING("Px", "POSIX", 0)
+STRING("Ai", "ANSI", 0)
/* Lines. */
CHAR("ba", "|", 124)
Index: mandoc_char.7
===================================================================
RCS file: /usr/vhosts/mdocml.bsd.lv/cvs/mdocml/mandoc_char.7,v
retrieving revision 1.42
retrieving revision 1.43
diff -Lmandoc_char.7 -Lmandoc_char.7 -u -p -r1.42 -r1.43
--- mandoc_char.7
+++ mandoc_char.7
@@ -481,8 +481,13 @@ Greek letters:
.It \e(ts Ta \(ts Ta sigma terminal
.El
.Sh PREDEFINED STRINGS
-These are not recommended for use, as they differ across
-implementations:
+Predefined strings are inherited from the macro packages of historical
+troff implementations.
+They are
+.Em not recommended
+for use, as they differ across implementations.
+Manuals using these predefined strings are almost certainly not
+portable.
.Pp
.Bl -column -compact -offset indent "Input" "Rendered" "Description"
.It Em Input Ta Em Rendered Ta Em Description
@@ -512,6 +517,8 @@ implementations:
.It \e*(>= Ta \*(>= Ta greater-than-equal
.It \e*(aa Ta \*(aa Ta acute
.It \e*(ga Ta \*(ga Ta grave
+.It \e*(Px Ta \*(Px Ta POSIX standard name
+.It \e*(Ai Ta \*(Ai Ta ANSI standard name
.El
.Sh NUMBERED CHARACTERS
For backward compatibility with existing manuals,
--
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:[~2011-04-20 22:50 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-04-20 22:50 mdocml: Add \*(Ai (ANSI) and \*(Px (POSIX) predefined strings, which are kristaps
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).