emacs-devel
[Top][All Lists]
Advanced

[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/




reply via email to

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