summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYong Bakos <ybakos@humanoriented.com>2016-04-11 17:23:02 -0500
committerBryce Harrington <bryce@bryceharrington.org>2016-04-13 12:35:14 -0700
commitae55234c536cd3cc06555981477e7a9eb2f92cce (patch)
treece617dca981d845cd734c3f0bf602028cc005984
parentc9a8cec816b275f5de3026afa6509ff9d5191217 (diff)
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 <ybakos@humanoriented.com> Reviewed-by: Bryce Harrington <bryce@osg.samsung.com>
-rw-r--r--unstable/input-method/input-method-unstable-v1.xml40
1 files changed, 21 insertions, 19 deletions
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 @@
<interface name="zwp_input_method_context_v1" version="1">
<description summary="input method context">
- 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 @@
<description summary="pre-edit string">
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.
</description>
<arg name="serial" type="uint" summary="serial of the latest known text input state"/>
<arg name="text" type="string"/>
@@ -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.
</description>
<arg name="index" type="uint"/>
<arg name="length" type="uint"/>
@@ -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.
</description>
<arg name="index" type="int"/>
</request>
<request name="delete_surrounding_text">
<description summary="delete text">
- 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.
</description>
<arg name="index" type="int"/>
<arg name="length" type="uint"/>
@@ -122,14 +122,15 @@
<request name="cursor_position">
<description summary="set cursor to a new position">
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.
</description>
<arg name="index" type="int"/>
<arg name="anchor" type="int"/>
@@ -143,7 +144,7 @@
<description summary="keysym">
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.
</description>
<arg name="serial" type="uint" summary="serial of the latest known text input state"/>
@@ -184,7 +185,7 @@
<description summary="forward modifiers event">
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.
</description>
@@ -199,6 +200,7 @@
<arg name="serial" type="uint" summary="serial of the latest known text input state"/>
<arg name="language" type="string"/>
</request>
+
<request name="text_direction">
<arg name="serial" type="uint" summary="serial of the latest known text input state"/>
<arg name="direction" type="uint"/>
@@ -241,7 +243,7 @@
<interface name="zwp_input_method_v1" version="1">
<description summary="input method">
- 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.