all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Kenichi Handa <handa@m17n.org>
Cc: rms@gnu.org, emacs-devel@gnu.org
Subject: Re: announcing thaiword.el?
Date: Tue, 29 Mar 2005 17:10:53 +0900 (JST)	[thread overview]
Message-ID: <200503290810.RAA29308@etlken.m17n.org> (raw)
In-Reply-To: <m1zmwqsaea.fsf-monnier+emacs@gnu.org> (message from Stefan Monnier on Sat, 26 Mar 2005 10:21:44 -0500)

In article <m1zmwqsaea.fsf-monnier+emacs@gnu.org>, Stefan Monnier <monnier@iro.umontreal.ca> 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 <rms@gnu.org> 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 <juri@jurta.org> 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
handa@m17n.org

  reply	other threads:[~2005-03-29  8:10 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-03-24  7:29 announcing thaiword.el? Werner LEMBERG
2005-03-24 19:41 ` Eli Zaretskii
2005-03-24 21:11   ` Werner LEMBERG
2005-03-30  7:16     ` Werner LEMBERG
2005-03-30 11:34       ` Kenichi Handa
2005-03-25  6:42 ` Richard Stallman
2005-03-25  7:18   ` Werner LEMBERG
2005-03-25 14:44     ` Stefan Monnier
2005-03-25 22:26       ` Werner LEMBERG
2005-03-26  1:06         ` Kenichi Handa
2005-03-26 15:21           ` Stefan Monnier
2005-03-29  8:10             ` Kenichi Handa [this message]
2005-03-27  3:53           ` Richard Stallman
2005-03-28  0:47             ` Kenichi Handa
2005-03-28 22:53               ` Richard Stallman
2005-03-29  7:25                 ` Kim F. Storm
2005-03-29 11:35                   ` Kenichi Handa
2005-03-29  5:44               ` Juri Linkov
2005-03-29  8:35               ` Miles Bader
2005-03-29  9:02                 ` Kenichi Handa
2005-03-29 10:14                   ` Miles Bader
2005-03-29 11:29                     ` Kenichi Handa

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200503290810.RAA29308@etlken.m17n.org \
    --to=handa@m17n.org \
    --cc=emacs-devel@gnu.org \
    --cc=rms@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.