annotate modules/canna/canna_api.c @ 4981:4aebb0131297

Cleanups/renaming of EXTERNAL_TO_C_STRING and friends -------------------- ChangeLog entries follow: -------------------- modules/ChangeLog addition: 2010-02-05 Ben Wing <ben@xemacs.org> * postgresql/postgresql.c: * postgresql/postgresql.c (CHECK_LIVE_CONNECTION): * postgresql/postgresql.c (Fpq_connectdb): * postgresql/postgresql.c (Fpq_connect_start): * postgresql/postgresql.c (Fpq_lo_import): * postgresql/postgresql.c (Fpq_lo_export): * ldap/eldap.c (Fldap_open): * ldap/eldap.c (Fldap_search_basic): * ldap/eldap.c (Fldap_add): * ldap/eldap.c (Fldap_modify): * ldap/eldap.c (Fldap_delete): * canna/canna_api.c (Fcanna_initialize): * canna/canna_api.c (Fcanna_store_yomi): * canna/canna_api.c (Fcanna_parse): * canna/canna_api.c (Fcanna_henkan_begin): EXTERNAL_TO_C_STRING returns its argument instead of storing it in a parameter, and is renamed to EXTERNAL_TO_ITEXT. Similar things happen to related macros. See entry in src/ChangeLog. More Mule-izing of postgresql.c. Extract out common code between `pq-connectdb' and `pq-connect-start'. Fix places that signal an error string using a formatted string to instead follow the standard and have a fixed reason followed by the particular error message stored as one of the frobs. src/ChangeLog addition: 2010-02-05 Ben Wing <ben@xemacs.org> * console-msw.c (write_string_to_mswindows_debugging_output): * console-msw.c (Fmswindows_message_box): * console-x.c (x_perhaps_init_unseen_key_defaults): * console.c: * database.c (dbm_get): * database.c (dbm_put): * database.c (dbm_remove): * database.c (berkdb_get): * database.c (berkdb_put): * database.c (berkdb_remove): * database.c (Fopen_database): * device-gtk.c (gtk_init_device): * device-msw.c (msprinter_init_device_internal): * device-msw.c (msprinter_default_printer): * device-msw.c (msprinter_init_device): * device-msw.c (sync_printer_with_devmode): * device-msw.c (Fmsprinter_select_settings): * device-x.c (sanity_check_geometry_resource): * device-x.c (Dynarr_add_validified_lisp_string): * device-x.c (x_init_device): * device-x.c (Fx_put_resource): * device-x.c (Fx_valid_keysym_name_p): * device-x.c (Fx_set_font_path): * dialog-msw.c (push_lisp_string_as_unicode): * dialog-msw.c (handle_directory_dialog_box): * dialog-msw.c (handle_file_dialog_box): * dialog-x.c (dbox_descriptor_to_widget_value): * editfns.c (Fformat_time_string): * editfns.c (Fencode_time): * editfns.c (Fset_time_zone_rule): * emacs.c (make_argc_argv): * emacs.c (Fdump_emacs): * emodules.c (emodules_load): * eval.c: * eval.c (maybe_signal_error_1): * event-msw.c (Fdde_alloc_advise_item): * event-msw.c (mswindows_dde_callback): * event-msw.c (mswindows_wnd_proc): * fileio.c (report_error_with_errno): * fileio.c (Fsysnetunam): * fileio.c (Fdo_auto_save): * font-mgr.c (extract_fcapi_string): * font-mgr.c (Ffc_config_app_font_add_file): * font-mgr.c (Ffc_config_app_font_add_dir): * font-mgr.c (Ffc_config_filename): * frame-gtk.c (gtk_set_frame_text_value): * frame-gtk.c (gtk_create_widgets): * frame-msw.c (mswindows_init_frame_1): * frame-msw.c (mswindows_set_title_from_ibyte): * frame-msw.c (msprinter_init_frame_3): * frame-x.c (x_set_frame_text_value): * frame-x.c (x_set_frame_properties): * frame-x.c (start_drag_internal_1): * frame-x.c (x_cde_transfer_callback): * frame-x.c (x_create_widgets): * glyphs-eimage.c (my_jpeg_output_message): * glyphs-eimage.c (jpeg_instantiate): * glyphs-eimage.c (gif_instantiate): * glyphs-eimage.c (png_instantiate): * glyphs-eimage.c (tiff_instantiate): * glyphs-gtk.c (xbm_instantiate_1): * glyphs-gtk.c (gtk_xbm_instantiate): * glyphs-gtk.c (gtk_xpm_instantiate): * glyphs-gtk.c (gtk_xface_instantiate): * glyphs-gtk.c (cursor_font_instantiate): * glyphs-gtk.c (gtk_redisplay_widget): * glyphs-gtk.c (gtk_widget_instantiate_1): * glyphs-gtk.c (gtk_add_tab_item): * glyphs-msw.c (mswindows_xpm_instantiate): * glyphs-msw.c (bmp_instantiate): * glyphs-msw.c (mswindows_resource_instantiate): * glyphs-msw.c (xbm_instantiate_1): * glyphs-msw.c (mswindows_xbm_instantiate): * glyphs-msw.c (mswindows_xface_instantiate): * glyphs-msw.c (mswindows_redisplay_widget): * glyphs-msw.c (mswindows_widget_instantiate): * glyphs-msw.c (add_tree_item): * glyphs-msw.c (add_tab_item): * glyphs-msw.c (mswindows_combo_box_instantiate): * glyphs-msw.c (mswindows_widget_query_string_geometry): * glyphs-x.c (x_locate_pixmap_file): * glyphs-x.c (xbm_instantiate_1): * glyphs-x.c (x_xbm_instantiate): * glyphs-x.c (extract_xpm_color_names): * glyphs-x.c (x_xpm_instantiate): * glyphs-x.c (x_xface_instantiate): * glyphs-x.c (autodetect_instantiate): * glyphs-x.c (safe_XLoadFont): * glyphs-x.c (cursor_font_instantiate): * glyphs-x.c (x_redisplay_widget): * glyphs-x.c (Fchange_subwindow_property): * glyphs-x.c (x_widget_instantiate): * glyphs-x.c (x_tab_control_redisplay): * glyphs.c (pixmap_to_lisp_data): * gui-x.c (menu_separator_style_and_to_external): * gui-x.c (add_accel_and_to_external): * gui-x.c (button_item_to_widget_value): * hpplay.c (player_error_internal): * hpplay.c (play_sound_file): * hpplay.c (play_sound_data): * intl.c (Fset_current_locale): * lisp.h: * menubar-gtk.c (gtk_xemacs_set_accel_keys): * menubar-msw.c (populate_menu_add_item): * menubar-msw.c (populate_or_checksum_helper): * menubar-x.c (menu_item_descriptor_to_widget_value_1): * nt.c (init_user_info): * nt.c (get_long_basename): * nt.c (nt_get_resource): * nt.c (init_mswindows_environment): * nt.c (get_cached_volume_information): * nt.c (mswindows_readdir): * nt.c (read_unc_volume): * nt.c (mswindows_stat): * nt.c (mswindows_getdcwd): * nt.c (mswindows_executable_type): * nt.c (Fmswindows_short_file_name): * ntplay.c (nt_play_sound_file): * objects-gtk.c: * objects-gtk.c (gtk_valid_color_name_p): * objects-gtk.c (gtk_initialize_font_instance): * objects-gtk.c (gtk_font_list): * objects-msw.c (font_enum_callback_2): * objects-msw.c (parse_font_spec): * objects-x.c (x_parse_nearest_color): * objects-x.c (x_valid_color_name_p): * objects-x.c (x_initialize_font_instance): * objects-x.c (x_font_instance_truename): * objects-x.c (x_font_list): * objects-xlike-inc.c (XFUN): * objects-xlike-inc.c (xft_find_charset_font): * process-nt.c (mswindows_report_winsock_error): * process-nt.c (nt_create_process): * process-nt.c (get_internet_address): * process-nt.c (nt_open_network_stream): * process-unix.c: * process-unix.c (allocate_pty): * process-unix.c (get_internet_address): * process-unix.c (unix_canonicalize_host_name): * process-unix.c (unix_open_network_stream): * realpath.c: * select-common.h (lisp_data_to_selection_data): * select-gtk.c (symbol_to_gtk_atom): * select-gtk.c (atom_to_symbol): * select-msw.c (symbol_to_ms_cf): * select-msw.c (mswindows_register_selection_data_type): * select-x.c (symbol_to_x_atom): * select-x.c (x_atom_to_symbol): * select-x.c (hack_motif_clipboard_selection): * select-x.c (Fx_store_cutbuffer_internal): * sound.c (Fplay_sound_file): * sound.c (Fplay_sound): * sound.h (sound_perror): * sysdep.c: * sysdep.c (qxe_allocating_getcwd): * sysdep.c (qxe_execve): * sysdep.c (copy_in_passwd): * sysdep.c (qxe_getpwnam): * sysdep.c (qxe_ctime): * sysdll.c (dll_open): * sysdll.c (dll_function): * sysdll.c (dll_variable): * sysdll.c (search_linked_libs): * sysdll.c (dll_error): * sysfile.h: * sysfile.h (PATHNAME_CONVERT_OUT_TSTR): * sysfile.h (PATHNAME_CONVERT_OUT_UTF_8): * sysfile.h (PATHNAME_CONVERT_OUT): * sysfile.h (LISP_PATHNAME_CONVERT_OUT): * syswindows.h (ITEXT_TO_TSTR): * syswindows.h (LOCAL_FILE_FORMAT_TO_TSTR): * syswindows.h (TSTR_TO_LOCAL_FILE_FORMAT): * syswindows.h (LOCAL_FILE_FORMAT_TO_INTERNAL_MSWIN): * syswindows.h (LISP_LOCAL_FILE_FORMAT_MAYBE_URL_TO_TSTR): * text.h: * text.h (eicpy_ext_len): * text.h (enum new_dfc_src_type): * text.h (EXTERNAL_TO_ITEXT): * text.h (GET_STRERROR): * tooltalk.c (check_status): * tooltalk.c (Fadd_tooltalk_message_arg): * tooltalk.c (Fadd_tooltalk_pattern_attribute): * tooltalk.c (Fadd_tooltalk_pattern_arg): * win32.c (tstr_to_local_file_format): * win32.c (mswindows_lisp_error_1): * win32.c (mswindows_report_process_error): * win32.c (Fmswindows_shell_execute): * win32.c (mswindows_read_link_1): Changes involving external/internal format conversion, mostly code cleanup and renaming. 1. Eliminate the previous macros like LISP_STRING_TO_EXTERNAL that stored its result in a parameter. The new version of LISP_STRING_TO_EXTERNAL returns its result through the return value, same as the previous NEW_LISP_STRING_TO_EXTERNAL. Use the new-style macros throughout the code. 2. Rename C_STRING_TO_EXTERNAL and friends to ITEXT_TO_EXTERNAL, in keeping with overall naming rationalization involving Itext and related types. Macros involved in previous two: EXTERNAL_TO_C_STRING -> EXTERNAL_TO_ITEXT EXTERNAL_TO_C_STRING_MALLOC -> EXTERNAL_TO_ITEXT_MALLOC SIZED_EXTERNAL_TO_C_STRING -> SIZED_EXTERNAL_TO_ITEXT SIZED_EXTERNAL_TO_C_STRING_MALLOC -> SIZED_EXTERNAL_TO_ITEXT_MALLOC C_STRING_TO_EXTERNAL -> ITEXT_TO_EXTERNAL C_STRING_TO_EXTERNAL_MALLOC -> ITEXT_TO_EXTERNAL_MALLOC LISP_STRING_TO_EXTERNAL LISP_STRING_TO_EXTERNAL_MALLOC LISP_STRING_TO_TSTR C_STRING_TO_TSTR -> ITEXT_TO_TSTR TSTR_TO_C_STRING -> TSTR_TO_ITEXT The following four still return their values through parameters, since they have more than one value to return: C_STRING_TO_SIZED_EXTERNAL -> ITEXT_TO_SIZED_EXTERNAL LISP_STRING_TO_SIZED_EXTERNAL C_STRING_TO_SIZED_EXTERNAL_MALLOC -> ITEXT_TO_SIZED_EXTERNAL_MALLOC LISP_STRING_TO_SIZED_EXTERNAL_MALLOC Sometimes additional casts had to be inserted, since the old macros played strange games and completely defeated the type system of the store params. 3. Rewrite many places where direct calls to TO_EXTERNAL_FORMAT occurred with calls to one of the convenience macros listed above, or to make_extstring(). 4. Eliminate SIZED_C_STRING macros (they were hardly used, anyway) and use a direct call to TO_EXTERNAL_FORMAT or TO_INTERNAL_FORMAT. 4. Use LISP_PATHNAME_CONVERT_OUT in many places instead of something like LISP_STRING_TO_EXTERNAL(..., Qfile_name). 5. Eliminate some temporary variables that are no longer necessary now that we return a value rather than storing it into a variable. 6. Some Mule-izing in database.c. 7. Error functions: -- A bit of code cleanup in maybe_signal_error_1. -- Eliminate report_file_type_error; it's just an alias for signal_error_2 with params in a different order. -- Fix some places in the hostname-handling code that directly inserted externally-retrieved error strings into the supposed ASCII "reason" param instead of doing the right thing and sticking text descriptive of what was going on in "reason" and putting the external message in a frob. 8. Use Ascbyte instead of CIbyte in process-unix.c and maybe one or two other places. 9. Some code cleanup in copy_in_passwd() in sysdep.c. 10. Fix a real bug due to accidental variable shadowing in tstr_to_local_file_format() in win32.c.
author Ben Wing <ben@xemacs.org>
date Fri, 05 Feb 2010 11:02:24 -0600
parents 304aebb79cd3
children c0934cef10c6
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
3010
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1 /* CANNA interface -*- coding: euc-jp -*-
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
2
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
3 Copyright (C) 1995 Free Software Foundation, Inc.
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
4 Copyright (C) 1995 Sun Microsystems, Inc.
3071
a80f978d8342 [xemacs-hg @ 2005-11-16 07:14:13 by stephent]
stephent
parents: 3010
diff changeset
5 Copyright (C) 2005 Ben Wing.
3010
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
6
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
7 This file is part of XEmacs.
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
8
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
9 XEmacs is free software; you can redistribute it and/or modify it
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
10 under the terms of the GNU General Public License as published by the
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
11 Free Software Foundation; either version 2, or (at your option) any
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
12 later version.
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
13
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
14 XEmacs is distributed in the hope that it will be useful, but WITHOUT
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
15 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
16 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
17 for more details.
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
18
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
19 You should have received a copy of the GNU General Public License
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
20 along with XEmacs; see the file COPYING. If not, write to
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
21 the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
22 Boston, MA 02111-1307, USA. */
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
23
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
24 /* Synched up with: Mule 2.3. Not in FSF. */
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
25
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
26 /* Japanese comments were translated 2000-12-06 by Stephen Turnbull
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
27 <stephen@xemacs.org>. I haven't verified that the Japanese comments
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
28 were correct. YMMV, NO WARRANTY, not even the implied warranty of
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
29 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. (^^;;; as the
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
30 Japanese say. */
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
31
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
32 /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
33
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
34 Authors: Akira Kon (kon@uxd.fc.nec.co.jp)
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
35 Ichiro Hirakura (hirakura@uxd.fc.nec.co.jp)
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
36
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
37 Functions defined in this file are
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
38
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
39 (canna-key-proc key)
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
40 key: single STRING
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
41 RETURNS:
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
42 Length of converted string if no error occurs.
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
43 Error string if error occurs.
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
44 DESCRIPTION:
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
45 Convert a key input to a set of strings. The
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
46 strings contain both well-formed string and a
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
47 intermediate result to show the translation
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
48 information to a user. converted strings are
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
49 stored in specific variables.
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
50
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
51 (canna-initialize)
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
52 RETURNS:
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
53 List of the following things:
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
54 - list of keys to toggle Japanese-mode
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
55 - error message
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
56 - list of warning messages
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
57 DESCRIPTION:
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
58 Initialize ``canna'', which is a kana-to-kanji
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
59 converter for XEmacs. The first arg
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
60 specifies if inserting space character between
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
61 BUNSETSU when candidates are displayed. The
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
62 second arg specifies server. The third arg
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
63 specifies a file which will be used as a
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
64 customization description. If nil is
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
65 specified for each arg, the default value will
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
66 be used.
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
67
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
68 (canna-finalize)
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
69 RETURNS:
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
70 list of warning messages
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
71 DESCRIPTION:
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
72 finalize ``canna'', which is a kana-to-kanji
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
73 converter for XEmacs. This cause to write
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
74 miscellaneous informations to kana-to-kanji
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
75 dictionary.
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
76
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
77 (canna-touroku-string string)
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
78 string:
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
79 String to register to a dictionary.
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
80 RETURNS:
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
81 The same thing returns as canna-key-proc does.
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
82 DESCRIPTION:
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
83 Register Kanji words into kana-to-kanji
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
84 conversion dictionary.
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
85
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
86 (canna-set-width width)
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
87 width:
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
88 Column width of the place where the candidates
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
89 of kana-to-kanji conversion will be shown.
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
90 RETURNS:
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
91 nil
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
92 DESCRIPTION:
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
93 Set status-line width information, which is
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
94 used to display kanji candidates.
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
95
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
96 (canna-change-mode num)
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
97 num:
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
98 The mode number of Canna.
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
99 RETURNS:
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
100 The same thing returns as canna-key-proc does.
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
101 DESCRIPTION:
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
102 Change Japanese pre-edit mode.
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
103
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
104 (canna-store-yomi yomi roma)
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
105 yomi:
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
106 ``Yomi'' to be stored.
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
107 roma:
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
108 ``Romaji'' which corresponds to the ``Yomi''.
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
109 RETURNS:
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
110 The same thing returns as canna-key-proc does.
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
111 DESCRIPTION:
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
112 Store yomi characters as a YOMI of
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
113 kana-to-kanji conversion.
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
114
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
115 (canna-do-function num ch)
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
116 num:
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
117 A function number to be called.
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
118 ch:
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
119 A character will be specified in order to feed
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
120 the character to the function if the function
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
121 needs a input character.
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
122 RETURNS:
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
123 The same thing returns as canna-key-proc does.
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
124 DESCRIPTION:
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
125 Do specified function at current mode.
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
126
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
127 (canna-parse string)
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
128 string:
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
129 To be parsed.
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
130 RETURNS:
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
131 List of warning messages.
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
132 DESCRIPTION:
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
133 Parse customize string.
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
134
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
135 (canna-query-mode)
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
136 RETURNS:
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
137 A string which indicate the current mode.
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
138 DESCRIPTION:
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
139 Get current mode string.
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
140
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
141 Functions below are used for KKCP compatible library. These
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
142 functions provides a base kana-to-kanji conversion system for EGG.
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
143 These functions may be used when users want to change the engine
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
144 from Wnn to Canna without changing user interface of Japanese input.
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
145
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
146 (canna-henkan-begin)
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
147 (canna-henkan-next)
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
148 (canna-bunsetu-henkou)
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
149 (canna-henkan-kakutei)
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
150 (canna-henkan-end)
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
151 (canna-henkan-quit)
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
152
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
153 */
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
154
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
155 #include <config.h>
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
156 #include "lisp.h"
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
157 #ifdef HAVE_SHLIB
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
158 #include "emodules.h"
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
159 #endif
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
160
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
161 #include "buffer.h"
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
162 #include "file-coding.h"
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
163
3830
e58f4b9ab1ad [xemacs-hg @ 2007-02-15 16:11:52 by stephent]
stephent
parents: 3071
diff changeset
164 /* iroha (Canna v1) support removed as of canna_api.c r1.4.
e58f4b9ab1ad [xemacs-hg @ 2007-02-15 16:11:52 by stephent]
stephent
parents: 3071
diff changeset
165 #### Is the IROHA_BC #define needed? */
3010
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
166 #define IROHA_BC
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
167 #include "canna/jrkanji.h"
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
168 #include "canna/RK.h"
3830
e58f4b9ab1ad [xemacs-hg @ 2007-02-15 16:11:52 by stephent]
stephent
parents: 3071
diff changeset
169
e58f4b9ab1ad [xemacs-hg @ 2007-02-15 16:11:52 by stephent]
stephent
parents: 3071
diff changeset
170 /* #### These shouldn't be needed any more. */
3010
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
171 extern char *jrKanjiError;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
172 extern int (*jrBeepFunc) (void);
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
173
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
174 /* #### is this global really necessary? */
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
175 #define KEYTOSTRSIZE 2048
3071
a80f978d8342 [xemacs-hg @ 2005-11-16 07:14:13 by stephent]
stephent
parents: 3010
diff changeset
176 static Extbyte key_buffer[KEYTOSTRSIZE];
3010
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
177
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
178 static int canna_empty_info, canna_through_info;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
179 static int canna_underline;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
180 static int canna_inhibit_hankakukana;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
181
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
182 static Lisp_Object Vcanna_kakutei_string;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
183 static Lisp_Object Vcanna_kakutei_yomi;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
184 static Lisp_Object Vcanna_kakutei_romaji;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
185 static Lisp_Object Vcanna_henkan_string;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
186 static Fixnum canna_henkan_length;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
187 static Fixnum canna_henkan_revPos;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
188 static Fixnum canna_henkan_revLen;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
189 static Lisp_Object Vcanna_ichiran_string;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
190 static Fixnum canna_ichiran_length;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
191 static Fixnum canna_ichiran_revPos;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
192 static Fixnum canna_ichiran_revLen;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
193 static Lisp_Object Vcanna_mode_string;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
194
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
195 static int IRCP_context;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
196
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
197 static Lisp_Object storeResults (char *, int, jrKanjiStatus *);
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
198 static Lisp_Object kanjiYomiList (int, int);
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
199 static Lisp_Object CANNA_mode_keys (void);
3071
a80f978d8342 [xemacs-hg @ 2005-11-16 07:14:13 by stephent]
stephent
parents: 3010
diff changeset
200 static Lisp_Object Qeuc_jp;
a80f978d8342 [xemacs-hg @ 2005-11-16 07:14:13 by stephent]
stephent
parents: 3010
diff changeset
201
4953
304aebb79cd3 function renamings to track names of char typedefs
Ben Wing <ben@xemacs.org>
parents: 4759
diff changeset
202 #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
203 #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
204
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
205 #ifdef CANNA_MULE
3071
a80f978d8342 [xemacs-hg @ 2005-11-16 07:14:13 by stephent]
stephent
parents: 3010
diff changeset
206 static int euc_jp_num_chars (unsigned char *, int);
a80f978d8342 [xemacs-hg @ 2005-11-16 07:14:13 by stephent]
stephent
parents: 3010
diff changeset
207 static void count_char (unsigned char *,int, int, int, Fixnum *, Fixnum *,
a80f978d8342 [xemacs-hg @ 2005-11-16 07:14:13 by stephent]
stephent
parents: 3010
diff changeset
208 Fixnum *);
3010
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
209 #endif
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
210
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
211 /* Lisp functions definition */
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
212
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
213 DEFUN ("canna-key-proc", Fcanna_key_proc, 1, 1, 0, /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
214 Translate a key input to a set of strings. The strings contain both
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
215 well-formed string and intermediate result to show the translation
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
216 information to a user. Converted strings are stored in specific
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
217 variables.
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
218 */
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
219 (ch))
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
220 {
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
221 jrKanjiStatus ks;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
222 int len;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
223
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
224 CHECK_CHAR_COERCE_INT (ch);
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
225 len = jrKanjiString (0, XCHAR (ch), key_buffer, KEYTOSTRSIZE, &ks);
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
226 return storeResults (key_buffer, len, &ks);
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
227 }
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
228
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
229 static Lisp_Object
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
230 storeResults (char *buf, int len, jrKanjiStatus *ks)
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
231 {
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
232 Lisp_Object val = Qnil;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
233
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
234 if (len < 0)
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
235 { /* Error detected */
3071
a80f978d8342 [xemacs-hg @ 2005-11-16 07:14:13 by stephent]
stephent
parents: 3010
diff changeset
236 val = build_euc_string (jrKanjiError);
3010
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
237 }
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
238 else
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
239 {
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
240 /* ³ÎÄꤷ¤¿Ê¸»úÎó (the confirmed string) */
3071
a80f978d8342 [xemacs-hg @ 2005-11-16 07:14:13 by stephent]
stephent
parents: 3010
diff changeset
241 Vcanna_kakutei_string = make_euc_string (buf, len);
3010
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
242 val = make_int (len);
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
243 /* ³ÎÄꤷ¤¿Ê¸»úÎó¤ÎÆɤߤξðÊó...
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
244 (info about the reading of the confirmed string) */
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
245 Vcanna_kakutei_yomi = Vcanna_kakutei_romaji = Qnil;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
246 if (ks->info & KanjiYomiInfo)
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
247 {
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
248 char *p = buf + len + 1;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
249 int yomilen = strlen (p);
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
250
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
251 if (len + yomilen + 1 < KEYTOSTRSIZE)
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
252 {
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
253 int yomilen2;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
254
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
255 Vcanna_kakutei_yomi =
3071
a80f978d8342 [xemacs-hg @ 2005-11-16 07:14:13 by stephent]
stephent
parents: 3010
diff changeset
256 make_euc_string (p, yomilen); /* ÆÉ¤ß (reading) */
3010
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
257 p += yomilen + 1;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
258 yomilen2 = strlen (p);
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
259 if (len + yomilen + yomilen2 + 2 < KEYTOSTRSIZE)
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
260 {
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
261 Vcanna_kakutei_romaji =
3071
a80f978d8342 [xemacs-hg @ 2005-11-16 07:14:13 by stephent]
stephent
parents: 3010
diff changeset
262 make_euc_string (p, yomilen2);
3010
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
263 /* ¥í¡¼¥Þ»ú (romanization) */
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
264 }
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
265 }
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
266 }
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
267
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
268
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
269 /* ¸õÊäɽ¼¨¤Îʸ»úÎó¤Ç¤¹¡£
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
270 (string for displaying candidate translations) */
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
271 Vcanna_henkan_string = Qnil;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
272 if (ks->length >= 0)
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
273 {
3071
a80f978d8342 [xemacs-hg @ 2005-11-16 07:14:13 by stephent]
stephent
parents: 3010
diff changeset
274 Vcanna_henkan_string = make_euc_string (ks->echoStr, ks->length);
3010
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
275 #ifndef CANNA_MULE
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
276 canna_henkan_length = ks->length;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
277 canna_henkan_revPos = ks->revPos;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
278 canna_henkan_revLen = ks->revLen;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
279 #else /* CANNA_MULE */
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
280 if (canna_underline)
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
281 {
3071
a80f978d8342 [xemacs-hg @ 2005-11-16 07:14:13 by stephent]
stephent
parents: 3010
diff changeset
282 canna_henkan_length = euc_jp_num_chars (ks->echoStr,ks->length);
a80f978d8342 [xemacs-hg @ 2005-11-16 07:14:13 by stephent]
stephent
parents: 3010
diff changeset
283 canna_henkan_revPos = euc_jp_num_chars (ks->echoStr,ks->revPos);
a80f978d8342 [xemacs-hg @ 2005-11-16 07:14:13 by stephent]
stephent
parents: 3010
diff changeset
284 canna_henkan_revLen = euc_jp_num_chars (ks->echoStr+ks->revPos,
a80f978d8342 [xemacs-hg @ 2005-11-16 07:14:13 by stephent]
stephent
parents: 3010
diff changeset
285 ks->revLen);
3010
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
286 }
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
287 else
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
288 {
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
289 count_char (ks->echoStr, ks->length, ks->revPos, ks->revLen,
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
290 &canna_henkan_length, &canna_henkan_revPos,
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
291 &canna_henkan_revLen);
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
292 }
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
293 #endif /* CANNA_MULE */
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
294 }
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
295
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
296 /* °ìÍ÷¤Î¾ðÊó (information about the echo area menu) */
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
297 Vcanna_ichiran_string = Qnil;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
298 if (ks->info & KanjiGLineInfo && ks->gline.length >= 0)
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
299 {
3071
a80f978d8342 [xemacs-hg @ 2005-11-16 07:14:13 by stephent]
stephent
parents: 3010
diff changeset
300 Vcanna_ichiran_string = make_euc_string (ks->gline.line,
a80f978d8342 [xemacs-hg @ 2005-11-16 07:14:13 by stephent]
stephent
parents: 3010
diff changeset
301 ks->gline.length);
3010
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
302 #ifndef CANNA_MULE
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
303 canna_ichiran_length = ks->gline.length;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
304 canna_ichiran_revPos = ks->gline.revPos;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
305 canna_ichiran_revLen = ks->gline.revLen;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
306 #else /* CANNA_MULE */
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
307 count_char (ks->gline.line, ks->gline.length,
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
308 ks->gline.revPos, ks->gline.revLen,
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
309 &canna_ichiran_length,
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
310 &canna_ichiran_revPos, &canna_ichiran_revLen);
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
311 #endif /* CANNA_MULE */
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
312 }
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
313
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
314 /* ¥â¡¼¥É¤Î¾ðÊó (mode information) */
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
315 Vcanna_mode_string = Qnil;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
316 if (ks->info & KanjiModeInfo)
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
317 {
3071
a80f978d8342 [xemacs-hg @ 2005-11-16 07:14:13 by stephent]
stephent
parents: 3010
diff changeset
318 Vcanna_mode_string = build_euc_string ((Extbyte *) ks->mode);
3010
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
319 }
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
320
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
321 /* ¤½¤Î¾¤Î¾ðÊó (other information) */
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
322 canna_empty_info = (ks->info & KanjiEmptyInfo) ? 1 : 0;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
323 canna_through_info = (ks->info & KanjiThroughInfo) ? 1 : 0;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
324 }
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
325
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
326 return val;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
327 }
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
328
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
329 DEFUN ("canna-set-bunsetsu-kugiri", Fcanna_set_bunsetsu, 0, 1, 0, /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
330 This function sets the clause separator.
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
331 If non-nil value is specified, the white space separator will be used.
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
332 No separator will be used otherwise.
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
333 */
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
334 (num))
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
335 {
4042
f9be867eb83e [xemacs-hg @ 2007-06-29 08:00:58 by stephent]
stephent
parents: 3830
diff changeset
336 /* This is actually a Boolean! */
f9be867eb83e [xemacs-hg @ 2007-06-29 08:00:58 by stephent]
stephent
parents: 3830
diff changeset
337 char *kugiri; /* ʸÀá¶èÀÚ¤ê¤ò¤¹¤ë¤«¡© (display clause separator?) */
3010
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
338
4042
f9be867eb83e [xemacs-hg @ 2007-06-29 08:00:58 by stephent]
stephent
parents: 3830
diff changeset
339 kugiri = NILP (num) ? (char *) 0 : (char *) 1;
3010
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
340
4042
f9be867eb83e [xemacs-hg @ 2007-06-29 08:00:58 by stephent]
stephent
parents: 3830
diff changeset
341 jrKanjiControl (0, KC_SETBUNSETSUKUGIRI, kugiri);
3010
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
342
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
343 return Qnil;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
344 }
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
345
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
346 /* For whatever reason, calling Fding directly from libCanna loses */
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
347 static int
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
348 call_Fding (void)
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
349 {
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
350 Fding (Qnil, Qnil, Qnil);
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
351 return 0;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
352 }
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
353
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
354 DEFUN ("canna-initialize", Fcanna_initialize, 0, 3, 0, /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
355 Initialize ``canna'', which is a kana-to-kanji converter for XEmacs.
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
356 The first arg specifies if inserting space character between BUNSETSU when
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
357 candidates are displayed.
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
358 The second arg specifies server.
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
359 The third arg specifies a file which will be used as a customization
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
360 description.
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
361 If nil is specified for each arg, the default value will be used.
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
362 */
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
363 (num, server, rcfile))
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
364 {
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
365 Lisp_Object val;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
366 int res;
3071
a80f978d8342 [xemacs-hg @ 2005-11-16 07:14:13 by stephent]
stephent
parents: 3010
diff changeset
367 char **p, **q;
3010
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
368
4042
f9be867eb83e [xemacs-hg @ 2007-06-29 08:00:58 by stephent]
stephent
parents: 3830
diff changeset
369 /* This is actually a Boolean! */
f9be867eb83e [xemacs-hg @ 2007-06-29 08:00:58 by stephent]
stephent
parents: 3830
diff changeset
370 char *kugiri; /* ʸÀá¶èÀÚ¤ê¤ò¤¹¤ë¤«¡© (display clause separator?) */
3010
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
371
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
372 IRCP_context = -1;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
373
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
374 if (NILP (num))
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
375 {
4042
f9be867eb83e [xemacs-hg @ 2007-06-29 08:00:58 by stephent]
stephent
parents: 3830
diff changeset
376 kugiri = (char *) 1;
3010
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
377 }
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
378 else
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
379 {
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
380 CHECK_INT (num);
4042
f9be867eb83e [xemacs-hg @ 2007-06-29 08:00:58 by stephent]
stephent
parents: 3830
diff changeset
381 kugiri = (XINT (num) == 1) ? (char *) 1 : (char *) 0;
3010
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
382 }
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
383
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
384 if (NILP (server))
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
385 {
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
386 jrKanjiControl (0, KC_SETSERVERNAME, (char *) 0);
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
387 }
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
388 else
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
389 {
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
390 CHECK_STRING (server);
3071
a80f978d8342 [xemacs-hg @ 2005-11-16 07:14:13 by stephent]
stephent
parents: 3010
diff changeset
391 jrKanjiControl (0, KC_SETSERVERNAME,
a80f978d8342 [xemacs-hg @ 2005-11-16 07:14:13 by stephent]
stephent
parents: 3010
diff changeset
392 /* !!#### Check encoding */
4981
4aebb0131297 Cleanups/renaming of EXTERNAL_TO_C_STRING and friends
Ben Wing <ben@xemacs.org>
parents: 4953
diff changeset
393 LISP_STRING_TO_EXTERNAL (server, Qnative));
3010
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
394 }
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
395
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
396 if (NILP (rcfile))
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
397 {
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
398 jrKanjiControl (0, KC_SETINITFILENAME, (char *) 0);
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
399 }
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
400 else
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
401 {
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
402 CHECK_STRING (rcfile);
3071
a80f978d8342 [xemacs-hg @ 2005-11-16 07:14:13 by stephent]
stephent
parents: 3010
diff changeset
403 jrKanjiControl (0, KC_SETINITFILENAME,
4981
4aebb0131297 Cleanups/renaming of EXTERNAL_TO_C_STRING and friends
Ben Wing <ben@xemacs.org>
parents: 4953
diff changeset
404 LISP_STRING_TO_EXTERNAL (rcfile, Qfile_name));
3010
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
405 }
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
406
3071
a80f978d8342 [xemacs-hg @ 2005-11-16 07:14:13 by stephent]
stephent
parents: 3010
diff changeset
407 {
a80f978d8342 [xemacs-hg @ 2005-11-16 07:14:13 by stephent]
stephent
parents: 3010
diff changeset
408 char **warning = (char **) 0;
a80f978d8342 [xemacs-hg @ 2005-11-16 07:14:13 by stephent]
stephent
parents: 3010
diff changeset
409 res = jrKanjiControl (0, KC_INITIALIZE, (char *) &warning);
a80f978d8342 [xemacs-hg @ 2005-11-16 07:14:13 by stephent]
stephent
parents: 3010
diff changeset
410 val = Qnil;
a80f978d8342 [xemacs-hg @ 2005-11-16 07:14:13 by stephent]
stephent
parents: 3010
diff changeset
411 if (warning)
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 for (p = q = warning ; *q ; 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 while (p < q)
a80f978d8342 [xemacs-hg @ 2005-11-16 07:14:13 by stephent]
stephent
parents: 3010
diff changeset
416 {
a80f978d8342 [xemacs-hg @ 2005-11-16 07:14:13 by stephent]
stephent
parents: 3010
diff changeset
417 q--;
a80f978d8342 [xemacs-hg @ 2005-11-16 07:14:13 by stephent]
stephent
parents: 3010
diff changeset
418 val = Fcons (build_euc_string (*q), val);
a80f978d8342 [xemacs-hg @ 2005-11-16 07:14:13 by stephent]
stephent
parents: 3010
diff changeset
419 }
a80f978d8342 [xemacs-hg @ 2005-11-16 07:14:13 by stephent]
stephent
parents: 3010
diff changeset
420 }
a80f978d8342 [xemacs-hg @ 2005-11-16 07:14:13 by stephent]
stephent
parents: 3010
diff changeset
421 val = Fcons (val, Qnil);
a80f978d8342 [xemacs-hg @ 2005-11-16 07:14:13 by stephent]
stephent
parents: 3010
diff changeset
422 }
3010
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
423
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
424 if (res == -1)
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
425 {
3071
a80f978d8342 [xemacs-hg @ 2005-11-16 07:14:13 by stephent]
stephent
parents: 3010
diff changeset
426 val = Fcons (build_euc_string (jrKanjiError), val);
3010
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
427 /* ¥¤¥Ë¥·¥ã¥é¥¤¥º¤Ç¼ºÇÔ¤·¤¿¾ì¹ç¡£ (on initialization failure) */
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
428 return Fcons (Qnil, val);
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 else
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 jrBeepFunc = call_Fding;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
433
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
434 #ifdef KC_SETAPPNAME
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
435 #ifndef CANNA_MULE
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
436 jrKanjiControl (0, KC_SETAPPNAME, "nemacs");
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
437 #else /* CANNA_MULE */
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
438 jrKanjiControl (0, KC_SETAPPNAME, "mule");
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
439 #endif /* CANNA_MULE */
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
440 #endif /* KC_SETAPPNAME */
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
441
4042
f9be867eb83e [xemacs-hg @ 2007-06-29 08:00:58 by stephent]
stephent
parents: 3830
diff changeset
442 jrKanjiControl (0, KC_SETBUNSETSUKUGIRI, kugiri);
3010
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
443 jrKanjiControl (0, KC_SETWIDTH, (char *) 78);
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
444 #ifndef CANNA_MULE
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
445 jrKanjiControl (0, KC_INHIBITHANKAKUKANA, (char *) 1);
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
446 #else
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
447 /* mule ¤À¤Ã¤¿¤éȾ³Ñ¥«¥¿¥«¥Ê¤â»È¤¨¤ë
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
448 (Mule can use half-width katakana) */
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
449 if (canna_inhibit_hankakukana)
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
450 jrKanjiControl (0, KC_INHIBITHANKAKUKANA, (char *) 1);
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
451 #endif
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
452 jrKanjiControl (0, KC_YOMIINFO, (char *) 2); /* ¢¨£²: ¥í¡¼¥Þ»ú¤Þ¤ÇÊÖ¤¹
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
453 (*2: return to
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
454 romanized form) */
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
455 val = Fcons (Qnil, val);
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
456 return Fcons (CANNA_mode_keys (), val);
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 }
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
459
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
460 DEFUN ("canna-finalize", Fcanna_finalize, 0, 0, 0, /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
461 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
462 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
463 */
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
464 ())
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
465 {
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
466 Lisp_Object val;
3071
a80f978d8342 [xemacs-hg @ 2005-11-16 07:14:13 by stephent]
stephent
parents: 3010
diff changeset
467 char **p;
a80f978d8342 [xemacs-hg @ 2005-11-16 07:14:13 by stephent]
stephent
parents: 3010
diff changeset
468 char **warning = (char **) 0;
3010
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
469
3071
a80f978d8342 [xemacs-hg @ 2005-11-16 07:14:13 by stephent]
stephent
parents: 3010
diff changeset
470 jrKanjiControl (0, KC_FINALIZE, (char *) &warning);
3010
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
471
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
472 val = Qnil;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
473 if (warning)
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 for (p = warning ; *p; p++)
3010
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
476 {
3071
a80f978d8342 [xemacs-hg @ 2005-11-16 07:14:13 by stephent]
stephent
parents: 3010
diff changeset
477 /* !!#### This is almost certainly wrong; `canna-initialize
a80f978d8342 [xemacs-hg @ 2005-11-16 07:14:13 by stephent]
stephent
parents: 3010
diff changeset
478 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
479 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
480 val = Fcons (build_euc_string (*p), val);
3010
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
481 }
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
482 }
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
483 val = Fcons (val, Qnil);
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
484 IRCP_context = -1;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
485 return val;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
486 }
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
487
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
488 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
489 Register Kanji words into kana-to-kanji conversion dictionary.
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 (str))
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
492 {
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
493 jrKanjiStatusWithValue ksv;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
494 jrKanjiStatus ks;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
495
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
496 CHECK_STRING (str);
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
497 ksv.buffer = (unsigned char *) key_buffer;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
498 ksv.bytes_buffer = KEYTOSTRSIZE;
3071
a80f978d8342 [xemacs-hg @ 2005-11-16 07:14:13 by stephent]
stephent
parents: 3010
diff changeset
499 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
500 ksv.ks = &ks;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
501 jrKanjiControl (0, KC_DEFINEKANJI, (char *)&ksv);
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
502 return storeResults (key_buffer, ksv.val, ksv.ks);
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
503 }
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
504
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
505 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
506 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
507 kanji candidates.
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
508 */
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
509 (num))
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
510 {
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
511 CHECK_INT (num);
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
512
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
513 jrKanjiControl (0, KC_SETWIDTH, (char *) XINT (num));
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
514 return Qnil;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
515 }
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
516
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
517 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
518 Change Japanese pre-edit mode.
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 (num))
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
521 {
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
522 jrKanjiStatusWithValue ksv;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
523 jrKanjiStatus ks;
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 CHECK_INT (num);
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
526
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
527 ksv.buffer = (unsigned char *) key_buffer;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
528 ksv.bytes_buffer = KEYTOSTRSIZE;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
529 ksv.ks = &ks;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
530 ksv.val = XINT (num);
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
531 jrKanjiControl (0, KC_CHANGEMODE, (char *)&ksv);
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
532 return storeResults (key_buffer, ksv.val, ksv.ks);
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
533 }
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
534
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
535 static Lisp_Object
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
536 CANNA_mode_keys (void)
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
537 {
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
538 #define CANNAWORKBUFSIZE 32
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
539 char xxx[CANNAWORKBUFSIZE];
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
540 Lisp_Object val;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
541 int i, n;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
542
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
543 n = jrKanjiControl (0, KC_MODEKEYS, xxx);
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
544 val = Qnil;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
545 for (i = n ; i > 0 ;)
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
546 {
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
547 --i;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
548 /* !!#### something fucked here */
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
549 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
550 }
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
551 return val;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
552 }
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
553
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
554 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
555 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
556 */
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
557 (yomi, roma))
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
558 {
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
559 jrKanjiStatusWithValue ksv;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
560 jrKanjiStatus ks;
3071
a80f978d8342 [xemacs-hg @ 2005-11-16 07:14:13 by stephent]
stephent
parents: 3010
diff changeset
561 Extbyte *ext;
3010
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
562
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
563 CHECK_STRING (yomi);
4981
4aebb0131297 Cleanups/renaming of EXTERNAL_TO_C_STRING and friends
Ben Wing <ben@xemacs.org>
parents: 4953
diff changeset
564 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
565 strncpy (key_buffer, ext, sizeof (key_buffer));
a80f978d8342 [xemacs-hg @ 2005-11-16 07:14:13 by stephent]
stephent
parents: 3010
diff changeset
566 key_buffer[sizeof (key_buffer) - 1] = '\0';
3010
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
567 ks.length = strlen (key_buffer);
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 if (NILP (roma))
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 ks.mode = 0;
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 else
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
574 {
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
575 CHECK_STRING (roma);
4981
4aebb0131297 Cleanups/renaming of EXTERNAL_TO_C_STRING and friends
Ben Wing <ben@xemacs.org>
parents: 4953
diff changeset
576 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
577 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
578 strncpy (key_buffer + ks.length + 1, ext,
a80f978d8342 [xemacs-hg @ 2005-11-16 07:14:13 by stephent]
stephent
parents: 3010
diff changeset
579 sizeof (key_buffer) - ks.length - 1);
a80f978d8342 [xemacs-hg @ 2005-11-16 07:14:13 by stephent]
stephent
parents: 3010
diff changeset
580 key_buffer[sizeof (key_buffer) - 1] = '\0';
3010
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
581 }
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
582
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
583 ks.echoStr = (unsigned char *) key_buffer;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
584 ksv.buffer = (unsigned char *) key_buffer; /* ÊÖÃÍÍÑ (return value) */
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
585 ksv.bytes_buffer = KEYTOSTRSIZE;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
586 ksv.ks = &ks;
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 jrKanjiControl (0, KC_STOREYOMI, (char *)&ksv);
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 return storeResults (key_buffer, ksv.val, ksv.ks);
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
591 }
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
592
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
593 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
594 Do specified function at current mode.
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 (num, ch))
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
597 {
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
598 jrKanjiStatusWithValue ksv;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
599 jrKanjiStatus ks;
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 CHECK_INT (num);
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 if (NILP (ch))
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 *key_buffer = '@';
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 else
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
608 {
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
609 CHECK_CHAR (ch);
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
610 *key_buffer = XCHAR (ch);
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
611 }
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
612
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
613 ksv.buffer = (unsigned char *) key_buffer;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
614 ksv.bytes_buffer = KEYTOSTRSIZE;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
615 ksv.ks = &ks;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
616 ksv.val = XINT (num);
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
617 jrKanjiControl (0, KC_DO, (char *) &ksv);
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
618 return storeResults (key_buffer, ksv.val, ksv.ks);
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
619 }
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
620
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
621 DEFUN ("canna-parse", Fcanna_parse, 1, 1, 0, /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
622 Parse customize string.
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 (str))
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
625 {
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
626 Lisp_Object val;
3071
a80f978d8342 [xemacs-hg @ 2005-11-16 07:14:13 by stephent]
stephent
parents: 3010
diff changeset
627 Extbyte **p;
3010
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
628 int n;
3071
a80f978d8342 [xemacs-hg @ 2005-11-16 07:14:13 by stephent]
stephent
parents: 3010
diff changeset
629 Extbyte *ext;
3010
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
630
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
631 CHECK_STRING (str);
4981
4aebb0131297 Cleanups/renaming of EXTERNAL_TO_C_STRING and friends
Ben Wing <ben@xemacs.org>
parents: 4953
diff changeset
632 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
633 strncpy (key_buffer, ext, sizeof (key_buffer));
a80f978d8342 [xemacs-hg @ 2005-11-16 07:14:13 by stephent]
stephent
parents: 3010
diff changeset
634 key_buffer[sizeof (key_buffer) - 1] = '\0';
a80f978d8342 [xemacs-hg @ 2005-11-16 07:14:13 by stephent]
stephent
parents: 3010
diff changeset
635 p = (Extbyte **) key_buffer;
3010
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
636 n = jrKanjiControl (0, KC_PARSE, (char *) &p);
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
637 val = Qnil;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
638 while (n > 0)
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
639 {
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
640 n--;
3071
a80f978d8342 [xemacs-hg @ 2005-11-16 07:14:13 by stephent]
stephent
parents: 3010
diff changeset
641 val = Fcons (build_euc_string (p[n]), val);
3010
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 return val;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
644 }
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
645
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
646 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
647 Get current mode string.
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 ())
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 char buf[256];
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
652
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
653 jrKanjiControl (0, KC_QUERYMODE, buf);
3071
a80f978d8342 [xemacs-hg @ 2005-11-16 07:14:13 by stephent]
stephent
parents: 3010
diff changeset
654 return build_euc_string (buf);
3010
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
655 }
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
656
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
657 /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
658 * Functions following this line are for KKCP interface compatible
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
659 * library. These functions may be used by MILK system.
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
660 */
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
661
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
662 #define RKBUFSIZE 1024
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
663
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
664 static unsigned char yomibuf[RKBUFSIZE];
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
665 static short kugiri[RKBUFSIZE / 2];
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
666
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
667 static int
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
668 confirmContext (void)
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 if (IRCP_context < 0)
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 int context;
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 if ((context = jrKanjiControl (0, KC_GETCONTEXT, (char *) 0)) == -1)
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 return 0;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
677 }
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
678 IRCP_context = context;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
679 }
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
680 return 1;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
681 }
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
682
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
683 static int
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
684 byteLen (int bun, int len)
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 int i = 0, offset = 0, ch;
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 if (0 <= bun && bun < RKBUFSIZE)
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 offset = kugiri[bun];
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
691 }
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
692
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
693 while (len-- > 0 && (ch = (int) yomibuf[offset + i]))
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
694 {
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
695 i++;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
696 if (ch & 0x80)
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 i++;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
699 }
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 return i;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
702 }
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
703
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
704 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
705 Return the result of kana-to-kanji conversion.
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
706 Clause separator is set.
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 (yomi))
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
709 {
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
710 int nbun;
3071
a80f978d8342 [xemacs-hg @ 2005-11-16 07:14:13 by stephent]
stephent
parents: 3010
diff changeset
711 Extbyte *ext;
3010
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
712
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
713 CHECK_STRING (yomi);
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
714 if (confirmContext () == 0)
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
715 {
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
716 return Qnil;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
717 }
3071
a80f978d8342 [xemacs-hg @ 2005-11-16 07:14:13 by stephent]
stephent
parents: 3010
diff changeset
718
4981
4aebb0131297 Cleanups/renaming of EXTERNAL_TO_C_STRING and friends
Ben Wing <ben@xemacs.org>
parents: 4953
diff changeset
719 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
720 strncpy ((char *) yomibuf, ext, sizeof (yomibuf));
a80f978d8342 [xemacs-hg @ 2005-11-16 07:14:13 by stephent]
stephent
parents: 3010
diff changeset
721 yomibuf[sizeof (yomibuf) - 1] = '\0';
a80f978d8342 [xemacs-hg @ 2005-11-16 07:14:13 by stephent]
stephent
parents: 3010
diff changeset
722
a80f978d8342 [xemacs-hg @ 2005-11-16 07:14:13 by stephent]
stephent
parents: 3010
diff changeset
723 nbun = RkBgnBun (IRCP_context, yomibuf, strlen ((char *) yomibuf),
3010
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
724 (RK_XFER << RK_XFERBITS) | RK_KFER);
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 return kanjiYomiList (IRCP_context, nbun);
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
727 }
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
728
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
729 static Lisp_Object
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
730 kanjiYomiList (int context, int nbun)
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
731 {
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
732 Lisp_Object val, res = Qnil;
3071
a80f978d8342 [xemacs-hg @ 2005-11-16 07:14:13 by stephent]
stephent
parents: 3010
diff changeset
733 UExtbyte RkBuf[RKBUFSIZE];
3010
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
734 int len, i, total;
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 for (i = nbun ; i > 0 ; )
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
737 {
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
738 i--;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
739 RkGoTo (context, i);
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
740 len = RkGetKanji (context, RkBuf, RKBUFSIZE);
3071
a80f978d8342 [xemacs-hg @ 2005-11-16 07:14:13 by stephent]
stephent
parents: 3010
diff changeset
741 val = make_euc_string (RkBuf, len);
3010
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
742 len = RkGetYomi (context, RkBuf, RKBUFSIZE);
3071
a80f978d8342 [xemacs-hg @ 2005-11-16 07:14:13 by stephent]
stephent
parents: 3010
diff changeset
743 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
744 if (i < RKBUFSIZE / 2)
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 kugiri[i] = len;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
747 }
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 for (i = 0, total = 0 ; i < nbun ; i++)
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
750 {
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
751 int temp = kugiri[i];
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
752 kugiri[i] = total;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
753 total += temp;
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 return res;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
756 }
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
757
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
758 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
759 Return the list of candidates.
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 (bunsetsu))
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
762 {
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
763 int i, slen, len;
3071
a80f978d8342 [xemacs-hg @ 2005-11-16 07:14:13 by stephent]
stephent
parents: 3010
diff changeset
764 UExtbyte *p, RkBuf[RKBUFSIZE];
3010
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
765 Lisp_Object res = Qnil;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
766
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
767 CHECK_INT (bunsetsu);
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
768 if (confirmContext () == 0)
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
769 {
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
770 return Qnil;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
771 }
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
772 RkGoTo (IRCP_context, XINT (bunsetsu));
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
773 len = RkGetKanjiList (IRCP_context, RkBuf, RKBUFSIZE);
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
774 p = RkBuf;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
775 for (i = 0 ; i < len ; i++)
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
776 {
3071
a80f978d8342 [xemacs-hg @ 2005-11-16 07:14:13 by stephent]
stephent
parents: 3010
diff changeset
777 slen = strlen ((char *) p);
3010
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
778 if (NILP(res))
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
779 {
3071
a80f978d8342 [xemacs-hg @ 2005-11-16 07:14:13 by stephent]
stephent
parents: 3010
diff changeset
780 res = Fcons (make_euc_string (p, slen), Qnil);
3010
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
781 }
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
782 else
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
783 {
3071
a80f978d8342 [xemacs-hg @ 2005-11-16 07:14:13 by stephent]
stephent
parents: 3010
diff changeset
784 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
785 }
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
786 p += slen + 1;
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 return res;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
789 }
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
790
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
791 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
792 Specify the length of a clause.
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 (bunsetsu, bunlen))
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
795 {
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
796 int nbun, len;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
797
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
798 CHECK_INT (bunsetsu);
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
799 CHECK_INT (bunlen);
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
800
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
801 nbun = XINT (bunsetsu);
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
802 if (confirmContext () == 0)
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 return Qnil;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
805 }
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
806 RkGoTo (IRCP_context, nbun);
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
807 len = byteLen (nbun, XINT (bunlen));
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
808 return kanjiYomiList (IRCP_context, RkResize (IRCP_context, len));
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
809 }
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
810
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
811 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
812 Select a candidate.
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 (bun, kouho))
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 int nbun, nkouho;
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 if (confirmContext () == 0)
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
819 {
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
820 return Qnil;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
821 }
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
822 nbun = XINT(bun);
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
823 RkGoTo (IRCP_context, nbun);
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
824
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
825 nkouho = XINT(kouho);
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
826 RkXfer (IRCP_context, nkouho);
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
827 return Qt;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
828 }
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
829
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
830 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
831 End conversion.
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 ())
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 if (confirmContext () == 0)
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
836 {
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
837 return Qnil;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
838 }
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
839 RkEndBun (IRCP_context, 1); /* ³Ø½¬¤Ï¤¤¤Ä¤Ç¤â¹Ô¤Ã¤ÆÎɤ¤¤â¤Î¤Ê¤Î¤«¡©
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
840 (is it OK to invoke learning function
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
841 at arbitrary times?) */
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
842 return Qt;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
843 }
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
844
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
845 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
846 Quit conversion.
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 ())
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 if (confirmContext () == 0)
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 return Qnil;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
853 }
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
854 RkEndBun (IRCP_context, 0);
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
855 return Qt;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
856 }
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 /* variables below this line is constants of Canna */
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
859
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
860 static Fixnum canna_mode_AlphaMode;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
861 static Fixnum canna_mode_EmptyMode;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
862 static Fixnum canna_mode_KigoMode;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
863 static Fixnum canna_mode_YomiMode;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
864 static Fixnum canna_mode_JishuMode;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
865 static Fixnum canna_mode_TankouhoMode;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
866 static Fixnum canna_mode_IchiranMode;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
867 static Fixnum canna_mode_YesNoMode;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
868 static Fixnum canna_mode_OnOffMode;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
869 #ifdef CANNA_MODE_AdjustBunsetsuMode
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
870 static Fixnum canna_mode_AdjustBunsetsuMode;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
871 #endif
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
872 #ifdef CANNA_MODE_ChikujiYomiMode
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
873 static Fixnum canna_mode_ChikujiYomiMode;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
874 static Fixnum canna_mode_ChikujiTanMode;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
875 #endif
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
876
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
877 static Fixnum canna_mode_HenkanMode;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
878 #ifdef CANNA_MODE_HenkanNyuryokuMode
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
879 static Fixnum canna_mode_HenkanNyuryokuMode;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
880 #endif
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
881 #ifdef CANNA_MODE_ZenHiraHenkanMode
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
882 static Fixnum canna_mode_ZenHiraHenkanMode;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
883 #ifdef CANNA_MODE_HanHiraHenkanMode
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
884 static Fixnum canna_mode_HanHiraHenkanMode;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
885 #endif
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
886 static Fixnum canna_mode_ZenKataHenkanMode;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
887 static Fixnum canna_mode_HanKataHenkanMode;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
888 static Fixnum canna_mode_ZenAlphaHenkanMode;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
889 static Fixnum canna_mode_HanAlphaHenkanMode;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
890 #endif
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
891 static Fixnum canna_mode_ZenHiraKakuteiMode;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
892 #ifdef CANNA_MODE_HanHiraKakuteiMode
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
893 static Fixnum canna_mode_HanHiraKakuteiMode;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
894 #endif
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
895 static Fixnum canna_mode_ZenKataKakuteiMode;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
896 static Fixnum canna_mode_HanKataKakuteiMode;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
897 static Fixnum canna_mode_ZenAlphaKakuteiMode;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
898 static Fixnum canna_mode_HanAlphaKakuteiMode;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
899 static Fixnum canna_mode_HexMode;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
900 static Fixnum canna_mode_BushuMode;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
901 static Fixnum canna_mode_ExtendMode;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
902 static Fixnum canna_mode_RussianMode;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
903 static Fixnum canna_mode_GreekMode;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
904 static Fixnum canna_mode_LineMode;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
905 static Fixnum canna_mode_ChangingServerMode;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
906 static Fixnum canna_mode_HenkanMethodMode;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
907 static Fixnum canna_mode_DeleteDicMode;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
908 static Fixnum canna_mode_TourokuMode;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
909 static Fixnum canna_mode_TourokuEmptyMode;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
910 static Fixnum canna_mode_TourokuHinshiMode;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
911 static Fixnum canna_mode_TourokuDicMode;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
912 static Fixnum canna_mode_QuotedInsertMode;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
913 static Fixnum canna_mode_BubunMuhenkanMode;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
914 static Fixnum canna_mode_MountDicMode;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
915
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
916 static Fixnum canna_fn_SelfInsert;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
917 static Fixnum canna_fn_FunctionalInsert;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
918 static Fixnum canna_fn_QuotedInsert;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
919 static Fixnum canna_fn_JapaneseMode;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
920 static Fixnum canna_fn_AlphaMode;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
921 static Fixnum canna_fn_HenkanNyuryokuMode;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
922 static Fixnum canna_fn_Forward;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
923 static Fixnum canna_fn_Backward;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
924 static Fixnum canna_fn_Next;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
925 static Fixnum canna_fn_Prev;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
926 static Fixnum canna_fn_BeginningOfLine;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
927 static Fixnum canna_fn_EndOfLine;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
928 static Fixnum canna_fn_DeleteNext;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
929 static Fixnum canna_fn_DeletePrevious;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
930 static Fixnum canna_fn_KillToEndOfLine;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
931 static Fixnum canna_fn_Henkan;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
932 static Fixnum canna_fn_Kakutei;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
933 static Fixnum canna_fn_Extend;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
934 static Fixnum canna_fn_Shrink;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
935 #ifdef CANNA_FN_AdjustBunsetsu
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
936 static Fixnum canna_fn_AdjustBunsetsu;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
937 #endif
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
938 static Fixnum canna_fn_Quit;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
939 static Fixnum canna_fn_ConvertAsHex;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
940 static Fixnum canna_fn_ConvertAsBushu;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
941 static Fixnum canna_fn_KouhoIchiran;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
942 static Fixnum canna_fn_BubunMuhenkan;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
943 static Fixnum canna_fn_Zenkaku;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
944 static Fixnum canna_fn_Hankaku;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
945 static Fixnum canna_fn_ToUpper;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
946 static Fixnum canna_fn_Capitalize;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
947 static Fixnum canna_fn_ToLower;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
948 static Fixnum canna_fn_Hiragana;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
949 static Fixnum canna_fn_Katakana;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
950 static Fixnum canna_fn_Romaji;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
951 #ifdef CANNA_FN_BaseHiragana
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
952 static Fixnum canna_fn_BaseHiragana;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
953 static Fixnum canna_fn_BaseKatakana;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
954 static Fixnum canna_fn_BaseEisu;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
955 static Fixnum canna_fn_BaseZenkaku;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
956 static Fixnum canna_fn_BaseHankaku;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
957 static Fixnum canna_fn_BaseKana;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
958 static Fixnum canna_fn_BaseKakutei;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
959 static Fixnum canna_fn_BaseHenkan;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
960 static Fixnum canna_fn_BaseHiraKataToggle;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
961 static Fixnum canna_fn_BaseZenHanToggle;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
962 static Fixnum canna_fn_BaseKanaEisuToggle;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
963 static Fixnum canna_fn_BaseKakuteiHenkanToggle;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
964 static Fixnum canna_fn_BaseRotateForward;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
965 static Fixnum canna_fn_BaseRotateBackward;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
966 #endif
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
967 static Fixnum canna_fn_ExtendMode;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
968 static Fixnum canna_fn_Touroku;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
969 static Fixnum canna_fn_HexMode;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
970 static Fixnum canna_fn_BushuMode;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
971 static Fixnum canna_fn_KigouMode;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
972 #ifdef CANNA_FN_Mark
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
973 static Fixnum canna_fn_Mark;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
974 #endif
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
975 #ifdef CANNA_FN_TemporalMode
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
976 static Fixnum canna_fn_TemporalMode;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
977 #endif
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
978
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
979 static Fixnum canna_key_Nfer;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
980 static Fixnum canna_key_Xfer;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
981 static Fixnum canna_key_Up;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
982 static Fixnum canna_key_Left;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
983 static Fixnum canna_key_Right;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
984 static Fixnum canna_key_Down;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
985 static Fixnum canna_key_Insert;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
986 static Fixnum canna_key_Rollup;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
987 static Fixnum canna_key_Rolldown;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
988 static Fixnum canna_key_Home;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
989 static Fixnum canna_key_Help;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
990 static Fixnum canna_key_KP_Key;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
991 static Fixnum canna_key_Shift_Nfer;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
992 static Fixnum canna_key_Shift_Xfer;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
993 static Fixnum canna_key_Shift_Up;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
994 static Fixnum canna_key_Shift_Left;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
995 static Fixnum canna_key_Shift_Right;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
996 static Fixnum canna_key_Shift_Down;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
997 static Fixnum canna_key_Cntrl_Nfer;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
998 static Fixnum canna_key_Cntrl_Xfer;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
999 static Fixnum canna_key_Cntrl_Up;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1000 static Fixnum canna_key_Cntrl_Left;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1001 static Fixnum canna_key_Cntrl_Right;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1002 static Fixnum canna_key_Cntrl_Down;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1003
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1004 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
1005 1996/6/7 */
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1006
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1007 /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1008 * 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
1009 * 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
1010 * 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
1011 * functions which must appear in the module source code.
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1012 * 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
1013 * 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
1014 * it is not present in the module.
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1015 *
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1016 * 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
1017 * 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
1018 * function will contain calls to DEFSUBR().
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1019 *
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1020 * 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
1021 * 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
1022 * 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
1023 *
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1024 * 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
1025 * 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
1026 * 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
1027 *
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1028 * 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
1029 * 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
1030 * 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
1031 * appear in this function.
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1032 *
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1033 * 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
1034 * 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
1035 * 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
1036 * 'vars_of_sample', and 'unload_sample'.
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1037 */
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1038
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1039 #if 0
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1040 void
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1041 modules_of_canna_api (void)
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1042 {
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1043 /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1044 * 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
1045 * 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
1046 * emodules_load ("dependent.ell", "canna2", "1.0.0");
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1047 */
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 #endif
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1050
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1051 void
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1052 syms_of_canna_api (void)
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1053 {
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1054 DEFSUBR (Fcanna_key_proc);
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1055 DEFSUBR (Fcanna_initialize);
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1056 DEFSUBR (Fcanna_finalize);
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1057 DEFSUBR (Fcanna_touroku_string);
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1058 DEFSUBR (Fcanna_set_width);
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1059 DEFSUBR (Fcanna_change_mode);
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1060 DEFSUBR (Fcanna_store_yomi);
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1061 DEFSUBR (Fcanna_do_function);
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1062 DEFSUBR (Fcanna_parse);
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1063 DEFSUBR (Fcanna_query_mode);
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1064 DEFSUBR (Fcanna_set_bunsetsu);
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1065
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1066 DEFSUBR (Fcanna_henkan_begin);
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1067 DEFSUBR (Fcanna_henkan_next);
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1068 DEFSUBR (Fcanna_bunsetu_henkou);
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1069 DEFSUBR (Fcanna_henkan_kakutei);
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1070 DEFSUBR (Fcanna_henkan_end);
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1071 DEFSUBR (Fcanna_henkan_quit);
3071
a80f978d8342 [xemacs-hg @ 2005-11-16 07:14:13 by stephent]
stephent
parents: 3010
diff changeset
1072
a80f978d8342 [xemacs-hg @ 2005-11-16 07:14:13 by stephent]
stephent
parents: 3010
diff changeset
1073 DEFSYMBOL (Qeuc_jp);
3010
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1074 }
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1075
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1076 void
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1077 vars_of_canna_api (void)
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1078 {
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1079 DEFVAR_LISP ("CANNA", &VCANNA); /* hir@nec, 1992.5.21 */
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1080 VCANNA = Qt; /* hir@nec, 1992.5.21 */
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 DEFVAR_LISP ("canna-kakutei-string", &Vcanna_kakutei_string /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1083
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 Vcanna_kakutei_string = Qnil;
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 DEFVAR_LISP ("canna-kakutei-yomi", &Vcanna_kakutei_yomi /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1088
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 Vcanna_kakutei_yomi = Qnil;
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 DEFVAR_LISP ("canna-kakutei-romaji", &Vcanna_kakutei_romaji /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1093
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 Vcanna_kakutei_romaji = Qnil;
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 DEFVAR_LISP ("canna-henkan-string", &Vcanna_henkan_string /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1098
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 Vcanna_henkan_string = Qnil;
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 DEFVAR_INT ("canna-henkan-length", &canna_henkan_length /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1103
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 canna_henkan_length = 0;
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 DEFVAR_INT ("canna-henkan-revpos", &canna_henkan_revPos /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1108
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 canna_henkan_revPos = 0;
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 DEFVAR_INT ("canna-henkan-revlen", &canna_henkan_revLen /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1113
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 canna_henkan_revLen = 0;
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 DEFVAR_LISP ("canna-ichiran-string", &Vcanna_ichiran_string /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1118
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 Vcanna_ichiran_string = Qnil;
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 DEFVAR_INT ("canna-ichiran-length", &canna_ichiran_length /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1123
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 canna_ichiran_length = 0;
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 DEFVAR_INT ("canna-ichiran-revpos", &canna_ichiran_revPos /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1128
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 canna_ichiran_revPos = 0;
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 DEFVAR_INT ("canna-ichiran-revlen", &canna_ichiran_revLen /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1133
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 canna_ichiran_revLen = 0;
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 DEFVAR_LISP ("canna-mode-string", &Vcanna_mode_string /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1138
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 Vcanna_mode_string = Qnil;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1141
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1142 DEFVAR_BOOL ("canna-empty-info", &canna_empty_info /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1143 For canna
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 canna_empty_info = 0;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1146
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1147 DEFVAR_BOOL ("canna-through-info", &canna_through_info /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1148 For canna
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 canna_through_info = 0;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1151
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1152 DEFVAR_BOOL ("canna-underline", &canna_underline /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1153 For canna
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 canna_underline = 0;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1156
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1157 DEFVAR_BOOL ("canna-inhibit-hankakukana", &canna_inhibit_hankakukana /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1158 For canna
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 canna_inhibit_hankakukana = 0;
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 DEFVAR_INT ("canna-mode-alpha-mode", &canna_mode_AlphaMode /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1163
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 canna_mode_AlphaMode = IROHA_MODE_AlphaMode;
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 DEFVAR_INT ("canna-mode-empty-mode", &canna_mode_EmptyMode /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1168
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 canna_mode_EmptyMode = IROHA_MODE_EmptyMode;
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 DEFVAR_INT ("canna-mode-kigo-mode", &canna_mode_KigoMode /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1173
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 canna_mode_KigoMode = IROHA_MODE_KigoMode;
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 DEFVAR_INT ("canna-mode-yomi-mode", &canna_mode_YomiMode /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1178
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 canna_mode_YomiMode = IROHA_MODE_YomiMode;
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 DEFVAR_INT ("canna-mode-jishu-mode", &canna_mode_JishuMode /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1183
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 canna_mode_JishuMode = IROHA_MODE_JishuMode;
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 DEFVAR_INT ("canna-mode-tankouho-mode", &canna_mode_TankouhoMode /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1188
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 canna_mode_TankouhoMode = IROHA_MODE_TankouhoMode;
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 DEFVAR_INT ("canna-mode-ichiran-mode", &canna_mode_IchiranMode /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1193
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 canna_mode_IchiranMode = IROHA_MODE_IchiranMode;
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 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
1198
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 canna_mode_YesNoMode = IROHA_MODE_YesNoMode;
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 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
1203
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 canna_mode_OnOffMode = IROHA_MODE_OnOffMode;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1206
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1207 #ifdef CANNA_MODE_AdjustBunsetsuMode
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1208 DEFVAR_INT ("canna-mode-adjust-bunsetsu-mode",
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1209 &canna_mode_AdjustBunsetsuMode /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1210
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1211 */ );
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1212 canna_mode_AdjustBunsetsuMode = CANNA_MODE_AdjustBunsetsuMode;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1213 #endif
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1214 #ifdef CANNA_MODE_ChikujiYomiMode
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1215 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
1216
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1217 */ );
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1218 canna_mode_ChikujiYomiMode = CANNA_MODE_ChikujiYomiMode;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1219
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1220 DEFVAR_INT ("canna-mode-chikuji-bunsetsu-mode",
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1221 &canna_mode_ChikujiTanMode /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1222
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1223 */ );
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1224 canna_mode_ChikujiTanMode = CANNA_MODE_ChikujiTanMode;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1225 #endif
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 DEFVAR_INT ("canna-mode-henkan-mode", &canna_mode_HenkanMode /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1228
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1229 */ );
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1230 canna_mode_HenkanMode = IROHA_MODE_HenkanMode;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1231
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1232 #ifdef CANNA_MODE_HenkanNyuryokuMode
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1233 DEFVAR_INT ("canna-mode-henkan-nyuuryoku-mode",
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1234 &canna_mode_HenkanNyuryokuMode /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1235
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1236 */ );
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1237 canna_mode_HenkanNyuryokuMode = CANNA_MODE_HenkanNyuryokuMode;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1238 #endif
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1239 #ifdef CANNA_MODE_ZenHiraHenkanMode
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1240 DEFVAR_INT ("canna-mode-zen-hira-henkan-mode",
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1241 &canna_mode_ZenHiraHenkanMode /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1242
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1243 */ );
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1244 canna_mode_ZenHiraHenkanMode = CANNA_MODE_ZenHiraHenkanMode;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1245 #ifdef CANNA_MODE_HanHiraHenkanMode
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1246 DEFVAR_INT ("canna-mode-han-hira-henkan-mode",
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1247 &canna_mode_HanHiraHenkanMode /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1248
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1249 */ );
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1250 canna_mode_HanHiraHenkanMode = CANNA_MODE_HanHiraHenkanMode;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1251 #endif
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1252 DEFVAR_INT ("canna-mode-zen-kata-henkan-mode",
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1253 &canna_mode_ZenKataHenkanMode /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1254
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1255 */ );
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1256 canna_mode_ZenKataHenkanMode = CANNA_MODE_ZenKataHenkanMode;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1257
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1258 DEFVAR_INT ("canna-mode-han-kata-henkan-mode",
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1259 &canna_mode_HanKataHenkanMode /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1260
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1261 */ );
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1262 canna_mode_HanKataHenkanMode = CANNA_MODE_HanKataHenkanMode;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1263
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1264 DEFVAR_INT ("canna-mode-zen-alpha-henkan-mode",
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1265 &canna_mode_ZenAlphaHenkanMode /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1266
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1267 */ );
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1268 canna_mode_ZenAlphaHenkanMode = CANNA_MODE_ZenAlphaHenkanMode;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1269
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1270 DEFVAR_INT ("canna-mode-han-alpha-henkan-mode",
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1271 &canna_mode_HanAlphaHenkanMode /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1272
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1273 */ );
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1274 canna_mode_HanAlphaHenkanMode = CANNA_MODE_HanAlphaHenkanMode;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1275 #endif
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1276 DEFVAR_INT ("canna-mode-zen-hira-kakutei-mode",
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1277 &canna_mode_ZenHiraKakuteiMode /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1278
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1279 */ );
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1280 canna_mode_ZenHiraKakuteiMode = IROHA_MODE_ZenHiraKakuteiMode;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1281 #ifdef CANNA_MODE_HanHiraKakuteiMode
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1282 DEFVAR_INT ("canna-mode-han-hira-kakutei-mode",
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1283 &canna_mode_HanHiraKakuteiMode /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1284
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1285 */ );
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1286 canna_mode_HanHiraKakuteiMode = CANNA_MODE_HanHiraKakuteiMode;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1287 #endif
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1288 DEFVAR_INT ("canna-mode-zen-kata-kakutei-mode",
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1289 &canna_mode_ZenKataKakuteiMode /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1290
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1291 */ );
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1292 canna_mode_ZenKataKakuteiMode = IROHA_MODE_ZenKataKakuteiMode;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1293
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1294 DEFVAR_INT ("canna-mode-han-kata-kakutei-mode",
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1295 &canna_mode_HanKataKakuteiMode /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1296
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1297 */ );
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1298 canna_mode_HanKataKakuteiMode = IROHA_MODE_HanKataKakuteiMode;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1299
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1300 DEFVAR_INT ("canna-mode-zen-alpha-kakutei-mode",
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1301 &canna_mode_ZenAlphaKakuteiMode /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1302
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1303 */ );
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1304 canna_mode_ZenAlphaKakuteiMode = IROHA_MODE_ZenAlphaKakuteiMode;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1305
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1306 DEFVAR_INT ("canna-mode-han-alpha-kakutei-mode",
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1307 &canna_mode_HanAlphaKakuteiMode /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1308
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1309 */ );
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1310 canna_mode_HanAlphaKakuteiMode = IROHA_MODE_HanAlphaKakuteiMode;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1311
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1312 DEFVAR_INT ("canna-mode-hex-mode", &canna_mode_HexMode /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1313
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 canna_mode_HexMode = IROHA_MODE_HexMode;
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 DEFVAR_INT ("canna-mode-bushu-mode", &canna_mode_BushuMode /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1318
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 canna_mode_BushuMode = IROHA_MODE_BushuMode;
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 DEFVAR_INT ("canna-mode-extend-mode", &canna_mode_ExtendMode /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1323
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 canna_mode_ExtendMode = IROHA_MODE_ExtendMode;
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 DEFVAR_INT ("canna-mode-russian-mode", &canna_mode_RussianMode /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1328
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 canna_mode_RussianMode = IROHA_MODE_RussianMode;
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 DEFVAR_INT ("canna-mode-greek-mode", &canna_mode_GreekMode /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1333
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 canna_mode_GreekMode = IROHA_MODE_GreekMode;
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 DEFVAR_INT ("canna-mode-line-mode", &canna_mode_LineMode /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1338
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 canna_mode_LineMode = IROHA_MODE_LineMode;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1341
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1342 DEFVAR_INT ("canna-mode-changing-server-mode",
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1343 &canna_mode_ChangingServerMode /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1344
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1345 */ );
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1346 canna_mode_ChangingServerMode = IROHA_MODE_ChangingServerMode;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1347
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1348 DEFVAR_INT ("canna-mode-henkan-method-mode",
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1349 &canna_mode_HenkanMethodMode /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1350
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1351 */ );
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1352 canna_mode_HenkanMethodMode = IROHA_MODE_HenkanMethodMode;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1353
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1354 DEFVAR_INT ("canna-mode-delete-dic-mode", &canna_mode_DeleteDicMode /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1355
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 canna_mode_DeleteDicMode = IROHA_MODE_DeleteDicMode;
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 DEFVAR_INT ("canna-mode-touroku-mode", &canna_mode_TourokuMode /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1360
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 canna_mode_TourokuMode = IROHA_MODE_TourokuMode;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1363
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1364 DEFVAR_INT ("canna-mode-touroku-empty-mode",
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1365 &canna_mode_TourokuEmptyMode /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1366
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1367 */ );
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1368 canna_mode_TourokuEmptyMode = IROHA_MODE_TourokuEmptyMode;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1369
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1370 DEFVAR_INT ("canna-mode-touroku-hinshi-mode",
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1371 &canna_mode_TourokuHinshiMode /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1372
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1373 */ );
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1374 canna_mode_TourokuHinshiMode = IROHA_MODE_TourokuHinshiMode;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1375
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1376 DEFVAR_INT ("canna-mode-touroku-dic-mode", &canna_mode_TourokuDicMode /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1377
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 canna_mode_TourokuDicMode = IROHA_MODE_TourokuDicMode;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1380
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1381 DEFVAR_INT ("canna-mode-quoted-insert-mode",
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1382 &canna_mode_QuotedInsertMode /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1383
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1384 */ );
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1385 canna_mode_QuotedInsertMode = IROHA_MODE_QuotedInsertMode;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1386
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1387 DEFVAR_INT ("canna-mode-bubun-muhenkan-mode",
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1388 &canna_mode_BubunMuhenkanMode /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1389
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1390 */ );
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1391 canna_mode_BubunMuhenkanMode = IROHA_MODE_BubunMuhenkanMode;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1392
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1393 DEFVAR_INT ("canna-mode-mount-dic-mode", &canna_mode_MountDicMode /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1394
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 canna_mode_MountDicMode = IROHA_MODE_MountDicMode;
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 DEFVAR_INT ("canna-func-self-insert", &canna_fn_SelfInsert /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1399
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 canna_fn_SelfInsert = IROHA_FN_SelfInsert;
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 DEFVAR_INT ("canna-func-functional-insert", &canna_fn_FunctionalInsert /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1404
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 canna_fn_FunctionalInsert = IROHA_FN_FunctionalInsert;
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 DEFVAR_INT ("canna-func-quoted-insert", &canna_fn_QuotedInsert /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1409
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 canna_fn_QuotedInsert = IROHA_FN_QuotedInsert;
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 DEFVAR_INT ("canna-func-japanese-mode", &canna_fn_JapaneseMode /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1414
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 canna_fn_JapaneseMode = IROHA_FN_JapaneseMode;
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 DEFVAR_INT ("canna-func-alpha-mode", &canna_fn_AlphaMode /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1419
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 canna_fn_AlphaMode = IROHA_FN_AlphaMode;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1422
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1423 DEFVAR_INT ("canna-func-henkan-nyuryoku-mode",
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1424 &canna_fn_HenkanNyuryokuMode /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1425
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1426 */ );
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1427 canna_fn_HenkanNyuryokuMode = IROHA_FN_HenkanNyuryokuMode;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1428
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1429 DEFVAR_INT ("canna-func-forward", &canna_fn_Forward /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1430
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 canna_fn_Forward = IROHA_FN_Forward;
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 DEFVAR_INT ("canna-func-backward", &canna_fn_Backward /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1435
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 canna_fn_Backward = IROHA_FN_Backward;
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 DEFVAR_INT ("canna-func-next", &canna_fn_Next /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1440
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 canna_fn_Next = IROHA_FN_Next;
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 DEFVAR_INT ("canna-func-previous", &canna_fn_Prev /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1445
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 canna_fn_Prev = IROHA_FN_Prev;
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 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
1450
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 canna_fn_BeginningOfLine = IROHA_FN_BeginningOfLine;
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 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
1455
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 canna_fn_EndOfLine = IROHA_FN_EndOfLine;
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 DEFVAR_INT ("canna-func-delete-next", &canna_fn_DeleteNext /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1460
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 canna_fn_DeleteNext = IROHA_FN_DeleteNext;
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 DEFVAR_INT ("canna-func-delete-previous", &canna_fn_DeletePrevious /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1465
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 canna_fn_DeletePrevious = IROHA_FN_DeletePrevious;
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 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
1470
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 canna_fn_KillToEndOfLine = IROHA_FN_KillToEndOfLine;
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 DEFVAR_INT ("canna-func-henkan", &canna_fn_Henkan /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1475
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 canna_fn_Henkan = IROHA_FN_Henkan;
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 DEFVAR_INT ("canna-func-kakutei", &canna_fn_Kakutei /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1480
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 canna_fn_Kakutei = IROHA_FN_Kakutei;
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 DEFVAR_INT ("canna-func-extend", &canna_fn_Extend /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1485
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 canna_fn_Extend = IROHA_FN_Extend;
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 DEFVAR_INT ("canna-func-shrink", &canna_fn_Shrink /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1490
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 canna_fn_Shrink = IROHA_FN_Shrink;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1493
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1494 #ifdef CANNA_FN_AdjustBunsetsu
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1495 DEFVAR_INT ("canna-func-adjust-bunsetsu", &canna_fn_AdjustBunsetsu /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1496
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1497 */ );
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1498 canna_fn_AdjustBunsetsu = CANNA_FN_AdjustBunsetsu;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1499 #endif
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1500 DEFVAR_INT ("canna-func-quit", &canna_fn_Quit /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1501
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 canna_fn_Quit = IROHA_FN_Quit;
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 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
1506
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 canna_fn_ConvertAsHex = IROHA_FN_ConvertAsHex;
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 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
1511
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 canna_fn_ConvertAsBushu = IROHA_FN_ConvertAsBushu;
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 DEFVAR_INT ("canna-func-kouho-ichiran", &canna_fn_KouhoIchiran /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1516
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 canna_fn_KouhoIchiran = IROHA_FN_KouhoIchiran;
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 DEFVAR_INT ("canna-func-bubun-muhenkan", &canna_fn_BubunMuhenkan /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1521
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 canna_fn_BubunMuhenkan = IROHA_FN_BubunMuhenkan;
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 DEFVAR_INT ("canna-func-zenkaku", &canna_fn_Zenkaku /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1526
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 canna_fn_Zenkaku = IROHA_FN_Zenkaku;
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 DEFVAR_INT ("canna-func-hankaku", &canna_fn_Hankaku /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1531
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 canna_fn_Hankaku = IROHA_FN_Hankaku;
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 DEFVAR_INT ("canna-func-to-upper", &canna_fn_ToUpper /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1536
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 canna_fn_ToUpper = IROHA_FN_ToUpper;
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 DEFVAR_INT ("canna-func-capitalize", &canna_fn_Capitalize /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1541
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 canna_fn_Capitalize = IROHA_FN_Capitalize;
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 DEFVAR_INT ("canna-func-to-lower", &canna_fn_ToLower /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1546
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 canna_fn_ToLower = IROHA_FN_ToLower;
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 DEFVAR_INT ("canna-func-hiragana", &canna_fn_Hiragana /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1551
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 canna_fn_Hiragana = IROHA_FN_Hiragana;
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 DEFVAR_INT ("canna-func-katakana", &canna_fn_Katakana /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1556
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 canna_fn_Katakana = IROHA_FN_Katakana;
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 DEFVAR_INT ("canna-func-romaji", &canna_fn_Romaji /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1561
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 canna_fn_Romaji = IROHA_FN_Romaji;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1564
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1565 #ifdef CANNA_FN_BaseHiragana
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1566 DEFVAR_INT ("canna-func-base-hiragana", &canna_fn_BaseHiragana /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1567
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1568 */ );
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1569 canna_fn_BaseHiragana = CANNA_FN_BaseHiragana;
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 DEFVAR_INT ("canna-func-base-katakana", &canna_fn_BaseKatakana /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1572
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 canna_fn_BaseKatakana = CANNA_FN_BaseKatakana;
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 DEFVAR_INT ("canna-func-base-eisu", &canna_fn_BaseEisu /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1577
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 canna_fn_BaseEisu = CANNA_FN_BaseEisu;
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 DEFVAR_INT ("canna-func-base-zenkaku", &canna_fn_BaseZenkaku /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1582
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 canna_fn_BaseZenkaku = CANNA_FN_BaseZenkaku;
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 DEFVAR_INT ("canna-func-base-hankaku", &canna_fn_BaseHankaku /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1587
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 canna_fn_BaseHankaku = CANNA_FN_BaseHankaku;
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 DEFVAR_INT ("canna-func-base-kana", &canna_fn_BaseKana /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1592
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 canna_fn_BaseKana = CANNA_FN_BaseKana;
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 DEFVAR_INT ("canna-func-base-kakutei", &canna_fn_BaseKakutei /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1597
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 canna_fn_BaseKakutei = CANNA_FN_BaseKakutei;
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 DEFVAR_INT ("canna-func-base-henkan", &canna_fn_BaseHenkan /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1602
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 canna_fn_BaseHenkan = CANNA_FN_BaseHenkan;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1605
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1606 DEFVAR_INT ("canna-func-base-hiragana-katakana-toggle",
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1607 &canna_fn_BaseHiraKataToggle /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1608
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1609 */ );
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1610 canna_fn_BaseHiraKataToggle = CANNA_FN_BaseHiraKataToggle;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1611
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1612 DEFVAR_INT ("canna-func-base-zenkaku-hankaku-toggle",
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1613 &canna_fn_BaseZenHanToggle /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1614
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1615 */ );
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1616 canna_fn_BaseZenHanToggle = CANNA_FN_BaseZenHanToggle;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1617
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1618 DEFVAR_INT ("canna-func-base-kana-eisu-toggle",
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1619 &canna_fn_BaseKanaEisuToggle /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1620
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1621 */ );
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1622 canna_fn_BaseKanaEisuToggle = CANNA_FN_BaseKanaEisuToggle;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1623
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1624 DEFVAR_INT ("canna-func-base-kakutei-henkan-toggle",
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1625 &canna_fn_BaseKakuteiHenkanToggle /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1626
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1627 */ );
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1628 canna_fn_BaseKakuteiHenkanToggle = CANNA_FN_BaseKakuteiHenkanToggle;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1629
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1630 DEFVAR_INT ("canna-func-base-rotate-forward",
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1631 &canna_fn_BaseRotateForward /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1632
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1633 */ );
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1634 canna_fn_BaseRotateForward = CANNA_FN_BaseRotateForward;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1635
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1636 DEFVAR_INT ("canna-func-base-rotate-backward",
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1637 &canna_fn_BaseRotateBackward /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1638
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1639 */ );
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1640 canna_fn_BaseRotateBackward = CANNA_FN_BaseRotateBackward;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1641
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1642 #endif
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1643 DEFVAR_INT ("canna-func-extend-mode", &canna_fn_ExtendMode /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1644
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1645 */ );
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1646 canna_fn_ExtendMode = IROHA_FN_ExtendMode;
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 DEFVAR_INT ("canna-func-touroku", &canna_fn_Touroku /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1649
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 canna_fn_Touroku = IROHA_FN_Touroku;
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 DEFVAR_INT ("canna-func-hex-mode", &canna_fn_HexMode /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1654
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 canna_fn_HexMode = IROHA_FN_HexMode;
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 DEFVAR_INT ("canna-func-bushu-mode", &canna_fn_BushuMode /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1659
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 canna_fn_BushuMode = IROHA_FN_BushuMode;
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 DEFVAR_INT ("canna-func-kigo-mode", &canna_fn_KigouMode /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1664
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 canna_fn_KigouMode = IROHA_FN_KigouMode;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1667
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1668 #ifdef CANNA_FN_Mark
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1669 DEFVAR_INT ("canna-func-mark", &canna_fn_Mark /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1670
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1671 */ );
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1672 canna_fn_Mark = CANNA_FN_Mark;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1673 #endif
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1674 #ifdef CANNA_FN_TemporalMode
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1675 DEFVAR_INT ("canna-func-temporal-mode", &canna_fn_TemporalMode /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1676
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1677 */ );
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1678 canna_fn_TemporalMode = CANNA_FN_TemporalMode;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1679 #endif
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1680
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1681 DEFVAR_INT ("canna-key-nfer", &canna_key_Nfer /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1682
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1683 */ );
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1684 canna_key_Nfer = IROHA_KEY_Nfer;
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 DEFVAR_INT ("canna-key-xfer", &canna_key_Xfer /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1687
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 canna_key_Xfer = IROHA_KEY_Xfer;
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 DEFVAR_INT ("canna-key-up", &canna_key_Up /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1692
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 canna_key_Up = IROHA_KEY_Up;
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 DEFVAR_INT ("canna-key-left", &canna_key_Left /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1697
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 canna_key_Left = IROHA_KEY_Left;
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 DEFVAR_INT ("canna-key-right", &canna_key_Right /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1702
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 canna_key_Right = IROHA_KEY_Right;
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 DEFVAR_INT ("canna-key-down", &canna_key_Down /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1707
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 canna_key_Down = IROHA_KEY_Down;
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 DEFVAR_INT ("canna-key-insert", &canna_key_Insert /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1712
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 canna_key_Insert = IROHA_KEY_Insert;
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 DEFVAR_INT ("canna-key-rollup", &canna_key_Rollup /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1717
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 canna_key_Rollup = IROHA_KEY_Rollup;
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 DEFVAR_INT ("canna-key-rolldown", &canna_key_Rolldown /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1722
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 canna_key_Rolldown = IROHA_KEY_Rolldown;
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 DEFVAR_INT ("canna-key-home", &canna_key_Home /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1727
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 canna_key_Home = IROHA_KEY_Home;
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 DEFVAR_INT ("canna-key-help", &canna_key_Help /*
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1732
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 canna_key_Help = IROHA_KEY_Help;
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 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
1737
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 canna_key_KP_Key = IROHA_KEY_KP_Key;
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 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
1742
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 canna_key_Shift_Nfer = IROHA_KEY_Shift_Nfer;
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 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
1747
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 canna_key_Shift_Xfer = IROHA_KEY_Shift_Xfer;
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 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
1752
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 canna_key_Shift_Up = IROHA_KEY_Shift_Up;
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 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
1757
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 canna_key_Shift_Left = IROHA_KEY_Shift_Left;
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 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
1762
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 canna_key_Shift_Right = IROHA_KEY_Shift_Right;
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 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
1767
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 canna_key_Shift_Down = IROHA_KEY_Shift_Down;
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 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
1772
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 canna_key_Cntrl_Nfer = IROHA_KEY_Cntrl_Nfer;
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 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
1777
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 canna_key_Cntrl_Xfer = IROHA_KEY_Cntrl_Xfer;
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 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
1782
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 canna_key_Cntrl_Up = IROHA_KEY_Cntrl_Up;
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 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
1787
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 canna_key_Cntrl_Left = IROHA_KEY_Cntrl_Left;
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 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
1792
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 canna_key_Cntrl_Right = IROHA_KEY_Cntrl_Right;
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 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
1797
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 canna_key_Cntrl_Down = IROHA_KEY_Cntrl_Down;
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 Fprovide (intern ("CANNA"));
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1802 }
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1803
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1804 #if 0
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1805 #ifdef HAVE_SHLIB
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1806 void unload_canna_api (void);
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1807 void
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1808 unload_canna_api (void)
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1809 {
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1810 /* 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
1811 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
1812 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
1813 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
1814 must have a corresponding unstaticpro_nodump (&Qsample_var) here. */
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1815 }
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1816 #endif
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1817 #endif
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1818
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1819 #ifdef CANNA_MULE
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1820
3071
a80f978d8342 [xemacs-hg @ 2005-11-16 07:14:13 by stephent]
stephent
parents: 3010
diff changeset
1821 /* 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
1822 static int
3071
a80f978d8342 [xemacs-hg @ 2005-11-16 07:14:13 by stephent]
stephent
parents: 3010
diff changeset
1823 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
1824 {
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1825 unsigned char ch, *cp = p;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1826 int len = 0;
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 while ((cp < p + l) && (ch = *cp))
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 if ((unsigned char) ch == ISO_CODE_SS2)
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1831 {
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1832 len++;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1833 cp += 2;
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 else if ((unsigned char) ch == ISO_CODE_SS3)
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1836 {
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1837 len++;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1838 cp += 3;
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 else if (ch & 0x80)
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1841 {
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1842 len++;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1843 cp += 2;
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 else
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1846 {
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1847 len++;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1848 cp++;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1849 }
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 return (len);
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1852 }
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1853
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1854 /* count number of characters */
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1855 static void
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1856 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
1857 Fixnum *clen, Fixnum *cpos, Fixnum *crev)
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 unsigned char *q = p;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1860
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1861 *clen = *cpos = *crev = 0;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1862 if (len == 0) return;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1863 while (q < p + pos)
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1864 {
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1865 (*clen)++;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1866 (*cpos)++;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1867 if (*q++ & 0x80) q++;
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 while (q < p + pos + rev)
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1870 {
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1871 (*clen)++;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1872 (*crev)++;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1873 if (*q++ & 0x80) q++;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1874 }
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1875 while (q < p + len)
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1876 {
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1877 (*clen)++;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1878 if (*q++ & 0x80) q++;
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1879 }
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1880 }
bd7174adf0f2 [xemacs-hg @ 2005-10-21 15:48:28 by stephent]
stephent
parents:
diff changeset
1881 #endif /* CANNA_MULE */