xgenvn / InputHelper

Popup a textinput field to input text using IM (ibus, scim) in Sublime Text 2 under Linux.
88 stars 23 forks source link

last letter is missing and cursor loses focus. #13

Open ghost opened 10 years ago

ghost commented 10 years ago

My env: Ubuntu 14.04 Gnome 3 64bit, Sublime Text 2.0.2 (build 2221) and Sublime Text 3(build 3059), also Kairo-Dick.

Hi, I'm using an input field with nabi to input Hangul(Korean alphabet). I've just found 2 problems.

First,

  1. When I press "Ctrl + Shift + z",
  2. Display the input field.
  3. I input Hangul.
  4. then I press "Enter" or "Ctrl + Enter".
  5. Display Hangul except for the last letter in editor.

If I Input "안녕하세요", then the last letter "요" is missing. display "안녕하세".

Two, cursor loses input focus in editor after I've input Hangul then press "Enter" or "Ctrl + Enter". even English.

xgenvn commented 10 years ago

Hi, thank you for your report. I'll check a look on Ubuntu 14.04 again since last time it's been working fine for me. If you can please open the console to see whether there's any error displayed. (Ctrl-` (back tick)). Or from command line:

cd ~/.config/sublime-text-2/Packages/InputHelper/lib/
python linux_text_input_gui.py

Test input your text in the textbox opened and please post the results here, I'll give them a check.

ghost commented 10 years ago

There's no error from command line, also console(Ctrl+`). But there is a difference between English and Korean when I input in the textbox from editor and command line(I'll write a next comment).

