annotate modules/canna/canna_api.c @ 4127:4d3eac37bfa2

[xemacs-hg @ 2007-08-18 13:38:08 by adrian] xemacs-21.5-clean: Update mirror sites -------------------- ChangeLog entries follow: -------------------- lisp/ChangeLog addition: 2007-08-18 Adrian Aichner <adrian@xemacs.org> * package-get.el (package-get-download-sites): Update mirror sites. * package-get.el (package-get-pre-release-download-sites): Ditto.
author adrian
date Sat, 18 Aug 2007 13:38:11 +0000
parents f9be867eb83e
children aa5ed11f473b
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
3010
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1 /* CANNA interface -*- coding: euc-jp -*-
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
2
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
3 Copyright (C) 1995 Free Software Foundation, Inc.
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
4 Copyright (C) 1995 Sun Microsystems, Inc.
3071
a80f978d8342 [xemacs-hg @ 2005-11-16 07:14:13 by stephent]
stephent
parents: 3010
diff changeset
5 Copyright (C) 2005 Ben Wing.
3010
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
6
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
7 This file is part of XEmacs.
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
8
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
9 XEmacs is free software; you can redistribute it and/or modify it
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
10 under the terms of the GNU General Public License as published by the
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
11 Free Software Foundation; either version 2, or (at your option) any
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
12 later version.
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
13
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
14 XEmacs is distributed in the hope that it will be useful, but WITHOUT
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
15 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
16 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
17 for more details.
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
18
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
19 You should have received a copy of the GNU General Public License
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
20 along with XEmacs; see the file COPYING. If not, write to
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
21 the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
22 Boston, MA 02111-1307, USA. */
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
23
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
24 /* Synched up with: Mule 2.3. Not in FSF. */
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
25
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
26 /* Japanese comments were translated 2000-12-06 by Stephen Turnbull
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
27 <stephen@xemacs.org>. I haven't verified that the Japanese comments
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
28 were correct. YMMV, NO WARRANTY, not even the implied warranty of
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
29 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. (^^;;; as the
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
30 Japanese say. */
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
31
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
32 /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
33
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
34 Authors: Akira Kon (kon@uxd.fc.nec.co.jp)
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
35 Ichiro Hirakura (hirakura@uxd.fc.nec.co.jp)
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
36
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
37 Functions defined in this file are
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
38
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
39 (canna-key-proc key)
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
40 key: single STRING
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
41 RETURNS:
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
42 Length of converted string if no error occurs.
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
43 Error string if error occurs.
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
44 DESCRIPTION:
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
45 Convert a key input to a set of strings. The
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
46 strings contain both well-formed string and a
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
47 intermediate result to show the translation
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
48 information to a user. converted strings are
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
49 stored in specific variables.
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
50
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
51 (canna-initialize)
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
52 RETURNS:
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
53 List of the following things:
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
54 - list of keys to toggle Japanese-mode
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
55 - error message
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
56 - list of warning messages
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
57 DESCRIPTION:
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
58 Initialize ``canna'', which is a kana-to-kanji
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
59 converter for XEmacs. The first arg
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
60 specifies if inserting space character between
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
61 BUNSETSU when candidates are displayed. The
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
62 second arg specifies server. The third arg
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
63 specifies a file which will be used as a
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
64 customization description. If nil is
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
65 specified for each arg, the default value will
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
66 be used.
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
67
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
68 (canna-finalize)
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
69 RETURNS:
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
70 list of warning messages
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
71 DESCRIPTION:
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
72 finalize ``canna'', which is a kana-to-kanji
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
73 converter for XEmacs. This cause to write
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
74 miscellaneous informations to kana-to-kanji
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
75 dictionary.
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
76
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
77 (canna-touroku-string string)
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
78 string:
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
79 String to register to a dictionary.
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
80 RETURNS:
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
81 The same thing returns as canna-key-proc does.
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
82 DESCRIPTION:
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
83 Register Kanji words into kana-to-kanji
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
84 conversion dictionary.
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
85
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
86 (canna-set-width width)
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
87 width:
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
88 Column width of the place where the candidates
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
89 of kana-to-kanji conversion will be shown.
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
90 RETURNS:
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
91 nil
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
92 DESCRIPTION:
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
93 Set status-line width information, which is
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
94 used to display kanji candidates.
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
95
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
96 (canna-change-mode num)
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
97 num:
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
98 The mode number of Canna.
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
99 RETURNS:
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
100 The same thing returns as canna-key-proc does.
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
101 DESCRIPTION:
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
102 Change Japanese pre-edit mode.
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
103
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
104 (canna-store-yomi yomi roma)
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
105 yomi:
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
106 ``Yomi'' to be stored.
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
107 roma:
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
108 ``Romaji'' which corresponds to the ``Yomi''.
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
109 RETURNS:
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
110 The same thing returns as canna-key-proc does.
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
111 DESCRIPTION:
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
112 Store yomi characters as a YOMI of
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
113 kana-to-kanji conversion.
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
114
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
115 (canna-do-function num ch)
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
116 num:
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
117 A function number to be called.
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
118 ch:
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
119 A character will be specified in order to feed
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
120 the character to the function if the function
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
121 needs a input character.
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
122 RETURNS:
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
123 The same thing returns as canna-key-proc does.
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
124 DESCRIPTION:
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
125 Do specified function at current mode.
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
126
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
127 (canna-parse string)
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
128 string:
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
129 To be parsed.
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
130 RETURNS:
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
131 List of warning messages.
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
132 DESCRIPTION:
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
133 Parse customize string.
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
134
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
135 (canna-query-mode)
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
136 RETURNS:
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
137 A string which indicate the current mode.
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
138 DESCRIPTION:
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
139 Get current mode string.
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
140
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
141 Functions below are used for KKCP compatible library. These
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
142 functions provides a base kana-to-kanji conversion system for EGG.
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
143 These functions may be used when users want to change the engine
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
144 from Wnn to Canna without changing user interface of Japanese input.
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
145
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
146 (canna-henkan-begin)
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
147 (canna-henkan-next)
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
148 (canna-bunsetu-henkou)
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
149 (canna-henkan-kakutei)
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
150 (canna-henkan-end)
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
151 (canna-henkan-quit)
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
152
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
153 */
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
154
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
155 #include <config.h>
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
156 #include "lisp.h"
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
157 #ifdef HAVE_SHLIB
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
158 #include "emodules.h"
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
159 #endif
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
160
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
161 #include "buffer.h"
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
162 #include "file-coding.h"
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
163
3830
e58f4b9ab1ad [xemacs-hg @ 2007-02-15 16:11:52 by stephent]
stephent
parents: 3071
diff changeset
164 /* iroha (Canna v1) support removed as of canna_api.c r1.4.
e58f4b9ab1ad [xemacs-hg @ 2007-02-15 16:11:52 by stephent]
stephent
parents: 3071
diff changeset
165 #### Is the IROHA_BC #define needed? */
3010
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
166 #define IROHA_BC
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
167 #include "canna/jrkanji.h"
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
168 #include "canna/RK.h"
3830
e58f4b9ab1ad [xemacs-hg @ 2007-02-15 16:11:52 by stephent]
stephent
parents: 3071
diff changeset
169
e58f4b9ab1ad [xemacs-hg @ 2007-02-15 16:11:52 by stephent]
stephent
parents: 3071
diff changeset
170 /* #### These shouldn't be needed any more. */
3010
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
171 extern char *jrKanjiError;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
172 extern int (*jrBeepFunc) (void);
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
173
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
174 /* #### is this global really necessary? */
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
175 #define KEYTOSTRSIZE 2048
3071
a80f978d8342 [xemacs-hg @ 2005-11-16 07:14:13 by stephent]
stephent
parents: 3010
diff changeset
176 static Extbyte key_buffer[KEYTOSTRSIZE];
3010
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
177
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
178 static int canna_empty_info, canna_through_info;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
179 static int canna_underline;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
180 static int canna_inhibit_hankakukana;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
181
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
182 static Lisp_Object Vcanna_kakutei_string;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
183 static Lisp_Object Vcanna_kakutei_yomi;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
184 static Lisp_Object Vcanna_kakutei_romaji;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
185 static Lisp_Object Vcanna_henkan_string;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
186 static Fixnum canna_henkan_length;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
187 static Fixnum canna_henkan_revPos;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
188 static Fixnum canna_henkan_revLen;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
189 static Lisp_Object Vcanna_ichiran_string;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
190 static Fixnum canna_ichiran_length;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
191 static Fixnum canna_ichiran_revPos;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
192 static Fixnum canna_ichiran_revLen;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
193 static Lisp_Object Vcanna_mode_string;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
194
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
195 static int IRCP_context;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
196
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
197 static Lisp_Object storeResults (char *, int, jrKanjiStatus *);
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
198 static Lisp_Object kanjiYomiList (int, int);
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
199 static Lisp_Object CANNA_mode_keys (void);
3071
a80f978d8342 [xemacs-hg @ 2005-11-16 07:14:13 by stephent]
stephent
parents: 3010
diff changeset
200 static Lisp_Object Qeuc_jp;
a80f978d8342 [xemacs-hg @ 2005-11-16 07:14:13 by stephent]
stephent
parents: 3010
diff changeset
201
a80f978d8342 [xemacs-hg @ 2005-11-16 07:14:13 by stephent]
stephent
parents: 3010
diff changeset
202 #define make_euc_string(p, len) make_ext_string ((Extbyte *) p, len, Qeuc_jp)
a80f978d8342 [xemacs-hg @ 2005-11-16 07:14:13 by stephent]
stephent
parents: 3010
diff changeset
203 #define build_euc_string(p) build_ext_string ((Extbyte *) p, Qeuc_jp)
3010
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
204
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
205 #ifdef CANNA_MULE
3071
a80f978d8342 [xemacs-hg @ 2005-11-16 07:14:13 by stephent]
stephent
parents: 3010
diff changeset
206 static int euc_jp_num_chars (unsigned char *, int);
a80f978d8342 [xemacs-hg @ 2005-11-16 07:14:13 by stephent]
stephent
parents: 3010
diff changeset
207 static void count_char (unsigned char *,int, int, int, Fixnum *, Fixnum *,
a80f978d8342 [xemacs-hg @ 2005-11-16 07:14:13 by stephent]
stephent
parents: 3010
diff changeset
208 Fixnum *);
3010
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
209 #endif
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
210
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
211 /* Lisp functions definition */
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
212
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
213 DEFUN ("canna-key-proc", Fcanna_key_proc, 1, 1, 0, /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
214 Translate a key input to a set of strings. The strings contain both
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
215 well-formed string and intermediate result to show the translation
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
216 information to a user. Converted strings are stored in specific
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
217 variables.
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
218 */
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
219 (ch))
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
220 {
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
221 jrKanjiStatus ks;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
222 int len;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
223
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
224 CHECK_CHAR_COERCE_INT (ch);
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
225 len = jrKanjiString (0, XCHAR (ch), key_buffer, KEYTOSTRSIZE, &ks);
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
226 return storeResults (key_buffer, len, &ks);
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
227 }
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
228
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
229 static Lisp_Object
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
230 storeResults (char *buf, int len, jrKanjiStatus *ks)
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
231 {
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
232 Lisp_Object val = Qnil;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
233
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
234 if (len < 0)
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
235 { /* Error detected */
3071
a80f978d8342 [xemacs-hg @ 2005-11-16 07:14:13 by stephent]
stephent
parents: 3010
diff changeset
236 val = build_euc_string (jrKanjiError);
3010
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
237 }
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
238 else
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
239 {
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
240 /* ³ÎÄꤷ¤¿Ê¸»úÎó (the confirmed string) */
3071
a80f978d8342 [xemacs-hg @ 2005-11-16 07:14:13 by stephent]
stephent
parents: 3010
diff changeset
241 Vcanna_kakutei_string = make_euc_string (buf, len);
3010
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
242 val = make_int (len);
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
243 /* ³ÎÄꤷ¤¿Ê¸»úÎó¤ÎÆɤߤξðÊó...
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
244 (info about the reading of the confirmed string) */
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
245 Vcanna_kakutei_yomi = Vcanna_kakutei_romaji = Qnil;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
246 if (ks->info & KanjiYomiInfo)
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
247 {
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
248 char *p = buf + len + 1;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
249 int yomilen = strlen (p);
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
250
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
251 if (len + yomilen + 1 < KEYTOSTRSIZE)
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
252 {
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
253 int yomilen2;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
254
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
255 Vcanna_kakutei_yomi =
3071
a80f978d8342 [xemacs-hg @ 2005-11-16 07:14:13 by stephent]
stephent
parents: 3010
diff changeset
256 make_euc_string (p, yomilen); /* ÆÉ¤ß (reading) */
3010
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
257 p += yomilen + 1;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
258 yomilen2 = strlen (p);
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
259 if (len + yomilen + yomilen2 + 2 < KEYTOSTRSIZE)
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
260 {
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
261 Vcanna_kakutei_romaji =
3071
a80f978d8342 [xemacs-hg @ 2005-11-16 07:14:13 by stephent]
stephent
parents: 3010
diff changeset
262 make_euc_string (p, yomilen2);
3010
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
263 /* ¥í¡¼¥Þ»ú (romanization) */
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
264 }
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
265 }
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
266 }
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
267
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
268
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
269 /* ¸õÊäɽ¼¨¤Îʸ»úÎó¤Ç¤¹¡£
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
270 (string for displaying candidate translations) */
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
271 Vcanna_henkan_string = Qnil;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
272 if (ks->length >= 0)
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
273 {
3071
a80f978d8342 [xemacs-hg @ 2005-11-16 07:14:13 by stephent]
stephent
parents: 3010
diff changeset
274 Vcanna_henkan_string = make_euc_string (ks->echoStr, ks->length);
3010
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
275 #ifndef CANNA_MULE
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
276 canna_henkan_length = ks->length;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
277 canna_henkan_revPos = ks->revPos;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
278 canna_henkan_revLen = ks->revLen;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
279 #else /* CANNA_MULE */
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
280 if (canna_underline)
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
281 {
3071
a80f978d8342 [xemacs-hg @ 2005-11-16 07:14:13 by stephent]
stephent
parents: 3010
diff changeset
282 canna_henkan_length = euc_jp_num_chars (ks->echoStr,ks->length);
a80f978d8342 [xemacs-hg @ 2005-11-16 07:14:13 by stephent]
stephent
parents: 3010
diff changeset
283 canna_henkan_revPos = euc_jp_num_chars (ks->echoStr,ks->revPos);
a80f978d8342 [xemacs-hg @ 2005-11-16 07:14:13 by stephent]
stephent
parents: 3010
diff changeset
284 canna_henkan_revLen = euc_jp_num_chars (ks->echoStr+ks->revPos,
a80f978d8342 [xemacs-hg @ 2005-11-16 07:14:13 by stephent]
stephent
parents: 3010
diff changeset
285 ks->revLen);
3010
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
286 }
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
287 else
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
288 {
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
289 count_char (ks->echoStr, ks->length, ks->revPos, ks->revLen,
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
290 &canna_henkan_length, &canna_henkan_revPos,
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
291 &canna_henkan_revLen);
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
292 }
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
293 #endif /* CANNA_MULE */
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
294 }
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
295
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
296 /* °ìÍ÷¤Î¾ðÊó (information about the echo area menu) */
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
297 Vcanna_ichiran_string = Qnil;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
298 if (ks->info & KanjiGLineInfo && ks->gline.length >= 0)
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
299 {
3071
a80f978d8342 [xemacs-hg @ 2005-11-16 07:14:13 by stephent]
stephent
parents: 3010
diff changeset
300 Vcanna_ichiran_string = make_euc_string (ks->gline.line,
a80f978d8342 [xemacs-hg @ 2005-11-16 07:14:13 by stephent]
stephent
parents: 3010
diff changeset
301 ks->gline.length);
3010
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
302 #ifndef CANNA_MULE
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
303 canna_ichiran_length = ks->gline.length;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
304 canna_ichiran_revPos = ks->gline.revPos;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
305 canna_ichiran_revLen = ks->gline.revLen;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
306 #else /* CANNA_MULE */
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
307 count_char (ks->gline.line, ks->gline.length,
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
308 ks->gline.revPos, ks->gline.revLen,
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
309 &canna_ichiran_length,
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
310 &canna_ichiran_revPos, &canna_ichiran_revLen);
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
311 #endif /* CANNA_MULE */
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
312 }
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
313
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
314 /* ¥â¡¼¥É¤Î¾ðÊó (mode information) */
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
315 Vcanna_mode_string = Qnil;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
316 if (ks->info & KanjiModeInfo)
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
317 {
3071
a80f978d8342 [xemacs-hg @ 2005-11-16 07:14:13 by stephent]
stephent
parents: 3010
diff changeset
318 Vcanna_mode_string = build_euc_string ((Extbyte *) ks->mode);
3010
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
319 }
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
320
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
321 /* ¤½¤Î¾¤Î¾ðÊó (other information) */
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
322 canna_empty_info = (ks->info & KanjiEmptyInfo) ? 1 : 0;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
323 canna_through_info = (ks->info & KanjiThroughInfo) ? 1 : 0;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
324 }
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
325
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
326 return val;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
327 }
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
328
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
329 DEFUN ("canna-set-bunsetsu-kugiri", Fcanna_set_bunsetsu, 0, 1, 0, /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
330 This function sets the clause separator.
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
331 If non-nil value is specified, the white space separator will be used.
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
332 No separator will be used otherwise.
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
333 */
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
334 (num))
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
335 {
4042
f9be867eb83e [xemacs-hg @ 2007-06-29 08:00:58 by stephent]
stephent
parents: 3830
diff changeset
336 /* This is actually a Boolean! */
f9be867eb83e [xemacs-hg @ 2007-06-29 08:00:58 by stephent]
stephent
parents: 3830
diff changeset
337 char *kugiri; /* ʸÀá¶èÀÚ¤ê¤ò¤¹¤ë¤«¡© (display clause separator?) */
3010
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
338
4042
f9be867eb83e [xemacs-hg @ 2007-06-29 08:00:58 by stephent]
stephent
parents: 3830
diff changeset
339 kugiri = NILP (num) ? (char *) 0 : (char *) 1;
3010
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
340
4042
f9be867eb83e [xemacs-hg @ 2007-06-29 08:00:58 by stephent]
stephent
parents: 3830
diff changeset
341 jrKanjiControl (0, KC_SETBUNSETSUKUGIRI, kugiri);
3010
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
342
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
343 return Qnil;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
344 }
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
345
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
346 /* For whatever reason, calling Fding directly from libCanna loses */
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
347 static int
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
348 call_Fding (void)
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
349 {
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
350 Fding (Qnil, Qnil, Qnil);
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
351 return 0;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
352 }
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
353
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
354 DEFUN ("canna-initialize", Fcanna_initialize, 0, 3, 0, /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
355 Initialize ``canna'', which is a kana-to-kanji converter for XEmacs.
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
356 The first arg specifies if inserting space character between BUNSETSU when
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
357 candidates are displayed.
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
358 The second arg specifies server.
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
359 The third arg specifies a file which will be used as a customization
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
360 description.
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
361 If nil is specified for each arg, the default value will be used.
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
362 */
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
363 (num, server, rcfile))
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
364 {
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
365 Lisp_Object val;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
366 int res;
3071
a80f978d8342 [xemacs-hg @ 2005-11-16 07:14:13 by stephent]
stephent
parents: 3010
diff changeset
367 char **p, **q;
3010
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
368
4042
f9be867eb83e [xemacs-hg @ 2007-06-29 08:00:58 by stephent]
stephent
parents: 3830
diff changeset
369 /* This is actually a Boolean! */
f9be867eb83e [xemacs-hg @ 2007-06-29 08:00:58 by stephent]
stephent
parents: 3830
diff changeset
370 char *kugiri; /* ʸÀá¶èÀÚ¤ê¤ò¤¹¤ë¤«¡© (display clause separator?) */
3010
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
371
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
372 IRCP_context = -1;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
373
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
374 if (NILP (num))
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
375 {
4042
f9be867eb83e [xemacs-hg @ 2007-06-29 08:00:58 by stephent]
stephent
parents: 3830
diff changeset
376 kugiri = (char *) 1;
3010
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
377 }
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
378 else
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
379 {
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
380 CHECK_INT (num);
4042
f9be867eb83e [xemacs-hg @ 2007-06-29 08:00:58 by stephent]
stephent
parents: 3830
diff changeset
381 kugiri = (XINT (num) == 1) ? (char *) 1 : (char *) 0;
3010
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
382 }
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
383
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
384 if (NILP (server))
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
385 {
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
386 jrKanjiControl (0, KC_SETSERVERNAME, (char *) 0);
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
387 }
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
388 else
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
389 {
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
390 CHECK_STRING (server);
3071
a80f978d8342 [xemacs-hg @ 2005-11-16 07:14:13 by stephent]
stephent
parents: 3010
diff changeset
391 jrKanjiControl (0, KC_SETSERVERNAME,
a80f978d8342 [xemacs-hg @ 2005-11-16 07:14:13 by stephent]
stephent
parents: 3010
diff changeset
392 /* !!#### Check encoding */
a80f978d8342 [xemacs-hg @ 2005-11-16 07:14:13 by stephent]
stephent
parents: 3010
diff changeset
393 NEW_LISP_STRING_TO_EXTERNAL (server, Qnative));
3010
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
394 }
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
395
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
396 if (NILP (rcfile))
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
397 {
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
398 jrKanjiControl (0, KC_SETINITFILENAME, (char *) 0);
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
399 }
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
400 else
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
401 {
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
402 CHECK_STRING (rcfile);
3071
a80f978d8342 [xemacs-hg @ 2005-11-16 07:14:13 by stephent]
stephent
parents: 3010
diff changeset
403 jrKanjiControl (0, KC_SETINITFILENAME,
a80f978d8342 [xemacs-hg @ 2005-11-16 07:14:13 by stephent]
stephent
parents: 3010
diff changeset
404 NEW_LISP_STRING_TO_EXTERNAL (rcfile, Qfile_name));
3010
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
405 }
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
406
3071
a80f978d8342 [xemacs-hg @ 2005-11-16 07:14:13 by stephent]
stephent
parents: 3010
diff changeset
407 {
a80f978d8342 [xemacs-hg @ 2005-11-16 07:14:13 by stephent]
stephent
parents: 3010
diff changeset
408 char **warning = (char **) 0;
3010
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
409 #ifdef nec_ews_svr4
3071
a80f978d8342 [xemacs-hg @ 2005-11-16 07:14:13 by stephent]
stephent
parents: 3010
diff changeset
410 stop_polling ();
3010
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
411 #endif /* nec_ews_svr4 */
3071
a80f978d8342 [xemacs-hg @ 2005-11-16 07:14:13 by stephent]
stephent
parents: 3010
diff changeset
412 res = jrKanjiControl (0, KC_INITIALIZE, (char *) &warning);
3010
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
413 #ifdef nec_ews_svr4
3071
a80f978d8342 [xemacs-hg @ 2005-11-16 07:14:13 by stephent]
stephent
parents: 3010
diff changeset
414 start_polling ();
3010
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
415 #endif /* nec_ews_svr4 */
3071
a80f978d8342 [xemacs-hg @ 2005-11-16 07:14:13 by stephent]
stephent
parents: 3010
diff changeset
416 val = Qnil;
a80f978d8342 [xemacs-hg @ 2005-11-16 07:14:13 by stephent]
stephent
parents: 3010
diff changeset
417 if (warning)
a80f978d8342 [xemacs-hg @ 2005-11-16 07:14:13 by stephent]
stephent
parents: 3010
diff changeset
418 {
a80f978d8342 [xemacs-hg @ 2005-11-16 07:14:13 by stephent]
stephent
parents: 3010
diff changeset
419 for (p = q = warning ; *q ; q++)
a80f978d8342 [xemacs-hg @ 2005-11-16 07:14:13 by stephent]
stephent
parents: 3010
diff changeset
420 ;
a80f978d8342 [xemacs-hg @ 2005-11-16 07:14:13 by stephent]
stephent
parents: 3010
diff changeset
421 while (p < q)
a80f978d8342 [xemacs-hg @ 2005-11-16 07:14:13 by stephent]
stephent
parents: 3010
diff changeset
422 {
a80f978d8342 [xemacs-hg @ 2005-11-16 07:14:13 by stephent]
stephent
parents: 3010
diff changeset
423 q--;
a80f978d8342 [xemacs-hg @ 2005-11-16 07:14:13 by stephent]
stephent
parents: 3010
diff changeset
424 val = Fcons (build_euc_string (*q), val);
a80f978d8342 [xemacs-hg @ 2005-11-16 07:14:13 by stephent]
stephent
parents: 3010
diff changeset
425 }
a80f978d8342 [xemacs-hg @ 2005-11-16 07:14:13 by stephent]
stephent
parents: 3010
diff changeset
426 }
a80f978d8342 [xemacs-hg @ 2005-11-16 07:14:13 by stephent]
stephent
parents: 3010
diff changeset
427 val = Fcons (val, Qnil);
a80f978d8342 [xemacs-hg @ 2005-11-16 07:14:13 by stephent]
stephent
parents: 3010
diff changeset
428 }
3010
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
429
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
430 if (res == -1)
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
431 {
3071
a80f978d8342 [xemacs-hg @ 2005-11-16 07:14:13 by stephent]
stephent
parents: 3010
diff changeset
432 val = Fcons (build_euc_string (jrKanjiError), val);
3010
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
433 /* ¥¤¥Ë¥·¥ã¥é¥¤¥º¤Ç¼ºÇÔ¤·¤¿¾ì¹ç¡£ (on initialization failure) */
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
434 return Fcons (Qnil, val);
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
435 }
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
436 else
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
437 {
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
438 jrBeepFunc = call_Fding;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
439
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
440 #ifdef KC_SETAPPNAME
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
441 #ifndef CANNA_MULE
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
442 jrKanjiControl (0, KC_SETAPPNAME, "nemacs");
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
443 #else /* CANNA_MULE */
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
444 jrKanjiControl (0, KC_SETAPPNAME, "mule");
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
445 #endif /* CANNA_MULE */
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
446 #endif /* KC_SETAPPNAME */
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
447
4042
f9be867eb83e [xemacs-hg @ 2007-06-29 08:00:58 by stephent]
stephent
parents: 3830
diff changeset
448 jrKanjiControl (0, KC_SETBUNSETSUKUGIRI, kugiri);
3010
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
449 jrKanjiControl (0, KC_SETWIDTH, (char *) 78);
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
450 #ifndef CANNA_MULE
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
451 jrKanjiControl (0, KC_INHIBITHANKAKUKANA, (char *) 1);
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
452 #else
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
453 /* mule ¤À¤Ã¤¿¤éȾ³Ñ¥«¥¿¥«¥Ê¤â»È¤¨¤ë
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
454 (Mule can use half-width katakana) */
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
455 if (canna_inhibit_hankakukana)
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
456 jrKanjiControl (0, KC_INHIBITHANKAKUKANA, (char *) 1);
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
457 #endif
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
458 jrKanjiControl (0, KC_YOMIINFO, (char *) 2); /* ¢¨£²: ¥í¡¼¥Þ»ú¤Þ¤ÇÊÖ¤¹
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
459 (*2: return to
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
460 romanized form) */
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
461 val = Fcons (Qnil, val);
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
462 return Fcons (CANNA_mode_keys (), val);
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
463 }
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
464 }
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
465
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
466 DEFUN ("canna-finalize", Fcanna_finalize, 0, 0, 0, /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
467 finalize ``canna'', which is a kana-to-kanji converter for XEmacs.
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
468 This cause to write miscellaneous informations to kana-to-kanji dictionary.
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
469 */
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
470 ())
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
471 {
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
472 Lisp_Object val;
3071
a80f978d8342 [xemacs-hg @ 2005-11-16 07:14:13 by stephent]
stephent
parents: 3010
diff changeset
473 char **p;
a80f978d8342 [xemacs-hg @ 2005-11-16 07:14:13 by stephent]
stephent
parents: 3010
diff changeset
474 char **warning = (char **) 0;
3010
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
475
3071
a80f978d8342 [xemacs-hg @ 2005-11-16 07:14:13 by stephent]
stephent
parents: 3010
diff changeset
476 jrKanjiControl (0, KC_FINALIZE, (char *) &warning);
3010
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
477
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
478 val = Qnil;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
479 if (warning)
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
480 {
3071
a80f978d8342 [xemacs-hg @ 2005-11-16 07:14:13 by stephent]
stephent
parents: 3010
diff changeset
481 for (p = warning ; *p; p++)
3010
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
482 {
3071
a80f978d8342 [xemacs-hg @ 2005-11-16 07:14:13 by stephent]
stephent
parents: 3010
diff changeset
483 /* !!#### This is almost certainly wrong; `canna-initialize
a80f978d8342 [xemacs-hg @ 2005-11-16 07:14:13 by stephent]
stephent
parents: 3010
diff changeset
484 starts at the end of the warnings so the resulting list is
a80f978d8342 [xemacs-hg @ 2005-11-16 07:14:13 by stephent]
stephent
parents: 3010
diff changeset
485 in the correct order. We should do the same. */
a80f978d8342 [xemacs-hg @ 2005-11-16 07:14:13 by stephent]
stephent
parents: 3010
diff changeset
486 val = Fcons (build_euc_string (*p), val);
3010
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
487 }
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
488 }
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
489 val = Fcons (val, Qnil);
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
490 IRCP_context = -1;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
491 return val;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
492 }
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
493
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
494 DEFUN ("canna-touroku-string", Fcanna_touroku_string, 1, 1, 0, /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
495 Register Kanji words into kana-to-kanji conversion dictionary.
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
496 */
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
497 (str))
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
498 {
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
499 jrKanjiStatusWithValue ksv;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
500 jrKanjiStatus ks;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
501
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
502 CHECK_STRING (str);
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
503 ksv.buffer = (unsigned char *) key_buffer;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
504 ksv.bytes_buffer = KEYTOSTRSIZE;
3071
a80f978d8342 [xemacs-hg @ 2005-11-16 07:14:13 by stephent]
stephent
parents: 3010
diff changeset
505 LISP_STRING_TO_SIZED_EXTERNAL (str, ks.echoStr, ks.length, Qeuc_jp);
3010
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
506 ksv.ks = &ks;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
507 jrKanjiControl (0, KC_DEFINEKANJI, (char *)&ksv);
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
508 return storeResults (key_buffer, ksv.val, ksv.ks);
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
509 }
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
510
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
511 DEFUN ("canna-set-width", Fcanna_set_width, 1, 1, 0, /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
512 Set status-line width information, which is used to display
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
513 kanji candidates.
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
514 */
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
515 (num))
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
516 {
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
517 CHECK_INT (num);
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
518
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
519 jrKanjiControl (0, KC_SETWIDTH, (char *) XINT (num));
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
520 return Qnil;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
521 }
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
522
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
523 DEFUN ("canna-change-mode", Fcanna_change_mode, 1, 1, 0, /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
524 Change Japanese pre-edit mode.
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
525 */
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
526 (num))
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
527 {
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
528 jrKanjiStatusWithValue ksv;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
529 jrKanjiStatus ks;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
530
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
531 CHECK_INT (num);
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
532
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
533 ksv.buffer = (unsigned char *) key_buffer;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
534 ksv.bytes_buffer = KEYTOSTRSIZE;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
535 ksv.ks = &ks;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
536 ksv.val = XINT (num);
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
537 jrKanjiControl (0, KC_CHANGEMODE, (char *)&ksv);
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
538 return storeResults (key_buffer, ksv.val, ksv.ks);
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
539 }
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
540
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
541 static Lisp_Object
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
542 CANNA_mode_keys (void)
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
543 {
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
544 #define CANNAWORKBUFSIZE 32
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
545 char xxx[CANNAWORKBUFSIZE];
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
546 Lisp_Object val;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
547 int i, n;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
548
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
549 n = jrKanjiControl (0, KC_MODEKEYS, xxx);
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
550 val = Qnil;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
551 for (i = n ; i > 0 ;)
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
552 {
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
553 --i;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
554 /* !!#### something fucked here */
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
555 val = Fcons (make_char ((int)(0xFF & (unsigned char) xxx[i])), val);
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
556 }
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
557 return val;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
558 }
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
559
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
560 DEFUN ("canna-store-yomi", Fcanna_store_yomi, 1, 2, 0, /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
561 Store yomi characters as a YOMI of kana-to-kanji conversion.
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
562 */
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
563 (yomi, roma))
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
564 {
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
565 jrKanjiStatusWithValue ksv;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
566 jrKanjiStatus ks;
3071
a80f978d8342 [xemacs-hg @ 2005-11-16 07:14:13 by stephent]
stephent
parents: 3010
diff changeset
567 Extbyte *ext;
3010
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
568
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
569 CHECK_STRING (yomi);
3071
a80f978d8342 [xemacs-hg @ 2005-11-16 07:14:13 by stephent]
stephent
parents: 3010
diff changeset
570 LISP_STRING_TO_EXTERNAL (yomi, ext, Qeuc_jp);
a80f978d8342 [xemacs-hg @ 2005-11-16 07:14:13 by stephent]
stephent
parents: 3010
diff changeset
571 strncpy (key_buffer, ext, sizeof (key_buffer));
a80f978d8342 [xemacs-hg @ 2005-11-16 07:14:13 by stephent]
stephent
parents: 3010
diff changeset
572 key_buffer[sizeof (key_buffer) - 1] = '\0';
3010
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
573 ks.length = strlen (key_buffer);
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
574
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
575 if (NILP (roma))
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
576 {
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
577 ks.mode = 0;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
578 }
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
579 else
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
580 {
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
581 CHECK_STRING (roma);
3071
a80f978d8342 [xemacs-hg @ 2005-11-16 07:14:13 by stephent]
stephent
parents: 3010
diff changeset
582 LISP_STRING_TO_EXTERNAL (roma, ext, Qeuc_jp);
a80f978d8342 [xemacs-hg @ 2005-11-16 07:14:13 by stephent]
stephent
parents: 3010
diff changeset
583 ks.mode = (unsigned char *) (key_buffer + ks.length + 1);
a80f978d8342 [xemacs-hg @ 2005-11-16 07:14:13 by stephent]
stephent
parents: 3010
diff changeset
584 strncpy (key_buffer + ks.length + 1, ext,
a80f978d8342 [xemacs-hg @ 2005-11-16 07:14:13 by stephent]
stephent
parents: 3010
diff changeset
585 sizeof (key_buffer) - ks.length - 1);
a80f978d8342 [xemacs-hg @ 2005-11-16 07:14:13 by stephent]
stephent
parents: 3010
diff changeset
586 key_buffer[sizeof (key_buffer) - 1] = '\0';
3010
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
587 }
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
588
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
589 ks.echoStr = (unsigned char *) key_buffer;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
590 ksv.buffer = (unsigned char *) key_buffer; /* ÊÖÃÍÍÑ (return value) */
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
591 ksv.bytes_buffer = KEYTOSTRSIZE;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
592 ksv.ks = &ks;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
593
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
594 jrKanjiControl (0, KC_STOREYOMI, (char *)&ksv);
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
595
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
596 return storeResults (key_buffer, ksv.val, ksv.ks);
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
597 }
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
598
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
599 DEFUN ("canna-do-function", Fcanna_do_function, 1, 2, 0, /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
600 Do specified function at current mode.
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
601 */
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
602 (num, ch))
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
603 {
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
604 jrKanjiStatusWithValue ksv;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
605 jrKanjiStatus ks;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
606
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
607 CHECK_INT (num);
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
608
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
609 if (NILP (ch))
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
610 {
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
611 *key_buffer = '@';
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
612 }
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
613 else
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
614 {
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
615 CHECK_CHAR (ch);
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
616 *key_buffer = XCHAR (ch);
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
617 }
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
618
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
619 ksv.buffer = (unsigned char *) key_buffer;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
620 ksv.bytes_buffer = KEYTOSTRSIZE;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
621 ksv.ks = &ks;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
622 ksv.val = XINT (num);
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
623 jrKanjiControl (0, KC_DO, (char *) &ksv);
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
624 return storeResults (key_buffer, ksv.val, ksv.ks);
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
625 }
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
626
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
627 DEFUN ("canna-parse", Fcanna_parse, 1, 1, 0, /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
628 Parse customize string.
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
629 */
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
630 (str))
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
631 {
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
632 Lisp_Object val;
3071
a80f978d8342 [xemacs-hg @ 2005-11-16 07:14:13 by stephent]
stephent
parents: 3010
diff changeset
633 Extbyte **p;
3010
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
634 int n;
3071
a80f978d8342 [xemacs-hg @ 2005-11-16 07:14:13 by stephent]
stephent
parents: 3010
diff changeset
635 Extbyte *ext;
3010
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
636
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
637 CHECK_STRING (str);
3071
a80f978d8342 [xemacs-hg @ 2005-11-16 07:14:13 by stephent]
stephent
parents: 3010
diff changeset
638 LISP_STRING_TO_EXTERNAL (str, ext, Qeuc_jp);
a80f978d8342 [xemacs-hg @ 2005-11-16 07:14:13 by stephent]
stephent
parents: 3010
diff changeset
639 strncpy (key_buffer, ext, sizeof (key_buffer));
a80f978d8342 [xemacs-hg @ 2005-11-16 07:14:13 by stephent]
stephent
parents: 3010
diff changeset
640 key_buffer[sizeof (key_buffer) - 1] = '\0';
a80f978d8342 [xemacs-hg @ 2005-11-16 07:14:13 by stephent]
stephent
parents: 3010
diff changeset
641 p = (Extbyte **) key_buffer;
3010
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
642 n = jrKanjiControl (0, KC_PARSE, (char *) &p);
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
643 val = Qnil;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
644 while (n > 0)
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
645 {
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
646 n--;
3071
a80f978d8342 [xemacs-hg @ 2005-11-16 07:14:13 by stephent]
stephent
parents: 3010
diff changeset
647 val = Fcons (build_euc_string (p[n]), val);
3010
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
648 }
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
649 return val;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
650 }
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
651
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
652 DEFUN ("canna-query-mode", Fcanna_query_mode, 0, 0, 0, /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
653 Get current mode string.
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
654 */
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
655 ())
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
656 {
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
657 char buf[256];
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
658
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
659 jrKanjiControl (0, KC_QUERYMODE, buf);
3071
a80f978d8342 [xemacs-hg @ 2005-11-16 07:14:13 by stephent]
stephent
parents: 3010
diff changeset
660 return build_euc_string (buf);
3010
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
661 }
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
662
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
663 /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
664 * Functions following this line are for KKCP interface compatible
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
665 * library. These functions may be used by MILK system.
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
666 */
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
667
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
668 #define RKBUFSIZE 1024
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
669
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
670 static unsigned char yomibuf[RKBUFSIZE];
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
671 static short kugiri[RKBUFSIZE / 2];
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
672
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
673 static int
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
674 confirmContext (void)
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
675 {
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
676 if (IRCP_context < 0)
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
677 {
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
678 int context;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
679
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
680 if ((context = jrKanjiControl (0, KC_GETCONTEXT, (char *) 0)) == -1)
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
681 {
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
682 return 0;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
683 }
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
684 IRCP_context = context;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
685 }
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
686 return 1;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
687 }
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
688
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
689 static int
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
690 byteLen (int bun, int len)
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
691 {
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
692 int i = 0, offset = 0, ch;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
693
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
694 if (0 <= bun && bun < RKBUFSIZE)
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
695 {
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
696 offset = kugiri[bun];
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
697 }
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
698
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
699 while (len-- > 0 && (ch = (int) yomibuf[offset + i]))
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
700 {
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
701 i++;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
702 if (ch & 0x80)
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
703 {
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
704 i++;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
705 }
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
706 }
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
707 return i;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
708 }
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
709
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
710 DEFUN ("canna-henkan-begin", Fcanna_henkan_begin, 1, 1, 0, /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
711 Return the result of kana-to-kanji conversion.
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
712 Clause separator is set.
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
713 */
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
714 (yomi))
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
715 {
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
716 int nbun;
3071
a80f978d8342 [xemacs-hg @ 2005-11-16 07:14:13 by stephent]
stephent
parents: 3010
diff changeset
717 Extbyte *ext;
3010
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
718
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
719 CHECK_STRING (yomi);
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
720 if (confirmContext () == 0)
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
721 {
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
722 return Qnil;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
723 }
3071
a80f978d8342 [xemacs-hg @ 2005-11-16 07:14:13 by stephent]
stephent
parents: 3010
diff changeset
724
a80f978d8342 [xemacs-hg @ 2005-11-16 07:14:13 by stephent]
stephent
parents: 3010
diff changeset
725 LISP_STRING_TO_EXTERNAL (yomi, ext, Qeuc_jp);
a80f978d8342 [xemacs-hg @ 2005-11-16 07:14:13 by stephent]
stephent
parents: 3010
diff changeset
726 strncpy ((char *) yomibuf, ext, sizeof (yomibuf));
a80f978d8342 [xemacs-hg @ 2005-11-16 07:14:13 by stephent]
stephent
parents: 3010
diff changeset
727 yomibuf[sizeof (yomibuf) - 1] = '\0';
a80f978d8342 [xemacs-hg @ 2005-11-16 07:14:13 by stephent]
stephent
parents: 3010
diff changeset
728
a80f978d8342 [xemacs-hg @ 2005-11-16 07:14:13 by stephent]
stephent
parents: 3010
diff changeset
729 nbun = RkBgnBun (IRCP_context, yomibuf, strlen ((char *) yomibuf),
3010
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
730 (RK_XFER << RK_XFERBITS) | RK_KFER);
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
731
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
732 return kanjiYomiList (IRCP_context, nbun);
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
733 }
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
734
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
735 static Lisp_Object
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
736 kanjiYomiList (int context, int nbun)
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
737 {
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
738 Lisp_Object val, res = Qnil;
3071
a80f978d8342 [xemacs-hg @ 2005-11-16 07:14:13 by stephent]
stephent
parents: 3010
diff changeset
739 UExtbyte RkBuf[RKBUFSIZE];
3010
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
740 int len, i, total;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
741
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
742 for (i = nbun ; i > 0 ; )
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
743 {
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
744 i--;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
745 RkGoTo (context, i);
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
746 len = RkGetKanji (context, RkBuf, RKBUFSIZE);
3071
a80f978d8342 [xemacs-hg @ 2005-11-16 07:14:13 by stephent]
stephent
parents: 3010
diff changeset
747 val = make_euc_string (RkBuf, len);
3010
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
748 len = RkGetYomi (context, RkBuf, RKBUFSIZE);
3071
a80f978d8342 [xemacs-hg @ 2005-11-16 07:14:13 by stephent]
stephent
parents: 3010
diff changeset
749 res = Fcons (Fcons (val, make_euc_string (RkBuf, len)), res);
3010
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
750 if (i < RKBUFSIZE / 2)
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
751 {
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
752 kugiri[i] = len;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
753 }
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
754 }
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
755 for (i = 0, total = 0 ; i < nbun ; i++)
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
756 {
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
757 int temp = kugiri[i];
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
758 kugiri[i] = total;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
759 total += temp;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
760 }
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
761 return res;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
762 }
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
763
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
764 DEFUN ("canna-henkan-next", Fcanna_henkan_next, 1, 1, 0, /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
765 Return the list of candidates.
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
766 */
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
767 (bunsetsu))
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
768 {
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
769 int i, slen, len;
3071
a80f978d8342 [xemacs-hg @ 2005-11-16 07:14:13 by stephent]
stephent
parents: 3010
diff changeset
770 UExtbyte *p, RkBuf[RKBUFSIZE];
3010
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
771 Lisp_Object res = Qnil;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
772
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
773 CHECK_INT (bunsetsu);
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
774 if (confirmContext () == 0)
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
775 {
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
776 return Qnil;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
777 }
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
778 RkGoTo (IRCP_context, XINT (bunsetsu));
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
779 len = RkGetKanjiList (IRCP_context, RkBuf, RKBUFSIZE);
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
780 p = RkBuf;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
781 for (i = 0 ; i < len ; i++)
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
782 {
3071
a80f978d8342 [xemacs-hg @ 2005-11-16 07:14:13 by stephent]
stephent
parents: 3010
diff changeset
783 slen = strlen ((char *) p);
3010
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
784 if (NILP(res))
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
785 {
3071
a80f978d8342 [xemacs-hg @ 2005-11-16 07:14:13 by stephent]
stephent
parents: 3010
diff changeset
786 res = Fcons (make_euc_string (p, slen), Qnil);
3010
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
787 }
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
788 else
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
789 {
3071
a80f978d8342 [xemacs-hg @ 2005-11-16 07:14:13 by stephent]
stephent
parents: 3010
diff changeset
790 XCDR (res) = Fcons (make_euc_string (p, slen), Qnil);
3010
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
791 }
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
792 p += slen + 1;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
793 }
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
794 return res;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
795 }
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
796
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
797 DEFUN ("canna-bunsetu-henkou", Fcanna_bunsetu_henkou, 2, 2, 0, /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
798 Specify the length of a clause.
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
799 */
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
800 (bunsetsu, bunlen))
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
801 {
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
802 int nbun, len;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
803
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
804 CHECK_INT (bunsetsu);
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
805 CHECK_INT (bunlen);
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
806
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
807 nbun = XINT (bunsetsu);
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
808 if (confirmContext () == 0)
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
809 {
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
810 return Qnil;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
811 }
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
812 RkGoTo (IRCP_context, nbun);
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
813 len = byteLen (nbun, XINT (bunlen));
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
814 return kanjiYomiList (IRCP_context, RkResize (IRCP_context, len));
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
815 }
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
816
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
817 DEFUN ("canna-henkan-kakutei", Fcanna_henkan_kakutei, 2, 2, 0, /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
818 Select a candidate.
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
819 */
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
820 (bun, kouho))
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
821 {
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
822 int nbun, nkouho;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
823
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
824 if (confirmContext () == 0)
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
825 {
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
826 return Qnil;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
827 }
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
828 nbun = XINT(bun);
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
829 RkGoTo (IRCP_context, nbun);
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
830
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
831 nkouho = XINT(kouho);
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
832 RkXfer (IRCP_context, nkouho);
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
833 return Qt;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
834 }
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
835
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
836 DEFUN ("canna-henkan-end", Fcanna_henkan_end, 0, 0, 0, /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
837 End conversion.
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
838 */
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
839 ())
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
840 {
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
841 if (confirmContext () == 0)
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
842 {
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
843 return Qnil;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
844 }
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
845 RkEndBun (IRCP_context, 1); /* ³Ø½¬¤Ï¤¤¤Ä¤Ç¤â¹Ô¤Ã¤ÆÎɤ¤¤â¤Î¤Ê¤Î¤«¡©
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
846 (is it OK to invoke learning function
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
847 at arbitrary times?) */
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
848 return Qt;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
849 }
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
850
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
851 DEFUN ("canna-henkan-quit", Fcanna_henkan_quit, 0, 0, 0, /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
852 Quit conversion.
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
853 */
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
854 ())
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
855 {
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
856 if (confirmContext () == 0)
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
857 {
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
858 return Qnil;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
859 }
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
860 RkEndBun (IRCP_context, 0);
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
861 return Qt;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
862 }
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
863
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
864 /* variables below this line is constants of Canna */
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
865
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
866 static Fixnum canna_mode_AlphaMode;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
867 static Fixnum canna_mode_EmptyMode;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
868 static Fixnum canna_mode_KigoMode;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
869 static Fixnum canna_mode_YomiMode;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
870 static Fixnum canna_mode_JishuMode;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
871 static Fixnum canna_mode_TankouhoMode;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
872 static Fixnum canna_mode_IchiranMode;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
873 static Fixnum canna_mode_YesNoMode;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
874 static Fixnum canna_mode_OnOffMode;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
875 #ifdef CANNA_MODE_AdjustBunsetsuMode
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
876 static Fixnum canna_mode_AdjustBunsetsuMode;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
877 #endif
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
878 #ifdef CANNA_MODE_ChikujiYomiMode
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
879 static Fixnum canna_mode_ChikujiYomiMode;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
880 static Fixnum canna_mode_ChikujiTanMode;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
881 #endif
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
882
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
883 static Fixnum canna_mode_HenkanMode;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
884 #ifdef CANNA_MODE_HenkanNyuryokuMode
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
885 static Fixnum canna_mode_HenkanNyuryokuMode;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
886 #endif
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
887 #ifdef CANNA_MODE_ZenHiraHenkanMode
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
888 static Fixnum canna_mode_ZenHiraHenkanMode;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
889 #ifdef CANNA_MODE_HanHiraHenkanMode
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
890 static Fixnum canna_mode_HanHiraHenkanMode;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
891 #endif
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
892 static Fixnum canna_mode_ZenKataHenkanMode;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
893 static Fixnum canna_mode_HanKataHenkanMode;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
894 static Fixnum canna_mode_ZenAlphaHenkanMode;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
895 static Fixnum canna_mode_HanAlphaHenkanMode;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
896 #endif
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
897 static Fixnum canna_mode_ZenHiraKakuteiMode;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
898 #ifdef CANNA_MODE_HanHiraKakuteiMode
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
899 static Fixnum canna_mode_HanHiraKakuteiMode;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
900 #endif
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
901 static Fixnum canna_mode_ZenKataKakuteiMode;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
902 static Fixnum canna_mode_HanKataKakuteiMode;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
903 static Fixnum canna_mode_ZenAlphaKakuteiMode;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
904 static Fixnum canna_mode_HanAlphaKakuteiMode;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
905 static Fixnum canna_mode_HexMode;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
906 static Fixnum canna_mode_BushuMode;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
907 static Fixnum canna_mode_ExtendMode;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
908 static Fixnum canna_mode_RussianMode;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
909 static Fixnum canna_mode_GreekMode;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
910 static Fixnum canna_mode_LineMode;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
911 static Fixnum canna_mode_ChangingServerMode;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
912 static Fixnum canna_mode_HenkanMethodMode;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
913 static Fixnum canna_mode_DeleteDicMode;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
914 static Fixnum canna_mode_TourokuMode;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
915 static Fixnum canna_mode_TourokuEmptyMode;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
916 static Fixnum canna_mode_TourokuHinshiMode;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
917 static Fixnum canna_mode_TourokuDicMode;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
918 static Fixnum canna_mode_QuotedInsertMode;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
919 static Fixnum canna_mode_BubunMuhenkanMode;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
920 static Fixnum canna_mode_MountDicMode;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
921
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
922 static Fixnum canna_fn_SelfInsert;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
923 static Fixnum canna_fn_FunctionalInsert;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
924 static Fixnum canna_fn_QuotedInsert;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
925 static Fixnum canna_fn_JapaneseMode;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
926 static Fixnum canna_fn_AlphaMode;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
927 static Fixnum canna_fn_HenkanNyuryokuMode;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
928 static Fixnum canna_fn_Forward;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
929 static Fixnum canna_fn_Backward;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
930 static Fixnum canna_fn_Next;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
931 static Fixnum canna_fn_Prev;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
932 static Fixnum canna_fn_BeginningOfLine;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
933 static Fixnum canna_fn_EndOfLine;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
934 static Fixnum canna_fn_DeleteNext;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
935 static Fixnum canna_fn_DeletePrevious;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
936 static Fixnum canna_fn_KillToEndOfLine;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
937 static Fixnum canna_fn_Henkan;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
938 static Fixnum canna_fn_Kakutei;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
939 static Fixnum canna_fn_Extend;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
940 static Fixnum canna_fn_Shrink;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
941 #ifdef CANNA_FN_AdjustBunsetsu
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
942 static Fixnum canna_fn_AdjustBunsetsu;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
943 #endif
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
944 static Fixnum canna_fn_Quit;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
945 static Fixnum canna_fn_ConvertAsHex;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
946 static Fixnum canna_fn_ConvertAsBushu;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
947 static Fixnum canna_fn_KouhoIchiran;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
948 static Fixnum canna_fn_BubunMuhenkan;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
949 static Fixnum canna_fn_Zenkaku;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
950 static Fixnum canna_fn_Hankaku;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
951 static Fixnum canna_fn_ToUpper;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
952 static Fixnum canna_fn_Capitalize;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
953 static Fixnum canna_fn_ToLower;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
954 static Fixnum canna_fn_Hiragana;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
955 static Fixnum canna_fn_Katakana;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
956 static Fixnum canna_fn_Romaji;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
957 #ifdef CANNA_FN_BaseHiragana
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
958 static Fixnum canna_fn_BaseHiragana;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
959 static Fixnum canna_fn_BaseKatakana;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
960 static Fixnum canna_fn_BaseEisu;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
961 static Fixnum canna_fn_BaseZenkaku;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
962 static Fixnum canna_fn_BaseHankaku;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
963 static Fixnum canna_fn_BaseKana;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
964 static Fixnum canna_fn_BaseKakutei;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
965 static Fixnum canna_fn_BaseHenkan;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
966 static Fixnum canna_fn_BaseHiraKataToggle;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
967 static Fixnum canna_fn_BaseZenHanToggle;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
968 static Fixnum canna_fn_BaseKanaEisuToggle;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
969 static Fixnum canna_fn_BaseKakuteiHenkanToggle;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
970 static Fixnum canna_fn_BaseRotateForward;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
971 static Fixnum canna_fn_BaseRotateBackward;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
972 #endif
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
973 static Fixnum canna_fn_ExtendMode;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
974 static Fixnum canna_fn_Touroku;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
975 static Fixnum canna_fn_HexMode;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
976 static Fixnum canna_fn_BushuMode;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
977 static Fixnum canna_fn_KigouMode;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
978 #ifdef CANNA_FN_Mark
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
979 static Fixnum canna_fn_Mark;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
980 #endif
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
981 #ifdef CANNA_FN_TemporalMode
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
982 static Fixnum canna_fn_TemporalMode;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
983 #endif
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
984
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
985 static Fixnum canna_key_Nfer;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
986 static Fixnum canna_key_Xfer;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
987 static Fixnum canna_key_Up;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
988 static Fixnum canna_key_Left;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
989 static Fixnum canna_key_Right;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
990 static Fixnum canna_key_Down;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
991 static Fixnum canna_key_Insert;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
992 static Fixnum canna_key_Rollup;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
993 static Fixnum canna_key_Rolldown;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
994 static Fixnum canna_key_Home;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
995 static Fixnum canna_key_Help;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
996 static Fixnum canna_key_KP_Key;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
997 static Fixnum canna_key_Shift_Nfer;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
998 static Fixnum canna_key_Shift_Xfer;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
999 static Fixnum canna_key_Shift_Up;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1000 static Fixnum canna_key_Shift_Left;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1001 static Fixnum canna_key_Shift_Right;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1002 static Fixnum canna_key_Shift_Down;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1003 static Fixnum canna_key_Cntrl_Nfer;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1004 static Fixnum canna_key_Cntrl_Xfer;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1005 static Fixnum canna_key_Cntrl_Up;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1006 static Fixnum canna_key_Cntrl_Left;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1007 static Fixnum canna_key_Cntrl_Right;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1008 static Fixnum canna_key_Cntrl_Down;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1009
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1010 Lisp_Object VCANNA; /* by MORIOKA Tomohiko <morioka@jaist.ac.jp>
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1011 1996/6/7 */
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1012
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1013 /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1014 * Each dynamically loaded Emacs module is given a name at compile
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1015 * time. This is a short name, and must be a valid part of a C
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1016 * identifier. This name is used to construct the name of several
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1017 * functions which must appear in the module source code.
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1018 * The first such function, modules_of_XXXX, should load in any dependent
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1019 * modules. This function is optional, and the module will still load if
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1020 * it is not present in the module.
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1021 *
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1022 * The second function, which is NOT optional, is syms_of_XXXX, in which
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1023 * all functions that the module will be provided are declared. This
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1024 * function will contain calls to DEFSUBR().
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1025 *
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1026 * The third function, which is also NOT optional, is vars_of_XXXX, in
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1027 * which you declare all variables that the module provides. This
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1028 * function will contain calls to DEFVAR_LISP(), DEFVAR_BOOL() etc.
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1029 *
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1030 * When declaring functions and variables in the syms_of_XXXX and
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1031 * vars_of_XXXX functions, you use the exact same syntax that you
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1032 * would as if this module were being compiled into the pure Emacs.
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1033 *
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1034 * The fourth function, which is optional, is unload_XXXX, in which actions
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1035 * that must be taken to unload the module are listed. XEmacs will unbind
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1036 * functions and variables for you. Anything else that must be done should
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1037 * appear in this function.
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1038 *
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1039 * All four of these functions are declared as void functions,
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1040 * taking no parameters. Since this sample module is called 'sample',
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1041 * the functions will be named 'modules_of_sample', 'syms_of_sample',
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1042 * 'vars_of_sample', and 'unload_sample'.
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1043 */
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1044
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1045 #if 0
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1046 void
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1047 modules_of_canna_api (void)
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1048 {
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1049 /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1050 * This function isn't actually required as we will not be loading
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1051 * in any dependent modules, but if we were, we would do something like:
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1052 * emodules_load ("dependent.ell", "canna2", "1.0.0");
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1053 */
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1054 }
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1055 #endif
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1056
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1057 void
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1058 syms_of_canna_api (void)
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1059 {
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1060 DEFSUBR (Fcanna_key_proc);
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1061 DEFSUBR (Fcanna_initialize);
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1062 DEFSUBR (Fcanna_finalize);
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1063 DEFSUBR (Fcanna_touroku_string);
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1064 DEFSUBR (Fcanna_set_width);
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1065 DEFSUBR (Fcanna_change_mode);
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1066 DEFSUBR (Fcanna_store_yomi);
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1067 DEFSUBR (Fcanna_do_function);
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1068 DEFSUBR (Fcanna_parse);
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1069 DEFSUBR (Fcanna_query_mode);
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1070 DEFSUBR (Fcanna_set_bunsetsu);
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1071
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1072 DEFSUBR (Fcanna_henkan_begin);
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1073 DEFSUBR (Fcanna_henkan_next);
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1074 DEFSUBR (Fcanna_bunsetu_henkou);
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1075 DEFSUBR (Fcanna_henkan_kakutei);
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1076 DEFSUBR (Fcanna_henkan_end);
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1077 DEFSUBR (Fcanna_henkan_quit);
3071
a80f978d8342 [xemacs-hg @ 2005-11-16 07:14:13 by stephent]
stephent
parents: 3010
diff changeset
1078
a80f978d8342 [xemacs-hg @ 2005-11-16 07:14:13 by stephent]
stephent
parents: 3010
diff changeset
1079 DEFSYMBOL (Qeuc_jp);
3010
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1080 }
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1081
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1082 void
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1083 vars_of_canna_api (void)
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1084 {
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1085 DEFVAR_LISP ("CANNA", &VCANNA); /* hir@nec, 1992.5.21 */
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1086 VCANNA = Qt; /* hir@nec, 1992.5.21 */
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1087
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1088 DEFVAR_LISP ("canna-kakutei-string", &Vcanna_kakutei_string /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1089
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1090 */ );
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1091 Vcanna_kakutei_string = Qnil;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1092
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1093 DEFVAR_LISP ("canna-kakutei-yomi", &Vcanna_kakutei_yomi /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1094
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1095 */ );
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1096 Vcanna_kakutei_yomi = Qnil;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1097
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1098 DEFVAR_LISP ("canna-kakutei-romaji", &Vcanna_kakutei_romaji /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1099
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1100 */ );
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1101 Vcanna_kakutei_romaji = Qnil;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1102
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1103 DEFVAR_LISP ("canna-henkan-string", &Vcanna_henkan_string /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1104
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1105 */ );
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1106 Vcanna_henkan_string = Qnil;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1107
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1108 DEFVAR_INT ("canna-henkan-length", &canna_henkan_length /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1109
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1110 */ );
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1111 canna_henkan_length = 0;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1112
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1113 DEFVAR_INT ("canna-henkan-revpos", &canna_henkan_revPos /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1114
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1115 */ );
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1116 canna_henkan_revPos = 0;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1117
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1118 DEFVAR_INT ("canna-henkan-revlen", &canna_henkan_revLen /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1119
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1120 */ );
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1121 canna_henkan_revLen = 0;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1122
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1123 DEFVAR_LISP ("canna-ichiran-string", &Vcanna_ichiran_string /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1124
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1125 */ );
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1126 Vcanna_ichiran_string = Qnil;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1127
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1128 DEFVAR_INT ("canna-ichiran-length", &canna_ichiran_length /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1129
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1130 */ );
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1131 canna_ichiran_length = 0;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1132
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1133 DEFVAR_INT ("canna-ichiran-revpos", &canna_ichiran_revPos /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1134
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1135 */ );
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1136 canna_ichiran_revPos = 0;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1137
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1138 DEFVAR_INT ("canna-ichiran-revlen", &canna_ichiran_revLen /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1139
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1140 */ );
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1141 canna_ichiran_revLen = 0;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1142
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1143 DEFVAR_LISP ("canna-mode-string", &Vcanna_mode_string /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1144
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1145 */ );
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1146 Vcanna_mode_string = Qnil;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1147
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1148 DEFVAR_BOOL ("canna-empty-info", &canna_empty_info /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1149 For canna
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1150 */ );
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1151 canna_empty_info = 0;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1152
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1153 DEFVAR_BOOL ("canna-through-info", &canna_through_info /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1154 For canna
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1155 */ );
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1156 canna_through_info = 0;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1157
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1158 DEFVAR_BOOL ("canna-underline", &canna_underline /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1159 For canna
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1160 */ );
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1161 canna_underline = 0;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1162
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1163 DEFVAR_BOOL ("canna-inhibit-hankakukana", &canna_inhibit_hankakukana /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1164 For canna
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1165 */ );
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1166 canna_inhibit_hankakukana = 0;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1167
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1168 DEFVAR_INT ("canna-mode-alpha-mode", &canna_mode_AlphaMode /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1169
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1170 */ );
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1171 canna_mode_AlphaMode = IROHA_MODE_AlphaMode;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1172
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1173 DEFVAR_INT ("canna-mode-empty-mode", &canna_mode_EmptyMode /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1174
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1175 */ );
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1176 canna_mode_EmptyMode = IROHA_MODE_EmptyMode;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1177
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1178 DEFVAR_INT ("canna-mode-kigo-mode", &canna_mode_KigoMode /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1179
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1180 */ );
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1181 canna_mode_KigoMode = IROHA_MODE_KigoMode;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1182
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1183 DEFVAR_INT ("canna-mode-yomi-mode", &canna_mode_YomiMode /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1184
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1185 */ );
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1186 canna_mode_YomiMode = IROHA_MODE_YomiMode;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1187
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1188 DEFVAR_INT ("canna-mode-jishu-mode", &canna_mode_JishuMode /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1189
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1190 */ );
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1191 canna_mode_JishuMode = IROHA_MODE_JishuMode;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1192
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1193 DEFVAR_INT ("canna-mode-tankouho-mode", &canna_mode_TankouhoMode /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1194
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1195 */ );
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1196 canna_mode_TankouhoMode = IROHA_MODE_TankouhoMode;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1197
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1198 DEFVAR_INT ("canna-mode-ichiran-mode", &canna_mode_IchiranMode /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1199
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1200 */ );
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1201 canna_mode_IchiranMode = IROHA_MODE_IchiranMode;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1202
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1203 DEFVAR_INT ("canna-mode-yes-no-mode", &canna_mode_YesNoMode /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1204
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1205 */ );
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1206 canna_mode_YesNoMode = IROHA_MODE_YesNoMode;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1207
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1208 DEFVAR_INT ("canna-mode-on-off-mode", &canna_mode_OnOffMode /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1209
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1210 */ );
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1211 canna_mode_OnOffMode = IROHA_MODE_OnOffMode;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1212
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1213 #ifdef CANNA_MODE_AdjustBunsetsuMode
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1214 DEFVAR_INT ("canna-mode-adjust-bunsetsu-mode",
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1215 &canna_mode_AdjustBunsetsuMode /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1216
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1217 */ );
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1218 canna_mode_AdjustBunsetsuMode = CANNA_MODE_AdjustBunsetsuMode;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1219 #endif
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1220 #ifdef CANNA_MODE_ChikujiYomiMode
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1221 DEFVAR_INT ("canna-mode-chikuji-yomi-mode", &canna_mode_ChikujiYomiMode /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1222
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1223 */ );
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1224 canna_mode_ChikujiYomiMode = CANNA_MODE_ChikujiYomiMode;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1225
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1226 DEFVAR_INT ("canna-mode-chikuji-bunsetsu-mode",
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1227 &canna_mode_ChikujiTanMode /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1228
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1229 */ );
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1230 canna_mode_ChikujiTanMode = CANNA_MODE_ChikujiTanMode;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1231 #endif
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1232
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1233 DEFVAR_INT ("canna-mode-henkan-mode", &canna_mode_HenkanMode /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1234
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1235 */ );
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1236 canna_mode_HenkanMode = IROHA_MODE_HenkanMode;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1237
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1238 #ifdef CANNA_MODE_HenkanNyuryokuMode
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1239 DEFVAR_INT ("canna-mode-henkan-nyuuryoku-mode",
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1240 &canna_mode_HenkanNyuryokuMode /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1241
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1242 */ );
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1243 canna_mode_HenkanNyuryokuMode = CANNA_MODE_HenkanNyuryokuMode;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1244 #endif
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1245 #ifdef CANNA_MODE_ZenHiraHenkanMode
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1246 DEFVAR_INT ("canna-mode-zen-hira-henkan-mode",
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1247 &canna_mode_ZenHiraHenkanMode /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1248
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1249 */ );
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1250 canna_mode_ZenHiraHenkanMode = CANNA_MODE_ZenHiraHenkanMode;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1251 #ifdef CANNA_MODE_HanHiraHenkanMode
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1252 DEFVAR_INT ("canna-mode-han-hira-henkan-mode",
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1253 &canna_mode_HanHiraHenkanMode /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1254
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1255 */ );
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1256 canna_mode_HanHiraHenkanMode = CANNA_MODE_HanHiraHenkanMode;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1257 #endif
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1258 DEFVAR_INT ("canna-mode-zen-kata-henkan-mode",
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1259 &canna_mode_ZenKataHenkanMode /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1260
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1261 */ );
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1262 canna_mode_ZenKataHenkanMode = CANNA_MODE_ZenKataHenkanMode;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1263
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1264 DEFVAR_INT ("canna-mode-han-kata-henkan-mode",
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1265 &canna_mode_HanKataHenkanMode /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1266
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1267 */ );
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1268 canna_mode_HanKataHenkanMode = CANNA_MODE_HanKataHenkanMode;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1269
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1270 DEFVAR_INT ("canna-mode-zen-alpha-henkan-mode",
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1271 &canna_mode_ZenAlphaHenkanMode /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1272
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1273 */ );
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1274 canna_mode_ZenAlphaHenkanMode = CANNA_MODE_ZenAlphaHenkanMode;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1275
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1276 DEFVAR_INT ("canna-mode-han-alpha-henkan-mode",
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1277 &canna_mode_HanAlphaHenkanMode /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1278
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1279 */ );
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1280 canna_mode_HanAlphaHenkanMode = CANNA_MODE_HanAlphaHenkanMode;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1281 #endif
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1282 DEFVAR_INT ("canna-mode-zen-hira-kakutei-mode",
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1283 &canna_mode_ZenHiraKakuteiMode /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1284
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1285 */ );
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1286 canna_mode_ZenHiraKakuteiMode = IROHA_MODE_ZenHiraKakuteiMode;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1287 #ifdef CANNA_MODE_HanHiraKakuteiMode
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1288 DEFVAR_INT ("canna-mode-han-hira-kakutei-mode",
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1289 &canna_mode_HanHiraKakuteiMode /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1290
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1291 */ );
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1292 canna_mode_HanHiraKakuteiMode = CANNA_MODE_HanHiraKakuteiMode;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1293 #endif
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1294 DEFVAR_INT ("canna-mode-zen-kata-kakutei-mode",
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1295 &canna_mode_ZenKataKakuteiMode /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1296
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1297 */ );
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1298 canna_mode_ZenKataKakuteiMode = IROHA_MODE_ZenKataKakuteiMode;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1299
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1300 DEFVAR_INT ("canna-mode-han-kata-kakutei-mode",
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1301 &canna_mode_HanKataKakuteiMode /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1302
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1303 */ );
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1304 canna_mode_HanKataKakuteiMode = IROHA_MODE_HanKataKakuteiMode;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1305
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1306 DEFVAR_INT ("canna-mode-zen-alpha-kakutei-mode",
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1307 &canna_mode_ZenAlphaKakuteiMode /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1308
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1309 */ );
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1310 canna_mode_ZenAlphaKakuteiMode = IROHA_MODE_ZenAlphaKakuteiMode;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1311
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1312 DEFVAR_INT ("canna-mode-han-alpha-kakutei-mode",
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1313 &canna_mode_HanAlphaKakuteiMode /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1314
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1315 */ );
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1316 canna_mode_HanAlphaKakuteiMode = IROHA_MODE_HanAlphaKakuteiMode;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1317
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1318 DEFVAR_INT ("canna-mode-hex-mode", &canna_mode_HexMode /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1319
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1320 */ );
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1321 canna_mode_HexMode = IROHA_MODE_HexMode;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1322
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1323 DEFVAR_INT ("canna-mode-bushu-mode", &canna_mode_BushuMode /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1324
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1325 */ );
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1326 canna_mode_BushuMode = IROHA_MODE_BushuMode;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1327
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1328 DEFVAR_INT ("canna-mode-extend-mode", &canna_mode_ExtendMode /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1329
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1330 */ );
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1331 canna_mode_ExtendMode = IROHA_MODE_ExtendMode;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1332
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1333 DEFVAR_INT ("canna-mode-russian-mode", &canna_mode_RussianMode /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1334
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1335 */ );
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1336 canna_mode_RussianMode = IROHA_MODE_RussianMode;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1337
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1338 DEFVAR_INT ("canna-mode-greek-mode", &canna_mode_GreekMode /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1339
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1340 */ );
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1341 canna_mode_GreekMode = IROHA_MODE_GreekMode;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1342
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1343 DEFVAR_INT ("canna-mode-line-mode", &canna_mode_LineMode /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1344
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1345 */ );
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1346 canna_mode_LineMode = IROHA_MODE_LineMode;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1347
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1348 DEFVAR_INT ("canna-mode-changing-server-mode",
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1349 &canna_mode_ChangingServerMode /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1350
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1351 */ );
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1352 canna_mode_ChangingServerMode = IROHA_MODE_ChangingServerMode;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1353
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1354 DEFVAR_INT ("canna-mode-henkan-method-mode",
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1355 &canna_mode_HenkanMethodMode /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1356
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1357 */ );
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1358 canna_mode_HenkanMethodMode = IROHA_MODE_HenkanMethodMode;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1359
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1360 DEFVAR_INT ("canna-mode-delete-dic-mode", &canna_mode_DeleteDicMode /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1361
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1362 */ );
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1363 canna_mode_DeleteDicMode = IROHA_MODE_DeleteDicMode;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1364
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1365 DEFVAR_INT ("canna-mode-touroku-mode", &canna_mode_TourokuMode /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1366
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1367 */ );
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1368 canna_mode_TourokuMode = IROHA_MODE_TourokuMode;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1369
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1370 DEFVAR_INT ("canna-mode-touroku-empty-mode",
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1371 &canna_mode_TourokuEmptyMode /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1372
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1373 */ );
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1374 canna_mode_TourokuEmptyMode = IROHA_MODE_TourokuEmptyMode;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1375
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1376 DEFVAR_INT ("canna-mode-touroku-hinshi-mode",
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1377 &canna_mode_TourokuHinshiMode /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1378
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1379 */ );
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1380 canna_mode_TourokuHinshiMode = IROHA_MODE_TourokuHinshiMode;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1381
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1382 DEFVAR_INT ("canna-mode-touroku-dic-mode", &canna_mode_TourokuDicMode /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1383
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1384 */ );
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1385 canna_mode_TourokuDicMode = IROHA_MODE_TourokuDicMode;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1386
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1387 DEFVAR_INT ("canna-mode-quoted-insert-mode",
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1388 &canna_mode_QuotedInsertMode /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1389
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1390 */ );
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1391 canna_mode_QuotedInsertMode = IROHA_MODE_QuotedInsertMode;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1392
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1393 DEFVAR_INT ("canna-mode-bubun-muhenkan-mode",
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1394 &canna_mode_BubunMuhenkanMode /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1395
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1396 */ );
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1397 canna_mode_BubunMuhenkanMode = IROHA_MODE_BubunMuhenkanMode;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1398
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1399 DEFVAR_INT ("canna-mode-mount-dic-mode", &canna_mode_MountDicMode /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1400
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1401 */ );
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1402 canna_mode_MountDicMode = IROHA_MODE_MountDicMode;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1403
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1404 DEFVAR_INT ("canna-func-self-insert", &canna_fn_SelfInsert /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1405
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1406 */ );
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1407 canna_fn_SelfInsert = IROHA_FN_SelfInsert;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1408
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1409 DEFVAR_INT ("canna-func-functional-insert", &canna_fn_FunctionalInsert /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1410
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1411 */ );
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1412 canna_fn_FunctionalInsert = IROHA_FN_FunctionalInsert;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1413
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1414 DEFVAR_INT ("canna-func-quoted-insert", &canna_fn_QuotedInsert /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1415
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1416 */ );
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1417 canna_fn_QuotedInsert = IROHA_FN_QuotedInsert;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1418
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1419 DEFVAR_INT ("canna-func-japanese-mode", &canna_fn_JapaneseMode /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1420
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1421 */ );
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1422 canna_fn_JapaneseMode = IROHA_FN_JapaneseMode;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1423
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1424 DEFVAR_INT ("canna-func-alpha-mode", &canna_fn_AlphaMode /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1425
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1426 */ );
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1427 canna_fn_AlphaMode = IROHA_FN_AlphaMode;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1428
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1429 DEFVAR_INT ("canna-func-henkan-nyuryoku-mode",
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1430 &canna_fn_HenkanNyuryokuMode /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1431
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1432 */ );
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1433 canna_fn_HenkanNyuryokuMode = IROHA_FN_HenkanNyuryokuMode;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1434
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1435 DEFVAR_INT ("canna-func-forward", &canna_fn_Forward /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1436
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1437 */ );
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1438 canna_fn_Forward = IROHA_FN_Forward;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1439
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1440 DEFVAR_INT ("canna-func-backward", &canna_fn_Backward /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1441
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1442 */ );
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1443 canna_fn_Backward = IROHA_FN_Backward;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1444
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1445 DEFVAR_INT ("canna-func-next", &canna_fn_Next /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1446
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1447 */ );
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1448 canna_fn_Next = IROHA_FN_Next;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1449
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1450 DEFVAR_INT ("canna-func-previous", &canna_fn_Prev /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1451
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1452 */ );
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1453 canna_fn_Prev = IROHA_FN_Prev;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1454
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1455 DEFVAR_INT ("canna-func-beginning-of-line", &canna_fn_BeginningOfLine /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1456
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1457 */ );
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1458 canna_fn_BeginningOfLine = IROHA_FN_BeginningOfLine;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1459
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1460 DEFVAR_INT ("canna-func-end-of-line", &canna_fn_EndOfLine /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1461
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1462 */ );
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1463 canna_fn_EndOfLine = IROHA_FN_EndOfLine;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1464
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1465 DEFVAR_INT ("canna-func-delete-next", &canna_fn_DeleteNext /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1466
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1467 */ );
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1468 canna_fn_DeleteNext = IROHA_FN_DeleteNext;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1469
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1470 DEFVAR_INT ("canna-func-delete-previous", &canna_fn_DeletePrevious /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1471
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1472 */ );
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1473 canna_fn_DeletePrevious = IROHA_FN_DeletePrevious;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1474
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1475 DEFVAR_INT ("canna-func-kill-to-end-of-line", &canna_fn_KillToEndOfLine /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1476
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1477 */ );
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1478 canna_fn_KillToEndOfLine = IROHA_FN_KillToEndOfLine;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1479
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1480 DEFVAR_INT ("canna-func-henkan", &canna_fn_Henkan /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1481
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1482 */ );
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1483 canna_fn_Henkan = IROHA_FN_Henkan;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1484
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1485 DEFVAR_INT ("canna-func-kakutei", &canna_fn_Kakutei /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1486
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1487 */ );
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1488 canna_fn_Kakutei = IROHA_FN_Kakutei;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1489
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1490 DEFVAR_INT ("canna-func-extend", &canna_fn_Extend /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1491
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1492 */ );
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1493 canna_fn_Extend = IROHA_FN_Extend;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1494
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1495 DEFVAR_INT ("canna-func-shrink", &canna_fn_Shrink /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1496
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1497 */ );
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1498 canna_fn_Shrink = IROHA_FN_Shrink;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1499
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1500 #ifdef CANNA_FN_AdjustBunsetsu
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1501 DEFVAR_INT ("canna-func-adjust-bunsetsu", &canna_fn_AdjustBunsetsu /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1502
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1503 */ );
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1504 canna_fn_AdjustBunsetsu = CANNA_FN_AdjustBunsetsu;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1505 #endif
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1506 DEFVAR_INT ("canna-func-quit", &canna_fn_Quit /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1507
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1508 */ );
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1509 canna_fn_Quit = IROHA_FN_Quit;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1510
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1511 DEFVAR_INT ("canna-func-convert-as-hex", &canna_fn_ConvertAsHex /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1512
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1513 */ );
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1514 canna_fn_ConvertAsHex = IROHA_FN_ConvertAsHex;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1515
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1516 DEFVAR_INT ("canna-func-convert-as-bushu", &canna_fn_ConvertAsBushu /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1517
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1518 */ );
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1519 canna_fn_ConvertAsBushu = IROHA_FN_ConvertAsBushu;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1520
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1521 DEFVAR_INT ("canna-func-kouho-ichiran", &canna_fn_KouhoIchiran /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1522
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1523 */ );
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1524 canna_fn_KouhoIchiran = IROHA_FN_KouhoIchiran;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1525
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1526 DEFVAR_INT ("canna-func-bubun-muhenkan", &canna_fn_BubunMuhenkan /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1527
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1528 */ );
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1529 canna_fn_BubunMuhenkan = IROHA_FN_BubunMuhenkan;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1530
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1531 DEFVAR_INT ("canna-func-zenkaku", &canna_fn_Zenkaku /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1532
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1533 */ );
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1534 canna_fn_Zenkaku = IROHA_FN_Zenkaku;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1535
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1536 DEFVAR_INT ("canna-func-hankaku", &canna_fn_Hankaku /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1537
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1538 */ );
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1539 canna_fn_Hankaku = IROHA_FN_Hankaku;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1540
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1541 DEFVAR_INT ("canna-func-to-upper", &canna_fn_ToUpper /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1542
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1543 */ );
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1544 canna_fn_ToUpper = IROHA_FN_ToUpper;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1545
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1546 DEFVAR_INT ("canna-func-capitalize", &canna_fn_Capitalize /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1547
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1548 */ );
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1549 canna_fn_Capitalize = IROHA_FN_Capitalize;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1550
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1551 DEFVAR_INT ("canna-func-to-lower", &canna_fn_ToLower /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1552
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1553 */ );
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1554 canna_fn_ToLower = IROHA_FN_ToLower;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1555
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1556 DEFVAR_INT ("canna-func-hiragana", &canna_fn_Hiragana /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1557
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1558 */ );
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1559 canna_fn_Hiragana = IROHA_FN_Hiragana;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1560
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1561 DEFVAR_INT ("canna-func-katakana", &canna_fn_Katakana /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1562
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1563 */ );
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1564 canna_fn_Katakana = IROHA_FN_Katakana;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1565
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1566 DEFVAR_INT ("canna-func-romaji", &canna_fn_Romaji /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1567
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1568 */ );
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1569 canna_fn_Romaji = IROHA_FN_Romaji;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1570
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1571 #ifdef CANNA_FN_BaseHiragana
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1572 DEFVAR_INT ("canna-func-base-hiragana", &canna_fn_BaseHiragana /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1573
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1574 */ );
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1575 canna_fn_BaseHiragana = CANNA_FN_BaseHiragana;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1576
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1577 DEFVAR_INT ("canna-func-base-katakana", &canna_fn_BaseKatakana /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1578
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1579 */ );
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1580 canna_fn_BaseKatakana = CANNA_FN_BaseKatakana;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1581
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1582 DEFVAR_INT ("canna-func-base-eisu", &canna_fn_BaseEisu /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1583
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1584 */ );
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1585 canna_fn_BaseEisu = CANNA_FN_BaseEisu;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1586
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1587 DEFVAR_INT ("canna-func-base-zenkaku", &canna_fn_BaseZenkaku /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1588
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1589 */ );
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1590 canna_fn_BaseZenkaku = CANNA_FN_BaseZenkaku;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1591
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1592 DEFVAR_INT ("canna-func-base-hankaku", &canna_fn_BaseHankaku /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1593
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1594 */ );
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1595 canna_fn_BaseHankaku = CANNA_FN_BaseHankaku;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1596
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1597 DEFVAR_INT ("canna-func-base-kana", &canna_fn_BaseKana /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1598
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1599 */ );
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1600 canna_fn_BaseKana = CANNA_FN_BaseKana;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1601
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1602 DEFVAR_INT ("canna-func-base-kakutei", &canna_fn_BaseKakutei /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1603
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1604 */ );
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1605 canna_fn_BaseKakutei = CANNA_FN_BaseKakutei;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1606
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1607 DEFVAR_INT ("canna-func-base-henkan", &canna_fn_BaseHenkan /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1608
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1609 */ );
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1610 canna_fn_BaseHenkan = CANNA_FN_BaseHenkan;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1611
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1612 DEFVAR_INT ("canna-func-base-hiragana-katakana-toggle",
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1613 &canna_fn_BaseHiraKataToggle /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1614
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1615 */ );
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1616 canna_fn_BaseHiraKataToggle = CANNA_FN_BaseHiraKataToggle;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1617
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1618 DEFVAR_INT ("canna-func-base-zenkaku-hankaku-toggle",
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1619 &canna_fn_BaseZenHanToggle /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1620
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1621 */ );
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1622 canna_fn_BaseZenHanToggle = CANNA_FN_BaseZenHanToggle;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1623
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1624 DEFVAR_INT ("canna-func-base-kana-eisu-toggle",
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1625 &canna_fn_BaseKanaEisuToggle /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1626
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1627 */ );
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1628 canna_fn_BaseKanaEisuToggle = CANNA_FN_BaseKanaEisuToggle;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1629
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1630 DEFVAR_INT ("canna-func-base-kakutei-henkan-toggle",
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1631 &canna_fn_BaseKakuteiHenkanToggle /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1632
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1633 */ );
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1634 canna_fn_BaseKakuteiHenkanToggle = CANNA_FN_BaseKakuteiHenkanToggle;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1635
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1636 DEFVAR_INT ("canna-func-base-rotate-forward",
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1637 &canna_fn_BaseRotateForward /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1638
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1639 */ );
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1640 canna_fn_BaseRotateForward = CANNA_FN_BaseRotateForward;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1641
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1642 DEFVAR_INT ("canna-func-base-rotate-backward",
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1643 &canna_fn_BaseRotateBackward /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1644
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1645 */ );
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1646 canna_fn_BaseRotateBackward = CANNA_FN_BaseRotateBackward;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1647
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1648 #endif
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1649 DEFVAR_INT ("canna-func-extend-mode", &canna_fn_ExtendMode /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1650
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1651 */ );
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1652 canna_fn_ExtendMode = IROHA_FN_ExtendMode;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1653
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1654 DEFVAR_INT ("canna-func-touroku", &canna_fn_Touroku /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1655
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1656 */ );
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1657 canna_fn_Touroku = IROHA_FN_Touroku;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1658
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1659 DEFVAR_INT ("canna-func-hex-mode", &canna_fn_HexMode /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1660
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1661 */ );
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1662 canna_fn_HexMode = IROHA_FN_HexMode;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1663
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1664 DEFVAR_INT ("canna-func-bushu-mode", &canna_fn_BushuMode /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1665
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1666 */ );
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1667 canna_fn_BushuMode = IROHA_FN_BushuMode;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1668
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1669 DEFVAR_INT ("canna-func-kigo-mode", &canna_fn_KigouMode /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1670
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1671 */ );
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1672 canna_fn_KigouMode = IROHA_FN_KigouMode;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1673
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1674 #ifdef CANNA_FN_Mark
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1675 DEFVAR_INT ("canna-func-mark", &canna_fn_Mark /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1676
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1677 */ );
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1678 canna_fn_Mark = CANNA_FN_Mark;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1679 #endif
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1680 #ifdef CANNA_FN_TemporalMode
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1681 DEFVAR_INT ("canna-func-temporal-mode", &canna_fn_TemporalMode /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1682
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1683 */ );
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1684 canna_fn_TemporalMode = CANNA_FN_TemporalMode;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1685 #endif
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1686
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1687 DEFVAR_INT ("canna-key-nfer", &canna_key_Nfer /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1688
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1689 */ );
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1690 canna_key_Nfer = IROHA_KEY_Nfer;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1691
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1692 DEFVAR_INT ("canna-key-xfer", &canna_key_Xfer /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1693
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1694 */ );
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1695 canna_key_Xfer = IROHA_KEY_Xfer;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1696
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1697 DEFVAR_INT ("canna-key-up", &canna_key_Up /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1698
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1699 */ );
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1700 canna_key_Up = IROHA_KEY_Up;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1701
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1702 DEFVAR_INT ("canna-key-left", &canna_key_Left /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1703
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1704 */ );
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1705 canna_key_Left = IROHA_KEY_Left;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1706
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1707 DEFVAR_INT ("canna-key-right", &canna_key_Right /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1708
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1709 */ );
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1710 canna_key_Right = IROHA_KEY_Right;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1711
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1712 DEFVAR_INT ("canna-key-down", &canna_key_Down /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1713
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1714 */ );
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1715 canna_key_Down = IROHA_KEY_Down;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1716
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1717 DEFVAR_INT ("canna-key-insert", &canna_key_Insert /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1718
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1719 */ );
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1720 canna_key_Insert = IROHA_KEY_Insert;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1721
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1722 DEFVAR_INT ("canna-key-rollup", &canna_key_Rollup /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1723
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1724 */ );
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1725 canna_key_Rollup = IROHA_KEY_Rollup;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1726
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1727 DEFVAR_INT ("canna-key-rolldown", &canna_key_Rolldown /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1728
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1729 */ );
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1730 canna_key_Rolldown = IROHA_KEY_Rolldown;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1731
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1732 DEFVAR_INT ("canna-key-home", &canna_key_Home /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1733
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1734 */ );
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1735 canna_key_Home = IROHA_KEY_Home;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1736
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1737 DEFVAR_INT ("canna-key-help", &canna_key_Help /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1738
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1739 */ );
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1740 canna_key_Help = IROHA_KEY_Help;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1741
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1742 DEFVAR_INT ("canna-key-kp-key", &canna_key_KP_Key /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1743
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1744 */ );
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1745 canna_key_KP_Key = IROHA_KEY_KP_Key;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1746
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1747 DEFVAR_INT ("canna-key-shift-nfer", &canna_key_Shift_Nfer /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1748
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1749 */ );
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1750 canna_key_Shift_Nfer = IROHA_KEY_Shift_Nfer;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1751
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1752 DEFVAR_INT ("canna-key-shift-xfer", &canna_key_Shift_Xfer /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1753
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1754 */ );
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1755 canna_key_Shift_Xfer = IROHA_KEY_Shift_Xfer;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1756
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1757 DEFVAR_INT ("canna-key-shift-up", &canna_key_Shift_Up /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1758
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1759 */ );
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1760 canna_key_Shift_Up = IROHA_KEY_Shift_Up;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1761
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1762 DEFVAR_INT ("canna-key-shift-left", &canna_key_Shift_Left /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1763
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1764 */ );
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1765 canna_key_Shift_Left = IROHA_KEY_Shift_Left;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1766
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1767 DEFVAR_INT ("canna-key-shift-right", &canna_key_Shift_Right /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1768
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1769 */ );
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1770 canna_key_Shift_Right = IROHA_KEY_Shift_Right;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1771
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1772 DEFVAR_INT ("canna-key-shift-down", &canna_key_Shift_Down /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1773
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1774 */ );
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1775 canna_key_Shift_Down = IROHA_KEY_Shift_Down;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1776
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1777 DEFVAR_INT ("canna-key-control-nfer", &canna_key_Cntrl_Nfer /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1778
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1779 */ );
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1780 canna_key_Cntrl_Nfer = IROHA_KEY_Cntrl_Nfer;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1781
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1782 DEFVAR_INT ("canna-key-control-xfer", &canna_key_Cntrl_Xfer /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1783
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1784 */ );
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1785 canna_key_Cntrl_Xfer = IROHA_KEY_Cntrl_Xfer;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1786
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1787 DEFVAR_INT ("canna-key-control-up", &canna_key_Cntrl_Up /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1788
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1789 */ );
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1790 canna_key_Cntrl_Up = IROHA_KEY_Cntrl_Up;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1791
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1792 DEFVAR_INT ("canna-key-control-left", &canna_key_Cntrl_Left /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1793
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1794 */ );
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1795 canna_key_Cntrl_Left = IROHA_KEY_Cntrl_Left;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1796
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1797 DEFVAR_INT ("canna-key-control-right", &canna_key_Cntrl_Right /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1798
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1799 */ );
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1800 canna_key_Cntrl_Right = IROHA_KEY_Cntrl_Right;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1801
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1802 DEFVAR_INT ("canna-key-control-down", &canna_key_Cntrl_Down /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1803
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1804 */ );
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1805 canna_key_Cntrl_Down = IROHA_KEY_Cntrl_Down;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1806
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1807 Fprovide (intern ("CANNA"));
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1808 }
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1809
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1810 #if 0
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1811 #ifdef HAVE_SHLIB
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1812 void unload_canna_api (void);
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1813 void
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1814 unload_canna_api (void)
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1815 {
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1816 /* We don't need to do anything here in the sample case. However, if you
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1817 create any new types with INIT_LRECORD_IMPLEMENTATION (sample_type), then
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1818 UNDEF_LRECORD_IMPLEMENTATION (sample_type) must appear here. Also, any
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1819 symbols declared with DEFSYMBOL (Qsample_var), or one of its variants,
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1820 must have a corresponding unstaticpro_nodump (&Qsample_var) here. */
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1821 }
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1822 #endif
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1823 #endif
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1824
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1825 #ifdef CANNA_MULE
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1826
3071
a80f978d8342 [xemacs-hg @ 2005-11-16 07:14:13 by stephent]
stephent
parents: 3010
diff changeset
1827 /* Return the number of characters in an EUC-JP string. */
3010
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1828 static int
3071
a80f978d8342 [xemacs-hg @ 2005-11-16 07:14:13 by stephent]
stephent
parents: 3010
diff changeset
1829 euc_jp_num_chars (unsigned char *p, int l)
3010
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1830 {
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1831 unsigned char ch, *cp = p;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1832 int len = 0;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1833
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1834 while ((cp < p + l) && (ch = *cp))
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1835 {
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1836 if ((unsigned char) ch == ISO_CODE_SS2)
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1837 {
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1838 len++;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1839 cp += 2;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1840 }
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1841 else if ((unsigned char) ch == ISO_CODE_SS3)
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1842 {
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1843 len++;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1844 cp += 3;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1845 }
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1846 else if (ch & 0x80)
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1847 {
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1848 len++;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1849 cp += 2;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1850 }
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1851 else
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1852 {
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1853 len++;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1854 cp++;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1855 }
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1856 }
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1857 return (len);
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1858 }
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1859
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1860 /* count number of characters */
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1861 static void
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1862 count_char (unsigned char *p, int len, int pos, int rev,
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1863 Fixnum *clen, Fixnum *cpos, Fixnum *crev)
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1864 {
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1865 unsigned char *q = p;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1866
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1867 *clen = *cpos = *crev = 0;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1868 if (len == 0) return;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1869 while (q < p + pos)
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1870 {
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1871 (*clen)++;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1872 (*cpos)++;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1873 if (*q++ & 0x80) q++;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1874 }
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1875 while (q < p + pos + rev)
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1876 {
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1877 (*clen)++;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1878 (*crev)++;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1879 if (*q++ & 0x80) q++;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1880 }
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1881 while (q < p + len)
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1882 {
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1883 (*clen)++;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1884 if (*q++ & 0x80) q++;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1885 }
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1886 }
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1887 #endif /* CANNA_MULE */