From: Eli Zaretskii <eliz@gnu.org>
To: Oleksandr Gavenko <gavenkoa@gmail.com>
Cc: 24405@debbugs.gnu.org
Subject: bug#24405: 24.5; Possibly ``forward-word`` doesn't respect ``word-combining-categories`` for word boundaries on changing between latin/phonetic scripts.
Date: Sat, 10 Sep 2016 20:23:25 +0300 [thread overview]
Message-ID: <83h99n8y9e.fsf@gnu.org> (raw)
In-Reply-To: <87inu3vfty.fsf@gavenkoa.example.com> (message from Oleksandr Gavenko on Sat, 10 Sep 2016 20:12:57 +0300)
> From: Oleksandr Gavenko <gavenkoa@gmail.com>
> Cc: 24405@debbugs.gnu.org
> Date: Sat, 10 Sep 2016 20:12:57 +0300
>
> As a workaround should I modify char-script-table?
I'd suggest to write your own word-motion commands. It's not
complicated, you can use regular expressions (which understand
categories, if you need that).
> Another solution is to invent own:
>
> (define-category ?p "Phonetic")
>
> and to add it to IPA characters:
>
> (mapc (lambda (ch) (modify-category-entry ch "p"))
> '(?ʌ ?ə ?ɜ ?ɒ ?ɛ ?θ ?ʊ ?ɪ ?ɔ ?ɑ ?ʃ ?ʧ ?ː ?ˈ ?ˌ ?ʒ ?ŋ))
>
> so it becomes possible to use:
>
> (add-to-list 'word-combining-categories '(?p . ?l))
> (add-to-list 'word-combining-categories '(?l . ?p))
That'd be my second best advice. But I think regular expressions
should provide a better and easier solution.
next prev parent reply other threads:[~2016-09-10 17:23 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-09-10 8:33 bug#24405: 24.5; Possibly ``forward-word`` doesn't respect ``word-combining-categories`` for word boundaries on changing between latin/phonetic scripts Oleksandr Gavenko
2016-09-10 10:05 ` Eli Zaretskii
2016-09-10 17:12 ` Oleksandr Gavenko
2016-09-10 17:23 ` Eli Zaretskii [this message]
2016-09-11 11:57 ` Oleksandr Gavenko
2019-09-29 4:33 ` Stefan Kangas
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=83h99n8y9e.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=24405@debbugs.gnu.org \
--cc=gavenkoa@gmail.com \
/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 public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).