annotate modules/canna/canna_api.c @ 5940:c608d4b0b75e cygwin64 tip

rescue lost branch from 64bit.backup
author Henry Thompson <ht@markup.co.uk>
date Thu, 16 Dec 2021 18:48:58 +0000
parents 56144c8593a8
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
4993
c0934cef10c6 convert some source files to utf-8
Ben Wing <ben@xemacs.org>
parents: 4981
diff changeset
1 /* CANNA interface -*- coding: utf-8 -*-
3010
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.
5201
11ed8768ac4f attempt to fix errors in canna_api.c
Ben Wing <ben@xemacs.org>
parents: 4993
diff changeset
5 Copyright (C) 2005, 2010 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
5402
308d34e9f07d Changed bulk of GPLv2 or later files identified by script
Mats Lidell <matsl@xemacs.org>
parents: 5201
diff changeset
9 XEmacs is free software: you can redistribute it and/or modify it
3010
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
5402
308d34e9f07d Changed bulk of GPLv2 or later files identified by script
Mats Lidell <matsl@xemacs.org>
parents: 5201
diff changeset
11 Free Software Foundation, either version 3 of the License, or (at your
308d34e9f07d Changed bulk of GPLv2 or later files identified by script
Mats Lidell <matsl@xemacs.org>
parents: 5201
diff changeset
12 option) any later version.
3010
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
5402
308d34e9f07d Changed bulk of GPLv2 or later files identified by script
Mats Lidell <matsl@xemacs.org>
parents: 5201
diff changeset
20 along with XEmacs. If not, see <http://www.gnu.org/licenses/>. */
3010
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
21
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
22 /* Synched up with: Mule 2.3. Not in FSF. */
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 /* 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
25 <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
26 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
27 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. (^^;;; as the
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
28 Japanese say. */
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
29
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
30 /*
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 Authors: Akira Kon (kon@uxd.fc.nec.co.jp)
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
33 Ichiro Hirakura (hirakura@uxd.fc.nec.co.jp)
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
34
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
35 Functions defined in this file are
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 (canna-key-proc key)
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
38 key: single STRING
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
39 RETURNS:
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
40 Length of converted string if no error occurs.
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
41 Error string if error occurs.
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
42 DESCRIPTION:
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
43 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
44 strings contain both well-formed string and a
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
45 intermediate result to show the translation
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
46 information to a user. converted strings are
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
47 stored in specific variables.
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
48
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
49 (canna-initialize)
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
50 RETURNS:
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
51 List of the following things:
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
52 - list of keys to toggle Japanese-mode
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
53 - error message
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
54 - list of warning messages
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
55 DESCRIPTION:
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
56 Initialize ``canna'', which is a kana-to-kanji
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
57 converter for XEmacs. The first arg
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
58 specifies if inserting space character between
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
59 BUNSETSU when candidates are displayed. The
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
60 second arg specifies server. The third arg
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
61 specifies a file which will be used as a
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
62 customization description. If nil is
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
63 specified for each arg, the default value will
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
64 be used.
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
65
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
66 (canna-finalize)
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
67 RETURNS:
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
68 list of warning messages
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
69 DESCRIPTION:
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
70 finalize ``canna'', which is a kana-to-kanji
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
71 converter for XEmacs. This cause to write
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
72 miscellaneous informations to kana-to-kanji
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
73 dictionary.
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
74
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
75 (canna-touroku-string string)
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
76 string:
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
77 String to register to a dictionary.
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
78 RETURNS:
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
79 The same thing returns as canna-key-proc does.
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
80 DESCRIPTION:
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
81 Register Kanji words into kana-to-kanji
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
82 conversion dictionary.
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
83
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
84 (canna-set-width width)
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
85 width:
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
86 Column width of the place where the candidates
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
87 of kana-to-kanji conversion will be shown.
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
88 RETURNS:
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
89 nil
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
90 DESCRIPTION:
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
91 Set status-line width information, which is
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
92 used to display kanji candidates.
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
93
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
94 (canna-change-mode num)
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
95 num:
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
96 The mode number of Canna.
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
97 RETURNS:
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
98 The same thing returns as canna-key-proc does.
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
99 DESCRIPTION:
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
100 Change Japanese pre-edit mode.
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
101
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
102 (canna-store-yomi yomi roma)
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
103 yomi:
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
104 ``Yomi'' to be stored.
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
105 roma:
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
106 ``Romaji'' which corresponds to the ``Yomi''.
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
107 RETURNS:
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
108 The same thing returns as canna-key-proc does.
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
109 DESCRIPTION:
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
110 Store yomi characters as a YOMI of
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
111 kana-to-kanji conversion.
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
112
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
113 (canna-do-function num ch)
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
114 num:
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
115 A function number to be called.
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
116 ch:
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
117 A character will be specified in order to feed
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
118 the character to the function if the function
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
119 needs a input character.
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
120 RETURNS:
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
121 The same thing returns as canna-key-proc does.
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
122 DESCRIPTION:
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
123 Do specified function at current mode.
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
124
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
125 (canna-parse string)
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
126 string:
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
127 To be parsed.
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
128 RETURNS:
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
129 List of warning messages.
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
130 DESCRIPTION:
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
131 Parse customize string.
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
132
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
133 (canna-query-mode)
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
134 RETURNS:
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
135 A string which indicate the current mode.
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
136 DESCRIPTION:
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
137 Get current mode string.
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
138
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
139 Functions below are used for KKCP compatible library. These
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
140 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
141 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
142 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
143
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
144 (canna-henkan-begin)
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
145 (canna-henkan-next)
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
146 (canna-bunsetu-henkou)
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
147 (canna-henkan-kakutei)
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
148 (canna-henkan-end)
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
149 (canna-henkan-quit)
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
150
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
151 */
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 #include <config.h>
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
154 #include "lisp.h"
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
155 #ifdef HAVE_SHLIB
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
156 #include "emodules.h"
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
157 #endif
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
158
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
159 #include "buffer.h"
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
160 #include "file-coding.h"
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
161
3830
e58f4b9ab1ad [xemacs-hg @ 2007-02-15 16:11:52 by stephent]
stephent
parents: 3071
diff changeset
162 /* 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
163 #### Is the IROHA_BC #define needed? */
3010
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
164 #define IROHA_BC
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
165 #include "canna/jrkanji.h"
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
166 #include "canna/RK.h"
3830
e58f4b9ab1ad [xemacs-hg @ 2007-02-15 16:11:52 by stephent]
stephent
parents: 3071
diff changeset
167
e58f4b9ab1ad [xemacs-hg @ 2007-02-15 16:11:52 by stephent]
stephent
parents: 3071
diff changeset
168 /* #### These shouldn't be needed any more. */
3010
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
169 extern char *jrKanjiError;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
170 extern int (*jrBeepFunc) (void);
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
171
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
172 /* #### is this global really necessary? */
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
173 #define KEYTOSTRSIZE 2048
3071
a80f978d8342 [xemacs-hg @ 2005-11-16 07:14:13 by stephent]
stephent
parents: 3010
diff changeset
174 static Extbyte key_buffer[KEYTOSTRSIZE];
3010
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
175
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
176 static int canna_empty_info, canna_through_info;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
177 static int canna_underline;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
178 static int canna_inhibit_hankakukana;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
179
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
180 static Lisp_Object Vcanna_kakutei_string;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
181 static Lisp_Object Vcanna_kakutei_yomi;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
182 static Lisp_Object Vcanna_kakutei_romaji;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
183 static Lisp_Object Vcanna_henkan_string;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
184 static Fixnum canna_henkan_length;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
185 static Fixnum canna_henkan_revPos;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
186 static Fixnum canna_henkan_revLen;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
187 static Lisp_Object Vcanna_ichiran_string;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
188 static Fixnum canna_ichiran_length;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
189 static Fixnum canna_ichiran_revPos;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
190 static Fixnum canna_ichiran_revLen;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
191 static Lisp_Object Vcanna_mode_string;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
192
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
193 static int IRCP_context;
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 Lisp_Object storeResults (char *, int, jrKanjiStatus *);
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
196 static Lisp_Object kanjiYomiList (int, int);
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
197 static Lisp_Object CANNA_mode_keys (void);
3071
a80f978d8342 [xemacs-hg @ 2005-11-16 07:14:13 by stephent]
stephent
parents: 3010
diff changeset
198 static Lisp_Object Qeuc_jp;
a80f978d8342 [xemacs-hg @ 2005-11-16 07:14:13 by stephent]
stephent
parents: 3010
diff changeset
199
4953
304aebb79cd3 function renamings to track names of char typedefs
Ben Wing <ben@xemacs.org>
parents: 4759
diff changeset
200 #define make_euc_string(p, len) make_extstring ((Extbyte *) p, len, Qeuc_jp)
304aebb79cd3 function renamings to track names of char typedefs
Ben Wing <ben@xemacs.org>
parents: 4759
diff changeset
201 #define build_euc_string(p) build_extstring ((Extbyte *) p, Qeuc_jp)
3010
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
202
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
203 #ifdef CANNA_MULE
3071
a80f978d8342 [xemacs-hg @ 2005-11-16 07:14:13 by stephent]
stephent
parents: 3010
diff changeset
204 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
205 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
206 Fixnum *);
3010
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
207 #endif
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
208
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
209 /* Lisp functions definition */
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 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
212 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
213 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
214 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
215 variables.
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
216 */
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
217 (ch))
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 jrKanjiStatus ks;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
220 int len;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
221
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
222 CHECK_CHAR_COERCE_INT (ch);
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
223 len = jrKanjiString (0, XCHAR (ch), key_buffer, KEYTOSTRSIZE, &ks);
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
224 return storeResults (key_buffer, len, &ks);
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
225 }
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
226
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
227 static Lisp_Object
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
228 storeResults (char *buf, int len, jrKanjiStatus *ks)
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
229 {
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
230 Lisp_Object val = Qnil;
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 if (len < 0)
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
233 { /* Error detected */
3071
a80f978d8342 [xemacs-hg @ 2005-11-16 07:14:13 by stephent]
stephent
parents: 3010
diff changeset
234 val = build_euc_string (jrKanjiError);
3010
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
235 }
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
236 else
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
237 {
4993
c0934cef10c6 convert some source files to utf-8
Ben Wing <ben@xemacs.org>
parents: 4981
diff changeset
238 /* 確定した文字列 (the confirmed string) */
3071
a80f978d8342 [xemacs-hg @ 2005-11-16 07:14:13 by stephent]
stephent
parents: 3010
diff changeset
239 Vcanna_kakutei_string = make_euc_string (buf, len);
5581
56144c8593a8 Mechanically change INT to FIXNUM in our sources.
Aidan Kehoe <kehoea@parhasard.net>
parents: 5402
diff changeset
240 val = make_fixnum (len);
4993
c0934cef10c6 convert some source files to utf-8
Ben Wing <ben@xemacs.org>
parents: 4981
diff changeset
241 /* 確定した文字列の読みの情報...
3010
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
242 (info about the reading of the confirmed string) */
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
243 Vcanna_kakutei_yomi = Vcanna_kakutei_romaji = Qnil;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
244 if (ks->info & KanjiYomiInfo)
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
245 {
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
246 char *p = buf + len + 1;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
247 int yomilen = strlen (p);
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
248
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
249 if (len + yomilen + 1 < KEYTOSTRSIZE)
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 int yomilen2;
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 Vcanna_kakutei_yomi =
4993
c0934cef10c6 convert some source files to utf-8
Ben Wing <ben@xemacs.org>
parents: 4981
diff changeset
254 make_euc_string (p, yomilen); /* 読み (reading) */
3010
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
255 p += yomilen + 1;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
256 yomilen2 = strlen (p);
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
257 if (len + yomilen + yomilen2 + 2 < KEYTOSTRSIZE)
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
258 {
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
259 Vcanna_kakutei_romaji =
3071
a80f978d8342 [xemacs-hg @ 2005-11-16 07:14:13 by stephent]
stephent
parents: 3010
diff changeset
260 make_euc_string (p, yomilen2);
4993
c0934cef10c6 convert some source files to utf-8
Ben Wing <ben@xemacs.org>
parents: 4981
diff changeset
261 /* ローマ字 (romanization) */
3010
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
262 }
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
263 }
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
4993
c0934cef10c6 convert some source files to utf-8
Ben Wing <ben@xemacs.org>
parents: 4981
diff changeset
267 /* 候補表示の文字列です。
3010
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
268 (string for displaying candidate translations) */
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
269 Vcanna_henkan_string = Qnil;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
270 if (ks->length >= 0)
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
271 {
3071
a80f978d8342 [xemacs-hg @ 2005-11-16 07:14:13 by stephent]
stephent
parents: 3010
diff changeset
272 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
273 #ifndef CANNA_MULE
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
274 canna_henkan_length = ks->length;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
275 canna_henkan_revPos = ks->revPos;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
276 canna_henkan_revLen = ks->revLen;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
277 #else /* CANNA_MULE */
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
278 if (canna_underline)
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
279 {
3071
a80f978d8342 [xemacs-hg @ 2005-11-16 07:14:13 by stephent]
stephent
parents: 3010
diff changeset
280 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
281 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
282 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
283 ks->revLen);
3010
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
284 }
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
285 else
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 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
288 &canna_henkan_length, &canna_henkan_revPos,
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
289 &canna_henkan_revLen);
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
290 }
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
291 #endif /* CANNA_MULE */
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
4993
c0934cef10c6 convert some source files to utf-8
Ben Wing <ben@xemacs.org>
parents: 4981
diff changeset
294 /* 一覧の情報 (information about the echo area menu) */
3010
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
295 Vcanna_ichiran_string = Qnil;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
296 if (ks->info & KanjiGLineInfo && ks->gline.length >= 0)
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
297 {
3071
a80f978d8342 [xemacs-hg @ 2005-11-16 07:14:13 by stephent]
stephent
parents: 3010
diff changeset
298 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
299 ks->gline.length);
3010
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
300 #ifndef CANNA_MULE
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
301 canna_ichiran_length = ks->gline.length;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
302 canna_ichiran_revPos = ks->gline.revPos;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
303 canna_ichiran_revLen = ks->gline.revLen;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
304 #else /* CANNA_MULE */
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
305 count_char (ks->gline.line, ks->gline.length,
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
306 ks->gline.revPos, ks->gline.revLen,
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
307 &canna_ichiran_length,
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
308 &canna_ichiran_revPos, &canna_ichiran_revLen);
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
309 #endif /* CANNA_MULE */
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
310 }
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
311
4993
c0934cef10c6 convert some source files to utf-8
Ben Wing <ben@xemacs.org>
parents: 4981
diff changeset
312 /* モードの情報 (mode information) */
3010
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
313 Vcanna_mode_string = Qnil;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
314 if (ks->info & KanjiModeInfo)
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
315 {
3071
a80f978d8342 [xemacs-hg @ 2005-11-16 07:14:13 by stephent]
stephent
parents: 3010
diff changeset
316 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
317 }
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
318
4993
c0934cef10c6 convert some source files to utf-8
Ben Wing <ben@xemacs.org>
parents: 4981
diff changeset
319 /* その他の情報 (other information) */
3010
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
320 canna_empty_info = (ks->info & KanjiEmptyInfo) ? 1 : 0;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
321 canna_through_info = (ks->info & KanjiThroughInfo) ? 1 : 0;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
322 }
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
323
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
324 return val;
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
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
327 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
328 This function sets the clause separator.
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
329 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
330 No separator will be used otherwise.
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
331 */
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
332 (num))
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
333 {
4042
f9be867eb83e [xemacs-hg @ 2007-06-29 08:00:58 by stephent]
stephent
parents: 3830
diff changeset
334 /* This is actually a Boolean! */
4993
c0934cef10c6 convert some source files to utf-8
Ben Wing <ben@xemacs.org>
parents: 4981
diff changeset
335 char *kugiri; /* 文節区切りをするか? (display clause separator?) */
3010
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
336
4042
f9be867eb83e [xemacs-hg @ 2007-06-29 08:00:58 by stephent]
stephent
parents: 3830
diff changeset
337 kugiri = NILP (num) ? (char *) 0 : (char *) 1;
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 jrKanjiControl (0, KC_SETBUNSETSUKUGIRI, kugiri);
3010
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
340
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
341 return Qnil;
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
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
344 /* For whatever reason, calling Fding directly from libCanna loses */
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
345 static int
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
346 call_Fding (void)
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
347 {
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
348 Fding (Qnil, Qnil, Qnil);
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
349 return 0;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
350 }
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
351
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
352 DEFUN ("canna-initialize", Fcanna_initialize, 0, 3, 0, /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
353 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
354 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
355 candidates are displayed.
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
356 The second arg specifies server.
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
357 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
358 description.
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
359 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
360 */
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
361 (num, server, rcfile))
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 Lisp_Object val;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
364 int res;
3071
a80f978d8342 [xemacs-hg @ 2005-11-16 07:14:13 by stephent]
stephent
parents: 3010
diff changeset
365 char **p, **q;
3010
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
366
4042
f9be867eb83e [xemacs-hg @ 2007-06-29 08:00:58 by stephent]
stephent
parents: 3830
diff changeset
367 /* This is actually a Boolean! */
4993
c0934cef10c6 convert some source files to utf-8
Ben Wing <ben@xemacs.org>
parents: 4981
diff changeset
368 char *kugiri; /* 文節区切りをするか? (display clause separator?) */
3010
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
369
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
370 IRCP_context = -1;
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 if (NILP (num))
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
373 {
4042
f9be867eb83e [xemacs-hg @ 2007-06-29 08:00:58 by stephent]
stephent
parents: 3830
diff changeset
374 kugiri = (char *) 1;
3010
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
375 }
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
376 else
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
377 {
5581
56144c8593a8 Mechanically change INT to FIXNUM in our sources.
Aidan Kehoe <kehoea@parhasard.net>
parents: 5402
diff changeset
378 CHECK_FIXNUM (num);
56144c8593a8 Mechanically change INT to FIXNUM in our sources.
Aidan Kehoe <kehoea@parhasard.net>
parents: 5402
diff changeset
379 kugiri = (XFIXNUM (num) == 1) ? (char *) 1 : (char *) 0;
3010
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
380 }
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
381
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
382 if (NILP (server))
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 jrKanjiControl (0, KC_SETSERVERNAME, (char *) 0);
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 else
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 CHECK_STRING (server);
3071
a80f978d8342 [xemacs-hg @ 2005-11-16 07:14:13 by stephent]
stephent
parents: 3010
diff changeset
389 jrKanjiControl (0, KC_SETSERVERNAME,
a80f978d8342 [xemacs-hg @ 2005-11-16 07:14:13 by stephent]
stephent
parents: 3010
diff changeset
390 /* !!#### Check encoding */
4981
4aebb0131297 Cleanups/renaming of EXTERNAL_TO_C_STRING and friends
Ben Wing <ben@xemacs.org>
parents: 4953
diff changeset
391 LISP_STRING_TO_EXTERNAL (server, Qnative));
3010
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
392 }
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
393
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
394 if (NILP (rcfile))
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 jrKanjiControl (0, KC_SETINITFILENAME, (char *) 0);
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 else
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 CHECK_STRING (rcfile);
3071
a80f978d8342 [xemacs-hg @ 2005-11-16 07:14:13 by stephent]
stephent
parents: 3010
diff changeset
401 jrKanjiControl (0, KC_SETINITFILENAME,
4981
4aebb0131297 Cleanups/renaming of EXTERNAL_TO_C_STRING and friends
Ben Wing <ben@xemacs.org>
parents: 4953
diff changeset
402 LISP_STRING_TO_EXTERNAL (rcfile, Qfile_name));
3010
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
403 }
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
404
3071
a80f978d8342 [xemacs-hg @ 2005-11-16 07:14:13 by stephent]
stephent
parents: 3010
diff changeset
405 {
a80f978d8342 [xemacs-hg @ 2005-11-16 07:14:13 by stephent]
stephent
parents: 3010
diff changeset
406 char **warning = (char **) 0;
a80f978d8342 [xemacs-hg @ 2005-11-16 07:14:13 by stephent]
stephent
parents: 3010
diff changeset
407 res = jrKanjiControl (0, KC_INITIALIZE, (char *) &warning);
a80f978d8342 [xemacs-hg @ 2005-11-16 07:14:13 by stephent]
stephent
parents: 3010
diff changeset
408 val = Qnil;
a80f978d8342 [xemacs-hg @ 2005-11-16 07:14:13 by stephent]
stephent
parents: 3010
diff changeset
409 if (warning)
a80f978d8342 [xemacs-hg @ 2005-11-16 07:14:13 by stephent]
stephent
parents: 3010
diff changeset
410 {
a80f978d8342 [xemacs-hg @ 2005-11-16 07:14:13 by stephent]
stephent
parents: 3010
diff changeset
411 for (p = q = warning ; *q ; q++)
a80f978d8342 [xemacs-hg @ 2005-11-16 07:14:13 by stephent]
stephent
parents: 3010
diff changeset
412 ;
a80f978d8342 [xemacs-hg @ 2005-11-16 07:14:13 by stephent]
stephent
parents: 3010
diff changeset
413 while (p < q)
a80f978d8342 [xemacs-hg @ 2005-11-16 07:14:13 by stephent]
stephent
parents: 3010
diff changeset
414 {
a80f978d8342 [xemacs-hg @ 2005-11-16 07:14:13 by stephent]
stephent
parents: 3010
diff changeset
415 q--;
a80f978d8342 [xemacs-hg @ 2005-11-16 07:14:13 by stephent]
stephent
parents: 3010
diff changeset
416 val = Fcons (build_euc_string (*q), val);
a80f978d8342 [xemacs-hg @ 2005-11-16 07:14:13 by stephent]
stephent
parents: 3010
diff changeset
417 }
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 val = Fcons (val, Qnil);
a80f978d8342 [xemacs-hg @ 2005-11-16 07:14:13 by stephent]
stephent
parents: 3010
diff changeset
420 }
3010
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
421
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
422 if (res == -1)
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
423 {
3071
a80f978d8342 [xemacs-hg @ 2005-11-16 07:14:13 by stephent]
stephent
parents: 3010
diff changeset
424 val = Fcons (build_euc_string (jrKanjiError), val);
4993
c0934cef10c6 convert some source files to utf-8
Ben Wing <ben@xemacs.org>
parents: 4981
diff changeset
425 /* イニシャライズで失敗した場合。 (on initialization failure) */
3010
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
426 return Fcons (Qnil, val);
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
427 }
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
428 else
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 jrBeepFunc = call_Fding;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
431
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
432 #ifdef KC_SETAPPNAME
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
433 #ifndef CANNA_MULE
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
434 jrKanjiControl (0, KC_SETAPPNAME, "nemacs");
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
435 #else /* CANNA_MULE */
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
436 jrKanjiControl (0, KC_SETAPPNAME, "mule");
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
437 #endif /* CANNA_MULE */
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
438 #endif /* KC_SETAPPNAME */
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
439
4042
f9be867eb83e [xemacs-hg @ 2007-06-29 08:00:58 by stephent]
stephent
parents: 3830
diff changeset
440 jrKanjiControl (0, KC_SETBUNSETSUKUGIRI, kugiri);
3010
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
441 jrKanjiControl (0, KC_SETWIDTH, (char *) 78);
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
442 #ifndef CANNA_MULE
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
443 jrKanjiControl (0, KC_INHIBITHANKAKUKANA, (char *) 1);
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
444 #else
4993
c0934cef10c6 convert some source files to utf-8
Ben Wing <ben@xemacs.org>
parents: 4981
diff changeset
445 /* mule だったら半角カタカナも使える
3010
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
446 (Mule can use half-width katakana) */
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
447 if (canna_inhibit_hankakukana)
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
448 jrKanjiControl (0, KC_INHIBITHANKAKUKANA, (char *) 1);
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
449 #endif
4993
c0934cef10c6 convert some source files to utf-8
Ben Wing <ben@xemacs.org>
parents: 4981
diff changeset
450 jrKanjiControl (0, KC_YOMIINFO, (char *) 2); /* ※2: ローマ字まで返す
3010
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
451 (*2: return to
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
452 romanized form) */
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
453 val = Fcons (Qnil, val);
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
454 return Fcons (CANNA_mode_keys (), val);
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
455 }
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
456 }
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
457
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
458 DEFUN ("canna-finalize", Fcanna_finalize, 0, 0, 0, /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
459 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
460 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
461 */
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
462 ())
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 Lisp_Object val;
3071
a80f978d8342 [xemacs-hg @ 2005-11-16 07:14:13 by stephent]
stephent
parents: 3010
diff changeset
465 char **p;
a80f978d8342 [xemacs-hg @ 2005-11-16 07:14:13 by stephent]
stephent
parents: 3010
diff changeset
466 char **warning = (char **) 0;
3010
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
467
3071
a80f978d8342 [xemacs-hg @ 2005-11-16 07:14:13 by stephent]
stephent
parents: 3010
diff changeset
468 jrKanjiControl (0, KC_FINALIZE, (char *) &warning);
3010
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 val = Qnil;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
471 if (warning)
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
472 {
3071
a80f978d8342 [xemacs-hg @ 2005-11-16 07:14:13 by stephent]
stephent
parents: 3010
diff changeset
473 for (p = warning ; *p; p++)
3010
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
474 {
3071
a80f978d8342 [xemacs-hg @ 2005-11-16 07:14:13 by stephent]
stephent
parents: 3010
diff changeset
475 /* !!#### This is almost certainly wrong; `canna-initialize
a80f978d8342 [xemacs-hg @ 2005-11-16 07:14:13 by stephent]
stephent
parents: 3010
diff changeset
476 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
477 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
478 val = Fcons (build_euc_string (*p), val);
3010
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
479 }
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
480 }
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
481 val = Fcons (val, Qnil);
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
482 IRCP_context = -1;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
483 return val;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
484 }
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
485
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
486 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
487 Register Kanji words into kana-to-kanji conversion dictionary.
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 (str))
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
490 {
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
491 jrKanjiStatusWithValue ksv;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
492 jrKanjiStatus ks;
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 CHECK_STRING (str);
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
495 ksv.buffer = (unsigned char *) key_buffer;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
496 ksv.bytes_buffer = KEYTOSTRSIZE;
3071
a80f978d8342 [xemacs-hg @ 2005-11-16 07:14:13 by stephent]
stephent
parents: 3010
diff changeset
497 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
498 ksv.ks = &ks;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
499 jrKanjiControl (0, KC_DEFINEKANJI, (char *)&ksv);
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
500 return storeResults (key_buffer, ksv.val, ksv.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
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
503 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
504 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
505 kanji candidates.
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
506 */
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
507 (num))
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
508 {
5581
56144c8593a8 Mechanically change INT to FIXNUM in our sources.
Aidan Kehoe <kehoea@parhasard.net>
parents: 5402
diff changeset
509 CHECK_FIXNUM (num);
3010
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
510
5581
56144c8593a8 Mechanically change INT to FIXNUM in our sources.
Aidan Kehoe <kehoea@parhasard.net>
parents: 5402
diff changeset
511 jrKanjiControl (0, KC_SETWIDTH, (char *) XFIXNUM (num));
3010
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
512 return Qnil;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
513 }
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 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
516 Change Japanese pre-edit mode.
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
517 */
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
518 (num))
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
519 {
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
520 jrKanjiStatusWithValue ksv;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
521 jrKanjiStatus ks;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
522
5581
56144c8593a8 Mechanically change INT to FIXNUM in our sources.
Aidan Kehoe <kehoea@parhasard.net>
parents: 5402
diff changeset
523 CHECK_FIXNUM (num);
3010
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
524
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
525 ksv.buffer = (unsigned char *) key_buffer;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
526 ksv.bytes_buffer = KEYTOSTRSIZE;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
527 ksv.ks = &ks;
5581
56144c8593a8 Mechanically change INT to FIXNUM in our sources.
Aidan Kehoe <kehoea@parhasard.net>
parents: 5402
diff changeset
528 ksv.val = XFIXNUM (num);
3010
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
529 jrKanjiControl (0, KC_CHANGEMODE, (char *)&ksv);
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
530 return storeResults (key_buffer, ksv.val, ksv.ks);
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
531 }
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 static Lisp_Object
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
534 CANNA_mode_keys (void)
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
535 {
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
536 #define CANNAWORKBUFSIZE 32
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
537 char xxx[CANNAWORKBUFSIZE];
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
538 Lisp_Object val;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
539 int i, n;
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 n = jrKanjiControl (0, KC_MODEKEYS, xxx);
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
542 val = Qnil;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
543 for (i = n ; i > 0 ;)
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
544 {
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
545 --i;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
546 /* !!#### something fucked here */
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
547 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
548 }
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
549 return val;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
550 }
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
551
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
552 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
553 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
554 */
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
555 (yomi, roma))
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 jrKanjiStatusWithValue ksv;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
558 jrKanjiStatus ks;
3071
a80f978d8342 [xemacs-hg @ 2005-11-16 07:14:13 by stephent]
stephent
parents: 3010
diff changeset
559 Extbyte *ext;
3010
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
560
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
561 CHECK_STRING (yomi);
4981
4aebb0131297 Cleanups/renaming of EXTERNAL_TO_C_STRING and friends
Ben Wing <ben@xemacs.org>
parents: 4953
diff changeset
562 ext = LISP_STRING_TO_EXTERNAL (yomi, Qeuc_jp);
3071
a80f978d8342 [xemacs-hg @ 2005-11-16 07:14:13 by stephent]
stephent
parents: 3010
diff changeset
563 strncpy (key_buffer, ext, sizeof (key_buffer));
a80f978d8342 [xemacs-hg @ 2005-11-16 07:14:13 by stephent]
stephent
parents: 3010
diff changeset
564 key_buffer[sizeof (key_buffer) - 1] = '\0';
3010
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
565 ks.length = strlen (key_buffer);
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
566
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
567 if (NILP (roma))
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 ks.mode = 0;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
570 }
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
571 else
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
572 {
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
573 CHECK_STRING (roma);
4981
4aebb0131297 Cleanups/renaming of EXTERNAL_TO_C_STRING and friends
Ben Wing <ben@xemacs.org>
parents: 4953
diff changeset
574 ext = LISP_STRING_TO_EXTERNAL (roma, Qeuc_jp);
3071
a80f978d8342 [xemacs-hg @ 2005-11-16 07:14:13 by stephent]
stephent
parents: 3010
diff changeset
575 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
576 strncpy (key_buffer + ks.length + 1, ext,
a80f978d8342 [xemacs-hg @ 2005-11-16 07:14:13 by stephent]
stephent
parents: 3010
diff changeset
577 sizeof (key_buffer) - ks.length - 1);
a80f978d8342 [xemacs-hg @ 2005-11-16 07:14:13 by stephent]
stephent
parents: 3010
diff changeset
578 key_buffer[sizeof (key_buffer) - 1] = '\0';
3010
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
579 }
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 ks.echoStr = (unsigned char *) key_buffer;
4993
c0934cef10c6 convert some source files to utf-8
Ben Wing <ben@xemacs.org>
parents: 4981
diff changeset
582 ksv.buffer = (unsigned char *) key_buffer; /* 返値用 (return value) */
3010
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
583 ksv.bytes_buffer = KEYTOSTRSIZE;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
584 ksv.ks = &ks;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
585
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
586 jrKanjiControl (0, KC_STOREYOMI, (char *)&ksv);
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 return storeResults (key_buffer, ksv.val, ksv.ks);
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
589 }
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
590
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
591 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
592 Do specified function at current mode.
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 (num, ch))
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 jrKanjiStatusWithValue ksv;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
597 jrKanjiStatus ks;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
598
5581
56144c8593a8 Mechanically change INT to FIXNUM in our sources.
Aidan Kehoe <kehoea@parhasard.net>
parents: 5402
diff changeset
599 CHECK_FIXNUM (num);
3010
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
600
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
601 if (NILP (ch))
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
602 {
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
603 *key_buffer = '@';
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
604 }
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
605 else
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_CHAR (ch);
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
608 *key_buffer = XCHAR (ch);
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
609 }
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 ksv.buffer = (unsigned char *) key_buffer;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
612 ksv.bytes_buffer = KEYTOSTRSIZE;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
613 ksv.ks = &ks;
5581
56144c8593a8 Mechanically change INT to FIXNUM in our sources.
Aidan Kehoe <kehoea@parhasard.net>
parents: 5402
diff changeset
614 ksv.val = XFIXNUM (num);
3010
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
615 jrKanjiControl (0, KC_DO, (char *) &ksv);
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
616 return storeResults (key_buffer, ksv.val, ksv.ks);
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 DEFUN ("canna-parse", Fcanna_parse, 1, 1, 0, /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
620 Parse customize string.
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
621 */
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
622 (str))
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
623 {
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
624 Lisp_Object val;
3071
a80f978d8342 [xemacs-hg @ 2005-11-16 07:14:13 by stephent]
stephent
parents: 3010
diff changeset
625 Extbyte **p;
3010
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
626 int n;
3071
a80f978d8342 [xemacs-hg @ 2005-11-16 07:14:13 by stephent]
stephent
parents: 3010
diff changeset
627 Extbyte *ext;
3010
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
628
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
629 CHECK_STRING (str);
4981
4aebb0131297 Cleanups/renaming of EXTERNAL_TO_C_STRING and friends
Ben Wing <ben@xemacs.org>
parents: 4953
diff changeset
630 ext = LISP_STRING_TO_EXTERNAL (str, Qeuc_jp);
3071
a80f978d8342 [xemacs-hg @ 2005-11-16 07:14:13 by stephent]
stephent
parents: 3010
diff changeset
631 strncpy (key_buffer, ext, sizeof (key_buffer));
a80f978d8342 [xemacs-hg @ 2005-11-16 07:14:13 by stephent]
stephent
parents: 3010
diff changeset
632 key_buffer[sizeof (key_buffer) - 1] = '\0';
a80f978d8342 [xemacs-hg @ 2005-11-16 07:14:13 by stephent]
stephent
parents: 3010
diff changeset
633 p = (Extbyte **) key_buffer;
3010
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
634 n = jrKanjiControl (0, KC_PARSE, (char *) &p);
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
635 val = Qnil;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
636 while (n > 0)
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
637 {
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
638 n--;
3071
a80f978d8342 [xemacs-hg @ 2005-11-16 07:14:13 by stephent]
stephent
parents: 3010
diff changeset
639 val = Fcons (build_euc_string (p[n]), val);
3010
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
640 }
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
641 return val;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
642 }
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
643
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
644 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
645 Get current mode string.
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
646 */
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
647 ())
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 char buf[256];
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 jrKanjiControl (0, KC_QUERYMODE, buf);
3071
a80f978d8342 [xemacs-hg @ 2005-11-16 07:14:13 by stephent]
stephent
parents: 3010
diff changeset
652 return build_euc_string (buf);
3010
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
653 }
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 * Functions following this line are for KKCP interface compatible
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
657 * library. These functions may be used by MILK system.
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
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
660 #define RKBUFSIZE 1024
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
661
5201
11ed8768ac4f attempt to fix errors in canna_api.c
Ben Wing <ben@xemacs.org>
parents: 4993
diff changeset
662 static UExtbyte yomibuf[RKBUFSIZE];
3010
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
663 static short kugiri[RKBUFSIZE / 2];
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
664
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
665 static int
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
666 confirmContext (void)
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 if (IRCP_context < 0)
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 int context;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
671
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
672 if ((context = jrKanjiControl (0, KC_GETCONTEXT, (char *) 0)) == -1)
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
673 {
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
674 return 0;
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 IRCP_context = context;
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 return 1;
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
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
681 static int
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
682 byteLen (int bun, int len)
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 int i = 0, offset = 0, ch;
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 if (0 <= bun && bun < RKBUFSIZE)
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 offset = kugiri[bun];
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
689 }
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
690
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
691 while (len-- > 0 && (ch = (int) yomibuf[offset + i]))
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
692 {
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
693 i++;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
694 if (ch & 0x80)
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 i++;
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 return 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
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
702 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
703 Return the result of kana-to-kanji conversion.
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
704 Clause separator is set.
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 (yomi))
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
707 {
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
708 int nbun;
3071
a80f978d8342 [xemacs-hg @ 2005-11-16 07:14:13 by stephent]
stephent
parents: 3010
diff changeset
709 Extbyte *ext;
3010
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
710
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
711 CHECK_STRING (yomi);
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
712 if (confirmContext () == 0)
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 return Qnil;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
715 }
3071
a80f978d8342 [xemacs-hg @ 2005-11-16 07:14:13 by stephent]
stephent
parents: 3010
diff changeset
716
4981
4aebb0131297 Cleanups/renaming of EXTERNAL_TO_C_STRING and friends
Ben Wing <ben@xemacs.org>
parents: 4953
diff changeset
717 ext = LISP_STRING_TO_EXTERNAL (yomi, Qeuc_jp);
3071
a80f978d8342 [xemacs-hg @ 2005-11-16 07:14:13 by stephent]
stephent
parents: 3010
diff changeset
718 strncpy ((char *) yomibuf, ext, sizeof (yomibuf));
a80f978d8342 [xemacs-hg @ 2005-11-16 07:14:13 by stephent]
stephent
parents: 3010
diff changeset
719 yomibuf[sizeof (yomibuf) - 1] = '\0';
a80f978d8342 [xemacs-hg @ 2005-11-16 07:14:13 by stephent]
stephent
parents: 3010
diff changeset
720
5201
11ed8768ac4f attempt to fix errors in canna_api.c
Ben Wing <ben@xemacs.org>
parents: 4993
diff changeset
721 nbun = RkBgnBun (IRCP_context, (char *) yomibuf, strlen ((char *) yomibuf),
3010
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
722 (RK_XFER << RK_XFERBITS) | RK_KFER);
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
723
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
724 return kanjiYomiList (IRCP_context, nbun);
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
725 }
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
726
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
727 static Lisp_Object
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
728 kanjiYomiList (int context, int nbun)
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
729 {
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
730 Lisp_Object val, res = Qnil;
3071
a80f978d8342 [xemacs-hg @ 2005-11-16 07:14:13 by stephent]
stephent
parents: 3010
diff changeset
731 UExtbyte RkBuf[RKBUFSIZE];
3010
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
732 int len, i, total;
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 for (i = nbun ; i > 0 ; )
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
735 {
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
736 i--;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
737 RkGoTo (context, i);
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
738 len = RkGetKanji (context, RkBuf, RKBUFSIZE);
3071
a80f978d8342 [xemacs-hg @ 2005-11-16 07:14:13 by stephent]
stephent
parents: 3010
diff changeset
739 val = make_euc_string (RkBuf, len);
3010
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
740 len = RkGetYomi (context, RkBuf, RKBUFSIZE);
3071
a80f978d8342 [xemacs-hg @ 2005-11-16 07:14:13 by stephent]
stephent
parents: 3010
diff changeset
741 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
742 if (i < RKBUFSIZE / 2)
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 kugiri[i] = len;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
745 }
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
746 }
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
747 for (i = 0, total = 0 ; i < nbun ; i++)
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
748 {
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
749 int temp = kugiri[i];
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
750 kugiri[i] = total;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
751 total += temp;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
752 }
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
753 return res;
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
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
756 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
757 Return the list of candidates.
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
758 */
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
759 (bunsetsu))
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 int i, slen, len;
3071
a80f978d8342 [xemacs-hg @ 2005-11-16 07:14:13 by stephent]
stephent
parents: 3010
diff changeset
762 UExtbyte *p, RkBuf[RKBUFSIZE];
3010
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
763 Lisp_Object res = Qnil;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
764
5581
56144c8593a8 Mechanically change INT to FIXNUM in our sources.
Aidan Kehoe <kehoea@parhasard.net>
parents: 5402
diff changeset
765 CHECK_FIXNUM (bunsetsu);
3010
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
766 if (confirmContext () == 0)
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
767 {
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
768 return Qnil;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
769 }
5581
56144c8593a8 Mechanically change INT to FIXNUM in our sources.
Aidan Kehoe <kehoea@parhasard.net>
parents: 5402
diff changeset
770 RkGoTo (IRCP_context, XFIXNUM (bunsetsu));
3010
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
771 len = RkGetKanjiList (IRCP_context, RkBuf, RKBUFSIZE);
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
772 p = RkBuf;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
773 for (i = 0 ; i < len ; i++)
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
774 {
3071
a80f978d8342 [xemacs-hg @ 2005-11-16 07:14:13 by stephent]
stephent
parents: 3010
diff changeset
775 slen = strlen ((char *) p);
3010
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
776 if (NILP(res))
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
777 {
3071
a80f978d8342 [xemacs-hg @ 2005-11-16 07:14:13 by stephent]
stephent
parents: 3010
diff changeset
778 res = Fcons (make_euc_string (p, slen), Qnil);
3010
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
779 }
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
780 else
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
781 {
3071
a80f978d8342 [xemacs-hg @ 2005-11-16 07:14:13 by stephent]
stephent
parents: 3010
diff changeset
782 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
783 }
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
784 p += slen + 1;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
785 }
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
786 return res;
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
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
789 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
790 Specify the length of a clause.
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 (bunsetsu, bunlen))
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 int nbun, len;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
795
5581
56144c8593a8 Mechanically change INT to FIXNUM in our sources.
Aidan Kehoe <kehoea@parhasard.net>
parents: 5402
diff changeset
796 CHECK_FIXNUM (bunsetsu);
56144c8593a8 Mechanically change INT to FIXNUM in our sources.
Aidan Kehoe <kehoea@parhasard.net>
parents: 5402
diff changeset
797 CHECK_FIXNUM (bunlen);
3010
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
798
5581
56144c8593a8 Mechanically change INT to FIXNUM in our sources.
Aidan Kehoe <kehoea@parhasard.net>
parents: 5402
diff changeset
799 nbun = XFIXNUM (bunsetsu);
3010
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
800 if (confirmContext () == 0)
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 return Qnil;
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 RkGoTo (IRCP_context, nbun);
5581
56144c8593a8 Mechanically change INT to FIXNUM in our sources.
Aidan Kehoe <kehoea@parhasard.net>
parents: 5402
diff changeset
805 len = byteLen (nbun, XFIXNUM (bunlen));
3010
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
806 return kanjiYomiList (IRCP_context, RkResize (IRCP_context, len));
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
807 }
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
808
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
809 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
810 Select a candidate.
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 (bun, kouho))
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
813 {
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
814 int nbun, nkouho;
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 if (confirmContext () == 0)
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
817 {
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
818 return Qnil;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
819 }
5581
56144c8593a8 Mechanically change INT to FIXNUM in our sources.
Aidan Kehoe <kehoea@parhasard.net>
parents: 5402
diff changeset
820 nbun = XFIXNUM(bun);
3010
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
821 RkGoTo (IRCP_context, nbun);
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
822
5581
56144c8593a8 Mechanically change INT to FIXNUM in our sources.
Aidan Kehoe <kehoea@parhasard.net>
parents: 5402
diff changeset
823 nkouho = XFIXNUM(kouho);
3010
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
824 RkXfer (IRCP_context, nkouho);
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
825 return Qt;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
826 }
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 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
829 End conversion.
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 ())
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
832 {
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
833 if (confirmContext () == 0)
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 return Qnil;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
836 }
4993
c0934cef10c6 convert some source files to utf-8
Ben Wing <ben@xemacs.org>
parents: 4981
diff changeset
837 RkEndBun (IRCP_context, 1); /* 学習はいつでも行って良いものなのか?
3010
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
838 (is it OK to invoke learning function
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
839 at arbitrary times?) */
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
840 return Qt;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
841 }
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 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
844 Quit conversion.
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
845 */
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
846 ())
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
847 {
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
848 if (confirmContext () == 0)
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 return Qnil;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
851 }
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
852 RkEndBun (IRCP_context, 0);
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
853 return Qt;
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 /* variables below this line is constants of Canna */
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 static Fixnum canna_mode_AlphaMode;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
859 static Fixnum canna_mode_EmptyMode;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
860 static Fixnum canna_mode_KigoMode;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
861 static Fixnum canna_mode_YomiMode;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
862 static Fixnum canna_mode_JishuMode;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
863 static Fixnum canna_mode_TankouhoMode;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
864 static Fixnum canna_mode_IchiranMode;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
865 static Fixnum canna_mode_YesNoMode;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
866 static Fixnum canna_mode_OnOffMode;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
867 #ifdef CANNA_MODE_AdjustBunsetsuMode
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
868 static Fixnum canna_mode_AdjustBunsetsuMode;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
869 #endif
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
870 #ifdef CANNA_MODE_ChikujiYomiMode
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
871 static Fixnum canna_mode_ChikujiYomiMode;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
872 static Fixnum canna_mode_ChikujiTanMode;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
873 #endif
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
874
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
875 static Fixnum canna_mode_HenkanMode;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
876 #ifdef CANNA_MODE_HenkanNyuryokuMode
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
877 static Fixnum canna_mode_HenkanNyuryokuMode;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
878 #endif
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
879 #ifdef CANNA_MODE_ZenHiraHenkanMode
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
880 static Fixnum canna_mode_ZenHiraHenkanMode;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
881 #ifdef CANNA_MODE_HanHiraHenkanMode
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
882 static Fixnum canna_mode_HanHiraHenkanMode;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
883 #endif
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
884 static Fixnum canna_mode_ZenKataHenkanMode;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
885 static Fixnum canna_mode_HanKataHenkanMode;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
886 static Fixnum canna_mode_ZenAlphaHenkanMode;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
887 static Fixnum canna_mode_HanAlphaHenkanMode;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
888 #endif
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
889 static Fixnum canna_mode_ZenHiraKakuteiMode;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
890 #ifdef CANNA_MODE_HanHiraKakuteiMode
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
891 static Fixnum canna_mode_HanHiraKakuteiMode;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
892 #endif
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
893 static Fixnum canna_mode_ZenKataKakuteiMode;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
894 static Fixnum canna_mode_HanKataKakuteiMode;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
895 static Fixnum canna_mode_ZenAlphaKakuteiMode;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
896 static Fixnum canna_mode_HanAlphaKakuteiMode;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
897 static Fixnum canna_mode_HexMode;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
898 static Fixnum canna_mode_BushuMode;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
899 static Fixnum canna_mode_ExtendMode;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
900 static Fixnum canna_mode_RussianMode;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
901 static Fixnum canna_mode_GreekMode;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
902 static Fixnum canna_mode_LineMode;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
903 static Fixnum canna_mode_ChangingServerMode;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
904 static Fixnum canna_mode_HenkanMethodMode;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
905 static Fixnum canna_mode_DeleteDicMode;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
906 static Fixnum canna_mode_TourokuMode;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
907 static Fixnum canna_mode_TourokuEmptyMode;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
908 static Fixnum canna_mode_TourokuHinshiMode;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
909 static Fixnum canna_mode_TourokuDicMode;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
910 static Fixnum canna_mode_QuotedInsertMode;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
911 static Fixnum canna_mode_BubunMuhenkanMode;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
912 static Fixnum canna_mode_MountDicMode;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
913
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
914 static Fixnum canna_fn_SelfInsert;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
915 static Fixnum canna_fn_FunctionalInsert;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
916 static Fixnum canna_fn_QuotedInsert;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
917 static Fixnum canna_fn_JapaneseMode;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
918 static Fixnum canna_fn_AlphaMode;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
919 static Fixnum canna_fn_HenkanNyuryokuMode;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
920 static Fixnum canna_fn_Forward;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
921 static Fixnum canna_fn_Backward;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
922 static Fixnum canna_fn_Next;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
923 static Fixnum canna_fn_Prev;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
924 static Fixnum canna_fn_BeginningOfLine;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
925 static Fixnum canna_fn_EndOfLine;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
926 static Fixnum canna_fn_DeleteNext;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
927 static Fixnum canna_fn_DeletePrevious;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
928 static Fixnum canna_fn_KillToEndOfLine;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
929 static Fixnum canna_fn_Henkan;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
930 static Fixnum canna_fn_Kakutei;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
931 static Fixnum canna_fn_Extend;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
932 static Fixnum canna_fn_Shrink;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
933 #ifdef CANNA_FN_AdjustBunsetsu
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
934 static Fixnum canna_fn_AdjustBunsetsu;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
935 #endif
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
936 static Fixnum canna_fn_Quit;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
937 static Fixnum canna_fn_ConvertAsHex;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
938 static Fixnum canna_fn_ConvertAsBushu;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
939 static Fixnum canna_fn_KouhoIchiran;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
940 static Fixnum canna_fn_BubunMuhenkan;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
941 static Fixnum canna_fn_Zenkaku;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
942 static Fixnum canna_fn_Hankaku;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
943 static Fixnum canna_fn_ToUpper;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
944 static Fixnum canna_fn_Capitalize;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
945 static Fixnum canna_fn_ToLower;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
946 static Fixnum canna_fn_Hiragana;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
947 static Fixnum canna_fn_Katakana;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
948 static Fixnum canna_fn_Romaji;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
949 #ifdef CANNA_FN_BaseHiragana
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
950 static Fixnum canna_fn_BaseHiragana;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
951 static Fixnum canna_fn_BaseKatakana;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
952 static Fixnum canna_fn_BaseEisu;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
953 static Fixnum canna_fn_BaseZenkaku;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
954 static Fixnum canna_fn_BaseHankaku;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
955 static Fixnum canna_fn_BaseKana;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
956 static Fixnum canna_fn_BaseKakutei;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
957 static Fixnum canna_fn_BaseHenkan;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
958 static Fixnum canna_fn_BaseHiraKataToggle;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
959 static Fixnum canna_fn_BaseZenHanToggle;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
960 static Fixnum canna_fn_BaseKanaEisuToggle;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
961 static Fixnum canna_fn_BaseKakuteiHenkanToggle;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
962 static Fixnum canna_fn_BaseRotateForward;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
963 static Fixnum canna_fn_BaseRotateBackward;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
964 #endif
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
965 static Fixnum canna_fn_ExtendMode;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
966 static Fixnum canna_fn_Touroku;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
967 static Fixnum canna_fn_HexMode;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
968 static Fixnum canna_fn_BushuMode;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
969 static Fixnum canna_fn_KigouMode;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
970 #ifdef CANNA_FN_Mark
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
971 static Fixnum canna_fn_Mark;
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 #ifdef CANNA_FN_TemporalMode
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
974 static Fixnum canna_fn_TemporalMode;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
975 #endif
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
976
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
977 static Fixnum canna_key_Nfer;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
978 static Fixnum canna_key_Xfer;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
979 static Fixnum canna_key_Up;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
980 static Fixnum canna_key_Left;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
981 static Fixnum canna_key_Right;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
982 static Fixnum canna_key_Down;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
983 static Fixnum canna_key_Insert;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
984 static Fixnum canna_key_Rollup;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
985 static Fixnum canna_key_Rolldown;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
986 static Fixnum canna_key_Home;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
987 static Fixnum canna_key_Help;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
988 static Fixnum canna_key_KP_Key;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
989 static Fixnum canna_key_Shift_Nfer;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
990 static Fixnum canna_key_Shift_Xfer;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
991 static Fixnum canna_key_Shift_Up;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
992 static Fixnum canna_key_Shift_Left;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
993 static Fixnum canna_key_Shift_Right;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
994 static Fixnum canna_key_Shift_Down;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
995 static Fixnum canna_key_Cntrl_Nfer;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
996 static Fixnum canna_key_Cntrl_Xfer;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
997 static Fixnum canna_key_Cntrl_Up;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
998 static Fixnum canna_key_Cntrl_Left;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
999 static Fixnum canna_key_Cntrl_Right;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1000 static Fixnum canna_key_Cntrl_Down;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1001
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1002 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
1003 1996/6/7 */
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1004
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1005 /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1006 * 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
1007 * 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
1008 * 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
1009 * functions which must appear in the module source code.
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1010 * 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
1011 * 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
1012 * it is not present in the module.
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 * 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
1015 * 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
1016 * function will contain calls to DEFSUBR().
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1017 *
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1018 * 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
1019 * 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
1020 * 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
1021 *
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1022 * 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
1023 * 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
1024 * 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
1025 *
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1026 * 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
1027 * 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
1028 * 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
1029 * appear in this function.
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1030 *
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1031 * 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
1032 * 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
1033 * 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
1034 * 'vars_of_sample', and 'unload_sample'.
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1035 */
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1036
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1037 #if 0
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1038 void
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1039 modules_of_canna_api (void)
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1040 {
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1041 /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1042 * 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
1043 * 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
1044 * emodules_load ("dependent.ell", "canna2", "1.0.0");
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1045 */
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1046 }
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1047 #endif
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 void
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1050 syms_of_canna_api (void)
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1051 {
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1052 DEFSUBR (Fcanna_key_proc);
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1053 DEFSUBR (Fcanna_initialize);
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1054 DEFSUBR (Fcanna_finalize);
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1055 DEFSUBR (Fcanna_touroku_string);
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1056 DEFSUBR (Fcanna_set_width);
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1057 DEFSUBR (Fcanna_change_mode);
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1058 DEFSUBR (Fcanna_store_yomi);
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1059 DEFSUBR (Fcanna_do_function);
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1060 DEFSUBR (Fcanna_parse);
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1061 DEFSUBR (Fcanna_query_mode);
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1062 DEFSUBR (Fcanna_set_bunsetsu);
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1063
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1064 DEFSUBR (Fcanna_henkan_begin);
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1065 DEFSUBR (Fcanna_henkan_next);
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1066 DEFSUBR (Fcanna_bunsetu_henkou);
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1067 DEFSUBR (Fcanna_henkan_kakutei);
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1068 DEFSUBR (Fcanna_henkan_end);
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1069 DEFSUBR (Fcanna_henkan_quit);
3071
a80f978d8342 [xemacs-hg @ 2005-11-16 07:14:13 by stephent]
stephent
parents: 3010
diff changeset
1070
a80f978d8342 [xemacs-hg @ 2005-11-16 07:14:13 by stephent]
stephent
parents: 3010
diff changeset
1071 DEFSYMBOL (Qeuc_jp);
3010
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1072 }
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1073
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1074 void
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1075 vars_of_canna_api (void)
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1076 {
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1077 DEFVAR_LISP ("CANNA", &VCANNA); /* hir@nec, 1992.5.21 */
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1078 VCANNA = Qt; /* hir@nec, 1992.5.21 */
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1079
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1080 DEFVAR_LISP ("canna-kakutei-string", &Vcanna_kakutei_string /*
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 */ );
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1083 Vcanna_kakutei_string = Qnil;
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-kakutei-yomi", &Vcanna_kakutei_yomi /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1086
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 Vcanna_kakutei_yomi = Qnil;
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 DEFVAR_LISP ("canna-kakutei-romaji", &Vcanna_kakutei_romaji /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1091
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 Vcanna_kakutei_romaji = Qnil;
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 DEFVAR_LISP ("canna-henkan-string", &Vcanna_henkan_string /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1096
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 Vcanna_henkan_string = Qnil;
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 DEFVAR_INT ("canna-henkan-length", &canna_henkan_length /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1101
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 canna_henkan_length = 0;
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 DEFVAR_INT ("canna-henkan-revpos", &canna_henkan_revPos /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1106
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 canna_henkan_revPos = 0;
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 DEFVAR_INT ("canna-henkan-revlen", &canna_henkan_revLen /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1111
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 canna_henkan_revLen = 0;
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 DEFVAR_LISP ("canna-ichiran-string", &Vcanna_ichiran_string /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1116
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 Vcanna_ichiran_string = Qnil;
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 DEFVAR_INT ("canna-ichiran-length", &canna_ichiran_length /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1121
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 canna_ichiran_length = 0;
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 DEFVAR_INT ("canna-ichiran-revpos", &canna_ichiran_revPos /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1126
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 canna_ichiran_revPos = 0;
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 DEFVAR_INT ("canna-ichiran-revlen", &canna_ichiran_revLen /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1131
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 canna_ichiran_revLen = 0;
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 DEFVAR_LISP ("canna-mode-string", &Vcanna_mode_string /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1136
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 Vcanna_mode_string = Qnil;
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 DEFVAR_BOOL ("canna-empty-info", &canna_empty_info /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1141 For canna
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 canna_empty_info = 0;
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 DEFVAR_BOOL ("canna-through-info", &canna_through_info /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1146 For canna
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 canna_through_info = 0;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1149
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1150 DEFVAR_BOOL ("canna-underline", &canna_underline /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1151 For canna
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 canna_underline = 0;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1154
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1155 DEFVAR_BOOL ("canna-inhibit-hankakukana", &canna_inhibit_hankakukana /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1156 For canna
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 canna_inhibit_hankakukana = 0;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1159
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1160 DEFVAR_INT ("canna-mode-alpha-mode", &canna_mode_AlphaMode /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1161
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 canna_mode_AlphaMode = IROHA_MODE_AlphaMode;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1164
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1165 DEFVAR_INT ("canna-mode-empty-mode", &canna_mode_EmptyMode /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1166
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 canna_mode_EmptyMode = IROHA_MODE_EmptyMode;
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 DEFVAR_INT ("canna-mode-kigo-mode", &canna_mode_KigoMode /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1171
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 canna_mode_KigoMode = IROHA_MODE_KigoMode;
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 DEFVAR_INT ("canna-mode-yomi-mode", &canna_mode_YomiMode /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1176
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 canna_mode_YomiMode = IROHA_MODE_YomiMode;
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 DEFVAR_INT ("canna-mode-jishu-mode", &canna_mode_JishuMode /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1181
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 canna_mode_JishuMode = IROHA_MODE_JishuMode;
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 DEFVAR_INT ("canna-mode-tankouho-mode", &canna_mode_TankouhoMode /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1186
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 canna_mode_TankouhoMode = IROHA_MODE_TankouhoMode;
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 DEFVAR_INT ("canna-mode-ichiran-mode", &canna_mode_IchiranMode /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1191
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 canna_mode_IchiranMode = IROHA_MODE_IchiranMode;
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 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
1196
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 canna_mode_YesNoMode = IROHA_MODE_YesNoMode;
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 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
1201
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 canna_mode_OnOffMode = IROHA_MODE_OnOffMode;
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 #ifdef CANNA_MODE_AdjustBunsetsuMode
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1206 DEFVAR_INT ("canna-mode-adjust-bunsetsu-mode",
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1207 &canna_mode_AdjustBunsetsuMode /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1208
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 canna_mode_AdjustBunsetsuMode = CANNA_MODE_AdjustBunsetsuMode;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1211 #endif
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1212 #ifdef CANNA_MODE_ChikujiYomiMode
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1213 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
1214
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1215 */ );
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1216 canna_mode_ChikujiYomiMode = CANNA_MODE_ChikujiYomiMode;
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 DEFVAR_INT ("canna-mode-chikuji-bunsetsu-mode",
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1219 &canna_mode_ChikujiTanMode /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1220
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1221 */ );
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1222 canna_mode_ChikujiTanMode = CANNA_MODE_ChikujiTanMode;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1223 #endif
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1224
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1225 DEFVAR_INT ("canna-mode-henkan-mode", &canna_mode_HenkanMode /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1226
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1227 */ );
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1228 canna_mode_HenkanMode = IROHA_MODE_HenkanMode;
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 #ifdef CANNA_MODE_HenkanNyuryokuMode
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1231 DEFVAR_INT ("canna-mode-henkan-nyuuryoku-mode",
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1232 &canna_mode_HenkanNyuryokuMode /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1233
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 canna_mode_HenkanNyuryokuMode = CANNA_MODE_HenkanNyuryokuMode;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1236 #endif
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1237 #ifdef CANNA_MODE_ZenHiraHenkanMode
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1238 DEFVAR_INT ("canna-mode-zen-hira-henkan-mode",
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1239 &canna_mode_ZenHiraHenkanMode /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1240
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 canna_mode_ZenHiraHenkanMode = CANNA_MODE_ZenHiraHenkanMode;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1243 #ifdef CANNA_MODE_HanHiraHenkanMode
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1244 DEFVAR_INT ("canna-mode-han-hira-henkan-mode",
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1245 &canna_mode_HanHiraHenkanMode /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1246
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1247 */ );
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1248 canna_mode_HanHiraHenkanMode = CANNA_MODE_HanHiraHenkanMode;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1249 #endif
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1250 DEFVAR_INT ("canna-mode-zen-kata-henkan-mode",
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1251 &canna_mode_ZenKataHenkanMode /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1252
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1253 */ );
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1254 canna_mode_ZenKataHenkanMode = CANNA_MODE_ZenKataHenkanMode;
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 DEFVAR_INT ("canna-mode-han-kata-henkan-mode",
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1257 &canna_mode_HanKataHenkanMode /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1258
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1259 */ );
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1260 canna_mode_HanKataHenkanMode = CANNA_MODE_HanKataHenkanMode;
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 DEFVAR_INT ("canna-mode-zen-alpha-henkan-mode",
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1263 &canna_mode_ZenAlphaHenkanMode /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1264
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1265 */ );
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1266 canna_mode_ZenAlphaHenkanMode = CANNA_MODE_ZenAlphaHenkanMode;
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 DEFVAR_INT ("canna-mode-han-alpha-henkan-mode",
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1269 &canna_mode_HanAlphaHenkanMode /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1270
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1271 */ );
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1272 canna_mode_HanAlphaHenkanMode = CANNA_MODE_HanAlphaHenkanMode;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1273 #endif
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1274 DEFVAR_INT ("canna-mode-zen-hira-kakutei-mode",
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1275 &canna_mode_ZenHiraKakuteiMode /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1276
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1277 */ );
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1278 canna_mode_ZenHiraKakuteiMode = IROHA_MODE_ZenHiraKakuteiMode;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1279 #ifdef CANNA_MODE_HanHiraKakuteiMode
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1280 DEFVAR_INT ("canna-mode-han-hira-kakutei-mode",
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1281 &canna_mode_HanHiraKakuteiMode /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1282
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1283 */ );
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1284 canna_mode_HanHiraKakuteiMode = CANNA_MODE_HanHiraKakuteiMode;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1285 #endif
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1286 DEFVAR_INT ("canna-mode-zen-kata-kakutei-mode",
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1287 &canna_mode_ZenKataKakuteiMode /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1288
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1289 */ );
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1290 canna_mode_ZenKataKakuteiMode = IROHA_MODE_ZenKataKakuteiMode;
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 DEFVAR_INT ("canna-mode-han-kata-kakutei-mode",
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1293 &canna_mode_HanKataKakuteiMode /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1294
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1295 */ );
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1296 canna_mode_HanKataKakuteiMode = IROHA_MODE_HanKataKakuteiMode;
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 DEFVAR_INT ("canna-mode-zen-alpha-kakutei-mode",
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1299 &canna_mode_ZenAlphaKakuteiMode /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1300
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1301 */ );
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1302 canna_mode_ZenAlphaKakuteiMode = IROHA_MODE_ZenAlphaKakuteiMode;
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 DEFVAR_INT ("canna-mode-han-alpha-kakutei-mode",
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1305 &canna_mode_HanAlphaKakuteiMode /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1306
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1307 */ );
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1308 canna_mode_HanAlphaKakuteiMode = IROHA_MODE_HanAlphaKakuteiMode;
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 DEFVAR_INT ("canna-mode-hex-mode", &canna_mode_HexMode /*
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 */ );
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1313 canna_mode_HexMode = IROHA_MODE_HexMode;
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 DEFVAR_INT ("canna-mode-bushu-mode", &canna_mode_BushuMode /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1316
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 canna_mode_BushuMode = IROHA_MODE_BushuMode;
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 DEFVAR_INT ("canna-mode-extend-mode", &canna_mode_ExtendMode /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1321
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 canna_mode_ExtendMode = IROHA_MODE_ExtendMode;
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 DEFVAR_INT ("canna-mode-russian-mode", &canna_mode_RussianMode /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1326
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 canna_mode_RussianMode = IROHA_MODE_RussianMode;
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 DEFVAR_INT ("canna-mode-greek-mode", &canna_mode_GreekMode /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1331
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 canna_mode_GreekMode = IROHA_MODE_GreekMode;
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 DEFVAR_INT ("canna-mode-line-mode", &canna_mode_LineMode /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1336
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 canna_mode_LineMode = IROHA_MODE_LineMode;
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 DEFVAR_INT ("canna-mode-changing-server-mode",
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1341 &canna_mode_ChangingServerMode /*
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 */ );
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1344 canna_mode_ChangingServerMode = IROHA_MODE_ChangingServerMode;
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 DEFVAR_INT ("canna-mode-henkan-method-mode",
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1347 &canna_mode_HenkanMethodMode /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1348
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1349 */ );
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1350 canna_mode_HenkanMethodMode = IROHA_MODE_HenkanMethodMode;
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 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
1353
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1354 */ );
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1355 canna_mode_DeleteDicMode = IROHA_MODE_DeleteDicMode;
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 DEFVAR_INT ("canna-mode-touroku-mode", &canna_mode_TourokuMode /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1358
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 canna_mode_TourokuMode = IROHA_MODE_TourokuMode;
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 DEFVAR_INT ("canna-mode-touroku-empty-mode",
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1363 &canna_mode_TourokuEmptyMode /*
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 */ );
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1366 canna_mode_TourokuEmptyMode = IROHA_MODE_TourokuEmptyMode;
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 DEFVAR_INT ("canna-mode-touroku-hinshi-mode",
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1369 &canna_mode_TourokuHinshiMode /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1370
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1371 */ );
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1372 canna_mode_TourokuHinshiMode = IROHA_MODE_TourokuHinshiMode;
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 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
1375
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1376 */ );
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1377 canna_mode_TourokuDicMode = IROHA_MODE_TourokuDicMode;
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 DEFVAR_INT ("canna-mode-quoted-insert-mode",
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1380 &canna_mode_QuotedInsertMode /*
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 */ );
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1383 canna_mode_QuotedInsertMode = IROHA_MODE_QuotedInsertMode;
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 DEFVAR_INT ("canna-mode-bubun-muhenkan-mode",
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1386 &canna_mode_BubunMuhenkanMode /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1387
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1388 */ );
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1389 canna_mode_BubunMuhenkanMode = IROHA_MODE_BubunMuhenkanMode;
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 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
1392
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1393 */ );
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1394 canna_mode_MountDicMode = IROHA_MODE_MountDicMode;
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 DEFVAR_INT ("canna-func-self-insert", &canna_fn_SelfInsert /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1397
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 canna_fn_SelfInsert = IROHA_FN_SelfInsert;
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 DEFVAR_INT ("canna-func-functional-insert", &canna_fn_FunctionalInsert /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1402
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 canna_fn_FunctionalInsert = IROHA_FN_FunctionalInsert;
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 DEFVAR_INT ("canna-func-quoted-insert", &canna_fn_QuotedInsert /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1407
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 canna_fn_QuotedInsert = IROHA_FN_QuotedInsert;
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 DEFVAR_INT ("canna-func-japanese-mode", &canna_fn_JapaneseMode /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1412
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 canna_fn_JapaneseMode = IROHA_FN_JapaneseMode;
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 DEFVAR_INT ("canna-func-alpha-mode", &canna_fn_AlphaMode /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1417
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 canna_fn_AlphaMode = IROHA_FN_AlphaMode;
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 DEFVAR_INT ("canna-func-henkan-nyuryoku-mode",
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1422 &canna_fn_HenkanNyuryokuMode /*
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 */ );
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1425 canna_fn_HenkanNyuryokuMode = IROHA_FN_HenkanNyuryokuMode;
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 DEFVAR_INT ("canna-func-forward", &canna_fn_Forward /*
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 */ );
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1430 canna_fn_Forward = IROHA_FN_Forward;
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 DEFVAR_INT ("canna-func-backward", &canna_fn_Backward /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1433
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 canna_fn_Backward = IROHA_FN_Backward;
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 DEFVAR_INT ("canna-func-next", &canna_fn_Next /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1438
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 canna_fn_Next = IROHA_FN_Next;
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 DEFVAR_INT ("canna-func-previous", &canna_fn_Prev /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1443
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 canna_fn_Prev = IROHA_FN_Prev;
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 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
1448
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 canna_fn_BeginningOfLine = IROHA_FN_BeginningOfLine;
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 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
1453
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 canna_fn_EndOfLine = IROHA_FN_EndOfLine;
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 DEFVAR_INT ("canna-func-delete-next", &canna_fn_DeleteNext /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1458
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 canna_fn_DeleteNext = IROHA_FN_DeleteNext;
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 DEFVAR_INT ("canna-func-delete-previous", &canna_fn_DeletePrevious /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1463
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 canna_fn_DeletePrevious = IROHA_FN_DeletePrevious;
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 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
1468
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 canna_fn_KillToEndOfLine = IROHA_FN_KillToEndOfLine;
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 DEFVAR_INT ("canna-func-henkan", &canna_fn_Henkan /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1473
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 canna_fn_Henkan = IROHA_FN_Henkan;
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 DEFVAR_INT ("canna-func-kakutei", &canna_fn_Kakutei /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1478
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 canna_fn_Kakutei = IROHA_FN_Kakutei;
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 DEFVAR_INT ("canna-func-extend", &canna_fn_Extend /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1483
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 canna_fn_Extend = IROHA_FN_Extend;
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 DEFVAR_INT ("canna-func-shrink", &canna_fn_Shrink /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1488
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 canna_fn_Shrink = IROHA_FN_Shrink;
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 #ifdef CANNA_FN_AdjustBunsetsu
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1493 DEFVAR_INT ("canna-func-adjust-bunsetsu", &canna_fn_AdjustBunsetsu /*
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 */ );
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1496 canna_fn_AdjustBunsetsu = CANNA_FN_AdjustBunsetsu;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1497 #endif
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1498 DEFVAR_INT ("canna-func-quit", &canna_fn_Quit /*
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 */ );
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1501 canna_fn_Quit = IROHA_FN_Quit;
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 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
1504
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1505 */ );
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1506 canna_fn_ConvertAsHex = IROHA_FN_ConvertAsHex;
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 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
1509
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 canna_fn_ConvertAsBushu = IROHA_FN_ConvertAsBushu;
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 DEFVAR_INT ("canna-func-kouho-ichiran", &canna_fn_KouhoIchiran /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1514
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 canna_fn_KouhoIchiran = IROHA_FN_KouhoIchiran;
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 DEFVAR_INT ("canna-func-bubun-muhenkan", &canna_fn_BubunMuhenkan /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1519
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 canna_fn_BubunMuhenkan = IROHA_FN_BubunMuhenkan;
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 DEFVAR_INT ("canna-func-zenkaku", &canna_fn_Zenkaku /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1524
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 canna_fn_Zenkaku = IROHA_FN_Zenkaku;
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 DEFVAR_INT ("canna-func-hankaku", &canna_fn_Hankaku /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1529
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 canna_fn_Hankaku = IROHA_FN_Hankaku;
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 DEFVAR_INT ("canna-func-to-upper", &canna_fn_ToUpper /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1534
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 canna_fn_ToUpper = IROHA_FN_ToUpper;
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 DEFVAR_INT ("canna-func-capitalize", &canna_fn_Capitalize /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1539
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 canna_fn_Capitalize = IROHA_FN_Capitalize;
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 DEFVAR_INT ("canna-func-to-lower", &canna_fn_ToLower /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1544
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 canna_fn_ToLower = IROHA_FN_ToLower;
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 DEFVAR_INT ("canna-func-hiragana", &canna_fn_Hiragana /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1549
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 canna_fn_Hiragana = IROHA_FN_Hiragana;
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 DEFVAR_INT ("canna-func-katakana", &canna_fn_Katakana /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1554
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 canna_fn_Katakana = IROHA_FN_Katakana;
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 DEFVAR_INT ("canna-func-romaji", &canna_fn_Romaji /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1559
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 canna_fn_Romaji = IROHA_FN_Romaji;
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 #ifdef CANNA_FN_BaseHiragana
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1564 DEFVAR_INT ("canna-func-base-hiragana", &canna_fn_BaseHiragana /*
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 */ );
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1567 canna_fn_BaseHiragana = CANNA_FN_BaseHiragana;
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 DEFVAR_INT ("canna-func-base-katakana", &canna_fn_BaseKatakana /*
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 */ );
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1572 canna_fn_BaseKatakana = CANNA_FN_BaseKatakana;
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 DEFVAR_INT ("canna-func-base-eisu", &canna_fn_BaseEisu /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1575
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 canna_fn_BaseEisu = CANNA_FN_BaseEisu;
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 DEFVAR_INT ("canna-func-base-zenkaku", &canna_fn_BaseZenkaku /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1580
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 canna_fn_BaseZenkaku = CANNA_FN_BaseZenkaku;
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 DEFVAR_INT ("canna-func-base-hankaku", &canna_fn_BaseHankaku /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1585
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 canna_fn_BaseHankaku = CANNA_FN_BaseHankaku;
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 DEFVAR_INT ("canna-func-base-kana", &canna_fn_BaseKana /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1590
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 canna_fn_BaseKana = CANNA_FN_BaseKana;
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 DEFVAR_INT ("canna-func-base-kakutei", &canna_fn_BaseKakutei /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1595
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 canna_fn_BaseKakutei = CANNA_FN_BaseKakutei;
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 DEFVAR_INT ("canna-func-base-henkan", &canna_fn_BaseHenkan /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1600
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 canna_fn_BaseHenkan = CANNA_FN_BaseHenkan;
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 DEFVAR_INT ("canna-func-base-hiragana-katakana-toggle",
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1605 &canna_fn_BaseHiraKataToggle /*
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 */ );
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1608 canna_fn_BaseHiraKataToggle = CANNA_FN_BaseHiraKataToggle;
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 DEFVAR_INT ("canna-func-base-zenkaku-hankaku-toggle",
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1611 &canna_fn_BaseZenHanToggle /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1612
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1613 */ );
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1614 canna_fn_BaseZenHanToggle = CANNA_FN_BaseZenHanToggle;
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 DEFVAR_INT ("canna-func-base-kana-eisu-toggle",
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1617 &canna_fn_BaseKanaEisuToggle /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1618
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1619 */ );
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1620 canna_fn_BaseKanaEisuToggle = CANNA_FN_BaseKanaEisuToggle;
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 DEFVAR_INT ("canna-func-base-kakutei-henkan-toggle",
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1623 &canna_fn_BaseKakuteiHenkanToggle /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1624
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1625 */ );
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1626 canna_fn_BaseKakuteiHenkanToggle = CANNA_FN_BaseKakuteiHenkanToggle;
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 DEFVAR_INT ("canna-func-base-rotate-forward",
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1629 &canna_fn_BaseRotateForward /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1630
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1631 */ );
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1632 canna_fn_BaseRotateForward = CANNA_FN_BaseRotateForward;
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 DEFVAR_INT ("canna-func-base-rotate-backward",
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1635 &canna_fn_BaseRotateBackward /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1636
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1637 */ );
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1638 canna_fn_BaseRotateBackward = CANNA_FN_BaseRotateBackward;
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 #endif
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1641 DEFVAR_INT ("canna-func-extend-mode", &canna_fn_ExtendMode /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1642
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1643 */ );
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1644 canna_fn_ExtendMode = IROHA_FN_ExtendMode;
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 DEFVAR_INT ("canna-func-touroku", &canna_fn_Touroku /*
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 */ );
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1649 canna_fn_Touroku = IROHA_FN_Touroku;
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 DEFVAR_INT ("canna-func-hex-mode", &canna_fn_HexMode /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1652
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 canna_fn_HexMode = IROHA_FN_HexMode;
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 DEFVAR_INT ("canna-func-bushu-mode", &canna_fn_BushuMode /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1657
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 canna_fn_BushuMode = IROHA_FN_BushuMode;
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 DEFVAR_INT ("canna-func-kigo-mode", &canna_fn_KigouMode /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1662
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 canna_fn_KigouMode = IROHA_FN_KigouMode;
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 #ifdef CANNA_FN_Mark
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1667 DEFVAR_INT ("canna-func-mark", &canna_fn_Mark /*
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 */ );
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1670 canna_fn_Mark = CANNA_FN_Mark;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1671 #endif
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1672 #ifdef CANNA_FN_TemporalMode
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1673 DEFVAR_INT ("canna-func-temporal-mode", &canna_fn_TemporalMode /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1674
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1675 */ );
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1676 canna_fn_TemporalMode = CANNA_FN_TemporalMode;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1677 #endif
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1678
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1679 DEFVAR_INT ("canna-key-nfer", &canna_key_Nfer /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1680
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1681 */ );
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1682 canna_key_Nfer = IROHA_KEY_Nfer;
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 DEFVAR_INT ("canna-key-xfer", &canna_key_Xfer /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1685
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 canna_key_Xfer = IROHA_KEY_Xfer;
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 DEFVAR_INT ("canna-key-up", &canna_key_Up /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1690
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 canna_key_Up = IROHA_KEY_Up;
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 DEFVAR_INT ("canna-key-left", &canna_key_Left /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1695
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 canna_key_Left = IROHA_KEY_Left;
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 DEFVAR_INT ("canna-key-right", &canna_key_Right /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1700
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 canna_key_Right = IROHA_KEY_Right;
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 DEFVAR_INT ("canna-key-down", &canna_key_Down /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1705
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 canna_key_Down = IROHA_KEY_Down;
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 DEFVAR_INT ("canna-key-insert", &canna_key_Insert /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1710
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 canna_key_Insert = IROHA_KEY_Insert;
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 DEFVAR_INT ("canna-key-rollup", &canna_key_Rollup /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1715
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 canna_key_Rollup = IROHA_KEY_Rollup;
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 DEFVAR_INT ("canna-key-rolldown", &canna_key_Rolldown /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1720
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 canna_key_Rolldown = IROHA_KEY_Rolldown;
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 DEFVAR_INT ("canna-key-home", &canna_key_Home /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1725
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 canna_key_Home = IROHA_KEY_Home;
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 DEFVAR_INT ("canna-key-help", &canna_key_Help /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1730
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 canna_key_Help = IROHA_KEY_Help;
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 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
1735
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 canna_key_KP_Key = IROHA_KEY_KP_Key;
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 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
1740
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 canna_key_Shift_Nfer = IROHA_KEY_Shift_Nfer;
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 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
1745
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 canna_key_Shift_Xfer = IROHA_KEY_Shift_Xfer;
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 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
1750
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 canna_key_Shift_Up = IROHA_KEY_Shift_Up;
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 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
1755
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 canna_key_Shift_Left = IROHA_KEY_Shift_Left;
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 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
1760
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 canna_key_Shift_Right = IROHA_KEY_Shift_Right;
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 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
1765
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 canna_key_Shift_Down = IROHA_KEY_Shift_Down;
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 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
1770
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 canna_key_Cntrl_Nfer = IROHA_KEY_Cntrl_Nfer;
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 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
1775
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 canna_key_Cntrl_Xfer = IROHA_KEY_Cntrl_Xfer;
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 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
1780
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 canna_key_Cntrl_Up = IROHA_KEY_Cntrl_Up;
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 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
1785
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 canna_key_Cntrl_Left = IROHA_KEY_Cntrl_Left;
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 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
1790
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 canna_key_Cntrl_Right = IROHA_KEY_Cntrl_Right;
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 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
1795
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 canna_key_Cntrl_Down = IROHA_KEY_Cntrl_Down;
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 Fprovide (intern ("CANNA"));
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1800 }
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 #if 0
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1803 #ifdef HAVE_SHLIB
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1804 void unload_canna_api (void);
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1805 void
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1806 unload_canna_api (void)
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1807 {
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1808 /* 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
1809 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
1810 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
1811 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
1812 must have a corresponding unstaticpro_nodump (&Qsample_var) here. */
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1813 }
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1814 #endif
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1815 #endif
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1816
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1817 #ifdef CANNA_MULE
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1818
3071
a80f978d8342 [xemacs-hg @ 2005-11-16 07:14:13 by stephent]
stephent
parents: 3010
diff changeset
1819 /* 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
1820 static int
3071
a80f978d8342 [xemacs-hg @ 2005-11-16 07:14:13 by stephent]
stephent
parents: 3010
diff changeset
1821 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
1822 {
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1823 unsigned char ch, *cp = p;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1824 int len = 0;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1825
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1826 while ((cp < p + l) && (ch = *cp))
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1827 {
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1828 if ((unsigned char) ch == ISO_CODE_SS2)
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1829 {
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1830 len++;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1831 cp += 2;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1832 }
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1833 else if ((unsigned char) ch == ISO_CODE_SS3)
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1834 {
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1835 len++;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1836 cp += 3;
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 else if (ch & 0x80)
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1839 {
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1840 len++;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1841 cp += 2;
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 else
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1844 {
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1845 len++;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1846 cp++;
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 }
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1849 return (len);
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
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1852 /* count number of characters */
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1853 static void
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1854 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
1855 Fixnum *clen, Fixnum *cpos, Fixnum *crev)
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 unsigned char *q = p;
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 *clen = *cpos = *crev = 0;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1860 if (len == 0) return;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1861 while (q < p + pos)
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1862 {
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1863 (*clen)++;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1864 (*cpos)++;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1865 if (*q++ & 0x80) q++;
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 while (q < p + pos + rev)
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1868 {
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1869 (*clen)++;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1870 (*crev)++;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1871 if (*q++ & 0x80) q++;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1872 }
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1873 while (q < p + len)
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 (*clen)++;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1876 if (*q++ & 0x80) q++;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1877 }
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1878 }
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1879 #endif /* CANNA_MULE */