[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: announcing thaiword.el?

From: Kenichi Handa
Subject: Re: announcing thaiword.el?
Date: Tue, 29 Mar 2005 17:10:53 +0900 (JST)
User-agent: SEMI/1.14.3 (Ushinoya) FLIM/1.14.2 (Yagi-Nishiguchi) APEL/10.2 Emacs/22.0.50 (sparc-sun-solaris2.6) MULE/5.0 (SAKAKI)

In article <address@hidden>, Stefan Monnier <address@hidden> writes:
>>  Could someone tell me what is the right way to rebind all
>>  keys that are currently bound to forward-word to
>>  thai-forward-word, and bind them back to the orignal later?

> Something like

>   (defvar thaiword-mode-map
>     (let ((map (make-sparse-keymap)))
>       (define-key [remap forward-word] 'thai-forward-word)
>       (define-key [remap backward-word] 'thai-backward-word)
>       map))
>   (define-minor-mode thaiword-mode
>     "Minor mode to make word-movement aware of thai words."
>     :global t)

> Then add (lambda () (thaiword-mode 1)) to setup-function
> and (lambda () (thaiword-mode -1)) to exit-function

Thank you!

Richard Stallman <address@hidden> writes:
>     Is it ok to install a change that binds such word-oriented
>     commands as M-f, M-b, M-t, M-d, M-DEL to the functions
>     recognizing thai words when a user select Thai lang. env?

> That is ok to install now, because it can't cause problems except for
> people who use the Thai language environment.  If those people think
> this is an improvement, there's nobody else to complain.

Ok, I've just installed such changes.

Juri Linkov <address@hidden> writes:
> BTW, there is also the variable `sentence-end-without-period' for
> Thai texts.  Maybe it should be enabled in Thai lang.envs too.

Even in Thai lang. env., people read/write English text, and
in that case sentence-end-without-period should not be.
Perhaps, the better way is to make sentence-end return a
regexp that also matches with "\\ct +" (i.e. Thai character
followed by spaces).  But, I found that TUTORIAL.th ends
sentences with period.  I have to consult with Thai native
what to do.

Anyway, in thai-word-mode, I also enabled line-breaking at
Thai word boundary.

Ken'ichi HANDA

reply via email to

[Prev in Thread] Current Thread [Next in Thread]