NAME
Prima::Widget::BidiInput - heuristics for i18n input
DESCRIPTION
Provides common functionality for the bidirectional input to be used in editable widgets
Methods
- handle_bidi_input %OPTIONS
-
Given
action
andtext
in%OPTIONS
, returns new text and a suggested cursor position.The following options are understood:
- action
-
One of: backspace, delete, cut, insert, overtype
- at INTEGER
-
Current cursor position, calculated in clusters
- glyphs Prima::Drawable::Glyphs object
-
Shaped text
- n_clusters INTEGER
-
The number of clusters in the text
- rtl BOOLEAN
-
Set to 1 if the default input direction is RTL (right-to-left)
- text STRING
-
The text to edit
AUTHOR
Dmitry Karasik, <dmitry@karasik.eu.org>.