Mercurial > emacs
view leim/README @ 89061:9a9b54d06f3d
* regex.c (RE_TARGET_MULTIBYTE_P): New macro.
(GET_CHAR_BEFORE_2): Check target_multibyte, not multibyte. If
that is zero, convert an eight-bit char to multibyte.
(MAKE_CHAR_MULTIBYTE, CHAR_LEADING_CODE): New dummy new macros for
non-emacs case.
(PATFETCH): Convert an eight-bit char to multibyte.
(HANDLE_UNIBYTE_RANGE): New macro.
(regex_compile): Setup the compiled pattern for multibyte chars
even if the given regex string is unibyte. Use PATFETCH_RAW
instead of PATFETCH in many places. To handle `charset'
specification of unibyte, call HANDLE_UNIBYTE_RANGE. Use bitmap
only for ASCII chars.
(analyse_first) <exactn>: Simplified because the compiled pattern
is multibyte.
<charset_not>: Setup fastmap from bitmap only for ASCII chars.
<charset>: Use CHAR_LEADING_CODE to get leading codes.
<categoryspec>: If multibyte, setup fastmap only for ASCII chars
here.
(re_compile_fastmap) [emacs]: Call analyse_first with the arg
multibyte always 1.
(re_search_2) In emacs, set the locale variable multibyte to 1,
otherwise to 0. New local variable target_multibyte. Check it
to decide the multibyteness of STR1 and STR2. If
target_multibyte is zero, convert unibyte chars to multibyte
before translating and checking fastmap.
(TARGET_CHAR_AND_LENGTH): New macro.
(re_match_2_internal): In emacs, set the locale variable multibyte
to 1, otherwise to 0. New local variable target_multibyte. Check
it to decide the multibyteness of STR1 and STR2. Use
TARGET_CHAR_AND_LENGTH to fetch a character from D.
<charset, charset_not>: If multibyte is nonzero, check fastmap
only for ASCII chars. Call bcmp_translate with
target_multibyte, not with multibyte.
<begline>: Declare the local variable C as `unsigned'.
(bcmp_translate): Change the last arg name to target_multibyte.
author | Kenichi Handa <handa@m17n.org> |
---|---|
date | Tue, 03 Sep 2002 04:09:40 +0000 |
parents | 43649f97e26a |
children | 73ce834aa36f |
line wrap: on
line source
This directory contains LEIM files. LEIM stands for Libraries of Emacs Input Methods. Contents of subdirectories are as follows. CXTERM-DIC: This directory contains source dictionaries (TIT format) for Chinese input method distributed with cxterm (Chinese version xterm). These dictionaries are automatically converted to Quail packages (Emacs Lisp source files) by `make'. MISC-DIC: This directory contains various dictionaries for Chinese input methods. These dictionaries are automatically converted to Quail packages (Emacs Lisp source files) by `make'. quail: This directory contains Emacs Lisp source files for Quail packages. SKK-DIC: This directory contains source dictionary for Japanese input method distributed with SKK (Japanese input method run with Mule). But, you don't need this file because we distribute an Emacs Lisp source file ja-dic/ja-dic.el which has already been converted from the source dictionary (See below). ja-dic: This directory contains Emacs Lisp source file ja-dic.el which is generated from a source dictionary in SKK-DIC directory. In addition, it contains a byte compiled file ja-dic.elc for users convenience because it takes rather long time to byte-compile ja-dic.el.