Re: [racket-dev] input methods under Unix/X

2011-01-17 Thread Jay McCarthy
2011/1/17 Matthew Flatt mfl...@cs.utah.edu:
 I've finally enabled input-method support in `racket/gui' under X.
 (Input methods have long been supported for Windows and Mac OS X.)

Maybe it doesn't count as input method support, but I've recently
switched to the Japanese localization of OS X with the Koeteri system
and when I do not explicitly choose the Latin input method nothing
appears in DrRacket when I type.

(For example, normally (basically all other OS X apps) in hiragana
mode when I type ichi it appears as いち for a moment, but when I
press down I can change it to 一. But in DrRacket, nothing appears at
all the whole time.)

Jay


 One consequence of this change is that, under X,

  Shift-Ctl-U 3 B B Return

 probably inserts `λ' anywhere that you can type in a Racket GUI
 program, since Shift-Ctl-U triggers a mode in the default(?) Gtk input
 method to type Unicode characters by their hexadecimal code points.
 More usefully to many, CJK input should now work under Gtk.

 Key-event handling is complex, and there are lots of ways that this
 change could go wrong. Keep an eye out for new event-handling problems
 under X.

 _
  For list-related administrative tasks:
  http://lists.racket-lang.org/listinfo/dev



-- 
Jay McCarthy j...@cs.byu.edu
Assistant Professor / Brigham Young University
http://faculty.cs.byu.edu/~jay

The glory of God is Intelligence - DC 93
_
  For list-related administrative tasks:
  http://lists.racket-lang.org/listinfo/dev

Re: [racket-dev] input methods under Unix/X

2011-01-17 Thread Matthew Flatt
At Mon, 17 Jan 2011 19:03:47 -0700, Jay McCarthy wrote:
 Maybe it doesn't count as input method support, but I've recently
 switched to the Japanese localization of OS X with the Koeteri system
 and when I do not explicitly choose the Latin input method nothing
 appears in DrRacket when I type.

That definitely counts.

I've pushed half a fix. The input state should work correctly now, but
the state is mostly invisible up to the point that you commit
characters to the editor.

I hope to finish the other half of the fix (make the input state
visible) soon. Pushing half a fix just lets Mac users can try out the
first half right away, because the changes can easily affect other
kinds of input.

_
  For list-related administrative tasks:
  http://lists.racket-lang.org/listinfo/dev