1/* Copyright 1992 NEC Corporation, Tokyo, Japan. 2 * 3 * Permission to use, copy, modify, distribute and sell this software 4 * and its documentation for any purpose is hereby granted without 5 * fee, provided that the above copyright notice appear in all copies 6 * and that both that copyright notice and this permission notice 7 * appear in supporting documentation, and that the name of NEC 8 * Corporation not be used in advertising or publicity pertaining to 9 * distribution of the software without specific, written prior 10 * permission. NEC Corporation makes no representations about the 11 * suitability of this software for any purpose. It is provided "as 12 * is" without express or implied warranty. 13 * 14 * NEC CORPORATION DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, 15 * INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN 16 * NO EVENT SHALL NEC CORPORATION BE LIABLE FOR ANY SPECIAL, INDIRECT OR 17 * CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF 18 * USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR 19 * OTHER TORTUOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR 20 * PERFORMANCE OF THIS SOFTWARE. 21 */ 22// Modified by T.Murai 23 24#if !defined(lint) && !defined(__CODECENTER__) 25static char tanmap_id[] = "@(#) 102.1 $Id: tanmap.h 14875 2005-11-12 21:25:31Z bonefish $"; 26#endif /* lint */ 27 28#include "canna.h" 29 30static struct funccfunc tan_funcs[] = { 31 {CANNA_FN_FunctionalInsert ,TanKakuteiYomiInsert }, 32 {CANNA_FN_Forward ,TanForwardBunsetsu }, 33 {CANNA_FN_Backward ,TanBackwardBunsetsu }, 34 {CANNA_FN_Next ,TanNextKouho }, 35 {CANNA_FN_Prev ,TanPreviousKouho }, 36 {CANNA_FN_BeginningOfLine ,TanBeginningOfBunsetsu }, 37 {CANNA_FN_EndOfLine ,TanEndOfBunsetsu }, 38 {CANNA_FN_DeletePrevious ,TanDeletePrevious }, 39 {CANNA_FN_KillToEndOfLine ,TanChooseHeadChar }, 40 {CANNA_FN_DeleteNext ,TanChooseTailChar }, 41 {CANNA_FN_Henkan ,TanHenkan }, 42 {CANNA_FN_HenkanOrInsert ,TanHenkan }, 43 {CANNA_FN_HenkanOrNothing ,TanHenkan }, 44 {CANNA_FN_Kakutei ,YomiKakutei }, 45 {CANNA_FN_Extend ,TanExtendBunsetsu }, 46 {CANNA_FN_Shrink ,TanShrinkBunsetsu }, 47 {CANNA_FN_AdjustBunsetsu ,TanBunsetsuMode }, 48 {CANNA_FN_Quit ,TanMuhenkan }, 49 {CANNA_FN_KouhoIchiran ,TanKouhoIchiran }, 50 {CANNA_FN_BubunMuhenkan ,TanBubunMuhenkan }, 51 {CANNA_FN_Zenkaku ,TanZenkaku }, 52 {CANNA_FN_Hankaku ,TanHankaku }, 53 {CANNA_FN_Hiragana ,TanHiragana }, 54 {CANNA_FN_Katakana ,TanKatakana }, 55 {CANNA_FN_Romaji ,TanRomaji }, 56 {CANNA_FN_ToUpper ,TanUpper }, 57 {CANNA_FN_ToLower ,TanRomaji }, 58 {CANNA_FN_Capitalize ,TanCapitalize }, 59 {CANNA_FN_KanaRotate ,TanKanaRotate }, 60 {CANNA_FN_RomajiRotate ,TanRomajiRotate }, 61 {CANNA_FN_CaseRotate ,TanCaseRotateForward }, 62 {CANNA_FN_BubunKakutei ,TanBubunKakutei }, 63#ifdef BUNPOU_DISPLAY 64 {CANNA_FN_ConvertAsHex ,TanPrintBunpou }, 65#endif 66 {CANNA_FN_Nop ,TanNop }, 67 {CANNA_FN_FuncSequence ,DoFuncSequence }, 68 {CANNA_FN_UseOtherKeymap ,UseOtherKeymap }, 69 {0 ,0 }, 70}; 71 72extern int searchfunc(...); 73KanjiModeRec tankouho_mode = { 74 searchfunc, 75 default_kmap, 76 CANNA_KANJIMODE_TABLE_SHARED, 77 tan_funcs, 78}; 79