From e4df9eea266cff53c307c7bfc0b6f5dca3540687 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20=C3=85dahl?= Date: Wed, 17 Sep 2014 22:49:04 +0200 Subject: [PATCH] protocol: Improve formatting of input method and text protocols MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit To make it more readable, add an empty line between each request and event. Also comes with a bonus indentation fix. Signed-off-by: Jonas Ådahl --- protocol/input-method.xml | 28 ++++++++++++++++++++++++---- protocol/text.xml | 30 ++++++++++++++++++++++++++++++ 2 files changed, 54 insertions(+), 4 deletions(-) diff --git a/protocol/input-method.xml b/protocol/input-method.xml index b45a77eb..be1b867e 100644 --- a/protocol/input-method.xml +++ b/protocol/input-method.xml @@ -1,5 +1,6 @@ + Copyright © 2012, 2013 Intel Corporation @@ -25,7 +26,6 @@ THIS SOFTWARE. - Corresponds to a text input on input method side. An input method context @@ -43,7 +43,9 @@ and keysym. The text input can then ignore events from the input method which are based on an outdated state (for example after a reset). + + Send the commit string text for insertion to the application. @@ -59,6 +61,7 @@ + Send the pre-edit string text to the application text input. @@ -73,6 +76,7 @@ + Sets styling information on composing text. The style is applied for @@ -86,6 +90,7 @@ + Sets the cursor position inside the composing text (as byte offset) @@ -97,16 +102,16 @@ + - - This request will be handled on text_input side as part of a directly following commit_string request. + Sets the cursor and anchor to a new position. Index is the new cursor @@ -122,9 +127,11 @@ + + Notify when a key event was sent. Key events should not be used for @@ -138,6 +145,7 @@ + Allows an input method to receive hardware keyboard input and process @@ -145,8 +153,9 @@ allows input methods which compose multiple key events for inputting text like it is done for CJK languages. - + + Should be used when filtering key events with grab_keyboard. @@ -163,6 +172,7 @@ + Should be used when filtering key events with grab_keyboard. @@ -177,6 +187,7 @@ + @@ -185,6 +196,7 @@ + The plain surrounding text around the input position. Cursor is the @@ -197,19 +209,24 @@ + + + + + @@ -222,6 +239,7 @@ object per seat. On activate there is a new input method context object created which allows the input method to communicate with the text input. + A text input was activated. Creates an input method context object @@ -229,6 +247,7 @@ + The text input corresponding to the context argument was deactivated. @@ -270,4 +289,5 @@ + diff --git a/protocol/text.xml b/protocol/text.xml index def7c277..6f0c2a53 100644 --- a/protocol/text.xml +++ b/protocol/text.xml @@ -48,6 +48,7 @@ and keysym. The text input can then ignore events from the input method which are based on an outdated state (for example after a reset). + Requests the text-input object to be activated (typically when the @@ -60,6 +61,7 @@ + Requests the text-input object to be deactivated (typically when the @@ -68,16 +70,19 @@ + Requests input panels (virtual keyboard) to show. + Requests input panels (virtual keyboard) to hide. + Should be called by an editor widget when the input state should be @@ -85,6 +90,7 @@ input method flow. + Sets the plain surrounding text around the input position. Text is @@ -97,6 +103,7 @@ + Content hint is a bitmask to allow to modify the behavior of the text @@ -116,6 +123,7 @@ + The content purpose allows to specify the primary purpose of a text @@ -138,6 +146,7 @@ + Sets the content purpose and content hint. While the purpose is the @@ -151,12 +160,14 @@ + + Sets a specific language. This allows for example a virtual keyboard to @@ -169,13 +180,16 @@ + + + Notify the text-input object when it received focus. Typically in @@ -183,6 +197,7 @@ + Notify the text-input object when it lost focus. Either in response @@ -190,6 +205,7 @@ destroyed. + Transfer an array of 0-terminated modifiers names. The position in @@ -198,12 +214,14 @@ + Notify when the visibility state of the input panel changed. + Notify when a new composing text (pre-edit) should be set around the @@ -220,6 +238,7 @@ + @@ -230,6 +249,7 @@ + Sets styling information on composing text. The style is applied for @@ -244,6 +264,7 @@ + Sets the cursor position inside the composing text (as byte @@ -254,6 +275,7 @@ + Notify when text should be inserted into the editor widget. The text to @@ -267,6 +289,7 @@ + Notify when the cursor or anchor position should be modified. @@ -277,6 +300,7 @@ + Notify when the text around the current cursor position should be @@ -291,6 +315,7 @@ + Notify when a key event was sent. Key events should not be used @@ -306,6 +331,7 @@ + Sets the language of the input text. The "language" argument is a RFC-3066 @@ -314,11 +340,13 @@ + + Sets the text direction of input text. @@ -336,6 +364,7 @@ A factory for text-input objects. This object is a global singleton. + Creates a new text-input object. @@ -343,4 +372,5 @@ +