summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas E. Dickey <dickey@invisible-island.net>2019-04-15 17:13:05 -0400
committerThomas E. Dickey <dickey@invisible-island.net>2019-04-16 18:48:58 -0400
commitcbf4dd22eedc33309efacfb2a1a795debdd44b3b (patch)
tree1482e541ab88ad2d69ef98148f7c123de5c53dfb
parent1474d2e826773f3f5aa61ef2ad827c977ee5d084 (diff)
trim spurious backslashes from translation of nroff to docbook xml
Signed-off-by: Thomas E. Dickey <dickey@invisible-island.net>
-rw-r--r--specs/CH01.xml2
-rw-r--r--specs/CH02.xml6
-rw-r--r--specs/CH09.xml36
-rw-r--r--specs/CH10.xml6
-rw-r--r--specs/appB.xml8
5 files changed, 29 insertions, 29 deletions
diff --git a/specs/CH01.xml b/specs/CH01.xml
index 5282382..6a493c8 100644
--- a/specs/CH01.xml
+++ b/specs/CH01.xml
@@ -100,7 +100,7 @@ or
On a POSIX-based system,
the Intrinsics object library file is named
<function>libXt.a</function>
-and is usually referenced as \-lXt when linking the application.
+and is usually referenced as -lXt when linking the application.
</para>
</sect1>
diff --git a/specs/CH02.xml b/specs/CH02.xml
index 6e2e163..0abf557 100644
--- a/specs/CH02.xml
+++ b/specs/CH02.xml
@@ -544,7 +544,7 @@ function calls
with the specified <emphasis remap='I'>display_string</emphasis>.
If <emphasis remap='I'>display_string</emphasis> is NULL,
<xref linkend='XtOpenDisplay' xrefstyle='select: title'/>
-uses the current value of the \-display option specified in <emphasis remap='I'>argv</emphasis>.
+uses the current value of the -display option specified in <emphasis remap='I'>argv</emphasis>.
If no display is specified in <emphasis remap='I'>argv</emphasis>,
the user's default display is retrieved from the environment.
On POSIX-based systems,
@@ -559,8 +559,8 @@ If this succeeds,
then calls
<xref linkend='XtDisplayInitialize' xrefstyle='select: title'/>
and passes it the opened display and
-the value of the \-name option specified in <emphasis remap='I'>argv</emphasis> as the application name.
-If no \-name option is specified
+the value of the -name option specified in <emphasis remap='I'>argv</emphasis> as the application name.
+If no -name option is specified
and <emphasis remap='I'>application_name</emphasis> is
non-NULL, <emphasis remap='I'>application_name</emphasis> is passed to
<xref linkend='XtDisplayInitialize' xrefstyle='select: title'/>.
diff --git a/specs/CH09.xml b/specs/CH09.xml
index 09993a0..27591b6 100644
--- a/specs/CH09.xml
+++ b/specs/CH09.xml
@@ -1573,7 +1573,7 @@ Alphabetic case is not significant in the conversion.
The String-to-CommandArgArray conversion parses a String into an
array of strings.
White space characters separate elements of the command line.
-The converter recognizes the backslash character &ldquo;\\&rdquo; as an escape
+The converter recognizes the backslash character &ldquo;\&rdquo; as an escape
character to allow the following white space character to be part of the
array element.
</para>
@@ -1943,22 +1943,22 @@ a function of the particular display (and colormap).
</para>
<programlisting>
-#define done(type, value) \\
- { \\
- if (toVal-&gt;addr != NULL) { \\
- if (toVal-&gt;size &lt; sizeof(type)) { \\
- toVal-&gt;size = sizeof(type); \\
- return False; \\
- } \\
- *(type*)(toVal-&gt;addr) = (value); \\
- } \\
- else { \\
- static type static_val; \\
- static_val = (value); \\
- toVal-&gt;addr = (XPointer)&amp;static_val; \\
- } \\
- toVal-&gt;size = sizeof(type); \\
- return True; \\
+#define done(type, value) \
+ { \
+ if (toVal-&gt;addr != NULL) { \
+ if (toVal-&gt;size &lt; sizeof(type)) { \
+ toVal-&gt;size = sizeof(type); \
+ return False; \
+ } \
+ *(type*)(toVal-&gt;addr) = (value); \
+ } \
+ else { \
+ static type static_val; \
+ static_val = (value); \
+ toVal-&gt;addr = (XPointer)&amp;static_val; \
+ } \
+ toVal-&gt;size = sizeof(type); \
+ return True; \
}
static Boolean CvtStringToPixel(
@@ -2001,7 +2001,7 @@ static Boolean CvtStringToPixel(
"noColormap",
"cvtStringToPixel",
"XtToolkitError",
- "Cannot allocate colormap entry for \\"%s\\"",
+ "Cannot allocate colormap entry for \"%s\"",
params, &amp;num_params);
*converter_data = (char *) False;
return False;
diff --git a/specs/CH10.xml b/specs/CH10.xml
index be4232d..519f428 100644
--- a/specs/CH10.xml
+++ b/specs/CH10.xml
@@ -552,9 +552,9 @@ The following illustrates Pushbutton's default translation table:
</para>
<programlisting>
static String defaultTranslations =
- "&lt;EnterWindow&gt;: Highlight()\\n\\
- &lt;LeaveWindow&gt;: Unhighlight()\\n\\
- &lt;Btn1Down&gt;: Set()\\n\\
+ "&lt;EnterWindow&gt;: Highlight()\n\
+ &lt;LeaveWindow&gt;: Unhighlight()\n\
+ &lt;Btn1Down&gt;: Set()\n\
&lt;Btn1Up&gt;: Notify() Unset()";
</programlisting>
<para>
diff --git a/specs/appB.xml b/specs/appB.xml
index ec87056..ef67404 100644
--- a/specs/appB.xml
+++ b/specs/appB.xml
@@ -54,11 +54,11 @@ Syntax
</row>
<row>
<entry>directive</entry>
- <entry>= ( "#replace" | "#override" | "#augment" ) "\\\\n"</entry>
+ <entry>= ( "#replace" | "#override" | "#augment" ) "\\n"</entry>
</row>
<row>
<entry>production</entry>
- <entry>= lhs ":" rhs "\\\\n"</entry>
+ <entry>= lhs ":" rhs "\\n"</entry>
</row>
<row>
<entry>lhs</entry>
@@ -70,7 +70,7 @@ Syntax
</row>
<row>
<entry>keychar</entry>
- <entry>= [ "^" | "$" | "\\\\" ] &lt;ISO Latin 1 character&gt;</entry>
+ <entry>= [ "^" | "$" | "\\" ] &lt;ISO Latin 1 character&gt;</entry>
</row>
<row>
<entry>event</entry>
@@ -142,7 +142,7 @@ The <emphasis remap='I'>params</emphasis> field is parsed into a list of
values that will be passed to the named action procedure. A
<emphasis remap='I'>quoted string</emphasis> may contain an embedded quotation mark if the
quotation mark is preceded by a single backslash (\). The
-three-character sequence "\\\"" is interpreted as "single backslash
+three-character sequence "\\"" is interpreted as "single backslash
followed by end-of-string".
</para>
<para><emphasis role='strong'>Modifier Names</emphasis></para>