The message in the ST3 console(Ctrl+`):

DPI scale: 1
startup, version: 3059 linux x64 channel: stable
executable: /opt/sublime_text/sublime_text
working dir: /
packages path: /home/keppul/.config/sublime-text-3/Packages
state path: /home/keppul/.config/sublime-text-3/Local
hardware concurrency: 4
zip path: /opt/sublime_text/Packages
zip path: /home/keppul/.config/sublime-text-3/Installed Packages
found 4 files for base name Default.sublime-keymap
found 1 files for base name Default.sublime-mousemap
found 2 files for base name Main.sublime-menu
loading bindings
loading pointer bindings
found 1 files for base name Default.sublime-theme
theme loaded
app ready
startup cache, total files: 152 cache hits: 152
pre session restore time: 0.250458
using gamma: 1 (err: 0)
startup time: 0.405728
first paint time: 0.412583
launching: /opt/sublime_text/plugin_host
reloading plugin Default.block
reloading plugin Default.comment
reloading plugin Default.copy_path
reloading plugin Default.delete_word
reloading plugin Default.detect_indentation
reloading plugin Default.duplicate_line
reloading plugin Default.echo
reloading plugin Default.exec
reloading plugin Default.fold
reloading plugin Default.font
reloading plugin Default.goto_line
reloading plugin Default.history_list
reloading plugin Default.indentation
reloading plugin Default.kill_ring
reloading plugin Default.mark
reloading plugin Default.new_templates
reloading plugin Default.open_file_settings
reloading plugin Default.open_in_browser
reloading plugin Default.pane
reloading plugin Default.paragraph
reloading plugin Default.paste_from_history
reloading plugin Default.save_on_focus_lost
reloading plugin Default.scroll
reloading plugin Default.set_unsaved_view_name
reloading plugin Default.side_bar
reloading plugin Default.sort
reloading plugin Default.swap_line
reloading plugin Default.switch_file
reloading plugin Default.symbol
reloading plugin Default.transform
reloading plugin Default.transpose
reloading plugin Default.trim_trailing_white_space
reloading plugin CSS.css_completions
reloading plugin Diff.diff
reloading plugin HTML.encode_html_entities
reloading plugin HTML.html_completions
reloading plugin InputHelper.inputhelper
reloading plugin Package Control.Package Control
loaded 837 snippets
plugins loaded
Package Control: No updated packages

and the message in ST2 console:

startup, version: 2221 linux x64 channel: stable
executable: /home/keppul/Sublime Text 2/sublime_text
working dir: /home/keppul/Sublime Text 2
packages path: /home/keppul/.config/sublime-text-2/Packages
settings path: /home/keppul/.config/sublime-text-2/Settings
PackageSetup not required
Py_GetProgramName(): sublime_text
Py_GetExecPrefix(): .
Py_GetProgramFullPath(): 
Py_GetPath(): ./lib/python26.zip:./lib/python2.6/:./lib/python2.6/plat-linux2:./lib/python2.6/lib-tk:./lib/python2.6/lib-old:./lib/python2.6/lib-dynload
Py_GetPythonHome(): .
catalogue loaded
found 5 files for base name Default.sublime-keymap
found 1 files for base name Default.sublime-mousemap
found 2 files for base name Main.sublime-menu
Reloading plugin /home/keppul/.config/sublime-text-2/Packages/CSS/css_completions.py
Reloading plugin /home/keppul/.config/sublime-text-2/Packages/Default/comment.py
Reloading plugin /home/keppul/.config/sublime-text-2/Packages/Default/copy_path.py
Reloading plugin /home/keppul/.config/sublime-text-2/Packages/Default/delete_word.py
Reloading plugin /home/keppul/.config/sublime-text-2/Packages/Default/detect_indentation.py
Reloading plugin /home/keppul/.config/sublime-text-2/Packages/Default/duplicate_line.py
Reloading plugin /home/keppul/.config/sublime-text-2/Packages/Default/echo.py
Reloading plugin /home/keppul/.config/sublime-text-2/Packages/Default/exec.py
Reloading plugin /home/keppul/.config/sublime-text-2/Packages/Default/fold.py
Reloading plugin /home/keppul/.config/sublime-text-2/Packages/Default/font.py
Reloading plugin /home/keppul/.config/sublime-text-2/Packages/Default/goto_line.py
Reloading plugin /home/keppul/.config/sublime-text-2/Packages/Default/indentation.py
Reloading plugin /home/keppul/.config/sublime-text-2/Packages/Default/kill_ring.py
Reloading plugin /home/keppul/.config/sublime-text-2/Packages/Default/mark.py
Reloading plugin /home/keppul/.config/sublime-text-2/Packages/Default/new_templates.py
Reloading plugin /home/keppul/.config/sublime-text-2/Packages/Default/open_file_settings.py
Reloading plugin /home/keppul/.config/sublime-text-2/Packages/Default/open_in_browser.py
Reloading plugin /home/keppul/.config/sublime-text-2/Packages/Default/paragraph.py
Reloading plugin /home/keppul/.config/sublime-text-2/Packages/Default/save_on_focus_lost.py
Reloading plugin /home/keppul/.config/sublime-text-2/Packages/Default/scroll.py
Reloading plugin /home/keppul/.config/sublime-text-2/Packages/Default/set_unsaved_view_name.py
Reloading plugin /home/keppul/.config/sublime-text-2/Packages/Default/side_bar.py
Reloading plugin /home/keppul/.config/sublime-text-2/Packages/Default/sort.py
Reloading plugin /home/keppul/.config/sublime-text-2/Packages/Default/swap_line.py
Reloading plugin /home/keppul/.config/sublime-text-2/Packages/Default/switch_file.py
Reloading plugin /home/keppul/.config/sublime-text-2/Packages/Default/transform.py
Reloading plugin /home/keppul/.config/sublime-text-2/Packages/Default/transpose.py
Reloading plugin /home/keppul/.config/sublime-text-2/Packages/Default/trim_trailing_white_space.py
Reloading plugin /home/keppul/.config/sublime-text-2/Packages/Diff/diff.py
Reloading plugin /home/keppul/.config/sublime-text-2/Packages/HTML/encode_html_entities.py
Reloading plugin /home/keppul/.config/sublime-text-2/Packages/HTML/html_completions.py
Reloading plugin /home/keppul/.config/sublime-text-2/Packages/InputHelper/inputhelper.py
Reloading plugin /home/keppul/.config/sublime-text-2/Packages/Package Control/Package Control.py
plugin init time: 0.294957
loading bindings
loading pointer bindings
found 1 files for base name Default.sublime-theme
theme loaded
app ready
pre session restore time: 0.679197
using gamma: 1 (err: 0)
startup cache, total files: 98 cache hits: 98
startup time: 0.832454 (package setup was not run)
loaded 837 snippets
Package Control: No updated packages

lastly, from bash terminal, this is an error message while I input any words with InputHelper or in the ST3 editor.

(sublime_text:4277): Gdk-WARNING **: /build/buildd/gtk+2.0-2.24.23/gdk/x11/gdkdrawable-x11.c:952 drawable is not a pixmap or window
ghost commented 10 years ago

Next, there is a difference between English and Korean when I input in the textbox from ST2/3 editor or from command line.

For example,

H|e|l|l|o|

then press "Enter" and display "Hello".

안녕하세요
ㅁㅁㅁㅁㅁ

then press "Enter" and display "안녕하세". or press "Ctrl+Enter" and display "안녕하세요".