unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Juri Linkov <juri@jurta.org>
To: Kenichi Handa <handa@m17n.org>
Cc: Eli Zaretskii <eliz@gnu.org>, emacs-devel@gnu.org
Subject: Word boundary (was: find-composition still depends on the composition property)
Date: Fri, 24 Oct 2008 02:48:44 +0300	[thread overview]
Message-ID: <87mygusydi.fsf_-_@jurta.org> (raw)
In-Reply-To: <E1KsoqE-0006VL-Ty@etlken.m17n.org> (Kenichi Handa's message of "Thu, 23 Oct 2008 10:18:22 +0900")

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




  parent reply	other threads:[~2008-10-23 23:48 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-08-29 13:46 find-composition still depends on the composition property Juanma Barranquero
2008-09-05  1:24 ` Kenichi Handa
2008-10-19 23:15   ` Juri Linkov
2008-10-20  6:46     ` Kenichi Handa
2008-10-21 23:46       ` Juri Linkov
2008-10-22  1:17         ` Kenichi Handa
2008-10-22  4:25           ` Eli Zaretskii
2008-10-22  5:43             ` Kenichi Handa
2008-10-22  5:29           ` Kenichi Handa
2008-10-22 19:35             ` Eli Zaretskii
2008-10-23  1:18               ` Kenichi Handa
2008-10-23 23:44                 ` describe-categories (was: find-composition still depends on the composition property) Juri Linkov
2008-10-25  1:37                   ` Kenichi Handa
2008-10-25  8:33                     ` Eli Zaretskii
2008-10-23 23:48                 ` Juri Linkov [this message]
2008-10-25 18:03                   ` Word boundary " Eli Zaretskii
2008-10-26 13:36                     ` Kenichi Handa
2008-10-26 19:32                       ` Eli Zaretskii
2008-10-27  0:17                         ` Word boundary Miles Bader
2008-10-27  0:27                           ` Kenichi Handa
2008-10-27  4:12                             ` Eli Zaretskii
2008-10-27  5:16                             ` Miles Bader
2008-10-31  5:50                               ` Kenichi Handa
2008-10-26  8:15                   ` Word boundary (was: find-composition still depends on the composition property) 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

  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=87mygusydi.fsf_-_@jurta.org \
    --to=juri@jurta.org \
    --cc=eliz@gnu.org \
    --cc=emacs-devel@gnu.org \
    --cc=handa@m17n.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 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).