[Uim] Re: Documentation, or just help?

YamaKen yamaken at bp.iij4u.or.jp
Mon Jan 31 18:25:49 EET 2005


At Tue, 1 Feb 2005 00:59:08 +0900,
mover at hct.zaq.ne.jp wrote:
> 
> Please look at scm/PY.scm.
> There is the entries like this.
> 
>    415 |    ((("1")) ("1"))
>    416 |    ((("2")) ("2"))
>    417 |    ((("3")) ("3"))
>    418 |    ((("4")) ("4"))
>    419 |    ((("5")) ("5"))
>    420 |    ((("6")) ("6"))
>    421 |    ((("7")) ("7"))
>    422 |    ((("8")) ("8"))
>    423 |    ((("9")) ("9"))
>    424 |    ((("0")) ("0"))

> > Simple table based uim's input method is easy to create by Scheme. Please
> > look at scm/viqr.scm.

> How about characters not in the table? When I use viqr, I can't type
> normal numbers and other characters.

Please try following code. We'll reorganize ASCII-related tables
as so if it works well.

(define ascii-rule
  (map (compose (lambda (entry)
                  (list (list entry) entry))
                list
                charcode->string)
       (iota 127 32)))

(define viqr-init-handler
  (lambda (id im arg)
    (generic-context-new id im (append ascii-rule viqr-rule) #f)))

-------------------------------
YamaKen  yamaken at bp.iij4u.or.jp



More information about the uim mailing list