[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Word boundary (was: find-composition still depends on the composition pr
From: |
Juri Linkov |
Subject: |
Word boundary (was: find-composition still depends on the composition property) |
Date: |
Fri, 24 Oct 2008 02:48:44 +0300 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (x86_64-pc-linux-gnu) |
> Then what to do is:
>
> (1-1) assign the category "6" (digit) to "0123456789".
> (1-2) define a category, say "D", and assign it to all
> characters that have no word-boundary between digits.
> (1-3) add (?D . ?6) and (?6 . ?D) to word-combining-categories.
>
> Another way is:
>
> (2-1) modify word_boundary_p to handle negative category mnemonic in
> word-*-categories to catch a character that doesn't have the
> specified category.
> (2-2) assign the category "6" (digit) to "0123456789".
> (2-3) define a category, say "X", and assign it to all
> characters that have word-boundary between digits.
> (2-4) add ((- ?X) . ?6) and (?6 . (- ?X)) to
> word-combining-categories.
>
> Or,
>
> (3-1) Make `common' script and classify digits, etc to it.
> (3-2) modify word_boundary_p not to distinguish `common' from
> any other script.
> (3-3) define a category, say "X", and assign it to all
> characters that have word-boundary between digits.
> (3-4) add (?X . ?6) and (?6 . ?X) to
> word-separating-categories.
Do you know how many scripts require word boundaries between
letters and digits? Does the Unicode standard specify this?
If the majority of scripts does not require word boundaries,
then we could define a new category only for few exceptions,
and vice versa.
--
Juri Linkov
http://www.jurta.org/emacs/
- Re: find-composition still depends on the composition property, Juri Linkov, 2008/10/19
- Re: find-composition still depends on the composition property, Kenichi Handa, 2008/10/20
- Re: find-composition still depends on the composition property, Juri Linkov, 2008/10/21
- Re: find-composition still depends on the composition property, Kenichi Handa, 2008/10/22
- Re: find-composition still depends on the composition property, Eli Zaretskii, 2008/10/22
- Re: find-composition still depends on the composition property, Kenichi Handa, 2008/10/22
- Word boundary (was: find-composition still depends on the composition property),
Juri Linkov <=
- Re: Word boundary (was: find-composition still depends on the composition property), Eli Zaretskii, 2008/10/25
- Re: Word boundary (was: find-composition still depends on the composition property), Kenichi Handa, 2008/10/26
- Re: Word boundary (was: find-composition still depends on the composition property), Eli Zaretskii, 2008/10/26
- Re: Word boundary, Miles Bader, 2008/10/26
- Re: Word boundary, Kenichi Handa, 2008/10/26
- Re: Word boundary, Eli Zaretskii, 2008/10/27
- Re: Word boundary, Miles Bader, 2008/10/27
- Re: Word boundary, Kenichi Handa, 2008/10/31
- Re: Word boundary (was: find-composition still depends on the composition property), Kenichi Handa, 2008/10/26
- describe-categories (was: find-composition still depends on the composition property), Juri Linkov, 2008/10/23