ime

Differency normal characters and half characters on keydown

隐身守侯 提交于 2019-12-04 01:50:40
问题 We forked experimental Mediawiki VisualEditor. This WYSIWYM editor work with a hidden textarea and a representation of the content in DOM. When you focus the view, the focus is given to the textarea, and the view listen to keydown event to add each typed characters to the content, then empty the textarea's value. The problem occurs with half characters on Mac OS X only. If you type ^or ¨ or any characters which need a second character to be printed, keydown event is fired. So, when user want

Android custom keyboard layout leaving a margin of white at the side

空扰寡人 提交于 2019-12-04 01:42:25
I'm working on a custom keyboard for Android, and I've run in to an issue where the keyboard seems to leave a white line/space at right, instead of filling the parent view... (don't mind the icons, it's simply placeholder graphic for now) Below you can see my layout... <Keyboard xmlns:android="http://schemas.android.com/apk/res/android" android:keyWidth="14%p" android:horizontalGap="0px" android:verticalGap="0px" android:keyHeight="60dp" > <Row> <Key android:codes="49" android:keyIcon="@drawable/rsz_emoji" android:horizontalGap="1%p" android:keyEdgeFlags="left"/> <Key android:codes="50"

How do I make a view float above other views in an IME?

本小妞迷上赌 提交于 2019-12-03 23:20:19
I am trying to make a ListView in my IME "float" in the middle of the screen, just like the Swype keyboard: I've read how to do it in an Activity by using a FrameLayout, but it isn't working in my IME, which is a Service not an Activity. My input view consists of a FrameLayout as the root view, a child RelativeLayout containing several controls, and the ListView which is also a child of the FrameLayout. Here is my layout code: <?xml version="1.0" encoding="utf-8"?> <FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height=

What is the correct, modern way to handle arbitrary text input in a custom control on Windows? WM_CHAR? IMM? TSF?

▼魔方 西西 提交于 2019-12-03 16:31:28
I want to be able to support text input in a custom Windows control, just like the EDIT and rich edit controls already do, but not subclassing either of those. The control currently uses Direct2D and DirectWrite to draw text, and runs on Windows Vista SP1 with Platform Update or newer (I might change it to Windows 7 SP1 with Platform Update or newer if I decide I need newer Direct2D and DirectWrite features, assuming those are available there or on Windows 8 only, but that's a different question...) For what it's worth, on OS X I would use NSTextInputClient and on GTK+ I would use GtkIMContext

setImeOptions: why the “Done” button does not show on the soft keyboard?

微笑、不失礼 提交于 2019-12-03 08:16:58
问题 I try to set the "Done" button on the softkeyboard by using input.setImeOptions(EditorInfo.IME_ACTION_DONE); but the "Done" button simply does not show on the softkeyboard. Any suggestion please? public void modif(int position) { AlertDialog.Builder alert = new AlertDialog.Builder(MainActivity.this); alert.setTitle("Modifica"); EditText input = new EditText(MainActivity.this); input.setImeOptions(EditorInfo.IME_ACTION_DONE); alert.setView(input); final Editable value = input.getText(); alert

Google Input Tools “API” — can it be used?

百般思念 提交于 2019-12-03 07:10:14
问题 I noticed that Google accepts transliteration and IME requests in any language through the url: https://inputtools.google.com/request?text=$&itc=$&num=$\ &cp=0&cs=1&ie=utf-8&oe=utf-8&app=test where $ is a variable below, for any language and text. For example, French (try it): var text = "ca me plait", itc = "fr-t-i0-und", num = 10; // Result: [ "SUCCESS", [ [ "ca me plait", [ "ça me plaît" ] ] ] ] Or, Mandarin (try it): var text = "shide", itc = "zh-t-i0-pinyin", num = 5; // Result: [

Google Input Tools “API” — can it be used?

不打扰是莪最后的温柔 提交于 2019-12-02 21:58:24
I noticed that Google accepts transliteration and IME requests in any language through the url: https://inputtools.google.com/request?text=$&itc=$&num=$\ &cp=0&cs=1&ie=utf-8&oe=utf-8&app=test where $ is a variable below, for any language and text. For example, French ( try it ): var text = "ca me plait", itc = "fr-t-i0-und", num = 10; // Result: [ "SUCCESS", [ [ "ca me plait", [ "ça me plaît" ] ] ] ] Or, Mandarin ( try it ): var text = "shide", itc = "zh-t-i0-pinyin", num = 5; // Result: [ "SUCCESS", [ [ "shide", [ "使得", "似的", "是的", "实德", "似地" ], [], { "annotation": [ "shi de", "shi de", "shi

setImeOptions: why the “Done” button does not show on the soft keyboard?

怎甘沉沦 提交于 2019-12-02 21:57:40
I try to set the "Done" button on the softkeyboard by using input.setImeOptions(EditorInfo.IME_ACTION_DONE); but the "Done" button simply does not show on the softkeyboard. Any suggestion please? public void modif(int position) { AlertDialog.Builder alert = new AlertDialog.Builder(MainActivity.this); alert.setTitle("Modifica"); EditText input = new EditText(MainActivity.this); input.setImeOptions(EditorInfo.IME_ACTION_DONE); alert.setView(input); final Editable value = input.getText(); alert.setPositiveButton("Ok", new DialogInterface.OnClickListener() { public void onClick(DialogInterface

In Idle cannot access RichTextControl or IME will not work

丶灬走出姿态 提交于 2019-12-02 04:55:47
When reading some RichTextControl properties inside Application.Idle some IME won't work. Given this simple code: _richTextControl = new RichTextControl(); Application.Idle += delegate(object sender, EventArgs e) { btnCopy.Enabled = _richTextControl.SelectionLength > 0; btnPaste.Enabled = _richTextControl.CanPaste(); }; It'll work fine with most IME I tried but, at least, for Chinese (Traditional, Taiwan) with Microsoft Chinese Traditional Array (6.0) and Chinese Traditional DaYi (6.0) it'll prevent IME to work properly (I tried only with Windows 7, in English and Taiwanese). You can start

Differency normal characters and half characters on keydown

不想你离开。 提交于 2019-12-01 10:57:25
We forked experimental Mediawiki VisualEditor. This WYSIWYM editor work with a hidden textarea and a representation of the content in DOM. When you focus the view, the focus is given to the textarea, and the view listen to keydown event to add each typed characters to the content, then empty the textarea's value. The problem occurs with half characters on Mac OS X only. If you type ^or ¨ or any characters which need a second character to be printed, keydown event is fired. So, when user want a 'ê', he types '^'. View get the textarea value ('^') and clean the textarea value. Then, the user