From ae55234c536cd3cc06555981477e7a9eb2f92cce Mon Sep 17 00:00:00 2001 From: Yong Bakos Date: Mon, 11 Apr 2016 17:23:02 -0500 Subject: input-method: Correct grammar, add missing line break Adds one line between two sequential request elements, to match conventions within this, and other, protocol xml docs. Signed-off-by: Yong Bakos Reviewed-by: Bryce Harrington --- unstable/input-method/input-method-unstable-v1.xml | 40 ++++++++++++---------- 1 file changed, 21 insertions(+), 19 deletions(-) (limited to 'unstable/input-method/input-method-unstable-v1.xml') diff --git a/unstable/input-method/input-method-unstable-v1.xml b/unstable/input-method/input-method-unstable-v1.xml index fbf1bf2..274eac8 100644 --- a/unstable/input-method/input-method-unstable-v1.xml +++ b/unstable/input-method/input-method-unstable-v1.xml @@ -26,7 +26,7 @@ - Corresponds to a text input on input method side. An input method context + Corresponds to a text input on the input method side. An input method context is created on text input activation on the input method side. It allows to receive information about the text input from the application via events. Input method contexts do not keep state after deactivation and should be @@ -73,11 +73,11 @@ Send the pre-edit string text to the application text input. - The commit text can be used to replace the preedit text on reset (for + The commit text can be used to replace the pre-edit text on reset (for example on unfocus). - Also previously sent preedit_style and preedit_cursor requests are - processed bt the text_input also. + Previously sent preedit_style and preedit_cursor requests are also + processed by the text_input. @@ -91,7 +91,7 @@ the composing text (as byte offset). Multiple styles can be applied to a composing text. - This request should be sent before sending preedit_string request. + This request should be sent before sending a preedit_string request. @@ -105,15 +105,15 @@ When index is negative no cursor should be displayed. - This request should be sent before sending preedit_string request. + This request should be sent before sending a preedit_string request. - This request will be handled on text_input side as part of a directly - following commit_string request. + This request will be handled on the text_input side directly following + a commit_string request. @@ -122,14 +122,15 @@ Sets the cursor and anchor to a new position. Index is the new cursor - position in bytes (when >= 0 relative to the end of inserted text - else relative to beginning of inserted text). Anchor is the new anchor - position in bytes (when >= 0 relative to the end of inserted text, else - relative to beginning of inserted text). When there should be no - selected text anchor should be the same as index. - - This request will be handled on text_input side as part of a directly - following commit_string request. + position in bytes (when >= 0 relative to the end of inserted text, + otherwise relative to the beginning of the inserted text). Anchor is + the new anchor position in bytes (when >= 0 relative to the end of the + inserted text, otherwise relative to the beginning of the inserted + text). When there should be no selected text, anchor should be the same + as index. + + This request will be handled on the text_input side directly following + a commit_string request. @@ -143,7 +144,7 @@ Notify when a key event was sent. Key events should not be used for normal text input operations, which should be done with commit_string, - delete_surrounfing_text, etc. The key event follows the wl_keyboard key + delete_surrounding_text, etc. The key event follows the wl_keyboard key event convention. Sym is a XKB keysym, state a wl_keyboard key_state. @@ -184,7 +185,7 @@ Should be used when filtering key events with grab_keyboard. - When the wl_keyboard::modifiers event should be also send to the + When the wl_keyboard::modifiers event should also be sent to the client, forward it with this request. The arguments should be the ones from the wl_keyboard::modifiers event. @@ -199,6 +200,7 @@ + @@ -241,7 +243,7 @@ - An input method object is responsible to compose text in response to + An input method object is responsible for composing text in response to input from hardware or virtual keyboards. There is one input method 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. -- cgit v1.2.3