Also add some introductory text to each chapter involving gii.

Signed-off-by: Peter Rosin <p...@lysator.liu.se>

diff --git a/rfbproto.rst b/rfbproto.rst
index 18cda39..dfea980 100644
--- a/rfbproto.rst
+++ b/rfbproto.rst
@@ -81,7 +81,7 @@ example, a pen-based handwriting recognition engine might 
generate
 keyboard events.
 
 If you have an input source that does not fit this standard workstation
-model, the Generial Input Interface (gii) protocol extension provides
+model, the General Input Interface (gii) protocol extension provides
 possibilities for input sources with more axes, relative movement and
 more buttons.
 
@@ -506,7 +506,7 @@ Number      Name
 =========== ===========================================================
 255         Anthony Liguori
 254, 127    VMWare
-253         `gii (General Input Interface) Client Message`_
+253         `gii Client Message`_
 252         tight
 251         Pierre Ossman SetDesktopSize
 250         Colin Dean xvp
@@ -781,8 +781,12 @@ No. of bytes    Type                 [Value]    Description
 *length*        ``U8`` array                    *text*
 =============== ==================== ========== =======================
 
-gii (General Input Interface) Client Message
---------------------------------------------
+gii Client Message
+------------------
+
+This message is an extension and may only be sent if the client has
+previously received a `gii Server Message`_ confirming that the server
+supports the General Input Interface extension.
 
 Version
 ~~~~~~~
@@ -1064,7 +1068,7 @@ Number      Name
 =========== ===========================================================
 255         Anthony Liguori
 254, 127    VMWare
-253         `gii (General Input Interface) Server Message`_
+253         `gii Server Message`_
 252         tight
 250         Colin Dean xvp
 =========== ===========================================================
@@ -1162,8 +1166,13 @@ No. of bytes    Type                 [Value]    
Description
 *length*        ``U8`` array                    *text*
 =============== ==================== ========== =======================
 
-gii (General Input Interface) Server Message
---------------------------------------------
+gii Server Message
+------------------
+
+This message is an extension and may only be sent if the server has
+previously received a `SetEncodings`_ message confirming that the
+client supports the General Input Interface extension via the `gii
+Pseudo-encoding`_.
 
 Version
 ~~~~~~~
@@ -1226,7 +1235,7 @@ Number      Name
 16          `ZRLE Encoding`_
 -239        `Cursor Pseudo-encoding`_
 -223        `DesktopSize Pseudo-encoding`_
--305        `gii (General Input Interface) Pseudo-encoding`_
+-305        `gii Pseudo-encoding`_
 =========== ===========================================================
 
 Other registered encodings are:
@@ -1799,14 +1808,14 @@ gracefully, e.g. by showing a black framebuffer or 
delay the screen
 update until a proper update of the framebuffer contents has been
 received.
 
-gii (General Input Interface) Pseudo-encoding
----------------------------------------------
+gii Pseudo-encoding
+-------------------
 
-A client which requests the *gii* pseudo-encoding is declaring that it
-is capable of accepting the *gii* server-to-client message. The server
-declares that it is capable of accepting the *gii* client-to-server
-messages by sending a *gii* server-to-client message of subtype
-*version*.
+A client that supports the General Input Interface extension starts by
+requesting the *gii* pseudo-encoding declaring that it is capable of
+accepting the `gii Server Message`_. The server, in turn, declares that
+it is capable of accepting the `gii Client Message`_ by sending a `gii
+Server Message`_ of subtype *version*.
 
 Requesting the *gii* pseudo-encoding is the first step when a client
 wants to use the *gii* extension of the RFB protocol. The *gii*
------------------------------------------------------------------------------
Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT 
is a gathering of tech-side developers & brand creativity professionals. Meet
the minds behind Google Creative Lab, Visual Complexity, Processing, & 
iPhoneDevCamp as they present alongside digital heavyweights like Barbarian 
Group, R/GA, & Big Spaceship. http://p.sf.net/sfu/creativitycat-com 
_______________________________________________
tigervnc-rfbproto mailing list
tigervnc-rfbproto@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tigervnc-rfbproto

Reply via email to