GNU bug report logs -
#24405
24.5; Possibly ``forward-word`` doesn't respect ``word-combining-categories`` for word boundaries on changing between latin/phonetic scripts.
Previous Next
Reported by: Oleksandr Gavenko <gavenkoa <at> gmail.com>
Date: Sat, 10 Sep 2016 08:35:01 UTC
Severity: normal
Tags: notabug
Found in version 24.5
Done: Stefan Kangas <stefan <at> marxist.se>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
> From: Oleksandr Gavenko <gavenkoa <at> gmail.com>
> Cc: 24405 <at> 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.
This bug report was last modified 5 years and 294 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.