diff --git a/specs/XKB/ch02.xml b/specs/XKB/ch02.xml
index b140e42f..6d8755fe 100644
--- a/specs/XKB/ch02.xml
+++ b/specs/XKB/ch02.xml
@@ -663,7 +663,7 @@ Device, Feedback Class, or Feedback ID invalid
The Xkb extension adds a single protocol error,
BadKeyboard,
to the core protocol error set. This error code will be reported as the
-error_rtrn
+error_rtrn
when
XkbQueryExtension
is called. When a
diff --git a/specs/XKB/ch05.xml b/specs/XKB/ch05.xml
index 4b84f15c..18dadc14 100644
--- a/specs/XKB/ch05.xml
+++ b/specs/XKB/ch05.xml
@@ -883,9 +883,9 @@ To receive
and pass
XkbStateNotifyMask
in both
-bits_to_change
+bits_to_change
and
-values_for_bits.
+values_for_bits.
@@ -899,9 +899,9 @@ To receive
as the
event_type
and specifying the desired state changes in
-bits_to_change
+bits_to_change
and
-values_for_bits
+values_for_bits
using mask bits from Table 5.3.
diff --git a/specs/XKB/ch08.xml b/specs/XKB/ch08.xml
index c6f07677..cc6fde6c 100644
--- a/specs/XKB/ch08.xml
+++ b/specs/XKB/ch08.xml
@@ -1179,13 +1179,9 @@ indicator is mapped to a physical LED, the
-Each of the "
-_rtrn
-" arguments is optional; you can pass
+Each of the "_rtrn" arguments is optional; you can pass
NULL
- for any unneeded "
-_rtrn
-" arguments.
+ for any unneeded "_rtrn" arguments.
@@ -1745,9 +1741,9 @@ To receive
events, use
XkbSelectEvents
(see section 4.3) with both the
-bits_to_change
+bits_to_change
and
-values_for_bits
+values_for_bits
parameters containing
XkbIndicatorStateNotifyMask.
To receive
@@ -1769,9 +1765,9 @@ Set the
or
XkbIndicatorMapNotify,
and set both the
-bits_to_change
+bits_to_change
and
-values_for_bits
+values_for_bits
detail parameters to a mask where each bit specifies one indicator, turning on
those bits that specify the indicators for which you want to receive events.
diff --git a/specs/XKB/ch09.xml b/specs/XKB/ch09.xml
index 3dede6fe..c3b361b4 100644
--- a/specs/XKB/ch09.xml
+++ b/specs/XKB/ch09.xml
@@ -560,7 +560,9 @@ Otherwise,
calls
XkbDeviceBell
with the specified
-display, window, percent,
+display,
+window,
+percent,
and
name,
a
@@ -812,7 +814,9 @@ Otherwise,
calls
XkbDeviceBellEvent
with the specified
-display, window, percent,
+display,
+window,
+percent,
and
name,
a
@@ -1069,9 +1073,9 @@ To receive
events under all possible conditions, pass
XkbBellNotifyMask
in both the
-bits_to_change
+bits_to_change
and
-values_for_bits
+values_for_bits
parameters to
XkbSelectEvents
(see section 4.3).
@@ -1090,9 +1094,9 @@ can call
and specifying
XkbAllBellEventsMask
in
-bits_to_change
+bits_to_change
and
-values_for_bits.
+values_for_bits.
This has the same effect as a call to
XkbSelectEvents.
diff --git a/specs/XKB/ch10.xml b/specs/XKB/ch10.xml
index c537759d..9f55e63b 100644
--- a/specs/XKB/ch10.xml
+++ b/specs/XKB/ch10.xml
@@ -2115,9 +2115,9 @@ To receive
(see section 4.3) and pass
XkbAccessXNotifyMask
in both
-bits_to_change
+bits_to_change
and
-values_for_bits.
+values_for_bits.
@@ -2131,9 +2131,9 @@ To receive
as the
event_type
and specifying the desired state changes in
-bits_to_change
+bits_to_change
and
-values_for_bits
+values_for_bits
using mask bits from Table 10.5.
@@ -4725,9 +4725,9 @@ description, the server sends an
(see section 4.3) and pass
XkbControlsNotifyMask
in both
-bits_to_change
+bits_to_change
and
-values_for_bits.
+values_for_bits.
@@ -4741,9 +4741,9 @@ To receive
as the
event_type
and specifying the desired state changes in
-bits_to_change
+bits_to_change
and
-values_for_bits
+values_for_bits
using mask bits from Table 10.7.
@@ -4920,7 +4920,7 @@ specified in Table 10.7 with "ok" in the
and specified in
wanted
into the changes record specified by
-old.
+changes.
diff --git a/specs/XKB/ch13.xml b/specs/XKB/ch13.xml
index 155e64ee..68753562 100644
--- a/specs/XKB/ch13.xml
+++ b/specs/XKB/ch13.xml
@@ -1294,8 +1294,8 @@ If
is
NULL,
the top surface is defined as the last outline in the
-shape
-’s array of outlines.
+shape’s
+ array of outlines.
XkbComputeShapeTop
returns
False
diff --git a/specs/XKB/ch14.xml b/specs/XKB/ch14.xml
index 5c6baffa..a3bdb50e 100644
--- a/specs/XKB/ch14.xml
+++ b/specs/XKB/ch14.xml
@@ -990,9 +990,9 @@ To receive
(see section 4.3) and pass
XkbMapNotifyMask
in both
-bits_to_change
+bits_to_change
and
-values_for_bits.
+values_for_bits.
@@ -1006,9 +1006,9 @@ To receive
as the
event_type
and specifying the desired map changes in
-bits_to_change
+bits_to_change
and
-values_for_bits
+values_for_bits
using mask bits from Table 14.1.
diff --git a/specs/XKB/ch16.xml b/specs/XKB/ch16.xml
index 819863ee..c4b829c2 100644
--- a/specs/XKB/ch16.xml
+++ b/specs/XKB/ch16.xml
@@ -421,7 +421,7 @@ corresponding to
returns the key action corresponding to group
grp
and shift level
-lvl
+shift
from the two-dimensional table of key actions associated with the key
corresponding to
keycode.
@@ -2986,9 +2986,9 @@ To receive
and pass
XkbActionMessageMask
in both
-bits_to_change
+bits_to_change
and
-values_for_bits.
+values_for_bits.
@@ -3004,9 +3004,9 @@ The
and specifying
XkbAllActionMessagesMask
in
-bits_to_change
+bits_to_change
and
-values_for_bits.
+values_for_bits.
This has the same effect as a call to
XkbSelectEvents.
diff --git a/specs/XKB/ch17.xml b/specs/XKB/ch17.xml
index 93a1537f..02a4b007 100644
--- a/specs/XKB/ch17.xml
+++ b/specs/XKB/ch17.xml
@@ -1364,8 +1364,8 @@ the vector of
copies compatibility map information from the keyboard description in
xkb
to the server specified in
-display
-’s compatibility map for the device specified by the
+display’s
+ compatibility map for the device specified by the
device_spec
field of
xkb.
@@ -1535,9 +1535,9 @@ To receive
(see section 4.3) and pass
XkbCompatMapNotifyMask
in both
-bits_to_change
+bits_to_change
and
-values_for_bits.
+values_for_bits.
@@ -1551,9 +1551,9 @@ To receive
as the
event_type
and specifying the desired map changes in
-bits_to_change
+bits_to_change
and
-values_for_bits
+values_for_bits
using mask bits from Table 17.2.
diff --git a/specs/XKB/ch18.xml b/specs/XKB/ch18.xml
index cc2969f8..ee2d095e 100644
--- a/specs/XKB/ch18.xml
+++ b/specs/XKB/ch18.xml
@@ -447,7 +447,7 @@ If the
obtains the values specified by
which
and copies them into the keyboard description
-Xkb.
+xkb.
@@ -840,9 +840,9 @@ server sends a
(see section 4.3) with
XkbNamesNotifyMask
in both the
-bits_to_change
+bits_to_change
and
-values_for_bits
+values_for_bits
parameters.
@@ -855,9 +855,9 @@ Set the
parameter to
XkbNamesNotify,
and set both the
-bits_to_change
+bits_to_change
and
-values_for_bits
+values_for_bits
detail parameter to a mask composed of a bitwise OR of masks in
Table 18.1.
diff --git a/specs/XKB/ch19.xml b/specs/XKB/ch19.xml
index 37a2d62c..fa0d54f5 100644
--- a/specs/XKB/ch19.xml
+++ b/specs/XKB/ch19.xml
@@ -190,9 +190,9 @@ To receive name notify events, use
(see section 4.3) with
XkbNewKeyboardNotifyMask
in both the
-bits_to_change
+bits_to_change
and
-values_for_bits
+values_for_bits
parameters. To receive events for only specific names, use
XkbSelectEventDetails.
Set the
@@ -200,9 +200,9 @@ Set the
parameter to
XkbNewKeyboardNotify,
and set both the
-bits_to_change
+bits_to_change
and
-values_for_bits
+values_for_bits
detail parameter to a mask composed of a bitwise OR of masks in
Table 19.1.
diff --git a/specs/XKB/ch21.xml b/specs/XKB/ch21.xml
index 378b452c..7fdf4764 100644
--- a/specs/XKB/ch21.xml
+++ b/specs/XKB/ch21.xml
@@ -1778,9 +1778,9 @@ To receive
and pass
XkbExtensionDeviceNotifyMask
in both
-bits_to_change
+bits_to_change
and
-values_for_bits.
+values_for_bits.
@@ -1796,9 +1796,9 @@ The
and specifying
XkbAllExtensionDeviceEventsMask
in
-bits_to_change
+bits_to_change
and
-values_for_bits.
+values_for_bits.
This has the same effect as a call to
XkbSelectEvents.