diff --git a/.clang-format b/.clang-format new file mode 100644 index 0000000..eb9d30c --- /dev/null +++ b/.clang-format @@ -0,0 +1,24 @@ +--- +UseTab: Always +TabWidth: 8 +AlignConsecutiveAssignments: + Enabled: true +AlignConsecutiveDeclarations: + Enabled: true +AccessModifierOffset: -4 +NamespaceIndentation: All +IndentWidth: 8 +PointerAlignment: Left +ColumnLimit: 0 +AllowShortIfStatementsOnASingleLine: Always +AllowShortBlocksOnASingleLine: Never +AllowShortFunctionsOnASingleLine: Empty +AllowShortLoopsOnASingleLine: true +BreakBeforeBraces: Custom +BraceWrapping: + AfterCaseLabel: true +SpaceBeforeParens: Never +AlignEscapedNewlines: DontAlign +SortIncludes: false +AllowShortEnumsOnASingleLine: false +#IndentPPDirectives: AfterHash diff --git a/format.sh b/format.sh new file mode 100755 index 0000000..036a4e3 --- /dev/null +++ b/format.sh @@ -0,0 +1,2 @@ +#!/bin/sh +clang-format --verbose -i `find src lib include -name "*.c" -or -name "*.h"` diff --git a/include/sj3common/Const.h b/include/sj3common/Const.h index 9ef6f42..a592248 100644 --- a/include/sj3common/Const.h +++ b/include/sj3common/Const.h @@ -1,6 +1,6 @@ /* * Copyright (c) 1991-1994 Sony Corporation - * + * * Permission is hereby granted, free of charge, to any person obtaining * a copy of this software and associated documentation files (the * "Software"), to deal in the Software without restriction, including @@ -8,10 +8,10 @@ * distribute, sublicense, and/or sell copies of the Software, and to * permit persons to whom the Software is furnished to do so, subject to * the following conditions: - * + * * The above copyright notice and this permission notice shall be * included in all copies or substantial portions of the Software. - * + * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. @@ -19,7 +19,7 @@ * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR * THE USE OR OTHER DEALINGS IN THE SOFTWARE. - * + * * Except as contained in this notice, the name of Sony Corporation * shall not be used in advertising or otherwise to promote the sale, use * or other dealings in this Software without prior written authorization @@ -28,8 +28,8 @@ */ /* - * $SonyRCSfile: Const.h,v $ - * $SonyRevision: 1.4 $ + * $SonyRCSfile: Const.h,v $ + * $SonyRevision: 1.4 $ * $SonyDate: 1997/01/23 11:20:52 $ */ @@ -41,59 +41,59 @@ * Patched by Hidekazu Kuroki(hidekazu@cs.titech.ac.jp) 1996/8/10 */ -#define PASSWORDLEN 16 +#define PASSWORDLEN 16 -#define YOMIBUFSIZE 1024 -#define KANJIBUFSIZE 2048 +#define YOMIBUFSIZE 1024 +#define KANJIBUFSIZE 2048 -#define MINIDXLEN 512 -#define MINSEGLEN 512 -#define MINSEGNUM 1 -#define MINSTYNUM 512 -#define MAXSTYNUM 0x7fff -#define MINCLSTEP 1 -#define MAXCLSTEP 256 -#define MINCLLEN 512 -#define MAXCLLEN 0x7fff +#define MINIDXLEN 512 +#define MINSEGLEN 512 +#define MINSEGNUM 1 +#define MINSTYNUM 512 +#define MAXSTYNUM 0x7fff +#define MINCLSTEP 1 +#define MAXCLSTEP 256 +#define MINCLLEN 512 +#define MAXCLLEN 0x7fff -#define DEBUGOUTFILE NULL -#define DEBUGLEVEL 0 -#define FORKFLAG 1 -#define MAXCLIENTNUM 512 -#define LOGOUTFILE NULL -#define ERROROUTFILE "/dev/null" -#define ADDRESSFAMILY "unspec" -#define PORTNAME "sj3" -#define LOCALHOST "localhost" -#define CHROOTFLAG 1 +#define DEBUGOUTFILE NULL +#define DEBUGLEVEL 0 +#define FORKFLAG 1 +#define MAXCLIENTNUM 512 +#define LOGOUTFILE NULL +#define ERROROUTFILE "/dev/null" +#define ADDRESSFAMILY "unspec" +#define PORTNAME "sj3" +#define LOCALHOST "localhost" +#define CHROOTFLAG 1 -#define MAINDICTIONARY "sj3main.dic" -#define USERDICTIONARY "private.dic" -#define STUDYFILE "study.dat" +#define MAINDICTIONARY "sj3main.dic" +#define USERDICTIONARY "private.dic" +#define STUDYFILE "study.dat" /* * Change the default Port number of sj3 for FreeBSD. * Patched by Hidekazu Kuroki(hidekazu@cs.titech.ac.jp) 1996/8/20 */ -#define PORTNUMBER "3086" -#define DIRECTRYMODE 0755 -#define DICTFILEMODE 0644 -#define MODE_MASK 0777 +#define PORTNUMBER "3086" +#define DIRECTRYMODE 0755 +#define DICTFILEMODE 0644 +#define MODE_MASK 0777 -#define DEFIDXLEN 2048 -#define DEFSEGLEN 2048 -#define DEFSEGNUM 256 -#define DEFSTYNUM 2048 -#define DEFCLSTEP 1 -#define DEFCLLEN 2048 +#define DEFIDXLEN 2048 +#define DEFSEGLEN 2048 +#define DEFSEGNUM 256 +#define DEFSTYNUM 2048 +#define DEFCLSTEP 1 +#define DEFCLLEN 2048 -#define NOTLOCKED -1 +#define NOTLOCKED -1 -#define ERROR -1 +#define ERROR -1 -#ifndef FALSE -# define TRUE -1 -# define FALSE (!TRUE) +#ifndef FALSE +#define TRUE -1 +#define FALSE (!TRUE) #endif #endif /* CONST_H */ diff --git a/include/sj3common/sj3cmd.h b/include/sj3common/sj3cmd.h index ed80664..fd0343a 100644 --- a/include/sj3common/sj3cmd.h +++ b/include/sj3common/sj3cmd.h @@ -1,6 +1,6 @@ /* * Copyright (c) 1991-1994 Sony Corporation - * + * * Permission is hereby granted, free of charge, to any person obtaining * a copy of this software and associated documentation files (the * "Software"), to deal in the Software without restriction, including @@ -8,10 +8,10 @@ * distribute, sublicense, and/or sell copies of the Software, and to * permit persons to whom the Software is furnished to do so, subject to * the following conditions: - * + * * The above copyright notice and this permission notice shall be * included in all copies or substantial portions of the Software. - * + * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. @@ -19,7 +19,7 @@ * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR * THE USE OR OTHER DEALINGS IN THE SOFTWARE. - * + * * Except as contained in this notice, the name of Sony Corporation * shall not be used in advertising or otherwise to promote the sale, use * or other dealings in this Software without prior written authorization @@ -28,80 +28,72 @@ */ /* - * $SonyRCSfile: sj3cmd.h,v $ - * $SonyRevision: 1.1 $ + * $SonyRCSfile: sj3cmd.h,v $ + * $SonyRevision: 1.1 $ * $SonyDate: 1994/06/03 08:00:57 $ */ +#define SJ3SERV_VERSION_NO 2 +#define SJ3_CONNECT 1 +#define SJ3_DISCONNECT 2 +#define SJ3_OPENDICT 11 +#define SJ3_CLOSEDICT 12 +#define SJ3_OPENSTDY 21 +#define SJ3_CLOSESTDY 22 +#define SJ3_STDYSIZE 23 +#define SJ3_LOCK 31 +#define SJ3_UNLOCK 32 +#define SJ3_PH2KNJ 41 -#define SJ3SERV_VERSION_NO 2 +#define SJ3_CL2KNJ 51 +#define SJ3_NEXTCL 52 +#define SJ3_PREVCL 53 +#define SJ3_CL2KNJ_ALL 54 +#define SJ3_CL2KNJ_CNT 55 +#define SJ3_STUDY 61 +#define SJ3_CLSTUDY 62 +#define SJ3_ADDDICT 71 +#define SJ3_DELDICT 72 -#define SJ3_CONNECT 1 -#define SJ3_DISCONNECT 2 +#define SJ3_MAKEDICT 81 +#define SJ3_MAKESTDY 82 +#define SJ3_MAKEDIR 83 +#define SJ3_ACCESS 84 -#define SJ3_OPENDICT 11 -#define SJ3_CLOSEDICT 12 +#define SJ3_GETDICT 91 +#define SJ3_NEXTDICT 92 +#define SJ3_PREVDICT 93 -#define SJ3_OPENSTDY 21 -#define SJ3_CLOSESTDY 22 -#define SJ3_STDYSIZE 23 +#define SJ3_WHO 100 +#define SJ3_QUIT 101 +#define SJ3_KILL 102 +#define SJ3_VERSION 103 +#define SJ3_DICTPASS 104 +#define SJ3_DICTCMNT 105 +#define SJ3_STDYPASS 106 +#define SJ3_STDYCMNT 107 -#define SJ3_LOCK 31 -#define SJ3_UNLOCK 32 +#define SJ3_SETCVER 110 +#define SJ3_PH2KNJ_EUC 111 -#define SJ3_PH2KNJ 41 +#define SJ3_CL2KNJ_EUC 112 +#define SJ3_NEXTCL_EUC 113 +#define SJ3_PREVCL_EUC 114 +#define SJ3_CL2KNJ_ALL_EUC 115 +#define SJ3_CL2KNJ_CNT_EUC 116 -#define SJ3_CL2KNJ 51 -#define SJ3_NEXTCL 52 -#define SJ3_PREVCL 53 -#define SJ3_CL2KNJ_ALL 54 -#define SJ3_CL2KNJ_CNT 55 +#define SJ3_CLSTUDY_EUC 117 -#define SJ3_STUDY 61 -#define SJ3_CLSTUDY 62 +#define SJ3_ADDDICT_EUC 118 +#define SJ3_DELDICT_EUC 119 -#define SJ3_ADDDICT 71 -#define SJ3_DELDICT 72 - -#define SJ3_MAKEDICT 81 -#define SJ3_MAKESTDY 82 -#define SJ3_MAKEDIR 83 -#define SJ3_ACCESS 84 - -#define SJ3_GETDICT 91 -#define SJ3_NEXTDICT 92 -#define SJ3_PREVDICT 93 - -#define SJ3_WHO 100 -#define SJ3_QUIT 101 -#define SJ3_KILL 102 -#define SJ3_VERSION 103 -#define SJ3_DICTPASS 104 -#define SJ3_DICTCMNT 105 -#define SJ3_STDYPASS 106 -#define SJ3_STDYCMNT 107 - -#define SJ3_SETCVER 110 -#define SJ3_PH2KNJ_EUC 111 - -#define SJ3_CL2KNJ_EUC 112 -#define SJ3_NEXTCL_EUC 113 -#define SJ3_PREVCL_EUC 114 -#define SJ3_CL2KNJ_ALL_EUC 115 -#define SJ3_CL2KNJ_CNT_EUC 116 - -#define SJ3_CLSTUDY_EUC 117 - -#define SJ3_ADDDICT_EUC 118 -#define SJ3_DELDICT_EUC 119 - -#define SJ3_GETDICT_EUC 120 -#define SJ3_NEXTDICT_EUC 121 -#define SJ3_PREVDICT_EUC 122 +#define SJ3_GETDICT_EUC 120 +#define SJ3_NEXTDICT_EUC 121 +#define SJ3_PREVDICT_EUC 122 diff --git a/include/sj3common/sj3err.h b/include/sj3common/sj3err.h index 8dc4af4..0e7c5ad 100644 --- a/include/sj3common/sj3err.h +++ b/include/sj3common/sj3err.h @@ -1,6 +1,6 @@ /* * Copyright (c) 1991-1994 Sony Corporation - * + * * Permission is hereby granted, free of charge, to any person obtaining * a copy of this software and associated documentation files (the * "Software"), to deal in the Software without restriction, including @@ -8,10 +8,10 @@ * distribute, sublicense, and/or sell copies of the Software, and to * permit persons to whom the Software is furnished to do so, subject to * the following conditions: - * + * * The above copyright notice and this permission notice shall be * included in all copies or substantial portions of the Software. - * + * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. @@ -19,7 +19,7 @@ * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR * THE USE OR OTHER DEALINGS IN THE SOFTWARE. - * + * * Except as contained in this notice, the name of Sony Corporation * shall not be used in advertising or otherwise to promote the sale, use * or other dealings in this Software without prior written authorization @@ -28,80 +28,76 @@ */ /* - * $SonyRCSfile: sj3err.h,v $ - * $SonyRevision: 1.1 $ + * $SonyRCSfile: sj3err.h,v $ + * $SonyRevision: 1.1 $ * $SonyDate: 1994/06/03 08:00:58 $ */ +#define SJ3_InternalError -1 +#define SJ3_NormalEnd 0 +#define SJ3_ServerDown 1 +#define SJ3_OpenSocket 2 +#define SJ3_ConnectSocket 3 +#define SJ3_GetHostByName 4 +#define SJ3_NotOpened 5 +#define SJ3_NotEnoughMemory 6 +#define SJ3_IllegalCommand 7 +#define SJ3_DifferentVersion 11 +#define SJ3_NoHostName 12 +#define SJ3_NoUserName 13 +#define SJ3_NotAllowedUser 14 +#define SJ3_AlreadyConnected 15 +#define SJ3_NotConnected 16 -#define SJ3_InternalError -1 +#define SJ3_TooLongParameter 21 +#define SJ3_IllegalParameter 22 -#define SJ3_NormalEnd 0 +#define SJ3_BadDictID 31 +#define SJ3_IllegalDictFile 32 +#define SJ3_IllegalStdyFile 33 +#define SJ3_IncorrectPasswd 34 +#define SJ3_FileNotExist 35 +#define SJ3_CannotAccessFile 36 +#define SJ3_CannotOpenFile 37 +#define SJ3_CannotCreateFile 38 +#define SJ3_FileReadError 39 +#define SJ3_FileWriteError 40 +#define SJ3_FileSeekError 41 -#define SJ3_ServerDown 1 -#define SJ3_OpenSocket 2 -#define SJ3_ConnectSocket 3 -#define SJ3_GetHostByName 4 -#define SJ3_NotOpened 5 -#define SJ3_NotEnoughMemory 6 -#define SJ3_IllegalCommand 7 +#define SJ3_StdyAlreadyOpened 51 +#define SJ3_StdyFileNotOpened 52 +#define SJ3_TooSmallStdyArea 53 -#define SJ3_DifferentVersion 11 -#define SJ3_NoHostName 12 -#define SJ3_NoUserName 13 -#define SJ3_NotAllowedUser 14 -#define SJ3_AlreadyConnected 15 -#define SJ3_NotConnected 16 +#define SJ3_LockedByOther 61 +#define SJ3_NotLocked 62 -#define SJ3_TooLongParameter 21 -#define SJ3_IllegalParameter 22 +#define SJ3_NoSuchDict 71 +#define SJ3_ReadOnlyDict 72 +#define SJ3_DictLocked 73 +#define SJ3_BadYomiString 74 +#define SJ3_BadKanjiString 75 +#define SJ3_BadHinsiCode 76 -#define SJ3_BadDictID 31 -#define SJ3_IllegalDictFile 32 -#define SJ3_IllegalStdyFile 33 -#define SJ3_IncorrectPasswd 34 -#define SJ3_FileNotExist 35 -#define SJ3_CannotAccessFile 36 -#define SJ3_CannotOpenFile 37 -#define SJ3_CannotCreateFile 38 -#define SJ3_FileReadError 39 -#define SJ3_FileWriteError 40 -#define SJ3_FileSeekError 41 +#define SJ3_AddDictFailed 81 +#define SJ3_AlreadyExistWord 82 +#define SJ3_NoMoreDouonWord 83 +#define SJ3_NoMoreUserDict 84 +#define SJ3_NoMoreIndexBlock 85 -#define SJ3_StdyAlreadyOpened 51 -#define SJ3_StdyFileNotOpened 52 -#define SJ3_TooSmallStdyArea 53 +#define SJ3_DelDictFailed 91 +#define SJ3_NoSuchWord 92 -#define SJ3_LockedByOther 61 -#define SJ3_NotLocked 62 +#define SJ3_DirAlreadyExist 101 +#define SJ3_CannotCreateDir 102 -#define SJ3_NoSuchDict 71 -#define SJ3_ReadOnlyDict 72 -#define SJ3_DictLocked 73 -#define SJ3_BadYomiString 74 -#define SJ3_BadKanjiString 75 -#define SJ3_BadHinsiCode 76 +#define SJ3_NoMoreDictData 111 -#define SJ3_AddDictFailed 81 -#define SJ3_AlreadyExistWord 82 -#define SJ3_NoMoreDouonWord 83 -#define SJ3_NoMoreUserDict 84 -#define SJ3_NoMoreIndexBlock 85 +#define SJ3_UserConnected 121 -#define SJ3_DelDictFailed 91 -#define SJ3_NoSuchWord 92 +#define SJ3_TooLongPasswd 131 +#define SJ3_TooLongComment 132 -#define SJ3_DirAlreadyExist 101 -#define SJ3_CannotCreateDir 102 - -#define SJ3_NoMoreDictData 111 - -#define SJ3_UserConnected 121 - -#define SJ3_TooLongPasswd 131 -#define SJ3_TooLongComment 132 - -#define SJ3_CannotCodeConvert 133 +#define SJ3_CannotCodeConvert 133 diff --git a/include/sj3common/sj_const.h b/include/sj3common/sj_const.h index 90c4808..efc5647 100644 --- a/include/sj3common/sj_const.h +++ b/include/sj3common/sj_const.h @@ -1,6 +1,6 @@ /* * Copyright (c) 1991-1994 Sony Corporation - * + * * Permission is hereby granted, free of charge, to any person obtaining * a copy of this software and associated documentation files (the * "Software"), to deal in the Software without restriction, including @@ -8,10 +8,10 @@ * distribute, sublicense, and/or sell copies of the Software, and to * permit persons to whom the Software is furnished to do so, subject to * the following conditions: - * + * * The above copyright notice and this permission notice shall be * included in all copies or substantial portions of the Software. - * + * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. @@ -19,7 +19,7 @@ * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR * THE USE OR OTHER DEALINGS IN THE SOFTWARE. - * + * * Except as contained in this notice, the name of Sony Corporation * shall not be used in advertising or otherwise to promote the sale, use * or other dealings in this Software without prior written authorization @@ -28,128 +28,126 @@ */ /* - * $SonyRCSfile: sj_const.h,v $ - * $SonyRevision: 1.1 $ + * $SonyRCSfile: sj_const.h,v $ + * $SonyRevision: 1.1 $ * $SonyDate: 1994/06/03 08:01:01 $ */ -#ifndef _SJ_CONST +#ifndef _SJ_CONST -#define _SJ_CONST +#define _SJ_CONST #include "sj_euc.h" -#define MATCH 0 -#define OVER 1 -#define PARTLY 2 -#define CONT 3 -#define UNDER 4 +#define MATCH 0 +#define OVER 1 +#define PARTLY 2 +#define CONT 3 +#define UNDER 4 -#define FALSE 0 -#define TRUE -1 +#define FALSE 0 +#define TRUE -1 -#define AD_DONE 0x0000 -#define AD_NOTUSERDICT 0x0001 -#define AD_BADYOMI 0x0002 -#define AD_BADKANJI 0x0004 -#define AD_BADHINSI 0x0008 +#define AD_DONE 0x0000 +#define AD_NOTUSERDICT 0x0001 +#define AD_BADYOMI 0x0002 +#define AD_BADKANJI 0x0004 +#define AD_BADHINSI 0x0008 -#define AD_AREXIST 0x0010 -#define AD_OVFLWDOUBLK 0x0020 -#define AD_OVFLWDOUNUM 0x0040 -#define AD_OVFLWUSRDIC 0x0080 -#define AD_OVFLWINDEX 0x0100 +#define AD_AREXIST 0x0010 +#define AD_OVFLWDOUBLK 0x0020 +#define AD_OVFLWDOUNUM 0x0040 +#define AD_OVFLWUSRDIC 0x0080 +#define AD_OVFLWINDEX 0x0100 -#define AD_NOMIDASI 0x0010 -#define AD_NOHINSI 0x0020 -#define AD_NOKANJI 0x0040 +#define AD_NOMIDASI 0x0010 +#define AD_NOHINSI 0x0020 +#define AD_NOKANJI 0x0040 -#define C_WAKACHI 0x00 -#define C_MINASI 0x01 -#define C_BUNSETU 0x02 -#define C_DICT 0x03 -#define C_N_ARABIA 0x04 -#define C_N_ARACMA 0x05 -#define C_N_KAZU 0x06 -#define C_N_SUUJI 0x07 -#define C_N_NANSUU 0x08 -#define C_N_KANKURA 0x09 -#define C_N_ARAKURA 0x0a -#define C_N_KAZULONG 0x0b -#define C_N_KAZULCMA 0x0c -#define C_N_SUUJILONG 0x0d +#define C_WAKACHI 0x00 +#define C_MINASI 0x01 +#define C_BUNSETU 0x02 +#define C_DICT 0x03 +#define C_N_ARABIA 0x04 +#define C_N_ARACMA 0x05 +#define C_N_KAZU 0x06 +#define C_N_SUUJI 0x07 +#define C_N_NANSUU 0x08 +#define C_N_KANKURA 0x09 +#define C_N_ARAKURA 0x0a +#define C_N_KAZULONG 0x0b +#define C_N_KAZULCMA 0x0c +#define C_N_SUUJILONG 0x0d -#define JFLAG_N10 (1 << 15) -#define JFLAG_N_1 (1 << 14) -#define JFLAG_NS1 (1 << 13) -#define JFLAG_N01 (1 << 12) -#define JFLAG_N23 (1 << 11) -#define JFLAG_NK2 (1 << 10) -#define JFLAG_NK4 (1 << 9) -#define JFLAG_NN0 (1 << 8) -#define JFLAG_NSN (1 << 7) -#define JFLAG_KA (1 << 0) +#define JFLAG_N10 (1 << 15) +#define JFLAG_N_1 (1 << 14) +#define JFLAG_NS1 (1 << 13) +#define JFLAG_N01 (1 << 12) +#define JFLAG_N23 (1 << 11) +#define JFLAG_NK2 (1 << 10) +#define JFLAG_NK4 (1 << 9) +#define JFLAG_NN0 (1 << 8) +#define JFLAG_NSN (1 << 7) +#define JFLAG_KA (1 << 0) -#define DO_CLSTUDY 0x01 -#define DO_IKKATU 0x02 +#define DO_CLSTUDY 0x01 +#define DO_IKKATU 0x02 -#define K_DOUSHI 1 -#define K_YOUGEN 2 -#define K_TAIGEN 3 -#define K_FUKUSI 4 -#define K_RENTAISI 5 -#define K_SONOTA 6 +#define K_DOUSHI 1 +#define K_YOUGEN 2 +#define K_TAIGEN 3 +#define K_FUKUSI 4 +#define K_RENTAISI 5 +#define K_SONOTA 6 -#define EUC_a1 (u_char)0xa1 -#define EUC_a2 (u_char)0xa2 -#define EUC_a3 (u_char)0xa3 -#define EUC_a4 (u_char)0xa4 -#define EUC_a5 (u_char)0xa5 +#define EUC_a1 (u_char)0xa1 +#define EUC_a2 (u_char)0xa2 +#define EUC_a3 (u_char)0xa3 +#define EUC_a4 (u_char)0xa4 +#define EUC_a5 (u_char)0xa5 +#define EUC_START (u_char)0xa1 +#define EUC_END (u_char)0xfe +#define EUC_END_KIGOU (u_char)0xae +#define EUC_0 (u_char)0xb0 +#define EUC_END_0 (u_char)0xb9 +#define EUC_A (u_char)0xc1 +#define EUC_END_A (u_char)0xda +#define EUC_a (u_char)0xe1 +#define EUC_END_a (u_char)0xfa +#define EUC_END_HIRA (u_char)0xf3 +#define EUC_VU (u_char)0xf4 +#define EUC_XKA (u_char)0xf5 +#define EUC_XKE (u_char)0xf6 -#define EUC_START (u_char)0xa1 -#define EUC_END (u_char)0xfe -#define EUC_END_KIGOU (u_char)0xae -#define EUC_0 (u_char)0xb0 -#define EUC_END_0 (u_char)0xb9 -#define EUC_A (u_char)0xc1 -#define EUC_END_A (u_char)0xda -#define EUC_a (u_char)0xe1 -#define EUC_END_a (u_char)0xfa -#define EUC_END_HIRA (u_char)0xf3 -#define EUC_VU (u_char)0xf4 -#define EUC_XKA (u_char)0xf5 -#define EUC_XKE (u_char)0xf6 +#define isknj1(c) (((c) == SS2) || (((c) & 0x80) && ((c) != SS3))) -#define isknj1(c) (((c) == SS2) || (((c) & 0x80) && ((c) != SS3))) +#define SHU 0x01 +#define T_KANOU 0x80 +#define T_SHUUJO 0x40 -#define SHU 0x01 -#define T_KANOU 0x80 -#define T_SHUUJO 0x40 +#define DICTOP 0x01 +#define FZKTOP 0x02 +#define DEPEND 0x04 +#define NUMBER 0x08 +#define FZK_KGU 0x10 +#define TAI_KGU 0x20 +#define BEFORNUM 0x40 +#define MIDNUM 0x80 +#define NOTNRM 0xFE -#define DICTOP 0x01 -#define FZKTOP 0x02 -#define DEPEND 0x04 -#define NUMBER 0x08 -#define FZK_KGU 0x10 -#define TAI_KGU 0x20 -#define BEFORNUM 0x40 -#define MIDNUM 0x80 -#define NOTNRM 0xFE +#define CNJEND 0xff +#define TYOUONFLG 0x80 -#define CNJEND 0xff -#define TYOUONFLG 0x80 +#define MAXFREC 32 +#define MAXFLVL 10 +#define FZKEND 0xff -#define MAXFREC 32 -#define MAXFLVL 10 -#define FZKEND 0xff - -#define SETTOU_O 1 -#define SETTOU_GO 2 -#define SETTOU_DAI 3 -#define SETTOU_KIGOU 4 - -#define NUMKETALENGTH 16 -#define NUMWORDBUF ((NUMKETALENGTH+3)/4) +#define SETTOU_O 1 +#define SETTOU_GO 2 +#define SETTOU_DAI 3 +#define SETTOU_KIGOU 4 +#define NUMKETALENGTH 16 +#define NUMWORDBUF ((NUMKETALENGTH + 3) / 4) #endif diff --git a/include/sj3common/sj_euc.h b/include/sj3common/sj_euc.h index 9dc87e0..278ad20 100644 --- a/include/sj3common/sj_euc.h +++ b/include/sj3common/sj_euc.h @@ -1,6 +1,6 @@ /* * Copyright (c) 1994 Sony Corporation - * + * * Permission is hereby granted, free of charge, to any person obtaining * a copy of this software and associated documentation files (the * "Software"), to deal in the Software without restriction, including @@ -8,10 +8,10 @@ * distribute, sublicense, and/or sell copies of the Software, and to * permit persons to whom the Software is furnished to do so, subject to * the following conditions: - * + * * The above copyright notice and this permission notice shall be * included in all copies or substantial portions of the Software. - * + * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. @@ -19,7 +19,7 @@ * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR * THE USE OR OTHER DEALINGS IN THE SOFTWARE. - * + * * Except as contained in this notice, the name of Sony Corporation * shall not be used in advertising or otherwise to promote the sale, use * or other dealings in this Software without prior written authorization @@ -28,8 +28,8 @@ */ /* - * $SonyRCSfile: sj_euc.h,v $ - * $SonyRevision: 1.1 $ + * $SonyRCSfile: sj_euc.h,v $ + * $SonyRevision: 1.1 $ * $SonyDate: 1994/06/03 08:01:05 $ */ diff --git a/include/sj3common/sj_hinsi.h b/include/sj3common/sj_hinsi.h index 101125f..d1de588 100644 --- a/include/sj3common/sj_hinsi.h +++ b/include/sj3common/sj_hinsi.h @@ -1,6 +1,6 @@ /* * Copyright (c) 1991-1994 Sony Corporation - * + * * Permission is hereby granted, free of charge, to any person obtaining * a copy of this software and associated documentation files (the * "Software"), to deal in the Software without restriction, including @@ -8,10 +8,10 @@ * distribute, sublicense, and/or sell copies of the Software, and to * permit persons to whom the Software is furnished to do so, subject to * the following conditions: - * + * * The above copyright notice and this permission notice shall be * included in all copies or substantial portions of the Software. - * + * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. @@ -19,7 +19,7 @@ * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR * THE USE OR OTHER DEALINGS IN THE SOFTWARE. - * + * * Except as contained in this notice, the name of Sony Corporation * shall not be used in advertising or otherwise to promote the sale, use * or other dealings in this Software without prior written authorization @@ -28,204 +28,191 @@ */ /* - * $SonyRCSfile: sj_hinsi.h,v $ - * $SonyRevision: 1.1 $ + * $SonyRCSfile: sj_hinsi.h,v $ + * $SonyRevision: 1.1 $ * $SonyDate: 1994/06/03 08:01:07 $ */ +#ifndef _SJ_HINSHI +#define _SJ_HINSHI +#define MEISI_1 1 +#define MEISI_2 2 +#define MEISI_3 3 +#define MEISI_4 4 +#define MEISI_5 5 +#define MEISI_6 6 +#define MEISI_7 7 +#define MEISI_8 8 +#define MEISI_9 9 +#define MEISI_10 10 +#define MEISI_11 11 +#define D_MEISI_1 12 +#define D_MEISI_2 13 +#define D_MEISI_3 14 +#define D_MEISI_4 15 +#define D_MEISI_5 16 +#define D_MEISI_6 17 +#define MEISI_20 18 +#define MYOUJI 21 +#define NAMAE 22 +#define KIGYOU 23 +#define TIMEI 24 +#define KEN_KU 25 +#define RENTAISI 26 +#define SETUZOKU 27 +#define KANDOUSI 28 +#define JOSUUSI 29 +#define SUUSI 30 +#define SETTOU_1 31 +#define SETTOU_2 32 +#define SETTOU_3 33 +#define SETTOU_4 34 +#define SETTOU_5 35 +#define SETUBI_1 36 +#define SETUBI_2 37 +#define SETUBI_3 38 +#define SETUBI_4 39 +#define SETUBI_5 40 +#define SETUBI_6 41 +#define SETUBI_7 42 +#define SETUBI_8 43 +#define SETUBI_9 44 +#define FUKUSI_1 45 +#define FUKUSI_2 46 +#define FUKUSI_3 47 +#define FUKUSI_4 48 +#define FUKUSI_5 49 +#define FUKUSI_6 50 +#define FUKUSI_7 51 +#define FUKUSI_8 52 +#define FUKUSI_9 53 +#define JOSUUSI2 54 -#ifndef _SJ_HINSHI +#define KEIYOUSI_1 60 +#define KEIYOUSI_2 61 +#define KEIYOUSI_3 62 +#define KEIYOUSI_4 63 +#define KEIYOUSI_5 64 +#define KEIYOUSI_6 65 +#define KEIYOUSI_7 66 +#define KEIYOUSI_8 67 +#define KEIYOUSI_9 68 +#define KEIYOUSI_10 69 +#define KEIYOUSI_11 70 +#define KE_DOUSI_1 71 +#define KE_DOUSI_2 72 +#define KE_DOUSI_3 73 +#define KE_DOUSI_4 74 +#define KE_DOUSI_5 75 +#define KE_DOUSI_6 76 +#define KE_DOUSI_7 77 +#define KE_DOUSI_8 78 +#define KE_DOUSI_9 79 -#define _SJ_HINSHI +#define DO_SAHEN 80 +#define DO_ZAHEN 81 -#define MEISI_1 1 -#define MEISI_2 2 -#define MEISI_3 3 -#define MEISI_4 4 -#define MEISI_5 5 -#define MEISI_6 6 -#define MEISI_7 7 -#define MEISI_8 8 -#define MEISI_9 9 -#define MEISI_10 10 -#define MEISI_11 11 -#define D_MEISI_1 12 -#define D_MEISI_2 13 -#define D_MEISI_3 14 -#define D_MEISI_4 15 -#define D_MEISI_5 16 -#define D_MEISI_6 17 -#define MEISI_20 18 +#define DO_1DAN_1 90 +#define DO_KAGO_1 91 +#define DO_GAGO_1 92 +#define DO_SAGO_1 93 +#define DO_TAGO_1 94 +#define DO_NAGO_1 95 +#define DO_BAGO_1 96 +#define DO_MAGO_1 97 +#define DO_RAGO_1 98 +#define DO_WAGO_1 99 -#define MYOUJI 21 -#define NAMAE 22 -#define KIGYOU 23 -#define TIMEI 24 -#define KEN_KU 25 -#define RENTAISI 26 -#define SETUZOKU 27 -#define KANDOUSI 28 -#define JOSUUSI 29 -#define SUUSI 30 -#define SETTOU_1 31 -#define SETTOU_2 32 -#define SETTOU_3 33 -#define SETTOU_4 34 -#define SETTOU_5 35 -#define SETUBI_1 36 -#define SETUBI_2 37 -#define SETUBI_3 38 -#define SETUBI_4 39 -#define SETUBI_5 40 -#define SETUBI_6 41 -#define SETUBI_7 42 -#define SETUBI_8 43 -#define SETUBI_9 44 -#define FUKUSI_1 45 -#define FUKUSI_2 46 -#define FUKUSI_3 47 -#define FUKUSI_4 48 -#define FUKUSI_5 49 -#define FUKUSI_6 50 -#define FUKUSI_7 51 -#define FUKUSI_8 52 -#define FUKUSI_9 53 -#define JOSUUSI2 54 +#define DO_1DAN_2 100 +#define DO_KAGO_2 101 +#define DO_GAGO_2 102 +#define DO_SAGO_2 103 +#define DO_TAGO_2 104 +#define DO_BAGO_2 105 +#define DO_MAGO_2 106 +#define DO_RAGO_2 107 +#define DO_WAGO_2 108 +#define DO_KAGO_5 111 +#define DO_GAGO_5 112 +#define DO_SAGO_5 113 +#define DO_TAGO_5 114 +#define DO_BAGO_5 115 +#define DO_MAGO_5 116 +#define DO_RAGO_5 117 +#define DO_WAGO_5 118 -#define KEIYOUSI_1 60 -#define KEIYOUSI_2 61 -#define KEIYOUSI_3 62 -#define KEIYOUSI_4 63 -#define KEIYOUSI_5 64 -#define KEIYOUSI_6 65 -#define KEIYOUSI_7 66 -#define KEIYOUSI_8 67 -#define KEIYOUSI_9 68 -#define KEIYOUSI_10 69 -#define KEIYOUSI_11 70 -#define KE_DOUSI_1 71 -#define KE_DOUSI_2 72 -#define KE_DOUSI_3 73 -#define KE_DOUSI_4 74 -#define KE_DOUSI_5 75 -#define KE_DOUSI_6 76 -#define KE_DOUSI_7 77 -#define KE_DOUSI_8 78 -#define KE_DOUSI_9 79 +#define DO_KAGO_6 121 +#define DO_GAGO_6 122 +#define DO_SAGO_6 123 +#define DO_TAGO_6 124 +#define DO_BAGO_6 125 +#define DO_MAGO_6 126 +#define DO_RAGO_6 127 +#define DO_WAGO_6 128 -#define DO_SAHEN 80 -#define DO_ZAHEN 81 +#define DO_1DAN_3 130 +#define DO_KAGO_3 131 +#define DO_GAGO_3 132 +#define DO_SAGO_3 133 +#define DO_TAGO_3 134 +#define DO_BAGO_3 135 +#define DO_MAGO_3 136 +#define DO_RAGO_3 137 +#define DO_WAGO_3 138 +#define DO_1DAN_4 140 +#define DO_KAGO_4 141 +#define DO_GAGO_4 142 +#define DO_SAGO_4 143 +#define DO_TAGO_4 144 +#define DO_BAGO_4 145 +#define DO_MAGO_4 146 +#define DO_RAGO_4 147 +#define DO_WAGO_4 148 -#define DO_1DAN_1 90 -#define DO_KAGO_1 91 -#define DO_GAGO_1 92 -#define DO_SAGO_1 93 -#define DO_TAGO_1 94 -#define DO_NAGO_1 95 -#define DO_BAGO_1 96 -#define DO_MAGO_1 97 -#define DO_RAGO_1 98 -#define DO_WAGO_1 99 +#define DO_KAGO_7 151 +#define DO_GAGO_7 152 +#define DO_SAGO_7 153 +#define DO_TAGO_7 154 +#define DO_BAGO_7 155 +#define DO_MAGO_7 156 +#define DO_RAGO_7 157 +#define DO_WAGO_7 158 -#define DO_1DAN_2 100 -#define DO_KAGO_2 101 -#define DO_GAGO_2 102 -#define DO_SAGO_2 103 -#define DO_TAGO_2 104 -#define DO_BAGO_2 105 -#define DO_MAGO_2 106 -#define DO_RAGO_2 107 -#define DO_WAGO_2 108 +#define DO_KAGO_8 161 +#define DO_GAGO_8 162 +#define DO_SAGO_8 163 +#define DO_TAGO_8 164 +#define DO_BAGO_8 165 +#define DO_MAGO_8 166 +#define DO_RAGO_8 167 +#define DO_WAGO_8 168 +#define SP_SA_MI1 171 +#define SP_SA_MI2 172 +#define SP_SA_YOU 173 +#define SP_SA_SYU 174 +#define SP_SA_KAT 175 +#define SP_SA_ME1 176 +#define SP_SA_ME2 177 +#define SP_KA_MIZ 178 +#define SP_KA_YOU 179 +#define SP_KA_SYU 180 +#define SP_KA_KAT 181 +#define SP_KA_MEI 182 +#define TEINEI1 183 -#define DO_KAGO_5 111 -#define DO_GAGO_5 112 -#define DO_SAGO_5 113 -#define DO_TAGO_5 114 -#define DO_BAGO_5 115 -#define DO_MAGO_5 116 -#define DO_RAGO_5 117 -#define DO_WAGO_5 118 +#define TEINEI2 184 +#define SP_KA_ONB 185 +#define SP_FUKUSI 186 +#define AISATU 187 +#define SP_KEIYOUSI 188 +#define TANKANJI 189 - -#define DO_KAGO_6 121 -#define DO_GAGO_6 122 -#define DO_SAGO_6 123 -#define DO_TAGO_6 124 -#define DO_BAGO_6 125 -#define DO_MAGO_6 126 -#define DO_RAGO_6 127 -#define DO_WAGO_6 128 - - -#define DO_1DAN_3 130 -#define DO_KAGO_3 131 -#define DO_GAGO_3 132 -#define DO_SAGO_3 133 -#define DO_TAGO_3 134 -#define DO_BAGO_3 135 -#define DO_MAGO_3 136 -#define DO_RAGO_3 137 -#define DO_WAGO_3 138 - - -#define DO_1DAN_4 140 -#define DO_KAGO_4 141 -#define DO_GAGO_4 142 -#define DO_SAGO_4 143 -#define DO_TAGO_4 144 -#define DO_BAGO_4 145 -#define DO_MAGO_4 146 -#define DO_RAGO_4 147 -#define DO_WAGO_4 148 - - -#define DO_KAGO_7 151 -#define DO_GAGO_7 152 -#define DO_SAGO_7 153 -#define DO_TAGO_7 154 -#define DO_BAGO_7 155 -#define DO_MAGO_7 156 -#define DO_RAGO_7 157 -#define DO_WAGO_7 158 - - -#define DO_KAGO_8 161 -#define DO_GAGO_8 162 -#define DO_SAGO_8 163 -#define DO_TAGO_8 164 -#define DO_BAGO_8 165 -#define DO_MAGO_8 166 -#define DO_RAGO_8 167 -#define DO_WAGO_8 168 - - -#define SP_SA_MI1 171 -#define SP_SA_MI2 172 -#define SP_SA_YOU 173 -#define SP_SA_SYU 174 -#define SP_SA_KAT 175 -#define SP_SA_ME1 176 -#define SP_SA_ME2 177 -#define SP_KA_MIZ 178 -#define SP_KA_YOU 179 -#define SP_KA_SYU 180 -#define SP_KA_KAT 181 -#define SP_KA_MEI 182 -#define TEINEI1 183 - -#define TEINEI2 184 -#define SP_KA_ONB 185 -#define SP_FUKUSI 186 -#define AISATU 187 -#define SP_KEIYOUSI 188 -#define TANKANJI 189 - -#define IKKATU 200 +#define IKKATU 200 #endif diff --git a/include/sj3common/sj_string.h b/include/sj3common/sj_string.h index 8c07651..6ff0161 100644 --- a/include/sj3common/sj_string.h +++ b/include/sj3common/sj_string.h @@ -18,16 +18,16 @@ #define SJ_STRING_H /* string.c */ -int sj3_str_sjistoeuc(unsigned char *, int, unsigned char *, unsigned char *, int *); -int sj3_str_euctosjis(unsigned char *, int, unsigned char *, unsigned char *, int *); -int sj3_sjistoeuclen(unsigned char *, int); +int sj3_str_sjistoeuc(unsigned char*, int, unsigned char*, unsigned char*, int*); +int sj3_str_euctosjis(unsigned char*, int, unsigned char*, unsigned char*, int*); +int sj3_sjistoeuclen(unsigned char*, int); -int sj3_sjistoeuc(unsigned char *s, int, unsigned char *, int); -int sj3_euctosjis(unsigned char *s, int, unsigned char *, int); -void sj_euc2sjis(unsigned char *); -void sj_jis2sjis(unsigned char *); -void sj_sjis2euc(unsigned char *); -void sj_sjis2jis(unsigned char *); +int sj3_sjistoeuc(unsigned char* s, int, unsigned char*, int); +int sj3_euctosjis(unsigned char* s, int, unsigned char*, int); +void sj_euc2sjis(unsigned char*); +void sj_jis2sjis(unsigned char*); +void sj_sjis2euc(unsigned char*); +void sj_sjis2jis(unsigned char*); unsigned short sj3_jis2sjis(unsigned short); unsigned short sj3_jis2euc(unsigned short); unsigned short sj3_sjis2jis(unsigned short); diff --git a/include/sj3core/Dict.h b/include/sj3core/Dict.h index cd54ef1..9d18d83 100644 --- a/include/sj3core/Dict.h +++ b/include/sj3core/Dict.h @@ -1,6 +1,6 @@ /* * Copyright (c) 1991-1994 Sony Corporation - * + * * Permission is hereby granted, free of charge, to any person obtaining * a copy of this software and associated documentation files (the * "Software"), to deal in the Software without restriction, including @@ -8,10 +8,10 @@ * distribute, sublicense, and/or sell copies of the Software, and to * permit persons to whom the Software is furnished to do so, subject to * the following conditions: - * + * * The above copyright notice and this permission notice shall be * included in all copies or substantial portions of the Software. - * + * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. @@ -19,7 +19,7 @@ * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR * THE USE OR OTHER DEALINGS IN THE SOFTWARE. - * + * * Except as contained in this notice, the name of Sony Corporation * shall not be used in advertising or otherwise to promote the sale, use * or other dealings in this Software without prior written authorization @@ -28,55 +28,48 @@ */ /* - * $SonyRCSfile: Dict.h,v $ - * $SonyRevision: 1.1 $ + * $SonyRCSfile: Dict.h,v $ + * $SonyRevision: 1.1 $ * $SonyDate: 1994/06/03 08:00:55 $ */ +#define VERSIONPOS 0 +#define PASSWDPOS 16 +#define PASSWDLEN 16 +#define STDYNORMPOS 32 +#define STDYNORMLEN 36 +#define STDYNORMNUM 40 +#define STDYNORMCNT 44 -#define VERSIONPOS 0 +#define STDYCLIDXPOS 48 +#define STDYCLIDXLEN 52 +#define STDYCLIDXSTEP 56 -#define PASSWDPOS 16 -#define PASSWDLEN 16 +#define STDYCLSEGPOS 64 +#define STDYCLSEGLEN 68 +#define DICTIDXPOS 32 +#define DICTIDXLEN 36 -#define STDYNORMPOS 32 -#define STDYNORMLEN 36 -#define STDYNORMNUM 40 -#define STDYNORMCNT 44 +#define DICTSEGPOS 48 +#define DICTSEGLEN 52 +#define DICTSEGNUM 56 +#define DICTSEGMAX 60 -#define STDYCLIDXPOS 48 -#define STDYCLIDXLEN 52 -#define STDYCLIDXSTEP 56 +#define DICTAIDXPOS 64 +#define DICTAIDXLEN 68 -#define STDYCLSEGPOS 64 -#define STDYCLSEGLEN 68 +#define DICTASEGPOS 80 +#define DICTASEGLEN 84 +#define HEADERPOS 0 +#define HEADERLENGTH 128 +#define COMMENTPOS 128 +#define COMMENTLENGTH 128 -#define DICTIDXPOS 32 -#define DICTIDXLEN 36 - -#define DICTSEGPOS 48 -#define DICTSEGLEN 52 -#define DICTSEGNUM 56 -#define DICTSEGMAX 60 - -#define DICTAIDXPOS 64 -#define DICTAIDXLEN 68 - -#define DICTASEGPOS 80 -#define DICTASEGLEN 84 - - -#define HEADERPOS 0 -#define HEADERLENGTH 128 -#define COMMENTPOS 128 -#define COMMENTLENGTH 128 - - -#define Byte2Long(c3,c2,c1,c0) (((c3) << (8*3)) | ((c2) << (8*2)) | \ - ((c1) << (8*1)) | ((c0) << (8*0))) -#define STDYVERSION Byte2Long('S', 2, 0, 0) -#define DICTVERSION Byte2Long('D', 2, 0, 0) +#define Byte2Long(c3, c2, c1, c0) (((c3) << (8 * 3)) | ((c2) << (8 * 2)) | \ + ((c1) << (8 * 1)) | ((c0) << (8 * 0))) +#define STDYVERSION Byte2Long('S', 2, 0, 0) +#define DICTVERSION Byte2Long('D', 2, 0, 0) diff --git a/include/sj3core/Struct.h b/include/sj3core/Struct.h index bfa6cde..bba5946 100644 --- a/include/sj3core/Struct.h +++ b/include/sj3core/Struct.h @@ -1,6 +1,6 @@ /* * Copyright (c) 1991-1994 Sony Corporation - * + * * Permission is hereby granted, free of charge, to any person obtaining * a copy of this software and associated documentation files (the * "Software"), to deal in the Software without restriction, including @@ -8,10 +8,10 @@ * distribute, sublicense, and/or sell copies of the Software, and to * permit persons to whom the Software is furnished to do so, subject to * the following conditions: - * + * * The above copyright notice and this permission notice shall be * included in all copies or substantial portions of the Software. - * + * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. @@ -19,7 +19,7 @@ * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR * THE USE OR OTHER DEALINGS IN THE SOFTWARE. - * + * * Except as contained in this notice, the name of Sony Corporation * shall not be used in advertising or otherwise to promote the sale, use * or other dealings in this Software without prior written authorization @@ -28,8 +28,8 @@ */ /* - * $SonyRCSfile: Struct.h,v $ - * $SonyRevision: 1.3 $ + * $SonyRCSfile: Struct.h,v $ + * $SonyRevision: 1.3 $ * $SonyDate: 1994/10/21 05:13:34 $ */ @@ -37,122 +37,121 @@ #define STRUCT_H typedef struct global { - JREC *Jmaxjptr; - CLREC *Jmaxclptr; - JREC *Jjrt1st; - CLREC *Jclt1st; - JREC *Jjrt2nd; - CLREC *Jclt2nd; - CLREC *Jselcl; + JREC* Jmaxjptr; + CLREC* Jmaxclptr; + JREC* Jjrt1st; + CLREC* Jclt1st; + JREC* Jjrt2nd; + CLREC* Jclt2nd; + CLREC* Jselcl; - short Jselectid; - short Jtrank; - short Jnrank; + short Jselectid; + short Jtrank; + short Jnrank; - u_char *Jinputyomi; - u_char *Jcnvstart; + u_char* Jinputyomi; + u_char* Jcnvstart; short Jcnvlen; - u_char *Jystart; + u_char* Jystart; u_char Jhyomi[MAXPHINPUTLEN + 1]; - u_char Jorgyomi[MAXCLINPUTLEN*2 + 1]; + u_char Jorgyomi[MAXCLINPUTLEN * 2 + 1]; u_char Jkanjibuf[MINPHOUTPUTLEN]; - u_char *Jkanjipos; - u_char *Jkanjitmp; + u_char* Jkanjipos; + u_char* Jkanjitmp; short Jkanjilen; - u_char Jdicinl; - u_char Jdicsaml; - TypeDicSeg Jprevseg; + u_char Jdicinl; + u_char Jdicsaml; + TypeDicSeg Jprevseg; - u_char Jfzkcount; - u_char Jfzk_ka_flg; - FREC Jfzktbl[MAXFREC]; + u_char Jfzkcount; + u_char Jfzk_ka_flg; + FREC Jfzktbl[MAXFREC]; - u_char Jheadcode; - u_char Jheadlen; + u_char Jheadcode; + u_char Jheadlen; - u_char Jgobilen; + u_char Jgobilen; - TypeGram Jprevclgrm; - TypeCnct Jprevclrow; - u_char Jnextcllen; + TypeGram Jprevclgrm; + TypeCnct Jprevclrow; + u_char Jnextcllen; short Jkhcount; short Jnkhcount; KHREC Jkouhotbl[MAXKOUHONUMBER]; - STDYIN *Jstdytop; + STDYIN* Jstdytop; - DICT *Jcurdict; - DICTL *Jdictlist; - u_char *Jdicbuf; - u_char *Jidxbuf; - TypeIdxOfs *Jidxofs; - u_char *Jaskknj[MAXKNJASKNUMBER]; - u_char *Jaskknj_k[MAXKNJASKNUMBER]; + DICT* Jcurdict; + DICTL* Jdictlist; + u_char* Jdicbuf; + u_char* Jidxbuf; + TypeIdxOfs* Jidxofs; + u_char* Jaskknj[MAXKNJASKNUMBER]; + u_char* Jaskknj_k[MAXKNJASKNUMBER]; - STDY *Jcurstdy; + STDY* Jcurstdy; - u_short Jsuuji_wbuf[NUMWORDBUF]; - u_char Jsuuji_ubuf[NUMKETALENGTH]; - TypeClass Jsuuji_class; - u_char Jsuuji_comma; - u_char Jsuuji_keta; - u_char *Jsuuji_yptr; - u_char Jsuuji_len; - u_char Jsuuji_exit; - u_short *Jsuuji_wkeep; - u_char *Jsuuji_ukeep; + u_short Jsuuji_wbuf[NUMWORDBUF]; + u_char Jsuuji_ubuf[NUMKETALENGTH]; + TypeClass Jsuuji_class; + u_char Jsuuji_comma; + u_char Jsuuji_keta; + u_char* Jsuuji_yptr; + u_char Jsuuji_len; + u_char Jsuuji_exit; + u_short* Jsuuji_wkeep; + u_char* Jsuuji_ukeep; - u_char Jpeepyomi[MAXWDYOMILEN * 2 + 1]; - u_char Jpeepknj[MAXWDKANJILEN + 1]; - TypeGram Jpeepgrm; - u_char *Jpeepdptr; - u_char *Jpeephptr; - u_char *Jpeepkptr; - TypeDicSeg Jpeepidx; + u_char Jpeepyomi[MAXWDYOMILEN * 2 + 1]; + u_char Jpeepknj[MAXWDKANJILEN + 1]; + TypeGram Jpeepgrm; + u_char* Jpeepdptr; + u_char* Jpeephptr; + u_char* Jpeepkptr; + TypeDicSeg Jpeepidx; } Global; - -typedef struct dictfile { - DICT dict; - int refcnt; +typedef struct dictfile { + DICT dict; + int refcnt; #ifdef SJ3_LOCK - fd_set lock; + fd_set lock; #endif - FILE *fp; - int fd; + FILE* fp; + int fd; - u_char *buffer; - long bufsiz; + u_char* buffer; + long bufsiz; - long idxstrt; - long segstrt; + long idxstrt; + long segstrt; - TypeIdxOfs *ofsptr; + TypeIdxOfs* ofsptr; - struct dictfile *link; + struct dictfile* link; } DictFile; -typedef struct stdyfile { - STDY stdy; - int refcnt; - ino_t inode; - FILE *fp; - int fd; +typedef struct stdyfile { + STDY stdy; + int refcnt; + ino_t inode; + FILE* fp; + int fd; - u_char *header; + u_char* header; - struct stdyfile *link; + struct stdyfile* link; } StdyFile; -typedef struct workarea { - int refcnt; - int lock; +typedef struct workarea { + int refcnt; + int lock; - struct workarea *link; + struct workarea* link; - Global global; + Global global; } WorkArea; #endif diff --git a/include/sj3core/sj3lowlib.h b/include/sj3core/sj3lowlib.h index 84c8a75..af52044 100644 --- a/include/sj3core/sj3lowlib.h +++ b/include/sj3core/sj3lowlib.h @@ -1,6 +1,6 @@ /* * Copyright (c) 1991-1994 Sony Corporation - * + * * Permission is hereby granted, free of charge, to any person obtaining * a copy of this software and associated documentation files (the * "Software"), to deal in the Software without restriction, including @@ -8,10 +8,10 @@ * distribute, sublicense, and/or sell copies of the Software, and to * permit persons to whom the Software is furnished to do so, subject to * the following conditions: - * + * * The above copyright notice and this permission notice shall be * included in all copies or substantial portions of the Software. - * + * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. @@ -19,7 +19,7 @@ * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR * THE USE OR OTHER DEALINGS IN THE SOFTWARE. - * + * * Except as contained in this notice, the name of Sony Corporation * shall not be used in advertising or otherwise to promote the sale, use * or other dealings in this Software without prior written authorization @@ -28,42 +28,34 @@ */ /* - * $SonyRCSfile: sj3lowlib.h,v $ - * $SonyRevision: 1.1 $ + * $SonyRCSfile: sj3lowlib.h,v $ + * $SonyRevision: 1.1 $ * $SonyDate: 1994/06/03 08:00:59 $ */ #ifndef SJ3LOWLIB_H #define SJ3LOWLIB_H - - - - -typedef struct sj3_client_env { - int fd; - int serv_dead_flg; - int stdy_size; - short svr_version; - short cli_version; - char default_char[2]; +typedef struct sj3_client_env { + int fd; + int serv_dead_flg; + int stdy_size; + short svr_version; + short cli_version; + char default_char[2]; } SJ3_CLIENT_ENV; - - - -#ifndef SJ3_NAME_LENGTH -# define SJ3_NAME_LENGTH 128 +#ifndef SJ3_NAME_LENGTH +#define SJ3_NAME_LENGTH 128 #endif -typedef struct sj3_who_struct { - int fd; - char hostname[SJ3_NAME_LENGTH]; - char username[SJ3_NAME_LENGTH]; - char progname[SJ3_NAME_LENGTH]; +typedef struct sj3_who_struct { + int fd; + char hostname[SJ3_NAME_LENGTH]; + char username[SJ3_NAME_LENGTH]; + char progname[SJ3_NAME_LENGTH]; } SJ3_WHO_STRUCT; - #define MBCODE_SJIS 1 -#define MBCODE_EUC 2 +#define MBCODE_EUC 2 #endif /* SJ3LOWLIB_H */ diff --git a/include/sj3core/sj_connect.h b/include/sj3core/sj_connect.h index 9523245..47d797f 100644 --- a/include/sj3core/sj_connect.h +++ b/include/sj3core/sj_connect.h @@ -1,6 +1,6 @@ /* * Copyright (c) 1991-1994 Sony Corporation - * + * * Permission is hereby granted, free of charge, to any person obtaining * a copy of this software and associated documentation files (the * "Software"), to deal in the Software without restriction, including @@ -8,10 +8,10 @@ * distribute, sublicense, and/or sell copies of the Software, and to * permit persons to whom the Software is furnished to do so, subject to * the following conditions: - * + * * The above copyright notice and this permission notice shall be * included in all copies or substantial portions of the Software. - * + * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. @@ -19,7 +19,7 @@ * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR * THE USE OR OTHER DEALINGS IN THE SOFTWARE. - * + * * Except as contained in this notice, the name of Sony Corporation * shall not be used in advertising or otherwise to promote the sale, use * or other dealings in this Software without prior written authorization @@ -28,497 +28,490 @@ */ /* - * $SonyRCSfile: sj_connect.h,v $ - * $SonyRevision: 1.1 $ + * $SonyRCSfile: sj_connect.h,v $ + * $SonyRevision: 1.1 $ * $SonyDate: 1994/06/03 08:01:00 $ */ +#ifndef _SJ_CONNECT +#define _SJ_CONNECT +#define wo_x 0 +#define ttatte_x 0 +#define ttara_x 0 +#define tte1_x 0 +#define tte2_x 0 +#define ppanasi_x 0 +#define ppoi_x 0 +#define ue_x 0 +#define uti_x 0 +#define oite_x 0 +#define okeru_x 0 +#define ori_x 0 +#define ka1_x 0 +#define ka2_x 0 +#define kai_x 0 +#define kasira_x 0 -#ifndef _SJ_CONNECT +#define katagata_x 0 +#define kadouka_x 0 +#define kana_x 0 +#define kane_x 0 +#define kamo_x 0 +#define kara1_x 0 +#define kara2_x 0 +#define ga1_x 0 -#define _SJ_CONNECT +#define ga2_x 0 +#define gatera_x 0 +#define kiri_x 0 +#define kuseni_x 0 +#define kurai_x 0 +#define gurumi_x 0 +#define kedo_x 0 +#define koso_x 0 -#define wo_x 0 -#define ttatte_x 0 -#define ttara_x 0 -#define tte1_x 0 -#define tte2_x 0 -#define ppanasi_x 0 -#define ppoi_x 0 -#define ue_x 0 +#define koto_x 0 +#define sa2_x 0 +#define sae_x 0 +#define si2_x 0 +#define sika_x 0 +#define sura_x 0 +#define zutu_x 0 +#define zo_x 0 -#define uti_x 0 -#define oite_x 0 -#define okeru_x 0 -#define ori_x 0 -#define ka1_x 0 -#define ka2_x 0 -#define kai_x 0 -#define kasira_x 0 +#define tame_x 0 +#define dake_x 0 +#define dano_x 0 +#define darake_x 0 +#define tuite_x 0 +#define tuki_x 0 +#define tutu_x 0 +#define tumori_x 0 -#define katagata_x 0 -#define kadouka_x 0 -#define kana_x 0 -#define kane_x 0 -#define kamo_x 0 -#define kara1_x 0 -#define kara2_x 0 -#define ga1_x 0 +#define te1_x 0 +#define te2_x 0 +#define teru_x 0 +#define dearou_x 0 +#define deru_x 0 +#define to1_x 0 +#define to2_x 0 +#define totte_x 0 -#define ga2_x 0 -#define gatera_x 0 -#define kiri_x 0 -#define kuseni_x 0 -#define kurai_x 0 -#define gurumi_x 0 -#define kedo_x 0 -#define koso_x 0 +#define toiu_x 0 +#define toori_x 0 +#define toki_x 0 +#define tokoro_x 0 +#define tote_x 0 +#define tohaie_x 0 +#define tomo_x 0 +#define do_x 0 -#define koto_x 0 -#define sa2_x 0 -#define sae_x 0 -#define si2_x 0 -#define sika_x 0 -#define sura_x 0 -#define zutu_x 0 -#define zo_x 0 +#define doori_x 0 +#define dokoro_x 0 +#define dokoroka_x 0 +#define domo_x 0 +#define na1_x 0 +#define naa_x 0 +#define nagara_x 0 +#define nazo_x 0 -#define tame_x 0 -#define dake_x 0 -#define dano_x 0 -#define darake_x 0 -#define tuite_x 0 -#define tuki_x 0 -#define tutu_x 0 -#define tumori_x 0 +#define nado_x 0 +#define nari_x 0 +#define nanka_x 0 +#define nanzo_x 0 +#define nante_x 0 +#define ni1_x 0 +#define ni2_x 0 +#define ni3_x 0 -#define te1_x 0 -#define te2_x 0 -#define teru_x 0 -#define dearou_x 0 -#define deru_x 0 -#define to1_x 0 -#define to2_x 0 -#define totte_x 0 +#define nite_x 0 +#define nimo_x 0 +#define ne1_x 0 +#define nee_x 0 +#define no1_x 0 +#define no2_x 0 +#define node_x 0 +#define noni_x 0 -#define toiu_x 0 -#define toori_x 0 -#define toki_x 0 -#define tokoro_x 0 -#define tote_x 0 -#define tohaie_x 0 -#define tomo_x 0 -#define do_x 0 +#define nomi_x 0 +#define nominrz_x 0 +#define ha_x 0 +#define hazu_x 0 +#define ba_x 0 +#define bakari_x 0 +#define he_x 0 +#define hou_x 0 -#define doori_x 0 -#define dokoro_x 0 -#define dokoroka_x 0 -#define domo_x 0 -#define na1_x 0 -#define naa_x 0 -#define nagara_x 0 -#define nazo_x 0 +#define hoka_x 0 +#define hodo_x 0 +#define made_x 0 +#define mama_x 0 +#define mo1_x 0 +#define mo2_x 0 +#define motte_x 0 +#define mono_x 0 -#define nado_x 0 -#define nari_x 0 -#define nanka_x 0 -#define nanzo_x 0 -#define nante_x 0 -#define ni1_x 0 -#define ni2_x 0 -#define ni3_x 0 +#define ya1_x 0 +#define ya2_x 0 +#define yara_x 0 +#define yue_x 0 +#define yo_x 0 +#define yori_x 0 +#define wa_x 0 +#define wake_x 0 -#define nite_x 0 -#define nimo_x 0 -#define ne1_x 0 -#define nee_x 0 -#define no1_x 0 -#define no2_x 0 -#define node_x 0 -#define noni_x 0 +#define wane_x 0 +#define wayo_x 0 +#define nn1_x 0 +#define jya_x 0 +#define tya_x 0 +#define nagara2_x 0 +#define wo_s_x 0 -#define nomi_x 0 -#define nominrz_x 0 -#define ha_x 0 -#define hazu_x 0 -#define ba_x 0 -#define bakari_x 0 -#define he_x 0 -#define hou_x 0 +#define ze_x 0 +#define kke_x 0 +#define n_si_x 0 +#define deha_x 0 -#define hoka_x 0 -#define hodo_x 0 -#define made_x 0 -#define mama_x 0 -#define mo1_x 0 -#define mo2_x 0 -#define motte_x 0 -#define mono_x 0 +#define gotosi_x 0 +#define saseru_x 0 +#define zaru_x 0 +#define zu_x 0 +#define zunba_x 0 +#define seru_x 0 +#define souda_x 0 +#define youtai_x 0 -#define ya1_x 0 -#define ya2_x 0 -#define yara_x 0 -#define yue_x 0 -#define yo_x 0 -#define yori_x 0 -#define wa_x 0 -#define wake_x 0 +#define denbun_x 0 +#define ta_x 0 +#define tai_x 0 +#define tagaru_x 0 +#define taru_x 0 +#define da1_x 0 +#define da2_x 0 +#define daxtu_x 0 -#define wane_x 0 -#define wayo_x 0 -#define nn1_x 0 -#define jya_x 0 -#define tya_x 0 -#define nagara2_x 0 -#define wo_s_x 0 +#define darou_x 0 +#define de_x 0 +#define desi_x 0 +#define desho_x 0 +#define desu_x 0 +#define na2_x 0 +#define nara_x 0 +#define nai_x 0 -#define ze_x 0 -#define kke_x 0 -#define n_si_x 0 -#define deha_x 0 +#define nu_x 0 +#define ne2_x 0 +#define nn2_x 0 +#define fuuda_x 0 +#define besi_x 0 +#define mai_x 0 +#define masu_x 0 +#define masure_x 0 -#define gotosi_x 0 -#define saseru_x 0 -#define zaru_x 0 -#define zu_x 0 -#define zunba_x 0 -#define seru_x 0 -#define souda_x 0 -#define youtai_x 0 +#define mase_x 0 +#define mitaida_x 0 +#define you_x 0 +#define youda_x 0 +#define rasii_x 0 +#define rareru_x 0 +#define reru_x 0 +#define site_x 0 -#define denbun_x 0 -#define ta_x 0 -#define tai_x 0 -#define tagaru_x 0 -#define taru_x 0 -#define da1_x 0 -#define da2_x 0 -#define daxtu_x 0 +#define yougen_x 0 +#define aru_x 0 +#define ara_x 0 +#define ari1_x 0 +#define ari2_x 0 +#define ari3_x 0 +#define are1_x 0 +#define are2_x 0 -#define darou_x 0 -#define de_x 0 -#define desi_x 0 -#define desho_x 0 -#define desu_x 0 -#define na2_x 0 -#define nara_x 0 -#define nai_x 0 +#define arou_x 0 +#define ii_x 0 +#define itasi_x 0 +#define itadaku_x 0 +#define iru_x 0 +#define eru_x 0 +#define kakeru_x 0 +#define kaneru_x 0 -#define nu_x 0 -#define ne2_x 0 -#define nn2_x 0 -#define fuuda_x 0 -#define besi_x 0 -#define mai_x 0 -#define masu_x 0 -#define masure_x 0 +#define karazu_x 0 +#define gatai_x 0 +#define gatida_x 0 +#define kudasaru_x 0 +#define gozai_x 0 +#define sa1_x 0 +#define si1_x 0 +#define siro_x 0 -#define mase_x 0 -#define mitaida_x 0 -#define you_x 0 -#define youda_x 0 -#define rasii_x 0 -#define rareru_x 0 -#define reru_x 0 -#define site_x 0 +#define jyau_x 0 +#define jimau_x 0 +#define sugiru_x 0 +#define subesi_x 0 +#define suru_x 0 +#define sure_x 0 +#define se_x 0 +#define seyo_x 0 -#define yougen_x 0 -#define aru_x 0 -#define ara_x 0 -#define ari1_x 0 -#define ari2_x 0 -#define ari3_x 0 -#define are1_x 0 -#define are2_x 0 +#define tamau_x 0 +#define tayu_x 0 +#define timau_x 0 +#define dekiru_x 0 +#define naru_x 0 +#define nasai_x 0 +#define nasaru_x 0 +#define nikui_x 0 -#define arou_x 0 -#define ii_x 0 -#define itasi_x 0 -#define itadaku_x 0 -#define iru_x 0 -#define eru_x 0 -#define kakeru_x 0 -#define kaneru_x 0 - -#define karazu_x 0 -#define gatai_x 0 -#define gatida_x 0 -#define kudasaru_x 0 -#define gozai_x 0 -#define sa1_x 0 -#define si1_x 0 -#define siro_x 0 - -#define jyau_x 0 -#define jimau_x 0 -#define sugiru_x 0 -#define subesi_x 0 -#define suru_x 0 -#define sure_x 0 -#define se_x 0 -#define seyo_x 0 - -#define tamau_x 0 -#define tayu_x 0 -#define timau_x 0 -#define dekiru_x 0 -#define naru_x 0 -#define nasai_x 0 -#define nasaru_x 0 -#define nikui_x 0 - -#define yasui_x 0 -#define yoi_x 0 -#define yaru_x 0 -#ifdef HORI - \244\303\244\277\244\351\244\267\244\244\244\316 \244\316\276\360\312\363\244\362\304\311\262\303 1/31 +#define yasui_x 0 +#define yoi_x 0 +#define yaru_x 0 +#ifdef HORI +\244\303\244\277\244\351\244\267\244\244\244\316 \244\316\276\360\312\363\244\362\304\311\262\303 1 / 31 #endif -#define ttarasii_x 0 +#define ttarasii_x 0 +#define wo_o 0x80 +#define ttatte_o 0x40 +#define ttara_o 0x20 +#define tte1_o 0x10 +#define tte2_o 0x08 +#define ppanasi_o 0x04 +#define ppoi_o 0x02 +#define ue_o 0x01 -#define wo_o 0x80 -#define ttatte_o 0x40 -#define ttara_o 0x20 -#define tte1_o 0x10 -#define tte2_o 0x08 -#define ppanasi_o 0x04 -#define ppoi_o 0x02 -#define ue_o 0x01 +#define uti_o 0x80 +#define oite_o 0x40 +#define okeru_o 0x20 +#define ori_o 0x10 +#define ka1_o 0x08 +#define ka2_o 0x04 +#define kai_o 0x02 +#define kasira_o 0x01 -#define uti_o 0x80 -#define oite_o 0x40 -#define okeru_o 0x20 -#define ori_o 0x10 -#define ka1_o 0x08 -#define ka2_o 0x04 -#define kai_o 0x02 -#define kasira_o 0x01 +#define katagata_o 0x80 +#define kadouka_o 0x40 +#define kana_o 0x20 +#define kane_o 0x10 +#define kamo_o 0x08 +#define kara1_o 0x04 +#define kara2_o 0x02 +#define ga1_o 0x01 -#define katagata_o 0x80 -#define kadouka_o 0x40 -#define kana_o 0x20 -#define kane_o 0x10 -#define kamo_o 0x08 -#define kara1_o 0x04 -#define kara2_o 0x02 -#define ga1_o 0x01 +#define ga2_o 0x80 +#define gatera_o 0x40 +#define kiri_o 0x20 +#define kuseni_o 0x10 +#define kurai_o 0x08 +#define gurumi_o 0x04 +#define kedo_o 0x02 +#define koso_o 0x01 -#define ga2_o 0x80 -#define gatera_o 0x40 -#define kiri_o 0x20 -#define kuseni_o 0x10 -#define kurai_o 0x08 -#define gurumi_o 0x04 -#define kedo_o 0x02 -#define koso_o 0x01 +#define koto_o 0x80 +#define sa2_o 0x40 +#define sae_o 0x20 +#define si2_o 0x10 +#define sika_o 0x08 +#define sura_o 0x04 +#define zutu_o 0x02 +#define zo_o 0x01 -#define koto_o 0x80 -#define sa2_o 0x40 -#define sae_o 0x20 -#define si2_o 0x10 -#define sika_o 0x08 -#define sura_o 0x04 -#define zutu_o 0x02 -#define zo_o 0x01 +#define tame_o 0x80 +#define dake_o 0x40 +#define dano_o 0x20 +#define darake_o 0x10 +#define tuite_o 0x08 +#define tuki_o 0x04 +#define tutu_o 0x02 +#define tumori_o 0x01 -#define tame_o 0x80 -#define dake_o 0x40 -#define dano_o 0x20 -#define darake_o 0x10 -#define tuite_o 0x08 -#define tuki_o 0x04 -#define tutu_o 0x02 -#define tumori_o 0x01 +#define te1_o 0x80 +#define te2_o 0x40 +#define teru_o 0x20 +#define dearou_o 0x10 +#define deru_o 0x08 +#define to1_o 0x04 +#define to2_o 0x02 +#define totte_o 0x01 -#define te1_o 0x80 -#define te2_o 0x40 -#define teru_o 0x20 -#define dearou_o 0x10 -#define deru_o 0x08 -#define to1_o 0x04 -#define to2_o 0x02 -#define totte_o 0x01 +#define toiu_o 0x80 +#define toori_o 0x40 +#define toki_o 0x20 +#define tokoro_o 0x10 +#define tote_o 0x08 +#define tohaie_o 0x04 +#define tomo_o 0x02 +#define do_o 0x01 -#define toiu_o 0x80 -#define toori_o 0x40 -#define toki_o 0x20 -#define tokoro_o 0x10 -#define tote_o 0x08 -#define tohaie_o 0x04 -#define tomo_o 0x02 -#define do_o 0x01 +#define doori_o 0x80 +#define dokoro_o 0x40 +#define dokoroka_o 0x20 +#define domo_o 0x10 +#define na1_o 0x08 +#define naa_o 0x04 +#define nagara_o 0x02 +#define nazo_o 0x01 -#define doori_o 0x80 -#define dokoro_o 0x40 -#define dokoroka_o 0x20 -#define domo_o 0x10 -#define na1_o 0x08 -#define naa_o 0x04 -#define nagara_o 0x02 -#define nazo_o 0x01 +#define nado_o 0x80 +#define nari_o 0x40 +#define nanka_o 0x20 +#define nanzo_o 0x10 +#define nante_o 0x08 +#define ni1_o 0x04 +#define ni2_o 0x02 +#define ni3_o 0x01 -#define nado_o 0x80 -#define nari_o 0x40 -#define nanka_o 0x20 -#define nanzo_o 0x10 -#define nante_o 0x08 -#define ni1_o 0x04 -#define ni2_o 0x02 -#define ni3_o 0x01 +#define nite_o 0x80 +#define nimo_o 0x40 +#define ne1_o 0x20 +#define nee_o 0x10 +#define no1_o 0x08 +#define no2_o 0x04 +#define node_o 0x02 +#define noni_o 0x01 -#define nite_o 0x80 -#define nimo_o 0x40 -#define ne1_o 0x20 -#define nee_o 0x10 -#define no1_o 0x08 -#define no2_o 0x04 -#define node_o 0x02 -#define noni_o 0x01 +#define nomi_o 0x80 +#define nominrz_o 0x40 +#define ha_o 0x20 +#define hazu_o 0x10 +#define ba_o 0x08 +#define bakari_o 0x04 +#define he_o 0x02 +#define hou_o 0x01 -#define nomi_o 0x80 -#define nominrz_o 0x40 -#define ha_o 0x20 -#define hazu_o 0x10 -#define ba_o 0x08 -#define bakari_o 0x04 -#define he_o 0x02 -#define hou_o 0x01 +#define hoka_o 0x80 +#define hodo_o 0x40 +#define made_o 0x20 +#define mama_o 0x10 +#define mo1_o 0x08 +#define mo2_o 0x04 +#define motte_o 0x02 +#define mono_o 0x01 -#define hoka_o 0x80 -#define hodo_o 0x40 -#define made_o 0x20 -#define mama_o 0x10 -#define mo1_o 0x08 -#define mo2_o 0x04 -#define motte_o 0x02 -#define mono_o 0x01 +#define ya1_o 0x80 +#define ya2_o 0x40 +#define yara_o 0x20 +#define yue_o 0x10 +#define yo_o 0x08 +#define yori_o 0x04 +#define wa_o 0x02 +#define wake_o 0x01 -#define ya1_o 0x80 -#define ya2_o 0x40 -#define yara_o 0x20 -#define yue_o 0x10 -#define yo_o 0x08 -#define yori_o 0x04 -#define wa_o 0x02 -#define wake_o 0x01 +#define wane_o 0x80 +#define wayo_o 0x40 +#define nn1_o 0x20 +#define jya_o 0x10 +#define tya_o 0x08 +#define nagara2_o 0x04 +#define wo_s_o 0x02 -#define wane_o 0x80 -#define wayo_o 0x40 -#define nn1_o 0x20 -#define jya_o 0x10 -#define tya_o 0x08 -#define nagara2_o 0x04 -#define wo_s_o 0x02 +#define ze_o 0x80 +#define kke_o 0x40 +#define n_si_o 0x20 +#define deha_o 0x10 -#define ze_o 0x80 -#define kke_o 0x40 -#define n_si_o 0x20 -#define deha_o 0x10 +#define gotosi_o 0x80 +#define saseru_o 0x40 +#define zaru_o 0x20 +#define zu_o 0x10 +#define zunba_o 0x08 +#define seru_o 0x04 +#define souda_o 0x02 +#define youtai_o 0x01 +#define denbun_o 0x80 +#define ta_o 0x40 +#define tai_o 0x20 +#define tagaru_o 0x10 +#define taru_o 0x08 +#define da1_o 0x04 +#define da2_o 0x02 +#define daxtu_o 0x01 -#define gotosi_o 0x80 -#define saseru_o 0x40 -#define zaru_o 0x20 -#define zu_o 0x10 -#define zunba_o 0x08 -#define seru_o 0x04 -#define souda_o 0x02 -#define youtai_o 0x01 +#define darou_o 0x80 +#define de_o 0x40 +#define desi_o 0x20 +#define desho_o 0x10 +#define desu_o 0x08 +#define na2_o 0x04 +#define nara_o 0x02 +#define nai_o 0x01 -#define denbun_o 0x80 -#define ta_o 0x40 -#define tai_o 0x20 -#define tagaru_o 0x10 -#define taru_o 0x08 -#define da1_o 0x04 -#define da2_o 0x02 -#define daxtu_o 0x01 +#define nu_o 0x80 +#define ne2_o 0x40 +#define nn2_o 0x20 +#define fuuda_o 0x10 +#define besi_o 0x08 +#define mai_o 0x04 +#define masu_o 0x02 +#define masure_o 0x01 -#define darou_o 0x80 -#define de_o 0x40 -#define desi_o 0x20 -#define desho_o 0x10 -#define desu_o 0x08 -#define na2_o 0x04 -#define nara_o 0x02 -#define nai_o 0x01 +#define mase_o 0x80 +#define mitaida_o 0x40 +#define you_o 0x20 +#define youda_o 0x10 +#define rasii_o 0x08 +#define rareru_o 0x04 +#define reru_o 0x02 +#define site_o 0x01 -#define nu_o 0x80 -#define ne2_o 0x40 -#define nn2_o 0x20 -#define fuuda_o 0x10 -#define besi_o 0x08 -#define mai_o 0x04 -#define masu_o 0x02 -#define masure_o 0x01 +#define yougen_o 0x80 +#define aru_o 0x40 +#define ara_o 0x20 +#define ari1_o 0x10 +#define ari2_o 0x08 +#define ari3_o 0x04 +#define are1_o 0x02 +#define are2_o 0x01 -#define mase_o 0x80 -#define mitaida_o 0x40 -#define you_o 0x20 -#define youda_o 0x10 -#define rasii_o 0x08 -#define rareru_o 0x04 -#define reru_o 0x02 -#define site_o 0x01 +#define arou_o 0x80 +#define ii_o 0x40 +#define itasi_o 0x20 +#define itadaku_o 0x10 +#define iru_o 0x08 +#define eru_o 0x04 +#define kakeru_o 0x02 +#define kaneru_o 0x01 -#define yougen_o 0x80 -#define aru_o 0x40 -#define ara_o 0x20 -#define ari1_o 0x10 -#define ari2_o 0x08 -#define ari3_o 0x04 -#define are1_o 0x02 -#define are2_o 0x01 +#define karazu_o 0x80 +#define gatai_o 0x40 +#define gatida_o 0x20 +#define kudasaru_o 0x10 +#define gozai_o 0x08 +#define sa1_o 0x04 +#define si1_o 0x02 +#define siro_o 0x01 -#define arou_o 0x80 -#define ii_o 0x40 -#define itasi_o 0x20 -#define itadaku_o 0x10 -#define iru_o 0x08 -#define eru_o 0x04 -#define kakeru_o 0x02 -#define kaneru_o 0x01 +#define jyau_o 0x80 +#define jimau_o 0x40 +#define sugiru_o 0x20 +#define subesi_o 0x10 +#define suru_o 0x08 +#define sure_o 0x04 +#define se_o 0x02 +#define seyo_o 0x01 -#define karazu_o 0x80 -#define gatai_o 0x40 -#define gatida_o 0x20 -#define kudasaru_o 0x10 -#define gozai_o 0x08 -#define sa1_o 0x04 -#define si1_o 0x02 -#define siro_o 0x01 +#define tamau_o 0x80 +#define tayu_o 0x40 +#define timau_o 0x20 +#define dekiru_o 0x10 +#define naru_o 0x08 +#define nasai_o 0x04 +#define nasaru_o 0x02 +#define nikui_o 0x01 -#define jyau_o 0x80 -#define jimau_o 0x40 -#define sugiru_o 0x20 -#define subesi_o 0x10 -#define suru_o 0x08 -#define sure_o 0x04 -#define se_o 0x02 -#define seyo_o 0x01 +#define yasui_o 0x80 +#define yoi_o 0x40 +#define yaru_o 0x20 -#define tamau_o 0x80 -#define tayu_o 0x40 -#define timau_o 0x20 -#define dekiru_o 0x10 -#define naru_o 0x08 -#define nasai_o 0x04 -#define nasaru_o 0x02 -#define nikui_o 0x01 - -#define yasui_o 0x80 -#define yoi_o 0x40 -#define yaru_o 0x20 - -#ifdef HORI - \244\303\244\277\244\351\244\267\244\244\244\316 \244\316\276\360\312\363\244\362\304\311\262\303 1/31 +#ifdef HORI + \244\303\244\277\244\351\244\267\244\244\244\316 \244\316\276\360\312\363\244\362\304\311\262\303 1 / 31 #endif -#define ttarasii_o 0x10 - +#define ttarasii_o 0x10 #endif diff --git a/include/sj3core/sj_const.h b/include/sj3core/sj_const.h index 90c4808..efc5647 100644 --- a/include/sj3core/sj_const.h +++ b/include/sj3core/sj_const.h @@ -1,6 +1,6 @@ /* * Copyright (c) 1991-1994 Sony Corporation - * + * * Permission is hereby granted, free of charge, to any person obtaining * a copy of this software and associated documentation files (the * "Software"), to deal in the Software without restriction, including @@ -8,10 +8,10 @@ * distribute, sublicense, and/or sell copies of the Software, and to * permit persons to whom the Software is furnished to do so, subject to * the following conditions: - * + * * The above copyright notice and this permission notice shall be * included in all copies or substantial portions of the Software. - * + * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. @@ -19,7 +19,7 @@ * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR * THE USE OR OTHER DEALINGS IN THE SOFTWARE. - * + * * Except as contained in this notice, the name of Sony Corporation * shall not be used in advertising or otherwise to promote the sale, use * or other dealings in this Software without prior written authorization @@ -28,128 +28,126 @@ */ /* - * $SonyRCSfile: sj_const.h,v $ - * $SonyRevision: 1.1 $ + * $SonyRCSfile: sj_const.h,v $ + * $SonyRevision: 1.1 $ * $SonyDate: 1994/06/03 08:01:01 $ */ -#ifndef _SJ_CONST +#ifndef _SJ_CONST -#define _SJ_CONST +#define _SJ_CONST #include "sj_euc.h" -#define MATCH 0 -#define OVER 1 -#define PARTLY 2 -#define CONT 3 -#define UNDER 4 +#define MATCH 0 +#define OVER 1 +#define PARTLY 2 +#define CONT 3 +#define UNDER 4 -#define FALSE 0 -#define TRUE -1 +#define FALSE 0 +#define TRUE -1 -#define AD_DONE 0x0000 -#define AD_NOTUSERDICT 0x0001 -#define AD_BADYOMI 0x0002 -#define AD_BADKANJI 0x0004 -#define AD_BADHINSI 0x0008 +#define AD_DONE 0x0000 +#define AD_NOTUSERDICT 0x0001 +#define AD_BADYOMI 0x0002 +#define AD_BADKANJI 0x0004 +#define AD_BADHINSI 0x0008 -#define AD_AREXIST 0x0010 -#define AD_OVFLWDOUBLK 0x0020 -#define AD_OVFLWDOUNUM 0x0040 -#define AD_OVFLWUSRDIC 0x0080 -#define AD_OVFLWINDEX 0x0100 +#define AD_AREXIST 0x0010 +#define AD_OVFLWDOUBLK 0x0020 +#define AD_OVFLWDOUNUM 0x0040 +#define AD_OVFLWUSRDIC 0x0080 +#define AD_OVFLWINDEX 0x0100 -#define AD_NOMIDASI 0x0010 -#define AD_NOHINSI 0x0020 -#define AD_NOKANJI 0x0040 +#define AD_NOMIDASI 0x0010 +#define AD_NOHINSI 0x0020 +#define AD_NOKANJI 0x0040 -#define C_WAKACHI 0x00 -#define C_MINASI 0x01 -#define C_BUNSETU 0x02 -#define C_DICT 0x03 -#define C_N_ARABIA 0x04 -#define C_N_ARACMA 0x05 -#define C_N_KAZU 0x06 -#define C_N_SUUJI 0x07 -#define C_N_NANSUU 0x08 -#define C_N_KANKURA 0x09 -#define C_N_ARAKURA 0x0a -#define C_N_KAZULONG 0x0b -#define C_N_KAZULCMA 0x0c -#define C_N_SUUJILONG 0x0d +#define C_WAKACHI 0x00 +#define C_MINASI 0x01 +#define C_BUNSETU 0x02 +#define C_DICT 0x03 +#define C_N_ARABIA 0x04 +#define C_N_ARACMA 0x05 +#define C_N_KAZU 0x06 +#define C_N_SUUJI 0x07 +#define C_N_NANSUU 0x08 +#define C_N_KANKURA 0x09 +#define C_N_ARAKURA 0x0a +#define C_N_KAZULONG 0x0b +#define C_N_KAZULCMA 0x0c +#define C_N_SUUJILONG 0x0d -#define JFLAG_N10 (1 << 15) -#define JFLAG_N_1 (1 << 14) -#define JFLAG_NS1 (1 << 13) -#define JFLAG_N01 (1 << 12) -#define JFLAG_N23 (1 << 11) -#define JFLAG_NK2 (1 << 10) -#define JFLAG_NK4 (1 << 9) -#define JFLAG_NN0 (1 << 8) -#define JFLAG_NSN (1 << 7) -#define JFLAG_KA (1 << 0) +#define JFLAG_N10 (1 << 15) +#define JFLAG_N_1 (1 << 14) +#define JFLAG_NS1 (1 << 13) +#define JFLAG_N01 (1 << 12) +#define JFLAG_N23 (1 << 11) +#define JFLAG_NK2 (1 << 10) +#define JFLAG_NK4 (1 << 9) +#define JFLAG_NN0 (1 << 8) +#define JFLAG_NSN (1 << 7) +#define JFLAG_KA (1 << 0) -#define DO_CLSTUDY 0x01 -#define DO_IKKATU 0x02 +#define DO_CLSTUDY 0x01 +#define DO_IKKATU 0x02 -#define K_DOUSHI 1 -#define K_YOUGEN 2 -#define K_TAIGEN 3 -#define K_FUKUSI 4 -#define K_RENTAISI 5 -#define K_SONOTA 6 +#define K_DOUSHI 1 +#define K_YOUGEN 2 +#define K_TAIGEN 3 +#define K_FUKUSI 4 +#define K_RENTAISI 5 +#define K_SONOTA 6 -#define EUC_a1 (u_char)0xa1 -#define EUC_a2 (u_char)0xa2 -#define EUC_a3 (u_char)0xa3 -#define EUC_a4 (u_char)0xa4 -#define EUC_a5 (u_char)0xa5 +#define EUC_a1 (u_char)0xa1 +#define EUC_a2 (u_char)0xa2 +#define EUC_a3 (u_char)0xa3 +#define EUC_a4 (u_char)0xa4 +#define EUC_a5 (u_char)0xa5 +#define EUC_START (u_char)0xa1 +#define EUC_END (u_char)0xfe +#define EUC_END_KIGOU (u_char)0xae +#define EUC_0 (u_char)0xb0 +#define EUC_END_0 (u_char)0xb9 +#define EUC_A (u_char)0xc1 +#define EUC_END_A (u_char)0xda +#define EUC_a (u_char)0xe1 +#define EUC_END_a (u_char)0xfa +#define EUC_END_HIRA (u_char)0xf3 +#define EUC_VU (u_char)0xf4 +#define EUC_XKA (u_char)0xf5 +#define EUC_XKE (u_char)0xf6 -#define EUC_START (u_char)0xa1 -#define EUC_END (u_char)0xfe -#define EUC_END_KIGOU (u_char)0xae -#define EUC_0 (u_char)0xb0 -#define EUC_END_0 (u_char)0xb9 -#define EUC_A (u_char)0xc1 -#define EUC_END_A (u_char)0xda -#define EUC_a (u_char)0xe1 -#define EUC_END_a (u_char)0xfa -#define EUC_END_HIRA (u_char)0xf3 -#define EUC_VU (u_char)0xf4 -#define EUC_XKA (u_char)0xf5 -#define EUC_XKE (u_char)0xf6 +#define isknj1(c) (((c) == SS2) || (((c) & 0x80) && ((c) != SS3))) -#define isknj1(c) (((c) == SS2) || (((c) & 0x80) && ((c) != SS3))) +#define SHU 0x01 +#define T_KANOU 0x80 +#define T_SHUUJO 0x40 -#define SHU 0x01 -#define T_KANOU 0x80 -#define T_SHUUJO 0x40 +#define DICTOP 0x01 +#define FZKTOP 0x02 +#define DEPEND 0x04 +#define NUMBER 0x08 +#define FZK_KGU 0x10 +#define TAI_KGU 0x20 +#define BEFORNUM 0x40 +#define MIDNUM 0x80 +#define NOTNRM 0xFE -#define DICTOP 0x01 -#define FZKTOP 0x02 -#define DEPEND 0x04 -#define NUMBER 0x08 -#define FZK_KGU 0x10 -#define TAI_KGU 0x20 -#define BEFORNUM 0x40 -#define MIDNUM 0x80 -#define NOTNRM 0xFE +#define CNJEND 0xff +#define TYOUONFLG 0x80 -#define CNJEND 0xff -#define TYOUONFLG 0x80 +#define MAXFREC 32 +#define MAXFLVL 10 +#define FZKEND 0xff -#define MAXFREC 32 -#define MAXFLVL 10 -#define FZKEND 0xff - -#define SETTOU_O 1 -#define SETTOU_GO 2 -#define SETTOU_DAI 3 -#define SETTOU_KIGOU 4 - -#define NUMKETALENGTH 16 -#define NUMWORDBUF ((NUMKETALENGTH+3)/4) +#define SETTOU_O 1 +#define SETTOU_GO 2 +#define SETTOU_DAI 3 +#define SETTOU_KIGOU 4 +#define NUMKETALENGTH 16 +#define NUMWORDBUF ((NUMKETALENGTH + 3) / 4) #endif diff --git a/include/sj3core/sj_dict.h b/include/sj3core/sj_dict.h index 9334180..cb2c01d 100644 --- a/include/sj3core/sj_dict.h +++ b/include/sj3core/sj_dict.h @@ -1,6 +1,6 @@ /* * Copyright (c) 1991-1994 Sony Corporation - * + * * Permission is hereby granted, free of charge, to any person obtaining * a copy of this software and associated documentation files (the * "Software"), to deal in the Software without restriction, including @@ -8,10 +8,10 @@ * distribute, sublicense, and/or sell copies of the Software, and to * permit persons to whom the Software is furnished to do so, subject to * the following conditions: - * + * * The above copyright notice and this permission notice shall be * included in all copies or substantial portions of the Software. - * + * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. @@ -19,7 +19,7 @@ * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR * THE USE OR OTHER DEALINGS IN THE SOFTWARE. - * + * * Except as contained in this notice, the name of Sony Corporation * shall not be used in advertising or otherwise to promote the sale, use * or other dealings in this Software without prior written authorization @@ -28,71 +28,61 @@ */ /* - * $SonyRCSfile: sj_dict.h,v $ - * $SonyRevision: 1.1 $ + * $SonyRCSfile: sj_dict.h,v $ + * $SonyRevision: 1.1 $ * $SonyDate: 1994/06/03 08:01:03 $ */ +#ifndef _SJ_DICT +#define _SJ_DICT +#define DIC_MAIN 0 +#define DIC_USER 1 +#define DICSEGBASE 0 +#define MAXDOUONBLK 0xfff +#define DOUONBLKSIZENUMBER 3 +#define DICSEGTERM 0xff +#define DOUONBLKTERM 0xff +#define HINSIBLKTERM 0xff +#define MAXSEGMENTNUMBER 0xffff -#ifndef _SJ_DICT +#define NORMALKANJIMASK 0x7f +#define SS3KANJI 0x0080 +#define ZENHIRAASSYUKU 0x80 +#define OFFSETASSYUKU 0x90 +#define ZENKATAASSYUKU 0xa0 +#define AIATTRIBUTE 0xb0 +#define KANJIASSYUKU 0xc0 +#define LEADINGHANKAKU 0xd0 +#define KANJISTREND 0x00 +#define ISASSYUKU 0x80 +#define ASSUKUUSE2BYTE 0x90 +#define KNJASSYUKUMASK 0x0f +#define KANJICODEMASK 0x0f +#define KANJIMODEMASK 0xf0 +#define ATRMSKANJIOFS 0xc0c0 -#define _SJ_DICT +#define MAXKNJASKNUMBER 16 +#define MAXYOMIASKNUMBER 16 +#define MAXWDYOMILEN 31 +#define MAXWDKANJILEN 64 +#define ASSYUKUYOMITOP 0x80 +#define NOKORIYOMITOP 0x40 -#define DIC_MAIN 0 -#define DIC_USER 1 +#define getsize(p) (((int)(*(p) & 0x0f) * 0x100) + *((p) + 1)) -#define DICSEGBASE 0 -#define MAXDOUONBLK 0xfff -#define DOUONBLKSIZENUMBER 3 -#define DICSEGTERM 0xff -#define DOUONBLKTERM 0xff -#define HINSIBLKTERM 0xff -#define MAXSEGMENTNUMBER 0xffff +#define getntag(p) ((*(p) == DICSEGTERM) ? (p) : (p) + getsize(p)) +#define getplen(p) (((*(p) & ASSYUKUYOMITOP) ? 0x10 : 0) + (*((p) + 2) >> 4)) +#define getnlen(p) (((*(p) & NOKORIYOMITOP) ? 0x10 : 0) + (*((p) + 2) & 0x0f)) -#define NORMALKANJIMASK 0x7f -#define SS3KANJI 0x0080 -#define ZENHIRAASSYUKU 0x80 -#define OFFSETASSYUKU 0x90 -#define ZENKATAASSYUKU 0xa0 -#define AIATTRIBUTE 0xb0 -#define KANJIASSYUKU 0xc0 -#define LEADINGHANKAKU 0xd0 -#define KANJISTREND 0x00 -#define ISASSYUKU 0x80 -#define ASSUKUUSE2BYTE 0x90 -#define KNJASSYUKUMASK 0x0f -#define KANJICODEMASK 0x0f -#define KANJIMODEMASK 0xf0 -#define ATRMSKANJIOFS 0xc0c0 +#define segtop() (dicbuf + *dicbuf + 1) -#define MAXKNJASKNUMBER 16 -#define MAXYOMIASKNUMBER 16 - -#define MAXWDYOMILEN 31 -#define MAXWDKANJILEN 64 - -#define ASSYUKUYOMITOP 0x80 -#define NOKORIYOMITOP 0x40 - - -#define getsize(p) (((int)(*(p) & 0x0f) * 0x100) + *((p) + 1)) - -#define getntag(p) ((*(p) == DICSEGTERM) ? (p) : (p) + getsize(p)) - -#define getplen(p) (((*(p) & ASSYUKUYOMITOP) ? 0x10 : 0) + (*((p) + 2) >> 4)) - -#define getnlen(p) (((*(p) & NOKORIYOMITOP) ? 0x10 : 0) + (*((p) + 2) & 0x0f)) - -#define segtop() (dicbuf + *dicbuf + 1) - -#define segend(p) (*(p) == DICSEGTERM || (p) >= dicbuf + curdict->seglen) +#define segend(p) (*(p) == DICSEGTERM || (p) >= dicbuf + curdict->seglen) #endif - diff --git a/include/sj3core/sj_global.h b/include/sj3core/sj_global.h index 74ada74..1f506a1 100644 --- a/include/sj3core/sj_global.h +++ b/include/sj3core/sj_global.h @@ -1,6 +1,6 @@ /* * Copyright (c) 1991-1994 Sony Corporation - * + * * Permission is hereby granted, free of charge, to any person obtaining * a copy of this software and associated documentation files (the * "Software"), to deal in the Software without restriction, including @@ -8,10 +8,10 @@ * distribute, sublicense, and/or sell copies of the Software, and to * permit persons to whom the Software is furnished to do so, subject to * the following conditions: - * + * * The above copyright notice and this permission notice shall be * included in all copies or substantial portions of the Software. - * + * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. @@ -19,7 +19,7 @@ * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR * THE USE OR OTHER DEALINGS IN THE SOFTWARE. - * + * * Except as contained in this notice, the name of Sony Corporation * shall not be used in advertising or otherwise to promote the sale, use * or other dealings in this Software without prior written authorization @@ -28,17 +28,17 @@ */ /* - * $SonyRCSfile: sj_global.h,v $ - * $SonyRevision: 1.2 $ + * $SonyRCSfile: sj_global.h,v $ + * $SonyRevision: 1.2 $ * $SonyDate: 1994/12/09 11:27:06 $ */ #ifndef SJ_GLOBAL_H #define SJ_GLOBAL_H -extern Global *global_work_base; -extern Global *work_base; -extern STDY *stdy_base; -extern int serv_errno; +extern Global* global_work_base; +extern Global* work_base; +extern STDY* stdy_base; +extern int serv_errno; #endif diff --git a/include/sj3core/sj_kanakan.h b/include/sj3core/sj_kanakan.h index 5665f18..f7bef99 100644 --- a/include/sj3core/sj_kanakan.h +++ b/include/sj3core/sj_kanakan.h @@ -39,23 +39,23 @@ */ /* adddic.c */ -u_int adddic(u_char *, u_char *, TypeGram); +u_int adddic(u_char*, u_char*, TypeGram); /* addelcmn.c */ -void set_size(u_char *, int, int, int); -u_int addel_arg(u_char *, u_char *, TypeGram, u_char *, int); -int cvtknj(u_char *, u_char *, u_char *); -int srchkana(u_char **, int *); -int srchgram(u_char *, u_char **, TypeGram); -int srchkanji(u_char **, u_char *, int); +void set_size(u_char*, int, int, int); +u_int addel_arg(u_char*, u_char*, TypeGram, u_char*, int); +int cvtknj(u_char*, u_char*, u_char*); +int srchkana(u_char**, int*); +int srchgram(u_char*, u_char**, TypeGram); +int srchkanji(u_char**, u_char*, int); TypeIdxOfs count_uidx(void); -void chg_uidx(TypeDicSeg, u_char *, int); +void chg_uidx(TypeDicSeg, u_char*, int); /* alloc.c */ -JREC *alloc_jrec(void); -void free_jrec(JREC *); -CLREC *alloc_clrec(void); -void free_clrec(CLREC *); +JREC* alloc_jrec(void); +void free_jrec(JREC*); +CLREC* alloc_clrec(void); +void free_clrec(CLREC*); /* charsize.c */ int codesize(u_char); @@ -64,152 +64,152 @@ int codesize(u_char); extern u_char chrtbl[256]; /* cl2knj.c */ -int cl2knj(u_char *, int, u_char *); -int nextcl(u_char *, int); -int prevcl(u_char *, int); +int cl2knj(u_char*, int, u_char*); +int nextcl(u_char*, int); +int prevcl(u_char*, int); int selectnum(void); /* clstudy.c */ -int clstudy(u_char *, u_char *, STDYOUT *); -void delclsub(u_char *); +int clstudy(u_char*, u_char*, STDYOUT*); +void delclsub(u_char*); void mkclidx(void); /* cmpstr.c */ -int cmpstr(u_char *, u_char *); +int cmpstr(u_char*, u_char*); /* conjunc.c */ -extern u_char *conjadr[]; +extern u_char* conjadr[]; /* connect.c */ -extern u_char connadr[]; -extern u_char *rigtadr[]; +extern u_char connadr[]; +extern u_char* rigtadr[]; /* cvtclknj.c */ void cvtclknj(void); /* cvtdict.c */ -void cvtdict(KHREC *, CLREC *, int); +void cvtdict(KHREC*, CLREC*, int); void cvtminasi(int); -void cvtwakachi(CLREC *); +void cvtwakachi(CLREC*); /* cvtkanji.c */ void cvtphknj(void); -void cvtkouho(KHREC *); -void setstyrec(KHREC *); +void cvtkouho(KHREC*); +void setstyrec(KHREC*); /* deldic.c */ -u_int deldic(u_char *, u_char *, TypeGram); +u_int deldic(u_char*, u_char*, TypeGram); /* dict.c */ -void get_askknj(void); -int seldict(TypeDicID); -u_char *get_idxptr(TypeDicSeg); +void get_askknj(void); +int seldict(TypeDicID); +u_char* get_idxptr(TypeDicSeg); /* functbl.c */ -extern VFunc cvtnum_func[]; +extern VFunc cvtnum_func[]; extern UCPFunc getkan_func[]; -extern IFunc setjrec_func[]; -extern IFunc hiraknj_func[]; +extern IFunc setjrec_func[]; +extern IFunc hiraknj_func[]; /* fuzoku.c */ -void setclrec(JREC *, u_char *, TypeCnct); -RECURS void srchfzk(JREC *, u_char *, TypeCnct, int); +void setclrec(JREC*, u_char*, TypeCnct); +RECURS void srchfzk(JREC*, u_char*, TypeCnct, int); /* fzkyomi.c */ -extern u_char *fzkadr[]; +extern u_char* fzkadr[]; /* getkanji.c */ -u_char *getkan_none(u_char *, u_char *, u_char *, int, int); -u_char *getkan_hira(u_char *, u_char *, u_char *, int, int); -u_char *getkan_kata(u_char *, u_char *, u_char *, int, int); -u_char *getkan_knj(u_char *, u_char *, u_char *, int, int); -u_char *getkan_ofs(u_char *, u_char *, u_char *, int, int); -u_char *getkan_norm(u_char *, u_char *, u_char *, int, int); -u_char *getkan_ascii(u_char *, u_char *, u_char *, int, int); -int getkanji(u_char *, int, u_char *, u_char *); +u_char* getkan_none(u_char*, u_char*, u_char*, int, int); +u_char* getkan_hira(u_char*, u_char*, u_char*, int, int); +u_char* getkan_kata(u_char*, u_char*, u_char*, int, int); +u_char* getkan_knj(u_char*, u_char*, u_char*, int, int); +u_char* getkan_ofs(u_char*, u_char*, u_char*, int, int); +u_char* getkan_norm(u_char*, u_char*, u_char*, int, int); +u_char* getkan_ascii(u_char*, u_char*, u_char*, int, int); +int getkanji(u_char*, int, u_char*, u_char*); /* getrank.c */ void getrank(void); /* hzstrlen.c */ int euc_codesize(u_char c); -int hzstrlen(u_char *, int); +int hzstrlen(u_char*, int); /* init.c */ -void seg_count(DICT *); -void mkidxtbl(DICT *); +void seg_count(DICT*); +void mkidxtbl(DICT*); void initwork(void); /* istrcmp.c */ -int istrcmp(u_char *, u_char *, int, int); +int istrcmp(u_char*, u_char*, int, int); /* memcpy.c */ -void sstrncpy(u_char *, u_char *, int); +void sstrncpy(u_char*, u_char*, int); /* memory.c */ -JREC *free_jlst(JREC *); -CLREC *free_clst(CLREC *, int); -void free_clall(CLREC *); -void free_jall(JREC *); -void freework(void); +JREC* free_jlst(JREC*); +CLREC* free_clst(CLREC*, int); +void free_clall(CLREC*); +void free_jall(JREC*); +void freework(void); /* mk2claus.c */ void mk2claus(void); /* mkbunset.c */ -void mkbunsetu(void); -CLREC *argclrec(int); +void mkbunsetu(void); +CLREC* argclrec(int); /* mkjiritu.c */ -void mkjiritu(int); -JREC *argjrec(int, JREC *); +void mkjiritu(int); +JREC* argjrec(int, JREC*); /* mkkouho.c */ -void mkkouho(void); -u_char *makekan_none(u_char *, u_char *, int); -u_char *makekan_1byte(u_char *, u_char *, int); -u_char *makekan_knj(u_char *, u_char *, int); -u_char *makekan_ofs(u_char *, u_char *, int); -u_char *makekan_norm(u_char *, u_char *, int); -u_char *makekan_ascii(u_char *, u_char *, int); -int sel_sjmode(JREC *); +void mkkouho(void); +u_char* makekan_none(u_char*, u_char*, int); +u_char* makekan_1byte(u_char*, u_char*, int); +u_char* makekan_knj(u_char*, u_char*, int); +u_char* makekan_ofs(u_char*, u_char*, int); +u_char* makekan_norm(u_char*, u_char*, int); +u_char* makekan_ascii(u_char*, u_char*, int); +int sel_sjmode(JREC*); /* mknumber.c */ -void num_type00(u_char *, u_char *, JREC *); -void num_type01(u_char *, u_char *, JREC *); -void num_type02(u_char *, u_char *, JREC *); -void num_type03(u_char *, u_char *, JREC *); -void num_type04(u_char *, u_char *, JREC *); -void num_type05(u_char *, u_char *, JREC *); -void num_type06(u_char *, u_char *, JREC *); -void num_type07(u_char *, u_char *, JREC *); -void num_type08(u_char *, u_char *, JREC *); -void num_type09(u_char *, u_char *, JREC *); -void num_type10(u_char *, u_char *, JREC *); -void num_type11(u_char *, u_char *, JREC *); -void num_type12(u_char *, u_char *, JREC *); -void num_type13(u_char *, u_char *, JREC *); -void num_type14(u_char *, u_char *, JREC *); +void num_type00(u_char*, u_char*, JREC*); +void num_type01(u_char*, u_char*, JREC*); +void num_type02(u_char*, u_char*, JREC*); +void num_type03(u_char*, u_char*, JREC*); +void num_type04(u_char*, u_char*, JREC*); +void num_type05(u_char*, u_char*, JREC*); +void num_type06(u_char*, u_char*, JREC*); +void num_type07(u_char*, u_char*, JREC*); +void num_type08(u_char*, u_char*, JREC*); +void num_type09(u_char*, u_char*, JREC*); +void num_type10(u_char*, u_char*, JREC*); +void num_type11(u_char*, u_char*, JREC*); +void num_type12(u_char*, u_char*, JREC*); +void num_type13(u_char*, u_char*, JREC*); +void num_type14(u_char*, u_char*, JREC*); /* mvmemd.c */ -void mvmemd(u_char *, u_char *, int); +void mvmemd(u_char*, u_char*, int); /* mvmemi.c */ -void mvmemi(u_char *, u_char *, int); +void mvmemi(u_char*, u_char*, int); /* peepdic.c */ -int getusr(u_char *); -int nextusr(u_char *); -int prevusr(u_char *); +int getusr(u_char*); +int nextusr(u_char*); +int prevusr(u_char*); /* ph2knj.c */ -int ph2knj(u_char *, u_char *, int); +int ph2knj(u_char*, u_char*, int); /* ph_khtbl.c */ -int ph_khtbl(CLREC *); +int ph_khtbl(CLREC*); /* priority.c */ -int priority(CLREC *); +int priority(CLREC*); void pritiny(void); /* prtytbl.c */ @@ -220,72 +220,72 @@ extern u_char sttpri[5][31]; extern u_char kigou[]; /* sdepend.c */ -DictFile *opendict(char *, char *); -int closedict(DictFile *); -void lock_dict(DictFile *, int); -void unlock_dict(DictFile *, int); -int is_dict_locked(DictFile *); -StdyFile *openstdy(char *, char *); -int closestdy(StdyFile *); -int putstydic(void); -int putcldic(void); -int makedict(char *, int, int, int); -int makestdy(char *, int, int, int); -void sj_closeall(void); -int set_dictpass(DictFile *, char *); -int set_stdypass(char *); -int set_dictcmnt(DictFile *, char *); -int set_stdycmnt(char *); -int get_stdysize(int *, int *, int *); +DictFile* opendict(char*, char*); +int closedict(DictFile*); +void lock_dict(DictFile*, int); +void unlock_dict(DictFile*, int); +int is_dict_locked(DictFile*); +StdyFile* openstdy(char*, char*); +int closestdy(StdyFile*); +int putstydic(void); +int putcldic(void); +int makedict(char*, int, int, int); +int makestdy(char*, int, int, int); +void sj_closeall(void); +int set_dictpass(DictFile*, char*); +int set_stdypass(char*); +int set_dictcmnt(DictFile*, char*); +int set_stdycmnt(char*); +int get_stdysize(int*, int*, int*); /* selclrec.c */ void selclrec(void); /* selsuuji.c */ -extern u_short *selsjadrs[]; +extern u_short* selsjadrs[]; /* setconj.c */ -int setconj(TypeGram, JREC *, CREC *); +int setconj(TypeGram, JREC*, CREC*); /* setjrec.c */ -int setj_atrb(u_char *); -int setj_ofs(u_char *); -int setj_knj(u_char *); -int setj_norm1(u_char *); -int setj_norm2(u_char *); -int setj_norm3(u_char *); /* unused??? */ -void setjrec(u_char *, int); -void setnumrec(u_char *, JREC *, TypeGram); -void setcrec(u_char *); +int setj_atrb(u_char*); +int setj_ofs(u_char*); +int setj_knj(u_char*); +int setj_norm1(u_char*); +int setj_norm2(u_char*); +int setj_norm3(u_char*); /* unused??? */ +void setjrec(u_char*, int); +void setnumrec(u_char*, JREC*, TypeGram); +void setcrec(u_char*); /* setkouho.c */ -void setkouho(CLREC *, TypeDicOfs, int); -void ph_setkouho(CLREC *, TypeDicOfs, STDYIN *); -int hiraknj_atrb(u_char *, int *); -int hiraknj_ofs(u_char *, int *); -int hiraknj_knj(u_char *, int *); -int hiraknj_hask(u_char *, int *); -int hiraknj_kask(u_char *, int *); -int hiraknj_norm(u_char *, int *); -int hiraknj_hira(u_char *, int *); +void setkouho(CLREC*, TypeDicOfs, int); +void ph_setkouho(CLREC*, TypeDicOfs, STDYIN*); +int hiraknj_atrb(u_char*, int*); +int hiraknj_ofs(u_char*, int*); +int hiraknj_knj(u_char*, int*); +int hiraknj_hask(u_char*, int*); +int hiraknj_kask(u_char*, int*); +int hiraknj_norm(u_char*, int*); +int hiraknj_hira(u_char*, int*); /* setubi.c */ -u_char *getstb(TypeGram); -void setubi(JREC *, u_char *); +u_char* getstb(TypeGram); +void setubi(JREC*, u_char*); /* sj2code.c */ -int sj2cd_chr(u_char *, u_char *); -int sj2cd_str(u_char *, u_char *, int); +int sj2cd_chr(u_char*, u_char*); +int sj2cd_str(u_char*, u_char*, int); /* skiphblk.c */ -u_char *skiphblk(u_char *); +u_char* skiphblk(u_char*); /* skipkstr.c */ -u_char *skipkstr(u_char *); +u_char* skipkstr(u_char*); /* srchdict.c */ -int yomicmp(u_char *, u_char *, u_char *); -u_char *srchdict(u_char *); +int yomicmp(u_char*, u_char*, u_char*); +u_char* srchdict(u_char*); /* srchhead.c */ int srchhead(void); @@ -295,28 +295,28 @@ TypeDicSeg srchidx(TypeDicSeg, int); /* srchnum.c*/ void srchnum(void); -void setwdnum(u_char *, int, u_short *); -int setucnum(u_char *, int, u_char *); +void setwdnum(u_char*, int, u_short*); +int setucnum(u_char*, int, u_char*); /* sstrcmp.c */ -int sstrcmp(u_char *, u_char *); +int sstrcmp(u_char*, u_char*); /* sstrlen.c */ -int sstrlen(u_char *); +int sstrlen(u_char*); /* sstrncmp.c */ -int sstrncmp(u_char *, u_char *dst, int); +int sstrncmp(u_char*, u_char* dst, int); /* stbtbl.c */ -extern u_char *stbadr[]; +extern u_char* stbadr[]; /* stttbl.c */ -extern u_char *settou_ptr[]; -extern u_char scncttbl[2][24]; +extern u_char* settou_ptr[]; +extern u_char scncttbl[2][24]; /* study.c */ -int study(STDYOUT *); -STDYIN *srchstdy(TypeDicSeg, TypeDicOfs, TypeDicID); +int study(STDYOUT*); +STDYIN* srchstdy(TypeDicSeg, TypeDicOfs, TypeDicID); /* suujitbl.c */ extern u_char suuji_tbl[]; @@ -330,7 +330,7 @@ extern u_char num5tbl[]; extern u_char num6tbl[]; /* terminat.c */ -int terminate(TypeCnct, u_char *); +int terminate(TypeCnct, u_char*); /* termtbl.c */ extern u_char termtbl[]; @@ -338,6 +338,4 @@ extern u_char termtbl[]; /* wakachi.c */ void wakachi(void); - #endif /* KANAKAN_H */ - diff --git a/include/sj3core/sj_kcnv.h b/include/sj3core/sj_kcnv.h index 277bc28..5d87cfd 100644 --- a/include/sj3core/sj_kcnv.h +++ b/include/sj3core/sj_kcnv.h @@ -1,6 +1,6 @@ /* * Copyright (c) 1991-1994 Sony Corporation - * + * * Permission is hereby granted, free of charge, to any person obtaining * a copy of this software and associated documentation files (the * "Software"), to deal in the Software without restriction, including @@ -8,10 +8,10 @@ * distribute, sublicense, and/or sell copies of the Software, and to * permit persons to whom the Software is furnished to do so, subject to * the following conditions: - * + * * The above copyright notice and this permission notice shall be * included in all copies or substantial portions of the Software. - * + * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. @@ -19,7 +19,7 @@ * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR * THE USE OR OTHER DEALINGS IN THE SOFTWARE. - * + * * Except as contained in this notice, the name of Sony Corporation * shall not be used in advertising or otherwise to promote the sale, use * or other dealings in this Software without prior written authorization @@ -28,8 +28,8 @@ */ /* - * $SonyRCSfile: sj_kcnv.h,v $ - * $SonyRevision: 1.1 $ + * $SonyRCSfile: sj_kcnv.h,v $ + * $SonyRevision: 1.1 $ * $SonyDate: 1994/06/03 08:01:10 $ */ diff --git a/include/sj3core/sj_left.h b/include/sj3core/sj_left.h index 4b86da8..73e4ff3 100644 --- a/include/sj3core/sj_left.h +++ b/include/sj3core/sj_left.h @@ -1,6 +1,6 @@ /* * Copyright (c) 1991-1994 Sony Corporation - * + * * Permission is hereby granted, free of charge, to any person obtaining * a copy of this software and associated documentation files (the * "Software"), to deal in the Software without restriction, including @@ -8,10 +8,10 @@ * distribute, sublicense, and/or sell copies of the Software, and to * permit persons to whom the Software is furnished to do so, subject to * the following conditions: - * + * * The above copyright notice and this permission notice shall be * included in all copies or substantial portions of the Software. - * + * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. @@ -19,7 +19,7 @@ * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR * THE USE OR OTHER DEALINGS IN THE SOFTWARE. - * + * * Except as contained in this notice, the name of Sony Corporation * shall not be used in advertising or otherwise to promote the sale, use * or other dealings in this Software without prior written authorization @@ -28,259 +28,247 @@ */ /* - * $SonyRCSfile: sj_left.h,v $ - * $SonyRevision: 1.1 $ + * $SonyRCSfile: sj_left.h,v $ + * $SonyRevision: 1.1 $ * $SonyDate: 1994/06/03 08:01:12 $ */ +#ifndef _SJ_LEFT +#define _SJ_LEFT +#define L_WO 0x01 +#define L_TTATTE 0x02 +#define L_TTARA 0x03 +#define L_TTE1 0x04 +#define L_TTE2 0x05 +#define L_PPANASI 0x06 +#define L_PPOI 0x07 +#define L_UE 0x08 +#define L_UTI 0x09 +#define L_OITE 0x0a +#define L_OKERU 0x0b +#define L_ORI 0x0c +#define L_KA1 0x0d +#define L_KA2 0x0e +#define L_KAI 0x0f +#define L_KASIRA 0x10 -#ifndef _SJ_LEFT +#define L_KATAGATA 0x11 +#define L_KADOUKA 0x12 +#define L_KANA 0x13 +#define L_KANE 0x14 +#define L_KAMO 0x15 +#define L_KARA1 0x16 +#define L_KARA2 0x17 +#define L_GA1 0x18 -#define _SJ_LEFT +#define L_GA2 0x19 +#define L_GATERA 0x1a +#define L_KIRI 0x1b +#define L_KUSENI 0x1c +#define L_KURAI 0x1d +#define L_GURUMI 0x1e +#define L_KEDO 0x1f +#define L_KOSO 0x20 +#define L_KOTO 0x21 +#define L_SA2 0x22 +#define L_SAE 0x23 +#define L_SI2 0x24 +#define L_SIKA 0x25 +#define L_SURA 0x26 +#define L_ZUTU 0x27 +#define L_ZO 0x28 +#define L_TAME 0x29 +#define L_DAKE 0x2a +#define L_DANO 0x2b +#define L_DARAKE 0x2c +#define L_TUITE 0x2d +#define L_TUKI 0x2e +#define L_TUTU 0x2f +#define L_TUMORI 0x30 +#define L_TE1 0x31 +#define L_TE2 0x32 +#define L_TERU 0x33 +#define L_DEAROU 0x34 +#define L_DERU 0x35 +#define L_TO1 0x36 +#define L_TO2 0x37 +#define L_TOTTE 0x38 -#define L_WO 0x01 -#define L_TTATTE 0x02 -#define L_TTARA 0x03 -#define L_TTE1 0x04 -#define L_TTE2 0x05 -#define L_PPANASI 0x06 -#define L_PPOI 0x07 -#define L_UE 0x08 +#define L_TOIU 0x39 +#define L_TOORI 0x3a +#define L_TOKI 0x3b +#define L_TOKORO 0x3c +#define L_TOTE 0x3d +#define L_TOHAIE 0x3e +#define L_TOMO 0x3f +#define L_DO 0x40 -#define L_UTI 0x09 -#define L_OITE 0x0a -#define L_OKERU 0x0b -#define L_ORI 0x0c -#define L_KA1 0x0d -#define L_KA2 0x0e -#define L_KAI 0x0f -#define L_KASIRA 0x10 +#define L_DOORI 0x41 +#define L_DOKORO 0x42 +#define L_DOKOROKA 0x43 +#define L_DOMO 0x44 +#define L_NA1 0x45 +#define L_NAA 0x46 +#define L_NAGARA 0x47 +#define L_NAZO 0x48 -#define L_KATAGATA 0x11 -#define L_KADOUKA 0x12 -#define L_KANA 0x13 -#define L_KANE 0x14 -#define L_KAMO 0x15 -#define L_KARA1 0x16 -#define L_KARA2 0x17 -#define L_GA1 0x18 +#define L_NADO 0x49 +#define L_NARI 0x4a +#define L_NANKA 0x4b +#define L_NANZO 0x4c +#define L_NANTE 0x4d +#define L_NI1 0x4e +#define L_NI2 0x4f +#define L_NI3 0x50 -#define L_GA2 0x19 -#define L_GATERA 0x1a -#define L_KIRI 0x1b -#define L_KUSENI 0x1c -#define L_KURAI 0x1d -#define L_GURUMI 0x1e -#define L_KEDO 0x1f -#define L_KOSO 0x20 +#define L_NITE 0x51 +#define L_NIMO 0x52 +#define L_NE1 0x53 +#define L_NEE 0x54 +#define L_NO1 0x55 +#define L_NO2 0x56 +#define L_NODE 0x57 +#define L_NONI 0x58 -#define L_KOTO 0x21 -#define L_SA2 0x22 -#define L_SAE 0x23 -#define L_SI2 0x24 -#define L_SIKA 0x25 -#define L_SURA 0x26 -#define L_ZUTU 0x27 -#define L_ZO 0x28 +#define L_NOMI 0x59 +#define L_NOMINRZ 0x5a +#define L_HA 0x5b +#define L_HAZU 0x5c +#define L_BA 0x5d +#define L_BAKARI 0x5e +#define L_HE 0x5f +#define L_HOU 0x60 -#define L_TAME 0x29 -#define L_DAKE 0x2a -#define L_DANO 0x2b -#define L_DARAKE 0x2c -#define L_TUITE 0x2d -#define L_TUKI 0x2e -#define L_TUTU 0x2f -#define L_TUMORI 0x30 +#define L_HOKA 0x61 +#define L_HODO 0x62 +#define L_MADE 0x63 +#define L_MAMA 0x64 +#define L_MO1 0x65 +#define L_MO2 0x66 +#define L_MOTTE 0x67 +#define L_MONO 0x68 -#define L_TE1 0x31 -#define L_TE2 0x32 -#define L_TERU 0x33 -#define L_DEAROU 0x34 -#define L_DERU 0x35 -#define L_TO1 0x36 -#define L_TO2 0x37 -#define L_TOTTE 0x38 +#define L_YA1 0x69 +#define L_YA2 0x6a +#define L_YARA 0x6b +#define L_YUE 0x6c +#define L_YO 0x6d +#define L_YORI 0x6e +#define L_WA 0x6f +#define L_WAKE 0x70 -#define L_TOIU 0x39 -#define L_TOORI 0x3a -#define L_TOKI 0x3b -#define L_TOKORO 0x3c -#define L_TOTE 0x3d -#define L_TOHAIE 0x3e -#define L_TOMO 0x3f -#define L_DO 0x40 +#define L_WANE 0x71 +#define L_WAYO 0x72 +#define L_NN1 0x73 +#define L_JYA 0x74 +#define L_TYA 0x75 +#define L_NAGARA2 0x76 +#define L_WO_S 0x77 -#define L_DOORI 0x41 -#define L_DOKORO 0x42 -#define L_DOKOROKA 0x43 -#define L_DOMO 0x44 -#define L_NA1 0x45 -#define L_NAA 0x46 -#define L_NAGARA 0x47 -#define L_NAZO 0x48 +#define L_ZE 0x79 +#define L_KKE 0x7a +#define L_N_SI 0x7b +#define L_DEHA 0x7c -#define L_NADO 0x49 -#define L_NARI 0x4a -#define L_NANKA 0x4b -#define L_NANZO 0x4c -#define L_NANTE 0x4d -#define L_NI1 0x4e -#define L_NI2 0x4f -#define L_NI3 0x50 +#define L_GOTOSI 0x81 +#define L_SASERU 0x82 +#define L_ZARU 0x83 +#define L_ZU 0x84 +#define L_ZUNBA 0x85 +#define L_SERU 0x86 +#define L_SOUDA 0x87 +#define L_YOUTAI 0x88 -#define L_NITE 0x51 -#define L_NIMO 0x52 -#define L_NE1 0x53 -#define L_NEE 0x54 -#define L_NO1 0x55 -#define L_NO2 0x56 -#define L_NODE 0x57 -#define L_NONI 0x58 +#define L_DENBUN 0x89 +#define L_TA 0x8a +#define L_TAI 0x8b +#define L_TAGARU 0x8c +#define L_TARU 0x8d +#define L_DA1 0x8e +#define L_DA2 0x8f +#define L_DAXTU 0x90 -#define L_NOMI 0x59 -#define L_NOMINRZ 0x5a -#define L_HA 0x5b -#define L_HAZU 0x5c -#define L_BA 0x5d -#define L_BAKARI 0x5e -#define L_HE 0x5f -#define L_HOU 0x60 +#define L_DAROU 0x91 +#define L_DE 0x92 +#define L_DESI 0x93 +#define L_DESHO 0x94 +#define L_DESU 0x95 +#define L_NA2 0x96 +#define L_NARA 0x97 +#define L_NAI 0x98 -#define L_HOKA 0x61 -#define L_HODO 0x62 -#define L_MADE 0x63 -#define L_MAMA 0x64 -#define L_MO1 0x65 -#define L_MO2 0x66 -#define L_MOTTE 0x67 -#define L_MONO 0x68 +#define L_NU 0x99 +#define L_NE2 0x9a +#define L_NN2 0x9b +#define L_FUUDA 0x9c +#define L_BESI 0x9d +#define L_MAI 0x9e +#define L_MASU 0x9f +#define L_MASURE 0xa0 -#define L_YA1 0x69 -#define L_YA2 0x6a -#define L_YARA 0x6b -#define L_YUE 0x6c -#define L_YO 0x6d -#define L_YORI 0x6e -#define L_WA 0x6f -#define L_WAKE 0x70 +#define L_MASE 0xa1 +#define L_MITAIDA 0xa2 +#define L_YOU 0xa3 +#define L_YOUDA 0xa4 +#define L_RASII 0xa5 +#define L_RARERU 0xa6 +#define L_RERU 0xa7 +#define L_SITE 0xa8 -#define L_WANE 0x71 -#define L_WAYO 0x72 -#define L_NN1 0x73 -#define L_JYA 0x74 -#define L_TYA 0x75 -#define L_NAGARA2 0x76 -#define L_WO_S 0x77 +#define L_YOUGEN 0xa9 +#define L_ARU 0xaa +#define L_ARA 0xab +#define L_ARI1 0xac +#define L_ARI2 0xad +#define L_ARI3 0xae +#define L_ARE1 0xaf +#define L_ARE2 0xb0 -#define L_ZE 0x79 -#define L_KKE 0x7a -#define L_N_SI 0x7b -#define L_DEHA 0x7c +#define L_AROU 0xb1 +#define L_II 0xb2 +#define L_ITASI 0xb3 +#define L_ITADAKU 0xb4 +#define L_IRU 0xb5 +#define L_ERU 0xb6 +#define L_KAKERU 0xb7 +#define L_KANERU 0xb8 +#define L_KARAZU 0xb9 +#define L_GATAI 0xba +#define L_GATIDA 0xbb +#define L_KUDASARU 0xbc +#define L_GOZAI 0xbd +#define L_SA1 0xbe +#define L_SI1 0xbf +#define L_SIRO 0xc0 +#define L_JYAU 0xc1 +#define L_JIMAU 0xc2 +#define L_SUGIRU 0xc3 +#define L_SUBESI 0xc4 +#define L_SURU 0xc5 +#define L_SURE 0xc6 +#define L_SE 0xc7 +#define L_SEYO 0xc8 -#define L_GOTOSI 0x81 -#define L_SASERU 0x82 -#define L_ZARU 0x83 -#define L_ZU 0x84 -#define L_ZUNBA 0x85 -#define L_SERU 0x86 -#define L_SOUDA 0x87 -#define L_YOUTAI 0x88 +#define L_TAMAU 0xc9 +#define L_TYAU 0xca +#define L_TIMAU 0xcb +#define L_DEKIRU 0xcc +#define L_NARU 0xcd +#define L_NASAI 0xce +#define L_NASARU 0xcf +#define L_NIKUI 0xd0 -#define L_DENBUN 0x89 -#define L_TA 0x8a -#define L_TAI 0x8b -#define L_TAGARU 0x8c -#define L_TARU 0x8d -#define L_DA1 0x8e -#define L_DA2 0x8f -#define L_DAXTU 0x90 - -#define L_DAROU 0x91 -#define L_DE 0x92 -#define L_DESI 0x93 -#define L_DESHO 0x94 -#define L_DESU 0x95 -#define L_NA2 0x96 -#define L_NARA 0x97 -#define L_NAI 0x98 - -#define L_NU 0x99 -#define L_NE2 0x9a -#define L_NN2 0x9b -#define L_FUUDA 0x9c -#define L_BESI 0x9d -#define L_MAI 0x9e -#define L_MASU 0x9f -#define L_MASURE 0xa0 - -#define L_MASE 0xa1 -#define L_MITAIDA 0xa2 -#define L_YOU 0xa3 -#define L_YOUDA 0xa4 -#define L_RASII 0xa5 -#define L_RARERU 0xa6 -#define L_RERU 0xa7 -#define L_SITE 0xa8 - - - - -#define L_YOUGEN 0xa9 -#define L_ARU 0xaa -#define L_ARA 0xab -#define L_ARI1 0xac -#define L_ARI2 0xad -#define L_ARI3 0xae -#define L_ARE1 0xaf -#define L_ARE2 0xb0 - -#define L_AROU 0xb1 -#define L_II 0xb2 -#define L_ITASI 0xb3 -#define L_ITADAKU 0xb4 -#define L_IRU 0xb5 -#define L_ERU 0xb6 -#define L_KAKERU 0xb7 -#define L_KANERU 0xb8 - -#define L_KARAZU 0xb9 -#define L_GATAI 0xba -#define L_GATIDA 0xbb -#define L_KUDASARU 0xbc -#define L_GOZAI 0xbd -#define L_SA1 0xbe -#define L_SI1 0xbf -#define L_SIRO 0xc0 - -#define L_JYAU 0xc1 -#define L_JIMAU 0xc2 -#define L_SUGIRU 0xc3 -#define L_SUBESI 0xc4 -#define L_SURU 0xc5 -#define L_SURE 0xc6 -#define L_SE 0xc7 -#define L_SEYO 0xc8 - -#define L_TAMAU 0xc9 -#define L_TYAU 0xca -#define L_TIMAU 0xcb -#define L_DEKIRU 0xcc -#define L_NARU 0xcd -#define L_NASAI 0xce -#define L_NASARU 0xcf -#define L_NIKUI 0xd0 - -#define L_YASUI 0xd1 -#define L_YOI 0xd2 -#define L_YORU 0xd3 -#define L_TTARASII 0xd4 +#define L_YASUI 0xd1 +#define L_YOI 0xd2 +#define L_YORU 0xd3 +#define L_TTARASII 0xd4 #endif diff --git a/include/sj3core/sj_prty.h b/include/sj3core/sj_prty.h index 243d2d4..4f3880e 100644 --- a/include/sj3core/sj_prty.h +++ b/include/sj3core/sj_prty.h @@ -1,6 +1,6 @@ /* * Copyright (c) 1991-1994 Sony Corporation - * + * * Permission is hereby granted, free of charge, to any person obtaining * a copy of this software and associated documentation files (the * "Software"), to deal in the Software without restriction, including @@ -8,10 +8,10 @@ * distribute, sublicense, and/or sell copies of the Software, and to * permit persons to whom the Software is furnished to do so, subject to * the following conditions: - * + * * The above copyright notice and this permission notice shall be * included in all copies or substantial portions of the Software. - * + * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. @@ -19,7 +19,7 @@ * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR * THE USE OR OTHER DEALINGS IN THE SOFTWARE. - * + * * Except as contained in this notice, the name of Sony Corporation * shall not be used in advertising or otherwise to promote the sale, use * or other dealings in this Software without prior written authorization @@ -28,54 +28,47 @@ */ /* - * $SonyRCSfile: sj_prty.h,v $ - * $SonyRevision: 1.1 $ + * $SonyRCSfile: sj_prty.h,v $ + * $SonyRevision: 1.1 $ * $SonyDate: 1994/06/03 08:01:13 $ */ +#ifndef _SJ_PRIORITY +#define _SJ_PRIORITY +#define RENTAI 0x10 +#define GETPRI 0x0f +#define P_FUKA 1 +#define P_TANKAN 1 +#define P_SHUUSI 2 +#define P_MEIREI 2 +#define P_KATEI 2 +#define P_KAMEI 2 -#ifndef _SJ_PRIORITY +#define P_DAIMEISI 4 +#define P_MEISI 6 +#define P_KEISIKI 4 +#define P_RENYOU_F 3 +#define P_RENYOU_J 11 +#define P_RENYOU_M 12 +#define P_JOSHI_F 3 +#define P_JOSHI_E 4 +#define P_JOSHI_D 6 +#define P_JOSHI_C 7 +#define P_JOSHI_B 8 +#define P_JOSHI_A 9 -#define _SJ_PRIORITY - - - - -#define RENTAI 0x10 -#define GETPRI 0x0f - -#define P_FUKA 1 -#define P_TANKAN 1 -#define P_SHUUSI 2 -#define P_MEIREI 2 -#define P_KATEI 2 -#define P_KAMEI 2 - -#define P_DAIMEISI 4 -#define P_MEISI 6 -#define P_KEISIKI 4 -#define P_RENYOU_F 3 -#define P_RENYOU_J 11 -#define P_RENYOU_M 12 -#define P_JOSHI_F 3 -#define P_JOSHI_E 4 -#define P_JOSHI_D 6 -#define P_JOSHI_C 7 -#define P_JOSHI_B 8 -#define P_JOSHI_A 9 - -#define P_SETTOU 6 -#define P_SETUBI 6 -#define P_SUUSI 4 -#define P_FUKUSI 13 -#define P_F_FUKUSI 10 -#define P_RENTAISI 10 -#define P_KANDOU 6 -#define P_SETUZOKU 14 -#define P_FZKKGU 9 -#define P_JOSUUSI 10 +#define P_SETTOU 6 +#define P_SETUBI 6 +#define P_SUUSI 4 +#define P_FUKUSI 13 +#define P_F_FUKUSI 10 +#define P_RENTAISI 10 +#define P_KANDOU 6 +#define P_SETUZOKU 14 +#define P_FZKKGU 9 +#define P_JOSUUSI 10 #endif diff --git a/include/sj3core/sj_rename.h b/include/sj3core/sj_rename.h index b829602..57434eb 100644 --- a/include/sj3core/sj_rename.h +++ b/include/sj3core/sj_rename.h @@ -1,6 +1,6 @@ /* * Copyright (c) 1991-1994 Sony Corporation - * + * * Permission is hereby granted, free of charge, to any person obtaining * a copy of this software and associated documentation files (the * "Software"), to deal in the Software without restriction, including @@ -8,10 +8,10 @@ * distribute, sublicense, and/or sell copies of the Software, and to * permit persons to whom the Software is furnished to do so, subject to * the following conditions: - * + * * The above copyright notice and this permission notice shall be * included in all copies or substantial portions of the Software. - * + * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. @@ -19,7 +19,7 @@ * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR * THE USE OR OTHER DEALINGS IN THE SOFTWARE. - * + * * Except as contained in this notice, the name of Sony Corporation * shall not be used in advertising or otherwise to promote the sale, use * or other dealings in this Software without prior written authorization @@ -28,534 +28,405 @@ */ /* - * $SonyRCSfile: sj_rename.h,v $ - * $SonyRevision: 1.1 $ + * $SonyRCSfile: sj_rename.h,v $ + * $SonyRevision: 1.1 $ * $SonyDate: 1994/06/03 08:01:14 $ */ +#ifndef _SJ_RENAME + +#define _SJ_RENAME + +#define adddic Jadddic +#define checksub Jchecksub +#define checkdict Jcheckdict +#define cal_nextym Jcal_nextym +#define cmpknj Jcmpknj +#define usr_freelen Jusr_freelen +#define sprt_seg Jsprt_seg +#define apnd_uidx Japnd_uidx + +#define set_size Jset_size +#define isvyomi Jisvyomi +#define isvknj Jisvknj +#define isgrm Jisgrm +#define addel_arg Jaddel_arg +#define yomi2kata Jyomi2kata +#define top_strcmp Jtop_strcmp +#define last_strcmp Jlast_strcmp +#define cvtknj Jcvtknj +#define srchkana Jsrchkana +#define srchgram Jsrchgram +#define srchkanji Jsrchkanji +#define count_uidx Jcount_uidx +#define chg_uidx Jchg_uidx + +#define cl2knj Jcl2knj +#define nextcl Jnextcl +#define nextrecblk Jnextrecblk +#define prevcl Jprevcl +#define prevrecblk Jprevrecblk +#define initkbuf Jinitkbuf +#define selectnum Jselectnum +#define kouhonum Jkouhonum + +#define clstudy Jclstudy +#define delcldata Jdelcldata +#define delclsub Jdelclsub +#define delclold Jdelclold +#define srchclpos Jsrchclpos +#define mkclidx Jmkclidx + +#define cvtclknj Jcvtclknj + +#define cvtdict Jcvtdict +#define cvtminasi Jcvtminasi +#define cvtwakachi Jcvtwakachi + +#define cvtphknj Jcvtphknj +#define cvtkouho Jcvtkouho +#define setstyrec Jsetstyrec + +#define deldic Jdeldic +#define del_douon Jdel_douon +#define del_segment Jdel_segment +#define del_uidx Jdel_uidx +#define del_stdy Jdel_stdy + +#define get_askknj Jget_askknj +#define seldict Jseldict +#define sel_udict Jsel_udict +#define get_idxofs Jget_idxofs +#define get_idxptr Jget_idxptr + +#define fzkstrcmp Jfzkstrcmp +#define setclrec Jsetclrec +#define fzkcnct Jfzkcnct +#define srchfzk Jsrchfzk + +#define getkan_none Jgetkan_none +#define getkan_hira Jgetkan_hira +#define getkan_kata Jgetkan_kata +#define getkan_knj Jgetkan_knj +#define getkan_ofs Jgetkan_ofs +#define getkan_norm Jgetkan_norm +#define code2kanji Jcode2kanji +#define getkanji Jgetkanji + +#define getrank Jgetrank +#define setstynum Jsetstynum +#define setnspr Jsetnspr +#define regetrank Jregetrank + +#define work_base Jwork_base +#define stdy_base Jstdy_base + +#define maxjptr (work_base->Jmaxjptr) +#define maxclptr (work_base->Jmaxclptr) +#define jrt1st (work_base->Jjrt1st) +#define clt1st (work_base->Jclt1st) +#define jrt2nd (work_base->Jjrt2nd) +#define clt2nd (work_base->Jclt2nd) +#define selcl (work_base->Jselcl) +#define selectid (work_base->Jselectid) +#define trank (work_base->Jtrank) +#define nrank (work_base->Jnrank) +#define buninf (work_base->Jbuninf) +#define buncnt (work_base->Jbuncnt) +#define knjnew (work_base->Jknjnew) +#define knjidx (work_base->Jknjidx) +#define knjmax (work_base->Jknjmax) +#define score (work_base->Jscore) +#define pathnum (work_base->Jpathnum) +#define usedpath (work_base->Jusedpath) +#define inputyomi (work_base->Jinputyomi) +#define cnvstart (work_base->Jcnvstart) +#define cnvlen (work_base->Jcnvlen) +#define ystart (work_base->Jystart) +#define hyomi (work_base->Jhyomi) +#define orgyomi (work_base->Jorgyomi) +#define kanjibuf (work_base->Jkanjibuf) +#define kanjipos (work_base->Jkanjipos) +#define kanjitmp (work_base->Jkanjitmp) +#define kanjilen (work_base->Jkanjilen) +#define dicinl (work_base->Jdicinl) +#define dicsaml (work_base->Jdicsaml) +#define prevseg (work_base->Jprevseg) +#define fzkcount (work_base->Jfzkcount) +#define fzk_ka_flg (work_base->Jfzk_ka_flg) +#define fzktbl (work_base->Jfzktbl) +#define headcode (work_base->Jheadcode) +#define headlen (work_base->Jheadlen) +#define gobilen (work_base->Jgobilen) +#define prevclgrm (work_base->Jprevclgrm) +#define prevclrow (work_base->Jprevclrow) +#define nextcllen (work_base->Jnextcllen) +#define khcount (work_base->Jkhcount) +#define nkhcount (work_base->Jnkhcount) +#define kouhotbl (work_base->Jkouhotbl) +#define stdytop (work_base->Jstdytop) +#define curdict (work_base->Jcurdict) +#define dictlist (work_base->Jdictlist) +#define dicbuf (work_base->Jdicbuf) +#define idxbuf (work_base->Jidxbuf) +#define idxofs (work_base->Jidxofs) +#define askknj (work_base->Jaskknj) +#define askknj_k (work_base->Jaskknj_k) + +#define grp_ptr (work_base->Jgrp_ptr) +#define grp_seg (work_base->Jgrp_seg) +#define grp_grp (work_base->Jgrp_grp) +#define suuji_wbuf (work_base->Jsuuji_wbuf) +#define suuji_ubuf (work_base->Jsuuji_ubuf) +#define suuji_class (work_base->Jsuuji_class) +#define suuji_comma (work_base->Jsuuji_comma) +#define suuji_keta (work_base->Jsuuji_keta) +#define suuji_yptr (work_base->Jsuuji_yptr) +#define suuji_len (work_base->Jsuuji_len) +#define suuji_exit (work_base->Jsuuji_exit) +#define suuji_wkeep (work_base->Jsuuji_wkeep) +#define suuji_ukeep (work_base->Jsuuji_ukeep) +#define peepyomi (work_base->Jpeepyomi) +#define peepknj (work_base->Jpeepknj) +#define peepgrm (work_base->Jpeepgrm) +#define peepdptr (work_base->Jpeepdptr) +#define peephptr (work_base->Jpeephptr) +#define peepkptr (work_base->Jpeepkptr) +#define peepidx (work_base->Jpeepidx) + +#define seg_count Jseg_count +#define mkidxtbl Jmkidxtbl +#define initwork Jinitwork + +#define free_jlst Jfree_jlst +#define free_clst Jfree_clst +#define free_clall Jfree_clall +#define free_jall Jfree_jall +#define freework Jfreework +#define free_kjall Jfree_kjall + +#define set2nd Jset2nd +#define mk2claus Jmk2claus + +#define mkbunsetu Jmkbunsetu +#define argclrec Jargclrec + +#define mkjiritu Jmkjiritu +#define dic_mu Jdic_mu +#define argjrec Jargjrec +#define dic_cl Jdic_cl + +#define mkkouho Jmkkouho +#define getkhtbl Jgetkhtbl +#define cl_kanji Jcl_kanji +#define sameknj Jsameknj +#define skipatr Jskipatr +#define diffknj Jdiffknj +#define chrck_numtbl Jchrck_numtbl +#define sel_sjmode Jsel_sjmode +#define cl_numcmn Jcl_numcmn + +#define word2char Jword2char +#define words2num Jwords2num +#define num_type00 Jnum_type00 +#define num_type01 Jnum_type01 +#define num_type02 Jnum_type02 +#define num_type03 Jnum_type03 +#define num_type04 Jnum_type04 +#define num_type05 Jnum_type05 +#define num_type06 Jnum_type06 +#define num_type07 Jnum_type07 +#define kan_num Jkan_num +#define num_type08 Jnum_type08 +#define num_type09 Jnum_type09 +#define num_type10 Jnum_type10 +#define num_type11 Jnum_type11 +#define num_type12 Jnum_type12 +#define num_kurai Jnum_kurai +#define num_type13 Jnum_type13 +#define num_type14 Jnum_type14 + +#define getusr Jgetusr +#define nextusr Jnextusr +#define prevusr Jprevusr +#define set_kanji Jset_kanji +#define set_buf Jset_buf +#define prev_kanji Jprev_kanji +#define prev_hinsi Jprev_hinsi +#define prev_douon Jprev_douon +#define next_kanji Jnext_kanji +#define next_hinsi Jnext_hinsi +#define next_douon Jnext_douon +#define add_yomi Jadd_yomi +#define cd2sjh_chr Jcd2sjh_chr + +#define ph2knj Jph2knj + +#define ph_setsty Jph_setsty +#define nextkptr Jnextkptr +#define maxpset Jmaxpset +#define mkknjmax Jmkknjmax +#define ph_khtbl Jph_khtbl + +#define isfukusi Jisfukusi +#define istaigen Jistaigen +#define taicnt Jtaicnt +#define sttcnt Jsttcnt +#define priority Jpriority +#define pritiny Jpritiny + +#define selclrec Jselclrec + +#define initknjall Jinitknjall +#define knjtouroku Jknjtouroku +#define knjitti Jknjitti +#define hikakusub Jhikakusub +#define knjhikaku Jknjhikaku +#define setgroupai Jsetgroupai +#define select_dsub Jselect_dsub +#define select_tsub Jselect_tsub +#define select_ysub Jselect_ysub +#define selectknj Jselectknj +#define selknj Jselknj + +#define cnjstrcmp Jcnjstrcmp +#define cnvrow Jcnvrow +#define setconj Jsetconj + +#define setj_atrb Jsetj_atrb +#define setj_ofs Jsetj_ofs +#define setj_knj Jsetj_knj +#define setj_norm1 Jsetj_norm1 +#define setj_norm2 Jsetj_norm2 +#define chkhead Jchkhead +#define setjrec Jsetjrec +#define setnumrec Jsetnumrec +#define setcrec Jsetcrec + +#define setkouho Jsetkouho +#define ph_setkouho Jph_setkouho +#define hiraknj Jhiraknj +#define hiraknj_atrb Jhiraknj_atrb +#define hiraknj_ofs Jhiraknj_ofs +#define hiraknj_knj Jhiraknj_knj +#define hiraknj_hask Jhiraknj_hask +#define hiraknj_kask Jhiraknj_kask +#define hiraknj_norm Jhiraknj_norm +#define hiraknj_hira Jhiraknj_hira + +#define getstb Jgetstb +#define setubi Jsetubi + +#define sj2cd_chr Jsj2cd_chr +#define sj2cd_str Jsj2cd_str + +#define retaiofs Jretaiofs +#define srchai2nd Jsrchai2nd +#define srchai1st Jsrchai1st +#define srchai4th Jsrchai4th +#define srchai3rd Jsrchai3rd +#define srchai6th Jsrchai6th +#define srchai5th Jsrchai5th + +#define yomicmp_sub Jyomicmp_sub +#define yomicmp Jyomicmp +#define srchdict Jsrchdict + +#define srchg_atrb Jsrchg_atrb +#define srchg_ofs Jsrchg_ofs +#define srchg_knj Jsrchg_knj +#define srchg_norm1 Jsrchg_norm1 +#define srchg_norm2 Jsrchg_norm2 +#define srchgrp2nd Jsrchgrp2nd +#define srchgrp1st Jsrchgrp1st + +#define srchhead Jsrchhead + +#define srchidx Jsrchidx + +#define srch_josuu_sub Jsrch_josuu_sub +#define srch_josuu Jsrch_josuu +#define setnrec_sub Jsetnrec_sub +#define setnrec Jsetnrec +#define srchtbl Jsrchtbl +#define isconnect Jisconnect +#define string_cmp Jstring_cmp +#define check_num Jcheck_num +#define srch_number1 Jsrch_number1 +#define srch_kurai1 Jsrch_kurai1 +#define srch_kurai2 Jsrch_kurai2 +#define srch_number2 Jsrch_number2 +#define srchnum_sub Jsrchnum_sub +#define srchnum Jsrchnum +#define setwdnum Jsetwdnum +#define setucnum Jsetucnum + +#define study Jstudy +#define srchstdy Jsrchstdy + +#define terminate Jterminate -#ifndef _SJ_RENAME +#define wakachi Jwakachi -#define _SJ_RENAME +#define cmpstr Jcmpstr -#define adddic Jadddic -#define checksub Jchecksub -#define checkdict Jcheckdict -#define cal_nextym Jcal_nextym -#define cmpknj Jcmpknj -#define usr_freelen Jusr_freelen -#define sprt_seg Jsprt_seg -#define apnd_uidx Japnd_uidx +#define hzstrlen Jhzstrlen +#define istrcmp Jistrcmp +#define mvmemd Jmvmemd -#define set_size Jset_size -#define isvyomi Jisvyomi -#define isvknj Jisvknj -#define isgrm Jisgrm -#define addel_arg Jaddel_arg -#define yomi2kata Jyomi2kata -#define top_strcmp Jtop_strcmp -#define last_strcmp Jlast_strcmp -#define cvtknj Jcvtknj -#define srchkana Jsrchkana -#define srchgram Jsrchgram -#define srchkanji Jsrchkanji -#define count_uidx Jcount_uidx -#define chg_uidx Jchg_uidx +#define mvmemi Jmvmemi +#define skiphblk Jskiphblk +#define skipkstr Jskipkstr -#define cl2knj Jcl2knj -#define nextcl Jnextcl -#define nextrecblk Jnextrecblk -#define prevcl Jprevcl -#define prevrecblk Jprevrecblk -#define initkbuf Jinitkbuf -#define selectnum Jselectnum -#define kouhonum Jkouhonum +#define sstrcmp Jsstrcmp +#define sstrlen Jsstrlen +#define sstrncmp Jsstrncmp -#define clstudy Jclstudy -#define delcldata Jdelcldata -#define delclsub Jdelclsub -#define delclold Jdelclold -#define srchclpos Jsrchclpos -#define mkclidx Jmkclidx +#define charsize Jcharsize +#define chrtbl Jchrtbl +#define conjadr Jconjadr -#define cvtclknj Jcvtclknj +#define connadr Jconnadr +#define rigtadr Jrigtadr +#define cvtnum_func Jcvtnum_func +#define getkan_func Jgetkan_func +#define setjrec_func Jsetjrec_func +#define srchg_func Jsrchg_func +#define hiraknj_func Jhiraknj_func +#define fzkadr Jfzkadr -#define cvtdict Jcvtdict -#define cvtminasi Jcvtminasi -#define cvtwakachi Jcvtwakachi +#define taipri Jtaipri +#define sttpri Jsttpri +#define kigou Jkigou +#define selsjadrs Jselsjadrs -#define cvtphknj Jcvtphknj -#define cvtkouho Jcvtkouho -#define setstyrec Jsetstyrec +#define stbadr Jstbadr +#define settou_ptr Jsettou_ptr +#define scncttbl Jscncttbl +#define suuji_tbl Jsuuji_tbl +#define kurai1_tbl Jkurai1_tbl +#define kurai2_tbl Jkurai2_tbl +#define num1tbl Jnum1tbl +#define num2tbl Jnum2tbl +#define num3tbl Jnum3tbl +#define num4tbl Jnum4tbl +#define num5tbl Jnum5tbl +#define num6tbl Jnum6tbl -#define deldic Jdeldic -#define del_douon Jdel_douon -#define del_segment Jdel_segment -#define del_uidx Jdel_uidx -#define del_stdy Jdel_stdy - - - -#define get_askknj Jget_askknj -#define seldict Jseldict -#define sel_udict Jsel_udict -#define get_idxofs Jget_idxofs -#define get_idxptr Jget_idxptr - - - -#define fzkstrcmp Jfzkstrcmp -#define setclrec Jsetclrec -#define fzkcnct Jfzkcnct -#define srchfzk Jsrchfzk - - - -#define getkan_none Jgetkan_none -#define getkan_hira Jgetkan_hira -#define getkan_kata Jgetkan_kata -#define getkan_knj Jgetkan_knj -#define getkan_ofs Jgetkan_ofs -#define getkan_norm Jgetkan_norm -#define code2kanji Jcode2kanji -#define getkanji Jgetkanji - - - -#define getrank Jgetrank -#define setstynum Jsetstynum -#define setnspr Jsetnspr -#define regetrank Jregetrank - - - -#define work_base Jwork_base -#define stdy_base Jstdy_base - - -#define maxjptr (work_base -> Jmaxjptr) -#define maxclptr (work_base -> Jmaxclptr) -#define jrt1st (work_base -> Jjrt1st) -#define clt1st (work_base -> Jclt1st) -#define jrt2nd (work_base -> Jjrt2nd) -#define clt2nd (work_base -> Jclt2nd) -#define selcl (work_base -> Jselcl) -#define selectid (work_base -> Jselectid) -#define trank (work_base -> Jtrank) -#define nrank (work_base -> Jnrank) -#define buninf (work_base -> Jbuninf) -#define buncnt (work_base -> Jbuncnt) -#define knjnew (work_base -> Jknjnew) -#define knjidx (work_base -> Jknjidx) -#define knjmax (work_base -> Jknjmax) -#define score (work_base -> Jscore) -#define pathnum (work_base -> Jpathnum) -#define usedpath (work_base -> Jusedpath) -#define inputyomi (work_base -> Jinputyomi) -#define cnvstart (work_base -> Jcnvstart) -#define cnvlen (work_base -> Jcnvlen) -#define ystart (work_base -> Jystart) -#define hyomi (work_base -> Jhyomi) -#define orgyomi (work_base -> Jorgyomi) -#define kanjibuf (work_base -> Jkanjibuf) -#define kanjipos (work_base -> Jkanjipos) -#define kanjitmp (work_base -> Jkanjitmp) -#define kanjilen (work_base -> Jkanjilen) -#define dicinl (work_base -> Jdicinl) -#define dicsaml (work_base -> Jdicsaml) -#define prevseg (work_base -> Jprevseg) -#define fzkcount (work_base -> Jfzkcount) -#define fzk_ka_flg (work_base -> Jfzk_ka_flg) -#define fzktbl (work_base -> Jfzktbl) -#define headcode (work_base -> Jheadcode) -#define headlen (work_base -> Jheadlen) -#define gobilen (work_base -> Jgobilen) -#define prevclgrm (work_base -> Jprevclgrm) -#define prevclrow (work_base -> Jprevclrow) -#define nextcllen (work_base -> Jnextcllen) -#define khcount (work_base -> Jkhcount) -#define nkhcount (work_base -> Jnkhcount) -#define kouhotbl (work_base -> Jkouhotbl) -#define stdytop (work_base -> Jstdytop) -#define curdict (work_base -> Jcurdict) -#define dictlist (work_base -> Jdictlist) -#define dicbuf (work_base -> Jdicbuf) -#define idxbuf (work_base -> Jidxbuf) -#define idxofs (work_base -> Jidxofs) -#define askknj (work_base -> Jaskknj) -#define askknj_k (work_base -> Jaskknj_k) - -#define grp_ptr (work_base -> Jgrp_ptr) -#define grp_seg (work_base -> Jgrp_seg) -#define grp_grp (work_base -> Jgrp_grp) -#define suuji_wbuf (work_base -> Jsuuji_wbuf) -#define suuji_ubuf (work_base -> Jsuuji_ubuf) -#define suuji_class (work_base -> Jsuuji_class) -#define suuji_comma (work_base -> Jsuuji_comma) -#define suuji_keta (work_base -> Jsuuji_keta) -#define suuji_yptr (work_base -> Jsuuji_yptr) -#define suuji_len (work_base -> Jsuuji_len) -#define suuji_exit (work_base -> Jsuuji_exit) -#define suuji_wkeep (work_base -> Jsuuji_wkeep) -#define suuji_ukeep (work_base -> Jsuuji_ukeep) -#define peepyomi (work_base -> Jpeepyomi) -#define peepknj (work_base -> Jpeepknj) -#define peepgrm (work_base -> Jpeepgrm) -#define peepdptr (work_base -> Jpeepdptr) -#define peephptr (work_base -> Jpeephptr) -#define peepkptr (work_base -> Jpeepkptr) -#define peepidx (work_base -> Jpeepidx) - - - -#define seg_count Jseg_count -#define mkidxtbl Jmkidxtbl -#define initwork Jinitwork - - - -#define free_jlst Jfree_jlst -#define free_clst Jfree_clst -#define free_clall Jfree_clall -#define free_jall Jfree_jall -#define freework Jfreework -#define free_kjall Jfree_kjall - - - -#define set2nd Jset2nd -#define mk2claus Jmk2claus - - - -#define mkbunsetu Jmkbunsetu -#define argclrec Jargclrec - - - -#define mkjiritu Jmkjiritu -#define dic_mu Jdic_mu -#define argjrec Jargjrec -#define dic_cl Jdic_cl - - - -#define mkkouho Jmkkouho -#define getkhtbl Jgetkhtbl -#define cl_kanji Jcl_kanji -#define sameknj Jsameknj -#define skipatr Jskipatr -#define diffknj Jdiffknj -#define chrck_numtbl Jchrck_numtbl -#define sel_sjmode Jsel_sjmode -#define cl_numcmn Jcl_numcmn - - - -#define word2char Jword2char -#define words2num Jwords2num -#define num_type00 Jnum_type00 -#define num_type01 Jnum_type01 -#define num_type02 Jnum_type02 -#define num_type03 Jnum_type03 -#define num_type04 Jnum_type04 -#define num_type05 Jnum_type05 -#define num_type06 Jnum_type06 -#define num_type07 Jnum_type07 -#define kan_num Jkan_num -#define num_type08 Jnum_type08 -#define num_type09 Jnum_type09 -#define num_type10 Jnum_type10 -#define num_type11 Jnum_type11 -#define num_type12 Jnum_type12 -#define num_kurai Jnum_kurai -#define num_type13 Jnum_type13 -#define num_type14 Jnum_type14 - - - -#define getusr Jgetusr -#define nextusr Jnextusr -#define prevusr Jprevusr -#define set_kanji Jset_kanji -#define set_buf Jset_buf -#define prev_kanji Jprev_kanji -#define prev_hinsi Jprev_hinsi -#define prev_douon Jprev_douon -#define next_kanji Jnext_kanji -#define next_hinsi Jnext_hinsi -#define next_douon Jnext_douon -#define add_yomi Jadd_yomi -#define cd2sjh_chr Jcd2sjh_chr - - - -#define ph2knj Jph2knj - - - -#define ph_setsty Jph_setsty -#define nextkptr Jnextkptr -#define maxpset Jmaxpset -#define mkknjmax Jmkknjmax -#define ph_khtbl Jph_khtbl - - - -#define isfukusi Jisfukusi -#define istaigen Jistaigen -#define taicnt Jtaicnt -#define sttcnt Jsttcnt -#define priority Jpriority -#define pritiny Jpritiny - - - -#define selclrec Jselclrec - - - -#define initknjall Jinitknjall -#define knjtouroku Jknjtouroku -#define knjitti Jknjitti -#define hikakusub Jhikakusub -#define knjhikaku Jknjhikaku -#define setgroupai Jsetgroupai -#define select_dsub Jselect_dsub -#define select_tsub Jselect_tsub -#define select_ysub Jselect_ysub -#define selectknj Jselectknj -#define selknj Jselknj - - - -#define cnjstrcmp Jcnjstrcmp -#define cnvrow Jcnvrow -#define setconj Jsetconj - - - -#define setj_atrb Jsetj_atrb -#define setj_ofs Jsetj_ofs -#define setj_knj Jsetj_knj -#define setj_norm1 Jsetj_norm1 -#define setj_norm2 Jsetj_norm2 -#define chkhead Jchkhead -#define setjrec Jsetjrec -#define setnumrec Jsetnumrec -#define setcrec Jsetcrec - - - -#define setkouho Jsetkouho -#define ph_setkouho Jph_setkouho -#define hiraknj Jhiraknj -#define hiraknj_atrb Jhiraknj_atrb -#define hiraknj_ofs Jhiraknj_ofs -#define hiraknj_knj Jhiraknj_knj -#define hiraknj_hask Jhiraknj_hask -#define hiraknj_kask Jhiraknj_kask -#define hiraknj_norm Jhiraknj_norm -#define hiraknj_hira Jhiraknj_hira - - - -#define getstb Jgetstb -#define setubi Jsetubi - - - -#define sj2cd_chr Jsj2cd_chr -#define sj2cd_str Jsj2cd_str - - - -#define retaiofs Jretaiofs -#define srchai2nd Jsrchai2nd -#define srchai1st Jsrchai1st -#define srchai4th Jsrchai4th -#define srchai3rd Jsrchai3rd -#define srchai6th Jsrchai6th -#define srchai5th Jsrchai5th - - - -#define yomicmp_sub Jyomicmp_sub -#define yomicmp Jyomicmp -#define srchdict Jsrchdict - - - -#define srchg_atrb Jsrchg_atrb -#define srchg_ofs Jsrchg_ofs -#define srchg_knj Jsrchg_knj -#define srchg_norm1 Jsrchg_norm1 -#define srchg_norm2 Jsrchg_norm2 -#define srchgrp2nd Jsrchgrp2nd -#define srchgrp1st Jsrchgrp1st - - - -#define srchhead Jsrchhead - - - -#define srchidx Jsrchidx - - - -#define srch_josuu_sub Jsrch_josuu_sub -#define srch_josuu Jsrch_josuu -#define setnrec_sub Jsetnrec_sub -#define setnrec Jsetnrec -#define srchtbl Jsrchtbl -#define isconnect Jisconnect -#define string_cmp Jstring_cmp -#define check_num Jcheck_num -#define srch_number1 Jsrch_number1 -#define srch_kurai1 Jsrch_kurai1 -#define srch_kurai2 Jsrch_kurai2 -#define srch_number2 Jsrch_number2 -#define srchnum_sub Jsrchnum_sub -#define srchnum Jsrchnum -#define setwdnum Jsetwdnum -#define setucnum Jsetucnum - - - -#define study Jstudy -#define srchstdy Jsrchstdy - - - -#define terminate Jterminate - - - -#define wakachi Jwakachi - - - - -#define cmpstr Jcmpstr - - - -#define hzstrlen Jhzstrlen - - - -#define istrcmp Jistrcmp - - - - -#define mvmemd Jmvmemd - - - -#define mvmemi Jmvmemi - - - -#define skiphblk Jskiphblk - - - -#define skipkstr Jskipkstr - - - -#define sstrcmp Jsstrcmp - - - -#define sstrlen Jsstrlen - - - -#define sstrncmp Jsstrncmp - - - - -#define charsize Jcharsize - - - -#define chrtbl Jchrtbl - - - -#define conjadr Jconjadr - - - -#define connadr Jconnadr -#define rigtadr Jrigtadr - - - -#define cvtnum_func Jcvtnum_func -#define getkan_func Jgetkan_func -#define setjrec_func Jsetjrec_func -#define srchg_func Jsrchg_func -#define hiraknj_func Jhiraknj_func - - - -#define fzkadr Jfzkadr - - - -#define taipri Jtaipri -#define sttpri Jsttpri - - - -#define kigou Jkigou - - - -#define selsjadrs Jselsjadrs - - - -#define stbadr Jstbadr - - - -#define settou_ptr Jsettou_ptr -#define scncttbl Jscncttbl - - - -#define suuji_tbl Jsuuji_tbl -#define kurai1_tbl Jkurai1_tbl -#define kurai2_tbl Jkurai2_tbl -#define num1tbl Jnum1tbl -#define num2tbl Jnum2tbl -#define num3tbl Jnum3tbl -#define num4tbl Jnum4tbl -#define num5tbl Jnum5tbl -#define num6tbl Jnum6tbl - - - -#define termtbl Jtermtbl +#define termtbl Jtermtbl #endif diff --git a/include/sj3core/sj_right.h b/include/sj3core/sj_right.h index e67af14..6edb534 100644 --- a/include/sj3core/sj_right.h +++ b/include/sj3core/sj_right.h @@ -1,6 +1,6 @@ /* * Copyright (c) 1991-1994 Sony Corporation - * + * * Permission is hereby granted, free of charge, to any person obtaining * a copy of this software and associated documentation files (the * "Software"), to deal in the Software without restriction, including @@ -8,10 +8,10 @@ * distribute, sublicense, and/or sell copies of the Software, and to * permit persons to whom the Software is furnished to do so, subject to * the following conditions: - * + * * The above copyright notice and this permission notice shall be * included in all copies or substantial portions of the Software. - * + * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. @@ -19,7 +19,7 @@ * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR * THE USE OR OTHER DEALINGS IN THE SOFTWARE. - * + * * Except as contained in this notice, the name of Sony Corporation * shall not be used in advertising or otherwise to promote the sale, use * or other dealings in this Software without prior written authorization @@ -28,346 +28,296 @@ */ /* - * $SonyRCSfile: sj_right.h,v $ - * $SonyRevision: 1.1 $ + * $SonyRCSfile: sj_right.h,v $ + * $SonyRevision: 1.1 $ * $SonyDate: 1994/06/03 08:01:15 $ */ - - - - -#ifndef _SJ_RIGHT - -#define _SJ_RIGHT - -#define R_DE 1 -#define R_WO 2 -#define R_KARA1 3 -#define R_GA1 4 -#define R_TO1 5 -#define R_NI1 6 -#define R_NO1 7 -#define R_HA 8 -#define R_HE 9 -#define R_MO1 10 -#define R_YA1 11 -#define R_YORI1 12 -#define R_SAE 13 -#define R_SIKA 14 -#define R_DAKE 15 - -#define R_I 16 -#define R_E 17 -#define R_KAKE 18 -#define R_KANE2 19 -#define R_SUGI 20 -#define R_DEKI 21 -#define R_MI 22 -#define R_SASE 23 -#define R_RARE 24 - - - - -#define R_ITADAKE 25 - - - - -#define R_EXP 26 - - - - -#define R_RENYOU1 27 -#define R_RENYOU5 28 -#define R_SA5RENYOU1 29 - -#define R_RENYOU3 30 -#define R_RENYOU7 31 -#define R_SA5RENYOU3 32 -#define R_RENYOU4 33 -#define R_RENYOU8 34 -#define R_SA5RENYOU4 35 - -#define R_KRENYOU 39 -#define R_DRENYOU1 40 -#define R_DRENYOU2 41 -#define R_DRENYOU3 42 -#define R_ONBIN1 43 -#define R_ONBIN2 44 -#define R_ONBIN3 45 - -#define R_DESHI 46 -#define R_AXTU 47 -#define R_ONBIN6 48 -#define R_ONBIN8 49 -#define R_ARI1 50 -#define R_ARI2 51 -#define R_ARI3 52 -#define R_IKI 53 -#define R_ITASI 54 -#define R_ITADAKI 55 -#define R_ORI2 56 -#define R_GATAKU 57 -#define R_KI 58 -#define R_KUDASAI 59 -#define R_GOZAI 60 -#define R_GOTOKU 61 -#define R_BEKU 62 -#define R_SOUDE 63 -#define R_SOUNI 64 -#define R_TAGARI 65 -#define R_TAKU 66 -#define R_MIZEN1 67 -#define R_NAIDE 68 -#define R_NAKU 69 -#define R_NASAI 70 -#define R_FUUNI 71 -#define R_YORI2 72 -#define R_RASHUU 73 - - - - -#define R_DSHUUSI1 74 -#define R_DSHUUSI2 75 -#define R_GOTOSI 76 -#define R_BESI 77 -#define R_ZU 78 -#define R_SOUDA 79 -#define R_MAI 80 -#define R_MITAIDA 81 - - - - -#define R_SHUUSI 82 -#define R_KSHUUSI 83 -#define R_ZARU 84 -#define R_SOUDESU 85 -#define R_TA 86 -#define R_TAI 87 -#define R_DESU 88 -#define R_NAI 89 -#define R_NU 90 -#define R_MASU 91 -#define R_NN2 92 -#define R_RASII 93 - - - - -#define R_DRENTAI1 94 -#define R_DRENTAI2 95 -#define R_DRENTAI3 96 -#define R_KRENTAI 97 -#define R_GOTOKI 98 -#define R_BEKI 99 -#define R_SOUNA1 100 -#define R_SOUNA2 101 -#define R_NA2 102 - - - - -#define R_KATEI1 103 -#define R_KATEI2 104 -#define R_KATEI3 105 - - - - - -#define R_KAMEI 106 - - - - -#define R_IKE 107 - - - - -#define R_KURE 108 - - - - -#define R_MEIREI1 109 -#define R_MEIREI2 110 - - - - -#define R_DGOKAN 111 -#define R_KGOKAN 112 -#define R_SGOKAN 113 -#define R_GATI 114 -#define R_JYA 115 -#define R_SOU 116 -#define R_MITAI 117 -#define R_YOTTE 118 -#define R_YOU2 119 -#define R_SHO 120 - - - - -#define R_FZKMEISI 121 - - - - -#define R_AISATU 122 -#define R_KOSODO 123 - -#define R_YOU1 124 -#define R_HASI 125 - -#define R_DAIMEISI 126 -#define R_DAIMEISI6 127 - -#define R_FZKKI 128 -#define R_DEHA 129 -#define R_NAGARA2 130 -#define R_WO_S 131 -#define R_WO_MEISI 132 -#define R_SITE 133 -#define R_N_SI 134 -#define R_F_FUKUSI 135 -#define R_CUT 137 - - -#define R_MIZEN2 140 -#define R_MIZEN3 141 -#define R_MIZEN4 142 -#define R_SI1 143 -#define R_JI 144 -#define R_AGE 145 -#define R_MIZEN5 146 -#define R_AROU 147 -#define R_KAROU 148 -#define R_DAROU 149 -#define R_DESHOU 150 -#define R_KO 151 -#define R_BEKARA 152 -#define R_TAGARA 153 - -#define R_SHUUJO 154 -#define R_TTATTE 155 -#define R_TTARA 156 -#define R_TTE1 157 -#define R_TTE2 158 -#define R_PPANASI 159 - -#define R_PPOI 160 -#define R_UE 161 -#define R_UTI 162 -#define R_OITE 163 -#define R_OKERU 164 -#define R_ORI1 165 -#define R_KA1 166 -#define R_KA2 167 -#define R_KATAGATA 168 -#define R_KADOUKA 169 - -#define R_KAMO 170 -#define R_KARA2 171 -#define R_GA2 172 -#define R_GATERA 173 -#define R_KIRI 174 -#define R_KUSENI 175 -#define R_KURAI 176 -#define R_GURUMI 177 -#define R_KEDO 178 -#define R_KOSO 179 - -#define R_KOTO 180 -#define R_SI2 181 -#define R_SURA 182 -#define R_ZUTU 183 -#define R_TAME 184 -#define R_TARI 185 -#define R_DANO 186 -#define R_DARAKE 187 -#define R_TUITE 188 -#define R_TUKI 189 - -#define R_TUTU 190 -#define R_TUMORI 191 -#define R_TE1 192 -#define R_TE2 193 -#define R_TERU 194 -#define R_TO2 195 -#define R_TOTTE 196 -#define R_TOIU 197 -#define R_TOORI 198 -#define R_TOKI 199 - -#define R_TOKORO 200 -#define R_TOTE 201 -#define R_TOHAIE 202 -#define R_TOMO 203 -#define R_DO 204 -#define R_DOORI 205 -#define R_DOKORO 206 -#define R_DOKOROKA 207 -#define R_DOMO 208 -#define R_NAGARA 209 - -#define R_NAZO 210 -#define R_NADO 211 -#define R_NARI 212 -#define R_NANKA 213 -#define R_NANZO 214 -#define R_NANTE 215 -#define R_NI2 216 -#define R_NI3 217 -#define R_NITE 218 -#define R_NIMO 219 - -#define R_NO2 220 -#define R_NODE 221 -#define R_NONI 222 -#define R_NOMI 223 -#define R_NOMINRZ 224 -#define R_HAZU 225 -#define R_BA 226 -#define R_BAKARI 227 -#define R_HOU 228 -#define R_HOKA 229 - -#define R_HODO 230 -#define R_MADE 231 -#define R_MAMA 232 -#define R_MO2 233 -#define R_MOTTE 234 -#define R_MONO 235 -#define R_YA2 236 -#define R_YARA 237 -#define R_YUE 238 -#define R_WAKE 239 - -#define R_NN1 240 - - - -#define R_SUUSI 241 -#define R_SETUZOKU 242 -#define R_KANDOU 243 -#define R_SETTOU 244 -#define R_FUKUSI 245 -#define R_FZKKGU 246 -#define R_MEISI 247 -#define R_DMEISI 248 -#define R_SMEISI1 249 -#define R_SMEISI2 250 -#define R_KSTB 251 -#define R_ICHISETUBI 252 -#define R_JOSUUSI 253 -#define R_RENTAISI 254 -#define R_TANKAN 255 +#ifndef _SJ_RIGHT + +#define _SJ_RIGHT + +#define R_DE 1 +#define R_WO 2 +#define R_KARA1 3 +#define R_GA1 4 +#define R_TO1 5 +#define R_NI1 6 +#define R_NO1 7 +#define R_HA 8 +#define R_HE 9 +#define R_MO1 10 +#define R_YA1 11 +#define R_YORI1 12 +#define R_SAE 13 +#define R_SIKA 14 +#define R_DAKE 15 + +#define R_I 16 +#define R_E 17 +#define R_KAKE 18 +#define R_KANE2 19 +#define R_SUGI 20 +#define R_DEKI 21 +#define R_MI 22 +#define R_SASE 23 +#define R_RARE 24 + +#define R_ITADAKE 25 + +#define R_EXP 26 + +#define R_RENYOU1 27 +#define R_RENYOU5 28 +#define R_SA5RENYOU1 29 + +#define R_RENYOU3 30 +#define R_RENYOU7 31 +#define R_SA5RENYOU3 32 +#define R_RENYOU4 33 +#define R_RENYOU8 34 +#define R_SA5RENYOU4 35 + +#define R_KRENYOU 39 +#define R_DRENYOU1 40 +#define R_DRENYOU2 41 +#define R_DRENYOU3 42 +#define R_ONBIN1 43 +#define R_ONBIN2 44 +#define R_ONBIN3 45 + +#define R_DESHI 46 +#define R_AXTU 47 +#define R_ONBIN6 48 +#define R_ONBIN8 49 +#define R_ARI1 50 +#define R_ARI2 51 +#define R_ARI3 52 +#define R_IKI 53 +#define R_ITASI 54 +#define R_ITADAKI 55 +#define R_ORI2 56 +#define R_GATAKU 57 +#define R_KI 58 +#define R_KUDASAI 59 +#define R_GOZAI 60 +#define R_GOTOKU 61 +#define R_BEKU 62 +#define R_SOUDE 63 +#define R_SOUNI 64 +#define R_TAGARI 65 +#define R_TAKU 66 +#define R_MIZEN1 67 +#define R_NAIDE 68 +#define R_NAKU 69 +#define R_NASAI 70 +#define R_FUUNI 71 +#define R_YORI2 72 +#define R_RASHUU 73 + +#define R_DSHUUSI1 74 +#define R_DSHUUSI2 75 +#define R_GOTOSI 76 +#define R_BESI 77 +#define R_ZU 78 +#define R_SOUDA 79 +#define R_MAI 80 +#define R_MITAIDA 81 + +#define R_SHUUSI 82 +#define R_KSHUUSI 83 +#define R_ZARU 84 +#define R_SOUDESU 85 +#define R_TA 86 +#define R_TAI 87 +#define R_DESU 88 +#define R_NAI 89 +#define R_NU 90 +#define R_MASU 91 +#define R_NN2 92 +#define R_RASII 93 + +#define R_DRENTAI1 94 +#define R_DRENTAI2 95 +#define R_DRENTAI3 96 +#define R_KRENTAI 97 +#define R_GOTOKI 98 +#define R_BEKI 99 +#define R_SOUNA1 100 +#define R_SOUNA2 101 +#define R_NA2 102 + +#define R_KATEI1 103 +#define R_KATEI2 104 +#define R_KATEI3 105 + +#define R_KAMEI 106 + +#define R_IKE 107 + +#define R_KURE 108 + +#define R_MEIREI1 109 +#define R_MEIREI2 110 + +#define R_DGOKAN 111 +#define R_KGOKAN 112 +#define R_SGOKAN 113 +#define R_GATI 114 +#define R_JYA 115 +#define R_SOU 116 +#define R_MITAI 117 +#define R_YOTTE 118 +#define R_YOU2 119 +#define R_SHO 120 + +#define R_FZKMEISI 121 + +#define R_AISATU 122 +#define R_KOSODO 123 + +#define R_YOU1 124 +#define R_HASI 125 + +#define R_DAIMEISI 126 +#define R_DAIMEISI6 127 + +#define R_FZKKI 128 +#define R_DEHA 129 +#define R_NAGARA2 130 +#define R_WO_S 131 +#define R_WO_MEISI 132 +#define R_SITE 133 +#define R_N_SI 134 +#define R_F_FUKUSI 135 +#define R_CUT 137 + +#define R_MIZEN2 140 +#define R_MIZEN3 141 +#define R_MIZEN4 142 +#define R_SI1 143 +#define R_JI 144 +#define R_AGE 145 +#define R_MIZEN5 146 +#define R_AROU 147 +#define R_KAROU 148 +#define R_DAROU 149 +#define R_DESHOU 150 +#define R_KO 151 +#define R_BEKARA 152 +#define R_TAGARA 153 + +#define R_SHUUJO 154 +#define R_TTATTE 155 +#define R_TTARA 156 +#define R_TTE1 157 +#define R_TTE2 158 +#define R_PPANASI 159 + +#define R_PPOI 160 +#define R_UE 161 +#define R_UTI 162 +#define R_OITE 163 +#define R_OKERU 164 +#define R_ORI1 165 +#define R_KA1 166 +#define R_KA2 167 +#define R_KATAGATA 168 +#define R_KADOUKA 169 + +#define R_KAMO 170 +#define R_KARA2 171 +#define R_GA2 172 +#define R_GATERA 173 +#define R_KIRI 174 +#define R_KUSENI 175 +#define R_KURAI 176 +#define R_GURUMI 177 +#define R_KEDO 178 +#define R_KOSO 179 + +#define R_KOTO 180 +#define R_SI2 181 +#define R_SURA 182 +#define R_ZUTU 183 +#define R_TAME 184 +#define R_TARI 185 +#define R_DANO 186 +#define R_DARAKE 187 +#define R_TUITE 188 +#define R_TUKI 189 + +#define R_TUTU 190 +#define R_TUMORI 191 +#define R_TE1 192 +#define R_TE2 193 +#define R_TERU 194 +#define R_TO2 195 +#define R_TOTTE 196 +#define R_TOIU 197 +#define R_TOORI 198 +#define R_TOKI 199 + +#define R_TOKORO 200 +#define R_TOTE 201 +#define R_TOHAIE 202 +#define R_TOMO 203 +#define R_DO 204 +#define R_DOORI 205 +#define R_DOKORO 206 +#define R_DOKOROKA 207 +#define R_DOMO 208 +#define R_NAGARA 209 + +#define R_NAZO 210 +#define R_NADO 211 +#define R_NARI 212 +#define R_NANKA 213 +#define R_NANZO 214 +#define R_NANTE 215 +#define R_NI2 216 +#define R_NI3 217 +#define R_NITE 218 +#define R_NIMO 219 + +#define R_NO2 220 +#define R_NODE 221 +#define R_NONI 222 +#define R_NOMI 223 +#define R_NOMINRZ 224 +#define R_HAZU 225 +#define R_BA 226 +#define R_BAKARI 227 +#define R_HOU 228 +#define R_HOKA 229 + +#define R_HODO 230 +#define R_MADE 231 +#define R_MAMA 232 +#define R_MO2 233 +#define R_MOTTE 234 +#define R_MONO 235 +#define R_YA2 236 +#define R_YARA 237 +#define R_YUE 238 +#define R_WAKE 239 + +#define R_NN1 240 + +#define R_SUUSI 241 +#define R_SETUZOKU 242 +#define R_KANDOU 243 +#define R_SETTOU 244 +#define R_FUKUSI 245 +#define R_FZKKGU 246 +#define R_MEISI 247 +#define R_DMEISI 248 +#define R_SMEISI1 249 +#define R_SMEISI2 250 +#define R_KSTB 251 +#define R_ICHISETUBI 252 +#define R_JOSUUSI 253 +#define R_RENTAISI 254 +#define R_TANKAN 255 #endif diff --git a/include/sj3core/sj_struct.h b/include/sj3core/sj_struct.h index 8b84d1c..4bf270c 100644 --- a/include/sj3core/sj_struct.h +++ b/include/sj3core/sj_struct.h @@ -1,6 +1,6 @@ /* * Copyright (c) 1991-1994 Sony Corporation - * + * * Permission is hereby granted, free of charge, to any person obtaining * a copy of this software and associated documentation files (the * "Software"), to deal in the Software without restriction, including @@ -8,10 +8,10 @@ * distribute, sublicense, and/or sell copies of the Software, and to * permit persons to whom the Software is furnished to do so, subject to * the following conditions: - * + * * The above copyright notice and this permission notice shall be * included in all copies or substantial portions of the Software. - * + * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. @@ -19,7 +19,7 @@ * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR * THE USE OR OTHER DEALINGS IN THE SOFTWARE. - * + * * Except as contained in this notice, the name of Sony Corporation * shall not be used in advertising or otherwise to promote the sale, use * or other dealings in this Software without prior written authorization @@ -28,173 +28,141 @@ */ /* - * $SonyRCSfile: sj_struct.h,v $ - * $SonyRevision: 1.1 $ + * $SonyRCSfile: sj_struct.h,v $ + * $SonyRevision: 1.1 $ * $SonyDate: 1994/06/03 08:01:16 $ */ +#ifndef _SJ_STRUCT +#define _SJ_STRUCT - - -#ifndef _SJ_STRUCT - -#define _SJ_STRUCT - - - -typedef struct jiritu { - struct jiritu *jsort; - TypeDicSeg jseg; - TypeDicOfs jofsst; - TypeDicOfs jofsed; - u_short flags; - TypeClass class; - TypeDicID dicid; - u_char jlen; - TypeGram hinsi; - u_char sttofs; - u_char stbofs; - u_char count; - u_char numlen; +typedef struct jiritu { + struct jiritu* jsort; + TypeDicSeg jseg; + TypeDicOfs jofsst; + TypeDicOfs jofsed; + u_short flags; + TypeClass class; + TypeDicID dicid; + u_char jlen; + TypeGram hinsi; + u_char sttofs; + u_char stbofs; + u_char count; + u_char numlen; } JREC; - - - typedef struct bunsetu { - JREC *jnode; - struct bunsetu *clsort; - u_char gobiln; - u_char cllen; + JREC* jnode; + struct bunsetu* clsort; + u_char gobiln; + u_char cllen; - TypeCnct right; - u_char cl2len; - u_char kubun; + TypeCnct right; + u_char cl2len; + u_char kubun; #if __STDC__ - unsigned fzk_ka : 1; + unsigned fzk_ka : 1; #else - u_char fzk_ka : 1; + u_char fzk_ka : 1; #endif } CLREC; - - - -typedef struct kouho { - CLREC *clrec; - TypeDicOfs offs; - TypeStyNum styno; - u_char rank; +typedef struct kouho { + CLREC* clrec; + TypeDicOfs offs; + TypeStyNum styno; + u_char rank; #if __STDC__ - unsigned sttfg : 1; - unsigned sttkj : 1; - unsigned ka_fg : 1; - unsigned ka_kj : 1; - unsigned mode : 4; + unsigned sttfg : 1; + unsigned sttkj : 1; + unsigned ka_fg : 1; + unsigned ka_kj : 1; + unsigned mode : 4; #else - u_char sttfg : 1; - u_char sttkj : 1; - u_char ka_fg : 1; - u_char ka_kj : 1; - u_char mode : 4; + u_char sttfg : 1; + u_char sttkj : 1; + u_char ka_fg : 1; + u_char ka_kj : 1; + u_char mode : 4; #endif } KHREC; - - - -typedef struct conj { - u_char len; - TypeCnct right; +typedef struct conj { + u_char len; + TypeCnct right; } CREC; - - - -typedef struct fuzoku { - u_char *yomip; - u_char *fzkp; +typedef struct fuzoku { + u_char* yomip; + u_char* fzkp; } FREC; - - typedef struct study_in { - TypeDicOfs offset; - TypeDicSeg seg; - TypeStyNum styno; - TypeDicID dicid; + TypeDicOfs offset; + TypeDicSeg seg; + TypeStyNum styno; + TypeDicID dicid; #if __STDC__ - unsigned sttkj : 1; - unsigned ka_kj : 1; - unsigned nmflg : 1; + unsigned sttkj : 1; + unsigned ka_kj : 1; + unsigned nmflg : 1; #else - u_char sttkj : 1; - u_char ka_kj : 1; - u_char nmflg : 1; + u_char sttkj : 1; + u_char ka_kj : 1; + u_char nmflg : 1; #endif } STDYIN; - - - typedef struct study_out { - STDYIN stdy1; - TypeGram hinshi; - u_char len; + STDYIN stdy1; + TypeGram hinshi; + u_char len; #if __STDC__ - unsigned sttlen : 2; - unsigned sttfg : 1; - unsigned ka_fg : 1; + unsigned sttlen : 2; + unsigned sttfg : 1; + unsigned ka_fg : 1; #else - u_char sttlen : 2; - u_char sttfg : 1; - u_char ka_fg : 1; + u_char sttlen : 2; + u_char sttfg : 1; + u_char ka_fg : 1; #endif } STDYOUT; +typedef struct dict { + TypeDicID dicid; + TypeIdxOfs idxlen; + TypeDicOfs seglen; + TypeDicSeg segunit; + TypeDicSeg maxunit; -typedef struct dict { - TypeDicID dicid; - - TypeIdxOfs idxlen; - - TypeDicOfs seglen; - TypeDicSeg segunit; - TypeDicSeg maxunit; - - IFunc getofs; - IFunc getidx; - IFunc getdic; - IFunc putidx; - IFunc putdic; - IFunc rszdic; + IFunc getofs; + IFunc getidx; + IFunc getdic; + IFunc putidx; + IFunc putdic; + IFunc rszdic; } DICT; - - - -typedef struct dictl { - DICT *dict; - struct dictl *next; +typedef struct dictl { + DICT* dict; + struct dictl* next; } DICTL; +typedef struct stdy { + short stdycnt; + short stdymax; + STDYIN* stdydic; + short clstdystep; + u_short* clstdyidx; - -typedef struct stdy { - short stdycnt; - short stdymax; - STDYIN *stdydic; - - short clstdystep; - u_short *clstdyidx; - - short clstdylen; - u_char *clstdydic; + short clstdylen; + u_char* clstdydic; } STDY; #endif diff --git a/include/sj3core/sj_study.h b/include/sj3core/sj_study.h index a9efb10..4ff9f05 100644 --- a/include/sj3core/sj_study.h +++ b/include/sj3core/sj_study.h @@ -1,6 +1,6 @@ /* * Copyright (c) 1991-1994 Sony Corporation - * + * * Permission is hereby granted, free of charge, to any person obtaining * a copy of this software and associated documentation files (the * "Software"), to deal in the Software without restriction, including @@ -8,10 +8,10 @@ * distribute, sublicense, and/or sell copies of the Software, and to * permit persons to whom the Software is furnished to do so, subject to * the following conditions: - * + * * The above copyright notice and this permission notice shall be * included in all copies or substantial portions of the Software. - * + * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. @@ -19,7 +19,7 @@ * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR * THE USE OR OTHER DEALINGS IN THE SOFTWARE. - * + * * Except as contained in this notice, the name of Sony Corporation * shall not be used in advertising or otherwise to promote the sale, use * or other dealings in this Software without prior written authorization @@ -28,65 +28,63 @@ */ /* - * $SonyRCSfile: sj_study.h,v $ - * $SonyRevision: 1.1 $ + * $SonyRCSfile: sj_study.h,v $ + * $SonyRevision: 1.1 $ * $SonyDate: 1994/06/03 08:01:18 $ */ -#ifndef _SJ_STUDY +#ifndef _SJ_STUDY -#define _SJ_STUDY +#define _SJ_STUDY -#define StudyExist() (stdy_base) +#define StudyExist() (stdy_base) -#define STUDYCOUNT (stdy_base -> stdycnt) -#define STUDYMAX (stdy_base -> stdymax) -#define STUDYDICT (stdy_base -> stdydic) +#define STUDYCOUNT (stdy_base->stdycnt) +#define STUDYMAX (stdy_base->stdymax) +#define STUDYDICT (stdy_base->stdydic) -#define CLSTUDYIDX (stdy_base -> clstdyidx) -#define CLSTUDYSTEP (stdy_base -> clstdystep) -#define CLSTUDYLEN (stdy_base -> clstdylen) -#define CLSTUDYDICT (stdy_base -> clstdydic) +#define CLSTUDYIDX (stdy_base->clstdyidx) +#define CLSTUDYSTEP (stdy_base->clstdystep) +#define CLSTUDYLEN (stdy_base->clstdylen) +#define CLSTUDYDICT (stdy_base->clstdydic) -#define STUDYTAIL (STUDYDICT + STUDYMAX) -#define STUDYRECSIZE (sizeof(STDYIN)) +#define STUDYTAIL (STUDYDICT + STUDYMAX) +#define STUDYRECSIZE (sizeof(STDYIN)) -#define CLSTUDYTAIL (CLSTUDYDICT + CLSTUDYLEN) +#define CLSTUDYTAIL (CLSTUDYDICT + CLSTUDYLEN) -#define STUDYNORMEND 0 -#define STUDYNODICT 1 -#define STUDYFULLAREA 2 -#define STUDYNOTSTUDY 3 -#define STUDYERROR 4 +#define STUDYNORMEND 0 +#define STUDYNODICT 1 +#define STUDYFULLAREA 2 +#define STUDYNOTSTUDY 3 +#define STUDYERROR 4 -#define CLSTDY_TMPLEN 256 -#define CLSTUDYNORMEND 0 -#define CLSTUDYNODICT 1 -#define CLSTUDYPARAERR 2 -#define CLSTUDYYOMIERR 3 -#define CLSTUDYNOAREA 4 +#define CLSTDY_TMPLEN 256 +#define CLSTUDYNORMEND 0 +#define CLSTUDYNODICT 1 +#define CLSTUDYPARAERR 2 +#define CLSTUDYYOMIERR 3 +#define CLSTUDYNOAREA 4 -#define CL_YLEN 0 -#define CL_GRAM2 1 -#define CL_Y1LEN 2 -#define CL_NUMH 3 -#define CL_NUML 4 -#define CL_YDATA 5 -#define CL_HDLEN 5 +#define CL_YLEN 0 +#define CL_GRAM2 1 +#define CL_Y1LEN 2 +#define CL_NUMH 3 +#define CL_NUML 4 +#define CL_YDATA 5 +#define CL_HDLEN 5 +#define iseocl(p) (!ClYomiLen(p) || (u_char*)(p) >= CLSTUDYTAIL) - -#define iseocl(p) (!ClYomiLen(p) || (u_char *)(p) >= CLSTUDYTAIL) - -#define ClGramCode(p) *((p) + CL_GRAM2) -#define ClYomiLen(p) *((p) + CL_YLEN) -#define ClYomi1Len(p) *((p) + CL_Y1LEN) -#define ClHighNum(p) *(p + CL_NUMH) -#define ClLowNum(p) *(p + CL_NUML) -#define ClGetNum(p) (ClHighNum(p) * 0x100 + ClLowNum(p)) -#define ClSetNum(p, n) (ClHighNum(p)=(u_char)((n) >> 8), ClLowNum(p)=(u_char)(n)) -#define ClYomiPos(p) ((p) + CL_YDATA) -#define ClBlkLen(p) (ClYomiLen(p) + CL_HDLEN) -#define ClNextTag(p) ((p) + ClBlkLen(p)) +#define ClGramCode(p) *((p) + CL_GRAM2) +#define ClYomiLen(p) *((p) + CL_YLEN) +#define ClYomi1Len(p) *((p) + CL_Y1LEN) +#define ClHighNum(p) *(p + CL_NUMH) +#define ClLowNum(p) *(p + CL_NUML) +#define ClGetNum(p) (ClHighNum(p) * 0x100 + ClLowNum(p)) +#define ClSetNum(p, n) (ClHighNum(p) = (u_char)((n) >> 8), ClLowNum(p) = (u_char)(n)) +#define ClYomiPos(p) ((p) + CL_YDATA) +#define ClBlkLen(p) (ClYomiLen(p) + CL_HDLEN) +#define ClNextTag(p) ((p) + ClBlkLen(p)) #endif diff --git a/include/sj3core/sj_suuji.h b/include/sj3core/sj_suuji.h index ab64224..f8b871c 100644 --- a/include/sj3core/sj_suuji.h +++ b/include/sj3core/sj_suuji.h @@ -1,6 +1,6 @@ /* * Copyright (c) 1991-1994 Sony Corporation - * + * * Permission is hereby granted, free of charge, to any person obtaining * a copy of this software and associated documentation files (the * "Software"), to deal in the Software without restriction, including @@ -8,10 +8,10 @@ * distribute, sublicense, and/or sell copies of the Software, and to * permit persons to whom the Software is furnished to do so, subject to * the following conditions: - * + * * The above copyright notice and this permission notice shall be * included in all copies or substantial portions of the Software. - * + * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. @@ -19,7 +19,7 @@ * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR * THE USE OR OTHER DEALINGS IN THE SOFTWARE. - * + * * Except as contained in this notice, the name of Sony Corporation * shall not be used in advertising or otherwise to promote the sale, use * or other dealings in this Software without prior written authorization @@ -28,110 +28,95 @@ */ /* - * $SonyRCSfile: sj_suuji.h,v $ - * $SonyRevision: 1.1 $ + * $SonyRCSfile: sj_suuji.h,v $ + * $SonyRevision: 1.1 $ * $SonyDate: 1994/06/03 08:01:19 $ */ +#ifndef _SJ_SUUJI +#define _SJ_SUUJI +#define SJTBLRECLEN 6 +#define SJTBLRECNUM 34 +#define SjTblYPos(p) (p) +#define SJTBLYLEN 3 +#define SjTblModeP(p) ((p) + 3) +#define SjTblNumber(md) ((md) & 0x0f) +#define SJTBLNARABIAF 0x80 +#define SJTBLNYOMIF 0x40 +#define SJTBLNNARABIF 0x20 +#define SJTBLNNANSUUF 0x10 +#define SjTblNCont(md) ((md) & SJTBLNCONTF) +#define SjTblCnctP(p) ((p) + 4) +#define KR1TBLRECLEN 5 +#define KR1TBLRECNUM 10 +#define Kr1TblYPos(p) (p) +#define KR1TBLYLEN 3 +#define Kr1TblModeP(p) ((p) + 3) +#define KR1TBLTOPF 0x80 +#define Kr1TblTop(md) ((md) & KR1TBLTOPF) +#define Kr1TblKeta(md) (((md) >> 4) & 7) +#define Kr1TblCnct(md) ((md) & 0x0f) +#define Kr1TblCnctP(p) ((p) + 3) -#ifndef _SJ_SUUJI +#define KR2TBLRECLEN 4 +#define KR2TBLRECNUM 3 +#define Kr2TblYPos(p) (p) +#define KR2TBLYLEN 3 +#define Kr2TblModeP(p) ((p) + 3) +#define Kr2TblCnct(md) ((md) & 0x0f) +#define Kr2TblKeta(md) (((md) >> 4) & 0x0f) -#define _SJ_SUUJI +#define _NUM0 0x01 +#define _NUM1 0x02 +#define _NUM2 0x03 +#define _NUM3 0x04 +#define _NUM4 0x05 +#define _NUM5 0x06 +#define _NUM6 0x07 +#define _NUM7 0x08 +#define _NUM8 0x09 +#define _NUM9 0x0a +#define _NUM1S 0x0b +#define _NUMS 0x0c +#define _NUMN 0x0d +#define COMMAHIGH 0xa1 +#define COMMALOW 0xa4 +#define SELARB 1 +#define SELARB0 2 +#define SELARBCMA 3 +#define SELKANSJ0 5 +#define SELKANSJ20 8 +#define SELKANSJYM 9 +#define SELKANSJYM2 10 +#define SELLONGARB 11 +#define SELLONGARBCMA 12 +#define SELLONGSJ 13 +#define SELARBKR 14 +#define SELKANSJKR 15 +#define SELNUMTERM 0xffff -#define SJTBLRECLEN 6 -#define SJTBLRECNUM 34 -#define SjTblYPos(p) (p) -#define SJTBLYLEN 3 -#define SjTblModeP(p) ((p) + 3) -#define SjTblNumber(md) ((md) & 0x0f) -#define SJTBLNARABIAF 0x80 -#define SJTBLNYOMIF 0x40 -#define SJTBLNNARABIF 0x20 -#define SJTBLNNANSUUF 0x10 -#define SjTblNCont(md) ((md) & SJTBLNCONTF) -#define SjTblCnctP(p) ((p) + 4) +#define SELKANSJ 4 +#define SELKANSJ2 7 +#define SELKANSJCMA 6 -#define KR1TBLRECLEN 5 -#define KR1TBLRECNUM 10 -#define Kr1TblYPos(p) (p) -#define KR1TBLYLEN 3 -#define Kr1TblModeP(p) ((p) + 3) -#define KR1TBLTOPF 0x80 -#define Kr1TblTop(md) ((md) & KR1TBLTOPF) -#define Kr1TblKeta(md) (((md) >> 4) & 7) -#define Kr1TblCnct(md) ((md) & 0x0f) -#define Kr1TblCnctP(p) ((p) + 3) +#define SELNUM0123 (JFLAG_N01 | JFLAG_N23) +#define SELNUM1_23_10_1 (JFLAG_N_1 | JFLAG_N23 | JFLAG_N10 | JFLAG_NS1) +#define SELNUMMUST (JFLAG_NK2 | JFLAG_NK4 | JFLAG_NN0 | JFLAG_NSN) +#define SELNUMALL (JFLAG_N10 | JFLAG_N_1 | JFLAG_NS1 | JFLAG_N01 | JFLAG_N23 | JFLAG_NK2 | JFLAG_NK4 | JFLAG_NN0 | JFLAG_NSN) -#define KR2TBLRECLEN 4 -#define KR2TBLRECNUM 3 -#define Kr2TblYPos(p) (p) -#define KR2TBLYLEN 3 -#define Kr2TblModeP(p) ((p) + 3) -#define Kr2TblCnct(md) ((md) & 0x0f) -#define Kr2TblKeta(md) (((md) >> 4) & 0x0f) +#define SelNumFunc(c) ((c) & (~SELNUMALL)) +#define SelNumCond(c) ((c) & SELNUMALL) -#define _NUM0 0x01 -#define _NUM1 0x02 -#define _NUM2 0x03 -#define _NUM3 0x04 -#define _NUM4 0x05 -#define _NUM5 0x06 -#define _NUM6 0x07 -#define _NUM7 0x08 -#define _NUM8 0x09 -#define _NUM9 0x0a -#define _NUM1S 0x0b -#define _NUMS 0x0c -#define _NUMN 0x0d - -#define COMMAHIGH 0xa1 -#define COMMALOW 0xa4 - -#define SELARB 1 -#define SELARB0 2 -#define SELARBCMA 3 -#define SELKANSJ0 5 -#define SELKANSJ20 8 -#define SELKANSJYM 9 -#define SELKANSJYM2 10 -#define SELLONGARB 11 -#define SELLONGARBCMA 12 -#define SELLONGSJ 13 -#define SELARBKR 14 -#define SELKANSJKR 15 -#define SELNUMTERM 0xffff - -#define SELKANSJ 4 -#define SELKANSJ2 7 -#define SELKANSJCMA 6 - -#define SELNUM0123 (JFLAG_N01 | JFLAG_N23) -#define SELNUM1_23_10_1 (JFLAG_N_1 | JFLAG_N23 | JFLAG_N10 | JFLAG_NS1) -#define SELNUMMUST (JFLAG_NK2 | JFLAG_NK4 | JFLAG_NN0 | JFLAG_NSN) -#define SELNUMALL (JFLAG_N10 | JFLAG_N_1 | JFLAG_NS1 | JFLAG_N01 \ - | JFLAG_N23 | JFLAG_NK2 | JFLAG_NK4 \ - | JFLAG_NN0 | JFLAG_NSN) - - - -#define SelNumFunc(c) ((c) & (~SELNUMALL)) -#define SelNumCond(c) ((c) & SELNUMALL) - - - -#define NUMBER123456789NS ((1<<_NUM1)|(1<<_NUM2)|(1<<_NUM3)|(1<<_NUM4) \ - |(1<<_NUM5)|(1<<_NUM6)|(1<<_NUM7)|(1<<_NUM8) \ - |(1<<_NUM9)|(1<<_NUM1S)\ - |(1<<_NUMN)|(1<<_NUMS)) -#define NUMBER0 (1<<_NUM0) -#define NUMBER1 ((1<<_NUM1)|(1<<_NUM1S)) -#define NUMBERS1 (1<<_NUM1S) -#define NUMBER01 (NUMBER0|NUMBER1) -#define NUMBER23 ((1<<_NUM2)|(1<<_NUM3)) +#define NUMBER123456789NS ((1 << _NUM1) | (1 << _NUM2) | (1 << _NUM3) | (1 << _NUM4) | (1 << _NUM5) | (1 << _NUM6) | (1 << _NUM7) | (1 << _NUM8) | (1 << _NUM9) | (1 << _NUM1S) | (1 << _NUMN) | (1 << _NUMS)) +#define NUMBER0 (1 << _NUM0) +#define NUMBER1 ((1 << _NUM1) | (1 << _NUM1S)) +#define NUMBERS1 (1 << _NUM1S) +#define NUMBER01 (NUMBER0 | NUMBER1) +#define NUMBER23 ((1 << _NUM2) | (1 << _NUM3)) #endif diff --git a/include/sj3core/sj_table.h b/include/sj3core/sj_table.h index 25e582c..2dc0636 100644 --- a/include/sj3core/sj_table.h +++ b/include/sj3core/sj_table.h @@ -1,6 +1,6 @@ /* * Copyright (c) 1991-1994 Sony Corporation - * + * * Permission is hereby granted, free of charge, to any person obtaining * a copy of this software and associated documentation files (the * "Software"), to deal in the Software without restriction, including @@ -8,10 +8,10 @@ * distribute, sublicense, and/or sell copies of the Software, and to * permit persons to whom the Software is furnished to do so, subject to * the following conditions: - * + * * The above copyright notice and this permission notice shall be * included in all copies or substantial portions of the Software. - * + * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. @@ -19,7 +19,7 @@ * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR * THE USE OR OTHER DEALINGS IN THE SOFTWARE. - * + * * Except as contained in this notice, the name of Sony Corporation * shall not be used in advertising or otherwise to promote the sale, use * or other dealings in this Software without prior written authorization @@ -28,97 +28,79 @@ */ /* - * $SonyRCSfile: sj_table.h,v $ - * $SonyRevision: 1.1 $ + * $SonyRCSfile: sj_table.h,v $ + * $SonyRevision: 1.1 $ * $SonyDate: 1994/06/03 08:01:21 $ */ -#ifndef _SJ_TABLE +#ifndef _SJ_TABLE -#define _SJ_TABLE +#define _SJ_TABLE +#define isdpnd(c) (Chrtbl[c] & DEPEND) -#define isdpnd(c) (Chrtbl[c] & DEPEND) +#define CnjAskLen(p) (((unsigned int)*(p) & 0x70) >> 4) +#define CnjNkrLen(p) (*(p) & 0x0f) -#define CnjAskLen(p) (((unsigned int) *(p) & 0x70) >> 4) +#define CnjRight(p) *(p + CnjNkrLen(p) + 1) +#define CnjRecLen(p) (CnjNkrLen(p) + 2) -#define CnjNkrLen(p) (*(p) & 0x0f) +#define FzkAskLen(p) ((unsigned int)*(p) >> 5) +#define FzkNkrLen(p) (*(p) & 0x07) -#define CnjRight(p) *(p + CnjNkrLen(p) + 1) +#define FzkStrKa(p) (((unsigned int)*(p) >> 3) & 1) +#define FzkHasCode(p) (*(p) & 0x10) -#define CnjRecLen(p) (CnjNkrLen(p) + 2) +#define FzkLeft(p) (*((p) + nlen + 1)) +#define FzkRight(p) (*((p) + nlen + 2)) -#define FzkAskLen(p) ((unsigned int) *(p) >> 5) +#define SttYomiLen(p) (*(p) & 0x0f) +#define SttHiraKnj(p) (*(p) & 0x80) -#define FzkNkrLen(p) (*(p) & 0x07) +#define StbKnjLen(p) (*(p) & 0x07) +#define StbYomiLen(p) (*(p) >> 4) -#define FzkStrKa(p) (((unsigned int) *(p) >> 3) & 1) +#define StbYomiTop(p) ((p) + 2) +#define StbBakeru(p) (*(p) & 0x08) -#define FzkHasCode(p) (*(p) & 0x10) +#define StbHinsi(p) (*((p) + 1)) - -#define FzkLeft(p) (*((p) + nlen + 1)) - - -#define FzkRight(p) (*((p) + nlen + 2)) - - -#define SttYomiLen(p) (*(p) & 0x0f) - - -#define SttHiraKnj(p) (*(p) & 0x80) - - -#define StbKnjLen(p) (*(p) & 0x07) - - -#define StbYomiLen(p) (*(p) >> 4) - - -#define StbYomiTop(p) ((p) + 2) - - -#define StbBakeru(p) (*(p) & 0x08) - - -#define StbHinsi(p) (*((p) + 1)) - -#define Charsize charsize -#define Chrtbl chrtbl -#define Conjadr(i) conjadr[i] -#define Connadr connadr -#define Cvtnum_func cvtnum_func -#define Fzkadr(i) fzkadr[i] -#define Getkan_func getkan_func -#define Hiraknj_func hiraknj_func -#define Kigou kigou -#define Kurai1_tbl kurai1_tbl -#define Kurai2_tbl kurai2_tbl -#define Makekan_func makekan_func -#define Num1tbl num1tbl -#define Num2tbl num2tbl -#define Num3tbl num3tbl -#define Num4tbl num4tbl -#define Num5tbl num5tbl -#define Num6tbl num6tbl -#define Rigtadr(i) rigtadr[i] -#define Scncttbl(i, j) scncttbl[i][j] -#define Selsjadrs(i) selsjadrs[i] -#define Setjrec_func setjrec_func -#define Settou_ptr(i) settou_ptr[i] -#define Srchg_func srchg_func -#define Stbadr(i) stbadr[i] -#define Sttpri(i, j) sttpri[i][j] -#define Suuji_tbl suuji_tbl -#define Taipri(i, j) taipri[i][j] -#define Termtbl termtbl +#define Charsize charsize +#define Chrtbl chrtbl +#define Conjadr(i) conjadr[i] +#define Connadr connadr +#define Cvtnum_func cvtnum_func +#define Fzkadr(i) fzkadr[i] +#define Getkan_func getkan_func +#define Hiraknj_func hiraknj_func +#define Kigou kigou +#define Kurai1_tbl kurai1_tbl +#define Kurai2_tbl kurai2_tbl +#define Makekan_func makekan_func +#define Num1tbl num1tbl +#define Num2tbl num2tbl +#define Num3tbl num3tbl +#define Num4tbl num4tbl +#define Num5tbl num5tbl +#define Num6tbl num6tbl +#define Rigtadr(i) rigtadr[i] +#define Scncttbl(i, j) scncttbl[i][j] +#define Selsjadrs(i) selsjadrs[i] +#define Setjrec_func setjrec_func +#define Settou_ptr(i) settou_ptr[i] +#define Srchg_func srchg_func +#define Stbadr(i) stbadr[i] +#define Sttpri(i, j) sttpri[i][j] +#define Suuji_tbl suuji_tbl +#define Taipri(i, j) taipri[i][j] +#define Termtbl termtbl #endif diff --git a/include/sj3core/sj_typedef.h b/include/sj3core/sj_typedef.h index 54c327d..ad02c19 100644 --- a/include/sj3core/sj_typedef.h +++ b/include/sj3core/sj_typedef.h @@ -1,6 +1,6 @@ /* * Copyright (c) 1991-1994 Sony Corporation - * + * * Permission is hereby granted, free of charge, to any person obtaining * a copy of this software and associated documentation files (the * "Software"), to deal in the Software without restriction, including @@ -8,10 +8,10 @@ * distribute, sublicense, and/or sell copies of the Software, and to * permit persons to whom the Software is furnished to do so, subject to * the following conditions: - * + * * The above copyright notice and this permission notice shall be * included in all copies or substantial portions of the Software. - * + * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. @@ -19,7 +19,7 @@ * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR * THE USE OR OTHER DEALINGS IN THE SOFTWARE. - * + * * Except as contained in this notice, the name of Sony Corporation * shall not be used in advertising or otherwise to promote the sale, use * or other dealings in this Software without prior written authorization @@ -28,40 +28,37 @@ */ /* - * $SonyRCSfile: sj_typedef.h,v $ - * $SonyRevision: 1.1 $ + * $SonyRCSfile: sj_typedef.h,v $ + * $SonyRevision: 1.1 $ * $SonyDate: 1994/06/03 08:01:22 $ */ -#ifndef _SJ_TYPEDEF +#ifndef _SJ_TYPEDEF -#define _SJ_TYPEDEF +#define _SJ_TYPEDEF #include #include +#define RECURS -#define RECURS - -typedef unsigned char u_char; +typedef unsigned char u_char; typedef unsigned short u_short; -typedef unsigned int u_int; +typedef unsigned int u_int; +typedef void (*VFunc)(); +typedef u_char* (*UCPFunc)(); +typedef int (*IFunc)(); -typedef void (*VFunc)(); -typedef u_char *(*UCPFunc)(); -typedef int (*IFunc)(); - -typedef u_char TypeGroup; -typedef u_char TypeGram; -typedef u_short TypeIdxOfs; -typedef short TypeDicSeg; -typedef u_short TypeDicOfs; -typedef ino_t TypeDicID; -typedef u_char TypeCnct; -typedef short TypeStyNum; -typedef u_char TypeClass; -typedef u_char TypeBunNum; +typedef u_char TypeGroup; +typedef u_char TypeGram; +typedef u_short TypeIdxOfs; +typedef short TypeDicSeg; +typedef u_short TypeDicOfs; +typedef ino_t TypeDicID; +typedef u_char TypeCnct; +typedef short TypeStyNum; +typedef u_char TypeClass; +typedef u_char TypeBunNum; #endif - diff --git a/include/sj3core/sj_var.h b/include/sj3core/sj_var.h index 51b9927..51608f7 100644 --- a/include/sj3core/sj_var.h +++ b/include/sj3core/sj_var.h @@ -1,6 +1,6 @@ /* * Copyright (c) 1991-1994 Sony Corporation - * + * * Permission is hereby granted, free of charge, to any person obtaining * a copy of this software and associated documentation files (the * "Software"), to deal in the Software without restriction, including @@ -8,10 +8,10 @@ * distribute, sublicense, and/or sell copies of the Software, and to * permit persons to whom the Software is furnished to do so, subject to * the following conditions: - * + * * The above copyright notice and this permission notice shall be * included in all copies or substantial portions of the Software. - * + * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. @@ -19,7 +19,7 @@ * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR * THE USE OR OTHER DEALINGS IN THE SOFTWARE. - * + * * Except as contained in this notice, the name of Sony Corporation * shall not be used in advertising or otherwise to promote the sale, use * or other dealings in this Software without prior written authorization @@ -28,20 +28,20 @@ */ /* - * $SonyRCSfile: sj_var.h,v $ - * $SonyRevision: 1.1 $ + * $SonyRCSfile: sj_var.h,v $ + * $SonyRevision: 1.1 $ * $SonyDate: 1994/06/03 08:01:23 $ */ -#ifndef _SJ_VAR -#define _SJ_VAR +#ifndef _SJ_VAR +#define _SJ_VAR -#define MAXKOUHONUMBER 255 +#define MAXKOUHONUMBER 255 -#define MAXPHINPUTLEN 256 -#define MAXCLINPUTLEN 64 +#define MAXPHINPUTLEN 256 +#define MAXCLINPUTLEN 64 -#define MINCLOUTPUTLEN 512 -#define MINPHOUTPUTLEN 288 +#define MINCLOUTPUTLEN 512 +#define MINPHOUTPUTLEN 288 #endif diff --git a/include/sj3core/sj_yomi.h b/include/sj3core/sj_yomi.h index 79f507a..225c2c3 100644 --- a/include/sj3core/sj_yomi.h +++ b/include/sj3core/sj_yomi.h @@ -1,6 +1,6 @@ /* * Copyright (c) 1991-1994 Sony Corporation - * + * * Permission is hereby granted, free of charge, to any person obtaining * a copy of this software and associated documentation files (the * "Software"), to deal in the Software without restriction, including @@ -8,10 +8,10 @@ * distribute, sublicense, and/or sell copies of the Software, and to * permit persons to whom the Software is furnished to do so, subject to * the following conditions: - * + * * The above copyright notice and this permission notice shall be * included in all copies or substantial portions of the Software. - * + * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. @@ -19,7 +19,7 @@ * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR * THE USE OR OTHER DEALINGS IN THE SOFTWARE. - * + * * Except as contained in this notice, the name of Sony Corporation * shall not be used in advertising or otherwise to promote the sale, use * or other dealings in this Software without prior written authorization @@ -28,190 +28,186 @@ */ /* - * $SonyRCSfile: sj_yomi.h,v $ - * $SonyRevision: 1.1 $ + * $SonyRCSfile: sj_yomi.h,v $ + * $SonyRevision: 1.1 $ * $SonyDate: 1994/06/03 08:01:24 $ */ +#ifndef _SJ_YOMICODE +#define _SJ_YOMICODE +#define _TYOUON 0x01 +#define _IGETA 0x02 +#define _ATTO 0x03 +#define _YUUBIN 0x04 +#define N_0 0x10 +#define N_1 0x11 +#define N_2 0x12 +#define N_3 0x13 +#define N_4 0x14 +#define N_5 0x15 +#define N_6 0x16 +#define N_7 0x17 +#define N_8 0x18 +#define N_9 0x19 -#ifndef _SJ_YOMICODE +#define A_A 0x1A +#define A_B 0x1B +#define A_C 0x1C +#define A_D 0x1D +#define A_E 0x1E +#define A_F 0x1F +#define A_G 0x20 +#define A_H 0x21 +#define A_I 0x22 +#define A_J 0x23 +#define A_K 0x24 +#define A_L 0x25 +#define A_M 0x26 +#define A_N 0x27 +#define A_O 0x28 +#define A_P 0x29 +#define A_Q 0x2A +#define A_R 0x2B +#define A_S 0x2C +#define A_T 0x2D +#define A_U 0x2E +#define A_V 0x2F +#define A_W 0x30 +#define A_X 0x31 +#define A_Y 0x32 +#define A_Z 0x33 -#define _SJ_YOMICODE +#define A_a 0x34 +#define A_b 0x35 +#define A_c 0x36 +#define A_d 0x37 +#define A_e 0x38 +#define A_f 0x39 +#define A_g 0x3A +#define A_h 0x3B +#define A_i 0x3C +#define A_j 0x3D +#define A_k 0x3E +#define A_l 0x3F +#define A_m 0x40 +#define A_n 0x41 +#define A_o 0x42 +#define A_p 0x43 +#define A_q 0x44 +#define A_r 0x45 +#define A_s 0x46 +#define A_t 0x47 +#define A_u 0x48 +#define A_v 0x49 +#define A_w 0x4A +#define A_x 0x4B +#define A_y 0x4C +#define A_z 0x4D -#define _TYOUON 0x01 -#define _IGETA 0x02 -#define _ATTO 0x03 -#define _YUUBIN 0x04 +#define _XA 0x4E +#define _A 0x4F +#define _XI 0x50 +#define _I 0x51 +#define _XU 0x52 +#define _U 0x53 +#define _XE 0x54 +#define _E 0x55 +#define _XO 0x56 +#define _O 0x57 +#define _KA 0x58 +#define _GA 0x59 +#define _KI 0x5A +#define _GI 0x5B +#define _KU 0x5C +#define _GU 0x5D +#define _KE 0x5E +#define _GE 0x5F +#define _KO 0x60 +#define _GO 0x61 +#define _SA 0x62 +#define _ZA 0x63 +#define _SI 0x64 +#define _ZI 0x65 +#define _SU 0x66 +#define _ZU 0x67 +#define _SE 0x68 +#define _ZE 0x69 +#define _SO 0x6A +#define _ZO 0x6B +#define _TA 0x6C +#define _DA 0x6D +#define _TI 0x6E +#define _DI 0x6F +#define _XTU 0x70 +#define _TU 0x71 +#define _DU 0x72 +#define _TE 0x73 +#define _DE 0x74 +#define _TO 0x75 +#define _DO 0x76 +#define _NA 0x77 +#define _NI 0x78 +#define _NU 0x79 +#define _NE 0x7A +#define _NO 0x7B +#define _HA 0x7C +#define _BA 0x7D +#define _PA 0x7E +#define _HI 0x7F +#define _BI 0x80 +#define _PI 0x81 +#define _HU 0x82 +#define _BU 0x83 +#define _PU 0x84 +#define _HE 0x85 +#define _BE 0x86 +#define _PE 0x87 +#define _HO 0x88 +#define _BO 0x89 +#define _PO 0x8A +#define _MA 0x8B +#define _MI 0x8C +#define _MU 0x8D +#define _ME 0x8E +#define _MO 0x8F +#define _XYA 0x90 +#define _YA 0x91 +#define _XYU 0x92 +#define _YU 0x93 +#define _XYO 0x94 +#define _YO 0x95 +#define _RA 0x96 +#define _RI 0x97 +#define _RU 0x98 +#define _RE 0x99 +#define _RO 0x9A +#define _XWA 0x9B +#define _WA 0x9C +#define _WI 0x9D +#define _WE 0x9E +#define _WO 0x9F +#define _NN 0xA0 +#define _VU 0xA1 +#define _XKA 0xA2 +#define _XKE 0xA3 -#define N_0 0x10 -#define N_1 0x11 -#define N_2 0x12 -#define N_3 0x13 -#define N_4 0x14 -#define N_5 0x15 -#define N_6 0x16 -#define N_7 0x17 -#define N_8 0x18 -#define N_9 0x19 +#define Y_KUTEN 0xF2 +#define Y_TOUTEN 0xF3 +#define Y_COMMA 0xF4 +#define Y_PERIOD 0xF5 +#define Y_QUOTA 0xF6 +#define Y_BIKKURI 0xF7 +#define Y_S_KIGOU1 0xF8 +#define Y_S_KIGOU2 0xF9 +#define Y_L_KAKKO 0xFA +#define Y_R_KAKKO 0xFB +#define Y_KIGOU 0xFC +#define Y_HANKAKU 0xFD +#define Y_ZENKAKU 0xFE -#define A_A 0x1A -#define A_B 0x1B -#define A_C 0x1C -#define A_D 0x1D -#define A_E 0x1E -#define A_F 0x1F -#define A_G 0x20 -#define A_H 0x21 -#define A_I 0x22 -#define A_J 0x23 -#define A_K 0x24 -#define A_L 0x25 -#define A_M 0x26 -#define A_N 0x27 -#define A_O 0x28 -#define A_P 0x29 -#define A_Q 0x2A -#define A_R 0x2B -#define A_S 0x2C -#define A_T 0x2D -#define A_U 0x2E -#define A_V 0x2F -#define A_W 0x30 -#define A_X 0x31 -#define A_Y 0x32 -#define A_Z 0x33 - -#define A_a 0x34 -#define A_b 0x35 -#define A_c 0x36 -#define A_d 0x37 -#define A_e 0x38 -#define A_f 0x39 -#define A_g 0x3A -#define A_h 0x3B -#define A_i 0x3C -#define A_j 0x3D -#define A_k 0x3E -#define A_l 0x3F -#define A_m 0x40 -#define A_n 0x41 -#define A_o 0x42 -#define A_p 0x43 -#define A_q 0x44 -#define A_r 0x45 -#define A_s 0x46 -#define A_t 0x47 -#define A_u 0x48 -#define A_v 0x49 -#define A_w 0x4A -#define A_x 0x4B -#define A_y 0x4C -#define A_z 0x4D - -#define _XA 0x4E -#define _A 0x4F -#define _XI 0x50 -#define _I 0x51 -#define _XU 0x52 -#define _U 0x53 -#define _XE 0x54 -#define _E 0x55 -#define _XO 0x56 -#define _O 0x57 -#define _KA 0x58 -#define _GA 0x59 -#define _KI 0x5A -#define _GI 0x5B -#define _KU 0x5C -#define _GU 0x5D -#define _KE 0x5E -#define _GE 0x5F -#define _KO 0x60 -#define _GO 0x61 -#define _SA 0x62 -#define _ZA 0x63 -#define _SI 0x64 -#define _ZI 0x65 -#define _SU 0x66 -#define _ZU 0x67 -#define _SE 0x68 -#define _ZE 0x69 -#define _SO 0x6A -#define _ZO 0x6B -#define _TA 0x6C -#define _DA 0x6D -#define _TI 0x6E -#define _DI 0x6F -#define _XTU 0x70 -#define _TU 0x71 -#define _DU 0x72 -#define _TE 0x73 -#define _DE 0x74 -#define _TO 0x75 -#define _DO 0x76 -#define _NA 0x77 -#define _NI 0x78 -#define _NU 0x79 -#define _NE 0x7A -#define _NO 0x7B -#define _HA 0x7C -#define _BA 0x7D -#define _PA 0x7E -#define _HI 0x7F -#define _BI 0x80 -#define _PI 0x81 -#define _HU 0x82 -#define _BU 0x83 -#define _PU 0x84 -#define _HE 0x85 -#define _BE 0x86 -#define _PE 0x87 -#define _HO 0x88 -#define _BO 0x89 -#define _PO 0x8A -#define _MA 0x8B -#define _MI 0x8C -#define _MU 0x8D -#define _ME 0x8E -#define _MO 0x8F -#define _XYA 0x90 -#define _YA 0x91 -#define _XYU 0x92 -#define _YU 0x93 -#define _XYO 0x94 -#define _YO 0x95 -#define _RA 0x96 -#define _RI 0x97 -#define _RU 0x98 -#define _RE 0x99 -#define _RO 0x9A -#define _XWA 0x9B -#define _WA 0x9C -#define _WI 0x9D -#define _WE 0x9E -#define _WO 0x9F -#define _NN 0xA0 -#define _VU 0xA1 -#define _XKA 0xA2 -#define _XKE 0xA3 - -#define Y_KUTEN 0xF2 -#define Y_TOUTEN 0xF3 -#define Y_COMMA 0xF4 -#define Y_PERIOD 0xF5 -#define Y_QUOTA 0xF6 -#define Y_BIKKURI 0xF7 -#define Y_S_KIGOU1 0xF8 -#define Y_S_KIGOU2 0xF9 -#define Y_L_KAKKO 0xFA -#define Y_R_KAKKO 0xFB -#define Y_KIGOU 0xFC -#define Y_HANKAKU 0xFD -#define Y_ZENKAKU 0xFE - -#define _NIL 0 +#define _NIL 0 #endif diff --git a/include/sj3rkcv/kana.h b/include/sj3rkcv/kana.h index 2017501..9246feb 100644 --- a/include/sj3rkcv/kana.h +++ b/include/sj3rkcv/kana.h @@ -1,6 +1,6 @@ /* * Copyright (c) 1994 Sony Corporation - * + * * Permission is hereby granted, free of charge, to any person obtaining * a copy of this software and associated documentation files (the * "Software"), to deal in the Software without restriction, including @@ -8,10 +8,10 @@ * distribute, sublicense, and/or sell copies of the Software, and to * permit persons to whom the Software is furnished to do so, subject to * the following conditions: - * + * * The above copyright notice and this permission notice shall be * included in all copies or substantial portions of the Software. - * + * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. @@ -19,7 +19,7 @@ * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR * THE USE OR OTHER DEALINGS IN THE SOFTWARE. - * + * * Except as contained in this notice, the name of Sony Corporation * shall not be used in advertising or otherwise to promote the sale, use * or other dealings in this Software without prior written authorization @@ -28,65 +28,60 @@ */ /* - * $SonyRCSfile: kana.h,v $ - * $SonyRevision: 1.1 $ + * $SonyRCSfile: kana.h,v $ + * $SonyRevision: 1.1 $ * $SonyDate: 1994/06/03 08:03:45 $ */ +#define ZKATA1 0xa5 +#define ZHIRA1 0xa4 +#define ZKATAF2 0xa1 +#define ZKATAE2 0xf6 +#define ZHIRAF2 0xa1 +#define ZHIRAE2 0xf3 +#define ZKATAMU 0xe0 +#define ZHIRAMU 0xe0 +#define ZKATAn (ZKATAE2 - ZKATAF2 + 1) +#define ZEN_SPACE 0xa1a1 +#define ZEN_KTEN 0xa1a3 +#define ZEN_FKAKKO 0xa1d6 +#define ZEN_EKAKKO 0xa1d7 +#define ZEN_TTEN 0xa1a2 +#define ZEN_CTEN 0xa1a6 +#define ZEN_CHOUON 0xa1bc +#define ZEN_DTEN 0xa1ab +#define ZEN_HDTEN 0xa1ac +#define ZEN_VU 0xa5f4 -#define ZKATA1 0xa5 -#define ZHIRA1 0xa4 -#define ZKATAF2 0xa1 -#define ZKATAE2 0xf6 -#define ZHIRAF2 0xa1 -#define ZHIRAE2 0xf3 -#define ZKATAMU 0xe0 -#define ZHIRAMU 0xe0 +#define KANA_KTEN 0xa1 +#define KANA_FKAKKO 0xa2 +#define KANA_EKAKKO 0xa3 +#define KANA_TTEN 0xa4 +#define KANA_CTEN 0xa5 +#define KANA_CHOUON 0xb0 +#define KANA_DTEN 0xde +#define KANA_HDTEN 0xdf -#define ZKATAn (ZKATAE2-ZKATAF2+1) - +#define KANA_XA 0xa7 +#define KANA_XYA 0xac +#define KANA_XTSU 0xaf +#define KANA_A 0xb1 +#define KANA_KA 0xb6 +#define KANA_SA 0xbb +#define KANA_TA 0xc0 +#define KANA_NA 0xc5 +#define KANA_HA 0xca +#define KANA_MA 0xcf +#define KANA_YA 0xd4 +#define KANA_RA 0xd7 +#define KANA_WA 0xdc +#define KANA_WO 0xa6 -#define ZEN_SPACE 0xa1a1 -#define ZEN_KTEN 0xa1a3 -#define ZEN_FKAKKO 0xa1d6 -#define ZEN_EKAKKO 0xa1d7 -#define ZEN_TTEN 0xa1a2 -#define ZEN_CTEN 0xa1a6 -#define ZEN_CHOUON 0xa1bc -#define ZEN_DTEN 0xa1ab -#define ZEN_HDTEN 0xa1ac -#define ZEN_VU 0xa5f4 - -#define KANA_KTEN 0xa1 -#define KANA_FKAKKO 0xa2 -#define KANA_EKAKKO 0xa3 -#define KANA_TTEN 0xa4 -#define KANA_CTEN 0xa5 -#define KANA_CHOUON 0xb0 -#define KANA_DTEN 0xde -#define KANA_HDTEN 0xdf - -#define KANA_XA 0xa7 -#define KANA_XYA 0xac -#define KANA_XTSU 0xaf - -#define KANA_A 0xb1 -#define KANA_KA 0xb6 -#define KANA_SA 0xbb -#define KANA_TA 0xc0 -#define KANA_NA 0xc5 -#define KANA_HA 0xca -#define KANA_MA 0xcf -#define KANA_YA 0xd4 -#define KANA_RA 0xd7 -#define KANA_WA 0xdc -#define KANA_WO 0xa6 - -#define KANA_GA (KANA_KA << 8) + KANA_DTEN -#define KANA_ZA (KANA_SA << 8) + KANA_DTEN -#define KANA_DA (KANA_TA << 8) + KANA_DTEN -#define KANA_BA (KANA_HA << 8) + KANA_DTEN -#define KANA_PA (KANA_HA << 8) + KANA_HDTEN +#define KANA_GA (KANA_KA << 8) + KANA_DTEN +#define KANA_ZA (KANA_SA << 8) + KANA_DTEN +#define KANA_DA (KANA_TA << 8) + KANA_DTEN +#define KANA_BA (KANA_HA << 8) + KANA_DTEN +#define KANA_PA (KANA_HA << 8) + KANA_HDTEN diff --git a/include/sj3rkcv/kctype.h b/include/sj3rkcv/kctype.h index e1940a7..846c1f7 100644 --- a/include/sj3rkcv/kctype.h +++ b/include/sj3rkcv/kctype.h @@ -1,6 +1,6 @@ /* * Copyright (c) 1994 Sony Corporation - * + * * Permission is hereby granted, free of charge, to any person obtaining * a copy of this software and associated documentation files (the * "Software"), to deal in the Software without restriction, including @@ -8,10 +8,10 @@ * distribute, sublicense, and/or sell copies of the Software, and to * permit persons to whom the Software is furnished to do so, subject to * the following conditions: - * + * * The above copyright notice and this permission notice shall be * included in all copies or substantial portions of the Software. - * + * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. @@ -19,7 +19,7 @@ * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR * THE USE OR OTHER DEALINGS IN THE SOFTWARE. - * + * * Except as contained in this notice, the name of Sony Corporation * shall not be used in advertising or otherwise to promote the sale, use * or other dealings in this Software without prior written authorization @@ -28,40 +28,38 @@ */ /* - * $SonyRCSfile: kctype.h,v $ - * $SonyRevision: 1.1 $ + * $SonyRCSfile: kctype.h,v $ + * $SonyRevision: 1.1 $ * $SonyDate: 1994/06/03 08:03:46 $ */ - - #if !defined(__sony_news) || (defined(__sony_news) && !defined(SVR4)) #ifndef __KCTYPE #define __KCTYPE -#define sjis2euc sj3_sjis2euc -#define jis2sjis sj3_jis2sjis -#define euctosjis sj3_euctosjis -#define sjis2jis sj3_sjis2jis -#define euc2sjis sj3_euc2sjis -#define jis2euc sj3_jis2euc -#define sjistoeuc sj3_sjistoeuc +#define sjis2euc sj3_sjis2euc +#define jis2sjis sj3_jis2sjis +#define euctosjis sj3_euctosjis +#define sjis2jis sj3_sjis2jis +#define euc2sjis sj3_euc2sjis +#define jis2euc sj3_jis2euc +#define sjistoeuc sj3_sjistoeuc #ifdef issjis1 #undef issjis1 #endif -#define issjis1(c) (((0x81 <= (c)) && ((c) <= 0x9f)) || \ - ((0xe0 <= (c)) && ((c) <= 0xfc))) +#define issjis1(c) (((0x81 <= (c)) && ((c) <= 0x9f)) || \ + ((0xe0 <= (c)) && ((c) <= 0xfc))) #ifdef issjis2 #undef issjis2 #endif -#define issjis2(c) (((0x40 <= (c)) && ((c) <= 0xfc)) && ((c) != 0x7f)) +#define issjis2(c) (((0x40 <= (c)) && ((c) <= 0xfc)) && ((c) != 0x7f)) #ifdef iseuc #undef iseuc #endif -#define iseuc(c) ((0xa1 <= (c)) && ((c) <= 0xfe)) +#define iseuc(c) ((0xa1 <= (c)) && ((c) <= 0xfe)) #ifdef iseuckana #undef iseuckana @@ -71,22 +69,22 @@ #ifdef iskana2 #undef iskana2 #endif -#define iskana2(c) ((0xa1 <= (c)) && ((c) <= 0xdf)) +#define iskana2(c) ((0xa1 <= (c)) && ((c) <= 0xdf)) #ifdef jiszen #undef jiszen #endif -#define jiszen(c) (issjis1(((c) >> 8) & 0xff) && issjis2((c) & 0xff)) +#define jiszen(c) (issjis1(((c) >> 8) & 0xff) && issjis2((c) & 0xff)) #ifdef isjjis #undef isjjis #endif -#define isjjis(c) ((0x21 <= (c)) && ((c) <= 0x7e)) +#define isjjis(c) ((0x21 <= (c)) && ((c) <= 0x7e)) #ifdef jstrlen #undef jstrlen #endif -#define jstrlen(s) euclen(s, 65535) +#define jstrlen(s) euclen(s, 65535) #ifdef iseuc3byte #undef iseuc3byte @@ -101,15 +99,14 @@ #ifdef iskanji #undef iskanji #endif -#define iskanji issjis1 +#define iskanji issjis1 #ifdef iskanji2 #undef iskanji2 #endif -#define iskanji2 issjis2 +#define iskanji2 issjis2 #ifdef iskana #undef iskana #endif -#define iskana iskana2 +#define iskana iskana2 #endif #endif - diff --git a/include/sj3rkcv/key.h b/include/sj3rkcv/key.h index 192b805..0ee9636 100644 --- a/include/sj3rkcv/key.h +++ b/include/sj3rkcv/key.h @@ -1,6 +1,6 @@ /* * Copyright (c) 1994 Sony Corporation - * + * * Permission is hereby granted, free of charge, to any person obtaining * a copy of this software and associated documentation files (the * "Software"), to deal in the Software without restriction, including @@ -8,10 +8,10 @@ * distribute, sublicense, and/or sell copies of the Software, and to * permit persons to whom the Software is furnished to do so, subject to * the following conditions: - * + * * The above copyright notice and this permission notice shall be * included in all copies or substantial portions of the Software. - * + * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. @@ -19,7 +19,7 @@ * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR * THE USE OR OTHER DEALINGS IN THE SOFTWARE. - * + * * Except as contained in this notice, the name of Sony Corporation * shall not be used in advertising or otherwise to promote the sale, use * or other dealings in this Software without prior written authorization @@ -28,71 +28,64 @@ */ /* - * $SonyRCSfile: key.h,v $ - * $SonyRevision: 1.1 $ + * $SonyRCSfile: key.h,v $ + * $SonyRevision: 1.1 $ * $SonyDate: 1994/06/03 08:03:47 $ */ +#define KEY_NORMAL 0 +#define KEY_CONV 1 +#define KEY_HENKAN 2 +#define KEY_MUHENKAN 3 +#define KEY_KETTEI 4 +#define KEY_ZHIRA 5 +#define KEY_HALPHA 6 +#define KEY_ZALPHA 7 +#define KEY_HKATA 8 +#define KEY_ZKATA 9 +#define KEY_CODE 10 +#define KEY_ETC 11 +#define KEY_RIGHT 12 +#define KEY_LEFT 13 +#define KEY_UP 14 +#define KEY_DOWN 15 +#define KEY_TOGGLE 16 +#define KEY_EDIT 17 +#define KEY_WRAP 18 +#define KEY_WRAPBACK 19 +#define KEY_HELP 20 +#define KEY_TOROKU 21 +#define KEY_SYOUKYO 22 +#define KEY_SJRC 23 +#define KEY_HA_KET 24 +#define KEY_FLUSH 25 +#define KEY_BUFFER 26 +#define KEY_HANKAKU 27 +#define KEY_ZENKAKU 28 -#define KEY_NORMAL 0 -#define KEY_CONV 1 -#define KEY_HENKAN 2 -#define KEY_MUHENKAN 3 -#define KEY_KETTEI 4 -#define KEY_ZHIRA 5 -#define KEY_HALPHA 6 -#define KEY_ZALPHA 7 -#define KEY_HKATA 8 -#define KEY_ZKATA 9 -#define KEY_CODE 10 -#define KEY_ETC 11 -#define KEY_RIGHT 12 -#define KEY_LEFT 13 -#define KEY_UP 14 -#define KEY_DOWN 15 -#define KEY_TOGGLE 16 -#define KEY_EDIT 17 +#define KEY_HIRAGANA 29 +#define KEY_KATAKANA 30 +#define KEY_EISUU 31 +#define KEY_EIDAI 32 +#define KEY_ROMA 33 -#define KEY_WRAP 18 -#define KEY_WRAPBACK 19 -#define KEY_HELP 20 -#define KEY_TOROKU 21 -#define KEY_SYOUKYO 22 -#define KEY_SJRC 23 +#define KEY_CANCEL 34 +#define KEY_RECONV 35 -#define KEY_HA_KET 24 -#define KEY_FLUSH 25 -#define KEY_BUFFER 26 +#define KEY_IGNORE 36 +#define KEY_DEBUG 37 -#define KEY_HANKAKU 27 -#define KEY_ZENKAKU 28 +#define KEY_TOP 38 +#define KEY_END 39 +#define KEY_RECONNECT 40 +#define KEY_KILL 41 +#define KEY_OTHER 42 -#define KEY_HIRAGANA 29 -#define KEY_KATAKANA 30 -#define KEY_EISUU 31 -#define KEY_EIDAI 32 -#define KEY_ROMA 33 - -#define KEY_CANCEL 34 -#define KEY_RECONV 35 - -#define KEY_IGNORE 36 -#define KEY_DEBUG 37 - -#define KEY_TOP 38 -#define KEY_END 39 -#define KEY_RECONNECT 40 -#define KEY_KILL 41 -#define KEY_OTHER 42 - -#define KEY_MORE 43 - - - -#define UKEYNUM 64 -#define SEQLEN 8 -#define COMNUM 64 +#define KEY_MORE 43 +#define UKEYNUM 64 +#define SEQLEN 8 +#define COMNUM 64 diff --git a/include/sj3rkcv/rk.h b/include/sj3rkcv/rk.h index 3ac192a..af378c7 100644 --- a/include/sj3rkcv/rk.h +++ b/include/sj3rkcv/rk.h @@ -1,6 +1,6 @@ /* * Copyright (c) 1994 Sony Corporation - * + * * Permission is hereby granted, free of charge, to any person obtaining * a copy of this software and associated documentation files (the * "Software"), to deal in the Software without restriction, including @@ -8,10 +8,10 @@ * distribute, sublicense, and/or sell copies of the Software, and to * permit persons to whom the Software is furnished to do so, subject to * the following conditions: - * + * * The above copyright notice and this permission notice shall be * included in all copies or substantial portions of the Software. - * + * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. @@ -19,7 +19,7 @@ * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR * THE USE OR OTHER DEALINGS IN THE SOFTWARE. - * + * * Except as contained in this notice, the name of Sony Corporation * shall not be used in advertising or otherwise to promote the sale, use * or other dealings in this Software without prior written authorization @@ -28,8 +28,8 @@ */ /* - * $SonyRCSfile: rk.h,v $ - * $SonyRevision: 1.1 $ + * $SonyRCSfile: rk.h,v $ + * $SonyRevision: 1.1 $ * $SonyDate: 1994/06/03 08:03:48 $ */ @@ -39,47 +39,46 @@ #include #include "wchar16.h" -#define SPACE 0x20 -#define TAB 0x09 -#define EOL 0x0a -#define NSTR '\0' +#define SPACE 0x20 +#define TAB 0x09 +#define EOL 0x0a +#define NSTR '\0' #ifndef ESC -#define ESC 0x1b +#define ESC 0x1b #endif -#define QUOTA '\'' -#define BSL '\\' -#define MASK 0xff +#define QUOTA '\'' +#define BSL '\\' +#define MASK 0xff -#define MAXLEN 256 -#define MAXWLEN 16 -#define MAXLLEN 64 -#define MAXCODE 256 +#define MAXLEN 256 +#define MAXWLEN 16 +#define MAXLLEN 64 +#define MAXCODE 256 -#define CONTINUE 0 -#define NOMACH -1 -#define FAIL -1 -#define RKEND 0xffffffff -#define ERRBEL 0xfffffffc -#define ERRCODE 0x80000000 -#define RKMASK 0x0000ffff -#define RKZEN 0xff00 +#define CONTINUE 0 +#define NOMACH -1 +#define FAIL -1 +#define RKEND 0xffffffff +#define ERRBEL 0xfffffffc +#define ERRCODE 0x80000000 +#define RKMASK 0x0000ffff +#define RKZEN 0xff00 -#define SetMojilen(c) ((c << 16) & 0x00ff0000) -#define GetMojilen(c) ((c & ERRCODE) ? (1) : ((c >> 16) & 0xff)) +#define SetMojilen(c) ((c << 16) & 0x00ff0000) +#define GetMojilen(c) ((c & ERRCODE) ? (1) : ((c >> 16) & 0xff)) -typedef struct rktable_w16 { - wchar16_t *r_key; - u_short *k_yomi; - wchar16_t *r_str; - struct rktable_w16 *next; +typedef struct rktable_w16 { + wchar16_t* r_key; + u_short* k_yomi; + wchar16_t* r_str; + struct rktable_w16* next; } RkTablW16; -typedef struct rktable { - u_char *r_key; - u_short *k_yomi; - u_char *r_str; - struct rktable *next; +typedef struct rktable { + u_char* r_key; + u_short* k_yomi; + u_char* r_str; + struct rktable* next; } RkTabl; #endif /* RK_H */ - diff --git a/include/sj3rkcv/sj3rkcv.h b/include/sj3rkcv/sj3rkcv.h index e071d3f..e0cd383 100644 --- a/include/sj3rkcv/sj3rkcv.h +++ b/include/sj3rkcv/sj3rkcv.h @@ -20,108 +20,107 @@ #include "rk.h" /* rk_conv.c */ -#define RKSIZE 256 -#define RKINCZ 32 +#define RKSIZE 256 +#define RKINCZ 32 typedef struct rkbufrec { - RkTablW16 *rkbuf; - RkTablW16 *rkend; - struct rkbufrec *rkbufp; + RkTablW16* rkbuf; + RkTablW16* rkend; + struct rkbufrec* rkbufp; } RkbufRec; -#define STRSIZE 1024 -#define STRINCZ 256 +#define STRSIZE 1024 +#define STRINCZ 256 typedef struct strbufrec { - wchar16_t *strbuf; - wchar16_t *strend; - struct strbufrec *strbufp; + wchar16_t* strbuf; + wchar16_t* strend; + struct strbufrec* strbufp; } StrbufRec; -#define YMISIZE 512 -#define YMIINCZ 64 +#define YMISIZE 512 +#define YMIINCZ 64 typedef struct ymibufrec { - wchar16_t *ymibuf; - wchar16_t *ymiend; - struct ymibufrec *ymibufp; + wchar16_t* ymibuf; + wchar16_t* ymiend; + struct ymibufrec* ymibufp; } YmibufRec; -extern RkTabl *sj3_rcode[MAXCODE]; -extern RkTablW16 *sj3_rcode_w16[MAXCODE]; -extern RkTablW16 *rktblp; -extern wchar16_t rline[MAXLLEN]; -extern wchar16_t lstr[MAXLLEN]; +extern RkTabl* sj3_rcode[MAXCODE]; +extern RkTablW16* sj3_rcode_w16[MAXCODE]; +extern RkTablW16* rktblp; +extern wchar16_t rline[MAXLLEN]; +extern wchar16_t lstr[MAXLLEN]; -void sj3_rkcode(int); -int sj3_rkinit2(char *, int); -int rcode_sjis_init(); -int rcode_euc_init(); -int sj3_rkinit(char *); -int sj3_rkinit_euc(char *); -int sj3_rkinit_mb(char *); -int sj3_rkinit_sub(char *rkfile, int (*)()); -char *rkgetyomi(char *, wchar16_t *, int *); -char *getkey(char *, wchar16_t *, int *); -void cltable(); -int chk_rstr(wchar16_t *, wchar16_t *, int, int); -RkTablW16 *rkalloc(); -int stradd(wchar16_t **, wchar16_t *, int); -int kstradd(wchar16_t **, wchar16_t *, int); -RkTablW16 * mktable(wchar16_t *, int); -void sj3_rkebell(int); -void sj3_rkclear(); -void sj3_rkreset(); -void sj3_rkconvc(wchar16_t, u_int *); -int sj3_rkconv2(wchar16_t *, u_int *, int); -int sj3_rkconv(u_char *, u_char *); -int sj3_rkconv_euc(u_char *, u_char *); -int sj3_rkconv_mb(u_char *, u_char *); -int sj3_rkconv_w16(wchar16_t *, wchar16_t *); -int rkmatch(wchar16_t *, wchar16_t *, int); +void sj3_rkcode(int); +int sj3_rkinit2(char*, int); +int rcode_sjis_init(); +int rcode_euc_init(); +int sj3_rkinit(char*); +int sj3_rkinit_euc(char*); +int sj3_rkinit_mb(char*); +int sj3_rkinit_sub(char* rkfile, int (*)()); +char* rkgetyomi(char*, wchar16_t*, int*); +char* getkey(char*, wchar16_t*, int*); +void cltable(); +int chk_rstr(wchar16_t*, wchar16_t*, int, int); +RkTablW16* rkalloc(); +int stradd(wchar16_t**, wchar16_t*, int); +int kstradd(wchar16_t**, wchar16_t*, int); +RkTablW16* mktable(wchar16_t*, int); +void sj3_rkebell(int); +void sj3_rkclear(); +void sj3_rkreset(); +void sj3_rkconvc(wchar16_t, u_int*); +int sj3_rkconv2(wchar16_t*, u_int*, int); +int sj3_rkconv(u_char*, u_char*); +int sj3_rkconv_euc(u_char*, u_char*); +int sj3_rkconv_mb(u_char*, u_char*); +int sj3_rkconv_w16(wchar16_t*, wchar16_t*); +int rkmatch(wchar16_t*, wchar16_t*, int); /* sj3_rkcv.h */ #ifdef ADDHK void setl_hktozh(); #endif void mkkigou(); -int sj_addten(u_short, u_short); -int sj_han2zen(u_short); -int sj3_hantozen_euc(u_char *, u_char *); -int sj3_hantozen_mb(u_char *, u_char *); -int sj3_hantozen_w16(wchar16_t *, wchar16_t *); -int sj_hantozen(wchar16_t *, wchar16_t *, int); -int sj_zen2han(u_short); -int sj3_zentohan(u_char *, u_char *); -int sj3_zentohan_euc(u_char *, u_char *); -int sj3_zentohan_mb(u_char *, u_char *); -int sj3_zentohan_w16(wchar16_t *, wchar16_t *); -int sj_zentohan(wchar16_t *, wchar16_t *, int); -int sj_tokata(wchar16_t); -int sj_tohira(wchar16_t); -int sj_htok(wchar16_t *, wchar16_t *); -int sj_ktoh(wchar16_t *, wchar16_t *); +int sj_addten(u_short, u_short); +int sj_han2zen(u_short); +int sj3_hantozen_euc(u_char*, u_char*); +int sj3_hantozen_mb(u_char*, u_char*); +int sj3_hantozen_w16(wchar16_t*, wchar16_t*); +int sj_hantozen(wchar16_t*, wchar16_t*, int); +int sj_zen2han(u_short); +int sj3_zentohan(u_char*, u_char*); +int sj3_zentohan_euc(u_char*, u_char*); +int sj3_zentohan_mb(u_char*, u_char*); +int sj3_zentohan_w16(wchar16_t*, wchar16_t*); +int sj_zentohan(wchar16_t*, wchar16_t*, int); +int sj_tokata(wchar16_t); +int sj_tohira(wchar16_t); +int sj_htok(wchar16_t*, wchar16_t*); +int sj_ktoh(wchar16_t*, wchar16_t*); /* wc16_str.c */ -int sj3_iswcntrl16(wchar16_t); -int sj3_iswupper16(wchar16_t); -int sj3_iswdigit16(wchar16_t); -int sj3_iswxdigit16(wchar16_t); -int sj3_wslen16(wchar16_t *); -int sj3_wscmp16(wchar16_t *, wchar16_t *); -int sj3_wsncmp16(wchar16_t *, wchar16_t *, int); -wchar16_t *sj3_wscpy16(wchar16_t *, wchar16_t *); -wchar16_t *sj3_wsncpy16(wchar16_t *, wchar16_t *, int); -wchar16_t *sj3_wscat16(wchar16_t *, wchar16_t *); -wchar16_t sj3_euc2wc16(unsigned int); -wchar16_t sj3_sjis2wc16(unsigned int); +int sj3_iswcntrl16(wchar16_t); +int sj3_iswupper16(wchar16_t); +int sj3_iswdigit16(wchar16_t); +int sj3_iswxdigit16(wchar16_t); +int sj3_wslen16(wchar16_t*); +int sj3_wscmp16(wchar16_t*, wchar16_t*); +int sj3_wsncmp16(wchar16_t*, wchar16_t*, int); +wchar16_t* sj3_wscpy16(wchar16_t*, wchar16_t*); +wchar16_t* sj3_wsncpy16(wchar16_t*, wchar16_t*, int); +wchar16_t* sj3_wscat16(wchar16_t*, wchar16_t*); +wchar16_t sj3_euc2wc16(unsigned int); +wchar16_t sj3_sjis2wc16(unsigned int); unsigned int sj3_wc2euc16(wchar16_t); unsigned int sj3_wc2sjis16(wchar16_t); -int sj3_wcs2eucs16(unsigned char *, wchar16_t *, int); -int sj3_wcs2sjiss16(unsigned char *, wchar16_t *, int); -int sj3_eucs2wcs16(wchar16_t *, unsigned char *, int); -int sj3_sjiss2wcs16(wchar16_t *, unsigned char *, int); -int sj3_mbstowcs16(wchar16_t *, unsigned char *, int); -int sj3_wcstombs16(unsigned char *, unsigned char *, int); +int sj3_wcs2eucs16(unsigned char*, wchar16_t*, int); +int sj3_wcs2sjiss16(unsigned char*, wchar16_t*, int); +int sj3_eucs2wcs16(wchar16_t*, unsigned char*, int); +int sj3_sjiss2wcs16(wchar16_t*, unsigned char*, int); +int sj3_mbstowcs16(wchar16_t*, unsigned char*, int); +int sj3_wcstombs16(unsigned char*, unsigned char*, int); /* XXX */ extern int current_locale; #endif - diff --git a/include/sj3rkcv/wchar16.h b/include/sj3rkcv/wchar16.h index 5ad83e8..bd0c918 100644 --- a/include/sj3rkcv/wchar16.h +++ b/include/sj3rkcv/wchar16.h @@ -1,6 +1,6 @@ /* * Copyright (c) 1994 Sony Corporation - * + * * Permission is hereby granted, free of charge, to any person obtaining * a copy of this software and associated documentation files (the * "Software"), to deal in the Software without restriction, including @@ -8,10 +8,10 @@ * distribute, sublicense, and/or sell copies of the Software, and to * permit persons to whom the Software is furnished to do so, subject to * the following conditions: - * + * * The above copyright notice and this permission notice shall be * included in all copies or substantial portions of the Software. - * + * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. @@ -19,7 +19,7 @@ * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR * THE USE OR OTHER DEALINGS IN THE SOFTWARE. - * + * * Except as contained in this notice, the name of Sony Corporation * shall not be used in advertising or otherwise to promote the sale, use * or other dealings in this Software without prior written authorization @@ -28,29 +28,26 @@ */ /* - * $SonyRCSfile: wchar16.h,v $ - * $SonyRevision: 1.1 $ + * $SonyRCSfile: wchar16.h,v $ + * $SonyRevision: 1.1 $ * $SonyDate: 1994/06/03 08:03:52 $ */ - - #ifndef _WCHARH #define _WCHARH - #if defined(__sony_news) && defined(SVR4) #define _WCHAR_T -typedef unsigned short wchar_t; +typedef unsigned short wchar_t; #include #include #include #include -typedef wchar_t wchar16_t; +typedef wchar_t wchar16_t; #else #include #include -typedef unsigned short wchar16_t; +typedef unsigned short wchar16_t; #endif #include "key.h" @@ -64,61 +61,57 @@ typedef unsigned short wchar16_t; #ifdef iswcntrl #undef iswcntrl #endif -#define iswcntrl(wc) sj3_iswcntrl16(wc) +#define iswcntrl(wc) sj3_iswcntrl16(wc) #ifdef iswupper #undef iswupper #endif -#define iswupper(wc) sj3_iswupper16(wc) +#define iswupper(wc) sj3_iswupper16(wc) #ifdef iswdigit #undef iswdigit #endif -#define iswdigit(wc) sj3_iswdigit16(wc) +#define iswdigit(wc) sj3_iswdigit16(wc) #ifdef iswxdigit #undef iswxdigit #endif -#define iswxdigit(wc) sj3_iswxdigit16(wc) +#define iswxdigit(wc) sj3_iswxdigit16(wc) #ifdef wslen #undef wslen #endif -#define wslen(ws) sj3_wslen16(ws) +#define wslen(ws) sj3_wslen16(ws) #ifdef wscmp #undef wscmp #endif -#define wscmp(ws1, ws2) sj3_wscmp16(ws1, ws2) +#define wscmp(ws1, ws2) sj3_wscmp16(ws1, ws2) #ifdef wsncmp #undef wsncmp #endif -#define wsncmp(ws1, ws2, n) sj3_wsncmp16(ws1, ws2, n) -#ifdef wscpy +#define wsncmp(ws1, ws2, n) sj3_wsncmp16(ws1, ws2, n) +#ifdef wscpy #undef wscpy #endif -#define wscpy(ws1, ws2) sj3_wscpy16(ws1, ws2) +#define wscpy(ws1, ws2) sj3_wscpy16(ws1, ws2) #ifdef wsncpy #undef wsncpy #endif -#define wsncpy(ws1, ws2, n) sj3_wsncpy16(ws1, ws2, n) +#define wsncpy(ws1, ws2, n) sj3_wsncpy16(ws1, ws2, n) #ifdef wscat #undef wscat #endif -#define wscat(ws1, ws2) sj3_wscat16(ws1, ws2) +#define wscat(ws1, ws2) sj3_wscat16(ws1, ws2) #ifdef mbstowcs #undef mbstowcs #endif -#define mbstowcs(mb, ws, n) sj3_mbstowcs16(mb, ws, n) +#define mbstowcs(mb, ws, n) sj3_mbstowcs16(mb, ws, n) #ifdef wcstombs #undef wcstombs #endif -#define wcstombs(ws, mb, n) sj3_wcstombs16(ws, mb, n) +#define wcstombs(ws, mb, n) sj3_wcstombs16(ws, mb, n) #endif - #define LC_CTYPE_SHIFTJIS 1 #define LC_CTYPE_EUC 2 -#define IsEUCHojo(x) (((unsigned char) (x)) == SS3) - - - +#define IsEUCHojo(x) (((unsigned char)(x)) == SS3) #define WcX0208MASK 0xffff #define WcX0212MASK 0xff7f @@ -131,262 +124,240 @@ typedef unsigned short wchar16_t; #define WcX0212FLAG 0x8000 #define WcX0201FLAG 0x0080 -#define WcLowByte(w) ((w) & 0xff) +#define WcLowByte(w) ((w) & 0xff) #define WcHighByte(w) (((w) >> 8) & 0xff) -#define WcIsASCII(w) ((((wchar16_t) (w)) & WcX0208FLAG) == WcASCIIFLAG) -#define WcIsX0208(w) ((((wchar16_t) (w)) & WcX0208FLAG) == WcX0208FLAG) -#define WcIsX0201(w) ((((wchar16_t) (w)) & WcX0208FLAG) == WcX0201FLAG) -#define WcIsX0212(w) ((((wchar16_t) (w)) & WcX0208FLAG) == WcX0212FLAG) +#define WcIsASCII(w) ((((wchar16_t)(w)) & WcX0208FLAG) == WcASCIIFLAG) +#define WcIsX0208(w) ((((wchar16_t)(w)) & WcX0208FLAG) == WcX0208FLAG) +#define WcIsX0201(w) ((((wchar16_t)(w)) & WcX0208FLAG) == WcX0201FLAG) +#define WcIsX0212(w) ((((wchar16_t)(w)) & WcX0208FLAG) == WcX0212FLAG) -#define WcIsZENKAKU(w) ((((wchar16_t) (w)) & WcX0212FLAG) == WcX0212FLAG) -#define WcIsHANKAKU(w) ((((wchar16_t) (w)) & WcX0212FLAG) == WcASCIIFLAG) -#define WcIsKANJI(w) WcIsZENKAKU(w) -#define WcIsKANA(w) WcIsX0201(w) +#define WcIsZENKAKU(w) ((((wchar16_t)(w)) & WcX0212FLAG) == WcX0212FLAG) +#define WcIsHANKAKU(w) ((((wchar16_t)(w)) & WcX0212FLAG) == WcASCIIFLAG) +#define WcIsKANJI(w) WcIsZENKAKU(w) +#define WcIsKANA(w) WcIsX0201(w) #define WcSetX0212(c1, c2) ((((c1) & 0xff) << 8) + ((c2) & 0x7f)) -#define WcJIS2X0208(w) ((w) | WcX0208FLAG) -#define WcJIS2X0212(w) ((w) | WcX0212FLAG) -#define Wc2JIS(w) ((w) & WcJISMASK) +#define WcJIS2X0208(w) ((w) | WcX0208FLAG) +#define WcJIS2X0212(w) ((w) | WcX0212FLAG) +#define Wc2JIS(w) ((w) & WcJISMASK) +#define WCSJrun WcMessages[0] -#define WCSJrun WcMessages[0] +#define WCMode_buff WcMessages[1] +#define WCMode_unbuff WcMessages[2] -#define WCMode_buff WcMessages[1] -#define WCMode_unbuff WcMessages[2] +#define WCMode_Zhira WcMessages[3] +#define WCMode_Zkata WcMessages[4] +#define WCMode_Hkata WcMessages[5] +#define WCMode_Zalpha WcMessages[6] +#define WCMode_Halpha WcMessages[7] -#define WCMode_Zhira WcMessages[3] -#define WCMode_Zkata WcMessages[4] -#define WCMode_Hkata WcMessages[5] -#define WCMode_Zalpha WcMessages[6] -#define WCMode_Halpha WcMessages[7] +#define WCGmode WcMessages[8] +#define WCGEtc WcMessages[9] +#define WCGetc WcMessages[10] -#define WCGmode WcMessages[8] -#define WCGEtc WcMessages[9] -#define WCGetc WcMessages[10] +#define WCGHelp WcMessages[11] +#define WCMHelp WcMessages[12] -#define WCGHelp WcMessages[11] -#define WCMHelp WcMessages[12] +#define WCGCshift WcMessages[13] +#define WCGCeuc WcMessages[14] +#define WCGCeuc2 WcMessages[15] +#define WCGCjis WcMessages[16] +#define WCGCjis2 WcMessages[17] +#define WCGCkuten WcMessages[18] +#define WCGCkuten2 WcMessages[19] +#define WCGtoroku WcMessages[20] +#define WCMhani WcMessages[21] +#define WCMyomi WcMessages[22] +#define WCTOUROKU_OK WcMessages[23] +#define WCSYOUKYO_OK WcMessages[24] +#define WCTOUROKU_HIN WcMessages[25] +#define WCTOUROKU_SUCC WcMessages[26] +#define WCYomi WcMessages[27] +#define WCOne WcMessages[28] +#define WCY WcMessages[29] +#define WCExist WcMessages[30] +#define WCYomiTouroku WcMessages[31] +#define WCKanjiTouroku WcMessages[32] +#define WCOnajiTouroku WcMessages[33] +#define WCUserTouroku WcMessages[34] +#define WCJishoLock WcMessages[35] +#define WCSystemError WcMessages[36] +#define WCKanma WcMessages[37] +#define WCGsyoukyo WcMessages[38] +#define WCSYOUKYO_SUCC WcMessages[39] +#define WCNotExist WcMessages[40] +#define WCUserLock WcMessages[41] +#define WCYomiShokyo WcMessages[42] +#define WCKanjiShokyo WcMessages[43] +#define WCShokyoError WcMessages[44] -#define WCGCshift WcMessages[13] -#define WCGCeuc WcMessages[14] -#define WCGCeuc2 WcMessages[15] -#define WCGCjis WcMessages[16] -#define WCGCjis2 WcMessages[17] -#define WCGCkuten WcMessages[18] -#define WCGCkuten2 WcMessages[19] +#define WCSUCCsjrc WcMessages[45] +#define WCFAILsjrc WcMessages[46] +#define WCNOTHsjrc WcMessages[47] +#define WCWeight_mes WcMessages[48] +#define WCGrcon WcMessages[49] +#define WCRserv WcMessages[50] +#define WCRserv_OK WcMessages[51] +#define WCDiscon WcMessages[52] -#define WCGtoroku WcMessages[20] -#define WCMhani WcMessages[21] -#define WCMyomi WcMessages[22] -#define WCTOUROKU_OK WcMessages[23] -#define WCSYOUKYO_OK WcMessages[24] -#define WCTOUROKU_HIN WcMessages[25] -#define WCTOUROKU_SUCC WcMessages[26] -#define WCYomi WcMessages[27] -#define WCOne WcMessages[28] -#define WCY WcMessages[29] -#define WCExist WcMessages[30] -#define WCYomiTouroku WcMessages[31] -#define WCKanjiTouroku WcMessages[32] -#define WCOnajiTouroku WcMessages[33] -#define WCUserTouroku WcMessages[34] -#define WCJishoLock WcMessages[35] -#define WCSystemError WcMessages[36] -#define WCKanma WcMessages[37] +#define WCSpace WcMessages[53] +#define WCSpace2 WcMessages[54] +#define WCContinue WcMessages[55] +#define WCServer_Dead WcMessages[56] +#define WCConnected WcMessages[57] +#define WCNconnect WcMessages[58] +#define WCNopen_Mdic WcMessages[59] +#define WCNmake_Udir WcMessages[60] +#define WCNmake_Udic WcMessages[61] +#define WCNopen_Udic WcMessages[62] +#define WCNmake_Study WcMessages[63] +#define WCNopen_Study WcMessages[64] -#define WCGsyoukyo WcMessages[38] -#define WCSYOUKYO_SUCC WcMessages[39] -#define WCNotExist WcMessages[40] -#define WCUserLock WcMessages[41] -#define WCYomiShokyo WcMessages[42] -#define WCKanjiShokyo WcMessages[43] -#define WCShokyoError WcMessages[44] +#define WCGedit WcMessages[65] +#define WCTooLong WcMessages[67] +#define WCDollar WcMessages[68] +#define WCOn WcMessages[69] +#define WCOff WcMessages[70] -#define WCSUCCsjrc WcMessages[45] -#define WCFAILsjrc WcMessages[46] -#define WCNOTHsjrc WcMessages[47] +#define WCMeishi WcMessages[71] +#define WCMyouji WcMessages[72] +#define WCNamae WcMessages[73] +#define WCTimei WcMessages[74] +#define WCSahen WcMessages[75] +#define WCKara WcMessages[76] +#define WCF1 WcMessages[77] +#define WCF2 WcMessages[78] +#define WCF3 WcMessages[79] +#define WCF4 WcMessages[80] +#define WCF5 WcMessages[81] +#define WCF6 WcMessages[82] +#define WCF7 WcMessages[83] +#define WCF8 WcMessages[84] +#define WCF9 WcMessages[85] +#define WCF10 WcMessages[86] +#define WCF11 WcMessages[87] +#define WCF12 WcMessages[88] +#define WCF13 WcMessages[89] +#define WCF14 WcMessages[90] +#define WCF15 WcMessages[91] +#define WCF16 WcMessages[92] +#define WCF17 WcMessages[93] +#define WCF18 WcMessages[94] +#define WCF19 WcMessages[95] +#define WCF20 WcMessages[96] +#define WCSelect WcMessages[97] +#define WCKanji WcMessages[98] +#define WCCancel WcMessages[99] +#define WCExecute WcMessages[100] +#define WCUp WcMessages[101] +#define WCDown WcMessages[102] +#define WCRight WcMessages[103] +#define WCLeft WcMessages[104] -#define WCWeight_mes WcMessages[48] +#define WCStart WcMessages[105] +#define WCHenkan WcMessages[106] +#define WCMuhen WcMessages[107] +#define WCKettei WcMessages[108] +#define WCHira WcMessages[109] +#define WCHalpha WcMessages[110] +#define WCZalpha WcMessages[111] +#define WCHkata WcMessages[112] +#define WCZkata WcMessages[113] +#define WCCode WcMessages[114] +#define WCEtc WcMessages[115] +#define WCRightl WcMessages[116] +#define WCLeftl WcMessages[117] +#define WCKaku WcMessages[118] +#define WCSyuku WcMessages[119] +#define WCEdit WcMessages[120] +#define WCToggle WcMessages[121] +#define WCWrapback WcMessages[122] +#define WCWrap WcMessages[123] +#define WCSjrc WcMessages[124] +#define WCBuffer WcMessages[125] +#define WCToroku WcMessages[126] +#define WCSyoukyo WcMessages[127] +#define WCHelp WcMessages[128] +#define WCHaKettei WcMessages[129] +#define WCFlush WcMessages[130] +#define WCDebug WcMessages[131] +#define WCCancell WcMessages[132] +#define WCSaihenkan WcMessages[133] +#define WCIgnore WcMessages[134] +#define WCTop WcMessages[135] +#define WCEnd WcMessages[136] +#define WCReconnect WcMessages[137] +#define WCKill WcMessages[138] - - -#define WCGrcon WcMessages[49] -#define WCRserv WcMessages[50] -#define WCRserv_OK WcMessages[51] -#define WCDiscon WcMessages[52] - -#define WCSpace WcMessages[53] -#define WCSpace2 WcMessages[54] -#define WCContinue WcMessages[55] - - -#define WCServer_Dead WcMessages[56] -#define WCConnected WcMessages[57] -#define WCNconnect WcMessages[58] -#define WCNopen_Mdic WcMessages[59] -#define WCNmake_Udir WcMessages[60] -#define WCNmake_Udic WcMessages[61] -#define WCNopen_Udic WcMessages[62] -#define WCNmake_Study WcMessages[63] -#define WCNopen_Study WcMessages[64] - - - -#define WCGedit WcMessages[65] - - -#define WCTooLong WcMessages[67] -#define WCDollar WcMessages[68] - - -#define WCOn WcMessages[69] -#define WCOff WcMessages[70] - - -#define WCMeishi WcMessages[71] -#define WCMyouji WcMessages[72] -#define WCNamae WcMessages[73] -#define WCTimei WcMessages[74] -#define WCSahen WcMessages[75] - - -#define WCKara WcMessages[76] -#define WCF1 WcMessages[77] -#define WCF2 WcMessages[78] -#define WCF3 WcMessages[79] -#define WCF4 WcMessages[80] -#define WCF5 WcMessages[81] -#define WCF6 WcMessages[82] -#define WCF7 WcMessages[83] -#define WCF8 WcMessages[84] -#define WCF9 WcMessages[85] -#define WCF10 WcMessages[86] -#define WCF11 WcMessages[87] -#define WCF12 WcMessages[88] -#define WCF13 WcMessages[89] -#define WCF14 WcMessages[90] -#define WCF15 WcMessages[91] -#define WCF16 WcMessages[92] -#define WCF17 WcMessages[93] -#define WCF18 WcMessages[94] -#define WCF19 WcMessages[95] -#define WCF20 WcMessages[96] -#define WCSelect WcMessages[97] -#define WCKanji WcMessages[98] -#define WCCancel WcMessages[99] -#define WCExecute WcMessages[100] -#define WCUp WcMessages[101] -#define WCDown WcMessages[102] -#define WCRight WcMessages[103] -#define WCLeft WcMessages[104] - -#define WCStart WcMessages[105] -#define WCHenkan WcMessages[106] -#define WCMuhen WcMessages[107] -#define WCKettei WcMessages[108] -#define WCHira WcMessages[109] -#define WCHalpha WcMessages[110] -#define WCZalpha WcMessages[111] -#define WCHkata WcMessages[112] -#define WCZkata WcMessages[113] -#define WCCode WcMessages[114] -#define WCEtc WcMessages[115] -#define WCRightl WcMessages[116] -#define WCLeftl WcMessages[117] -#define WCKaku WcMessages[118] -#define WCSyuku WcMessages[119] -#define WCEdit WcMessages[120] -#define WCToggle WcMessages[121] -#define WCWrapback WcMessages[122] -#define WCWrap WcMessages[123] -#define WCSjrc WcMessages[124] -#define WCBuffer WcMessages[125] -#define WCToroku WcMessages[126] -#define WCSyoukyo WcMessages[127] -#define WCHelp WcMessages[128] -#define WCHaKettei WcMessages[129] -#define WCFlush WcMessages[130] -#define WCDebug WcMessages[131] -#define WCCancell WcMessages[132] -#define WCSaihenkan WcMessages[133] -#define WCIgnore WcMessages[134] -#define WCTop WcMessages[135] -#define WCEnd WcMessages[136] -#define WCReconnect WcMessages[137] -#define WCKill WcMessages[138] - - -#define WCKey WcMessages[139] -#define WCEscape WcMessages[140] -#define WCSjxkey WcMessages[141] -#define WCEtckey WcMessages[142] -#define WCIntr WcMessages[143] -#define WCBskey WcMessages[144] -#define WCDelkey WcMessages[145] -#define WCSetnormal WcMessages[146] -#define WCThroughnext WcMessages[147] -#define WCInitialmode WcMessages[148] -#define WCHelpmode WcMessages[149] -#define WCDefaultcode WcMessages[150] -#define WCMuhenkanmode WcMessages[151] -#define WCMuhenkaninedit WcMessages[152] -#define WCMuhenkantoggle WcMessages[153] -#define WCGuide WcMessages[154] -#define WCForkshell WcMessages[155] -#define WCExecshell WcMessages[156] -#define WCDictionary WcMessages[157] -#define WCUserdic WcMessages[158] -#define WCMaindic WcMessages[159] -#define WCRomaji WcMessages[160] -#define WCBstudy WcMessages[161] -#define WCSilent WcMessages[162] +#define WCKey WcMessages[139] +#define WCEscape WcMessages[140] +#define WCSjxkey WcMessages[141] +#define WCEtckey WcMessages[142] +#define WCIntr WcMessages[143] +#define WCBskey WcMessages[144] +#define WCDelkey WcMessages[145] +#define WCSetnormal WcMessages[146] +#define WCThroughnext WcMessages[147] +#define WCInitialmode WcMessages[148] +#define WCHelpmode WcMessages[149] +#define WCDefaultcode WcMessages[150] +#define WCMuhenkanmode WcMessages[151] +#define WCMuhenkaninedit WcMessages[152] +#define WCMuhenkantoggle WcMessages[153] +#define WCGuide WcMessages[154] +#define WCForkshell WcMessages[155] +#define WCExecshell WcMessages[156] +#define WCDictionary WcMessages[157] +#define WCUserdic WcMessages[158] +#define WCMaindic WcMessages[159] +#define WCRomaji WcMessages[160] +#define WCBstudy WcMessages[161] +#define WCSilent WcMessages[162] #define WCFlushafterconversion WcMessages[163] -#define WCRkerrbell WcMessages[164] -#define WCServer WcMessages[165] +#define WCRkerrbell WcMessages[164] +#define WCServer WcMessages[165] -#define WCShiftjis WcMessages[166] -#define WCSjis WcMessages[167] -#define WCEuc WcMessages[168] -#define WCEuc2 WcMessages[169] -#define WCJis WcMessages[170] -#define WCJis2 WcMessages[171] -#define WCKuten WcMessages[172] -#define WCKuten2 WcMessages[173] +#define WCShiftjis WcMessages[166] +#define WCSjis WcMessages[167] +#define WCEuc WcMessages[168] +#define WCEuc2 WcMessages[169] +#define WCJis WcMessages[170] +#define WCJis2 WcMessages[171] +#define WCKuten WcMessages[172] +#define WCKuten2 WcMessages[173] -#define WCBuff WcMessages[174] -#define WCUnbuff WcMessages[175] -#define WCDirect WcMessages[176] +#define WCBuff WcMessages[174] +#define WCUnbuff WcMessages[175] +#define WCDirect WcMessages[176] -#define WCSj2 WcMessages[177] -#define WCShift WcMessages[178] +#define WCSj2 WcMessages[177] +#define WCShift WcMessages[178] -#define WCFunction WcMessages[179] +#define WCFunction WcMessages[179] -#define WCUnbuffer WcMessages[180] -#define WCFuncetc WcMessages[181] +#define WCUnbuffer WcMessages[180] +#define WCFuncetc WcMessages[181] -extern wchar16_t *WcMessages[]; +extern wchar16_t* WcMessages[]; - - -struct wcvtkey { - wchar16_t *key_word; - wchar16_t key_seq[SEQLEN]; +struct wcvtkey { + wchar16_t* key_word; + wchar16_t key_seq[SEQLEN]; }; - struct functbl { - wchar16_t *keyword; - int (*func)(); + wchar16_t* keyword; + int (*func)(); }; -#endif +#endif diff --git a/lib/sj3core/adddic.c b/lib/sj3core/adddic.c index 683e7a5..2a4d821 100644 --- a/lib/sj3core/adddic.c +++ b/lib/sj3core/adddic.c @@ -1,6 +1,6 @@ /* * Copyright (c) 1991-1994 Sony Corporation - * + * * Permission is hereby granted, free of charge, to any person obtaining * a copy of this software and associated documentation files (the * "Software"), to deal in the Software without restriction, including @@ -8,10 +8,10 @@ * distribute, sublicense, and/or sell copies of the Software, and to * permit persons to whom the Software is furnished to do so, subject to * the following conditions: - * + * * The above copyright notice and this permission notice shall be * included in all copies or substantial portions of the Software. - * + * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. @@ -19,7 +19,7 @@ * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR * THE USE OR OTHER DEALINGS IN THE SOFTWARE. - * + * * Except as contained in this notice, the name of Sony Corporation * shall not be used in advertising or otherwise to promote the sale, use * or other dealings in this Software without prior written authorization @@ -28,91 +28,86 @@ */ /* - * $SonyRCSfile: adddic.c,v $ - * $SonyRevision: 1.1 $ + * $SonyRCSfile: adddic.c,v $ + * $SonyRevision: 1.1 $ * $SonyDate: 1994/06/03 08:01:26 $ */ #include #include - #include "sj_euc.h" #include "sj_kcnv.h" #include "sj_kanakan.h" -static void sprt_seg(TypeDicSeg, TypeDicOfs); -static void apnd_uidx(TypeDicSeg, u_char *, int); -static int cal_nextym(u_char *); -static int usr_freelen(); -static u_int checkdict(u_char *, TypeGram); +static void sprt_seg(TypeDicSeg, TypeDicOfs); +static void apnd_uidx(TypeDicSeg, u_char*, int); +static int cal_nextym(u_char*); +static int usr_freelen(); +static u_int checkdict(u_char*, TypeGram); +u_int adddic(u_char* yomi, u_char* kanji, TypeGram hinsi) { + u_int err; + u_char yptr[MAXWDYOMILEN + 1]; + u_char kptr[MAXWDKANJILEN + 1]; + int klen; + TypeDicSeg segnum; + int saml; + TypeDicOfs dstofs; + TypeDicOfs douofs; + TypeDicOfs hnsofs; + TypeDicOfs knjofs; + TypeDicOfs nxtask; + TypeDicOfs newsiz; + TypeDicOfs oldsiz; + TypeDicOfs fresiz; + TypeIdxOfs freidx; + u_char* douptr; + u_char* dstptr; + TypeDicOfs pos; + u_char* p1; + int i; + int nlen, plen; + int size; + STDYIN* stdy; + STDYOUT stdydat; - -u_int -adddic(u_char *yomi, u_char *kanji, TypeGram hinsi) -{ - u_int err; - u_char yptr[MAXWDYOMILEN + 1]; - u_char kptr[MAXWDKANJILEN + 1]; - int klen; - TypeDicSeg segnum; - int saml; - TypeDicOfs dstofs; - TypeDicOfs douofs; - TypeDicOfs hnsofs; - TypeDicOfs knjofs; - TypeDicOfs nxtask; - TypeDicOfs newsiz; - TypeDicOfs oldsiz; - TypeDicOfs fresiz; - TypeIdxOfs freidx; - u_char *douptr; - u_char *dstptr; - TypeDicOfs pos; - u_char *p1; - int i; - int nlen, plen; - int size; - STDYIN *stdy; - STDYOUT stdydat; - - if (err = addel_arg(yomi, kanji, hinsi, yptr, sizeof(yptr))) + if(err = addel_arg(yomi, kanji, hinsi, yptr, sizeof(yptr))) return err; inputyomi = yomi; cnvstart = ystart = yptr; - cnvlen = sstrlen(yptr); + cnvlen = sstrlen(yptr); - if (err = checkdict(kanji, hinsi)) + if(err = checkdict(kanji, hinsi)) return err; - if (!curdict -> maxunit) + if(!curdict->maxunit) return AD_NOTUSERDICT; klen = cvtknj(yomi, kanji, kptr); - newsiz = DOUONBLKSIZENUMBER + cnvlen + (klen !=0 ? klen+1 : 0) + 2; + newsiz = DOUONBLKSIZENUMBER + cnvlen + (klen != 0 ? klen + 1 : 0) + 2; - if (newsiz > MAXDOUONBLK) + if(newsiz > MAXDOUONBLK) return AD_OVFLWDOUBLK; - if (newsiz > curdict->seglen) + if(newsiz > curdict->seglen) return AD_OVFLWDOUBLK; segnum = srchidx((TypeDicSeg)DICSEGBASE, cnvlen); - for ( ; ; ) { + for(;;) { (*curdict->getdic)(curdict, segnum); - i = srchkana(&p1, &saml); + i = srchkana(&p1, &saml); dstofs = douofs = p1 - dicbuf; hnsofs = knjofs = 0; - if (i) { - i = srchgram(p1, &p1, hinsi); + if(i) { + i = srchgram(p1, &p1, hinsi); dstofs = hnsofs = p1 - dicbuf; - if (i) { + if(i) { srchkanji(&p1, kptr, klen); - if (*p1 != HINSIBLKTERM) + if(*p1 != HINSIBLKTERM) return AD_AREXIST; dstofs = knjofs = p1 - dicbuf; } @@ -120,46 +115,45 @@ adddic(u_char *yomi, u_char *kanji, TypeGram hinsi) p1 = dicbuf + douofs; - if (!hnsofs) { + if(!hnsofs) { oldsiz = 0; - nlen = cnvlen - saml; - newsiz = DOUONBLKSIZENUMBER + nlen; + nlen = cnvlen - saml; + newsiz = DOUONBLKSIZENUMBER + nlen; nxtask = cal_nextym(p1); - } - else { + } else { oldsiz = newsiz = getsize(p1); - nxtask = 0; + nxtask = 0; } - if (!knjofs) newsiz += 2; + if(!knjofs) newsiz += 2; - newsiz += (klen != 0 ? klen+1 : 0); + newsiz += (klen != 0 ? klen + 1 : 0); fresiz = usr_freelen(); - if ((unsigned int) (newsiz - oldsiz - nxtask) <= - (unsigned int) fresiz) break; + if((unsigned int)(newsiz - oldsiz - nxtask) <= + (unsigned int)fresiz) break; - if (segend(p1) && (segnum + 1 < curdict->segunit)) { + if(segend(p1) && (segnum + 1 < curdict->segunit)) { segnum++; continue; } - if (curdict->segunit >= curdict->maxunit) + if(curdict->segunit >= curdict->maxunit) return AD_OVFLWUSRDIC; freidx = count_uidx(); - if ((unsigned int) (douofs + newsiz) <= curdict->seglen) { - if (hnsofs) + if((unsigned int)(douofs + newsiz) <= curdict->seglen) { + if(hnsofs) p1 = getntag(p1); pos = p1 - dicbuf; nlen = getnlen(p1); - if ((unsigned int) freidx < getplen(p1) + nlen + 1) + if((unsigned int)freidx < getplen(p1) + nlen + 1) return AD_OVFLWINDEX; - if ((*curdict->putdic)(curdict, curdict->segunit)) + if((*curdict->putdic)(curdict, curdict->segunit)) return AD_OVFLWUSRDIC; sprt_seg(segnum, pos); @@ -168,11 +162,11 @@ adddic(u_char *yomi, u_char *kanji, TypeGram hinsi) break; } - if (segend(p1)) { - if ((unsigned int) freidx < cnvlen + 1) + if(segend(p1)) { + if((unsigned int)freidx < cnvlen + 1) return AD_OVFLWINDEX; - if ((*curdict->putdic)(curdict, curdict->segunit)) + if((*curdict->putdic)(curdict, curdict->segunit)) return AD_OVFLWUSRDIC; curdict->segunit++; @@ -184,13 +178,12 @@ adddic(u_char *yomi, u_char *kanji, TypeGram hinsi) mkidxtbl(curdict); segnum++; - } - else { + } else { nlen = getnlen(p1); - if ((unsigned int) freidx < getplen(p1) + nlen + 1) + if((unsigned int)freidx < getplen(p1) + nlen + 1) return AD_OVFLWINDEX; - if ((*curdict->putdic)(curdict, curdict->segunit)) + if((*curdict->putdic)(curdict, curdict->segunit)) return AD_OVFLWUSRDIC; sprt_seg(segnum, douofs); @@ -201,16 +194,16 @@ adddic(u_char *yomi, u_char *kanji, TypeGram hinsi) douptr = dicbuf + douofs; - if (nxtask) { - u_char *tp; + if(nxtask) { + u_char* tp; - size = getsize(douptr) - nxtask; - plen = getplen(douptr) + nxtask; - nlen = getnlen(douptr) - nxtask; + size = getsize(douptr) - nxtask; + plen = getplen(douptr) + nxtask; + nlen = getnlen(douptr) - nxtask; *douptr = (size >> 8); - if (nlen & 0x10) + if(nlen & 0x10) *douptr |= NOKORIYOMITOP; - if (plen & 0x10) + if(plen & 0x10) *douptr |= ASSYUKUYOMITOP; *(douptr + 1) = size; *(douptr + 2) = ((nlen & 0x0f) | ((plen & 0x0f) << 4)); @@ -221,128 +214,124 @@ adddic(u_char *yomi, u_char *kanji, TypeGram hinsi) } dstptr = dicbuf + dstofs; - size = newsiz - oldsiz; - p1 = dicbuf + curdict->seglen; + size = newsiz - oldsiz; + p1 = dicbuf + curdict->seglen; mvmemd(p1 - size, p1, p1 - dstptr - size); - if (!hnsofs) { - if (douofs == segtop() - dicbuf) { + if(!hnsofs) { + if(douofs == segtop() - dicbuf) { chg_uidx(segnum, yptr, cnvlen); } - *dstptr = 0; - nlen = cnvlen - saml; - if (nlen & 0x10) + *dstptr = 0; + nlen = cnvlen - saml; + if(nlen & 0x10) *dstptr |= NOKORIYOMITOP; - if (saml & 0x10) + if(saml & 0x10) *dstptr |= ASSYUKUYOMITOP; *dstptr++ |= (size >> 8); - *dstptr++ = size; - *dstptr++ = ((nlen&0x0f)|((saml&0x0f)<<4)); + *dstptr++ = size; + *dstptr++ = ((nlen & 0x0f) | ((saml & 0x0f) << 4)); - while (saml < cnvlen) *dstptr++ = yptr[saml++]; - } - else { - plen = getplen(douptr); - nlen = getnlen(douptr); + while(saml < cnvlen) *dstptr++ = yptr[saml++]; + } else { + plen = getplen(douptr); + nlen = getnlen(douptr); *douptr = (newsiz >> 8); - if (nlen & 0x10) + if(nlen & 0x10) *douptr |= NOKORIYOMITOP; - if (plen & 0x10) + if(plen & 0x10) *douptr |= ASSYUKUYOMITOP; *(douptr + 1) = newsiz; *(douptr + 2) = ((nlen & 0x0f) | ((plen & 0x0f) << 4)); } - if (!knjofs) + if(!knjofs) *dstptr++ = hinsi; stdydat.stdy1.offset = dstptr - dicbuf; - for (saml = 0 ; saml < klen ; ) + for(saml = 0; saml < klen;) *dstptr++ = kptr[saml++]; - if (klen > 0) + if(klen > 0) *dstptr++ = KANJISTREND; - if (!knjofs) + if(!knjofs) *dstptr++ = HINSIBLKTERM; (*curdict->putdic)(curdict, segnum); - if (StudyExist()) { + if(StudyExist()) { size -= nxtask; - for (i = STUDYCOUNT, stdy = STUDYDICT ; i-- ; stdy++) { - if (stdy -> dicid != curdict->dicid) + for(i = STUDYCOUNT, stdy = STUDYDICT; i--; stdy++) { + if(stdy->dicid != curdict->dicid) continue; - if (stdy -> seg != segnum) + if(stdy->seg != segnum) continue; - if (stdy -> offset >= dstofs) - stdy -> offset += size; + if(stdy->offset >= dstofs) + stdy->offset += size; } - for (p1 = CLSTUDYDICT ; !iseocl(p1) ; p1 = ClNextTag(p1)) { - err = sstrncmp(yptr, (u_char *)ClYomiPos(p1), - (int)ClYomiLen(p1)); - if (err == MATCH) { + for(p1 = CLSTUDYDICT; !iseocl(p1); p1 = ClNextTag(p1)) { + err = sstrncmp(yptr, (u_char*)ClYomiPos(p1), + (int)ClYomiLen(p1)); + if(err == MATCH) { delclsub(p1); mkclidx(); putcldic(); break; - } else if (err == OVER) + } else if(err == OVER) break; } } - stdydat.stdy1.seg = segnum; - stdydat.stdy1.dicid = curdict->dicid; - stdydat.stdy1.styno = 0; - stdydat.stdy1.sttkj = 0; - stdydat.stdy1.ka_kj = 0; - stdydat.stdy1.nmflg = 0; - stdydat.hinshi = hinsi; - stdydat.len = cnvlen; - stdydat.sttlen = 0; - stdydat.sttfg = 0; - stdydat.ka_fg = 0; + stdydat.stdy1.seg = segnum; + stdydat.stdy1.dicid = curdict->dicid; + stdydat.stdy1.styno = 0; + stdydat.stdy1.sttkj = 0; + stdydat.stdy1.ka_kj = 0; + stdydat.stdy1.nmflg = 0; + stdydat.hinshi = hinsi; + stdydat.len = cnvlen; + stdydat.sttlen = 0; + stdydat.sttfg = 0; + stdydat.ka_fg = 0; (void)study(&stdydat); return AD_DONE; } - - static int -checksub(u_char *kanji, TypeGram grm) -{ - u_char *tagp; - u_char *ptr; - u_char *endp; +checksub(u_char* kanji, TypeGram grm) { + u_char* tagp; + u_char* ptr; + u_char* endp; int flg, nlen; int dounum; u_char buf[MAXWDKANJILEN + 1]; - dicinl = cnvlen; + dicinl = cnvlen; dicsaml = 0; prevseg = (TypeDicSeg)-1; - for (;;) { - if (!(tagp = srchdict(tagp))) + for(;;) { + if(!(tagp = srchdict(tagp))) return 0; - if (cnvlen == getnlen(tagp) + getplen(tagp)) + if(cnvlen == getnlen(tagp) + getplen(tagp)) break; } dounum = 0; nlen = getnlen(tagp); - ptr = tagp + DOUONBLKSIZENUMBER + nlen; + ptr = tagp + DOUONBLKSIZENUMBER + nlen; endp = tagp + getsize(tagp); - while (ptr < endp) { + while(ptr < endp) { flg = (grm == *ptr++); - while (*ptr != HINSIBLKTERM) { - if (flg) { + while(*ptr != HINSIBLKTERM) { + if(flg) { buf[getkanji(inputyomi, cnvlen, ptr, buf)] = 0; - if (cmpstr(kanji, buf)) + if(cmpstr(kanji, buf)) return -1; } dounum++; @@ -355,22 +344,19 @@ checksub(u_char *kanji, TypeGram grm) return dounum; } - - static u_int -checkdict(u_char *kanji, TypeGram grm) -{ - DICTL *dp; - int dounum = 0; - int tmp; - DICT *tmpdict; +checkdict(u_char* kanji, TypeGram grm) { + DICTL* dp; + int dounum = 0; + int tmp; + DICT* tmpdict; tmpdict = curdict; - for (dp = dictlist ; dp ; dp = dp -> next) { + for(dp = dictlist; dp; dp = dp->next) { - curdict = dp -> dict; + curdict = dp->dict; - if ((tmp = checksub(kanji, grm)) < 0) { + if((tmp = checksub(kanji, grm)) < 0) { curdict = tmpdict; return AD_AREXIST; } @@ -379,29 +365,26 @@ checkdict(u_char *kanji, TypeGram grm) } curdict = tmpdict; - if (MAXKOUHONUMBER <= dounum) + if(MAXKOUHONUMBER <= dounum) return AD_OVFLWDOUNUM; return 0; } - - static int -cal_nextym(u_char *ptr) -{ +cal_nextym(u_char* ptr) { int count = 0; - u_char *src; + u_char* src; int len; - if (!segend(ptr)) { + if(!segend(ptr)) { src = cnvstart + getplen(ptr); len = getnlen(ptr); ptr += DOUONBLKSIZENUMBER; - while (len--) { - if (*ptr++ == *src++) + while(len--) { + if(*ptr++ == *src++) count++; else break; @@ -410,37 +393,31 @@ cal_nextym(u_char *ptr) return count; } - - static int -usr_freelen() -{ - u_char *ptr; +usr_freelen() { + u_char* ptr; ptr = segtop(); - while (!segend(ptr)) + while(!segend(ptr)) ptr += getsize(ptr); return curdict->seglen - (ptr - dicbuf); } - - static void -sprt_seg(TypeDicSeg seg, TypeDicOfs ofs) -{ - TypeDicSeg s; - u_char *pos; - u_char *p; - u_char *q; - int i; - int j; - int ylen, nlen; - TypeDicID dicid; - u_char yomi[MAXWDYOMILEN]; - STDYIN *stdy; +sprt_seg(TypeDicSeg seg, TypeDicOfs ofs) { + TypeDicSeg s; + u_char* pos; + u_char* p; + u_char* q; + int i; + int j; + int ylen, nlen; + TypeDicID dicid; + u_char yomi[MAXWDYOMILEN]; + STDYIN* stdy; - for (s = curdict->segunit - 1 ; s >= seg ; s--) { + for(s = curdict->segunit - 1; s >= seg; s--) { (*curdict->getdic)(curdict, s); (*curdict->putdic)(curdict, s + 1); } @@ -451,22 +428,22 @@ sprt_seg(TypeDicSeg seg, TypeDicOfs ofs) pos = dicbuf + ofs; - for (p = segtop() ; (p <= pos) && !segend(p) ; p = q) { - q = getntag(p); - i = getplen(p); + for(p = segtop(); (p <= pos) && !segend(p); p = q) { + q = getntag(p); + i = getplen(p); nlen = getnlen(p); - j = (nlen != 0) ? nlen+1: 0; + j = (nlen != 0) ? nlen + 1 : 0; p += DOUONBLKSIZENUMBER; - while (j-- > 0) + while(j-- > 0) yomi[i++] = *p++; } nlen = getnlen(pos); - ylen = (i = getplen(pos)) + (j = nlen); + ylen = (i = getplen(pos)) + (j = nlen); apnd_uidx(seg, yomi, ylen); - set_size(segtop(), getsize(pos) + i, 0, ylen); + set_size(segtop(), getsize(pos) + i, 0, ylen); mvmemi(yomi, (p = segtop() + DOUONBLKSIZENUMBER), ylen); @@ -480,18 +457,18 @@ sprt_seg(TypeDicSeg seg, TypeDicOfs ofs) (*curdict->putdic)(curdict, seg + 1); - if (StudyExist()) { - dicid = curdict -> dicid; - for (i = STUDYCOUNT, stdy = STUDYDICT ; i-- > 0 ; stdy++) { - if (stdy -> dicid != dicid) + if(StudyExist()) { + dicid = curdict->dicid; + for(i = STUDYCOUNT, stdy = STUDYDICT; i-- > 0; stdy++) { + if(stdy->dicid != dicid) continue; - else if (stdy -> seg < seg) + else if(stdy->seg < seg) continue; - else if (stdy -> seg > seg) - stdy -> seg += 1; - else if (stdy -> offset >= ofs) { - stdy -> seg += 1; - stdy -> offset -= j; + else if(stdy->seg > seg) + stdy->seg += 1; + else if(stdy->offset >= ofs) { + stdy->seg += 1; + stdy->offset -= j; } } } @@ -501,22 +478,18 @@ sprt_seg(TypeDicSeg seg, TypeDicOfs ofs) (*curdict->putdic)(curdict, seg); } - - static void -apnd_uidx(TypeDicSeg seg, u_char *yomi, int len) -{ - u_char *p; - u_char *q; +apnd_uidx(TypeDicSeg seg, u_char* yomi, int len) { + u_char* p; + u_char* q; p = get_idxptr(seg); - while (*p++) - ; + while(*p++); q = idxbuf + curdict->idxlen; mvmemd(q - (len + 1), q, (int)(q - (len + 1) - p)); - while (len--) + while(len--) *p++ = *yomi++; *p = 0; diff --git a/lib/sj3core/addelcmn.c b/lib/sj3core/addelcmn.c index 58e8741..23f80a2 100644 --- a/lib/sj3core/addelcmn.c +++ b/lib/sj3core/addelcmn.c @@ -1,6 +1,6 @@ /* * Copyright (c) 1991-1994 Sony Corporation - * + * * Permission is hereby granted, free of charge, to any person obtaining * a copy of this software and associated documentation files (the * "Software"), to deal in the Software without restriction, including @@ -8,10 +8,10 @@ * distribute, sublicense, and/or sell copies of the Software, and to * permit persons to whom the Software is furnished to do so, subject to * the following conditions: - * + * * The above copyright notice and this permission notice shall be * included in all copies or substantial portions of the Software. - * + * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. @@ -19,7 +19,7 @@ * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR * THE USE OR OTHER DEALINGS IN THE SOFTWARE. - * + * * Except as contained in this notice, the name of Sony Corporation * shall not be used in advertising or otherwise to promote the sale, use * or other dealings in this Software without prior written authorization @@ -28,14 +28,11 @@ */ /* - * $SonyRCSfile: addelcmn.c,v $ - * $SonyRevision: 1.1 $ + * $SonyRCSfile: addelcmn.c,v $ + * $SonyRevision: 1.1 $ * $SonyDate: 1994/06/03 08:01:27 $ */ - - - #include "sj_euc.h" #include "sj_kcnv.h" #include "sj_hinsi.h" @@ -43,51 +40,44 @@ #include "sj_kanakan.h" - -void -set_size(u_char *p, int size, int plen, int nlen) -{ +void set_size(u_char* p, int size, int plen, int nlen) { *p = (u_char)(size >> 8); - if (nlen & 0x10) *p |= NOKORIYOMITOP; - if (plen & 0x10) *p |= ASSYUKUYOMITOP; + if(nlen & 0x10) *p |= NOKORIYOMITOP; + if(plen & 0x10) *p |= ASSYUKUYOMITOP; *(p + 1) = (u_char)size; *(p + 2) = (u_char)((nlen & 0x0f) | ((plen & 0x0f) << 4)); } static int -isvyomi(u_char *yp) -{ - int len; +isvyomi(u_char* yp) { + int len; - if (!*yp) return FALSE; + if(!*yp) return FALSE; - if (!(Chrtbl[*yp] & DICTOP)) return FALSE; + if(!(Chrtbl[*yp] & DICTOP)) return FALSE; - for (len = 0 ; *yp ; yp++) { - if (!(Chrtbl[*yp]) || (*yp >= Y_KUTEN)) return FALSE; + for(len = 0; *yp; yp++) { + if(!(Chrtbl[*yp]) || (*yp >= Y_KUTEN)) return FALSE; - if (++len > MAXWDYOMILEN) return FALSE; + if(++len > MAXWDYOMILEN) return FALSE; } return TRUE; } - - static int -isvknj(u_char *kanji) -{ - int len; +isvknj(u_char* kanji) { + int len; - if (!*kanji) return FALSE; + if(!*kanji) return FALSE; - for (len = 0 ; *kanji ; ) { - if (*kanji == SS3) { + for(len = 0; *kanji;) { + if(*kanji == SS3) { kanji += 3; len += 2; } else - if (isknj1(*kanji)) { + if(isknj1(*kanji)) { kanji += 2; len += 2; } @@ -97,64 +87,54 @@ isvknj(u_char *kanji) len += 2; } - if (len > MAXWDKANJILEN) return FALSE; + if(len > MAXWDKANJILEN) return FALSE; } return TRUE; } - - static int -isgrm(TypeGram gram) -{ - int grm = gram; +isgrm(TypeGram gram) { + int grm = gram; - if (MEISI_1 <= grm && grm <= D_MEISI_6) return TRUE; - if (MYOUJI <= grm && grm <= JOSUUSI2) return TRUE; - if (KEIYOUSI_1 <= grm && grm <= DO_ZAHEN) return TRUE; - if (DO_1DAN_1 <= grm && grm <= DO_WAGO_2) return TRUE; - if (DO_KAGO_5 <= grm && grm <= DO_WAGO_5) return TRUE; - if (DO_KAGO_6 <= grm && grm <= DO_WAGO_6) return TRUE; - if (DO_1DAN_3 <= grm && grm <= DO_WAGO_3) return TRUE; - if (DO_1DAN_4 <= grm && grm <= DO_WAGO_4) return TRUE; - if (DO_KAGO_7 <= grm && grm <= DO_WAGO_7) return TRUE; - if (DO_KAGO_8 <= grm && grm <= DO_WAGO_8) return TRUE; - if (SP_SA_MI1 <= grm && grm <= TANKANJI) return TRUE; + if(MEISI_1 <= grm && grm <= D_MEISI_6) return TRUE; + if(MYOUJI <= grm && grm <= JOSUUSI2) return TRUE; + if(KEIYOUSI_1 <= grm && grm <= DO_ZAHEN) return TRUE; + if(DO_1DAN_1 <= grm && grm <= DO_WAGO_2) return TRUE; + if(DO_KAGO_5 <= grm && grm <= DO_WAGO_5) return TRUE; + if(DO_KAGO_6 <= grm && grm <= DO_WAGO_6) return TRUE; + if(DO_1DAN_3 <= grm && grm <= DO_WAGO_3) return TRUE; + if(DO_1DAN_4 <= grm && grm <= DO_WAGO_4) return TRUE; + if(DO_KAGO_7 <= grm && grm <= DO_WAGO_7) return TRUE; + if(DO_KAGO_8 <= grm && grm <= DO_WAGO_8) return TRUE; + if(SP_SA_MI1 <= grm && grm <= TANKANJI) return TRUE; return FALSE; } +u_int addel_arg(u_char* yp, u_char* kp, TypeGram grm, u_char* nyp, int len) { + u_short err = 0; + if(!sj2cd_str(yp, nyp, len)) err |= AD_BADYOMI; -u_int -addel_arg(u_char *yp, u_char *kp, TypeGram grm, u_char *nyp, int len) -{ - u_short err = 0; + if(!isvyomi(nyp)) err |= AD_BADYOMI; - if (!sj2cd_str(yp, nyp, len)) err |= AD_BADYOMI; + if(!isvknj(kp)) err |= AD_BADKANJI; - if (!isvyomi(nyp)) err |= AD_BADYOMI; - - if (!isvknj(kp)) err |= AD_BADKANJI; - - if (!isgrm(grm)) err |= AD_BADHINSI; + if(!isgrm(grm)) err |= AD_BADHINSI; return err; } - - static void -yomi2kata(u_char *src, u_char *dst) -{ - int first; - int second; +yomi2kata(u_char* src, u_char* dst) { + int first; + int second; - while (first = *src++) { + while(first = *src++) { second = *src++; - if (first != 0xa4) { + if(first != 0xa4) { *dst++ = first; *dst++ = second; } @@ -168,89 +148,78 @@ yomi2kata(u_char *src, u_char *dst) *dst = 0; } - - static int -top_strcmp(u_char *src, u_char *dst) -{ - int i; +top_strcmp(u_char* src, u_char* dst) { + int i; - for (i = 0 ; *src && (*src == *dst) ; src++, dst++) i++; + for(i = 0; *src && (*src == *dst); src++, dst++) i++; i /= 2; return (i > MAXYOMIASKNUMBER) ? MAXYOMIASKNUMBER : i; } - - static int -last_strcmp(u_char *src, u_char *dst) -{ - int slen; - int dlen; +last_strcmp(u_char* src, u_char* dst) { + int slen; + int dlen; slen = sstrlen(src); dlen = sstrlen(dst); - if (dlen > MAXYOMIASKNUMBER * 2) return 0; + if(dlen > MAXYOMIASKNUMBER * 2) return 0; - if (sstrcmp(src + (slen - dlen), dst)) return 0; + if(sstrcmp(src + (slen - dlen), dst)) return 0; return (dlen / 2); } - - -int -cvtknj(u_char *yomi, u_char *knj, u_char *dst) -{ +int cvtknj(u_char* yomi, u_char* knj, u_char* dst) { u_char kana[MAXWDYOMILEN * 2 + 1]; int len; - u_char *keep; + u_char* keep; keep = dst; yomi2kata(yomi, kana); - if (len = top_strcmp(yomi, knj)) { - *dst = (u_char)(ZENHIRAASSYUKU | (len - 1)); - } - else if (len = top_strcmp(kana, knj)) { - *dst = (u_char)(ZENKATAASSYUKU | (len - 1)); + if(len = top_strcmp(yomi, knj)) { + *dst = (u_char)(ZENHIRAASSYUKU | (len - 1)); + } else if(len = top_strcmp(kana, knj)) { + *dst = (u_char)(ZENKATAASSYUKU | (len - 1)); } - if (len) { + if(len) { knj += len * 2; dst++; } - if (*knj) { - for ( ; ; ) { - if (len = last_strcmp(yomi, knj)) { + if(*knj) { + for(;;) { + if(len = last_strcmp(yomi, knj)) { *dst++ = (u_char)(ZENHIRAASSYUKU | (len - 1)); break; - } - else if (len = last_strcmp(kana, knj)) { + } else if(len = last_strcmp(kana, knj)) { *dst++ = (u_char)(ZENKATAASSYUKU | (len - 1)); break; - } - else if (*knj == SS2) { + } else if(*knj == SS2) { knj++; *dst++ = (u_char)LEADINGHANKAKU; *dst++ = *knj++; - } else if (*knj == SS3) { + } else if(*knj == SS3) { + knj++; + *dst++ = (*knj & NORMALKANJIMASK); knj++; - *dst++ = (*knj & NORMALKANJIMASK); knj++; *dst++ = *knj++; - } else if (*knj & 0x80) { - *dst++ = (*knj & NORMALKANJIMASK); knj++; - *dst++ = (*knj & NORMALKANJIMASK); knj++; - } - else { + } else if(*knj & 0x80) { + *dst++ = (*knj & NORMALKANJIMASK); + knj++; + *dst++ = (*knj & NORMALKANJIMASK); + knj++; + } else { *dst++ = (u_char)LEADINGHANKAKU; *dst++ = *knj++; } - if (!*knj) { + if(!*knj) { break; } } @@ -260,12 +229,8 @@ cvtknj(u_char *yomi, u_char *knj, u_char *dst) return (dst - keep); } - - -int -srchkana(u_char **ptr, int *saml) -{ - u_char *p; +int srchkana(u_char** ptr, int* saml) { + u_char* p; int cmp; int cnt = 0; u_char same; @@ -275,34 +240,30 @@ srchkana(u_char **ptr, int *saml) p = segtop(); - while (!segend(p)) { - if (flg == 0) { + while(!segend(p)) { + if(flg == 0) { cmp = yomicmp(cnvstart, p, &same); - if (cmp == OVER) break; - if (cmp == MATCH && *(cnvstart + same) == 0) { - *ptr = p; + if(cmp == OVER) break; + if(cmp == MATCH && *(cnvstart + same) == 0) { + *ptr = p; *saml = same; - flg = 1; + flg = 1; } } p = getntag(p); cnt++; } - if (flg != 0) return cnt; + if(flg != 0) return cnt; - *ptr = p; + *ptr = p; *saml = same; return 0; } - - -int -srchgram(u_char *ptr, u_char **dst, TypeGram hinsi) -{ - u_char *endp; +int srchgram(u_char* ptr, u_char** dst, TypeGram hinsi) { + u_char* endp; int cnt = 0, nlen; int flg = FALSE; @@ -310,79 +271,68 @@ srchgram(u_char *ptr, u_char **dst, TypeGram hinsi) nlen = getnlen(ptr); - ptr += DOUONBLKSIZENUMBER + nlen; - while (ptr < endp) { - if (*ptr == hinsi) { + ptr += DOUONBLKSIZENUMBER + nlen; + while(ptr < endp) { + if(*ptr == hinsi) { *dst = ptr; - flg = TRUE; + flg = TRUE; } do { ptr += codesize(*ptr); - } while (*ptr != HINSIBLKTERM); + } while(*ptr != HINSIBLKTERM); ptr++; cnt++; } - if (flg) return cnt; + if(flg) return cnt; *dst = ptr; return 0; } - - -int -srchkanji(u_char **dst, u_char *knj, int klen) -{ - u_char *ptr; - u_char *p, *q; +int srchkanji(u_char** dst, u_char* knj, int klen) { + u_char* ptr; + u_char *p, *q; int len; int flg = FALSE; int cnt = 0; ptr = *dst + 1; - while (*ptr != HINSIBLKTERM) { - for (p = ptr, q = knj, len = klen ; len ; len--) - if (*p++ != *q++) break; + while(*ptr != HINSIBLKTERM) { + for(p = ptr, q = knj, len = klen; len; len--) + if(*p++ != *q++) break; - if (!len) { + if(!len) { *dst = ptr; - flg = TRUE; + flg = TRUE; } - while (!(*ptr == KANJISTREND)) { + while(!(*ptr == KANJISTREND)) { ptr += codesize(*ptr); } ptr++; cnt++; } - if (!flg) *dst = ptr; + if(!flg) *dst = ptr; return cnt; } - - TypeIdxOfs -count_uidx() -{ - u_char *p; +count_uidx() { + u_char* p; p = get_idxptr(curdict->segunit - 1); - while (*p++) ; + while(*p++); return (curdict->idxlen - (p - idxbuf)); } - - -void -chg_uidx(TypeDicSeg seg, u_char *yomi, int len) -{ - u_char *p, *q; - int olen; +void chg_uidx(TypeDicSeg seg, u_char* yomi, int len) { + u_char *p, *q; + int olen; p = get_idxptr(seg); @@ -390,13 +340,12 @@ chg_uidx(TypeDicSeg seg, u_char *yomi, int len) q = idxbuf + curdict->idxlen; - if (len > olen) { - mvmemd(q - (len-olen), q, (int)(q - (len-olen) - p)); + if(len > olen) { + mvmemd(q - (len - olen), q, (int)(q - (len - olen) - p)); + } else { + mvmemi(p + (olen - len), p, (int)(q - (p + (olen - len)))); } - else { - mvmemi(p + (olen-len), p, (int)(q - (p + (olen-len)))); - } - while (len--) *p++ = *yomi++; + while(len--) *p++ = *yomi++; (*curdict->putidx)(curdict, 0); diff --git a/lib/sj3core/alloc.c b/lib/sj3core/alloc.c index a611657..05b5648 100644 --- a/lib/sj3core/alloc.c +++ b/lib/sj3core/alloc.c @@ -1,6 +1,6 @@ /* * Copyright (c) 1991-1994 Sony Corporation - * + * * Permission is hereby granted, free of charge, to any person obtaining * a copy of this software and associated documentation files (the * "Software"), to deal in the Software without restriction, including @@ -8,10 +8,10 @@ * distribute, sublicense, and/or sell copies of the Software, and to * permit persons to whom the Software is furnished to do so, subject to * the following conditions: - * + * * The above copyright notice and this permission notice shall be * included in all copies or substantial portions of the Software. - * + * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. @@ -19,7 +19,7 @@ * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR * THE USE OR OTHER DEALINGS IN THE SOFTWARE. - * + * * Except as contained in this notice, the name of Sony Corporation * shall not be used in advertising or otherwise to promote the sale, use * or other dealings in this Software without prior written authorization @@ -28,12 +28,11 @@ */ /* - * $SonyRCSfile: alloc.c,v $ - * $SonyRevision: 1.1 $ + * $SonyRCSfile: alloc.c,v $ + * $SonyRevision: 1.1 $ * $SonyDate: 1994/06/03 08:01:28 $ */ - #include #include #include "sj_rename.h" @@ -44,64 +43,57 @@ #include "sj_kanakan.h" -#define JREC_NUM 128 -#define CLREC_NUM 128 +#define JREC_NUM 128 +#define CLREC_NUM 128 -static JREC *jrec = NULL; -static CLREC *clrec = NULL; +static JREC* jrec = NULL; +static CLREC* clrec = NULL; -JREC * -alloc_jrec() -{ - JREC *p; - int i; +JREC* alloc_jrec() { + JREC* p; + int i; - if (jrec == NULL) { - jrec = (JREC *)malloc(sizeof(JREC) * JREC_NUM); - if (jrec == NULL) return (JREC *)malloc(sizeof(JREC)); - for (i = 0, p = jrec ; i < JREC_NUM - 1 ; i++, p++) - p -> jsort = p + 1; - p -> jsort = NULL; + if(jrec == NULL) { + jrec = (JREC*)malloc(sizeof(JREC) * JREC_NUM); + if(jrec == NULL) return (JREC*)malloc(sizeof(JREC)); + for(i = 0, p = jrec; i < JREC_NUM - 1; i++, p++) + p->jsort = p + 1; + p->jsort = NULL; } - p = jrec; - jrec = jrec -> jsort; + p = jrec; + jrec = jrec->jsort; return p; } -void -free_jrec(JREC *p) -{ - if (p != NULL) { - p -> jsort = jrec; - jrec = p; +void free_jrec(JREC* p) { + if(p != NULL) { + p->jsort = jrec; + jrec = p; } } -CLREC * -alloc_clrec() -{ - CLREC *p; - int i; +CLREC* +alloc_clrec() { + CLREC* p; + int i; - if (clrec == NULL) { - clrec = (CLREC *)malloc(sizeof(CLREC) * CLREC_NUM); - if (clrec == NULL) return (CLREC *)malloc(sizeof(CLREC)); - for (i = 0, p = clrec ; i < CLREC_NUM - 1 ; i++, p++) - p -> clsort = p + 1; - p -> clsort = NULL; + if(clrec == NULL) { + clrec = (CLREC*)malloc(sizeof(CLREC) * CLREC_NUM); + if(clrec == NULL) return (CLREC*)malloc(sizeof(CLREC)); + for(i = 0, p = clrec; i < CLREC_NUM - 1; i++, p++) + p->clsort = p + 1; + p->clsort = NULL; } - p = clrec; - clrec = clrec -> clsort; + p = clrec; + clrec = clrec->clsort; return p; } -void -free_clrec(CLREC *p) -{ - if (p != NULL) { - p -> clsort = clrec; - clrec = p; +void free_clrec(CLREC* p) { + if(p != NULL) { + p->clsort = clrec; + clrec = p; } } diff --git a/lib/sj3core/charsize.c b/lib/sj3core/charsize.c index f05fd8b..80c78c4 100644 --- a/lib/sj3core/charsize.c +++ b/lib/sj3core/charsize.c @@ -1,6 +1,6 @@ /* * Copyright (c) 1991-1994 Sony Corporation - * + * * Permission is hereby granted, free of charge, to any person obtaining * a copy of this software and associated documentation files (the * "Software"), to deal in the Software without restriction, including @@ -8,10 +8,10 @@ * distribute, sublicense, and/or sell copies of the Software, and to * permit persons to whom the Software is furnished to do so, subject to * the following conditions: - * + * * The above copyright notice and this permission notice shall be * included in all copies or substantial portions of the Software. - * + * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. @@ -19,7 +19,7 @@ * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR * THE USE OR OTHER DEALINGS IN THE SOFTWARE. - * + * * Except as contained in this notice, the name of Sony Corporation * shall not be used in advertising or otherwise to promote the sale, use * or other dealings in this Software without prior written authorization @@ -28,14 +28,11 @@ */ /* - * $SonyRCSfile: charsize.c,v $ - * $SonyRevision: 1.1 $ + * $SonyRCSfile: charsize.c,v $ + * $SonyRevision: 1.1 $ * $SonyDate: 1994/06/03 08:01:29 $ */ - - - #include "sj_euc.h" #include "sj_rename.h" #include "sj_typedef.h" @@ -43,21 +40,18 @@ #include "sj_kanakan.h" -int -codesize(u_char code) -{ - switch (code & KANJIMODEMASK) { - case ZENHIRAASSYUKU: - case ZENKATAASSYUKU: - case KANJIASSYUKU: - case KANJISTREND: +int codesize(u_char code) { + switch(code & KANJIMODEMASK) { + case ZENHIRAASSYUKU: + case ZENKATAASSYUKU: + case KANJIASSYUKU: + case KANJISTREND: return 1; - case LEADINGHANKAKU: - case OFFSETASSYUKU: - case AIATTRIBUTE: + case LEADINGHANKAKU: + case OFFSETASSYUKU: + case AIATTRIBUTE: + return 2; + default: return 2; - default: - return 2; } } - diff --git a/lib/sj3core/chrtbl.c b/lib/sj3core/chrtbl.c index 286ed47..4d5918c 100644 --- a/lib/sj3core/chrtbl.c +++ b/lib/sj3core/chrtbl.c @@ -1,6 +1,6 @@ /* * Copyright (c) 1991-1994 Sony Corporation - * + * * Permission is hereby granted, free of charge, to any person obtaining * a copy of this software and associated documentation files (the * "Software"), to deal in the Software without restriction, including @@ -8,10 +8,10 @@ * distribute, sublicense, and/or sell copies of the Software, and to * permit persons to whom the Software is furnished to do so, subject to * the following conditions: - * + * * The above copyright notice and this permission notice shall be * included in all copies or substantial portions of the Software. - * + * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. @@ -19,7 +19,7 @@ * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR * THE USE OR OTHER DEALINGS IN THE SOFTWARE. - * + * * Except as contained in this notice, the name of Sony Corporation * shall not be used in advertising or otherwise to promote the sale, use * or other dealings in this Software without prior written authorization @@ -28,276 +28,272 @@ */ /* - * $SonyRCSfile: chrtbl.c,v $ - * $SonyRevision: 1.1 $ + * $SonyRCSfile: chrtbl.c,v $ + * $SonyRevision: 1.1 $ * $SonyDate: 1994/06/03 08:01:30 $ */ - - - #include "sj_const.h" #include "sj_rename.h" #include "sj_typedef.h" #include "sj_kanakan.h" -u_char chrtbl[256] = -{ - 0, - FZKTOP, - DICTOP + TAI_KGU, - DICTOP + TAI_KGU, - DICTOP + TAI_KGU + BEFORNUM, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - DICTOP + NUMBER, - DICTOP + NUMBER, - DICTOP + NUMBER, - DICTOP + NUMBER, - DICTOP + NUMBER, - DICTOP + NUMBER, - DICTOP + NUMBER, - DICTOP + NUMBER, - DICTOP + NUMBER, - DICTOP + NUMBER, - DICTOP + TAI_KGU, - DICTOP + TAI_KGU, - DICTOP + TAI_KGU, - DICTOP + TAI_KGU, - DICTOP + TAI_KGU, - DICTOP + TAI_KGU, - DICTOP + TAI_KGU, - DICTOP + TAI_KGU, - DICTOP + TAI_KGU, - DICTOP + TAI_KGU, - DICTOP + TAI_KGU, - DICTOP + TAI_KGU, - DICTOP + TAI_KGU, - DICTOP + TAI_KGU, - DICTOP + TAI_KGU, - DICTOP + TAI_KGU, - DICTOP + TAI_KGU, - DICTOP + TAI_KGU, - DICTOP + TAI_KGU, - DICTOP + TAI_KGU, - DICTOP + TAI_KGU, - DICTOP + TAI_KGU, - DICTOP + TAI_KGU, - DICTOP + TAI_KGU, - DICTOP + TAI_KGU, - DICTOP + TAI_KGU, - DICTOP + TAI_KGU, - DICTOP + TAI_KGU, - DICTOP + TAI_KGU, - DICTOP + TAI_KGU, - DICTOP + TAI_KGU, - DICTOP + TAI_KGU, - DICTOP + TAI_KGU, - DICTOP + TAI_KGU, - DICTOP + TAI_KGU, - DICTOP + TAI_KGU, - DICTOP + TAI_KGU, - DICTOP + TAI_KGU, - DICTOP + TAI_KGU, - DICTOP + TAI_KGU, - DICTOP + TAI_KGU, - DICTOP + TAI_KGU, - DICTOP + TAI_KGU, - DICTOP + TAI_KGU, - DICTOP + TAI_KGU, - DICTOP + TAI_KGU, - DICTOP + TAI_KGU, - DICTOP + TAI_KGU, - DICTOP + TAI_KGU, - DICTOP + TAI_KGU, - DICTOP + TAI_KGU, - DICTOP + TAI_KGU, - DEPEND, - DICTOP, - DEPEND, - DICTOP, - DEPEND, - DICTOP, - DEPEND, - DICTOP, - DEPEND, - DICTOP, - DICTOP, - DICTOP, - DICTOP, - DICTOP, - DICTOP, - DICTOP, - DICTOP, - DICTOP, - DICTOP, - DICTOP, - DICTOP, - DICTOP, - DICTOP, - DICTOP, - DICTOP, - DICTOP, - DICTOP, - DICTOP, - DICTOP, - DICTOP, - DICTOP, - DICTOP, - DICTOP, - DICTOP, - FZKTOP, - DICTOP, - DICTOP, - DICTOP, - DICTOP, - DICTOP, - DICTOP, - DICTOP, - DICTOP, - DICTOP, - DICTOP, - DICTOP, - DICTOP, - DICTOP, - DICTOP, - DICTOP, - DICTOP, - DICTOP, - DICTOP, - DICTOP, - DICTOP, - DICTOP, - DICTOP, - DICTOP, - DICTOP, - DICTOP, - DICTOP, - DICTOP, - DICTOP, - DICTOP, - DICTOP, - DICTOP, - DEPEND, - DICTOP, - DEPEND, - DICTOP, - DEPEND, - DICTOP, - DICTOP, - DICTOP, - DICTOP, - DICTOP, - DICTOP, - DEPEND, - DICTOP, - DICTOP, - DICTOP, - FZKTOP, - DICTOP, - DICTOP, - DEPEND, - DEPEND, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - FZK_KGU, - FZK_KGU, - FZK_KGU + MIDNUM, - FZK_KGU + MIDNUM, - FZK_KGU + TAI_KGU, - FZK_KGU + TAI_KGU, - TAI_KGU + BEFORNUM, - TAI_KGU, - FZK_KGU, - TAI_KGU, - TAI_KGU, - TAI_KGU, - TAI_KGU, - 0 -}; +u_char chrtbl[256] = + { + 0, + FZKTOP, + DICTOP + TAI_KGU, + DICTOP + TAI_KGU, + DICTOP + TAI_KGU + BEFORNUM, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + DICTOP + NUMBER, + DICTOP + NUMBER, + DICTOP + NUMBER, + DICTOP + NUMBER, + DICTOP + NUMBER, + DICTOP + NUMBER, + DICTOP + NUMBER, + DICTOP + NUMBER, + DICTOP + NUMBER, + DICTOP + NUMBER, + DICTOP + TAI_KGU, + DICTOP + TAI_KGU, + DICTOP + TAI_KGU, + DICTOP + TAI_KGU, + DICTOP + TAI_KGU, + DICTOP + TAI_KGU, + DICTOP + TAI_KGU, + DICTOP + TAI_KGU, + DICTOP + TAI_KGU, + DICTOP + TAI_KGU, + DICTOP + TAI_KGU, + DICTOP + TAI_KGU, + DICTOP + TAI_KGU, + DICTOP + TAI_KGU, + DICTOP + TAI_KGU, + DICTOP + TAI_KGU, + DICTOP + TAI_KGU, + DICTOP + TAI_KGU, + DICTOP + TAI_KGU, + DICTOP + TAI_KGU, + DICTOP + TAI_KGU, + DICTOP + TAI_KGU, + DICTOP + TAI_KGU, + DICTOP + TAI_KGU, + DICTOP + TAI_KGU, + DICTOP + TAI_KGU, + DICTOP + TAI_KGU, + DICTOP + TAI_KGU, + DICTOP + TAI_KGU, + DICTOP + TAI_KGU, + DICTOP + TAI_KGU, + DICTOP + TAI_KGU, + DICTOP + TAI_KGU, + DICTOP + TAI_KGU, + DICTOP + TAI_KGU, + DICTOP + TAI_KGU, + DICTOP + TAI_KGU, + DICTOP + TAI_KGU, + DICTOP + TAI_KGU, + DICTOP + TAI_KGU, + DICTOP + TAI_KGU, + DICTOP + TAI_KGU, + DICTOP + TAI_KGU, + DICTOP + TAI_KGU, + DICTOP + TAI_KGU, + DICTOP + TAI_KGU, + DICTOP + TAI_KGU, + DICTOP + TAI_KGU, + DICTOP + TAI_KGU, + DICTOP + TAI_KGU, + DICTOP + TAI_KGU, + DICTOP + TAI_KGU, + DEPEND, + DICTOP, + DEPEND, + DICTOP, + DEPEND, + DICTOP, + DEPEND, + DICTOP, + DEPEND, + DICTOP, + DICTOP, + DICTOP, + DICTOP, + DICTOP, + DICTOP, + DICTOP, + DICTOP, + DICTOP, + DICTOP, + DICTOP, + DICTOP, + DICTOP, + DICTOP, + DICTOP, + DICTOP, + DICTOP, + DICTOP, + DICTOP, + DICTOP, + DICTOP, + DICTOP, + DICTOP, + DICTOP, + DICTOP, + FZKTOP, + DICTOP, + DICTOP, + DICTOP, + DICTOP, + DICTOP, + DICTOP, + DICTOP, + DICTOP, + DICTOP, + DICTOP, + DICTOP, + DICTOP, + DICTOP, + DICTOP, + DICTOP, + DICTOP, + DICTOP, + DICTOP, + DICTOP, + DICTOP, + DICTOP, + DICTOP, + DICTOP, + DICTOP, + DICTOP, + DICTOP, + DICTOP, + DICTOP, + DICTOP, + DICTOP, + DICTOP, + DEPEND, + DICTOP, + DEPEND, + DICTOP, + DEPEND, + DICTOP, + DICTOP, + DICTOP, + DICTOP, + DICTOP, + DICTOP, + DEPEND, + DICTOP, + DICTOP, + DICTOP, + FZKTOP, + DICTOP, + DICTOP, + DEPEND, + DEPEND, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + FZK_KGU, + FZK_KGU, + FZK_KGU + MIDNUM, + FZK_KGU + MIDNUM, + FZK_KGU + TAI_KGU, + FZK_KGU + TAI_KGU, + TAI_KGU + BEFORNUM, + TAI_KGU, + FZK_KGU, + TAI_KGU, + TAI_KGU, + TAI_KGU, + TAI_KGU, + 0}; diff --git a/lib/sj3core/cl2knj.c b/lib/sj3core/cl2knj.c index 03ccdf2..733a28a 100644 --- a/lib/sj3core/cl2knj.c +++ b/lib/sj3core/cl2knj.c @@ -1,6 +1,6 @@ /* * Copyright (c) 1991-1994 Sony Corporation - * + * * Permission is hereby granted, free of charge, to any person obtaining * a copy of this software and associated documentation files (the * "Software"), to deal in the Software without restriction, including @@ -8,10 +8,10 @@ * distribute, sublicense, and/or sell copies of the Software, and to * permit persons to whom the Software is furnished to do so, subject to * the following conditions: - * + * * The above copyright notice and this permission notice shall be * included in all copies or substantial portions of the Software. - * + * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. @@ -19,7 +19,7 @@ * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR * THE USE OR OTHER DEALINGS IN THE SOFTWARE. - * + * * Except as contained in this notice, the name of Sony Corporation * shall not be used in advertising or otherwise to promote the sale, use * or other dealings in this Software without prior written authorization @@ -28,8 +28,8 @@ */ /* - * $SonyRCSfile: cl2knj.c,v $ - * $SonyRevision: 1.1 $ + * $SonyRCSfile: cl2knj.c,v $ + * $SonyRevision: 1.1 $ * $SonyDate: 1994/06/03 08:01:31 $ */ @@ -37,29 +37,26 @@ #include "sj_kanakan.h" +static CLREC *nextrecblk(), *prevrecblk(); -static CLREC *nextrecblk(), *prevrecblk(); +static void initkbuf(u_char*); -static void initkbuf(u_char *); - - -int -cl2knj(u_char *yomi, int len, u_char *kouho) -{ - u_char *ptr1; - u_char *ptr2; +int cl2knj(u_char* yomi, int len, u_char* kouho) { + u_char* ptr1; + u_char* ptr2; int i; khcount = nkhcount = 0; initkbuf(kouho); - if (len > MAXCLINPUTLEN * 2) len = MAXCLINPUTLEN * 2; + if(len > MAXCLINPUTLEN * 2) len = MAXCLINPUTLEN * 2; - ptr1 = yomi; ptr2 = hyomi; - for (i = 0 ; i < len ; i++) { - if (isknj1(*ptr1)) { - if (++i >= len) break; + ptr1 = yomi; + ptr2 = hyomi; + for(i = 0; i < len; i++) { + if(isknj1(*ptr1)) { + if(++i >= len) break; } ptr1 += sj2cd_chr(ptr1, ptr2++); } @@ -67,19 +64,19 @@ cl2knj(u_char *yomi, int len, u_char *kouho) strlcpy(orgyomi, yomi, (int)(ptr1 - yomi) + 1); - if (!hyomi[0]) return 0; + if(!hyomi[0]) return 0; freework(); inputyomi = orgyomi; cnvstart = ystart = hyomi; - cnvlen = sstrlen(hyomi); + cnvlen = sstrlen(hyomi); mkjiritu(0); mkbunsetu(); - if (!maxclptr) wakachi(); + if(!maxclptr) wakachi(); jrt1st = maxjptr; clt1st = maxclptr; @@ -92,129 +89,104 @@ cl2knj(u_char *yomi, int len, u_char *kouho) cvtclknj(); - return hzstrlen(inputyomi, (int)clt1st -> cllen); + return hzstrlen(inputyomi, (int)clt1st->cllen); } - - -int -nextcl(u_char *kouho, int mode) -{ - CLREC *clptr; +int nextcl(u_char* kouho, int mode) { + CLREC* clptr; initkbuf(kouho); - if (!khcount) return 0; + if(!khcount) return 0; - if (!mode && (selectid < khcount)) + if(!mode && (selectid < khcount)) selectid++; else if((mode < 2) && (clptr = nextrecblk())) { selectid = 1; - clt1st = clptr; + clt1st = clptr; mkkouho(); getrank(); - } - else { + } else { cvtclknj(); return 0; } cvtclknj(); - return hzstrlen(inputyomi, (int)clt1st -> cllen); + return hzstrlen(inputyomi, (int)clt1st->cllen); } - - - static CLREC* -nextrecblk() -{ - CLREC *clptr; - int keeplen; +nextrecblk() { + CLREC* clptr; + int keeplen; - keeplen = clt1st -> cllen; + keeplen = clt1st->cllen; - clptr = clt1st -> clsort; + clptr = clt1st->clsort; - while (clptr && (int)clptr -> cllen == keeplen) - clptr = clptr -> clsort; + while(clptr && (int)clptr->cllen == keeplen) + clptr = clptr->clsort; return clptr; } - - - -int -prevcl(u_char *kouho, int mode) -{ - CLREC *clptr; +int prevcl(u_char* kouho, int mode) { + CLREC* clptr; initkbuf(kouho); - if (!khcount) return 0; + if(!khcount) return 0; - if (!mode && (selectid > 1)) + if(!mode && (selectid > 1)) selectid--; - else if ((mode < 2) && (clptr = prevrecblk())) { + else if((mode < 2) && (clptr = prevrecblk())) { clt1st = clptr; mkkouho(); getrank(); selectid = khcount; - } - else { + } else { cvtclknj(); return 0; } cvtclknj(); - return hzstrlen(inputyomi, (int)clt1st -> cllen); + return hzstrlen(inputyomi, (int)clt1st->cllen); } - - static CLREC* -prevrecblk() -{ - CLREC *clptr; - CLREC *keepptr; - int keeplen; - int cllen; +prevrecblk() { + CLREC* clptr; + CLREC* keepptr; + int keeplen; + int cllen; clptr = maxclptr; - if ((cllen = clt1st -> cllen) == clptr -> cllen) + if((cllen = clt1st->cllen) == clptr->cllen) return NULL; - while ((int)clptr -> cllen > cllen) { - keeplen = clptr -> cllen; + while((int)clptr->cllen > cllen) { + keeplen = clptr->cllen; keepptr = clptr; - while ((int)clptr -> cllen == keeplen) - clptr = clptr -> clsort; + while((int)clptr->cllen == keeplen) + clptr = clptr->clsort; } return keepptr; } - - static void -initkbuf(u_char *kouho) -{ +initkbuf(u_char* kouho) { kanjitmp = kouho; memset(kanjitmp, 0, sizeof(STDYOUT) + 1); } - - -int -selectnum() -{ +int selectnum() { return selectid; } diff --git a/lib/sj3core/clstudy.c b/lib/sj3core/clstudy.c index 4a7c4a4..7893191 100644 --- a/lib/sj3core/clstudy.c +++ b/lib/sj3core/clstudy.c @@ -1,6 +1,6 @@ /* * Copyright (c) 1991-1994 Sony Corporation - * + * * Permission is hereby granted, free of charge, to any person obtaining * a copy of this software and associated documentation files (the * "Software"), to deal in the Software without restriction, including @@ -8,10 +8,10 @@ * distribute, sublicense, and/or sell copies of the Software, and to * permit persons to whom the Software is furnished to do so, subject to * the following conditions: - * + * * The above copyright notice and this permission notice shall be * included in all copies or substantial portions of the Software. - * + * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. @@ -19,7 +19,7 @@ * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR * THE USE OR OTHER DEALINGS IN THE SOFTWARE. - * + * * Except as contained in this notice, the name of Sony Corporation * shall not be used in advertising or otherwise to promote the sale, use * or other dealings in this Software without prior written authorization @@ -28,86 +28,75 @@ */ /* - * $SonyRCSfile: clstudy.c,v $ - * $SonyRevision: 1.1 $ + * $SonyRCSfile: clstudy.c,v $ + * $SonyRevision: 1.1 $ * $SonyDate: 1994/06/03 08:01:32 $ */ - - - - #include "sj_kcnv.h" #include "sj_kanakan.h" +static u_char *delcldata(), *srchclpos(); +static int delclold(); -static u_char *delcldata(), *srchclpos(); -static int delclold(); - - -int -clstudy(u_char *yomi1, u_char *yomi2, STDYOUT *stdy) -{ +int clstudy(u_char* yomi1, u_char* yomi2, STDYOUT* stdy) { u_char ytmp[CLSTDY_TMPLEN]; - u_char *dst, *ptr; + u_char *dst, *ptr; int ret; int len1, len2; int alen, blen; int i; - if (!StudyExist()) return CLSTUDYNODICT; + if(!StudyExist()) return CLSTUDYNODICT; - if (!yomi1 || !*yomi1) return CLSTUDYPARAERR; + if(!yomi1 || !*yomi1) return CLSTUDYPARAERR; - if (!yomi2 || !*yomi2) { - if (!sj2cd_str(yomi1, ytmp, CLSTDY_TMPLEN)) + if(!yomi2 || !*yomi2) { + if(!sj2cd_str(yomi1, ytmp, CLSTDY_TMPLEN)) return CLSTUDYYOMIERR; (void)delcldata(ytmp); ret = CLSTUDYNORMEND; - } - else if (!stdy) + } else if(!stdy) return CLSTUDYPARAERR; else { - if (!sj2cd_str(yomi1, ytmp, CLSTDY_TMPLEN)) + if(!sj2cd_str(yomi1, ytmp, CLSTDY_TMPLEN)) return CLSTUDYYOMIERR; len1 = sstrlen(ytmp); - if (!sj2cd_str(yomi2, ytmp + len1, CLSTDY_TMPLEN - len1)) + if(!sj2cd_str(yomi2, ytmp + len1, CLSTDY_TMPLEN - len1)) return CLSTUDYYOMIERR; - len2 = len1 + stdy -> len; + len2 = len1 + stdy->len; ytmp[len2] = 0; alen = len2 + CL_HDLEN; - if (alen + 1 >= CLSTUDYLEN) return CLSTUDYNOAREA; + if(alen + 1 >= CLSTUDYLEN) return CLSTUDYNOAREA; blen = CLSTUDYTAIL - delcldata(ytmp) - 1; - while (blen < alen) { - if (!(i = delclold())) break; + while(blen < alen) { + if(!(i = delclold())) break; blen += i; } - - if (blen >= alen) { + if(blen >= alen) { dst = srchclpos(ytmp); ptr = CLSTUDYTAIL - alen; mvmemd(ptr, CLSTUDYTAIL, (ptr - dst)); - ClYomiLen(dst) = (u_char)len2; - ClGramCode(dst) = stdy -> hinshi; + ClYomiLen(dst) = (u_char)len2; + ClGramCode(dst) = stdy->hinshi; ClYomi1Len(dst) = (u_char)len1; ClSetNum(dst, 1); memcpy(ClYomiPos(dst), ytmp, len2); ret = CLSTUDYNORMEND; - } - else + } else ret = CLSTUDYNOAREA; } mkclidx(); @@ -116,32 +105,28 @@ clstudy(u_char *yomi1, u_char *yomi2, STDYOUT *stdy) return ret; } - - -static u_char * -delcldata(u_char *ycode) -{ - u_char *tagptr; - u_char *ptr1; - u_char *ptr2; +static u_char* +delcldata(u_char* ycode) { + u_char* tagptr; + u_char* ptr1; + u_char* ptr2; int len1; tagptr = CLSTUDYDICT; - while (!iseocl(tagptr)) { + while(!iseocl(tagptr)) { ptr1 = ycode; ptr2 = ClYomiPos(tagptr); len1 = ClYomiLen(tagptr); - while (*ptr1 && len1) { - if (*ptr1 != *ptr2) break; + while(*ptr1 && len1) { + if(*ptr1 != *ptr2) break; ptr1++; ptr2++; len1--; } - if (!*ptr1 || !len1) { + if(!*ptr1 || !len1) { delclsub(tagptr); - } - else { + } else { tagptr = ClNextTag(tagptr); } } @@ -149,12 +134,8 @@ delcldata(u_char *ycode) return tagptr; } - - -void -delclsub(u_char *target) -{ - u_char *src; +void delclsub(u_char* target) { + u_char* src; int num; int tmp; int len; @@ -170,10 +151,10 @@ delclsub(u_char *target) memset(CLSTUDYTAIL - len, 0, len); src = CLSTUDYDICT; - while (!iseocl(src)) { + while(!iseocl(src)) { tmp = ClGetNum(src); - if (tmp > num) { + if(tmp > num) { tmp -= 1; ClSetNum(src, tmp); } @@ -182,32 +163,29 @@ delclsub(u_char *target) } } - - static int -delclold() -{ - u_char *tagptr; - u_char *target; +delclold() { + u_char* tagptr; + u_char* target; int num; int tmp; target = NULL; - num = 0; + num = 0; tagptr = CLSTUDYDICT; - while (!iseocl(tagptr)) { + while(!iseocl(tagptr)) { tmp = ClGetNum(tagptr); - if (tmp >= num) { - num = tmp; + if(tmp >= num) { + num = tmp; target = tagptr; } tagptr = ClNextTag(tagptr); } - if (target) { + if(target) { num = ClBlkLen(tagptr); delclsub(target); } @@ -215,21 +193,18 @@ delclold() return num; } - - -static u_char * -srchclpos(u_char *ycode) -{ - u_char *tagptr; - u_char *target; - u_char *ptr1; - u_char *ptr2; +static u_char* +srchclpos(u_char* ycode) { + u_char* tagptr; + u_char* target; + u_char* ptr1; + u_char* ptr2; int len; int tmp; target = NULL; tagptr = CLSTUDYDICT; - while (!iseocl(tagptr)) { + while(!iseocl(tagptr)) { tmp = ClGetNum(tagptr); tmp++; @@ -238,19 +213,19 @@ srchclpos(u_char *ycode) ptr1 = ycode; ptr2 = ClYomiPos(tagptr); len = ClYomiLen(tagptr); - while (*ptr1 && len) { - if (*ptr1 != *ptr2) break; + while(*ptr1 && len) { + if(*ptr1 != *ptr2) break; ptr1++; ptr2++; len--; } - if (!target) { - if (!len) + if(!target) { + if(!len) ; - else if (!*ptr1) + else if(!*ptr1) target = tagptr; - else if (*ptr1 < *ptr2) + else if(*ptr1 < *ptr2) target = tagptr; } tagptr = ClNextTag(tagptr); @@ -259,25 +234,21 @@ srchclpos(u_char *ycode) return target ? target : tagptr; } - - -void -mkclidx() -{ - u_char *ptr; +void mkclidx() { + u_char* ptr; int num; int st, ed; - if (!StudyExist()) return; + if(!StudyExist()) return; ptr = CLSTUDYDICT; - for (num = st = 0 ; st < 0x100 ; num++, st = ed) { + for(num = st = 0; st < 0x100; num++, st = ed) { ed = st + CLSTUDYSTEP; - while (!iseocl(ptr)) { - if ((unsigned int) *ClYomiPos(ptr) >= st) break; + while(!iseocl(ptr)) { + if((unsigned int)*ClYomiPos(ptr) >= st) break; ptr = ClNextTag(ptr); } - if (ClYomiLen(ptr) && ((int)*ClYomiPos(ptr) < ed)) + if(ClYomiLen(ptr) && ((int)*ClYomiPos(ptr) < ed)) CLSTUDYIDX[num] = ptr - CLSTUDYDICT; else CLSTUDYIDX[num] = (u_short)-1; diff --git a/lib/sj3core/cmpstr.c b/lib/sj3core/cmpstr.c index 32a617d..bb255e2 100644 --- a/lib/sj3core/cmpstr.c +++ b/lib/sj3core/cmpstr.c @@ -1,6 +1,6 @@ /* * Copyright (c) 1991-1994 Sony Corporation - * + * * Permission is hereby granted, free of charge, to any person obtaining * a copy of this software and associated documentation files (the * "Software"), to deal in the Software without restriction, including @@ -8,10 +8,10 @@ * distribute, sublicense, and/or sell copies of the Software, and to * permit persons to whom the Software is furnished to do so, subject to * the following conditions: - * + * * The above copyright notice and this permission notice shall be * included in all copies or substantial portions of the Software. - * + * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. @@ -19,7 +19,7 @@ * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR * THE USE OR OTHER DEALINGS IN THE SOFTWARE. - * + * * Except as contained in this notice, the name of Sony Corporation * shall not be used in advertising or otherwise to promote the sale, use * or other dealings in this Software without prior written authorization @@ -28,31 +28,25 @@ */ /* - * $SonyRCSfile: cmpstr.c,v $ - * $SonyRevision: 1.1 $ + * $SonyRCSfile: cmpstr.c,v $ + * $SonyRevision: 1.1 $ * $SonyDate: 1994/06/03 08:01:32 $ */ - - - - #include "sj_rename.h" #include "sj_const.h" #include "sj_typedef.h" #include "sj_kanakan.h" -int -cmpstr(u_char *src, u_char *dst) -{ - while (*src) { - if (*src != *dst) return FALSE; +int cmpstr(u_char* src, u_char* dst) { + while(*src) { + if(*src != *dst) return FALSE; src++; dst++; } - if (*dst) return FALSE; + if(*dst) return FALSE; return TRUE; } diff --git a/lib/sj3core/conjunc.c b/lib/sj3core/conjunc.c index 86717ea..d41beb0 100644 --- a/lib/sj3core/conjunc.c +++ b/lib/sj3core/conjunc.c @@ -1,6 +1,6 @@ /* * Copyright (c) 1991-1994 Sony Corporation - * + * * Permission is hereby granted, free of charge, to any person obtaining * a copy of this software and associated documentation files (the * "Software"), to deal in the Software without restriction, including @@ -8,10 +8,10 @@ * distribute, sublicense, and/or sell copies of the Software, and to * permit persons to whom the Software is furnished to do so, subject to * the following conditions: - * + * * The above copyright notice and this permission notice shall be * included in all copies or substantial portions of the Software. - * + * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. @@ -19,7 +19,7 @@ * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR * THE USE OR OTHER DEALINGS IN THE SOFTWARE. - * + * * Except as contained in this notice, the name of Sony Corporation * shall not be used in advertising or otherwise to promote the sale, use * or other dealings in this Software without prior written authorization @@ -28,1218 +28,1150 @@ */ /* - * $SonyRCSfile: conjunc.c,v $ - * $SonyRevision: 1.1 $ + * $SonyRCSfile: conjunc.c,v $ + * $SonyRevision: 1.1 $ * $SonyDate: 1994/06/03 08:01:33 $ */ - #include "sj_rename.h" #include "sj_typedef.h" #include "sj_yomi.h" #include "sj_right.h" -static u_char sahencnj[] = { - 0x00, R_SGOKAN, - 0x01, _SA, R_MIZEN1, - 0x01, _SI, R_SI1, - 0x11, _RO, R_MEIREI1, - 0x02, _SU, _RU, R_SHUUSI, - 0x25, _KA, _SI, _NA, _I, _KA, R_KA1, - 0x11, _RE, R_KATEI2, - 0x01, _SE, R_MIZEN2, - 0x12, _NA, _I, R_NAI, - 0x31, _DE, R_NAIDE, - 0x22, _KA, _XTU, R_ONBIN1, - 0x32, _RO, _U, R_KAROU, - 0x21, _KU, R_NAKU, - 0x22, _KE, _RE, R_KATEI3, - 0x12, _RA, _RE, R_RARE, - 0x31, _YO, R_MEIREI2, - 0x31, _RU, R_SHUUSI, - 0x31, _RE, R_KATEI2, - 0x31, _RO, R_MEIREI1, - 0x11, _YO, R_MEIREI2, - 0xff - }; - -static u_char zahencnj[] = { - 0x00, R_CUT, - 0x01, _ZI, R_JI, - 0x11, _YO, R_MEIREI2, - 0x11, _RU, R_SHUUSI, - 0x11, _RE, R_KATEI2, - 0x11, _RO, R_MEIREI1, - 0x02, _ZU, _RU, R_SHUUSI, - 0x11, _RE, R_KATEI2, - 0x01, _ZE, R_MIZEN3, - 0x11, _YO, R_MEIREI2, - 0xff - }; - -static u_char ka5cnj1[] = { - 0x01, _I, R_ONBIN2, - 0x01, _KA, R_MIZEN5, - 0x01, _KI, R_RENYOU5, - 0x01, _KU, R_SHUUSI, - 0x01, _KE, R_KAMEI, - 0x02, _KO, _U, R_AROU, - 0xff - }; - -static u_char ka5cnj3[] = { - 0x01, _I, R_ONBIN2, - 0x01, _KA, R_MIZEN5, - 0x01, _KI, R_RENYOU7, - 0x01, _KU, R_SHUUSI, - 0x01, _KE, R_KAMEI, - 0x02, _KO, _U, R_AROU, - 0xff - }; - -static u_char ka5cnj5[] = { - 0x01, _I, R_ONBIN2, - 0x01, _KA, R_MIZEN5, - 0x11, _SA, R_MIZEN5, - 0x11, _SI, R_SA5RENYOU3, - 0x11, _SU, R_SHUUSI, - 0x12, _SO, _U, R_AROU, - 0x01, _KI, R_RENYOU5, - 0x01, _KU, R_SHUUSI, - 0x01, _KE, R_EXP, - 0x11, _RU, R_SHUUSI, - 0x11, _RE, R_KATEI2, - 0x02, _KO, _U, R_AROU, - 0xff - }; - -static u_char ka5cnj7[] = { - 0x01, _I, R_ONBIN2, - 0x01, _KA, R_MIZEN5, - 0x11, _SA, R_MIZEN5, - 0x11, _SI, R_SA5RENYOU3, - 0x11, _SU, R_SHUUSI, - 0x12, _SO, _U, R_AROU, - 0x01, _KI, R_RENYOU7, - 0x01, _KU, R_SHUUSI, - 0x01, _KE, R_EXP, - 0x11, _RU, R_SHUUSI, - 0x11, _RE, R_KATEI2, - 0x02, _KO, _U, R_AROU, - 0xff - }; - -static u_char ga5cnj1[] = { - 0x01, _I, R_ONBIN3, - 0x01, _GA, R_MIZEN5, - 0x01, _GI, R_RENYOU5, - 0x01, _GU, R_SHUUSI, - 0x01, _GE, R_KAMEI, - 0x02, _GO, _U, R_AROU, - 0xff - }; - -static u_char ga5cnj3[] = { - 0x01, _I, R_ONBIN3, - 0x01, _GA, R_MIZEN5, - 0x01, _GI, R_RENYOU7, - 0x01, _GU, R_SHUUSI, - 0x01, _GE, R_KAMEI, - 0x02, _GO, _U, R_AROU, - 0xff - }; - -static u_char ga5cnj5[] = { - 0x01, _I, R_ONBIN3, - 0x01, _GA, R_MIZEN5, - 0x11, _SA, R_MIZEN5, - 0x11, _SI, R_SA5RENYOU3, - 0x11, _SU, R_SHUUSI, - 0x12, _SO, _U, R_AROU, - 0x01, _GI, R_RENYOU5, - 0x01, _GU, R_SHUUSI, - 0x01, _GE, R_EXP, - 0x11, _RU, R_SHUUSI, - 0x11, _RE, R_KATEI2, - 0x02, _GO, _U, R_AROU, - 0xff - }; - -static u_char ga5cnj7[] = { - 0x01, _I, R_ONBIN3, - 0x01, _GA, R_MIZEN5, - 0x11, _SA, R_MIZEN5, - 0x11, _SI, R_SA5RENYOU3, - 0x11, _SU, R_SHUUSI, - 0x12, _SO, _U, R_AROU, - 0x01, _GI, R_RENYOU7, - 0x01, _GU, R_SHUUSI, - 0x01, _GE, R_EXP, - 0x11, _RU, R_SHUUSI, - 0x11, _RE, R_KATEI2, - 0x02, _GO, _U, R_AROU, - 0xff - }; - -static u_char sa5cnj1[] = { - 0x01, _SA, R_MIZEN5, - 0x01, _SI, R_SA5RENYOU1, - 0x01, _SU, R_SHUUSI, - 0x01, _SE, R_KAMEI, - 0x02, _SO, _U, R_AROU, - 0xff - }; - -static u_char sa5cnj3[] = { - 0x01, _SA, R_MIZEN5, - 0x01, _SI, R_SA5RENYOU3, - 0x01, _SU, R_SHUUSI, - 0x01, _SE, R_KAMEI, - 0x02, _SO, _U, R_AROU, - 0xff - }; - -static u_char sa5cnj5[] = { - 0x01, _SA, R_MIZEN5, - 0x01, _SI, R_SA5RENYOU1, - 0x01, _SU, R_SHUUSI, - 0x01, _SE, R_EXP, - 0x11, _RU, R_SHUUSI, - 0x11, _RE, R_KATEI2, - 0x02, _SO, _U, R_AROU, - 0xff - }; - -static u_char sa5cnj7[] = { - 0x01, _SA, R_MIZEN5, - 0x01, _SI, R_SA5RENYOU3, - 0x01, _SU, R_SHUUSI, - 0x01, _SE, R_EXP, - 0x11, _RU, R_SHUUSI, - 0x11, _RE, R_KATEI2, - 0x02, _SO, _U, R_AROU, - 0xff - }; - -static u_char ta5cnj1[] = { - 0x01, _TA, R_MIZEN5, - 0x01, _TI, R_RENYOU5, - 0x01, _XTU, R_ONBIN2, - 0x01, _TU, R_SHUUSI, - 0x01, _TE, R_KAMEI, - 0x02, _TO, _U, R_AROU, - 0xff - }; - -static u_char ta5cnj3[] = { - 0x01, _TA, R_MIZEN5, - 0x01, _TI, R_RENYOU7, - 0x01, _XTU, R_ONBIN2, - 0x01, _TU, R_SHUUSI, - 0x01, _TE, R_KAMEI, - 0x02, _TO, _U, R_AROU, - 0xff - }; - -static u_char ta5cnj5[] = { - 0x01, _TA, R_MIZEN5, - 0x11, _SA, R_MIZEN5, - 0x11, _SI, R_SA5RENYOU3, - 0x11, _SU, R_SHUUSI, - 0x12, _SO, _U, R_AROU, - 0x01, _TI, R_RENYOU5, - 0x01, _XTU, R_ONBIN2, - 0x01, _TU, R_SHUUSI, - 0x01, _TE, R_EXP, - 0x11, _RU, R_SHUUSI, - 0x11, _RE, R_KATEI2, - 0x02, _TO, _U, R_AROU, - 0xff - }; - -static u_char ta5cnj7[] = { - 0x01, _TA, R_MIZEN5, - 0x11, _SA, R_MIZEN5, - 0x11, _SI, R_SA5RENYOU3, - 0x11, _SU, R_SHUUSI, - 0x12, _SO, _U, R_AROU, - 0x01, _TI, R_RENYOU7, - 0x01, _XTU, R_ONBIN2, - 0x01, _TU, R_SHUUSI, - 0x01, _TE, R_EXP, - 0x11, _RU, R_SHUUSI, - 0x11, _RE, R_KATEI2, - 0x02, _TO, _U, R_AROU, - 0xff - }; - - -static u_char na5cnj[] = { - 0x01, _NA, R_MIZEN5, - 0x01, _NI, R_RENYOU5, - 0x01, _NU, R_SHUUSI, - 0x01, _NE, R_KAMEI, - 0x02, _NO, _U, R_AROU, - 0x01, _NN, R_ONBIN3, - 0xff - }; - -static u_char ba5cnj1[] = { - 0x01, _BA, R_MIZEN5, - 0x01, _BI, R_RENYOU5, - 0x01, _BU, R_SHUUSI, - 0x01, _BE, R_KAMEI, - 0x02, _BO, _U, R_AROU, - 0x01, _NN, R_ONBIN3, - 0xff - }; - -static u_char ba5cnj3[] = { - 0x01, _BA, R_MIZEN5, - 0x01, _BI, R_RENYOU7, - 0x01, _BU, R_SHUUSI, - 0x01, _BE, R_KAMEI, - 0x02, _BO, _U, R_AROU, - 0x01, _NN, R_ONBIN3, - 0xff - }; - -static u_char ba5cnj5[] = { - 0x01, _BA, R_MIZEN5, - 0x11, _SA, R_MIZEN5, - 0x11, _SI, R_SA5RENYOU3, - 0x11, _SU, R_SHUUSI, - 0x12, _SO, _U, R_AROU, - 0x01, _BI, R_RENYOU5, - 0x01, _BU, R_SHUUSI, - 0x01, _BE, R_EXP, - 0x11, _RU, R_SHUUSI, - 0x11, _RE, R_KATEI2, - 0x02, _BO, _U, R_AROU, - 0x01, _NN, R_ONBIN3, - 0xff - }; - -static u_char ba5cnj7[] = { - 0x01, _BA, R_MIZEN5, - 0x11, _SA, R_MIZEN5, - 0x11, _SI, R_SA5RENYOU3, - 0x11, _SU, R_SHUUSI, - 0x12, _SO, _U, R_AROU, - 0x01, _BI, R_RENYOU7, - 0x01, _BU, R_SHUUSI, - 0x01, _BE, R_EXP, - 0x11, _RU, R_SHUUSI, - 0x11, _RE, R_KATEI2, - 0x02, _BO, _U, R_AROU, - 0x01, _NN, R_ONBIN3, - 0xff - }; - -static u_char ma5cnj1[] = { - 0x01, _MA, R_MIZEN5, - 0x01, _MI, R_RENYOU5, - 0x01, _MU, R_SHUUSI, - 0x01, _ME, R_KAMEI, - 0x02, _MO, _U, R_AROU, - 0x01, _NN, R_ONBIN3, - 0xff - }; - -static u_char ma5cnj3[] = { - 0x01, _MA, R_MIZEN5, - 0x01, _MI, R_RENYOU7, - 0x01, _MU, R_SHUUSI, - 0x01, _ME, R_KAMEI, - 0x02, _MO, _U, R_AROU, - 0x01, _NN, R_ONBIN3, - 0xff - }; - -static u_char ma5cnj5[] = { - 0x01, _MA, R_MIZEN5, - 0x11, _SA, R_MIZEN5, - 0x11, _SI, R_SA5RENYOU3, - 0x11, _SU, R_SHUUSI, - 0x12, _SO, _U, R_AROU, - 0x01, _MI, R_RENYOU5, - 0x01, _MU, R_SHUUSI, - 0x01, _ME, R_EXP, - 0x11, _RU, R_SHUUSI, - 0x11, _RE, R_KATEI2, - 0x02, _MO, _U, R_AROU, - 0x01, _NN, R_ONBIN3, - 0xff - }; - -static u_char ma5cnj7[] = { - 0x01, _MA, R_MIZEN5, - 0x11, _SA, R_MIZEN5, - 0x11, _SI, R_SA5RENYOU3, - 0x11, _SU, R_SHUUSI, - 0x12, _SO, _U, R_AROU, - 0x01, _MI, R_RENYOU7, - 0x01, _MU, R_SHUUSI, - 0x01, _ME, R_EXP, - 0x11, _RU, R_SHUUSI, - 0x11, _RE, R_KATEI2, - 0x02, _MO, _U, R_AROU, - 0x01, _NN, R_ONBIN3, - 0xff - }; - -static u_char ra5cnj1[] = { - 0x01, _XTU, R_ONBIN2, - 0x01, _RA, R_MIZEN5, - 0x01, _RI, R_RENYOU5, - 0x01, _RU, R_SHUUSI, - 0x01, _RE, R_KAMEI, - 0x02, _RO, _U, R_AROU, - 0xff - }; - -static u_char ra5cnj3[] = { - 0x01, _XTU, R_ONBIN2, - 0x01, _RA, R_MIZEN5, - 0x01, _RI, R_RENYOU7, - 0x01, _RU, R_SHUUSI, - 0x01, _RE, R_KAMEI, - 0x02, _RO, _U, R_AROU, - 0xff - }; - -static u_char ra5cnj5[] = { - 0x01, _XTU, R_ONBIN2, - 0x01, _RA, R_MIZEN5, - 0x11, _SA, R_MIZEN5, - 0x11, _SI, R_SA5RENYOU3, - 0x11, _SU, R_SHUUSI, - 0x12, _SO, _U, R_AROU, - 0x01, _RI, R_RENYOU5, - 0x01, _RU, R_SHUUSI, - 0x01, _RE, R_EXP, - 0x11, _RU, R_SHUUSI, - 0x11, _RE, R_KATEI2, - 0x02, _RO, _U, R_AROU, - 0xff - }; - -static u_char ra5cnj7[] = { - 0x01, _XTU, R_ONBIN2, - 0x01, _RA, R_MIZEN5, - 0x11, _SA, R_MIZEN5, - 0x11, _SI, R_SA5RENYOU3, - 0x11, _SU, R_SHUUSI, - 0x12, _SO, _U, R_AROU, - 0x01, _RI, R_RENYOU7, - 0x01, _RU, R_SHUUSI, - 0x01, _RE, R_EXP, - 0x11, _RU, R_SHUUSI, - 0x11, _RE, R_KATEI2, - 0x02, _RO, _U, R_AROU, - 0xff - }; - -static u_char wa5cnj1[] = { - 0x01, _I, R_RENYOU5, - 0x01, _U, R_SHUUSI, - 0x01, _E, R_KAMEI, - 0x02, _O, _U, R_AROU, - 0x01, _XTU, R_ONBIN2, - 0x01, _WA, R_MIZEN5, - 0xff - }; - -static u_char wa5cnj3[] = { - 0x01, _I, R_RENYOU7, - 0x01, _U, R_SHUUSI, - 0x01, _E, R_KAMEI, - 0x02, _O, _U, R_AROU, - 0x01, _XTU, R_ONBIN2, - 0x01, _WA, R_MIZEN5, - 0xff - }; - -static u_char wa5cnj5[] = { - 0x01, _I, R_RENYOU5, - 0x01, _U, R_SHUUSI, - 0x01, _E, R_EXP, - 0x11, _RU, R_SHUUSI, - 0x11, _RE, R_KATEI2, - 0x02, _O, _U, R_AROU, - 0x01, _XTU, R_ONBIN2, - 0x01, _WA, R_MIZEN5, - 0x11, _SA, R_MIZEN5, - 0x11, _SI, R_SA5RENYOU3, - 0x11, _SU, R_SHUUSI, - 0x12, _SO, _U, R_AROU, - 0xff - }; - -static u_char wa5cnj7[] = { - 0x01, _I, R_RENYOU7, - 0x01, _U, R_SHUUSI, - 0x01, _E, R_EXP, - 0x11, _RU, R_SHUUSI, - 0x11, _RE, R_KATEI2, - 0x02, _O, _U, R_AROU, - 0x01, _XTU, R_ONBIN2, - 0x01, _WA, R_MIZEN5, - 0x11, _SA, R_MIZEN5, - 0x11, _SI, R_SA5RENYOU3, - 0x11, _SU, R_SHUUSI, - 0x12, _SO, _U, R_AROU, - 0xff - }; - -static u_char ichicnj1[] = { - 0x00, R_RENYOU1, - 0x01, _YO, R_MEIREI2, - 0x01, _RU, R_SHUUSI, - 0x01, _RE, R_KATEI2, - 0x01, _RO, R_MEIREI1, - 0xff - }; - -static u_char ichicnj3[] = { - 0x00, R_RENYOU3, - 0x01, _YO, R_MEIREI2, - 0x01, _RU, R_SHUUSI, - 0x01, _RE, R_KATEI2, - 0x01, _RO, R_MEIREI1, - 0xff - }; - -static u_char keiyou1[] = { - 0x80, R_KGOKAN, - 0x01, _I, R_KSHUUSI, - 0x02, _KA, _XTU, R_ONBIN1, - 0x12, _RO, _U, R_KAROU, - 0x01, _KI, R_KRENTAI, - 0x01, _KU, R_KRENYOU, - 0x02, _KE, _RE, R_KATEI2, - 0xff - }; - -static u_char keiyou2[] = { - 0x80, R_KGOKAN, - 0x01, _I, R_KSHUUSI, - 0x02, _KA, _XTU, R_ONBIN1, - 0x12, _RO, _U, R_KAROU, - 0x01, _KI, R_KRENTAI, - 0x01, _KU, R_KRENYOU, - 0x02, _KE, _RE, R_KATEI2, - 0x01, _SA, R_FZKMEISI, - 0xff - }; - -static u_char keiyou3[] = { - 0x80, R_KGOKAN, - 0x01, _I, R_KSHUUSI, - 0x02, _KA, _XTU, R_ONBIN1, - 0x12, _RO, _U, R_KAROU, - 0x01, _KI, R_KRENTAI, - 0x01, _KU, R_KRENYOU, - 0x02, _KE, _RE, R_KATEI2, - 0x01, _GE, R_DMEISI, - 0x11, _DA, R_DSHUUSI1, - 0x21, _XTU, R_ONBIN1, - 0x22, _RO, _U, R_DAROU, - 0x11, _DE, R_DRENYOU1, - 0x11, _NA, R_DRENTAI1, - 0x21, _RA, R_KATEI1, - 0x21, _RI, R_DSHUUSI2, - 0x21, _RU, R_DRENTAI3, - 0x21, _RE, R_KAMEI, - 0x11, _NI, R_DRENYOU2, - 0x01, _SA, R_FZKMEISI, - 0xff - }; - -static u_char keiyou4[] = { - 0x80, R_KGOKAN, - 0x01, _I, R_KSHUUSI, - 0x02, _KA, _XTU, R_ONBIN1, - 0x12, _RO, _U, R_KAROU, - 0x02, _GA, _XTU, R_ONBIN2, - 0x11, _RA, R_MIZEN5, - 0x11, _RI, R_RENYOU5, - 0x11, _RU, R_SHUUSI, - 0x11, _RE, R_KAMEI, - 0x12, _RO, _U, R_AROU, - 0x01, _KI, R_KRENTAI, - 0x01, _KU, R_KRENYOU, - 0x02, _KE, _RE, R_KATEI2, - 0x01, _SA, R_FZKMEISI, - 0xff - }; - -static u_char keiyou5[] = { - 0x80, R_KGOKAN, - 0x01, _I, R_KSHUUSI, - 0x02, _KA, _XTU, R_ONBIN1, - 0x12, _RO, _U, R_KAROU, - 0x02, _GA, _XTU, R_ONBIN2, - 0x11, _RA, R_MIZEN5, - 0x11, _RI, R_RENYOU5, - 0x11, _RU, R_SHUUSI, - 0x11, _RE, R_KAMEI, - 0x12, _RO, _U, R_AROU, - 0x01, _KI, R_KRENTAI, - 0x01, _KU, R_KRENYOU, - 0x02, _KE, _RE, R_KATEI2, - 0x01, _GE, R_DMEISI, - 0x11, _DA, R_DSHUUSI1, - 0x21, _XTU, R_ONBIN1, - 0x22, _RO, _U, R_DAROU, - 0x11, _DE, R_DRENYOU1, - 0x11, _NA, R_DRENTAI1, - 0x21, _RA, R_KATEI1, - 0x21, _RI, R_DSHUUSI2, - 0x21, _RU, R_DRENTAI3, - 0x21, _RE, R_KAMEI, - 0x11, _NI, R_DRENYOU2, - 0x01, _SA, R_FZKMEISI, - 0xff - }; - -static u_char keiyou6[] = { - 0x80, R_KGOKAN, - 0x01, _I, R_KSHUUSI, - 0x02, _KA, _XTU, R_ONBIN1, - 0x12, _RO, _U, R_KAROU, - 0x01, _KI, R_KRENTAI, - 0x01, _KU, R_KRENYOU, - 0x02, _KE, _RE, R_KATEI2, - 0x01, _GE, R_DMEISI, - 0x11, _DA, R_DSHUUSI1, - 0x21, _XTU, R_ONBIN1, - 0x22, _RO, _U, R_DAROU, - 0x11, _DE, R_DRENYOU1, - 0x11, _NA, R_DRENTAI1, - 0x21, _RA, R_KATEI1, - 0x21, _RI, R_DSHUUSI2, - 0x21, _RU, R_DRENTAI3, - 0x21, _RE, R_KAMEI, - 0x11, _NI, R_DRENYOU2, - 0x01, _SA, R_FZKMEISI, - 0x01, _ME, R_DMEISI, - 0x11, _DA, R_DSHUUSI1, - 0x21, _XTU, R_ONBIN1, - 0x22, _RO, _U, R_DAROU, - 0x11, _DE, R_DRENYOU1, - 0x11, _NA, R_DRENTAI1, - 0x21, _RA, R_KATEI1, - 0x21, _RI, R_DSHUUSI2, - 0x21, _RU, R_DRENTAI3, - 0x21, _RE, R_KAMEI, - 0x11, _NI, R_DRENYOU2, - 0xff - }; - -static u_char keiyou7[] = { - 0x80, R_KGOKAN, - 0x01, _I, R_KSHUUSI, - 0x02, _KA, _XTU, R_ONBIN1, - 0x12, _RO, _U, R_KAROU, - 0x02, _GA, _XTU, R_ONBIN2, - 0x11, _RA, R_MIZEN5, - 0x11, _RI, R_RENYOU5, - 0x11, _RU, R_SHUUSI, - 0x11, _RE, R_KAMEI, - 0x12, _RO, _U, R_AROU, - 0x01, _KI, R_KRENTAI, - 0x01, _KU, R_KRENYOU, - 0x02, _KE, _RE, R_KATEI2, - 0x01, _GE, R_DMEISI, - 0x11, _DA, R_DSHUUSI1, - 0x21, _XTU, R_ONBIN1, - 0x22, _RO, _U, R_DAROU, - 0x11, _DE, R_DRENYOU1, - 0x11, _NA, R_DRENTAI1, - 0x21, _RA, R_KATEI1, - 0x21, _RI, R_DSHUUSI2, - 0x21, _RU, R_DRENTAI3, - 0x21, _RE, R_KAMEI, - 0x11, _NI, R_DRENYOU2, - 0x01, _SA, R_FZKMEISI, - 0x01, _ME, R_DMEISI, - 0x11, _DA, R_DSHUUSI1, - 0x21, _XTU, R_ONBIN1, - 0x22, _RO, _U, R_DAROU, - 0x11, _DE, R_DRENYOU1, - 0x11, _NA, R_DRENTAI1, - 0x21, _RA, R_KATEI1, - 0x21, _RI, R_DSHUUSI2, - 0x21, _RU, R_DRENTAI3, - 0x21, _RE, R_KAMEI, - 0x11, _NI, R_DRENYOU2, - 0xff - }; - -static u_char keiyou8[] = { - 0x80, R_KGOKAN, - 0x01, _I, R_KSHUUSI, - 0x02, _KA, _XTU, R_ONBIN1, - 0x12, _RO, _U, R_KAROU, - 0x02, _GA, _XTU, R_ONBIN2, - 0x11, _RA, R_MIZEN5, - 0x11, _RI, R_RENYOU5, - 0x11, _RU, R_SHUUSI, - 0x11, _RE, R_KAMEI, - 0x12, _RO, _U, R_AROU, - 0x01, _KI, R_KRENTAI, - 0x01, _KU, R_KRENYOU, - 0x02, _KE, _RE, R_KATEI2, - 0x01, _GE, R_DMEISI, - 0x11, _DA, R_DSHUUSI1, - 0x21, _XTU, R_ONBIN1, - 0x22, _RO, _U, R_DAROU, - 0x11, _DE, R_DRENYOU1, - 0x11, _NA, R_DRENTAI1, - 0x21, _RA, R_KATEI1, - 0x21, _RI, R_DSHUUSI2, - 0x21, _RU, R_DRENTAI3, - 0x21, _RE, R_KAMEI, - 0x11, _NI, R_DRENYOU2, - 0x01, _SA, R_FZKMEISI, - 0x01, _MI, R_FZKMEISI, - 0x01, _ME, R_DMEISI, - 0x11, _DA, R_DSHUUSI1, - 0x21, _XTU, R_ONBIN1, - 0x22, _RO, _U, R_DAROU, - 0x11, _DE, R_DRENYOU1, - 0x11, _NA, R_DRENTAI1, - 0x21, _RA, R_KATEI1, - 0x21, _RI, R_DSHUUSI2, - 0x21, _RU, R_DRENTAI3, - 0x21, _RE, R_KAMEI, - 0x11, _NI, R_DRENYOU2, - 0xff - }; - -static u_char keiyou9[] = { - 0x80, R_KGOKAN, - 0x01, _I, R_KSHUUSI, - 0x02, _KA, _XTU, R_ONBIN1, - 0x12, _RO, _U, R_KAROU, - 0x02, _GA, _XTU, R_ONBIN2, - 0x11, _RA, R_MIZEN5, - 0x11, _RI, R_RENYOU5, - 0x11, _RU, R_SHUUSI, - 0x11, _RE, R_KAMEI, - 0x12, _RO, _U, R_AROU, - 0x01, _KI, R_KRENTAI, - 0x01, _KU, R_KRENYOU, - 0x02, _KE, _RE, R_KATEI2, - 0x01, _GE, R_DMEISI, - 0x11, _DA, R_DSHUUSI1, - 0x21, _XTU, R_ONBIN1, - 0x22, _RO, _U, R_DAROU, - 0x11, _DE, R_DRENYOU1, - 0x11, _NA, R_DRENTAI1, - 0x21, _RA, R_KATEI1, - 0x21, _RI, R_DSHUUSI2, - 0x21, _RU, R_DRENTAI3, - 0x21, _RE, R_KAMEI, - 0x11, _NI, R_DRENYOU2, - 0x01, _SA, R_FZKMEISI, - 0xff - }; - -static u_char keiyou10[] = { - 0x80, R_KGOKAN, - 0x01, _I, R_KSHUUSI, - 0x02, _KA, _XTU, R_ONBIN1, - 0x12, _RO, _U, R_KAROU, - 0x02, _GA, _XTU, R_ONBIN2, - 0x11, _RA, R_MIZEN5, - 0x11, _RI, R_RENYOU5, - 0x11, _RU, R_SHUUSI, - 0x11, _RE, R_KAMEI, - 0x12, _RO, _U, R_AROU, - 0x01, _KI, R_KRENTAI, - 0x01, _KU, R_KRENYOU, - 0x02, _KE, _RE, R_KATEI2, - 0x01, _GE, R_DMEISI, - 0x11, _DA, R_DSHUUSI1, - 0x21, _XTU, R_ONBIN1, - 0x22, _RO, _U, R_DAROU, - 0x11, _DE, R_DRENYOU1, - 0x11, _NA, R_DRENTAI1, - 0x21, _RA, R_KATEI1, - 0x21, _RI, R_DSHUUSI2, - 0x21, _RU, R_DRENTAI3, - 0x21, _RE, R_KAMEI, - 0x11, _NI, R_DRENYOU2, - 0x01, _SA, R_FZKMEISI, - 0x01, _ME, R_DMEISI, - 0x11, _DA, R_DSHUUSI1, - 0x21, _XTU, R_ONBIN1, - 0x22, _RO, _U, R_DAROU, - 0x11, _DE, R_DRENYOU1, - 0x11, _NA, R_DRENTAI1, - 0x21, _RA, R_KATEI1, - 0x21, _RI, R_DSHUUSI2, - 0x21, _RU, R_DRENTAI3, - 0x21, _RE, R_KAMEI, - 0x11, _NI, R_DRENYOU2, - 0xff - }; - -static u_char keiyou11[] = { - 0x80, R_KGOKAN, - 0x01, _I, R_KSHUUSI, - 0x02, _KA, _XTU, R_ONBIN1, - 0x12, _RO, _U, R_KAROU, - 0x01, _KI, R_KRENTAI, - 0x01, _KU, R_KRENYOU, - 0x02, _KE, _RE, R_KATEI2, - 0x01, _SA, R_FZKMEISI, - 0x01, _MI, R_FZKMEISI, - 0x01, _ME, R_DMEISI, - 0x11, _DA, R_DSHUUSI1, - 0x21, _XTU, R_ONBIN1, - 0x22, _RO, _U, R_DAROU, - 0x11, _DE, R_DRENYOU1, - 0x11, _NA, R_DRENTAI1, - 0x21, _RA, R_KATEI1, - 0x21, _RI, R_DSHUUSI2, - 0x21, _RU, R_DRENTAI3, - 0x21, _RE, R_KAMEI, - 0x11, _NI, R_DRENYOU2, - 0xff - }; - -static u_char keidou1[] = { - 0x80, R_DGOKAN, - 0x01, _DA, R_DSHUUSI1, - 0x11, _XTU, R_ONBIN1, - 0x12, _RO, _U, R_DAROU, - 0x01, _DE, R_DRENYOU1, - 0x01, _NA, R_DRENTAI1, - 0x11, _RA, R_KATEI1, - 0x11, _RI, R_DSHUUSI2, - 0x11, _RU, R_DRENTAI3, - 0x11, _RE, R_KAMEI, - 0x01, _NI, R_DRENYOU2, - 0xff - }; - -static u_char keidou2[] = { - 0x80, R_DGOKAN, - 0x02, _TA, _RU, R_DRENTAI2, - 0x11, _RE, R_KATEI2, - 0x01, _TO, R_DRENYOU3, - 0xff - }; - -static u_char keidou4[] = { - 0x80, R_DGOKAN, - 0x01, _SA, R_FZKMEISI, - 0x01, _DA, R_DSHUUSI1, - 0x11, _XTU, R_ONBIN1, - 0x12, _RO, _U, R_DAROU, - 0x01, _DE, R_DRENYOU1, - 0x01, _NA, R_DRENTAI1, - 0x11, _RA, R_KATEI1, - 0x11, _RI, R_DSHUUSI2, - 0x11, _RU, R_DRENTAI3, - 0x11, _RE, R_KAMEI, - 0x01, _NI, R_DRENYOU2, - 0xff - }; - -static u_char keidou9[] = { - 0x80, R_DGOKAN, - 0x01, _DA, R_DSHUUSI1, - 0x11, _XTU, R_ONBIN1, - 0x12, _RO, _U, R_DAROU, - 0x01, _DE, R_DRENYOU1, - 0x01, _NA, R_DRENTAI1, - 0x11, _RA, R_KATEI1, - 0x11, _RI, R_DSHUUSI2, - 0x11, _RU, R_DRENTAI3, - 0x11, _RE, R_KAMEI, - 0x01, _NI, R_DRENYOU2, - 0x01, _NO, R_CUT, - 0x12, _KO, _TO, R_KOTO, - 0xff - }; - -static u_char sahenmeisi1[] = { - 0x00, R_SMEISI1, - 0x01, _SA, R_MIZEN1, - 0x01, _SI, R_SI1, - 0x11, _RO, R_MEIREI1, - 0x02, _SU, _RU, R_SHUUSI, - 0x25, _KA, _SI, _NA, _I, _KA, R_KA1, - 0x11, _RE, R_KATEI2, - 0x01, _SE, R_MIZEN2, - 0x11, _YO, R_MEIREI2, - 0xff - }; - -static u_char sahenmeisi2[] = { - 0x00, R_SMEISI1, - 0x01, _SA, R_MIZEN1, - 0x01, _SI, R_SI1, - 0x11, _RO, R_MEIREI1, - 0x02, _SU, _RU, R_SHUUSI, - 0x25, _KA, _SI, _NA, _I, _KA, R_KA1, - 0x11, _RE, R_KATEI2, - 0x01, _SE, R_MIZEN2, - 0x11, _YO, R_MEIREI2, - 0xff - }; - -static u_char keidoumeisi[] = { - 0x00, R_DMEISI, - 0x01, _SA, R_FZKMEISI, - 0x01, _DA, R_DSHUUSI1, - 0x11, _XTU, R_ONBIN1, - 0x12, _RO, _U, R_DAROU, - 0x01, _DE, R_DRENYOU1, - 0x01, _NA, R_DRENTAI1, - 0x11, _RA, R_KATEI1, - 0x11, _RI, R_DSHUUSI2, - 0x11, _RU, R_DRENTAI3, - 0x11, _RE, R_KAMEI, - 0x01, _NI, R_DRENYOU2, - 0xff - }; - -static u_char keiyoustb[] = { - 0x00, R_KSTB, - 0x01, _I, R_KSHUUSI, - 0x02, _KA, _XTU, R_ONBIN1, - 0x12, _RO, _U, R_KAROU, - 0x01, _KI, R_KRENTAI, - 0x01, _KU, R_KRENYOU, - 0x02, _KE, _RE, R_KATEI2, - 0xff - }; - -static u_char ichistb[] = { - 0x00, R_ICHISETUBI, - 0x01, _YO, R_MEIREI2, - 0x01, _RU, R_SHUUSI, - 0x01, _RE, R_KATEI2, - 0x01, _RO, R_MEIREI1, - 0xff - }; - -static u_char fukusi2[] = { - 0x00, R_FUKUSI, - 0x01, _TO, R_F_FUKUSI, - 0x11, _SI, R_SI1, - 0x11, _HA, R_F_FUKUSI, - 0xff - }; - -static u_char fukusi3[] = { - 0x00, R_FUKUSI, - 0x01, _SA, R_MIZEN1, - 0x01, _SI, R_SI1, - 0x11, _RO, R_MEIREI1, - 0x02, _SU, _RU, R_SHUUSI, - 0x25, _KA, _SI, _NA, _I, _KA, R_KA1, - 0x11, _RE, R_KATEI2, - 0x01, _SE, R_MIZEN2, - 0x11, _YO, R_MEIREI2, - 0x01, _TO, R_F_FUKUSI, - 0x11, _SI, R_SI1, - 0x11, _HA, R_F_FUKUSI, - 0xff - }; - -static u_char fukusi4[] = { - 0x00, R_FUKUSI, - 0x01, _SA, R_MIZEN1, - 0x01, _SI, R_SI1, - 0x11, _RO, R_MEIREI1, - 0x02, _SU, _RU, R_SHUUSI, - 0x25, _KA, _SI, _NA, _I, _KA, R_KA1, - 0x11, _RE, R_KATEI2, - 0x01, _SE, R_MIZEN2, - 0x11, _YO, R_MEIREI2, - 0xff - }; - -static u_char fukusi5[] = { - 0x00, R_FUKUSI, - 0x01, _NI, R_F_FUKUSI, - 0xff - }; - -static u_char fukusi6[] = { - 0x00, R_FUKUSI, - 0x01, _MO, R_F_FUKUSI, - 0xff - }; - -static u_char fukusi7[] = { - 0x00, R_FUKUSI, - 0x01, _NO, R_F_FUKUSI, - 0xff - }; - -static u_char fukusi8[] = { - 0x00, R_FUKUSI, - 0x01, _DA, R_DSHUUSI1, - 0x11, _XTU, R_ONBIN1, - 0x02, _DE, _SI, R_DESHI, - 0x21, _XYO, R_SHO, - 0x31, _U, R_DESHOU, - 0x11, _SU, R_DESU, - 0x01, _TO, R_F_FUKUSI, - 0x11, _SI, R_SI1, - 0x11, _HA, R_F_FUKUSI, - 0xff - }; - -static u_char fukusi9[] = { - 0x00, R_FUKUSI, - 0x01, _SA, R_MIZEN1, - 0x01, _SI, R_SI1, - 0x11, _RO, R_MEIREI1, - 0x02, _SU, _RU, R_SHUUSI, - 0x25, _KA, _SI, _NA, _I, _KA, R_KA1, - 0x11, _RE, R_KATEI2, - 0x01, _SE, R_MIZEN2, - 0x11, _YO, R_MEIREI2, - 0x01, _DA, R_DSHUUSI1, - 0x11, _XTU, R_ONBIN1, - 0x02, _DE, _SI, R_DESHI, - 0x21, _XYO, R_SHO, - 0x31, _U, R_DESHOU, - 0x11, _SU, R_DESU, - 0x01, _TO, R_F_FUKUSI, - 0x11, _SI, R_SI1, - 0x11, _HA, R_F_FUKUSI, - 0x01, _NO, R_F_FUKUSI, - 0xff - }; - -u_char *conjadr[] = { - 0, - 0, - 0, - 0, - 0, - sahenmeisi1, - sahenmeisi1, - sahenmeisi2, - keidoumeisi, - keidoumeisi, - keidoumeisi, - 0, - - 0, - 0, - 0, - sahenmeisi1, - keidoumeisi, - 0, - - 0, - 0, - 0, - - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - - 0, - 0, - 0, - 0, - 0, - - 0, - 0, - 0, - 0, - keiyoustb, - keidoumeisi, - sahenmeisi1, - ichistb, - 0, - - 0, - fukusi2, - fukusi3, - fukusi4, - fukusi5, - fukusi6, - fukusi7, - fukusi8, - fukusi9, - 0, - 0, - 0, - 0, - 0, - 0, - - keiyou1, - keiyou2, - keiyou3, - keiyou4, - keiyou5, - keiyou6, - keiyou7, - keiyou8, - keiyou9, - keiyou10, - keiyou11, - - keidou1, - keidou2, - keidou1, - keidou4, - keidou4, - keidou1, - keidou4, - keidou1, - keidou9, - - sahencnj, - zahencnj, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - - ichicnj1, - ka5cnj1, - ga5cnj1, - sa5cnj1, - ta5cnj1, - na5cnj, - ba5cnj1, - ma5cnj1, - ra5cnj1, - wa5cnj1, - - ichicnj1, - ka5cnj1, - ga5cnj1, - sa5cnj1, - ta5cnj1, - ba5cnj1, - ma5cnj1, - ra5cnj1, - wa5cnj1, - 0, - 0, - - ka5cnj5, - ga5cnj5, - sa5cnj5, - ta5cnj5, - ba5cnj5, - ma5cnj5, - ra5cnj5, - wa5cnj5, - 0, - 0, - - ka5cnj5, - ga5cnj5, - sa5cnj5, - ta5cnj5, - ba5cnj5, - ma5cnj5, - ra5cnj5, - wa5cnj5, - 0, - - ichicnj3, - ka5cnj3, - ga5cnj3, - sa5cnj3, - ta5cnj3, - ba5cnj3, - ma5cnj3, - ra5cnj3, - wa5cnj3, - 0, - - ichicnj3, - ka5cnj3, - ga5cnj3, - sa5cnj3, - ta5cnj3, - ba5cnj3, - ma5cnj3, - ra5cnj3, - wa5cnj3, - 0, - 0, - - ka5cnj7, - ga5cnj7, - sa5cnj7, - ta5cnj7, - ba5cnj7, - ma5cnj7, - ra5cnj7, - wa5cnj7, - 0, - 0, - - ka5cnj7, - ga5cnj7, - sa5cnj7, - ta5cnj7, - ba5cnj7, - ma5cnj7, - ra5cnj7, - wa5cnj7, - 0, - 0, - - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0 -}; +static u_char sahencnj[] = { + 0x00, R_SGOKAN, + 0x01, _SA, R_MIZEN1, + 0x01, _SI, R_SI1, + 0x11, _RO, R_MEIREI1, + 0x02, _SU, _RU, R_SHUUSI, + 0x25, _KA, _SI, _NA, _I, _KA, R_KA1, + 0x11, _RE, R_KATEI2, + 0x01, _SE, R_MIZEN2, + 0x12, _NA, _I, R_NAI, + 0x31, _DE, R_NAIDE, + 0x22, _KA, _XTU, R_ONBIN1, + 0x32, _RO, _U, R_KAROU, + 0x21, _KU, R_NAKU, + 0x22, _KE, _RE, R_KATEI3, + 0x12, _RA, _RE, R_RARE, + 0x31, _YO, R_MEIREI2, + 0x31, _RU, R_SHUUSI, + 0x31, _RE, R_KATEI2, + 0x31, _RO, R_MEIREI1, + 0x11, _YO, R_MEIREI2, + 0xff}; + +static u_char zahencnj[] = { + 0x00, R_CUT, + 0x01, _ZI, R_JI, + 0x11, _YO, R_MEIREI2, + 0x11, _RU, R_SHUUSI, + 0x11, _RE, R_KATEI2, + 0x11, _RO, R_MEIREI1, + 0x02, _ZU, _RU, R_SHUUSI, + 0x11, _RE, R_KATEI2, + 0x01, _ZE, R_MIZEN3, + 0x11, _YO, R_MEIREI2, + 0xff}; + +static u_char ka5cnj1[] = { + 0x01, _I, R_ONBIN2, + 0x01, _KA, R_MIZEN5, + 0x01, _KI, R_RENYOU5, + 0x01, _KU, R_SHUUSI, + 0x01, _KE, R_KAMEI, + 0x02, _KO, _U, R_AROU, + 0xff}; + +static u_char ka5cnj3[] = { + 0x01, _I, R_ONBIN2, + 0x01, _KA, R_MIZEN5, + 0x01, _KI, R_RENYOU7, + 0x01, _KU, R_SHUUSI, + 0x01, _KE, R_KAMEI, + 0x02, _KO, _U, R_AROU, + 0xff}; + +static u_char ka5cnj5[] = { + 0x01, _I, R_ONBIN2, + 0x01, _KA, R_MIZEN5, + 0x11, _SA, R_MIZEN5, + 0x11, _SI, R_SA5RENYOU3, + 0x11, _SU, R_SHUUSI, + 0x12, _SO, _U, R_AROU, + 0x01, _KI, R_RENYOU5, + 0x01, _KU, R_SHUUSI, + 0x01, _KE, R_EXP, + 0x11, _RU, R_SHUUSI, + 0x11, _RE, R_KATEI2, + 0x02, _KO, _U, R_AROU, + 0xff}; + +static u_char ka5cnj7[] = { + 0x01, _I, R_ONBIN2, + 0x01, _KA, R_MIZEN5, + 0x11, _SA, R_MIZEN5, + 0x11, _SI, R_SA5RENYOU3, + 0x11, _SU, R_SHUUSI, + 0x12, _SO, _U, R_AROU, + 0x01, _KI, R_RENYOU7, + 0x01, _KU, R_SHUUSI, + 0x01, _KE, R_EXP, + 0x11, _RU, R_SHUUSI, + 0x11, _RE, R_KATEI2, + 0x02, _KO, _U, R_AROU, + 0xff}; + +static u_char ga5cnj1[] = { + 0x01, _I, R_ONBIN3, + 0x01, _GA, R_MIZEN5, + 0x01, _GI, R_RENYOU5, + 0x01, _GU, R_SHUUSI, + 0x01, _GE, R_KAMEI, + 0x02, _GO, _U, R_AROU, + 0xff}; + +static u_char ga5cnj3[] = { + 0x01, _I, R_ONBIN3, + 0x01, _GA, R_MIZEN5, + 0x01, _GI, R_RENYOU7, + 0x01, _GU, R_SHUUSI, + 0x01, _GE, R_KAMEI, + 0x02, _GO, _U, R_AROU, + 0xff}; + +static u_char ga5cnj5[] = { + 0x01, _I, R_ONBIN3, + 0x01, _GA, R_MIZEN5, + 0x11, _SA, R_MIZEN5, + 0x11, _SI, R_SA5RENYOU3, + 0x11, _SU, R_SHUUSI, + 0x12, _SO, _U, R_AROU, + 0x01, _GI, R_RENYOU5, + 0x01, _GU, R_SHUUSI, + 0x01, _GE, R_EXP, + 0x11, _RU, R_SHUUSI, + 0x11, _RE, R_KATEI2, + 0x02, _GO, _U, R_AROU, + 0xff}; + +static u_char ga5cnj7[] = { + 0x01, _I, R_ONBIN3, + 0x01, _GA, R_MIZEN5, + 0x11, _SA, R_MIZEN5, + 0x11, _SI, R_SA5RENYOU3, + 0x11, _SU, R_SHUUSI, + 0x12, _SO, _U, R_AROU, + 0x01, _GI, R_RENYOU7, + 0x01, _GU, R_SHUUSI, + 0x01, _GE, R_EXP, + 0x11, _RU, R_SHUUSI, + 0x11, _RE, R_KATEI2, + 0x02, _GO, _U, R_AROU, + 0xff}; + +static u_char sa5cnj1[] = { + 0x01, _SA, R_MIZEN5, + 0x01, _SI, R_SA5RENYOU1, + 0x01, _SU, R_SHUUSI, + 0x01, _SE, R_KAMEI, + 0x02, _SO, _U, R_AROU, + 0xff}; + +static u_char sa5cnj3[] = { + 0x01, _SA, R_MIZEN5, + 0x01, _SI, R_SA5RENYOU3, + 0x01, _SU, R_SHUUSI, + 0x01, _SE, R_KAMEI, + 0x02, _SO, _U, R_AROU, + 0xff}; + +static u_char sa5cnj5[] = { + 0x01, _SA, R_MIZEN5, + 0x01, _SI, R_SA5RENYOU1, + 0x01, _SU, R_SHUUSI, + 0x01, _SE, R_EXP, + 0x11, _RU, R_SHUUSI, + 0x11, _RE, R_KATEI2, + 0x02, _SO, _U, R_AROU, + 0xff}; + +static u_char sa5cnj7[] = { + 0x01, _SA, R_MIZEN5, + 0x01, _SI, R_SA5RENYOU3, + 0x01, _SU, R_SHUUSI, + 0x01, _SE, R_EXP, + 0x11, _RU, R_SHUUSI, + 0x11, _RE, R_KATEI2, + 0x02, _SO, _U, R_AROU, + 0xff}; + +static u_char ta5cnj1[] = { + 0x01, _TA, R_MIZEN5, + 0x01, _TI, R_RENYOU5, + 0x01, _XTU, R_ONBIN2, + 0x01, _TU, R_SHUUSI, + 0x01, _TE, R_KAMEI, + 0x02, _TO, _U, R_AROU, + 0xff}; + +static u_char ta5cnj3[] = { + 0x01, _TA, R_MIZEN5, + 0x01, _TI, R_RENYOU7, + 0x01, _XTU, R_ONBIN2, + 0x01, _TU, R_SHUUSI, + 0x01, _TE, R_KAMEI, + 0x02, _TO, _U, R_AROU, + 0xff}; + +static u_char ta5cnj5[] = { + 0x01, _TA, R_MIZEN5, + 0x11, _SA, R_MIZEN5, + 0x11, _SI, R_SA5RENYOU3, + 0x11, _SU, R_SHUUSI, + 0x12, _SO, _U, R_AROU, + 0x01, _TI, R_RENYOU5, + 0x01, _XTU, R_ONBIN2, + 0x01, _TU, R_SHUUSI, + 0x01, _TE, R_EXP, + 0x11, _RU, R_SHUUSI, + 0x11, _RE, R_KATEI2, + 0x02, _TO, _U, R_AROU, + 0xff}; + +static u_char ta5cnj7[] = { + 0x01, _TA, R_MIZEN5, + 0x11, _SA, R_MIZEN5, + 0x11, _SI, R_SA5RENYOU3, + 0x11, _SU, R_SHUUSI, + 0x12, _SO, _U, R_AROU, + 0x01, _TI, R_RENYOU7, + 0x01, _XTU, R_ONBIN2, + 0x01, _TU, R_SHUUSI, + 0x01, _TE, R_EXP, + 0x11, _RU, R_SHUUSI, + 0x11, _RE, R_KATEI2, + 0x02, _TO, _U, R_AROU, + 0xff}; + +static u_char na5cnj[] = { + 0x01, _NA, R_MIZEN5, + 0x01, _NI, R_RENYOU5, + 0x01, _NU, R_SHUUSI, + 0x01, _NE, R_KAMEI, + 0x02, _NO, _U, R_AROU, + 0x01, _NN, R_ONBIN3, + 0xff}; + +static u_char ba5cnj1[] = { + 0x01, _BA, R_MIZEN5, + 0x01, _BI, R_RENYOU5, + 0x01, _BU, R_SHUUSI, + 0x01, _BE, R_KAMEI, + 0x02, _BO, _U, R_AROU, + 0x01, _NN, R_ONBIN3, + 0xff}; + +static u_char ba5cnj3[] = { + 0x01, _BA, R_MIZEN5, + 0x01, _BI, R_RENYOU7, + 0x01, _BU, R_SHUUSI, + 0x01, _BE, R_KAMEI, + 0x02, _BO, _U, R_AROU, + 0x01, _NN, R_ONBIN3, + 0xff}; + +static u_char ba5cnj5[] = { + 0x01, _BA, R_MIZEN5, + 0x11, _SA, R_MIZEN5, + 0x11, _SI, R_SA5RENYOU3, + 0x11, _SU, R_SHUUSI, + 0x12, _SO, _U, R_AROU, + 0x01, _BI, R_RENYOU5, + 0x01, _BU, R_SHUUSI, + 0x01, _BE, R_EXP, + 0x11, _RU, R_SHUUSI, + 0x11, _RE, R_KATEI2, + 0x02, _BO, _U, R_AROU, + 0x01, _NN, R_ONBIN3, + 0xff}; + +static u_char ba5cnj7[] = { + 0x01, _BA, R_MIZEN5, + 0x11, _SA, R_MIZEN5, + 0x11, _SI, R_SA5RENYOU3, + 0x11, _SU, R_SHUUSI, + 0x12, _SO, _U, R_AROU, + 0x01, _BI, R_RENYOU7, + 0x01, _BU, R_SHUUSI, + 0x01, _BE, R_EXP, + 0x11, _RU, R_SHUUSI, + 0x11, _RE, R_KATEI2, + 0x02, _BO, _U, R_AROU, + 0x01, _NN, R_ONBIN3, + 0xff}; + +static u_char ma5cnj1[] = { + 0x01, _MA, R_MIZEN5, + 0x01, _MI, R_RENYOU5, + 0x01, _MU, R_SHUUSI, + 0x01, _ME, R_KAMEI, + 0x02, _MO, _U, R_AROU, + 0x01, _NN, R_ONBIN3, + 0xff}; + +static u_char ma5cnj3[] = { + 0x01, _MA, R_MIZEN5, + 0x01, _MI, R_RENYOU7, + 0x01, _MU, R_SHUUSI, + 0x01, _ME, R_KAMEI, + 0x02, _MO, _U, R_AROU, + 0x01, _NN, R_ONBIN3, + 0xff}; + +static u_char ma5cnj5[] = { + 0x01, _MA, R_MIZEN5, + 0x11, _SA, R_MIZEN5, + 0x11, _SI, R_SA5RENYOU3, + 0x11, _SU, R_SHUUSI, + 0x12, _SO, _U, R_AROU, + 0x01, _MI, R_RENYOU5, + 0x01, _MU, R_SHUUSI, + 0x01, _ME, R_EXP, + 0x11, _RU, R_SHUUSI, + 0x11, _RE, R_KATEI2, + 0x02, _MO, _U, R_AROU, + 0x01, _NN, R_ONBIN3, + 0xff}; + +static u_char ma5cnj7[] = { + 0x01, _MA, R_MIZEN5, + 0x11, _SA, R_MIZEN5, + 0x11, _SI, R_SA5RENYOU3, + 0x11, _SU, R_SHUUSI, + 0x12, _SO, _U, R_AROU, + 0x01, _MI, R_RENYOU7, + 0x01, _MU, R_SHUUSI, + 0x01, _ME, R_EXP, + 0x11, _RU, R_SHUUSI, + 0x11, _RE, R_KATEI2, + 0x02, _MO, _U, R_AROU, + 0x01, _NN, R_ONBIN3, + 0xff}; + +static u_char ra5cnj1[] = { + 0x01, _XTU, R_ONBIN2, + 0x01, _RA, R_MIZEN5, + 0x01, _RI, R_RENYOU5, + 0x01, _RU, R_SHUUSI, + 0x01, _RE, R_KAMEI, + 0x02, _RO, _U, R_AROU, + 0xff}; + +static u_char ra5cnj3[] = { + 0x01, _XTU, R_ONBIN2, + 0x01, _RA, R_MIZEN5, + 0x01, _RI, R_RENYOU7, + 0x01, _RU, R_SHUUSI, + 0x01, _RE, R_KAMEI, + 0x02, _RO, _U, R_AROU, + 0xff}; + +static u_char ra5cnj5[] = { + 0x01, _XTU, R_ONBIN2, + 0x01, _RA, R_MIZEN5, + 0x11, _SA, R_MIZEN5, + 0x11, _SI, R_SA5RENYOU3, + 0x11, _SU, R_SHUUSI, + 0x12, _SO, _U, R_AROU, + 0x01, _RI, R_RENYOU5, + 0x01, _RU, R_SHUUSI, + 0x01, _RE, R_EXP, + 0x11, _RU, R_SHUUSI, + 0x11, _RE, R_KATEI2, + 0x02, _RO, _U, R_AROU, + 0xff}; + +static u_char ra5cnj7[] = { + 0x01, _XTU, R_ONBIN2, + 0x01, _RA, R_MIZEN5, + 0x11, _SA, R_MIZEN5, + 0x11, _SI, R_SA5RENYOU3, + 0x11, _SU, R_SHUUSI, + 0x12, _SO, _U, R_AROU, + 0x01, _RI, R_RENYOU7, + 0x01, _RU, R_SHUUSI, + 0x01, _RE, R_EXP, + 0x11, _RU, R_SHUUSI, + 0x11, _RE, R_KATEI2, + 0x02, _RO, _U, R_AROU, + 0xff}; + +static u_char wa5cnj1[] = { + 0x01, _I, R_RENYOU5, + 0x01, _U, R_SHUUSI, + 0x01, _E, R_KAMEI, + 0x02, _O, _U, R_AROU, + 0x01, _XTU, R_ONBIN2, + 0x01, _WA, R_MIZEN5, + 0xff}; + +static u_char wa5cnj3[] = { + 0x01, _I, R_RENYOU7, + 0x01, _U, R_SHUUSI, + 0x01, _E, R_KAMEI, + 0x02, _O, _U, R_AROU, + 0x01, _XTU, R_ONBIN2, + 0x01, _WA, R_MIZEN5, + 0xff}; + +static u_char wa5cnj5[] = { + 0x01, _I, R_RENYOU5, + 0x01, _U, R_SHUUSI, + 0x01, _E, R_EXP, + 0x11, _RU, R_SHUUSI, + 0x11, _RE, R_KATEI2, + 0x02, _O, _U, R_AROU, + 0x01, _XTU, R_ONBIN2, + 0x01, _WA, R_MIZEN5, + 0x11, _SA, R_MIZEN5, + 0x11, _SI, R_SA5RENYOU3, + 0x11, _SU, R_SHUUSI, + 0x12, _SO, _U, R_AROU, + 0xff}; + +static u_char wa5cnj7[] = { + 0x01, _I, R_RENYOU7, + 0x01, _U, R_SHUUSI, + 0x01, _E, R_EXP, + 0x11, _RU, R_SHUUSI, + 0x11, _RE, R_KATEI2, + 0x02, _O, _U, R_AROU, + 0x01, _XTU, R_ONBIN2, + 0x01, _WA, R_MIZEN5, + 0x11, _SA, R_MIZEN5, + 0x11, _SI, R_SA5RENYOU3, + 0x11, _SU, R_SHUUSI, + 0x12, _SO, _U, R_AROU, + 0xff}; + +static u_char ichicnj1[] = { + 0x00, R_RENYOU1, + 0x01, _YO, R_MEIREI2, + 0x01, _RU, R_SHUUSI, + 0x01, _RE, R_KATEI2, + 0x01, _RO, R_MEIREI1, + 0xff}; + +static u_char ichicnj3[] = { + 0x00, R_RENYOU3, + 0x01, _YO, R_MEIREI2, + 0x01, _RU, R_SHUUSI, + 0x01, _RE, R_KATEI2, + 0x01, _RO, R_MEIREI1, + 0xff}; + +static u_char keiyou1[] = { + 0x80, R_KGOKAN, + 0x01, _I, R_KSHUUSI, + 0x02, _KA, _XTU, R_ONBIN1, + 0x12, _RO, _U, R_KAROU, + 0x01, _KI, R_KRENTAI, + 0x01, _KU, R_KRENYOU, + 0x02, _KE, _RE, R_KATEI2, + 0xff}; + +static u_char keiyou2[] = { + 0x80, R_KGOKAN, + 0x01, _I, R_KSHUUSI, + 0x02, _KA, _XTU, R_ONBIN1, + 0x12, _RO, _U, R_KAROU, + 0x01, _KI, R_KRENTAI, + 0x01, _KU, R_KRENYOU, + 0x02, _KE, _RE, R_KATEI2, + 0x01, _SA, R_FZKMEISI, + 0xff}; + +static u_char keiyou3[] = { + 0x80, R_KGOKAN, + 0x01, _I, R_KSHUUSI, + 0x02, _KA, _XTU, R_ONBIN1, + 0x12, _RO, _U, R_KAROU, + 0x01, _KI, R_KRENTAI, + 0x01, _KU, R_KRENYOU, + 0x02, _KE, _RE, R_KATEI2, + 0x01, _GE, R_DMEISI, + 0x11, _DA, R_DSHUUSI1, + 0x21, _XTU, R_ONBIN1, + 0x22, _RO, _U, R_DAROU, + 0x11, _DE, R_DRENYOU1, + 0x11, _NA, R_DRENTAI1, + 0x21, _RA, R_KATEI1, + 0x21, _RI, R_DSHUUSI2, + 0x21, _RU, R_DRENTAI3, + 0x21, _RE, R_KAMEI, + 0x11, _NI, R_DRENYOU2, + 0x01, _SA, R_FZKMEISI, + 0xff}; + +static u_char keiyou4[] = { + 0x80, R_KGOKAN, + 0x01, _I, R_KSHUUSI, + 0x02, _KA, _XTU, R_ONBIN1, + 0x12, _RO, _U, R_KAROU, + 0x02, _GA, _XTU, R_ONBIN2, + 0x11, _RA, R_MIZEN5, + 0x11, _RI, R_RENYOU5, + 0x11, _RU, R_SHUUSI, + 0x11, _RE, R_KAMEI, + 0x12, _RO, _U, R_AROU, + 0x01, _KI, R_KRENTAI, + 0x01, _KU, R_KRENYOU, + 0x02, _KE, _RE, R_KATEI2, + 0x01, _SA, R_FZKMEISI, + 0xff}; + +static u_char keiyou5[] = { + 0x80, R_KGOKAN, + 0x01, _I, R_KSHUUSI, + 0x02, _KA, _XTU, R_ONBIN1, + 0x12, _RO, _U, R_KAROU, + 0x02, _GA, _XTU, R_ONBIN2, + 0x11, _RA, R_MIZEN5, + 0x11, _RI, R_RENYOU5, + 0x11, _RU, R_SHUUSI, + 0x11, _RE, R_KAMEI, + 0x12, _RO, _U, R_AROU, + 0x01, _KI, R_KRENTAI, + 0x01, _KU, R_KRENYOU, + 0x02, _KE, _RE, R_KATEI2, + 0x01, _GE, R_DMEISI, + 0x11, _DA, R_DSHUUSI1, + 0x21, _XTU, R_ONBIN1, + 0x22, _RO, _U, R_DAROU, + 0x11, _DE, R_DRENYOU1, + 0x11, _NA, R_DRENTAI1, + 0x21, _RA, R_KATEI1, + 0x21, _RI, R_DSHUUSI2, + 0x21, _RU, R_DRENTAI3, + 0x21, _RE, R_KAMEI, + 0x11, _NI, R_DRENYOU2, + 0x01, _SA, R_FZKMEISI, + 0xff}; + +static u_char keiyou6[] = { + 0x80, R_KGOKAN, + 0x01, _I, R_KSHUUSI, + 0x02, _KA, _XTU, R_ONBIN1, + 0x12, _RO, _U, R_KAROU, + 0x01, _KI, R_KRENTAI, + 0x01, _KU, R_KRENYOU, + 0x02, _KE, _RE, R_KATEI2, + 0x01, _GE, R_DMEISI, + 0x11, _DA, R_DSHUUSI1, + 0x21, _XTU, R_ONBIN1, + 0x22, _RO, _U, R_DAROU, + 0x11, _DE, R_DRENYOU1, + 0x11, _NA, R_DRENTAI1, + 0x21, _RA, R_KATEI1, + 0x21, _RI, R_DSHUUSI2, + 0x21, _RU, R_DRENTAI3, + 0x21, _RE, R_KAMEI, + 0x11, _NI, R_DRENYOU2, + 0x01, _SA, R_FZKMEISI, + 0x01, _ME, R_DMEISI, + 0x11, _DA, R_DSHUUSI1, + 0x21, _XTU, R_ONBIN1, + 0x22, _RO, _U, R_DAROU, + 0x11, _DE, R_DRENYOU1, + 0x11, _NA, R_DRENTAI1, + 0x21, _RA, R_KATEI1, + 0x21, _RI, R_DSHUUSI2, + 0x21, _RU, R_DRENTAI3, + 0x21, _RE, R_KAMEI, + 0x11, _NI, R_DRENYOU2, + 0xff}; + +static u_char keiyou7[] = { + 0x80, R_KGOKAN, + 0x01, _I, R_KSHUUSI, + 0x02, _KA, _XTU, R_ONBIN1, + 0x12, _RO, _U, R_KAROU, + 0x02, _GA, _XTU, R_ONBIN2, + 0x11, _RA, R_MIZEN5, + 0x11, _RI, R_RENYOU5, + 0x11, _RU, R_SHUUSI, + 0x11, _RE, R_KAMEI, + 0x12, _RO, _U, R_AROU, + 0x01, _KI, R_KRENTAI, + 0x01, _KU, R_KRENYOU, + 0x02, _KE, _RE, R_KATEI2, + 0x01, _GE, R_DMEISI, + 0x11, _DA, R_DSHUUSI1, + 0x21, _XTU, R_ONBIN1, + 0x22, _RO, _U, R_DAROU, + 0x11, _DE, R_DRENYOU1, + 0x11, _NA, R_DRENTAI1, + 0x21, _RA, R_KATEI1, + 0x21, _RI, R_DSHUUSI2, + 0x21, _RU, R_DRENTAI3, + 0x21, _RE, R_KAMEI, + 0x11, _NI, R_DRENYOU2, + 0x01, _SA, R_FZKMEISI, + 0x01, _ME, R_DMEISI, + 0x11, _DA, R_DSHUUSI1, + 0x21, _XTU, R_ONBIN1, + 0x22, _RO, _U, R_DAROU, + 0x11, _DE, R_DRENYOU1, + 0x11, _NA, R_DRENTAI1, + 0x21, _RA, R_KATEI1, + 0x21, _RI, R_DSHUUSI2, + 0x21, _RU, R_DRENTAI3, + 0x21, _RE, R_KAMEI, + 0x11, _NI, R_DRENYOU2, + 0xff}; + +static u_char keiyou8[] = { + 0x80, R_KGOKAN, + 0x01, _I, R_KSHUUSI, + 0x02, _KA, _XTU, R_ONBIN1, + 0x12, _RO, _U, R_KAROU, + 0x02, _GA, _XTU, R_ONBIN2, + 0x11, _RA, R_MIZEN5, + 0x11, _RI, R_RENYOU5, + 0x11, _RU, R_SHUUSI, + 0x11, _RE, R_KAMEI, + 0x12, _RO, _U, R_AROU, + 0x01, _KI, R_KRENTAI, + 0x01, _KU, R_KRENYOU, + 0x02, _KE, _RE, R_KATEI2, + 0x01, _GE, R_DMEISI, + 0x11, _DA, R_DSHUUSI1, + 0x21, _XTU, R_ONBIN1, + 0x22, _RO, _U, R_DAROU, + 0x11, _DE, R_DRENYOU1, + 0x11, _NA, R_DRENTAI1, + 0x21, _RA, R_KATEI1, + 0x21, _RI, R_DSHUUSI2, + 0x21, _RU, R_DRENTAI3, + 0x21, _RE, R_KAMEI, + 0x11, _NI, R_DRENYOU2, + 0x01, _SA, R_FZKMEISI, + 0x01, _MI, R_FZKMEISI, + 0x01, _ME, R_DMEISI, + 0x11, _DA, R_DSHUUSI1, + 0x21, _XTU, R_ONBIN1, + 0x22, _RO, _U, R_DAROU, + 0x11, _DE, R_DRENYOU1, + 0x11, _NA, R_DRENTAI1, + 0x21, _RA, R_KATEI1, + 0x21, _RI, R_DSHUUSI2, + 0x21, _RU, R_DRENTAI3, + 0x21, _RE, R_KAMEI, + 0x11, _NI, R_DRENYOU2, + 0xff}; + +static u_char keiyou9[] = { + 0x80, R_KGOKAN, + 0x01, _I, R_KSHUUSI, + 0x02, _KA, _XTU, R_ONBIN1, + 0x12, _RO, _U, R_KAROU, + 0x02, _GA, _XTU, R_ONBIN2, + 0x11, _RA, R_MIZEN5, + 0x11, _RI, R_RENYOU5, + 0x11, _RU, R_SHUUSI, + 0x11, _RE, R_KAMEI, + 0x12, _RO, _U, R_AROU, + 0x01, _KI, R_KRENTAI, + 0x01, _KU, R_KRENYOU, + 0x02, _KE, _RE, R_KATEI2, + 0x01, _GE, R_DMEISI, + 0x11, _DA, R_DSHUUSI1, + 0x21, _XTU, R_ONBIN1, + 0x22, _RO, _U, R_DAROU, + 0x11, _DE, R_DRENYOU1, + 0x11, _NA, R_DRENTAI1, + 0x21, _RA, R_KATEI1, + 0x21, _RI, R_DSHUUSI2, + 0x21, _RU, R_DRENTAI3, + 0x21, _RE, R_KAMEI, + 0x11, _NI, R_DRENYOU2, + 0x01, _SA, R_FZKMEISI, + 0xff}; + +static u_char keiyou10[] = { + 0x80, R_KGOKAN, + 0x01, _I, R_KSHUUSI, + 0x02, _KA, _XTU, R_ONBIN1, + 0x12, _RO, _U, R_KAROU, + 0x02, _GA, _XTU, R_ONBIN2, + 0x11, _RA, R_MIZEN5, + 0x11, _RI, R_RENYOU5, + 0x11, _RU, R_SHUUSI, + 0x11, _RE, R_KAMEI, + 0x12, _RO, _U, R_AROU, + 0x01, _KI, R_KRENTAI, + 0x01, _KU, R_KRENYOU, + 0x02, _KE, _RE, R_KATEI2, + 0x01, _GE, R_DMEISI, + 0x11, _DA, R_DSHUUSI1, + 0x21, _XTU, R_ONBIN1, + 0x22, _RO, _U, R_DAROU, + 0x11, _DE, R_DRENYOU1, + 0x11, _NA, R_DRENTAI1, + 0x21, _RA, R_KATEI1, + 0x21, _RI, R_DSHUUSI2, + 0x21, _RU, R_DRENTAI3, + 0x21, _RE, R_KAMEI, + 0x11, _NI, R_DRENYOU2, + 0x01, _SA, R_FZKMEISI, + 0x01, _ME, R_DMEISI, + 0x11, _DA, R_DSHUUSI1, + 0x21, _XTU, R_ONBIN1, + 0x22, _RO, _U, R_DAROU, + 0x11, _DE, R_DRENYOU1, + 0x11, _NA, R_DRENTAI1, + 0x21, _RA, R_KATEI1, + 0x21, _RI, R_DSHUUSI2, + 0x21, _RU, R_DRENTAI3, + 0x21, _RE, R_KAMEI, + 0x11, _NI, R_DRENYOU2, + 0xff}; + +static u_char keiyou11[] = { + 0x80, R_KGOKAN, + 0x01, _I, R_KSHUUSI, + 0x02, _KA, _XTU, R_ONBIN1, + 0x12, _RO, _U, R_KAROU, + 0x01, _KI, R_KRENTAI, + 0x01, _KU, R_KRENYOU, + 0x02, _KE, _RE, R_KATEI2, + 0x01, _SA, R_FZKMEISI, + 0x01, _MI, R_FZKMEISI, + 0x01, _ME, R_DMEISI, + 0x11, _DA, R_DSHUUSI1, + 0x21, _XTU, R_ONBIN1, + 0x22, _RO, _U, R_DAROU, + 0x11, _DE, R_DRENYOU1, + 0x11, _NA, R_DRENTAI1, + 0x21, _RA, R_KATEI1, + 0x21, _RI, R_DSHUUSI2, + 0x21, _RU, R_DRENTAI3, + 0x21, _RE, R_KAMEI, + 0x11, _NI, R_DRENYOU2, + 0xff}; + +static u_char keidou1[] = { + 0x80, R_DGOKAN, + 0x01, _DA, R_DSHUUSI1, + 0x11, _XTU, R_ONBIN1, + 0x12, _RO, _U, R_DAROU, + 0x01, _DE, R_DRENYOU1, + 0x01, _NA, R_DRENTAI1, + 0x11, _RA, R_KATEI1, + 0x11, _RI, R_DSHUUSI2, + 0x11, _RU, R_DRENTAI3, + 0x11, _RE, R_KAMEI, + 0x01, _NI, R_DRENYOU2, + 0xff}; + +static u_char keidou2[] = { + 0x80, R_DGOKAN, + 0x02, _TA, _RU, R_DRENTAI2, + 0x11, _RE, R_KATEI2, + 0x01, _TO, R_DRENYOU3, + 0xff}; + +static u_char keidou4[] = { + 0x80, R_DGOKAN, + 0x01, _SA, R_FZKMEISI, + 0x01, _DA, R_DSHUUSI1, + 0x11, _XTU, R_ONBIN1, + 0x12, _RO, _U, R_DAROU, + 0x01, _DE, R_DRENYOU1, + 0x01, _NA, R_DRENTAI1, + 0x11, _RA, R_KATEI1, + 0x11, _RI, R_DSHUUSI2, + 0x11, _RU, R_DRENTAI3, + 0x11, _RE, R_KAMEI, + 0x01, _NI, R_DRENYOU2, + 0xff}; + +static u_char keidou9[] = { + 0x80, R_DGOKAN, + 0x01, _DA, R_DSHUUSI1, + 0x11, _XTU, R_ONBIN1, + 0x12, _RO, _U, R_DAROU, + 0x01, _DE, R_DRENYOU1, + 0x01, _NA, R_DRENTAI1, + 0x11, _RA, R_KATEI1, + 0x11, _RI, R_DSHUUSI2, + 0x11, _RU, R_DRENTAI3, + 0x11, _RE, R_KAMEI, + 0x01, _NI, R_DRENYOU2, + 0x01, _NO, R_CUT, + 0x12, _KO, _TO, R_KOTO, + 0xff}; + +static u_char sahenmeisi1[] = { + 0x00, R_SMEISI1, + 0x01, _SA, R_MIZEN1, + 0x01, _SI, R_SI1, + 0x11, _RO, R_MEIREI1, + 0x02, _SU, _RU, R_SHUUSI, + 0x25, _KA, _SI, _NA, _I, _KA, R_KA1, + 0x11, _RE, R_KATEI2, + 0x01, _SE, R_MIZEN2, + 0x11, _YO, R_MEIREI2, + 0xff}; + +static u_char sahenmeisi2[] = { + 0x00, R_SMEISI1, + 0x01, _SA, R_MIZEN1, + 0x01, _SI, R_SI1, + 0x11, _RO, R_MEIREI1, + 0x02, _SU, _RU, R_SHUUSI, + 0x25, _KA, _SI, _NA, _I, _KA, R_KA1, + 0x11, _RE, R_KATEI2, + 0x01, _SE, R_MIZEN2, + 0x11, _YO, R_MEIREI2, + 0xff}; + +static u_char keidoumeisi[] = { + 0x00, R_DMEISI, + 0x01, _SA, R_FZKMEISI, + 0x01, _DA, R_DSHUUSI1, + 0x11, _XTU, R_ONBIN1, + 0x12, _RO, _U, R_DAROU, + 0x01, _DE, R_DRENYOU1, + 0x01, _NA, R_DRENTAI1, + 0x11, _RA, R_KATEI1, + 0x11, _RI, R_DSHUUSI2, + 0x11, _RU, R_DRENTAI3, + 0x11, _RE, R_KAMEI, + 0x01, _NI, R_DRENYOU2, + 0xff}; + +static u_char keiyoustb[] = { + 0x00, R_KSTB, + 0x01, _I, R_KSHUUSI, + 0x02, _KA, _XTU, R_ONBIN1, + 0x12, _RO, _U, R_KAROU, + 0x01, _KI, R_KRENTAI, + 0x01, _KU, R_KRENYOU, + 0x02, _KE, _RE, R_KATEI2, + 0xff}; + +static u_char ichistb[] = { + 0x00, R_ICHISETUBI, + 0x01, _YO, R_MEIREI2, + 0x01, _RU, R_SHUUSI, + 0x01, _RE, R_KATEI2, + 0x01, _RO, R_MEIREI1, + 0xff}; + +static u_char fukusi2[] = { + 0x00, R_FUKUSI, + 0x01, _TO, R_F_FUKUSI, + 0x11, _SI, R_SI1, + 0x11, _HA, R_F_FUKUSI, + 0xff}; + +static u_char fukusi3[] = { + 0x00, R_FUKUSI, + 0x01, _SA, R_MIZEN1, + 0x01, _SI, R_SI1, + 0x11, _RO, R_MEIREI1, + 0x02, _SU, _RU, R_SHUUSI, + 0x25, _KA, _SI, _NA, _I, _KA, R_KA1, + 0x11, _RE, R_KATEI2, + 0x01, _SE, R_MIZEN2, + 0x11, _YO, R_MEIREI2, + 0x01, _TO, R_F_FUKUSI, + 0x11, _SI, R_SI1, + 0x11, _HA, R_F_FUKUSI, + 0xff}; + +static u_char fukusi4[] = { + 0x00, R_FUKUSI, + 0x01, _SA, R_MIZEN1, + 0x01, _SI, R_SI1, + 0x11, _RO, R_MEIREI1, + 0x02, _SU, _RU, R_SHUUSI, + 0x25, _KA, _SI, _NA, _I, _KA, R_KA1, + 0x11, _RE, R_KATEI2, + 0x01, _SE, R_MIZEN2, + 0x11, _YO, R_MEIREI2, + 0xff}; + +static u_char fukusi5[] = { + 0x00, R_FUKUSI, + 0x01, _NI, R_F_FUKUSI, + 0xff}; + +static u_char fukusi6[] = { + 0x00, R_FUKUSI, + 0x01, _MO, R_F_FUKUSI, + 0xff}; + +static u_char fukusi7[] = { + 0x00, R_FUKUSI, + 0x01, _NO, R_F_FUKUSI, + 0xff}; + +static u_char fukusi8[] = { + 0x00, R_FUKUSI, + 0x01, _DA, R_DSHUUSI1, + 0x11, _XTU, R_ONBIN1, + 0x02, _DE, _SI, R_DESHI, + 0x21, _XYO, R_SHO, + 0x31, _U, R_DESHOU, + 0x11, _SU, R_DESU, + 0x01, _TO, R_F_FUKUSI, + 0x11, _SI, R_SI1, + 0x11, _HA, R_F_FUKUSI, + 0xff}; + +static u_char fukusi9[] = { + 0x00, R_FUKUSI, + 0x01, _SA, R_MIZEN1, + 0x01, _SI, R_SI1, + 0x11, _RO, R_MEIREI1, + 0x02, _SU, _RU, R_SHUUSI, + 0x25, _KA, _SI, _NA, _I, _KA, R_KA1, + 0x11, _RE, R_KATEI2, + 0x01, _SE, R_MIZEN2, + 0x11, _YO, R_MEIREI2, + 0x01, _DA, R_DSHUUSI1, + 0x11, _XTU, R_ONBIN1, + 0x02, _DE, _SI, R_DESHI, + 0x21, _XYO, R_SHO, + 0x31, _U, R_DESHOU, + 0x11, _SU, R_DESU, + 0x01, _TO, R_F_FUKUSI, + 0x11, _SI, R_SI1, + 0x11, _HA, R_F_FUKUSI, + 0x01, _NO, R_F_FUKUSI, + 0xff}; + +u_char* conjadr[] = { + 0, + 0, + 0, + 0, + 0, + sahenmeisi1, + sahenmeisi1, + sahenmeisi2, + keidoumeisi, + keidoumeisi, + keidoumeisi, + 0, + + 0, + 0, + 0, + sahenmeisi1, + keidoumeisi, + 0, + + 0, + 0, + 0, + + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + + 0, + 0, + 0, + 0, + 0, + + 0, + 0, + 0, + 0, + keiyoustb, + keidoumeisi, + sahenmeisi1, + ichistb, + 0, + + 0, + fukusi2, + fukusi3, + fukusi4, + fukusi5, + fukusi6, + fukusi7, + fukusi8, + fukusi9, + 0, + 0, + 0, + 0, + 0, + 0, + + keiyou1, + keiyou2, + keiyou3, + keiyou4, + keiyou5, + keiyou6, + keiyou7, + keiyou8, + keiyou9, + keiyou10, + keiyou11, + + keidou1, + keidou2, + keidou1, + keidou4, + keidou4, + keidou1, + keidou4, + keidou1, + keidou9, + + sahencnj, + zahencnj, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + + ichicnj1, + ka5cnj1, + ga5cnj1, + sa5cnj1, + ta5cnj1, + na5cnj, + ba5cnj1, + ma5cnj1, + ra5cnj1, + wa5cnj1, + + ichicnj1, + ka5cnj1, + ga5cnj1, + sa5cnj1, + ta5cnj1, + ba5cnj1, + ma5cnj1, + ra5cnj1, + wa5cnj1, + 0, + 0, + + ka5cnj5, + ga5cnj5, + sa5cnj5, + ta5cnj5, + ba5cnj5, + ma5cnj5, + ra5cnj5, + wa5cnj5, + 0, + 0, + + ka5cnj5, + ga5cnj5, + sa5cnj5, + ta5cnj5, + ba5cnj5, + ma5cnj5, + ra5cnj5, + wa5cnj5, + 0, + + ichicnj3, + ka5cnj3, + ga5cnj3, + sa5cnj3, + ta5cnj3, + ba5cnj3, + ma5cnj3, + ra5cnj3, + wa5cnj3, + 0, + + ichicnj3, + ka5cnj3, + ga5cnj3, + sa5cnj3, + ta5cnj3, + ba5cnj3, + ma5cnj3, + ra5cnj3, + wa5cnj3, + 0, + 0, + + ka5cnj7, + ga5cnj7, + sa5cnj7, + ta5cnj7, + ba5cnj7, + ma5cnj7, + ra5cnj7, + wa5cnj7, + 0, + 0, + + ka5cnj7, + ga5cnj7, + sa5cnj7, + ta5cnj7, + ba5cnj7, + ma5cnj7, + ra5cnj7, + wa5cnj7, + 0, + 0, + + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0}; diff --git a/lib/sj3core/connect.c b/lib/sj3core/connect.c index 02386a9..99b38d3 100644 --- a/lib/sj3core/connect.c +++ b/lib/sj3core/connect.c @@ -1,6 +1,6 @@ /* * Copyright (c) 1991-1994 Sony Corporation - * + * * Permission is hereby granted, free of charge, to any person obtaining * a copy of this software and associated documentation files (the * "Software"), to deal in the Software without restriction, including @@ -8,10 +8,10 @@ * distribute, sublicense, and/or sell copies of the Software, and to * permit persons to whom the Software is furnished to do so, subject to * the following conditions: - * + * * The above copyright notice and this permission notice shall be * included in all copies or substantial portions of the Software. - * + * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. @@ -19,7 +19,7 @@ * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR * THE USE OR OTHER DEALINGS IN THE SOFTWARE. - * + * * Except as contained in this notice, the name of Sony Corporation * shall not be used in advertising or otherwise to promote the sale, use * or other dealings in this Software without prior written authorization @@ -28,8086 +28,7841 @@ */ /* - * $SonyRCSfile: connect.c,v $ - * $SonyRevision: 1.1 $ + * $SonyRCSfile: connect.c,v $ + * $SonyRevision: 1.1 $ * $SonyDate: 1994/06/03 08:01:34 $ */ - - #include "sj_rename.h" #include "sj_typedef.h" #include "sj_connect.h" #include "sj_right.h" -static u_char mizen1[] = { - wo_x+ttatte_x+ttara_x+tte1_x+tte2_x+ppanasi_x+ppoi_x+ue_x, - uti_x+oite_x+okeru_x+ori_x+ka1_x+ka2_x+kai_x+kasira_x, - katagata_x+kadouka_x+kana_x+kane_x+kamo_x+kara1_x+kara2_x+ga1_x, - ga2_x+gatera_x+kiri_x+kuseni_x+kurai_x+gurumi_x+kedo_x+koso_x, - koto_x+sa2_x+sae_x+si2_x+sika_x+sura_x+zutu_x+zo_x, - tame_x+dake_x+dano_x+darake_x+tuite_x+tuki_x+tutu_x+tumori_x, - te1_x+te2_x+teru_x+dearou_x+deru_x+to1_x+to2_x+totte_x, - toiu_x+toori_x+toki_x+tokoro_x+tote_x+tohaie_x+tomo_x+do_x, - doori_x+dokoro_x+dokoroka_x+domo_x+na1_x+naa_x+nagara_x+nazo_x, - nado_x+nari_x+nanka_x+nanzo_x+nante_x+ni1_x+ni2_x+ni3_x, - nite_x+nimo_x+ne1_x+nee_x+no1_x+no2_x+node_x+noni_x, - nomi_x+nominrz_x+ha_x+hazu_x+ba_x+bakari_x+he_x+hou_x, - hoka_x+hodo_x+made_x+mama_x+mo1_x+mo2_x+motte_x+mono_x, - ya1_x+ya2_x+yara_x+yue_x+yo_x+yori_x+wa_x+wake_x, - wane_x+wayo_x+nn1_x+jya_x+tya_x+nagara2_x+wo_s_x, - ze_x+kke_x+n_si_x+deha_x, - - gotosi_x+saseru_x+zaru_x+zu_x+zunba_x+seru_o+souda_x+youtai_x, - denbun_x+ta_x+tai_x+tagaru_x+taru_x+da1_x+da2_x+daxtu_x, - darou_x+de_x+desi_x+desho_x+desu_x+na2_x+nara_x+nai_x, - nu_x+ne2_x+nn2_x+fuuda_x+besi_x+mai_x+masu_x+masure_x, - mase_x+mitaida_x+you_x+youda_x+rasii_x+rareru_x+reru_o+site_x, - - yougen_x+aru_x+ara_x+ari1_x+ari2_x+ari3_x+are1_x+are2_x, - arou_x+ii_x+itasi_x+itadaku_x+iru_x+eru_x+kakeru_x+kaneru_x, - karazu_x+gatai_x+gatida_x+kudasaru_x+gozai_x+sa1_x+si1_x+siro_x, - jyau_x+jimau_x+sugiru_x+subesi_x+suru_x+sure_x+se_x+seyo_x, - tamau_x+tayu_x+timau_x+dekiru_x+naru_x+nasai_x+nasaru_x+nikui_x, - yasui_x+yoi_x+yaru_x+ttarasii_x - }; - -static u_char mizen2[] = { - wo_x+ttatte_x+ttara_x+tte1_x+tte2_x+ppanasi_x+ppoi_x+ue_x, - uti_x+oite_x+okeru_x+ori_x+ka1_x+ka2_x+kai_x+kasira_x, - katagata_x+kadouka_x+kana_x+kane_x+kamo_x+kara1_x+kara2_x+ga1_x, - ga2_x+gatera_x+kiri_x+kuseni_x+kurai_x+gurumi_x+kedo_x+koso_x, - koto_x+sa2_x+sae_x+si2_x+sika_x+sura_x+zutu_x+zo_x, - tame_x+dake_x+dano_x+darake_x+tuite_x+tuki_x+tutu_x+tumori_x, - te1_x+te2_x+teru_x+dearou_x+deru_x+to1_x+to2_x+totte_x, - toiu_x+toori_x+toki_x+tokoro_x+tote_x+tohaie_x+tomo_x+do_x, - doori_x+dokoro_x+dokoroka_x+domo_x+na1_x+naa_x+nagara_x+nazo_x, - nado_x+nari_x+nanka_x+nanzo_x+nante_x+ni1_x+ni2_x+ni3_x, - nite_x+nimo_x+ne1_x+nee_x+no1_x+no2_x+node_x+noni_x, - nomi_x+nominrz_x+ha_x+hazu_x+ba_x+bakari_x+he_x+hou_x, - hoka_x+hodo_x+made_x+mama_x+mo1_x+mo2_x+motte_x+mono_x, - ya1_x+ya2_x+yara_x+yue_x+yo_x+yori_x+wa_x+wake_x, - wane_x+wayo_x+nn1_x+jya_x+tya_x+nagara2_x+wo_s_x, - ze_x+kke_x+n_si_x+deha_x, - - gotosi_x+saseru_x+zaru_o+zu_o+zunba_o+seru_x+souda_x+youtai_x, - denbun_x+ta_x+tai_x+tagaru_x+taru_x+da1_x+da2_x+daxtu_x, - darou_x+de_x+desi_x+desho_x+desu_x+na2_x+nara_x+nai_x, - nu_o+ne2_o+nn2_o+fuuda_x+besi_x+mai_x+masu_x+masure_x, - mase_x+mitaida_x+you_x+youda_x+rasii_x+rareru_x+reru_x+site_x, - - yougen_x+aru_x+ara_x+ari1_x+ari2_x+ari3_x+are1_x+are2_x, - arou_x+ii_x+itasi_x+itadaku_x+iru_x+eru_x+kakeru_x+kaneru_x, - karazu_x+gatai_x+gatida_x+kudasaru_x+gozai_x+sa1_x+si1_x+siro_x, - jyau_x+jimau_x+sugiru_x+subesi_x+suru_x+sure_x+se_x+seyo_x, - tamau_x+tayu_x+timau_x+dekiru_x+naru_x+nasai_x+nasaru_x+nikui_x, - yasui_x+yoi_x+yaru_x+ttarasii_x - }; - -static u_char mizen3[] = { - wo_x+ttatte_x+ttara_x+tte1_x+tte2_x+ppanasi_x+ppoi_x+ue_x, - uti_x+oite_x+okeru_x+ori_x+ka1_x+ka2_x+kai_x+kasira_x, - katagata_x+kadouka_x+kana_x+kane_x+kamo_x+kara1_x+kara2_x+ga1_x, - ga2_x+gatera_x+kiri_x+kuseni_x+kurai_x+gurumi_x+kedo_x+koso_x, - koto_x+sa2_x+sae_x+si2_x+sika_x+sura_x+zutu_x+zo_x, - tame_x+dake_x+dano_x+darake_x+tuite_x+tuki_x+tutu_x+tumori_x, - te1_x+te2_x+teru_x+dearou_x+deru_x+to1_x+to2_x+totte_x, - toiu_x+toori_x+toki_x+tokoro_x+tote_x+tohaie_x+tomo_x+do_x, - doori_x+dokoro_x+dokoroka_x+domo_x+na1_x+naa_x+nagara_x+nazo_x, - nado_x+nari_x+nanka_x+nanzo_x+nante_x+ni1_x+ni2_x+ni3_x, - nite_x+nimo_x+ne1_x+nee_x+no1_x+no2_x+node_x+noni_x, - nomi_x+nominrz_x+ha_x+hazu_x+ba_x+bakari_x+he_x+hou_x, - hoka_x+hodo_x+made_x+mama_x+mo1_x+mo2_x+motte_x+mono_x, - ya1_x+ya2_x+yara_x+yue_x+yo_x+yori_x+wa_x+wake_x, - wane_x+wayo_x+nn1_x+jya_x+tya_x+nagara2_x+wo_s_x, - ze_x+kke_x+n_si_x+deha_x, - - gotosi_x+saseru_x+zaru_o+zu_o+zunba_o+seru_x+souda_x+youtai_x, - denbun_x+ta_x+tai_x+tagaru_x+taru_x+da1_x+da2_x+daxtu_x, - darou_x+de_x+desi_x+desho_x+desu_x+na2_x+nara_x+nai_x, - nu_o+ne2_o+nn2_x+fuuda_x+besi_x+mai_x+masu_x+masure_x, - mase_x+mitaida_x+you_x+youda_x+rasii_x+rareru_o+reru_x+site_x, - - yougen_x+aru_x+ara_x+ari1_x+ari2_x+ari3_x+are1_x+are2_x, - arou_x+ii_x+itasi_x+itadaku_x+iru_x+eru_x+kakeru_x+kaneru_x, - karazu_x+gatai_x+gatida_x+kudasaru_x+gozai_x+sa1_x+si1_x+siro_x, - jyau_x+jimau_x+sugiru_x+subesi_x+suru_x+sure_x+se_x+seyo_x, - tamau_x+tayu_x+timau_x+dekiru_x+naru_x+nasai_x+nasaru_x+nikui_x, - yasui_x+yoi_x+yaru_x+ttarasii_x - }; - -static u_char mizen4[] = { - wo_x+ttatte_x+ttara_x+tte1_x+tte2_x+ppanasi_x+ppoi_x+ue_x, - uti_x+oite_x+okeru_x+ori_x+ka1_x+ka2_x+kai_x+kasira_x, - katagata_x+kadouka_x+kana_x+kane_x+kamo_x+kara1_x+kara2_x+ga1_x, - ga2_x+gatera_x+kiri_x+kuseni_x+kurai_x+gurumi_x+kedo_x+koso_x, - koto_x+sa2_x+sae_x+si2_x+sika_x+sura_x+zutu_x+zo_x, - tame_x+dake_x+dano_x+darake_x+tuite_x+tuki_x+tutu_x+tumori_x, - te1_x+te2_x+teru_x+dearou_x+deru_x+to1_x+to2_x+totte_x, - toiu_x+toori_x+toki_x+tokoro_x+tote_x+tohaie_x+tomo_x+do_x, - doori_x+dokoro_x+dokoroka_x+domo_x+na1_x+naa_x+nagara_x+nazo_x, - nado_x+nari_x+nanka_x+nanzo_x+nante_x+ni1_x+ni2_x+ni3_x, - nite_x+nimo_x+ne1_x+nee_x+no1_x+no2_x+node_x+noni_x, - nomi_x+nominrz_x+ha_x+hazu_x+ba_x+bakari_x+he_x+hou_x, - hoka_x+hodo_x+made_x+mama_x+mo1_x+mo2_x+motte_x+mono_x, - ya1_x+ya2_x+yara_x+yue_x+yo_x+yori_x+wa_x+wake_x, - wane_x+wayo_x+nn1_x+jya_x+tya_x+nagara2_x+wo_s_x, - ze_x+kke_x+n_si_x+deha_x, - - gotosi_x+saseru_x+zaru_o+zu_o+zunba_o+seru_x+souda_x+youtai_x, - denbun_x+ta_x+tai_x+tagaru_x+taru_x+da1_x+da2_x+daxtu_x, - darou_x+de_x+desi_x+desho_x+desu_x+na2_x+nara_x+nai_o, - nu_o+ne2_o+nn2_o+fuuda_x+besi_x+mai_x+masu_x+masure_x, - mase_x+mitaida_x+you_x+youda_x+rasii_x+rareru_x+reru_x+site_x, - - yougen_x+aru_x+ara_x+ari1_x+ari2_x+ari3_x+are1_x+are2_x, - arou_x+ii_x+itasi_x+itadaku_x+iru_x+eru_x+kakeru_x+kaneru_x, - karazu_x+gatai_x+gatida_x+kudasaru_x+gozai_x+sa1_x+si1_x+siro_x, - jyau_x+jimau_x+sugiru_x+subesi_x+suru_x+sure_x+se_x+seyo_x, - tamau_x+tayu_x+timau_x+dekiru_x+naru_x+nasai_x+nasaru_x+nikui_x, - yasui_x+yoi_x+yaru_x+ttarasii_x - }; - -static u_char mizen5[] = { - wo_x+ttatte_x+ttara_x+tte1_x+tte2_x+ppanasi_x+ppoi_x+ue_x, - uti_x+oite_x+okeru_x+ori_x+ka1_x+ka2_x+kai_x+kasira_x, - katagata_x+kadouka_x+kana_x+kane_x+kamo_x+kara1_x+kara2_x+ga1_x, - ga2_x+gatera_x+kiri_x+kuseni_x+kurai_x+gurumi_x+kedo_x+koso_x, - koto_x+sa2_x+sae_x+si2_x+sika_x+sura_x+zutu_x+zo_x, - tame_x+dake_x+dano_x+darake_x+tuite_x+tuki_x+tutu_x+tumori_x, - te1_x+te2_x+teru_x+dearou_x+deru_x+to1_x+to2_x+totte_x, - toiu_x+toori_x+toki_x+tokoro_x+tote_x+tohaie_x+tomo_x+do_x, - doori_x+dokoro_x+dokoroka_x+domo_x+na1_x+naa_x+nagara_x+nazo_x, - nado_x+nari_x+nanka_x+nanzo_x+nante_x+ni1_x+ni2_x+ni3_x, - nite_x+nimo_x+ne1_x+nee_x+no1_x+no2_x+node_x+noni_x, - nomi_x+nominrz_x+ha_x+hazu_x+ba_x+bakari_x+he_x+hou_x, - hoka_x+hodo_x+made_x+mama_x+mo1_x+mo2_x+motte_x+mono_x, - ya1_x+ya2_x+yara_x+yue_x+yo_x+yori_x+wa_x+wake_x, - wane_x+wayo_x+nn1_x+jya_x+tya_x+nagara2_x+wo_s_x, - ze_x+kke_x+n_si_x+deha_x, - - gotosi_x+saseru_x+zaru_o+zu_o+zunba_o+seru_o+souda_x+youtai_x, - denbun_x+ta_x+tai_x+tagaru_x+taru_x+da1_x+da2_x+daxtu_x, - darou_x+de_x+desi_x+desho_x+desu_x+na2_x+nara_x+nai_o, - nu_o+ne2_o+nn2_o+fuuda_x+besi_x+mai_x+masu_x+masure_x, - mase_x+mitaida_x+you_x+youda_x+rasii_x+rareru_x+reru_o+site_x, - - yougen_x+aru_x+ara_x+ari1_x+ari2_x+ari3_x+are1_x+are2_x, - arou_x+ii_x+itasi_x+itadaku_x+iru_x+eru_x+kakeru_x+kaneru_x, - karazu_x+gatai_x+gatida_x+kudasaru_x+gozai_x+sa1_x+si1_x+siro_x, - jyau_x+jimau_x+sugiru_x+subesi_x+suru_x+sure_x+se_x+seyo_x, - tamau_x+tayu_x+timau_x+dekiru_x+naru_x+nasai_x+nasaru_x+nikui_x, - yasui_x+yoi_x+yaru_x+ttarasii_x - }; - -static u_char arou[] = { - wo_x+ttatte_o +ttara_o +tte1_o +tte2_x +ppanasi_x +ppoi_x +ue_x, - uti_x +oite_x +okeru_x +ori_x +ka1_x +ka2_o +kai_x +kasira_o, - katagata_x+kadouka_x+kana_o+kane_x+kamo_x+kara1_x+kara2_o+ga1_x, - ga2_o+gatera_x+kiri_x+kuseni_x+kurai_x+gurumi_x+kedo_o+koso_x, - koto_x+sa2_x+sae_x+si2_o+sika_x+sura_x+zutu_x+zo_x, - tame_x+dake_x+dano_o+darake_x+tuite_x+tuki_x+tutu_x+tumori_x, - te1_x+te2_x+teru_x+dearou_x+deru_x+to1_x+to2_o+totte_x, - toiu_o+toori_x+toki_x+tokoro_x+tote_o+tohaie_o+tomo_o+do_x, - doori_x+dokoro_o+dokoroka_o+domo_x+na1_o+naa_o+nagara_x+nazo_o, - nado_o+nari_x+nanka_o+nanzo_o+nante_o+ni1_x+ni2_x+ni3_o, - nite_x+nimo_x+ne1_o+nee_o+no1_x+no2_x+node_x+noni_x, - nomi_x+nominrz_x+ha_x+hazu_x+ba_x+bakari_x+he_x+hou_x, - hoka_x+hodo_x+made_x+mama_x+mo1_x+mo2_x+motte_x+mono_o, - ya1_x+ya2_x+yara_x+yue_x+yo_o+yori_x+wa_x+wake_x, - wane_x+wayo_x+nn1_x+jya_o+tya_x+nagara2_x+wo_s_x, - ze_o+kke_x+n_si_x+deha_o, - - gotosi_x+saseru_x+zaru_x+zu_x+zunba_x+seru_x+souda_x+youtai_x, - denbun_x+ta_x+tai_x+tagaru_x+taru_x+da1_x+da2_x+daxtu_x, - darou_x+de_x+desi_x+desho_x+desu_x+na2_x+nara_x+nai_x, - nu_x+ne2_x+nn2_x+fuuda_x+besi_x+mai_x+masu_x+masure_x, - mase_x+mitaida_x+you_x+youda_x+rasii_x+rareru_x+reru_x+site_x, - - yougen_x+aru_x+ara_x+ari1_x+ari2_x+ari3_x+are1_x+are2_x, - arou_x+ii_x+itasi_x+itadaku_x+iru_x+eru_x+kakeru_x+kaneru_x, - karazu_x+gatai_x+gatida_x+kudasaru_x+gozai_x+sa1_x+si1_x+siro_x, - jyau_x+jimau_x+sugiru_x+subesi_x+suru_x+sure_x+se_x+seyo_x, - tamau_x+tayu_x+timau_x+dekiru_x+naru_x+nasai_x+nasaru_x+nikui_x, - yasui_x+yoi_x+yaru_x+ttarasii_x - }; - -static u_char you1[] = { - wo_x+ttatte_o +ttara_o +tte1_o +tte2_x +ppanasi_x +ppoi_x +ue_x, - uti_x +oite_x +okeru_x +ori_x +ka1_x +ka2_o +kai_x +kasira_o, - katagata_x+kadouka_x+kana_o+kane_x+kamo_x+kara1_x+kara2_x+ga1_x, - ga2_o+gatera_x+kiri_x+kuseni_x+kurai_x+gurumi_x+kedo_x+koso_x, - koto_x+sa2_x+sae_x+si2_x+sika_x+sura_x+zutu_x+zo_x, - tame_x+dake_x+dano_o+darake_x+tuite_x+tuki_x+tutu_x+tumori_x, - te1_x+te2_x+teru_x+dearou_x+deru_x+to1_x+to2_o+totte_x, - toiu_o+toori_x+toki_x+tokoro_x+tote_o+tohaie_o+tomo_o+do_x, - doori_x+dokoro_o+dokoroka_o+domo_x+na1_o+naa_o+nagara_x+nazo_o, - nado_o+nari_x+nanka_o+nanzo_o+nante_o+ni1_x+ni2_x+ni3_o, - nite_x+nimo_x+ne1_o+nee_o+no1_x+no2_x+node_x+noni_x, - nomi_x+nominrz_x+ha_x+hazu_x+ba_x+bakari_x+he_x+hou_x, - hoka_x+hodo_x+made_x+mama_x+mo1_x+mo2_x+motte_x+mono_o, - ya1_x+ya2_x+yara_x+yue_x+yo_o+yori_x+wa_x+wake_x, - wane_x+wayo_x+nn1_x+jya_o+tya_x+nagara2_x+wo_s_x, - ze_o+kke_x+n_si_x+deha_o, - - gotosi_x+saseru_x+zaru_x+zu_x+zunba_x+seru_x+souda_x+youtai_x, - denbun_x+ta_x+tai_x+tagaru_x+taru_x+da1_x+da2_x+daxtu_x, - darou_x+de_x+desi_x+desho_x+desu_x+na2_x+nara_x+nai_x, - nu_x+ne2_x+nn2_x+fuuda_x+besi_x+mai_x+masu_x+masure_x, - mase_x+mitaida_x+you_x+youda_x+rasii_x+rareru_x+reru_x+site_x, - - yougen_x+aru_x+ara_x+ari1_x+ari2_x+ari3_x+are1_x+are2_x, - arou_x+ii_x+itasi_x+itadaku_x+iru_x+eru_x+kakeru_x+kaneru_x, - karazu_x+gatai_x+gatida_x+kudasaru_x+gozai_x+sa1_x+si1_x+siro_x, - jyau_x+jimau_x+sugiru_x+subesi_x+suru_x+sure_x+se_x+seyo_x, - tamau_x+tayu_x+timau_x+dekiru_x+naru_x+nasai_x+nasaru_x+nikui_x, - yasui_x+yoi_x+yaru_x+ttarasii_x - }; - -static u_char karou[] = { - wo_x+ttatte_o +ttara_x +tte1_o +tte2_x +ppanasi_x +ppoi_x +ue_x, - uti_x +oite_x +okeru_x +ori_x +ka1_x +ka2_o +kai_x +kasira_x, - katagata_x+kadouka_x+kana_x+kane_x+kamo_x+kara1_x+kara2_x+ga1_x, - ga2_o+gatera_x+kiri_x+kuseni_x+kurai_x+gurumi_x+kedo_x+koso_x, - koto_x+sa2_x+sae_x+si2_x+sika_x+sura_x+zutu_x+zo_x, - tame_x+dake_x+dano_o+darake_x+tuite_x+tuki_x+tutu_x+tumori_x, - te1_x+te2_x+teru_x+dearou_x+deru_x+to1_x+to2_o+totte_x, - toiu_o+toori_x+toki_x+tokoro_x+tote_o+tohaie_o+tomo_x+do_x, - doori_x+dokoro_x+dokoroka_o+domo_x+na1_o+naa_o+nagara_x+nazo_o, - nado_o+nari_x+nanka_o+nanzo_o+nante_o+ni1_x+ni2_x+ni3_x, - nite_x+nimo_x+ne1_x+nee_x+no1_x+no2_x+node_x+noni_x, - nomi_x+nominrz_x+ha_x+hazu_x+ba_x+bakari_x+he_x+hou_x, - hoka_x+hodo_x+made_x+mama_x+mo1_x+mo2_x+motte_x+mono_x, - ya1_x+ya2_x+yara_x+yue_x+yo_o+yori_x+wa_x+wake_x, - wane_x+wayo_x+nn1_x+jya_x+tya_x+nagara2_x+wo_s_x, - ze_x+kke_x+n_si_x+deha_o, - - gotosi_x+saseru_x+zaru_x+zu_x+zunba_x+seru_x+souda_x+youtai_x, - denbun_x+ta_x+tai_x+tagaru_x+taru_x+da1_x+da2_x+daxtu_x, - darou_x+de_x+desi_x+desho_x+desu_x+na2_x+nara_x+nai_x, - nu_x+ne2_x+nn2_x+fuuda_x+besi_x+mai_x+masu_x+masure_x, - mase_x+mitaida_x+you_x+youda_x+rasii_x+rareru_x+reru_x+site_x, - - yougen_x+aru_x+ara_x+ari1_x+ari2_x+ari3_x+are1_x+are2_x, - arou_x+ii_x+itasi_x+itadaku_x+iru_x+eru_x+kakeru_x+kaneru_x, - karazu_x+gatai_x+gatida_x+kudasaru_x+gozai_x+sa1_x+si1_x+siro_x, - jyau_x+jimau_x+sugiru_x+subesi_x+suru_x+sure_x+se_x+seyo_x, - tamau_x+tayu_x+timau_x+dekiru_x+naru_x+nasai_x+nasaru_x+nikui_x, - yasui_x+yoi_x+yaru_x+ttarasii_x - }; - - -static u_char darou[] = { - wo_x+ttatte_o+ttara_x+tte1_o+tte2_x+ppanasi_x+ppoi_x+ue_x, - uti_x+oite_x+okeru_x+ori_x+ka1_x+ka2_o+kai_x+kasira_x, - katagata_x+kadouka_x+kana_x+kane_o+kamo_x+kara1_x+kara2_o+ga1_x, - ga2_o+gatera_x+kiri_x+kuseni_x+kurai_x+gurumi_x+kedo_o+koso_x, - koto_x+sa2_x+sae_x+si2_o+sika_x+sura_x+zutu_x+zo_x, - tame_x+dake_x+dano_o+darake_x+tuite_x+tuki_x+tutu_x+tumori_x, - te1_x+te2_x+teru_x+dearou_x+deru_x+to1_x+to2_o+totte_x, - toiu_o+toori_x+toki_x+tokoro_x+tote_o+tohaie_o+tomo_x+do_x, - doori_x+dokoro_x+dokoroka_o+domo_x+na1_o+naa_o+nagara_x+nazo_o, - nado_o+nari_x+nanka_o+nanzo_o+nante_o+ni1_x+ni2_x+ni3_o, - nite_x+nimo_x+ne1_o+nee_x+no1_x+no2_x+node_x+noni_x, - nomi_x+nominrz_x+ha_x+hazu_x+ba_x+bakari_x+he_x+hou_x, - hoka_x+hodo_x+made_x+mama_x+mo1_x+mo2_x+motte_x+mono_x, - ya1_x+ya2_x+yara_x+yue_x+yo_o+yori_x+wa_x+wake_x, - wane_x+wayo_x+nn1_x+jya_x+tya_x+nagara2_x+wo_s_x, - ze_x+kke_x+n_si_x+deha_o, - - gotosi_x+saseru_x+zaru_x+zu_x+zunba_x+seru_x+souda_x+youtai_x, - denbun_x+ta_x+tai_x+tagaru_x+taru_x+da1_x+da2_x+daxtu_x, - darou_x+de_x+desi_x+desho_x+desu_x+na2_x+nara_x+nai_x, - nu_x+ne2_x+nn2_x+fuuda_x+besi_x+mai_x+masu_x+masure_x, - mase_x+mitaida_x+you_x+youda_x+rasii_x+rareru_x+reru_x+site_x, - - yougen_x+aru_x+ara_x+ari1_x+ari2_x+ari3_x+are1_x+are2_x, - arou_x+ii_x+itasi_x+itadaku_x+iru_x+eru_x+kakeru_x+kaneru_x, - karazu_x+gatai_x+gatida_x+kudasaru_x+gozai_x+sa1_x+si1_x+siro_x, - jyau_x+jimau_x+sugiru_x+subesi_x+suru_x+sure_x+se_x+seyo_x, - tamau_x+tayu_x+timau_x+dekiru_x+naru_x+nasai_x+nasaru_x+nikui_x, - yasui_x+yoi_x+yaru_x+ttarasii_x - }; - -static u_char deshou[] = { - wo_x+ttatte_o+ttara_x+tte1_o+tte2_x+ppanasi_x+ppoi_x+ue_x, - uti_x+oite_x+okeru_x+ori_x+ka1_x+ka2_o+kai_x+kasira_x, - katagata_x+kadouka_x+kana_x+kane_x+kamo_x+kara1_x+kara2_o+ga1_x, - ga2_o+gatera_x+kiri_x+kuseni_x+kurai_x+gurumi_x+kedo_o+koso_x, - koto_x+sa2_x+sae_x+si2_o+sika_x+sura_x+zutu_x+zo_x, - tame_x+dake_x+dano_x+darake_x+tuite_x+tuki_x+tutu_x+tumori_x, - te1_x+te2_x+teru_x+dearou_x+deru_x+to1_x+to2_o+totte_x, - toiu_o+toori_x+toki_x+tokoro_x+tote_x+tohaie_o+tomo_o+do_x, - doori_x+dokoro_x+dokoroka_x+domo_x+na1_o+naa_o+nagara_x+nazo_x, - nado_x+nari_x+nanka_x+nanzo_x+nante_x+ni1_x+ni2_x+ni3_x, - nite_x+nimo_x+ne1_o+nee_o+no1_x+no2_x+node_x+noni_x, - nomi_x+nominrz_x+ha_x+hazu_x+ba_x+bakari_x+he_x+hou_x, - hoka_x+hodo_x+made_x+mama_x+mo1_x+mo2_x+motte_x+mono_x, - ya1_x+ya2_x+yara_x+yue_x+yo_o+yori_x+wa_x+wake_x, - wane_x+wayo_x+nn1_x+jya_x+tya_x+nagara2_x+wo_s_x, - ze_x+kke_x+n_si_x+deha_o, - - gotosi_x+saseru_x+zaru_x+zu_x+zunba_x+seru_x+souda_x+youtai_x, - denbun_x+ta_x+tai_x+tagaru_x+taru_x+da1_x+da2_x+daxtu_x, - darou_x+de_x+desi_x+desho_x+desu_x+na2_x+nara_x+nai_x, - nu_x+ne2_x+nn2_x+fuuda_x+besi_x+mai_x+masu_x+masure_x, - mase_x+mitaida_x+you_x+youda_x+rasii_x+rareru_x+reru_x+site_x, - - yougen_x+aru_x+ara_x+ari1_x+ari2_x+ari3_x+are1_x+are2_x, - arou_x+ii_x+itasi_x+itadaku_x+iru_x+eru_x+kakeru_x+kaneru_x, - karazu_x+gatai_x+gatida_x+kudasaru_x+gozai_x+sa1_x+si1_x+siro_x, - jyau_x+jimau_x+sugiru_x+subesi_x+suru_x+sure_x+se_x+seyo_x, - tamau_x+tayu_x+timau_x+dekiru_x+naru_x+nasai_x+nasaru_x+nikui_x, - yasui_x+yoi_x+yaru_x+ttarasii_x - }; - -static u_char ko[] = { - wo_x+ttatte_x+ttara_x+tte1_x+tte2_x+ppanasi_x+ppoi_x+ue_x, - uti_x+oite_x+okeru_x+ori_x+ka1_x+ka2_x+kai_x+kasira_x, - katagata_x+kadouka_x+kana_x+kane_x+kamo_x+kara1_x+kara2_x+ga1_x, - ga2_x+gatera_x+kiri_x+kuseni_x+kurai_x+gurumi_x+kedo_x+koso_x, - koto_x+sa2_x+sae_x+si2_x+sika_x+sura_x+zutu_x+zo_x, - tame_x+dake_x+dano_x+darake_x+tuite_x+tuki_x+tutu_x+tumori_x, - te1_x+te2_x+teru_x+dearou_x+deru_x+to1_x+to2_x+totte_x, - toiu_x+toori_x+toki_x+tokoro_x+tote_x+tohaie_x+tomo_x+do_x, - doori_x+dokoro_x+dokoroka_x+domo_x+na1_x+naa_x+nagara_x+nazo_x, - nado_x+nari_x+nanka_x+nanzo_x+nante_x+ni1_x+ni2_x+ni3_x, - nite_x+nimo_x+ne1_x+nee_x+no1_x+no2_x+node_x+noni_x, - nomi_x+nominrz_x+ha_x+hazu_x+ba_x+bakari_x+he_x+hou_x, - hoka_x+hodo_x+made_x+mama_x+mo1_x+mo2_x+motte_x+mono_x, - ya1_x+ya2_x+yara_x+yue_x+yo_x+yori_x+wa_x+wake_x, - wane_x+wayo_x+nn1_x+jya_x+tya_x+nagara2_x+wo_s_x, - ze_x+kke_x+n_si_x+deha_x, - - gotosi_x+saseru_o+zaru_x+zu_x+zunba_o+seru_x+souda_x+youtai_x, - denbun_x+ta_x+tai_x+tagaru_x+taru_x+da1_x+da2_x+daxtu_x, - darou_x+de_x+desi_x+desho_x+desu_x+na2_x+nara_x+nai_o, - nu_o+ne2_o+nn2_o+fuuda_x+besi_x+mai_x+masu_x+masure_x, - mase_x+mitaida_x+you_o+youda_x+rasii_x+rareru_o+reru_o+site_x, - - yougen_x+aru_x+ara_x+ari1_x+ari2_x+ari3_x+are1_x+are2_x, - arou_x+ii_x+itasi_x+itadaku_x+iru_x+eru_x+kakeru_x+kaneru_x, - karazu_x+gatai_x+gatida_x+kudasaru_x+gozai_x+sa1_x+si1_x+siro_x, - jyau_x+jimau_x+sugiru_x+subesi_x+suru_x+sure_x+se_x+seyo_x, - tamau_x+tayu_x+timau_x+dekiru_x+naru_x+nasai_x+nasaru_x+nikui_x, - yasui_x+yoi_x+yaru_x+ttarasii_x - }; - -static u_char bekara[] = { - wo_x+ttatte_x+ttara_x+tte1_x+tte2_x+ppanasi_x+ppoi_x+ue_x, - uti_x+oite_x+okeru_x+ori_x+ka1_x+ka2_x+kai_x+kasira_x, - katagata_x+kadouka_x+kana_x+kane_x+kamo_x+kara1_x+kara2_x+ga1_x, - ga2_x+gatera_x+kiri_x+kuseni_x+kurai_x+gurumi_x+kedo_x+koso_x, - koto_x+sa2_x+sae_x+si2_x+sika_x+sura_x+zutu_x+zo_x, - tame_x+dake_x+dano_x+darake_x+tuite_x+tuki_x+tutu_x+tumori_x, - te1_x+te2_x+teru_x+dearou_x+deru_x+to1_x+to2_x+totte_x, - toiu_x+toori_x+toki_x+tokoro_x+tote_x+tohaie_x+tomo_x+do_x, - doori_x+dokoro_x+dokoroka_x+domo_x+na1_x+naa_x+nagara_x+nazo_x, - nado_x+nari_x+nanka_x+nanzo_x+nante_x+ni1_x+ni2_x+ni3_x, - nite_x+nimo_x+ne1_x+nee_x+no1_x+no2_x+node_x+noni_x, - nomi_x+nominrz_x+ha_x+hazu_x+ba_x+bakari_x+he_x+hou_x, - hoka_x+hodo_x+made_x+mama_x+mo1_x+mo2_x+motte_x+mono_x, - ya1_x+ya2_x+yara_x+yue_x+yo_x+yori_x+wa_x+wake_x, - wane_x+wayo_x+nn1_x+jya_x+tya_x+nagara2_x+wo_s_x, - ze_x+kke_x+n_si_x+deha_x, - - gotosi_x+saseru_x+zaru_o+zu_o+zunba_o+seru_x+souda_x+youtai_x, - denbun_x+ta_x+tai_x+tagaru_x+taru_x+da1_x+da2_x+daxtu_x, - darou_x+de_x+desi_x+desho_x+desu_x+na2_x+nara_x+nai_x, - nu_x+ne2_x+nn2_x+fuuda_x+besi_x+mai_x+masu_x+masure_x, - mase_x+mitaida_x+you_x+youda_x+rasii_x+rareru_x+reru_x+site_x, - - yougen_x+aru_x+ara_x+ari1_x+ari2_x+ari3_x+are1_x+are2_x, - arou_x+ii_x+itasi_x+itadaku_x+iru_x+eru_x+kakeru_x+kaneru_x, - karazu_x+gatai_x+gatida_x+kudasaru_x+gozai_x+sa1_x+si1_x+siro_x, - jyau_x+jimau_x+sugiru_x+subesi_x+suru_x+sure_x+se_x+seyo_x, - tamau_x+tayu_x+timau_x+dekiru_x+naru_x+nasai_x+nasaru_x+nikui_x, - yasui_x+yoi_x+yaru_x+ttarasii_x - }; - -static u_char tagara[] = { - wo_x+ttatte_x+ttara_x+tte1_x+tte2_x+ppanasi_x+ppoi_x+ue_x, - uti_x+oite_x+okeru_x+ori_x+ka1_x+ka2_x+kai_x+kasira_x, - katagata_x+kadouka_x+kana_x+kane_x+kamo_x+kara1_x+kara2_x+ga1_x, - ga2_x+gatera_x+kiri_x+kuseni_x+kurai_x+gurumi_x+kedo_x+koso_x, - koto_x+sa2_x+sae_x+si2_x+sika_x+sura_x+zutu_x+zo_x, - tame_x+dake_x+dano_x+darake_x+tuite_x+tuki_x+tutu_x+tumori_x, - te1_x+te2_x+teru_x+dearou_x+deru_x+to1_x+to2_x+totte_x, - toiu_x+toori_x+toki_x+tokoro_x+tote_x+tohaie_x+tomo_x+do_x, - doori_x+dokoro_x+dokoroka_x+domo_x+na1_x+naa_x+nagara_x+nazo_x, - nado_x+nari_x+nanka_x+nanzo_x+nante_x+ni1_x+ni2_x+ni3_x, - nite_x+nimo_x+ne1_x+nee_x+no1_x+no2_x+node_x+noni_x, - nomi_x+nominrz_x+ha_x+hazu_x+ba_x+bakari_x+he_x+hou_x, - hoka_x+hodo_x+made_x+mama_x+mo1_x+mo2_x+motte_x+mono_x, - ya1_x+ya2_x+yara_x+yue_x+yo_x+yori_x+wa_x+wake_x, - wane_x+wayo_x+nn1_x+jya_x+tya_x+nagara2_x+wo_s_x, - ze_x+kke_x+n_si_x+deha_x, - - gotosi_x+saseru_x+zaru_o+zu_o+zunba_x+seru_o+souda_x+youtai_x, - denbun_x+ta_x+tai_x+tagaru_x+taru_x+da1_x+da2_x+daxtu_x, - darou_x+de_x+desi_x+desho_x+desu_x+na2_x+nara_x+nai_o, - nu_o+ne2_o+nn2_o+fuuda_x+besi_x+mai_x+masu_x+masure_x, - mase_x+mitaida_x+you_x+youda_x+rasii_x+rareru_x+reru_x+site_x, - - yougen_x+aru_x+ara_x+ari1_x+ari2_x+ari3_x+are1_x+are2_x, - arou_x+ii_x+itasi_x+itadaku_x+iru_x+eru_x+kakeru_x+kaneru_x, - karazu_x+gatai_x+gatida_x+kudasaru_x+gozai_x+sa1_x+si1_x+siro_x, - jyau_x+jimau_x+sugiru_x+subesi_x+suru_x+sure_x+se_x+seyo_x, - tamau_x+tayu_x+timau_x+dekiru_x+naru_x+nasai_x+nasaru_x+nikui_x, - yasui_x+yoi_x+yaru_x+ttarasii_x - }; - -static u_char si1[] = { - wo_x+ttatte_x+ttara_x+tte1_x+tte2_x+ppanasi_o+ppoi_x+ue_x, - uti_x+oite_x+okeru_x+ori_x+ka1_x+ka2_x+kai_x+kasira_x, - katagata_x+kadouka_x+kana_x+kane_x+kamo_x+kara1_x+kara2_x+ga1_x, - ga2_x+gatera_o+kiri_x+kuseni_x+kurai_x+gurumi_x+kedo_x+koso_x, - koto_x+sa2_x+sae_o+si2_x+sika_x+sura_x+zutu_x+zo_x, - tame_x+dake_x+dano_x+darake_x+tuite_x+tuki_x+tutu_o+tumori_x, - te1_x+te2_o+teru_o+dearou_x+deru_x+to1_x+to2_x+totte_x, - toiu_x+toori_x+toki_x+tokoro_x+tote_x+tohaie_x+tomo_x+do_x, - doori_x+dokoro_x+dokoroka_x+domo_x+na1_o+naa_x+nagara_x+nazo_x, - nado_x+nari_x+nanka_x+nanzo_x+nante_x+ni1_x+ni2_o+ni3_x, - nite_x+nimo_x+ne1_x+nee_x+no1_x+no2_x+node_x+noni_x, - nomi_x+nominrz_x+ha_x+hazu_x+ba_x+bakari_x+he_x+hou_x, - hoka_x+hodo_x+made_x+mama_x+mo1_x+mo2_x+motte_x+mono_x, - ya1_x+ya2_x+yara_x+yue_x+yo_x+yori_x+wa_x+wake_x, - wane_x+wayo_x+nn1_x+jya_x+tya_o+nagara2_o+wo_s_x, - ze_x+kke_x+n_si_x+deha_x, - - gotosi_x+saseru_x+zaru_x+zu_x+zunba_x+seru_x+souda_o+youtai_o, - denbun_x+ta_o+tai_o+tagaru_o+taru_x+da1_x+da2_x+daxtu_x, - darou_x+de_x+desi_x+desho_x+desu_x+na2_x+nara_x+nai_o, - nu_x+ne2_x+nn2_x+fuuda_x+besi_x+mai_o+masu_o+masure_o, - mase_x+mitaida_x+you_o+youda_x+rasii_x+rareru_x+reru_x+site_x, - - yougen_x+aru_x+ara_x+ari1_x+ari2_x+ari3_x+are1_x+are2_x, - arou_x+ii_o+itasi_x+itadaku_x+iru_x+eru_x+kakeru_o+kaneru_o, - karazu_x+gatai_o+gatida_o+kudasaru_x+gozai_x+sa1_x+si1_x+siro_x, - jyau_x+jimau_x+sugiru_x+subesi_x+suru_x+sure_x+se_x+seyo_x, - tamau_x+tayu_o+timau_o+dekiru_x+naru_x+nasai_o+nasaru_o+nikui_o, - yasui_o+yoi_x+yaru_x+ttarasii_x - }; - -static u_char ji[] = { - wo_x+ttatte_x+ttara_x+tte1_x+tte2_x+ppanasi_o+ppoi_x+ue_x, - uti_x+oite_x+okeru_x+ori_x+ka1_x+ka2_x+kai_x+kasira_x, - katagata_x+kadouka_x+kana_x+kane_x+kamo_x+kara1_x+kara2_x+ga1_x, - ga2_x+gatera_o+kiri_x+kuseni_x+kurai_x+gurumi_x+kedo_x+koso_x, - koto_x+sa2_x+sae_o+si2_x+sika_x+sura_x+zutu_x+zo_x, - tame_x+dake_x+dano_x+darake_x+tuite_x+tuki_x+tutu_o+tumori_x, - te1_x+te2_o+teru_o+dearou_x+deru_x+to1_x+to2_x+totte_x, - toiu_x+toori_x+toki_x+tokoro_x+tote_x+tohaie_x+tomo_x+do_x, - doori_x+dokoro_x+dokoroka_x+domo_x+na1_o+naa_x+nagara_x+nazo_x, - nado_x+nari_x+nanka_x+nanzo_x+nante_x+ni1_x+ni2_o+ni3_x, - nite_x+nimo_x+ne1_x+nee_x+no1_x+no2_x+node_x+noni_x, - nomi_x+nominrz_x+ha_o+hazu_x+ba_x+bakari_x+he_x+hou_x, - hoka_x+hodo_x+made_x+mama_x+mo1_x+mo2_x+motte_x+mono_x, - ya1_x+ya2_x+yara_x+yue_x+yo_x+yori_x+wa_x+wake_x, - wane_x+wayo_x+nn1_x+jya_x+tya_o+nagara2_o+wo_s_x, - ze_x+kke_x+n_si_x+deha_x, - - gotosi_x+saseru_o+zaru_o+zu_o+zunba_o+seru_x+souda_o+youtai_o, - denbun_x+ta_o+tai_o+tagaru_o+taru_x+da1_x+da2_x+daxtu_x, - darou_x+de_x+desi_x+desho_x+desu_x+na2_x+nara_x+nai_o, - nu_o+ne2_o+nn2_x+fuuda_x+besi_x+mai_o+masu_o+masure_o, - mase_x+mitaida_x+you_x+youda_x+rasii_x+rareru_o+reru_x+site_x, - - yougen_x+aru_x+ara_x+ari1_x+ari2_x+ari3_x+are1_x+are2_x, - arou_x+ii_o+itasi_x+itadaku_x+iru_x+eru_x+kakeru_o+kaneru_o, - karazu_x+gatai_o+gatida_o+kudasaru_x+gozai_x+sa1_x+si1_x+siro_x, - jyau_x+jimau_x+sugiru_x+subesi_x+suru_x+sure_x+se_x+seyo_x, - tamau_x+tayu_o+timau_x+dekiru_x+naru_x+nasai_o+nasaru_o+nikui_o, - yasui_o+yoi_o+yaru_x+ttarasii_x - }; - -static u_char age[] = { - wo_x+ttatte_x+ttara_x+tte1_x+tte2_x+ppanasi_x+ppoi_x+ue_x, - uti_x+oite_x+okeru_x+ori_x+ka1_x+ka2_x+kai_x+kasira_x, - katagata_x+kadouka_x+kana_x+kane_x+kamo_x+kara1_x+kara2_x+ga1_x, - ga2_x+gatera_x+kiri_x+kuseni_x+kurai_x+gurumi_x+kedo_x+koso_x, - koto_x+sa2_x+sae_o+si2_x+sika_x+sura_o+zutu_x+zo_x, - tame_x+dake_x+dano_x+darake_x+tuite_x+tuki_x+tutu_o+tumori_x, - te1_x+te2_o+teru_o+dearou_x+deru_x+to1_x+to2_x+totte_x, - toiu_x+toori_x+toki_x+tokoro_x+tote_x+tohaie_x+tomo_x+do_x, - doori_x+dokoro_x+dokoroka_x+domo_x+na1_o+naa_x+nagara_x+nazo_x, - nado_x+nari_x+nanka_x+nanzo_x+nante_x+ni1_x+ni2_o+ni3_x, - nite_x+nimo_x+ne1_x+nee_x+no1_x+no2_x+node_x+noni_x, - nomi_x+nominrz_x+ha_o+hazu_x+ba_x+bakari_x+he_x+hou_x, - hoka_x+hodo_x+made_x+mama_x+mo1_x+mo2_o+motte_x+mono_x, - ya1_x+ya2_x+yara_x+yue_x+yo_x+yori_x+wa_x+wake_x, - wane_x+wayo_x+nn1_x+jya_x+tya_o+nagara2_x+wo_s_x, - ze_x+kke_x+n_si_x+deha_x, - - gotosi_x+saseru_x+zaru_x+zu_o+zunba_o+seru_x+souda_o+youtai_o, - denbun_x+ta_o+tai_o+tagaru_o+taru_x+da1_x+da2_x+daxtu_x, - darou_x+de_x+desi_x+desho_x+desu_x+na2_x+nara_x+nai_o, - nu_o+ne2_o+nn2_o+fuuda_x+besi_x+mai_o+masu_o+masure_o, - mase_x+mitaida_x+you_o+youda_x+rasii_x+rareru_o+reru_x+site_x, - - yougen_x+aru_x+ara_x+ari1_x+ari2_x+ari3_x+are1_x+are2_x, - arou_x+ii_x+itasi_x+itadaku_x+iru_x+eru_x+kakeru_x+kaneru_x, - karazu_x+gatai_x+gatida_x+kudasaru_x+gozai_x+sa1_x+si1_x+siro_x, - jyau_x+jimau_x+sugiru_x+subesi_x+suru_x+sure_x+se_x+seyo_x, - tamau_x+tayu_o+timau_o+dekiru_x+naru_x+nasai_o+nasaru_x+nikui_o, - yasui_o+yoi_x+yaru_x+ttarasii_x - }; - -static u_char i[] = { - wo_x+ttatte_x+ttara_x+tte1_x+tte2_x+ppanasi_x+ppoi_x+ue_x, - uti_x+oite_x+okeru_x+ori_x+ka1_x+ka2_x+kai_x+kasira_x, - katagata_x+kadouka_x+kana_x+kane_x+kamo_x+kara1_x+kara2_x+ga1_x, - ga2_x+gatera_x+kiri_x+kuseni_x+kurai_x+gurumi_x+kedo_x+koso_x, - koto_x+sa2_x+sae_x+si2_x+sika_x+sura_x+zutu_x+zo_x, - tame_x+dake_x+dano_x+darake_x+tuite_x+tuki_x+tutu_o+tumori_x, - te1_x+te2_o+teru_x+dearou_x+deru_x+to1_x+to2_x+totte_x, - toiu_x+toori_x+toki_x+tokoro_x+tote_x+tohaie_x+tomo_x+do_x, - doori_x+dokoro_x+dokoroka_x+domo_x+na1_x+naa_x+nagara_x+nazo_x, - nado_x+nari_x+nanka_x+nanzo_x+nante_x+ni1_x+ni2_x+ni3_x, - nite_x+nimo_x+ne1_x+nee_x+no1_x+no2_x+node_x+noni_x, - nomi_x+nominrz_x+ha_x+hazu_x+ba_x+bakari_x+he_x+hou_x, - hoka_x+hodo_x+made_x+mama_x+mo1_x+mo2_x+motte_x+mono_x, - ya1_x+ya2_x+yara_x+yue_x+yo_x+yori_x+wa_x+wake_x, - wane_x+wayo_x+nn1_x+jya_x+tya_o+nagara2_o+wo_s_x, - ze_x+kke_x+n_si_x+deha_x, - - gotosi_x+saseru_o+zaru_o+zu_o+zunba_x+seru_x+souda_o+youtai_o, - denbun_x+ta_o+tai_o+tagaru_o+taru_x+da1_x+da2_x+daxtu_x, - darou_x+de_x+desi_x+desho_x+desu_x+na2_x+nara_x+nai_o, - nu_o+ne2_o+nn2_x+fuuda_x+besi_x+mai_o+masu_o+masure_o, - mase_x+mitaida_x+you_o+youda_x+rasii_x+rareru_o+reru_x+site_x, - - yougen_x+aru_x+ara_x+ari1_x+ari2_x+ari3_x+are1_x+are2_x, - arou_x+ii_x+itasi_x+itadaku_x+iru_x+eru_x+kakeru_x+kaneru_x, - karazu_x+gatai_x+gatida_x+kudasaru_x+gozai_x+sa1_x+si1_x+siro_x, - jyau_x+jimau_x+sugiru_x+subesi_x+suru_x+sure_x+se_x+seyo_x, - tamau_x+tayu_x+timau_x+dekiru_x+naru_x+nasai_o+nasaru_o+nikui_x, - yasui_x+yoi_x+yaru_x+ttarasii_x - }; - -static u_char e[] = { - wo_x+ttatte_x+ttara_x+tte1_x+tte2_x+ppanasi_x+ppoi_x+ue_x, - uti_x+oite_x+okeru_x+ori_x+ka1_x+ka2_x+kai_x+kasira_x, - katagata_x+kadouka_x+kana_x+kane_x+kamo_x+kara1_x+kara2_x+ga1_x, - ga2_x+gatera_x+kiri_x+kuseni_x+kurai_x+gurumi_x+kedo_x+koso_x, - koto_x+sa2_x+sae_x+si2_x+sika_x+sura_x+zutu_x+zo_x, - tame_x+dake_x+dano_x+darake_x+tuite_x+tuki_x+tutu_x+tumori_x, - te1_x+te2_o+teru_x+dearou_x+deru_x+to1_x+to2_x+totte_x, - toiu_x+toori_x+toki_x+tokoro_x+tote_x+tohaie_x+tomo_x+do_x, - doori_x+dokoro_x+dokoroka_x+domo_x+na1_x+naa_x+nagara_x+nazo_x, - nado_x+nari_x+nanka_x+nanzo_x+nante_x+ni1_x+ni2_x+ni3_x, - nite_x+nimo_x+ne1_x+nee_x+no1_x+no2_x+node_x+noni_x, - nomi_x+nominrz_x+ha_x+hazu_x+ba_x+bakari_x+he_x+hou_x, - hoka_x+hodo_x+made_x+mama_x+mo1_x+mo2_x+motte_x+mono_x, - ya1_x+ya2_x+yara_x+yue_x+yo_x+yori_x+wa_x+wake_x, - wane_x+wayo_x+nn1_x+jya_x+tya_x+nagara2_x+wo_s_x, - ze_x+kke_x+n_si_x+deha_x, - - gotosi_x+saseru_x+zaru_x+zu_o+zunba_x+seru_x+souda_o+youtai_o, - denbun_x+ta_o+tai_x+tagaru_x+taru_x+da1_x+da2_x+daxtu_x, - darou_x+de_x+desi_x+desho_x+desu_x+na2_x+nara_x+nai_o, - nu_o+ne2_o+nn2_x+fuuda_x+besi_x+mai_x+masu_x+masure_x, - mase_x+mitaida_x+you_o+youda_x+rasii_x+rareru_x+reru_x+site_x, - - yougen_x+aru_x+ara_x+ari1_x+ari2_x+ari3_x+are1_x+are2_x, - arou_x+ii_x+itasi_x+itadaku_x+iru_x+eru_x+kakeru_x+kaneru_x, - karazu_x+gatai_x+gatida_x+kudasaru_x+gozai_x+sa1_x+si1_x+siro_x, - jyau_x+jimau_x+sugiru_x+subesi_x+suru_x+sure_x+se_x+seyo_x, - tamau_x+tayu_x+timau_x+dekiru_x+naru_x+nasai_x+nasaru_x+nikui_x, - yasui_x+yoi_x+yaru_x+ttarasii_x - }; - -static u_char kake[] = { - wo_x+ttatte_x+ttara_x+tte1_x+tte2_x+ppanasi_x+ppoi_x+ue_x, - uti_x+oite_x+okeru_x+ori_x+ka1_x+ka2_x+kai_x+kasira_x, - katagata_x+kadouka_x+kana_x+kane_x+kamo_x+kara1_x+kara2_x+ga1_x, - ga2_x+gatera_x+kiri_x+kuseni_x+kurai_x+gurumi_x+kedo_x+koso_x, - koto_x+sa2_x+sae_x+si2_x+sika_x+sura_x+zutu_x+zo_x, - tame_x+dake_x+dano_x+darake_x+tuite_x+tuki_x+tutu_o+tumori_x, - te1_x+te2_o+teru_o+dearou_x+deru_x+to1_x+to2_x+totte_x, - toiu_x+toori_x+toki_x+tokoro_x+tote_x+tohaie_x+tomo_x+do_x, - doori_x+dokoro_x+dokoroka_x+domo_x+na1_x+naa_x+nagara_x+nazo_x, - nado_x+nari_x+nanka_x+nanzo_x+nante_x+ni1_x+ni2_x+ni3_x, - nite_x+nimo_x+ne1_x+nee_x+no1_o+no2_x+node_x+noni_x, - nomi_x+nominrz_x+ha_x+hazu_x+ba_x+bakari_x+he_x+hou_x, - hoka_x+hodo_x+made_x+mama_x+mo1_x+mo2_o+motte_x+mono_x, - ya1_x+ya2_x+yara_x+yue_x+yo_x+yori_x+wa_x+wake_x, - wane_x+wayo_x+nn1_x+jya_o+tya_o+nagara2_o+wo_s_x, - ze_x+kke_x+n_si_x+deha_x, - - gotosi_x+saseru_x+zaru_x+zu_o+zunba_x+seru_x+souda_x+youtai_x, - denbun_x+ta_o+tai_x+tagaru_x+taru_x+da1_x+da2_x+daxtu_x, - darou_x+de_o+desi_o+desho_o+desu_o+na2_o+nara_o+nai_o, - nu_o+ne2_o+nn2_o+fuuda_x+besi_x+mai_x+masu_o+masure_o, - mase_x+mitaida_x+you_o+youda_x+rasii_x+rareru_x+reru_x+site_x, - - yougen_x+aru_x+ara_x+ari1_x+ari2_x+ari3_x+are1_x+are2_x, - arou_x+ii_x+itasi_x+itadaku_x+iru_x+eru_x+kakeru_x+kaneru_x, - karazu_x+gatai_x+gatida_x+kudasaru_x+gozai_x+sa1_x+si1_x+siro_x, - jyau_x+jimau_x+sugiru_x+subesi_x+suru_x+sure_x+se_x+seyo_x, - tamau_x+tayu_o+timau_o+dekiru_x+naru_x+nasai_o+nasaru_x+nikui_x, - yasui_x+yoi_x+yaru_x+ttarasii_x - }; - -static u_char kane2[] = { - wo_x+ttatte_x+ttara_x+tte1_x+tte2_x+ppanasi_x+ppoi_x+ue_x, - uti_x+oite_x+okeru_x+ori_x+ka1_x+ka2_x+kai_x+kasira_x, - katagata_x+kadouka_x+kana_x+kane_x+kamo_x+kara1_x+kara2_x+ga1_x, - ga2_x+gatera_x+kiri_x+kuseni_x+kurai_x+gurumi_x+kedo_x+koso_x, - koto_x+sa2_x+sae_x+si2_x+sika_x+sura_x+zutu_x+zo_x, - tame_x+dake_x+dano_x+darake_x+tuite_x+tuki_x+tutu_o+tumori_x, - te1_x+te2_o+teru_o+dearou_x+deru_x+to1_x+to2_x+totte_x, - toiu_x+toori_x+toki_x+tokoro_x+tote_x+tohaie_x+tomo_x+do_x, - doori_x+dokoro_x+dokoroka_x+domo_x+na1_x+naa_x+nagara_x+nazo_x, - nado_x+nari_x+nanka_x+nanzo_x+nante_x+ni1_x+ni2_x+ni3_x, - nite_x+nimo_x+ne1_x+nee_x+no1_x+no2_x+node_x+noni_x, - nomi_x+nominrz_x+ha_x+hazu_x+ba_x+bakari_x+he_x+hou_x, - hoka_x+hodo_x+made_x+mama_x+mo1_x+mo2_x+motte_x+mono_x, - ya1_x+ya2_x+yara_x+yue_x+yo_x+yori_x+wa_x+wake_x, - wane_x+wayo_x+nn1_x+jya_x+tya_o+nagara2_o+wo_s_x, - ze_x+kke_x+n_si_x+deha_x, - - gotosi_x+saseru_x+zaru_x+zu_o+zunba_x+seru_x+souda_x+youtai_x, - denbun_x+ta_o+tai_x+tagaru_x+taru_x+da1_x+da2_x+daxtu_x, - darou_x+de_x+desi_x+desho_x+desu_x+na2_x+nara_x+nai_o, - nu_x+ne2_x+nn2_x+fuuda_x+besi_x+mai_x+masu_o+masure_o, - mase_x+mitaida_x+you_o+youda_x+rasii_x+rareru_x+reru_x+site_x, - - yougen_x+aru_x+ara_x+ari1_x+ari2_x+ari3_x+are1_x+are2_x, - arou_x+ii_x+itasi_x+itadaku_x+iru_x+eru_x+kakeru_x+kaneru_x, - karazu_x+gatai_x+gatida_x+kudasaru_x+gozai_x+sa1_x+si1_x+siro_x, - jyau_x+jimau_x+sugiru_x+subesi_x+suru_x+sure_x+se_x+seyo_x, - tamau_x+tayu_o+timau_o+dekiru_x+naru_x+nasai_x+nasaru_x+nikui_x, - yasui_x+yoi_x+yaru_x+ttarasii_x - }; - -static u_char sugi[] = { - wo_x+ttatte_x+ttara_x+tte1_x+tte2_x+ppanasi_x+ppoi_x+ue_x, - uti_x+oite_x+okeru_x+ori_x+ka1_x+ka2_x+kai_x+kasira_x, - katagata_x+kadouka_x+kana_x+kane_x+kamo_x+kara1_x+kara2_x+ga1_x, - ga2_x+gatera_x+kiri_x+kuseni_x+kurai_x+gurumi_x+kedo_x+koso_x, - koto_x+sa2_x+sae_x+si2_x+sika_x+sura_x+zutu_x+zo_x, - tame_x+dake_x+dano_x+darake_x+tuite_x+tuki_x+tutu_x+tumori_x, - te1_o+te2_x+teru_x+dearou_x+deru_x+to1_x+to2_x+totte_x, - toiu_x+toori_x+toki_x+tokoro_x+tote_x+tohaie_x+tomo_x+do_x, - doori_x+dokoro_x+dokoroka_x+domo_x+na1_x+naa_x+nagara_x+nazo_x, - nado_x+nari_x+nanka_x+nanzo_x+nante_x+ni1_x+ni2_x+ni3_x, - nite_x+nimo_x+ne1_x+nee_x+no1_x+no2_x+node_x+noni_x, - nomi_x+nominrz_x+ha_x+hazu_x+ba_x+bakari_x+he_x+hou_x, - hoka_x+hodo_x+made_x+mama_x+mo1_o+mo2_x+motte_x+mono_x, - ya1_x+ya2_x+yara_x+yue_x+yo_x+yori_x+wa_x+wake_x, - wane_x+wayo_x+nn1_x+jya_x+tya_o+nagara2_x+wo_s_x, - ze_x+kke_x+n_si_x+deha_x, - - gotosi_x+saseru_x+zaru_o+zu_o+zunba_o+seru_x+souda_x+youtai_x, - denbun_x+ta_o+tai_x+tagaru_x+taru_x+da1_x+da2_x+daxtu_x, - darou_x+de_x+desi_x+desho_x+desu_x+na2_x+nara_x+nai_o, - nu_o+ne2_o+nn2_x+fuuda_x+besi_x+mai_o+masu_o+masure_o, - mase_x+mitaida_x+you_x+youda_x+rasii_x+rareru_x+reru_x+site_x, - - yougen_x+aru_x+ara_x+ari1_x+ari2_x+ari3_x+are1_x+are2_x, - arou_x+ii_x+itasi_x+itadaku_x+iru_x+eru_x+kakeru_x+kaneru_x, - karazu_x+gatai_x+gatida_x+kudasaru_x+gozai_x+sa1_x+si1_x+siro_x, - jyau_x+jimau_x+sugiru_x+subesi_x+suru_x+sure_x+se_x+seyo_x, - tamau_x+tayu_o+timau_o+dekiru_x+naru_x+nasai_x+nasaru_x+nikui_x, - yasui_x+yoi_x+yaru_x+ttarasii_x - }; - -static u_char deki[] = { - wo_x+ttatte_x+ttara_x+tte1_x+tte2_x+ppanasi_x+ppoi_x+ue_x, - uti_x+oite_x+okeru_x+ori_x+ka1_x+ka2_x+kai_x+kasira_x, - katagata_x+kadouka_x+kana_x+kane_x+kamo_x+kara1_x+kara2_x+ga1_x, - ga2_x+gatera_x+kiri_x+kuseni_x+kurai_x+gurumi_x+kedo_x+koso_x, - koto_x+sa2_x+sae_x+si2_x+sika_x+sura_x+zutu_x+zo_x, - tame_x+dake_x+dano_x+darake_x+tuite_x+tuki_x+tutu_o+tumori_x, - te1_x+te2_o+teru_o+dearou_x+deru_x+to1_x+to2_x+totte_x, - toiu_x+toori_x+toki_x+tokoro_x+tote_x+tohaie_x+tomo_x+do_x, - doori_x+dokoro_x+dokoroka_x+domo_x+na1_x+naa_x+nagara_x+nazo_x, - nado_x+nari_x+nanka_x+nanzo_x+nante_x+ni1_x+ni2_x+ni3_x, - nite_x+nimo_x+ne1_x+nee_x+no1_x+no2_x+node_x+noni_x, - nomi_x+nominrz_x+ha_x+hazu_x+ba_x+bakari_x+he_x+hou_x, - hoka_x+hodo_x+made_x+mama_x+mo1_x+mo2_x+motte_x+mono_x, - ya1_x+ya2_x+yara_x+yue_x+yo_x+yori_x+wa_x+wake_x, - wane_x+wayo_x+nn1_x+jya_x+tya_o+nagara2_o+wo_s_x, - ze_x+kke_x+n_si_x+deha_x, - - gotosi_x+saseru_x+zaru_x+zu_o+zunba_o+seru_x+souda_o+youtai_o, - denbun_x+ta_o+tai_x+tagaru_x+taru_x+da1_x+da2_x+daxtu_x, - darou_x+de_x+desi_x+desho_x+desu_x+na2_x+nara_x+nai_o, - nu_o+ne2_o+nn2_o+fuuda_x+besi_x+mai_o+masu_o+masure_o, - mase_x+mitaida_x+you_x+youda_x+rasii_x+rareru_x+reru_x+site_x, - - yougen_x+aru_x+ara_x+ari1_x+ari2_x+ari3_x+are1_x+are2_x, - arou_x+ii_x+itasi_x+itadaku_x+iru_x+eru_x+kakeru_x+kaneru_x, - karazu_x+gatai_x+gatida_x+kudasaru_x+gozai_x+sa1_x+si1_x+siro_x, - jyau_x+jimau_x+sugiru_x+subesi_x+suru_x+sure_x+se_x+seyo_x, - tamau_x+tayu_o+timau_o+dekiru_x+naru_x+nasai_x+nasaru_x+nikui_x, - yasui_x+yoi_x+yaru_x+ttarasii_x - }; - -static u_char mi[] = { - wo_x+ttatte_x+ttara_x+tte1_x+tte2_x+ppanasi_x+ppoi_x+ue_x, - uti_x+oite_x+okeru_x+ori_x+ka1_x+ka2_x+kai_x+kasira_x, - katagata_x+kadouka_x+kana_x+kane_x+kamo_x+kara1_x+kara2_x+ga1_x, - ga2_x+gatera_x+kiri_x+kuseni_x+kurai_x+gurumi_x+kedo_x+koso_x, - koto_x+sa2_x+sae_x+si2_x+sika_x+sura_x+zutu_x+zo_x, - tame_x+dake_x+dano_x+darake_x+tuite_x+tuki_x+tutu_o+tumori_x, - te1_x+te2_o+teru_o+dearou_x+deru_x+to1_x+to2_x+totte_x, - toiu_x+toori_x+toki_x+tokoro_x+tote_x+tohaie_x+tomo_x+do_x, - doori_x+dokoro_x+dokoroka_x+domo_x+na1_o+naa_x+nagara_x+nazo_x, - nado_x+nari_x+nanka_x+nanzo_x+nante_x+ni1_x+ni2_x+ni3_x, - nite_x+nimo_x+ne1_x+nee_x+no1_x+no2_x+node_x+noni_x, - nomi_x+nominrz_x+ha_x+hazu_x+ba_x+bakari_x+he_x+hou_x, - hoka_x+hodo_x+made_x+mama_x+mo1_x+mo2_x+motte_x+mono_x, - ya1_x+ya2_x+yara_x+yue_x+yo_o+yori_x+wa_x+wake_x, - wane_x+wayo_x+nn1_x+jya_x+tya_o+nagara2_o+wo_s_x, - ze_x+kke_x+n_si_x+deha_x, - - gotosi_x+saseru_o+zaru_x+zu_o+zunba_x+seru_x+souda_x+youtai_x, - denbun_x+ta_o+tai_o+tagaru_o+taru_x+da1_x+da2_x+daxtu_x, - darou_x+de_x+desi_x+desho_x+desu_x+na2_x+nara_x+nai_o, - nu_o+ne2_o+nn2_o+fuuda_x+besi_x+mai_o+masu_o+masure_o, - mase_x+mitaida_x+you_o+youda_x+rasii_x+rareru_o+reru_x+site_x, - - yougen_x+aru_x+ara_x+ari1_x+ari2_x+ari3_x+are1_x+are2_x, - arou_x+ii_x+itasi_x+itadaku_x+iru_x+eru_x+kakeru_x+kaneru_x, - karazu_x+gatai_x+gatida_x+kudasaru_x+gozai_x+sa1_x+si1_x+siro_x, - jyau_x+jimau_x+sugiru_x+subesi_x+suru_x+sure_x+se_x+seyo_x, - tamau_x+tayu_o+timau_o+dekiru_x+naru_x+nasai_o+nasaru_x+nikui_x, - yasui_x+yoi_x+yaru_x+ttarasii_x - }; - -static u_char sase[] = { - wo_x+ttatte_x+ttara_x+tte1_x+tte2_x+ppanasi_x+ppoi_x+ue_x, - uti_x+oite_x+okeru_x+ori_x+ka1_x+ka2_x+kai_x+kasira_x, - katagata_x+kadouka_x+kana_x+kane_x+kamo_x+kara1_x+kara2_x+ga1_x, - ga2_x+gatera_x+kiri_x+kuseni_x+kurai_x+gurumi_x+kedo_x+koso_x, - koto_x+sa2_x+sae_x+si2_x+sika_x+sura_x+zutu_x+zo_x, - tame_x+dake_x+dano_x+darake_x+tuite_x+tuki_x+tutu_o+tumori_x, - te1_x+te2_o+teru_o+dearou_x+deru_x+to1_x+to2_x+totte_x, - toiu_x+toori_x+toki_x+tokoro_x+tote_x+tohaie_x+tomo_x+do_x, - doori_x+dokoro_x+dokoroka_x+domo_x+na1_x+naa_x+nagara_x+nazo_x, - nado_x+nari_x+nanka_x+nanzo_x+nante_x+ni1_x+ni2_o+ni3_x, - nite_x+nimo_x+ne1_x+nee_x+no1_x+no2_x+node_x+noni_x, - nomi_x+nominrz_x+ha_x+hazu_x+ba_x+bakari_x+he_x+hou_x, - hoka_x+hodo_x+made_x+mama_x+mo1_x+mo2_x+motte_x+mono_x, - ya1_x+ya2_x+yara_x+yue_x+yo_x+yori_x+wa_x+wake_x, - wane_x+wayo_x+nn1_x+jya_x+tya_o+nagara2_o+wo_s_x, - ze_x+kke_x+n_si_x+deha_x, - - gotosi_x+saseru_x+zaru_o+zu_o+zunba_o+seru_x+souda_o+youtai_o, - denbun_x+ta_o+tai_o+tagaru_o+taru_x+da1_x+da2_x+daxtu_x, - darou_x+de_x+desi_x+desho_x+desu_x+na2_x+nara_x+nai_o, - nu_o+ne2_o+nn2_o+fuuda_x+besi_x+mai_o+masu_o+masure_o, - mase_x+mitaida_x+you_o+youda_x+rasii_x+rareru_o+reru_x+site_x, - - yougen_x+aru_x+ara_x+ari1_x+ari2_x+ari3_x+are1_x+are2_x, - arou_x+ii_x+itasi_x+itadaku_x+iru_x+eru_x+kakeru_x+kaneru_x, - karazu_x+gatai_x+gatida_x+kudasaru_x+gozai_x+sa1_x+si1_x+siro_x, - jyau_x+jimau_x+sugiru_x+subesi_x+suru_x+sure_x+se_x+seyo_x, - tamau_x+tayu_o+timau_o+dekiru_x+naru_x+nasai_o+nasaru_x+nikui_x, - yasui_x+yoi_x+yaru_x+ttarasii_x - }; - -static u_char rare[] = { - wo_x+ttatte_x+ttara_x+tte1_x+tte2_x+ppanasi_x+ppoi_x+ue_x, - uti_x+oite_x+okeru_x+ori_x+ka1_x+ka2_x+kai_x+kasira_x, - katagata_x+kadouka_x+kana_x+kane_x+kamo_x+kara1_x+kara2_x+ga1_x, - ga2_x+gatera_x+kiri_x+kuseni_x+kurai_x+gurumi_x+kedo_x+koso_x, - koto_x+sa2_x+sae_o+si2_x+sika_x+sura_x+zutu_x+zo_x, - tame_x+dake_x+dano_x+darake_x+tuite_x+tuki_x+tutu_o+tumori_x, - te1_x+te2_o+teru_o+dearou_x+deru_x+to1_x+to2_x+totte_x, - toiu_x+toori_x+toki_x+tokoro_x+tote_x+tohaie_x+tomo_x+do_x, - doori_x+dokoro_x+dokoroka_x+domo_x+na1_x+naa_x+nagara_x+nazo_o, - nado_o+nari_x+nanka_o+nanzo_o+nante_o+ni1_x+ni2_x+ni3_x, - nite_x+nimo_x+ne1_x+nee_x+no1_x+no2_x+node_x+noni_x, - nomi_x+nominrz_x+ha_x+hazu_x+ba_x+bakari_x+he_x+hou_x, - hoka_x+hodo_x+made_x+mama_x+mo1_x+mo2_o+motte_x+mono_x, - ya1_x+ya2_o+yara_x+yue_x+yo_x+yori_x+wa_x+wake_x, - wane_x+wayo_x+nn1_x+jya_x+tya_o+nagara2_o+wo_s_x, - ze_x+kke_x+n_si_x+deha_x, - - gotosi_x+saseru_x+zaru_o+zu_o+zunba_o+seru_x+souda_o+youtai_o, - denbun_x+ta_o+tai_o+tagaru_x+taru_x+da1_x+da2_x+daxtu_x, - darou_x+de_x+desi_x+desho_x+desu_x+na2_x+nara_x+nai_o, - nu_o+ne2_o+nn2_o+fuuda_x+besi_x+mai_o+masu_o+masure_o, - mase_x+mitaida_x+you_o+youda_x+rasii_x+rareru_x+reru_x+site_x, - - yougen_x+aru_x+ara_x+ari1_x+ari2_x+ari3_x+are1_x+are2_x, - arou_x+ii_x+itasi_x+itadaku_x+iru_x+eru_x+kakeru_x+kaneru_x, - karazu_x+gatai_x+gatida_o+kudasaru_x+gozai_x+sa1_x+si1_x+siro_x, - jyau_x+jimau_x+sugiru_x+subesi_x+suru_x+sure_x+se_x+seyo_x, - tamau_x+tayu_o+timau_o+dekiru_x+naru_x+nasai_x+nasaru_x+nikui_o, - yasui_o+yoi_x+yaru_x+ttarasii_x - }; - -static u_char itadake[] = { - wo_x+ttatte_x+ttara_x+tte1_x+tte2_x+ppanasi_x+ppoi_x+ue_x, - uti_x+oite_x+okeru_x+ori_x+ka1_x+ka2_x+kai_x+kasira_x, - katagata_x+kadouka_x+kana_x+kane_x+kamo_x+kara1_x+kara2_x+ga1_x, - ga2_x+gatera_x+kiri_x+kuseni_x+kurai_x+gurumi_x+kedo_x+koso_x, - koto_x+sa2_x+sae_o+si2_x+sika_x+sura_x+zutu_x+zo_x, - tame_x+dake_x+dano_x+darake_x+tuite_x+tuki_x+tutu_x+tumori_x, - te1_x+te2_o+teru_o+dearou_x+deru_x+to1_x+to2_x+totte_x, - toiu_x+toori_x+toki_x+tokoro_x+tote_x+tohaie_x+tomo_x+do_x, - doori_x+dokoro_x+dokoroka_x+domo_x+na1_x+naa_x+nagara_x+nazo_x, - nado_x+nari_x+nanka_x+nanzo_x+nante_x+ni1_x+ni2_x+ni3_x, - nite_x+nimo_x+ne1_x+nee_x+no1_x+no2_x+node_x+noni_x, - nomi_x+nominrz_x+ha_x+hazu_x+ba_o+bakari_x+he_x+hou_x, - hoka_x+hodo_x+made_x+mama_x+mo1_x+mo2_o+motte_x+mono_x, - ya1_x+ya2_x+yara_x+yue_x+yo_x+yori_x+wa_x+wake_x, - wane_x+wayo_x+nn1_x+jya_x+tya_o+nagara2_x+wo_s_x, - ze_x+kke_x+n_si_x+deha_x, - - gotosi_x+saseru_x+zaru_x+zu_o+zunba_x+seru_x+souda_o+youtai_o, - denbun_x+ta_o+tai_x+tagaru_x+taru_x+da1_x+da2_x+daxtu_x, - darou_x+de_x+desi_x+desho_x+desu_x+na2_x+nara_x+nai_o, - nu_o+ne2_o+nn2_o+fuuda_x+besi_x+mai_o+masu_o+masure_o, - mase_x+mitaida_x+you_x+youda_x+rasii_x+rareru_x+reru_x+site_x, - - yougen_x+aru_x+ara_x+ari1_x+ari2_x+ari3_x+are1_x+are2_x, - arou_x+ii_x+itasi_x+itadaku_x+iru_x+eru_x+kakeru_x+kaneru_x, - karazu_x+gatai_x+gatida_x+kudasaru_x+gozai_x+sa1_x+si1_x+siro_x, - jyau_x+jimau_x+sugiru_x+subesi_x+suru_x+sure_x+se_x+seyo_x, - tamau_x+tayu_o+timau_x+dekiru_x+naru_x+nasai_x+nasaru_x+nikui_x, - yasui_x+yoi_x+yaru_x+ttarasii_x - }; - -static u_char exp[] = { - wo_x+ttatte_o+ttara_o+tte1_o+tte2_x+ppanasi_x+ppoi_x+ue_x, - uti_x+oite_x+okeru_x+ori_x+ka1_x+ka2_x+kai_x+kasira_x, - katagata_x+kadouka_x+kana_x+kane_x+kamo_x+kara1_x+kara2_x+ga1_x, - ga2_x+gatera_x+kiri_x+kuseni_x+kurai_x+gurumi_x+kedo_x+koso_x, - koto_x+sa2_x+sae_o+si2_x+sika_x+sura_x+zutu_x+zo_x, - tame_x+dake_x+dano_o+darake_x+tuite_x+tuki_x+tutu_o+tumori_x, - te1_x+te2_o+teru_o+dearou_x+deru_x+to1_x+to2_o+totte_x, - toiu_o+toori_x+toki_x+tokoro_x+tote_o+tohaie_o+tomo_x+do_o, - doori_x+dokoro_x+dokoroka_x+domo_o+na1_x+naa_x+nagara_x+nazo_o, - nado_o+nari_x+nanka_o+nanzo_o+nante_o+ni1_x+ni2_x+ni3_x, - nite_x+nimo_x+ne1_x+nee_x+no1_x+no2_x+node_x+noni_x, - nomi_x+nominrz_x+ha_x+hazu_x+ba_o+bakari_x+he_x+hou_x, - hoka_x+hodo_x+made_x+mama_x+mo1_x+mo2_o+motte_x+mono_x, - ya1_x+ya2_x+yara_x+yue_x+yo_o+yori_x+wa_x+wake_x, - wane_x+wayo_x+nn1_x+jya_x+tya_o+nagara2_o+wo_s_x, - ze_x+kke_x+n_si_x+deha_x, - - gotosi_x+saseru_o+zaru_o+zu_o+zunba_x+seru_x+souda_o+youtai_o, - denbun_x+ta_o+tai_o+tagaru_o+taru_x+da1_x+da2_x+daxtu_x, - darou_x+de_x+desi_x+desho_x+desu_x+na2_x+nara_x+nai_o, - nu_o+ne2_o+nn2_o+fuuda_x+besi_x+mai_o+masu_o+masure_o, - mase_x+mitaida_x+you_o+youda_x+rasii_x+rareru_o+reru_x+site_x, - - yougen_x+aru_x+ara_x+ari1_x+ari2_x+ari3_x+are1_x+are2_x, - arou_x+ii_x+itasi_x+itadaku_x+iru_x+eru_x+kakeru_x+kaneru_x, - karazu_x+gatai_x+gatida_x+kudasaru_x+gozai_x+sa1_x+si1_x+siro_x, - jyau_x+jimau_x+sugiru_x+subesi_x+suru_x+sure_x+se_x+seyo_x, - tamau_x+tayu_o+timau_x+dekiru_x+naru_x+nasai_x+nasaru_x+nikui_o, - yasui_o+yoi_x+yaru_x+ttarasii_x - }; - -static u_char renyou1[] = { - wo_x+ttatte_x+ttara_x+tte1_x+tte2_x+ppanasi_o+ppoi_o+ue_x, - uti_x+oite_x+okeru_x+ori_x+ka1_x+ka2_x+kai_x+kasira_x, - katagata_x+kadouka_x+kana_x+kane_x+kamo_x+kara1_x+kara2_x+ga1_x, - ga2_x+gatera_o+kiri_x+kuseni_x+kurai_x+gurumi_x+kedo_x+koso_x, - koto_x+sa2_x+sae_x+si2_x+sika_x+sura_x+zutu_x+zo_x, - tame_x+dake_x+dano_x+darake_x+tuite_x+tuki_x+tutu_o+tumori_x, - te1_x+te2_o+teru_o+dearou_x+deru_x+to1_x+to2_x+totte_x, - toiu_x+toori_x+toki_x+tokoro_x+tote_x+tohaie_x+tomo_x+do_x, - doori_x+dokoro_x+dokoroka_x+domo_x+na1_o+naa_x+nagara_x+nazo_x, - nado_x+nari_x+nanka_x+nanzo_x+nante_x+ni1_x+ni2_o+ni3_x, - nite_x+nimo_x+ne1_x+nee_x+no1_x+no2_x+node_x+noni_x, - nomi_x+nominrz_x+ha_o+hazu_x+ba_x+bakari_x+he_x+hou_x, - hoka_x+hodo_x+made_x+mama_x+mo1_x+mo2_o+motte_x+mono_x, - ya1_x+ya2_x+yara_x+yue_x+yo_x+yori_x+wa_x+wake_x, - wane_x+wayo_x+nn1_x+jya_x+tya_o+nagara2_o+wo_s_x, - ze_x+kke_x+n_si_x+deha_x, - - gotosi_x+saseru_o+zaru_o+zu_o+zunba_o+seru_x+souda_o+youtai_o, - denbun_x+ta_o+tai_o+tagaru_o+taru_x+da1_x+da2_x+daxtu_x, - darou_x+de_x+desi_x+desho_x+desu_x+na2_x+nara_x+nai_o, - nu_o+ne2_o+nn2_o+fuuda_x+besi_x+mai_o+masu_o+masure_o, - mase_x+mitaida_x+you_o+youda_x+rasii_x+rareru_o+reru_o+site_x, - - yougen_x+aru_x+ara_x+ari1_x+ari2_x+ari3_x+are1_x+are2_x, - arou_x+ii_o+itasi_x+itadaku_x+iru_x+eru_x+kakeru_x+kaneru_x, - karazu_x+gatai_o+gatida_o+kudasaru_x+gozai_x+sa1_x+si1_x+siro_x, - jyau_x+jimau_x+sugiru_x+subesi_x+suru_x+sure_x+se_x+seyo_x, - tamau_x+tayu_o+timau_o+dekiru_x+naru_x+nasai_o+nasaru_o+nikui_o, - yasui_o+yoi_x+yaru_x+ttarasii_x - }; - -static u_char renyou3[] = { - wo_x+ttatte_x+ttara_o+tte1_o+tte2_x+ppanasi_o+ppoi_o+ue_x, - uti_x+oite_x+okeru_x+ori_x+ka1_o+ka2_x+kai_x+kasira_o, - katagata_x+kadouka_o+kana_o+kane_o+kamo_o+kara1_o+kara2_x+ga1_o, - ga2_x+gatera_o+kiri_x+kuseni_x+kurai_o+gurumi_x+kedo_x+koso_x, - koto_x+sa2_o+sae_o+si2_x+sika_o+sura_o+zutu_x+zo_x, - tame_x+dake_o+dano_o+darake_o+tuite_x+tuki_x+tutu_o+tumori_x, - te1_x+te2_o+teru_o+dearou_x+deru_x+to1_o+to2_x+totte_x, - toiu_o+toori_x+toki_x+tokoro_x+tote_o+tohaie_o+tomo_x+do_x, - doori_x+dokoro_o+dokoroka_o+domo_x+na1_o+naa_o+nagara_x+nazo_o, - nado_o+nari_o+nanka_o+nanzo_o+nante_o+ni1_o+ni2_x+ni3_x, - nite_o+nimo_x+ne1_o+nee_o+no1_o+no2_x+node_x+noni_x, - nomi_o+nominrz_o+ha_o+hazu_x+ba_x+bakari_o+he_o+hou_x, - hoka_x+hodo_o+made_o+mama_x+mo1_x+mo2_o+motte_x+mono_x, - ya1_o+ya2_x+yara_o+yue_o+yo_o+yori_o+wa_x+wake_x, - wane_x+wayo_x+nn1_x+jya_o+tya_o+nagara2_o+wo_s_o, - ze_x+kke_x+n_si_x+deha_x, - - gotosi_x+saseru_o+zaru_o+zu_o+zunba_o+seru_x+souda_o+youtai_o, - denbun_x+ta_o+tai_o+tagaru_o+taru_x+da1_x+da2_o+daxtu_o, - darou_o+de_o+desi_o+desho_o+desu_o+na2_o+nara_o+nai_o, - nu_o+ne2_o+nn2_o+fuuda_x+besi_x+mai_o+masu_o+masure_o, - mase_x+mitaida_o+you_o+youda_x+rasii_o+rareru_o+reru_o+site_x, - - yougen_x+aru_x+ara_x+ari1_x+ari2_x+ari3_x+are1_x+are2_x, - arou_x+ii_o+itasi_x+itadaku_x+iru_x+eru_x+kakeru_x+kaneru_x, - karazu_x+gatai_o+gatida_o+kudasaru_x+gozai_x+sa1_x+si1_x+siro_x, - jyau_x+jimau_x+sugiru_x+subesi_x+suru_x+sure_x+se_x+seyo_x, - tamau_x+tayu_o+timau_o+dekiru_x+naru_x+nasai_o+nasaru_o+nikui_o, - yasui_o+yoi_x+yaru_x+ttarasii_x - }; - -static u_char renyou4[] = { - wo_o+ttatte_x+ttara_o+tte1_o+tte2_x+ppanasi_o+ppoi_o+ue_x, - uti_x+oite_x+okeru_x+ori_x+ka1_o+ka2_x+kai_x+kasira_o, - katagata_x+kadouka_o+kana_o+kane_o+kamo_o+kara1_o+kara2_x+ga1_o, - ga2_x+gatera_o+kiri_x+kuseni_x+kurai_o+gurumi_x+kedo_x+koso_x, - koto_x+sa2_x+sae_o+si2_x+sika_x+sura_o+zutu_x+zo_x, - tame_x+dake_o+dano_o+darake_x+tuite_x+tuki_x+tutu_o+tumori_x, - te1_x+te2_o+teru_o+dearou_x+deru_x+to1_o+to2_x+totte_x, - toiu_o+toori_x+toki_x+tokoro_x+tote_o+tohaie_o+tomo_x+do_x, - doori_x+dokoro_o+dokoroka_o+domo_x+na1_x+naa_x+nagara_x+nazo_o, - nado_o+nari_o+nanka_o+nanzo_o+nante_o+ni1_o+ni2_x+ni3_x, - nite_o+nimo_x+ne1_o+nee_o+no1_o+no2_x+node_x+noni_x, - nomi_o+nominrz_o+ha_o+hazu_x+ba_x+bakari_o+he_o+hou_x, - hoka_x+hodo_o+made_o+mama_x+mo1_x+mo2_o+motte_x+mono_x, - ya1_o+ya2_x+yara_o+yue_o+yo_o+yori_o+wa_x+wake_x, - wane_x+wayo_x+nn1_x+jya_o+tya_o+nagara2_o+wo_s_x, - ze_x+kke_x+n_si_x+deha_x, - - gotosi_x+saseru_o+zaru_o+zu_o+zunba_o+seru_x+souda_x+youtai_x, - denbun_x+ta_x+tai_o+tagaru_o+taru_x+da1_x+da2_o+daxtu_o, - darou_o+de_o+desi_o+desho_o+desu_o+na2_o+nara_o+nai_x, - nu_o+ne2_o+nn2_o+fuuda_x+besi_x+mai_x+masu_x+masure_x, - mase_x+mitaida_o+you_x+youda_x+rasii_o+rareru_o+reru_x+site_x, - - yougen_x+aru_x+ara_x+ari1_x+ari2_x+ari3_x+are1_x+are2_x, - arou_x+ii_o+itasi_o+itadaku_o+iru_x+eru_x+kakeru_x+kaneru_x, - karazu_x+gatai_o+gatida_o+kudasaru_o+gozai_x+sa1_o+si1_o+siro_x, - jyau_x+jimau_x+sugiru_x+subesi_x+suru_o+sure_o+se_o+seyo_x, - tamau_x+tayu_o+timau_o+dekiru_o+naru_x+nasai_o+nasaru_o+nikui_o, - yasui_o+yoi_x+yaru_x+ttarasii_x - }; - -static u_char renyou5[] = { - wo_x+ttatte_x+ttara_x+tte1_x+tte2_x+ppanasi_o+ppoi_x+ue_x, - uti_x+oite_x+okeru_x+ori_x+ka1_x+ka2_x+kai_x+kasira_x, - katagata_x+kadouka_x+kana_x+kane_x+kamo_x+kara1_x+kara2_x+ga1_x, - ga2_x+gatera_o+kiri_x+kuseni_x+kurai_x+gurumi_x+kedo_x+koso_o, - koto_x+sa2_x+sae_o+si2_x+sika_x+sura_x+zutu_x+zo_x, - tame_x+dake_x+dano_x+darake_x+tuite_x+tuki_x+tutu_o+tumori_x, - te1_x+te2_x+teru_x+dearou_x+deru_x+to1_x+to2_x+totte_x, - toiu_x+toori_x+toki_x+tokoro_x+tote_x+tohaie_x+tomo_x+do_x, - doori_x+dokoro_x+dokoroka_x+domo_x+na1_x+naa_x+nagara_x+nazo_x, - nado_x+nari_x+nanka_x+nanzo_x+nante_x+ni1_x+ni2_o+ni3_x, - nite_x+nimo_x+ne1_x+nee_x+no1_x+no2_x+node_x+noni_x, - nomi_x+nominrz_x+ha_o+hazu_x+ba_x+bakari_x+he_x+hou_x, - hoka_x+hodo_x+made_x+mama_x+mo1_x+mo2_o+motte_x+mono_x, - ya1_x+ya2_x+yara_x+yue_x+yo_x+yori_x+wa_x+wake_x, - wane_x+wayo_x+nn1_x+jya_x+tya_x+nagara2_o+wo_s_x, - ze_x+kke_x+n_si_x+deha_x, - - gotosi_x+saseru_x+zaru_x+zu_x+zunba_x+seru_x+souda_o+youtai_o, - denbun_x+ta_x+tai_o+tagaru_o+taru_x+da1_x+da2_x+daxtu_x, - darou_x+de_x+desi_x+desho_x+desu_x+na2_x+nara_x+nai_x, - nu_x+ne2_x+nn2_x+fuuda_x+besi_x+mai_x+masu_o+masure_o, - mase_x+mitaida_x+you_x+youda_x+rasii_x+rareru_x+reru_x+site_x, - - yougen_x+aru_x+ara_x+ari1_x+ari2_x+ari3_x+are1_x+are2_x, - arou_x+ii_o+itasi_x+itadaku_x+iru_x+eru_o+kakeru_x+kaneru_x, - karazu_x+gatai_o+gatida_o+kudasaru_x+gozai_x+sa1_x+si1_x+siro_x, - jyau_x+jimau_x+sugiru_x+subesi_x+suru_x+sure_x+se_x+seyo_x, - tamau_x+tayu_x+timau_x+dekiru_x+naru_x+nasai_o+nasaru_x+nikui_o, - yasui_o+yoi_x+yaru_x+ttarasii_x - }; - -static u_char renyou7[] = { - wo_x+ttatte_x+ttara_o+tte1_o+tte2_x+ppanasi_o+ppoi_x+ue_x, - uti_x+oite_x+okeru_x+ori_x+ka1_o+ka2_x+kai_x+kasira_o, - katagata_x+kadouka_o+kana_o+kane_o+kamo_o+kara1_o+kara2_x+ga1_o, - ga2_x+gatera_o+kiri_x+kuseni_x+kurai_o+gurumi_x+kedo_x+koso_o, - koto_x+sa2_o+sae_o+si2_x+sika_o+sura_o+zutu_x+zo_x, - tame_x+dake_o+dano_o+darake_o+tuite_x+tuki_x+tutu_o+tumori_x, - te1_x+te2_x+teru_x+dearou_x+deru_x+to1_o+to2_x+totte_x, - toiu_o+toori_x+toki_x+tokoro_x+tote_o+tohaie_o+tomo_x+do_x, - doori_x+dokoro_o+dokoroka_o+domo_x+na1_o+naa_o+nagara_x+nazo_o, - nado_o+nari_o+nanka_o+nanzo_o+nante_o+ni1_o+ni2_x+ni3_x, - nite_x+nimo_x+ne1_o+nee_o+no1_o+no2_x+node_x+noni_x, - nomi_o+nominrz_o+ha_o+hazu_x+ba_x+bakari_o+he_o+hou_x, - hoka_x+hodo_o+made_o+mama_x+mo1_x+mo2_o+motte_x+mono_x, - ya1_o+ya2_x+yara_o+yue_o+yo_o+yori_o+wa_x+wake_x, - wane_x+wayo_x+nn1_x+jya_o+tya_x+nagara2_o+wo_s_o, - ze_x+kke_x+n_si_x+deha_x, - - gotosi_x+saseru_x+zaru_x+zu_x+zunba_x+seru_x+souda_o+youtai_o, - denbun_x+ta_x+tai_o+tagaru_o+taru_x+da1_x+da2_o+daxtu_o, - darou_o+de_o+desi_o+desho_o+desu_o+na2_o+nara_o+nai_x, - nu_x+ne2_x+nn2_x+fuuda_x+besi_x+mai_x+masu_o+masure_o, - mase_x+mitaida_o+you_x+youda_x+rasii_o+rareru_x+reru_x+site_x, - - yougen_x+aru_x+ara_x+ari1_x+ari2_x+ari3_x+are1_x+are2_x, - arou_x+ii_o+itasi_x+itadaku_x+iru_x+eru_o+kakeru_x+kaneru_x, - karazu_x+gatai_o+gatida_o+kudasaru_x+gozai_x+sa1_x+si1_x+siro_x, - jyau_x+jimau_x+sugiru_x+subesi_x+suru_x+sure_x+se_x+seyo_x, - tamau_x+tayu_x+timau_x+dekiru_x+naru_x+nasai_o+nasaru_x+nikui_o, - yasui_o+yoi_x+yaru_x+ttarasii_x - }; - -static u_char renyou8[] = { - wo_o+ttatte_x+ttara_o+tte1_o+tte2_x+ppanasi_o+ppoi_x+ue_x, - uti_x+oite_x+okeru_x+ori_x+ka1_o+ka2_x+kai_x+kasira_o, - katagata_x+kadouka_o+kana_o+kane_o+kamo_o+kara1_o+kara2_x+ga1_o, - ga2_x+gatera_o+kiri_x+kuseni_x+kurai_o+gurumi_x+kedo_x+koso_o, - koto_x+sa2_x+sae_o+si2_x+sika_x+sura_o+zutu_x+zo_x, - tame_x+dake_o+dano_o+darake_x+tuite_x+tuki_x+tutu_o+tumori_x, - te1_x+te2_x+teru_x+dearou_x+deru_x+to1_o+to2_x+totte_x, - toiu_o+toori_x+toki_x+tokoro_x+tote_o+tohaie_o+tomo_x+do_x, - doori_x+dokoro_o+dokoroka_o+domo_x+na1_x+naa_x+nagara_x+nazo_o, - nado_o+nari_o+nanka_o+nanzo_o+nante_o+ni1_o+ni2_x+ni3_x, - nite_x+nimo_x+ne1_o+nee_o+no1_o+no2_x+node_x+noni_x, - nomi_o+nominrz_o+ha_o+hazu_x+ba_x+bakari_o+he_o+hou_x, - hoka_x+hodo_o+made_o+mama_x+mo1_x+mo2_o+motte_x+mono_x, - ya1_o+ya2_x+yara_o+yue_o+yo_o+yori_o+wa_x+wake_x, - wane_x+wayo_x+nn1_x+jya_o+tya_x+nagara2_o+wo_s_x, - ze_x+kke_x+n_si_x+deha_x, - - gotosi_x+saseru_x+zaru_x+zu_x+zunba_x+seru_x+souda_x+youtai_x, - denbun_x+ta_x+tai_o+tagaru_o+taru_x+da1_x+da2_o+daxtu_o, - darou_o+de_o+desi_o+desho_o+desu_o+na2_o+nara_o+nai_x, - nu_x+ne2_x+nn2_x+fuuda_x+besi_x+mai_x+masu_x+masure_x, - mase_x+mitaida_x+you_x+youda_x+rasii_o+rareru_x+reru_x+site_x, - - yougen_x+aru_x+ara_x+ari1_x+ari2_x+ari3_x+are1_x+are2_x, - arou_x+ii_o+itasi_o+itadaku_o+iru_x+eru_x+kakeru_x+kaneru_x, - karazu_x+gatai_o+gatida_o+kudasaru_o+gozai_x+sa1_x+si1_o+siro_o, - jyau_x+jimau_x+sugiru_x+subesi_x+suru_o+sure_o+se_o+seyo_o, - tamau_x+tayu_x+timau_x+dekiru_o+naru_x+nasai_o+nasaru_x+nikui_o, - yasui_o+yoi_x+yaru_x+ttarasii_x - }; - -static u_char sa5renyou1[] = { - wo_x+ttatte_x+ttara_x+tte1_x+tte2_x+ppanasi_o+ppoi_x+ue_x, - uti_x+oite_x+okeru_x+ori_x+ka1_x+ka2_x+kai_x+kasira_x, - katagata_x+kadouka_x+kana_x+kane_x+kamo_x+kara1_x+kara2_x+ga1_x, - ga2_x+gatera_o+kiri_x+kuseni_x+kurai_x+gurumi_x+kedo_x+koso_o, - koto_x+sa2_x+sae_o+si2_x+sika_x+sura_x+zutu_x+zo_x, - tame_x+dake_x+dano_x+darake_x+tuite_x+tuki_x+tutu_o+tumori_x, - te1_x+te2_o+teru_o+dearou_x+deru_x+to1_x+to2_x+totte_x, - toiu_x+toori_x+toki_x+tokoro_x+tote_x+tohaie_x+tomo_x+do_x, - doori_x+dokoro_x+dokoroka_x+domo_x+na1_x+naa_x+nagara_x+nazo_x, - nado_x+nari_x+nanka_x+nanzo_x+nante_x+ni1_x+ni2_o+ni3_x, - nite_x+nimo_x+ne1_x+nee_x+no1_x+no2_x+node_x+noni_x, - nomi_x+nominrz_x+ha_o+hazu_x+ba_x+bakari_x+he_x+hou_x, - hoka_x+hodo_x+made_x+mama_x+mo1_x+mo2_o+motte_x+mono_x, - ya1_x+ya2_x+yara_x+yue_x+yo_x+yori_x+wa_x+wake_x, - wane_x+wayo_x+nn1_x+jya_x+tya_o+nagara2_o+wo_s_x, - ze_x+kke_x+n_si_x+deha_x, - - gotosi_x+saseru_x+zaru_x+zu_x+zunba_x+seru_x+souda_o+youtai_o, - denbun_x+ta_o+tai_o+tagaru_o+taru_x+da1_x+da2_x+daxtu_x, - darou_x+de_x+desi_x+desho_x+desu_x+na2_x+nara_x+nai_x, - nu_x+ne2_x+nn2_x+fuuda_x+besi_x+mai_x+masu_o+masure_o, - mase_x+mitaida_x+you_x+youda_x+rasii_x+rareru_x+reru_x+site_x, - - yougen_x+aru_x+ara_x+ari1_x+ari2_x+ari3_x+are1_x+are2_x, - arou_x+ii_o+itasi_x+itadaku_x+iru_x+eru_x+kakeru_x+kaneru_x, - karazu_x+gatai_o+gatida_o+kudasaru_x+gozai_x+sa1_x+si1_x+siro_x, - jyau_x+jimau_x+sugiru_x+subesi_x+suru_x+sure_x+se_x+seyo_x, - tamau_x+tayu_o+timau_o+dekiru_x+naru_x+nasai_o+nasaru_x+nikui_o, - yasui_o+yoi_x+yaru_x+ttarasii_x - }; - -static u_char sa5renyou3[] = { - wo_x+ttatte_x+ttara_o+tte1_o+tte2_x+ppanasi_o+ppoi_x+ue_x, - uti_x+oite_x+okeru_x+ori_x+ka1_o+ka2_x+kai_x+kasira_o, - katagata_x+kadouka_o+kana_o+kane_o+kamo_o+kara1_o+kara2_x+ga1_o, - ga2_x+gatera_o+kiri_x+kuseni_x+kurai_o+gurumi_x+kedo_x+koso_o, - koto_x+sa2_o+sae_o+si2_x+sika_o+sura_o+zutu_x+zo_x, - tame_x+dake_o+dano_o+darake_x+tuite_x+tuki_x+tutu_o+tumori_x, - te1_x+te2_o+teru_o+dearou_x+deru_x+to1_o+to2_x+totte_x, - toiu_o+toori_x+toki_x+tokoro_x+tote_o+tohaie_o+tomo_x+do_x, - doori_x+dokoro_o+dokoroka_o+domo_x+na1_o+naa_o+nagara_x+nazo_o, - nado_o+nari_o+nanka_o+nanzo_o+nante_o+ni1_o+ni2_x+ni3_x, - nite_x+nimo_x+ne1_o+nee_o+no1_o+no2_x+node_x+noni_x, - nomi_o+nominrz_o+ha_o+hazu_x+ba_x+bakari_o+he_o+hou_x, - hoka_x+hodo_o+made_o+mama_x+mo1_x+mo2_o+motte_x+mono_x, - ya1_o+ya2_x+yara_o+yue_o+yo_o+yori_o+wa_x+wake_x, - wane_x+wayo_x+nn1_x+jya_o+tya_o+nagara2_o+wo_s_o, - ze_x+kke_x+n_si_x+deha_x, - - gotosi_x+saseru_x+zaru_x+zu_x+zunba_x+seru_x+souda_o+youtai_o, - denbun_x+ta_o+tai_o+tagaru_o+taru_x+da1_x+da2_o+daxtu_o, - darou_o+de_o+desi_o+desho_o+desu_o+na2_o+nara_o+nai_x, - nu_x+ne2_x+nn2_x+fuuda_x+besi_x+mai_x+masu_o+masure_o, - mase_x+mitaida_o+you_x+youda_x+rasii_o+rareru_x+reru_x+site_x, - - yougen_x+aru_x+ara_x+ari1_x+ari2_x+ari3_x+are1_x+are2_x, - arou_x+ii_o+itasi_x+itadaku_x+iru_x+eru_x+kakeru_x+kaneru_x, - karazu_x+gatai_o+gatida_o+kudasaru_x+gozai_x+sa1_x+si1_x+siro_x, - jyau_x+jimau_x+sugiru_x+subesi_x+suru_x+sure_x+se_x+seyo_x, - tamau_x+tayu_o+timau_o+dekiru_x+naru_x+nasai_o+nasaru_x+nikui_o, - yasui_o+yoi_x+yaru_x+ttarasii_x - }; - -static u_char sa5renyou4[] = { - wo_o+ttatte_x+ttara_o+tte1_o+tte2_x+ppanasi_o+ppoi_x+ue_x, - uti_x+oite_x+okeru_x+ori_x+ka1_o+ka2_x+kai_x+kasira_o, - katagata_x+kadouka_o+kana_o+kane_o+kamo_o+kara1_o+kara2_x+ga1_o, - ga2_x+gatera_o+kiri_x+kuseni_x+kurai_o+gurumi_x+kedo_x+koso_o, - koto_x+sa2_x+sae_o+si2_x+sika_x+sura_o+zutu_x+zo_x, - tame_x+dake_o+dano_o+darake_x+tuite_x+tuki_x+tutu_o+tumori_x, - te1_x+te2_o+teru_o+dearou_x+deru_x+to1_o+to2_x+totte_x, - toiu_o+toori_x+toki_x+tokoro_x+tote_o+tohaie_o+tomo_x+do_x, - doori_x+dokoro_o+dokoroka_o+domo_x+na1_x+naa_x+nagara_x+nazo_o, - nado_o+nari_o+nanka_o+nanzo_o+nante_o+ni1_o+ni2_x+ni3_x, - nite_x+nimo_x+ne1_o+nee_o+no1_o+no2_x+node_x+noni_x, - nomi_o+nominrz_o+ha_o+hazu_x+ba_x+bakari_o+he_o+hou_x, - hoka_x+hodo_o+made_o+mama_x+mo1_x+mo2_o+motte_x+mono_x, - ya1_o+ya2_x+yara_o+yue_o+yo_o+yori_o+wa_x+wake_x, - wane_x+wayo_x+nn1_x+jya_o+tya_o+nagara2_o+wo_s_x, - ze_x+kke_x+n_si_x+deha_x, - - gotosi_x+saseru_x+zaru_x+zu_x+zunba_x+seru_x+souda_x+youtai_x, - denbun_x+ta_x+tai_o+tagaru_o+taru_x+da1_x+da2_o+daxtu_o, - darou_o+de_o+desi_o+desho_o+desu_o+na2_o+nara_o+nai_x, - nu_x+ne2_x+nn2_x+fuuda_x+besi_x+mai_x+masu_x+masure_x, - mase_x+mitaida_o+you_x+youda_x+rasii_o+rareru_x+reru_x+site_x, - - yougen_x+aru_x+ara_x+ari1_x+ari2_x+ari3_x+are1_x+are2_x, - arou_x+ii_o+itasi_o+itadaku_o+iru_x+eru_x+kakeru_x+kaneru_x, - karazu_x+gatai_o+gatida_o+kudasaru_o+gozai_x+sa1_o+si1_o+siro_x, - jyau_x+jimau_x+sugiru_x+subesi_x+suru_o+sure_o+se_o+seyo_x, - tamau_x+tayu_o+timau_o+dekiru_o+naru_x+nasai_o+nasaru_x+nikui_o, - yasui_o+yoi_x+yaru_x+ttarasii_x - }; - -static u_char krenyou[] = { - wo_x+ttatte_o+ttara_x+tte1_x+tte2_o+ppanasi_x+ppoi_x+ue_x, - uti_x+oite_x+okeru_x+ori_x+ka1_o+ka2_x+kai_x+kasira_x, - katagata_x+kadouka_x+kana_x+kane_x+kamo_x+kara1_x+kara2_x+ga1_x, - ga2_x+gatera_x+kiri_x+kuseni_x+kurai_x+gurumi_x+kedo_x+koso_o, - koto_x+sa2_x+sae_o+si2_x+sika_o+sura_x+zutu_x+zo_x, - tame_x+dake_x+dano_o+darake_x+tuite_x+tuki_x+tutu_x+tumori_x, - te1_o+te2_x+teru_x+dearou_x+deru_x+to1_x+to2_x+totte_x, - toiu_x+toori_x+toki_x+tokoro_x+tote_x+tohaie_x+tomo_o+do_x, - doori_x+dokoro_x+dokoroka_x+domo_x+na1_x+naa_x+nagara_x+nazo_o, - nado_o+nari_x+nanka_o+nanzo_o+nante_o+ni1_x+ni2_x+ni3_x, - nite_x+nimo_x+ne1_o+nee_x+no1_x+no2_x+node_x+noni_x, - nomi_x+nominrz_x+ha_o+hazu_x+ba_x+bakari_x+he_x+hou_x, - hoka_x+hodo_x+made_x+mama_x+mo1_x+mo2_o+motte_x+mono_x, - ya1_x+ya2_x+yara_x+yue_x+yo_x+yori_x+wa_x+wake_x, - wane_x+wayo_x+nn1_x+jya_x+tya_x+nagara2_x+wo_s_x, - ze_x+kke_x+n_si_x+deha_x, - - gotosi_x+saseru_x+zaru_x+zu_x+zunba_x+seru_x+souda_x+youtai_x, - denbun_x+ta_x+tai_x+tagaru_x+taru_x+da1_x+da2_x+daxtu_x, - darou_x+de_x+desi_x+desho_x+desu_x+na2_x+nara_x+nai_o, - nu_x+ne2_x+nn2_x+fuuda_x+besi_x+mai_x+masu_x+masure_x, - mase_x+mitaida_x+you_x+youda_x+rasii_x+rareru_x+reru_x+site_x, - - yougen_x+aru_x+ara_x+ari1_x+ari2_x+ari3_x+are1_x+are2_x, - arou_x+ii_x+itasi_x+itadaku_x+iru_x+eru_x+kakeru_x+kaneru_x, - karazu_x+gatai_x+gatida_x+kudasaru_x+gozai_x+sa1_o+si1_o+siro_o, - jyau_x+jimau_x+sugiru_x+subesi_o+suru_o+sure_o+se_o+seyo_o, - tamau_x+tayu_x+timau_x+dekiru_o+naru_o+nasai_x+nasaru_x+nikui_x, - yasui_x+yoi_x+yaru_x+ttarasii_x - }; - -static u_char drenyou1[] = { - wo_x+ttatte_x+ttara_x+tte1_x+tte2_x+ppanasi_x+ppoi_x+ue_x, - uti_x+oite_x+okeru_x+ori_x+ka1_x+ka2_x+kai_x+kasira_x, - katagata_x+kadouka_x+kana_x+kane_x+kamo_x+kara1_x+kara2_x+ga1_x, - ga2_x+gatera_x+kiri_x+kuseni_x+kurai_x+gurumi_x+kedo_x+koso_o, - koto_x+sa2_x+sae_o+si2_x+sika_o+sura_o+zutu_x+zo_x, - tame_x+dake_x+dano_x+darake_x+tuite_x+tuki_x+tutu_x+tumori_x, - te1_x+te2_x+teru_x+dearou_x+deru_x+to1_x+to2_x+totte_x, - toiu_x+toori_x+toki_x+tokoro_x+tote_x+tohaie_x+tomo_x+do_x, - doori_x+dokoro_x+dokoroka_x+domo_x+na1_x+naa_x+nagara_x+nazo_o, - nado_o+nari_x+nanka_o+nanzo_o+nante_o+ni1_x+ni2_x+ni3_x, - nite_x+nimo_x+ne1_x+nee_x+no1_x+no2_x+node_x+noni_x, - nomi_x+nominrz_x+ha_o+hazu_x+ba_x+bakari_x+he_x+hou_x, - hoka_x+hodo_x+made_x+mama_x+mo1_x+mo2_o+motte_x+mono_x, - ya1_x+ya2_x+yara_x+yue_x+yo_x+yori_x+wa_x+wake_x, - wane_x+wayo_x+nn1_x+jya_x+tya_x+nagara2_x+wo_s_x, - ze_x+kke_x+n_si_x+deha_x, - - gotosi_x+saseru_x+zaru_x+zu_x+zunba_x+seru_x+souda_x+youtai_x, - denbun_x+ta_x+tai_x+tagaru_x+taru_x+da1_x+da2_x+daxtu_x, - darou_x+de_x+desi_x+desho_x+desu_x+na2_x+nara_x+nai_o, - nu_x+ne2_x+nn2_x+fuuda_x+besi_x+mai_x+masu_x+masure_x, - mase_x+mitaida_x+you_x+youda_x+rasii_x+rareru_x+reru_x+site_x, - - yougen_x+aru_o+ara_o+ari1_o+ari2_x+ari3_x+are1_o+are2_x, - arou_o+ii_x+itasi_x+itadaku_x+iru_x+eru_x+kakeru_x+kaneru_x, - karazu_x+gatai_x+gatida_x+kudasaru_x+gozai_o+sa1_x+si1_x+siro_x, - jyau_x+jimau_x+sugiru_x+subesi_x+suru_x+sure_x+se_x+seyo_x, - tamau_x+tayu_x+timau_x+dekiru_x+naru_x+nasai_x+nasaru_x+nikui_x, - yasui_x+yoi_x+yaru_x+ttarasii_x - }; - -static u_char drenyou2[] = { - wo_x+ttatte_x+ttara_x+tte1_x+tte2_x+ppanasi_x+ppoi_x+ue_x, - uti_x+oite_o+okeru_o+ori_x+ka1_o+ka2_x+kai_x+kasira_o, - katagata_x+kadouka_o+kana_o+kane_o+kamo_x+kara1_x+kara2_x+ga1_x, - ga2_x+gatera_x+kiri_x+kuseni_x+kurai_o+gurumi_x+kedo_x+koso_o, - koto_x+sa2_o+sae_o+si2_x+sika_o+sura_o+zutu_x+zo_x, - tame_x+dake_o+dano_o+darake_x+tuite_o+tuki_o+tutu_x+tumori_x, - te1_x+te2_x+teru_x+dearou_x+deru_x+to1_x+to2_o+totte_o, - toiu_x+toori_x+toki_x+tokoro_x+tote_x+tohaie_x+tomo_x+do_x, - doori_x+dokoro_o+dokoroka_o+domo_x+na1_o+naa_o+nagara_x+nazo_o, - nado_o+nari_o+nanka_o+nanzo_o+nante_o+ni1_x+ni2_x+ni3_x, - nite_x+nimo_x+ne1_o+nee_o+no1_x+no2_x+node_x+noni_x, - nomi_o+nominrz_o+ha_o+hazu_x+ba_x+bakari_o+he_x+hou_x, - hoka_x+hodo_x+made_o+mama_x+mo1_x+mo2_o+motte_x+mono_x, - ya1_x+ya2_x+yara_o+yue_x+yo_o+yori_x+wa_x+wake_x, - wane_o+wayo_x+nn1_x+jya_x+tya_x+nagara2_x+wo_s_x, - ze_x+kke_x+n_si_x+deha_o, - - gotosi_x+saseru_x+zaru_x+zu_x+zunba_x+seru_x+souda_x+youtai_x, - denbun_x+ta_x+tai_x+tagaru_x+taru_x+da1_x+da2_x+daxtu_x, - darou_x+de_o+desi_x+desho_x+desu_x+na2_x+nara_o+nai_o, - nu_x+ne2_x+nn2_x+fuuda_x+besi_x+mai_x+masu_x+masure_x, - mase_x+mitaida_x+you_x+youda_x+rasii_x+rareru_x+reru_x+site_x, - - yougen_x+aru_o+ara_o+ari1_x+ari2_o+ari3_x+are1_x+are2_o, - arou_o+ii_x+itasi_x+itadaku_x+iru_x+eru_x+kakeru_x+kaneru_x, - karazu_x+gatai_x+gatida_x+kudasaru_x+gozai_x+sa1_o+si1_o+siro_o, - jyau_x+jimau_x+sugiru_x+subesi_o+suru_o+sure_o+se_o+seyo_o, - tamau_x+tayu_x+timau_x+dekiru_o+naru_o+nasai_o+nasaru_o+nikui_x, - yasui_x+yoi_x+yaru_x+ttarasii_x - }; - -static u_char drenyou3[] = { - wo_x+ttatte_x+ttara_x+tte1_x+tte2_x+ppanasi_x+ppoi_x+ue_x, - uti_x+oite_x+okeru_x+ori_x+ka1_o+ka2_x+kai_x+kasira_x, - katagata_x+kadouka_x+kana_x+kane_x+kamo_x+kara1_x+kara2_x+ga1_x, - ga2_x+gatera_x+kiri_x+kuseni_x+kurai_x+gurumi_x+kedo_x+koso_x, - koto_x+sa2_x+sae_x+si2_x+sika_x+sura_x+zutu_x+zo_x, - tame_x+dake_x+dano_x+darake_x+tuite_x+tuki_x+tutu_x+tumori_x, - te1_x+te2_x+teru_x+dearou_x+deru_x+to1_x+to2_x+totte_x, - toiu_x+toori_x+toki_x+tokoro_x+tote_x+tohaie_x+tomo_x+do_x, - doori_x+dokoro_o+dokoroka_o+domo_x+na1_x+naa_x+nagara_x+nazo_o, - nado_o+nari_x+nanka_o+nanzo_o+nante_o+ni1_x+ni2_x+ni3_x, - nite_x+nimo_x+ne1_o+nee_x+no1_x+no2_x+node_x+noni_x, - nomi_x+nominrz_x+ha_o+hazu_x+ba_x+bakari_x+he_x+hou_x, - hoka_x+hodo_x+made_x+mama_x+mo1_x+mo2_x+motte_x+mono_x, - ya1_x+ya2_x+yara_x+yue_x+yo_o+yori_x+wa_x+wake_x, - wane_x+wayo_x+nn1_x+jya_x+tya_x+nagara2_x+wo_s_x, - ze_x+kke_x+n_si_x+deha_x, - - gotosi_x+saseru_x+zaru_x+zu_x+zunba_x+seru_x+souda_x+youtai_x, - denbun_x+ta_x+tai_x+tagaru_x+taru_x+da1_x+da2_x+daxtu_x, - darou_x+de_x+desi_x+desho_x+desu_x+na2_x+nara_x+nai_x, - nu_x+ne2_x+nn2_x+fuuda_x+besi_x+mai_x+masu_x+masure_x, - mase_x+mitaida_x+you_x+youda_x+rasii_x+rareru_x+reru_x+site_x, - - yougen_x+aru_x+ara_x+ari1_x+ari2_x+ari3_x+are1_x+are2_x, - arou_x+ii_x+itasi_x+itadaku_x+iru_x+eru_x+kakeru_x+kaneru_x, - karazu_x+gatai_x+gatida_x+kudasaru_x+gozai_x+sa1_o+si1_o+siro_o, - jyau_x+jimau_x+sugiru_x+subesi_o+suru_o+sure_o+se_o+seyo_o, - tamau_x+tayu_x+timau_x+dekiru_o+naru_o+nasai_o+nasaru_o+nikui_x, - yasui_x+yoi_x+yaru_x+ttarasii_x - }; - -static u_char onbin1[] = { - wo_x+ttatte_x+ttara_x+tte1_x+tte2_x+ppanasi_x+ppoi_x+ue_x, - uti_x+oite_x+okeru_x+ori_x+ka1_x+ka2_x+kai_x+kasira_x, - katagata_x+kadouka_x+kana_x+kane_x+kamo_x+kara1_x+kara2_x+ga1_x, - ga2_x+gatera_x+kiri_x+kuseni_x+kurai_x+gurumi_x+kedo_x+koso_x, - koto_x+sa2_x+sae_x+si2_x+sika_x+sura_x+zutu_x+zo_x, - tame_x+dake_x+dano_x+darake_x+tuite_x+tuki_x+tutu_x+tumori_x, - te1_x+te2_x+teru_x+dearou_x+deru_x+to1_x+to2_x+totte_x, - toiu_x+toori_x+toki_x+tokoro_x+tote_x+tohaie_x+tomo_x+do_x, - doori_x+dokoro_x+dokoroka_x+domo_x+na1_x+naa_x+nagara_x+nazo_x, - nado_x+nari_x+nanka_x+nanzo_x+nante_x+ni1_x+ni2_x+ni3_x, - nite_x+nimo_x+ne1_x+nee_x+no1_x+no2_x+node_x+noni_x, - nomi_x+nominrz_x+ha_x+hazu_x+ba_x+bakari_x+he_x+hou_x, - hoka_x+hodo_x+made_x+mama_x+mo1_x+mo2_x+motte_x+mono_x, - ya1_x+ya2_x+yara_x+yue_x+yo_x+yori_x+wa_x+wake_x, - wane_x+wayo_x+nn1_x+jya_x+tya_x+nagara2_x+wo_s_x, - ze_x+kke_x+n_si_x+deha_x, - - gotosi_x+saseru_x+zaru_x+zu_x+zunba_x+seru_x+souda_x+youtai_x, - denbun_x+ta_o+tai_x+tagaru_x+taru_x+da1_x+da2_x+daxtu_x, - darou_x+de_x+desi_x+desho_x+desu_x+na2_x+nara_x+nai_x, - nu_x+ne2_x+nn2_x+fuuda_x+besi_x+mai_x+masu_x+masure_x, - mase_x+mitaida_x+you_x+youda_x+rasii_x+rareru_x+reru_x+site_x, - - yougen_x+aru_x+ara_x+ari1_x+ari2_x+ari3_x+are1_x+are2_x, - arou_x+ii_x+itasi_x+itadaku_x+iru_x+eru_x+kakeru_x+kaneru_x, - karazu_x+gatai_x+gatida_x+kudasaru_x+gozai_x+sa1_x+si1_x+siro_x, - jyau_x+jimau_x+sugiru_x+subesi_x+suru_x+sure_x+se_x+seyo_x, - tamau_x+tayu_x+timau_x+dekiru_x+naru_x+nasai_x+nasaru_x+nikui_x, - yasui_x+yoi_x+yaru_x+ttarasii_x - }; - - -static u_char onbin2[] = { - wo_x+ttatte_x+ttara_x+tte1_x+tte2_x+ppanasi_x+ppoi_x+ue_x, - uti_x+oite_x+okeru_x+ori_x+ka1_x+ka2_x+kai_x+kasira_x, - katagata_x+kadouka_x+kana_x+kane_x+kamo_x+kara1_x+kara2_x+ga1_x, - ga2_x+gatera_x+kiri_x+kuseni_x+kurai_x+gurumi_x+kedo_x+koso_x, - koto_x+sa2_x+sae_x+si2_x+sika_x+sura_x+zutu_x+zo_x, - tame_x+dake_x+dano_x+darake_x+tuite_x+tuki_x+tutu_x+tumori_x, - te1_x+te2_o+teru_o+dearou_x+deru_x+to1_x+to2_x+totte_x, - toiu_x+toori_x+toki_x+tokoro_x+tote_x+tohaie_x+tomo_x+do_x, - doori_x+dokoro_x+dokoroka_x+domo_x+na1_x+naa_x+nagara_x+nazo_x, - nado_x+nari_x+nanka_x+nanzo_x+nante_x+ni1_x+ni2_x+ni3_x, - nite_x+nimo_x+ne1_x+nee_x+no1_x+no2_x+node_x+noni_x, - nomi_x+nominrz_x+ha_x+hazu_x+ba_x+bakari_x+he_x+hou_x, - hoka_x+hodo_x+made_x+mama_x+mo1_x+mo2_x+motte_x+mono_x, - ya1_x+ya2_x+yara_x+yue_x+yo_x+yori_x+wa_x+wake_x, - wane_x+wayo_x+nn1_x+jya_x+tya_o+nagara2_x+wo_s_x, - ze_x+kke_x+n_si_x+deha_x, - - gotosi_x+saseru_x+zaru_x+zu_x+zunba_x+seru_x+souda_x+youtai_x, - denbun_x+ta_o+tai_x+tagaru_x+taru_x+da1_x+da2_x+daxtu_x, - darou_x+de_x+desi_x+desho_x+desu_x+na2_x+nara_x+nai_x, - nu_x+ne2_x+nn2_x+fuuda_x+besi_x+mai_x+masu_x+masure_x, - mase_x+mitaida_x+you_x+youda_x+rasii_x+rareru_x+reru_x+site_x, - - yougen_x+aru_x+ara_x+ari1_x+ari2_x+ari3_x+are1_x+are2_x, - arou_x+ii_x+itasi_x+itadaku_x+iru_x+eru_x+kakeru_x+kaneru_x, - karazu_x+gatai_x+gatida_x+kudasaru_x+gozai_x+sa1_x+si1_x+siro_x, - jyau_x+jimau_x+sugiru_x+subesi_x+suru_x+sure_x+se_x+seyo_x, - tamau_x+tayu_o+timau_o+dekiru_x+naru_x+nasai_x+nasaru_x+nikui_x, - yasui_x+yoi_x+yaru_x+ttarasii_x - }; - -static u_char onbin3[] = { - wo_x+ttatte_x+ttara_x+tte1_x+tte2_x+ppanasi_x+ppoi_x+ue_x, - uti_x+oite_x+okeru_x+ori_x+ka1_x+ka2_x+kai_x+kasira_x, - katagata_x+kadouka_x+kana_x+kane_x+kamo_x+kara1_x+kara2_x+ga1_x, - ga2_x+gatera_x+kiri_x+kuseni_x+kurai_x+gurumi_x+kedo_x+koso_x, - koto_x+sa2_x+sae_x+si2_x+sika_x+sura_x+zutu_x+zo_x, - tame_x+dake_x+dano_x+darake_x+tuite_x+tuki_x+tutu_x+tumori_x, - te1_x+te2_x+teru_x+dearou_x+deru_o+to1_x+to2_x+totte_x, - toiu_x+toori_x+toki_x+tokoro_x+tote_x+tohaie_x+tomo_x+do_x, - doori_x+dokoro_x+dokoroka_x+domo_x+na1_x+naa_x+nagara_x+nazo_x, - nado_x+nari_x+nanka_x+nanzo_x+nante_x+ni1_x+ni2_x+ni3_x, - nite_x+nimo_x+ne1_x+nee_x+no1_x+no2_x+node_x+noni_x, - nomi_x+nominrz_x+ha_x+hazu_x+ba_x+bakari_x+he_x+hou_x, - hoka_x+hodo_x+made_x+mama_x+mo1_x+mo2_x+motte_x+mono_x, - ya1_x+ya2_x+yara_x+yue_x+yo_x+yori_x+wa_x+wake_x, - wane_x+wayo_x+nn1_x+jya_o+tya_x+nagara2_x+wo_s_x, - ze_x+kke_x+n_si_x+deha_x, - - gotosi_x+saseru_x+zaru_x+zu_x+zunba_x+seru_x+souda_x+youtai_x, - denbun_x+ta_x+tai_x+tagaru_x+taru_x+da1_o+da2_x+daxtu_x, - darou_o+de_x+desi_x+desho_x+desu_x+na2_x+nara_x+nai_x, - nu_x+ne2_x+nn2_x+fuuda_x+besi_x+mai_x+masu_x+masure_x, - mase_x+mitaida_x+you_x+youda_x+rasii_x+rareru_x+reru_x+site_x, - - yougen_x+aru_x+ara_x+ari1_x+ari2_x+ari3_x+are1_x+are2_x, - arou_x+ii_x+itasi_x+itadaku_x+iru_x+eru_x+kakeru_x+kaneru_x, - karazu_x+gatai_x+gatida_x+kudasaru_x+gozai_x+sa1_x+si1_x+siro_x, - jyau_o+jimau_o+sugiru_x+subesi_x+suru_x+sure_x+se_x+seyo_x, - tamau_x+tayu_x+timau_x+dekiru_x+naru_x+nasai_x+nasaru_x+nikui_x, - yasui_x+yoi_x+yaru_x+ttarasii_x - }; - -static u_char deshi[] = { - wo_x+ttatte_x+ttara_x+tte1_x+tte2_x+ppanasi_x+ppoi_x+ue_x, - uti_x+oite_x+okeru_x+ori_x+ka1_x+ka2_x+kai_x+kasira_x, - katagata_x+kadouka_x+kana_x+kane_x+kamo_x+kara1_x+kara2_x+ga1_x, - ga2_x+gatera_x+kiri_x+kuseni_x+kurai_x+gurumi_x+kedo_x+koso_x, - koto_x+sa2_x+sae_x+si2_x+sika_x+sura_x+zutu_x+zo_x, - tame_x+dake_x+dano_x+darake_x+tuite_x+tuki_x+tutu_x+tumori_x, - te1_x+te2_o+teru_x+dearou_x+deru_x+to1_x+to2_x+totte_x, - toiu_x+toori_x+toki_x+tokoro_x+tote_x+tohaie_x+tomo_x+do_x, - doori_x+dokoro_x+dokoroka_x+domo_x+na1_x+naa_x+nagara_x+nazo_x, - nado_x+nari_x+nanka_x+nanzo_x+nante_x+ni1_x+ni2_x+ni3_x, - nite_x+nimo_x+ne1_x+nee_x+no1_x+no2_x+node_x+noni_x, - nomi_x+nominrz_x+ha_x+hazu_x+ba_x+bakari_x+he_x+hou_x, - hoka_x+hodo_x+made_x+mama_x+mo1_x+mo2_x+motte_x+mono_x, - ya1_x+ya2_x+yara_x+yue_x+yo_x+yori_x+wa_x+wake_x, - wane_x+wayo_x+nn1_x+jya_x+tya_x+nagara2_x+wo_s_x, - ze_x+kke_x+n_si_x+deha_x, - - gotosi_x+saseru_x+zaru_x+zu_x+zunba_x+seru_x+souda_x+youtai_x, - denbun_x+ta_o+tai_x+tagaru_x+taru_x+da1_x+da2_x+daxtu_x, - darou_x+de_x+desi_x+desho_x+desu_x+na2_x+nara_x+nai_x, - nu_x+ne2_x+nn2_x+fuuda_x+besi_x+mai_x+masu_x+masure_x, - mase_x+mitaida_x+you_x+youda_x+rasii_x+rareru_x+reru_x+site_x, - - yougen_x+aru_x+ara_x+ari1_x+ari2_x+ari3_x+are1_x+are2_x, - arou_x+ii_x+itasi_x+itadaku_x+iru_x+eru_x+kakeru_x+kaneru_x, - karazu_x+gatai_x+gatida_x+kudasaru_x+gozai_x+sa1_x+si1_x+siro_x, - jyau_x+jimau_x+sugiru_x+subesi_x+suru_x+sure_x+se_x+seyo_x, - tamau_x+tayu_x+timau_x+dekiru_x+naru_x+nasai_x+nasaru_x+nikui_x, - yasui_x+yoi_x+yaru_x+ttarasii_x - }; - -static u_char axtu[] = { - wo_x+ttatte_x+ttara_x+tte1_x+tte2_x+ppanasi_x+ppoi_x+ue_x, - uti_x+oite_x+okeru_x+ori_x+ka1_x+ka2_x+kai_x+kasira_x, - katagata_x+kadouka_x+kana_x+kane_x+kamo_x+kara1_x+kara2_x+ga1_x, - ga2_x+gatera_x+kiri_x+kuseni_x+kurai_x+gurumi_x+kedo_x+koso_x, - koto_x+sa2_x+sae_x+si2_x+sika_x+sura_x+zutu_x+zo_x, - tame_x+dake_x+dano_x+darake_x+tuite_x+tuki_x+tutu_x+tumori_x, - te1_x+te2_o+teru_x+dearou_x+deru_x+to1_x+to2_x+totte_x, - toiu_x+toori_x+toki_x+tokoro_x+tote_x+tohaie_x+tomo_x+do_x, - doori_x+dokoro_x+dokoroka_x+domo_x+na1_x+naa_x+nagara_x+nazo_x, - nado_x+nari_x+nanka_x+nanzo_x+nante_x+ni1_x+ni2_x+ni3_x, - nite_x+nimo_x+ne1_x+nee_x+no1_x+no2_x+node_x+noni_x, - nomi_x+nominrz_x+ha_x+hazu_x+ba_x+bakari_x+he_x+hou_x, - hoka_x+hodo_x+made_x+mama_x+mo1_x+mo2_x+motte_x+mono_x, - ya1_x+ya2_x+yara_x+yue_x+yo_x+yori_x+wa_x+wake_x, - wane_x+wayo_x+nn1_x+jya_x+tya_o+nagara2_x+wo_s_x, - ze_x+kke_x+n_si_x+deha_x, - - gotosi_x+saseru_x+zaru_x+zu_x+zunba_x+seru_x+souda_x+youtai_x, - denbun_x+ta_o+tai_x+tagaru_x+taru_x+da1_x+da2_x+daxtu_x, - darou_x+de_x+desi_x+desho_x+desu_x+na2_x+nara_x+nai_x, - nu_x+ne2_x+nn2_x+fuuda_x+besi_x+mai_x+masu_x+masure_x, - mase_x+mitaida_x+you_x+youda_x+rasii_x+rareru_x+reru_x+site_x, - - yougen_x+aru_x+ara_x+ari1_x+ari2_x+ari3_x+are1_x+are2_x, - arou_x+ii_x+itasi_x+itadaku_x+iru_x+eru_x+kakeru_x+kaneru_x, - karazu_x+gatai_x+gatida_x+kudasaru_x+gozai_x+sa1_x+si1_x+siro_x, - jyau_x+jimau_x+sugiru_x+subesi_x+suru_x+sure_x+se_x+seyo_x, - tamau_x+tayu_x+timau_x+dekiru_x+naru_x+nasai_x+nasaru_x+nikui_x, - yasui_x+yoi_x+yaru_x+ttarasii_x - }; - -static u_char onbin6[] = { - wo_x+ttatte_x+ttara_x+tte1_x+tte2_x+ppanasi_x+ppoi_x+ue_x, - uti_x+oite_x+okeru_x+ori_x+ka1_x+ka2_x+kai_x+kasira_x, - katagata_x+kadouka_x+kana_x+kane_x+kamo_x+kara1_x+kara2_x+ga1_x, - ga2_x+gatera_x+kiri_x+kuseni_x+kurai_x+gurumi_x+kedo_x+koso_x, - koto_x+sa2_x+sae_x+si2_x+sika_x+sura_x+zutu_x+zo_x, - tame_x+dake_x+dano_x+darake_x+tuite_x+tuki_x+tutu_x+tumori_x, - te1_x+te2_o+teru_o+dearou_x+deru_x+to1_x+to2_x+totte_x, - toiu_x+toori_x+toki_x+tokoro_x+tote_x+tohaie_x+tomo_x+do_x, - doori_x+dokoro_x+dokoroka_x+domo_x+na1_x+naa_x+nagara_x+nazo_x, - nado_x+nari_x+nanka_x+nanzo_x+nante_x+ni1_x+ni2_x+ni3_x, - nite_x+nimo_x+ne1_x+nee_x+no1_x+no2_x+node_x+noni_x, - nomi_x+nominrz_x+ha_x+hazu_x+ba_x+bakari_x+he_x+hou_x, - hoka_x+hodo_x+made_x+mama_x+mo1_x+mo2_x+motte_x+mono_x, - ya1_x+ya2_x+yara_x+yue_x+yo_x+yori_x+wa_x+wake_x, - wane_x+wayo_x+nn1_x+jya_x+tya_x+nagara2_x+wo_s_x, - ze_x+kke_x+n_si_x+deha_x, - - gotosi_x+saseru_x+zaru_x+zu_x+zunba_x+seru_x+souda_x+youtai_x, - denbun_x+ta_o+tai_x+tagaru_x+taru_x+da1_x+da2_x+daxtu_x, - darou_x+de_x+desi_x+desho_x+desu_x+na2_x+nara_x+nai_x, - nu_x+ne2_x+nn2_x+fuuda_x+besi_x+mai_x+masu_x+masure_x, - mase_x+mitaida_x+you_x+youda_x+rasii_x+rareru_x+reru_x+site_x, - - yougen_x+aru_x+ara_x+ari1_x+ari2_x+ari3_x+are1_x+are2_x, - arou_x+ii_x+itasi_x+itadaku_x+iru_x+eru_x+kakeru_x+kaneru_x, - karazu_x+gatai_x+gatida_x+kudasaru_x+gozai_x+sa1_x+si1_x+siro_x, - jyau_x+jimau_x+sugiru_x+subesi_x+suru_x+sure_x+se_x+seyo_x, - tamau_x+tayu_x+timau_x+dekiru_x+naru_x+nasai_x+nasaru_x+nikui_x, - yasui_x+yoi_x+yaru_x+ttarasii_x - }; - -static u_char onbin8[] = { - wo_x+ttatte_x+ttara_x+tte1_x+tte2_x+ppanasi_x+ppoi_x+ue_x, - uti_x+oite_x+okeru_x+ori_x+ka1_x+ka2_x+kai_x+kasira_x, - katagata_x+kadouka_x+kana_x+kane_x+kamo_x+kara1_x+kara2_x+ga1_x, - ga2_x+gatera_x+kiri_x+kuseni_x+kurai_x+gurumi_x+kedo_x+koso_x, - koto_x+sa2_x+sae_x+si2_x+sika_x+sura_x+zutu_x+zo_x, - tame_x+dake_x+dano_x+darake_x+tuite_x+tuki_x+tutu_x+tumori_x, - te1_x+te2_o+teru_x+dearou_x+deru_x+to1_x+to2_x+totte_x, - toiu_x+toori_x+toki_x+tokoro_x+tote_x+tohaie_x+tomo_x+do_x, - doori_x+dokoro_x+dokoroka_x+domo_x+na1_x+naa_x+nagara_x+nazo_x, - nado_x+nari_x+nanka_x+nanzo_x+nante_x+ni1_x+ni2_x+ni3_x, - nite_x+nimo_x+ne1_x+nee_x+no1_x+no2_x+node_x+noni_x, - nomi_x+nominrz_x+ha_x+hazu_x+ba_x+bakari_x+he_x+hou_x, - hoka_x+hodo_x+made_x+mama_x+mo1_x+mo2_x+motte_x+mono_x, - ya1_x+ya2_x+yara_x+yue_x+yo_x+yori_x+wa_x+wake_x, - wane_x+wayo_x+nn1_x+jya_x+tya_o+nagara2_x+wo_s_x, - ze_x+kke_x+n_si_x+deha_x, - - gotosi_x+saseru_x+zaru_x+zu_x+zunba_x+seru_x+souda_x+youtai_x, - denbun_x+ta_o+tai_x+tagaru_x+taru_x+da1_x+da2_x+daxtu_x, - darou_x+de_x+desi_x+desho_x+desu_x+na2_x+nara_x+nai_x, - nu_x+ne2_x+nn2_x+fuuda_x+besi_x+mai_x+masu_x+masure_x, - mase_x+mitaida_x+you_x+youda_x+rasii_x+rareru_x+reru_x+site_x, - - yougen_x+aru_x+ara_x+ari1_x+ari2_x+ari3_x+are1_x+are2_x, - arou_x+ii_x+itasi_x+itadaku_x+iru_x+eru_x+kakeru_x+kaneru_x, - karazu_x+gatai_x+gatida_x+kudasaru_x+gozai_x+sa1_x+si1_x+siro_x, - jyau_x+jimau_x+sugiru_x+subesi_x+suru_x+sure_x+se_x+seyo_x, - tamau_x+tayu_o+timau_o+dekiru_x+naru_x+nasai_x+nasaru_x+nikui_x, - yasui_x+yoi_x+yaru_x+ttarasii_x - }; - -static u_char ari1[] = { - wo_x+ttatte_x+ttara_x+tte1_x+tte2_x+ppanasi_x+ppoi_x+ue_x, - uti_x+oite_x+okeru_x+ori_x+ka1_x+ka2_x+kai_x+kasira_x, - katagata_x+kadouka_x+kana_x+kane_x+kamo_x+kara1_x+kara2_x+ga1_x, - ga2_x+gatera_x+kiri_x+kuseni_x+kurai_x+gurumi_x+kedo_x+koso_x, - koto_x+sa2_x+sae_o+si2_x+sika_x+sura_x+zutu_x+zo_x, - tame_x+dake_x+dano_x+darake_x+tuite_x+tuki_x+tutu_o+tumori_x, - te1_x+te2_x+teru_x+dearou_x+deru_x+to1_x+to2_x+totte_x, - toiu_x+toori_x+toki_x+tokoro_x+tote_x+tohaie_x+tomo_x+do_x, - doori_x+dokoro_x+dokoroka_x+domo_x+na1_x+naa_x+nagara_x+nazo_x, - nado_x+nari_x+nanka_x+nanzo_x+nante_x+ni1_x+ni2_x+ni3_x, - nite_x+nimo_x+ne1_x+nee_x+no1_x+no2_x+node_x+noni_x, - nomi_x+nominrz_x+ha_o+hazu_x+ba_x+bakari_x+he_x+hou_x, - hoka_x+hodo_x+made_x+mama_x+mo1_x+mo2_o+motte_x+mono_x, - ya1_x+ya2_x+yara_x+yue_x+yo_x+yori_x+wa_x+wake_x, - wane_x+wayo_x+nn1_x+jya_x+tya_x+nagara2_o+wo_s_x, - ze_x+kke_x+n_si_x+deha_x, - - gotosi_x+saseru_x+zaru_x+zu_x+zunba_x+seru_x+souda_x+youtai_x, - denbun_x+ta_x+tai_o+tagaru_x+taru_x+da1_x+da2_x+daxtu_x, - darou_x+de_x+desi_x+desho_x+desu_x+na2_x+nara_x+nai_x, - nu_x+ne2_x+nn2_x+fuuda_x+besi_x+mai_x+masu_o+masure_o, - mase_x+mitaida_x+you_x+youda_x+rasii_x+rareru_x+reru_x+site_x, - - yougen_x+aru_x+ara_x+ari1_x+ari2_x+ari3_x+are1_x+are2_x, - arou_x+ii_x+itasi_x+itadaku_x+iru_x+eru_o+kakeru_x+kaneru_x, - karazu_x+gatai_x+gatida_x+kudasaru_x+gozai_x+sa1_x+si1_x+siro_x, - jyau_x+jimau_x+sugiru_x+subesi_x+suru_x+sure_x+se_x+seyo_x, - tamau_x+tayu_x+timau_x+dekiru_x+naru_x+nasai_o+nasaru_o+nikui_x, - yasui_x+yoi_x+yaru_x+ttarasii_x - }; - -static u_char ari2[] = { - wo_x+ttatte_x+ttara_x+tte1_x+tte2_x+ppanasi_x+ppoi_x+ue_x, - uti_x+oite_x+okeru_x+ori_x+ka1_x+ka2_x+kai_x+kasira_x, - katagata_x+kadouka_x+kana_x+kane_x+kamo_x+kara1_x+kara2_x+ga1_x, - ga2_x+gatera_x+kiri_x+kuseni_x+kurai_x+gurumi_x+kedo_x+koso_x, - koto_x+sa2_x+sae_o+si2_x+sika_x+sura_x+zutu_x+zo_x, - tame_x+dake_x+dano_x+darake_x+tuite_x+tuki_x+tutu_o+tumori_x, - te1_x+te2_x+teru_x+dearou_x+deru_x+to1_x+to2_x+totte_x, - toiu_x+toori_x+toki_x+tokoro_x+tote_x+tohaie_x+tomo_x+do_x, - doori_x+dokoro_x+dokoroka_x+domo_x+na1_x+naa_x+nagara_x+nazo_x, - nado_x+nari_x+nanka_x+nanzo_x+nante_x+ni1_x+ni2_x+ni3_x, - nite_x+nimo_x+ne1_x+nee_x+no1_x+no2_x+node_x+noni_x, - nomi_x+nominrz_x+ha_o+hazu_x+ba_x+bakari_x+he_x+hou_x, - hoka_x+hodo_x+made_x+mama_x+mo1_x+mo2_o+motte_x+mono_x, - ya1_x+ya2_x+yara_x+yue_x+yo_x+yori_x+wa_x+wake_x, - wane_x+wayo_x+nn1_x+jya_x+tya_x+nagara2_o+wo_s_x, - ze_x+kke_x+n_si_x+deha_x, - - gotosi_x+saseru_x+zaru_x+zu_x+zunba_x+seru_x+souda_o+youtai_o, - denbun_x+ta_x+tai_x+tagaru_x+taru_x+da1_x+da2_x+daxtu_x, - darou_x+de_x+desi_x+desho_x+desu_x+na2_x+nara_x+nai_x, - nu_x+ne2_x+nn2_x+fuuda_x+besi_x+mai_x+masu_o+masure_o, - mase_x+mitaida_x+you_x+youda_x+rasii_x+rareru_x+reru_x+site_x, - - yougen_x+aru_x+ara_x+ari1_x+ari2_x+ari3_x+are1_x+are2_x, - arou_x+ii_x+itasi_x+itadaku_x+iru_x+eru_o+kakeru_x+kaneru_x, - karazu_x+gatai_x+gatida_x+kudasaru_x+gozai_x+sa1_x+si1_x+siro_x, - jyau_x+jimau_x+sugiru_x+subesi_x+suru_x+sure_x+se_x+seyo_x, - tamau_x+tayu_x+timau_x+dekiru_x+naru_x+nasai_x+nasaru_x+nikui_x, - yasui_x+yoi_x+yaru_x+ttarasii_x - }; - -static u_char ari3[] = { - wo_x+ttatte_x+ttara_x+tte1_x+tte2_x+ppanasi_x+ppoi_x+ue_x, - uti_x+oite_x+okeru_x+ori_x+ka1_x+ka2_x+kai_x+kasira_x, - katagata_x+kadouka_x+kana_x+kane_x+kamo_x+kara1_x+kara2_x+ga1_x, - ga2_x+gatera_x+kiri_x+kuseni_x+kurai_x+gurumi_x+kedo_x+koso_x, - koto_x+sa2_x+sae_x+si2_x+sika_x+sura_x+zutu_x+zo_x, - tame_x+dake_x+dano_x+darake_x+tuite_x+tuki_x+tutu_o+tumori_x, - te1_x+te2_x+teru_x+dearou_x+deru_x+to1_x+to2_x+totte_x, - toiu_x+toori_x+toki_x+tokoro_x+tote_x+tohaie_x+tomo_x+do_x, - doori_x+dokoro_x+dokoroka_x+domo_x+na1_x+naa_x+nagara_x+nazo_x, - nado_x+nari_x+nanka_x+nanzo_x+nante_x+ni1_x+ni2_x+ni3_x, - nite_x+nimo_x+ne1_x+nee_x+no1_x+no2_x+node_x+noni_x, - nomi_x+nominrz_x+ha_x+hazu_x+ba_x+bakari_x+he_x+hou_x, - hoka_x+hodo_x+made_x+mama_x+mo1_x+mo2_x+motte_x+mono_x, - ya1_x+ya2_x+yara_x+yue_x+yo_x+yori_x+wa_x+wake_x, - wane_x+wayo_x+nn1_x+jya_x+tya_x+nagara2_o+wo_s_x, - ze_x+kke_x+n_si_x+deha_x, - - gotosi_x+saseru_x+zaru_x+zu_x+zunba_x+seru_x+souda_x+youtai_x, - denbun_x+ta_x+tai_x+tagaru_x+taru_x+da1_x+da2_x+daxtu_x, - darou_x+de_x+desi_x+desho_x+desu_x+na2_x+nara_x+nai_x, - nu_x+ne2_x+nn2_x+fuuda_x+besi_x+mai_x+masu_o+masure_o, - mase_x+mitaida_x+you_x+youda_x+rasii_x+rareru_x+reru_x+site_x, - - yougen_x+aru_x+ara_x+ari1_x+ari2_x+ari3_x+are1_x+are2_x, - arou_x+ii_x+itasi_x+itadaku_x+iru_x+eru_o+kakeru_x+kaneru_x, - karazu_x+gatai_x+gatida_x+kudasaru_x+gozai_x+sa1_x+si1_x+siro_x, - jyau_x+jimau_x+sugiru_x+subesi_x+suru_x+sure_x+se_x+seyo_x, - tamau_x+tayu_x+timau_x+dekiru_x+naru_x+nasai_x+nasaru_x+nikui_x, - yasui_x+yoi_x+yaru_x+ttarasii_x - }; - -static u_char iki[] = { - wo_x+ttatte_x+ttara_x+tte1_x+tte2_x+ppanasi_x+ppoi_x+ue_x, - uti_x+oite_x+okeru_x+ori_x+ka1_x+ka2_x+kai_x+kasira_x, - katagata_x+kadouka_x+kana_x+kane_x+kamo_x+kara1_x+kara2_x+ga1_x, - ga2_x+gatera_x+kiri_x+kuseni_x+kurai_x+gurumi_x+kedo_x+koso_x, - koto_x+sa2_x+sae_x+si2_x+sika_x+sura_x+zutu_x+zo_x, - tame_x+dake_x+dano_x+darake_x+tuite_x+tuki_x+tutu_o+tumori_x, - te1_x+te2_x+teru_x+dearou_x+deru_x+to1_x+to2_x+totte_x, - toiu_x+toori_x+toki_x+tokoro_x+tote_x+tohaie_x+tomo_x+do_x, - doori_x+dokoro_x+dokoroka_x+domo_x+na1_x+naa_x+nagara_x+nazo_x, - nado_x+nari_x+nanka_x+nanzo_x+nante_x+ni1_x+ni2_x+ni3_x, - nite_x+nimo_x+ne1_x+nee_x+no1_x+no2_x+node_x+noni_x, - nomi_x+nominrz_x+ha_x+hazu_x+ba_x+bakari_x+he_x+hou_x, - hoka_x+hodo_x+made_x+mama_x+mo1_x+mo2_o+motte_x+mono_x, - ya1_x+ya2_x+yara_x+yue_x+yo_x+yori_x+wa_x+wake_x, - wane_x+wayo_x+nn1_x+jya_x+tya_x+nagara2_o+wo_s_x, - ze_x+kke_x+n_si_x+deha_x, - - gotosi_x+saseru_x+zaru_x+zu_x+zunba_x+seru_x+souda_o+youtai_o, - denbun_x+ta_x+tai_o+tagaru_o+taru_x+da1_x+da2_x+daxtu_x, - darou_x+de_x+desi_x+desho_x+desu_x+na2_x+nara_x+nai_x, - nu_x+ne2_x+nn2_x+fuuda_x+besi_x+mai_x+masu_o+masure_o, - mase_x+mitaida_x+you_x+youda_x+rasii_x+rareru_x+reru_x+site_x, - - yougen_x+aru_x+ara_x+ari1_x+ari2_x+ari3_x+are1_x+are2_x, - arou_x+ii_x+itasi_x+itadaku_x+iru_x+eru_x+kakeru_x+kaneru_x, - karazu_x+gatai_x+gatida_x+kudasaru_x+gozai_x+sa1_x+si1_x+siro_x, - jyau_x+jimau_x+sugiru_x+subesi_x+suru_x+sure_x+se_x+seyo_x, - tamau_x+tayu_x+timau_x+dekiru_x+naru_x+nasai_o+nasaru_x+nikui_x, - yasui_x+yoi_x+yaru_x+ttarasii_x - }; - -static u_char itasi[] = { - wo_x+ttatte_x+ttara_x+tte1_x+tte2_x+ppanasi_x+ppoi_x+ue_x, - uti_x+oite_x+okeru_x+ori_x+ka1_x+ka2_x+kai_x+kasira_x, - katagata_x+kadouka_x+kana_x+kane_x+kamo_x+kara1_x+kara2_x+ga1_x, - ga2_x+gatera_x+kiri_x+kuseni_x+kurai_x+gurumi_x+kedo_x+koso_x, - koto_x+sa2_x+sae_x+si2_x+sika_x+sura_x+zutu_x+zo_x, - tame_x+dake_x+dano_x+darake_x+tuite_x+tuki_x+tutu_x+tumori_x, - te1_x+te2_x+teru_x+dearou_x+deru_x+to1_x+to2_x+totte_x, - toiu_x+toori_x+toki_x+tokoro_x+tote_x+tohaie_x+tomo_x+do_x, - doori_x+dokoro_x+dokoroka_x+domo_x+na1_x+naa_x+nagara_x+nazo_x, - nado_x+nari_x+nanka_x+nanzo_x+nante_x+ni1_x+ni2_x+ni3_x, - nite_x+nimo_x+ne1_x+nee_x+no1_x+no2_x+node_x+noni_x, - nomi_x+nominrz_x+ha_x+hazu_x+ba_x+bakari_x+he_x+hou_x, - hoka_x+hodo_x+made_x+mama_x+mo1_x+mo2_x+motte_x+mono_x, - ya1_x+ya2_x+yara_x+yue_x+yo_x+yori_x+wa_x+wake_x, - wane_x+wayo_x+nn1_x+jya_x+tya_x+nagara2_x+wo_s_x, - ze_x+kke_x+n_si_x+deha_x, - - gotosi_x+saseru_x+zaru_x+zu_x+zunba_x+seru_x+souda_x+youtai_x, - denbun_x+ta_x+tai_x+tagaru_x+taru_x+da1_x+da2_x+daxtu_x, - darou_x+de_x+desi_x+desho_x+desu_x+na2_x+nara_x+nai_x, - nu_x+ne2_x+nn2_x+fuuda_x+besi_x+mai_x+masu_o+masure_o, - mase_x+mitaida_x+you_x+youda_x+rasii_x+rareru_x+reru_x+site_x, - - yougen_x+aru_x+ara_x+ari1_x+ari2_x+ari3_x+are1_x+are2_x, - arou_x+ii_x+itasi_x+itadaku_x+iru_x+eru_x+kakeru_x+kaneru_x, - karazu_x+gatai_x+gatida_x+kudasaru_x+gozai_x+sa1_x+si1_x+siro_x, - jyau_x+jimau_x+sugiru_x+subesi_x+suru_x+sure_x+se_x+seyo_x, - tamau_x+tayu_x+timau_x+dekiru_x+naru_x+nasai_x+nasaru_x+nikui_x, - yasui_x+yoi_x+yaru_x+ttarasii_x - }; - -static u_char itadaki[] = { - wo_x+ttatte_x+ttara_x+tte1_x+tte2_x+ppanasi_x+ppoi_x+ue_x, - uti_x+oite_x+okeru_x+ori_x+ka1_x+ka2_x+kai_x+kasira_x, - katagata_x+kadouka_x+kana_x+kane_x+kamo_x+kara1_x+kara2_x+ga1_x, - ga2_x+gatera_x+kiri_x+kuseni_x+kurai_x+gurumi_x+kedo_x+koso_x, - koto_x+sa2_x+sae_o+si2_x+sika_x+sura_x+zutu_x+zo_x, - tame_x+dake_x+dano_x+darake_x+tuite_x+tuki_x+tutu_o+tumori_x, - te1_x+te2_x+teru_x+dearou_x+deru_x+to1_x+to2_x+totte_x, - toiu_x+toori_x+toki_x+tokoro_x+tote_x+tohaie_x+tomo_x+do_x, - doori_x+dokoro_x+dokoroka_x+domo_x+na1_x+naa_x+nagara_x+nazo_x, - nado_x+nari_x+nanka_x+nanzo_x+nante_x+ni1_x+ni2_x+ni3_x, - nite_x+nimo_x+ne1_x+nee_x+no1_x+no2_x+node_x+noni_x, - nomi_x+nominrz_x+ha_o+hazu_x+ba_x+bakari_x+he_x+hou_x, - hoka_x+hodo_x+made_x+mama_x+mo1_x+mo2_o+motte_x+mono_x, - ya1_x+ya2_x+yara_x+yue_x+yo_x+yori_x+wa_x+wake_x, - wane_x+wayo_x+nn1_x+jya_x+tya_x+nagara2_o+wo_s_x, - ze_x+kke_x+n_si_x+deha_x, - - gotosi_x+saseru_x+zaru_x+zu_x+zunba_x+seru_x+souda_x+youtai_x, - denbun_x+ta_x+tai_o+tagaru_x+taru_x+da1_x+da2_x+daxtu_x, - darou_x+de_x+desi_x+desho_x+desu_x+na2_x+nara_x+nai_x, - nu_x+ne2_x+nn2_x+fuuda_x+besi_x+mai_x+masu_o+masure_o, - mase_x+mitaida_x+you_x+youda_x+rasii_x+rareru_x+reru_x+site_x, - - yougen_x+aru_x+ara_x+ari1_x+ari2_x+ari3_x+are1_x+are2_x, - arou_x+ii_x+itasi_x+itadaku_x+iru_x+eru_x+kakeru_x+kaneru_x, - karazu_x+gatai_x+gatida_x+kudasaru_x+gozai_x+sa1_x+si1_x+siro_x, - jyau_x+jimau_x+sugiru_x+subesi_x+suru_x+sure_x+se_x+seyo_x, - tamau_x+tayu_x+timau_x+dekiru_x+naru_x+nasai_o+nasaru_x+nikui_x, - yasui_x+yoi_x+yaru_x+ttarasii_x - }; - -static u_char ori2[] = { - wo_x+ttatte_x+ttara_x+tte1_x+tte2_x+ppanasi_x+ppoi_x+ue_x, - uti_x+oite_x+okeru_x+ori_x+ka1_x+ka2_x+kai_x+kasira_x, - katagata_x+kadouka_x+kana_x+kane_x+kamo_x+kara1_x+kara2_x+ga1_x, - ga2_x+gatera_x+kiri_x+kuseni_x+kurai_x+gurumi_x+kedo_x+koso_x, - koto_x+sa2_x+sae_x+si2_x+sika_x+sura_x+zutu_x+zo_x, - tame_x+dake_x+dano_x+darake_x+tuite_x+tuki_x+tutu_x+tumori_x, - te1_x+te2_x+teru_x+dearou_x+deru_x+to1_x+to2_x+totte_x, - toiu_x+toori_x+toki_x+tokoro_x+tote_x+tohaie_x+tomo_x+do_x, - doori_x+dokoro_x+dokoroka_x+domo_x+na1_x+naa_x+nagara_x+nazo_x, - nado_x+nari_x+nanka_x+nanzo_x+nante_x+ni1_x+ni2_x+ni3_x, - nite_x+nimo_x+ne1_x+nee_x+no1_x+no2_x+node_x+noni_x, - nomi_x+nominrz_x+ha_x+hazu_x+ba_x+bakari_x+he_x+hou_x, - hoka_x+hodo_x+made_x+mama_x+mo1_x+mo2_x+motte_x+mono_x, - ya1_x+ya2_x+yara_x+yue_x+yo_x+yori_x+wa_x+wake_x, - wane_x+wayo_x+nn1_x+jya_x+tya_x+nagara2_o+wo_s_x, - ze_x+kke_x+n_si_x+deha_x, - - gotosi_x+saseru_x+zaru_x+zu_x+zunba_x+seru_x+souda_x+youtai_x, - denbun_x+ta_x+tai_x+tagaru_x+taru_x+da1_x+da2_x+daxtu_x, - darou_x+de_x+desi_x+desho_x+desu_x+na2_x+nara_x+nai_x, - nu_x+ne2_x+nn2_x+fuuda_x+besi_x+mai_x+masu_o+masure_o, - mase_x+mitaida_x+you_x+youda_x+rasii_x+rareru_x+reru_x+site_x, - - yougen_x+aru_x+ara_x+ari1_x+ari2_x+ari3_x+are1_x+are2_x, - arou_x+ii_x+itasi_x+itadaku_x+iru_x+eru_x+kakeru_x+kaneru_x, - karazu_x+gatai_x+gatida_x+kudasaru_x+gozai_x+sa1_x+si1_x+siro_x, - jyau_x+jimau_x+sugiru_x+subesi_x+suru_x+sure_x+se_x+seyo_x, - tamau_x+tayu_x+timau_x+dekiru_x+naru_x+nasai_x+nasaru_x+nikui_x, - yasui_x+yoi_x+yaru_x+ttarasii_x - }; - -static u_char gataku[] = { - wo_x+ttatte_x+ttara_x+tte1_x+tte2_o+ppanasi_x+ppoi_x+ue_x, - uti_x+oite_x+okeru_x+ori_x+ka1_x+ka2_x+kai_x+kasira_x, - katagata_x+kadouka_x+kana_x+kane_x+kamo_x+kara1_x+kara2_x+ga1_x, - ga2_x+gatera_x+kiri_x+kuseni_x+kurai_x+gurumi_x+kedo_x+koso_x, - koto_x+sa2_x+sae_x+si2_x+sika_x+sura_x+zutu_x+zo_x, - tame_x+dake_x+dano_x+darake_x+tuite_x+tuki_x+tutu_x+tumori_x, - te1_o+te2_x+teru_x+dearou_x+deru_x+to1_x+to2_x+totte_x, - toiu_x+toori_x+toki_x+tokoro_x+tote_x+tohaie_x+tomo_o+do_x, - doori_x+dokoro_x+dokoroka_x+domo_x+na1_x+naa_x+nagara_x+nazo_o, - nado_o+nari_x+nanka_o+nanzo_o+nante_o+ni1_x+ni2_x+ni3_x, - nite_x+nimo_x+ne1_x+nee_x+no1_x+no2_x+node_x+noni_x, - nomi_x+nominrz_x+ha_o+hazu_x+ba_x+bakari_x+he_x+hou_x, - hoka_x+hodo_x+made_x+mama_x+mo1_o+mo2_x+motte_x+mono_x, - ya1_x+ya2_x+yara_x+yue_x+yo_x+yori_x+wa_x+wake_x, - wane_x+wayo_x+nn1_x+jya_x+tya_x+nagara2_x+wo_s_x, - ze_x+kke_x+n_si_x+deha_x, - - gotosi_x+saseru_x+zaru_x+zu_x+zunba_x+seru_x+souda_x+youtai_x, - denbun_x+ta_x+tai_x+tagaru_x+taru_x+da1_x+da2_x+daxtu_x, - darou_x+de_x+desi_x+desho_x+desu_x+na2_x+nara_o+nai_o, - nu_x+ne2_x+nn2_x+fuuda_x+besi_x+mai_x+masu_x+masure_x, - mase_x+mitaida_x+you_x+youda_x+rasii_x+rareru_x+reru_x+site_x, - - yougen_x+aru_x+ara_x+ari1_x+ari2_x+ari3_x+are1_x+are2_x, - arou_x+ii_x+itasi_x+itadaku_x+iru_x+eru_x+kakeru_x+kaneru_x, - karazu_x+gatai_x+gatida_x+kudasaru_x+gozai_x+sa1_o+si1_o+siro_o, - jyau_x+jimau_x+sugiru_x+subesi_x+suru_o+sure_o+se_o+seyo_o, - tamau_x+tayu_x+timau_x+dekiru_x+naru_x+nasai_x+nasaru_x+nikui_x, - yasui_x+yoi_x+yaru_x+ttarasii_x - }; - -static u_char ki[] = { - wo_x+ttatte_x+ttara_x+tte1_x+tte2_x+ppanasi_x+ppoi_x+ue_x, - uti_x+oite_x+okeru_x+ori_x+ka1_x+ka2_x+kai_x+kasira_x, - katagata_x+kadouka_x+kana_x+kane_x+kamo_x+kara1_x+kara2_x+ga1_x, - ga2_x+gatera_x+kiri_x+kuseni_x+kurai_x+gurumi_x+kedo_x+koso_x, - koto_x+sa2_x+sae_x+si2_x+sika_x+sura_x+zutu_x+zo_x, - tame_x+dake_x+dano_x+darake_x+tuite_x+tuki_x+tutu_o+tumori_x, - te1_x+te2_o+teru_o+dearou_x+deru_x+to1_x+to2_x+totte_x, - toiu_x+toori_x+toki_x+tokoro_x+tote_x+tohaie_x+tomo_x+do_x, - doori_x+dokoro_x+dokoroka_x+domo_x+na1_x+naa_x+nagara_x+nazo_x, - nado_x+nari_x+nanka_x+nanzo_x+nante_x+ni1_x+ni2_x+ni3_x, - nite_x+nimo_x+ne1_x+nee_x+no1_x+no2_x+node_x+noni_x, - nomi_x+nominrz_x+ha_o+hazu_x+ba_x+bakari_x+he_x+hou_x, - hoka_x+hodo_x+made_x+mama_x+mo1_x+mo2_o+motte_x+mono_x, - ya1_x+ya2_x+yara_x+yue_x+yo_x+yori_x+wa_x+wake_x, - wane_x+wayo_x+nn1_x+jya_x+tya_o+nagara2_o+wo_s_x, - ze_x+kke_x+n_si_x+deha_x, - - gotosi_x+saseru_x+zaru_x+zu_x+zunba_x+seru_x+souda_o+youtai_o, - denbun_x+ta_o+tai_o+tagaru_o+taru_x+da1_x+da2_x+daxtu_x, - darou_x+de_x+desi_x+desho_x+desu_x+na2_x+nara_x+nai_x, - nu_x+ne2_x+nn2_x+fuuda_x+besi_x+mai_x+masu_o+masure_o, - mase_x+mitaida_x+you_x+youda_x+rasii_x+rareru_x+reru_x+site_x, - - yougen_x+aru_x+ara_x+ari1_x+ari2_x+ari3_x+are1_x+are2_x, - arou_x+ii_x+itasi_x+itadaku_x+iru_x+eru_x+kakeru_x+kaneru_x, - karazu_x+gatai_x+gatida_x+kudasaru_x+gozai_x+sa1_x+si1_x+siro_x, - jyau_x+jimau_x+sugiru_x+subesi_x+suru_x+sure_x+se_x+seyo_x, - tamau_x+tayu_o+timau_o+dekiru_x+naru_x+nasai_o+nasaru_x+nikui_x, - yasui_x+yoi_x+yaru_x+ttarasii_x - }; - -static u_char fzkki[] = { - wo_x+ttatte_x+ttara_x+tte1_x+tte2_x+ppanasi_x+ppoi_x+ue_x, - uti_x+oite_x+okeru_x+ori_x+ka1_x+ka2_x+kai_x+kasira_x, - katagata_x+kadouka_x+kana_x+kane_x+kamo_x+kara1_x+kara2_x+ga1_x, - ga2_x+gatera_x+kiri_x+kuseni_x+kurai_x+gurumi_x+kedo_x+koso_x, - koto_x+sa2_x+sae_x+si2_x+sika_x+sura_x+zutu_x+zo_x, - tame_x+dake_x+dano_x+darake_x+tuite_x+tuki_x+tutu_o+tumori_x, - te1_x+te2_o+teru_o+dearou_x+deru_x+to1_x+to2_x+totte_x, - toiu_x+toori_x+toki_x+tokoro_x+tote_x+tohaie_x+tomo_x+do_x, - doori_x+dokoro_x+dokoroka_x+domo_x+na1_x+naa_x+nagara_x+nazo_x, - nado_x+nari_x+nanka_x+nanzo_x+nante_x+ni1_x+ni2_x+ni3_x, - nite_x+nimo_x+ne1_x+nee_x+no1_x+no2_x+node_x+noni_x, - nomi_x+nominrz_x+ha_o+hazu_x+ba_x+bakari_x+he_x+hou_x, - hoka_x+hodo_x+made_x+mama_x+mo1_x+mo2_o+motte_x+mono_x, - ya1_x+ya2_x+yara_x+yue_x+yo_x+yori_x+wa_x+wake_x, - wane_x+wayo_x+nn1_x+jya_x+tya_o+nagara2_o+wo_s_x, - ze_x+kke_x+n_si_x+deha_x, - - gotosi_x+saseru_x+zaru_x+zu_x+zunba_x+seru_x+souda_o+youtai_o, - denbun_x+ta_o+tai_o+tagaru_o+taru_x+da1_x+da2_x+daxtu_x, - darou_x+de_x+desi_x+desho_x+desu_x+na2_x+nara_x+nai_x, - nu_x+ne2_x+nn2_x+fuuda_x+besi_x+mai_x+masu_o+masure_o, - mase_x+mitaida_x+you_x+youda_x+rasii_x+rareru_x+reru_x+site_x, - - yougen_x+aru_x+ara_x+ari1_x+ari2_x+ari3_x+are1_x+are2_x, - arou_x+ii_x+itasi_x+itadaku_x+iru_x+eru_x+kakeru_x+kaneru_x, - karazu_x+gatai_x+gatida_x+kudasaru_x+gozai_x+sa1_x+si1_x+siro_x, - jyau_x+jimau_x+sugiru_x+subesi_x+suru_x+sure_x+se_x+seyo_x, - tamau_x+tayu_o+timau_o+dekiru_x+naru_x+nasai_o+nasaru_x+nikui_x, - yasui_x+yoi_x+yaru_x+ttarasii_x - }; - -static u_char deha[] = { - wo_x+ttatte_x+ttara_x+tte1_x+tte2_x+ppanasi_x+ppoi_x+ue_x, - uti_x+oite_x+okeru_x+ori_x+ka1_x+ka2_x+kai_x+kasira_x, - katagata_x+kadouka_x+kana_x+kane_x+kamo_x+kara1_x+kara2_x+ga1_x, - ga2_x+gatera_x+kiri_x+kuseni_x+kurai_x+gurumi_x+kedo_x+koso_x, - koto_x+sa2_x+sae_x+si2_x+sika_x+sura_x+zutu_x+zo_x, - tame_x+dake_x+dano_x+darake_x+tuite_x+tuki_x+tutu_x+tumori_x, - te1_x+te2_x+teru_x+dearou_x+deru_x+to1_x+to2_x+totte_x, - toiu_x+toori_x+toki_x+tokoro_x+tote_x+tohaie_x+tomo_x+do_x, - doori_x+dokoro_x+dokoroka_x+domo_x+na1_x+naa_x+nagara_x+nazo_x, - nado_x+nari_x+nanka_x+nanzo_x+nante_x+ni1_x+ni2_x+ni3_x, - nite_x+nimo_x+ne1_x+nee_x+no1_x+no2_x+node_x+noni_x, - nomi_x+nominrz_x+ha_x+hazu_x+ba_x+bakari_x+he_x+hou_x, - hoka_x+hodo_x+made_x+mama_x+mo1_x+mo2_x+motte_x+mono_x, - ya1_x+ya2_x+yara_x+yue_x+yo_x+yori_x+wa_x+wake_x, - wane_x+wayo_x+nn1_x+jya_x+tya_x+nagara2_x+wo_s_x, - ze_x+kke_x+n_si_x+deha_x, - - gotosi_x+saseru_x+zaru_x+zu_x+zunba_x+seru_x+souda_x+youtai_x, - denbun_x+ta_x+tai_x+tagaru_x+taru_x+da1_x+da2_x+daxtu_x, - darou_x+de_x+desi_x+desho_x+desu_x+na2_x+nara_x+nai_o, - nu_x+ne2_x+nn2_x+fuuda_x+besi_x+mai_x+masu_x+masure_x, - mase_x+mitaida_x+you_x+youda_x+rasii_x+rareru_x+reru_x+site_x, - - yougen_x+aru_x+ara_x+ari1_x+ari2_x+ari3_x+are1_x+are2_x, - arou_x+ii_x+itasi_x+itadaku_x+iru_x+eru_x+kakeru_x+kaneru_x, - karazu_x+gatai_x+gatida_x+kudasaru_x+gozai_x+sa1_x+si1_x+siro_x, - jyau_x+jimau_x+sugiru_x+subesi_x+suru_x+sure_x+se_x+seyo_x, - tamau_x+tayu_x+timau_x+dekiru_x+naru_x+nasai_x+nasaru_x+nikui_x, - yasui_x+yoi_x+yaru_x+ttarasii_x - }; - -static u_char kudasai[] = { - wo_x+ttatte_o+ttara_x+tte1_o+tte2_x+ppanasi_x+ppoi_x+ue_x, - uti_x+oite_x+okeru_x+ori_x+ka1_x+ka2_x+kai_x+kasira_x, - katagata_x+kadouka_x+kana_x+kane_x+kamo_x+kara1_x+kara2_x+ga1_x, - ga2_x+gatera_x+kiri_x+kuseni_x+kurai_x+gurumi_x+kedo_x+koso_x, - koto_x+sa2_x+sae_x+si2_x+sika_x+sura_x+zutu_x+zo_x, - tame_x+dake_x+dano_o+darake_x+tuite_x+tuki_x+tutu_x+tumori_x, - te1_x+te2_x+teru_x+dearou_x+deru_x+to1_x+to2_o+totte_x, - toiu_o+toori_x+toki_x+tokoro_x+tote_x+tohaie_o+tomo_x+do_x, - doori_x+dokoro_x+dokoroka_x+domo_x+na1_o+naa_o+nagara_x+nazo_x, - nado_x+nari_x+nanka_x+nanzo_x+nante_x+ni1_x+ni2_x+ni3_x, - nite_x+nimo_x+ne1_o+nee_o+no1_x+no2_x+node_x+noni_x, - nomi_x+nominrz_x+ha_x+hazu_x+ba_x+bakari_x+he_x+hou_x, - hoka_x+hodo_x+made_x+mama_x+mo1_x+mo2_x+motte_x+mono_x, - ya1_x+ya2_x+yara_o+yue_x+yo_o+yori_x+wa_x+wake_x, - wane_x+wayo_x+nn1_x+jya_x+tya_x+nagara2_x+wo_s_x, - ze_x+kke_x+n_si_x+deha_o, - - gotosi_x+saseru_x+zaru_x+zu_x+zunba_x+seru_x+souda_x+youtai_x, - denbun_x+ta_x+tai_x+tagaru_x+taru_x+da1_x+da2_x+daxtu_x, - darou_x+de_x+desi_x+desho_x+desu_x+na2_x+nara_x+nai_x, - nu_x+ne2_x+nn2_x+fuuda_x+besi_x+mai_x+masu_o+masure_o, - mase_o+mitaida_x+you_x+youda_x+rasii_x+rareru_x+reru_x+site_x, - - yougen_x+aru_x+ara_x+ari1_x+ari2_x+ari3_x+are1_x+are2_x, - arou_x+ii_x+itasi_x+itadaku_x+iru_x+eru_x+kakeru_x+kaneru_x, - karazu_x+gatai_x+gatida_x+kudasaru_x+gozai_x+sa1_x+si1_x+siro_x, - jyau_x+jimau_x+sugiru_x+subesi_x+suru_x+sure_x+se_x+seyo_x, - tamau_x+tayu_x+timau_x+dekiru_x+naru_x+nasai_x+nasaru_x+nikui_x, - yasui_x+yoi_x+yaru_x+ttarasii_x - }; - -static u_char gozai[] = { - wo_x+ttatte_x+ttara_x+tte1_x+tte2_x+ppanasi_x+ppoi_x+ue_x, - uti_x+oite_x+okeru_x+ori_x+ka1_x+ka2_x+kai_x+kasira_x, - katagata_x+kadouka_x+kana_x+kane_x+kamo_x+kara1_x+kara2_x+ga1_x, - ga2_x+gatera_x+kiri_x+kuseni_x+kurai_x+gurumi_x+kedo_x+koso_x, - koto_x+sa2_x+sae_x+si2_x+sika_x+sura_x+zutu_x+zo_x, - tame_x+dake_x+dano_x+darake_x+tuite_x+tuki_x+tutu_x+tumori_x, - te1_x+te2_x+teru_x+dearou_x+deru_x+to1_x+to2_x+totte_x, - toiu_x+toori_x+toki_x+tokoro_x+tote_x+tohaie_x+tomo_x+do_x, - doori_x+dokoro_x+dokoroka_x+domo_x+na1_x+naa_x+nagara_x+nazo_x, - nado_x+nari_x+nanka_x+nanzo_x+nante_x+ni1_x+ni2_x+ni3_x, - nite_x+nimo_x+ne1_x+nee_x+no1_x+no2_x+node_x+noni_x, - nomi_x+nominrz_x+ha_x+hazu_x+ba_x+bakari_x+he_x+hou_x, - hoka_x+hodo_x+made_x+mama_x+mo1_x+mo2_x+motte_x+mono_x, - ya1_x+ya2_x+yara_x+yue_x+yo_x+yori_x+wa_x+wake_x, - wane_x+wayo_x+nn1_x+jya_x+tya_x+nagara2_o+wo_s_x, - ze_x+kke_x+n_si_x+deha_x, - - gotosi_x+saseru_x+zaru_x+zu_x+zunba_x+seru_x+souda_x+youtai_x, - denbun_x+ta_x+tai_x+tagaru_x+taru_x+da1_x+da2_x+daxtu_x, - darou_x+de_x+desi_x+desho_x+desu_x+na2_x+nara_x+nai_x, - nu_x+ne2_x+nn2_x+fuuda_x+besi_x+mai_x+masu_o+masure_o, - mase_o+mitaida_x+you_x+youda_x+rasii_x+rareru_x+reru_x+site_x, - - yougen_x+aru_x+ara_x+ari1_x+ari2_x+ari3_x+are1_x+are2_x, - arou_x+ii_x+itasi_x+itadaku_x+iru_x+eru_x+kakeru_x+kaneru_x, - karazu_x+gatai_x+gatida_x+kudasaru_x+gozai_x+sa1_x+si1_x+siro_x, - jyau_x+jimau_x+sugiru_x+subesi_x+suru_x+sure_x+se_x+seyo_x, - tamau_x+tayu_x+timau_x+dekiru_x+naru_x+nasai_x+nasaru_x+nikui_x, - yasui_x+yoi_x+yaru_x+ttarasii_x - }; - -static u_char gotoku[] = { - wo_x+ttatte_x+ttara_x+tte1_x+tte2_x+ppanasi_x+ppoi_x+ue_x, - uti_x+oite_x+okeru_x+ori_x+ka1_x+ka2_x+kai_x+kasira_x, - katagata_x+kadouka_x+kana_x+kane_x+kamo_x+kara1_x+kara2_x+ga1_x, - ga2_x+gatera_x+kiri_x+kuseni_x+kurai_x+gurumi_x+kedo_x+koso_x, - koto_x+sa2_x+sae_x+si2_x+sika_x+sura_x+zutu_x+zo_x, - tame_x+dake_x+dano_x+darake_x+tuite_x+tuki_x+tutu_x+tumori_x, - te1_x+te2_x+teru_x+dearou_x+deru_x+to1_x+to2_x+totte_x, - toiu_x+toori_x+toki_x+tokoro_x+tote_x+tohaie_x+tomo_x+do_x, - doori_x+dokoro_x+dokoroka_x+domo_x+na1_x+naa_x+nagara_x+nazo_x, - nado_x+nari_x+nanka_x+nanzo_x+nante_x+ni1_o+ni2_x+ni3_x, - nite_x+nimo_x+ne1_x+nee_x+no1_x+no2_x+node_x+noni_x, - nomi_x+nominrz_x+ha_x+hazu_x+ba_x+bakari_x+he_x+hou_x, - hoka_x+hodo_x+made_x+mama_x+mo1_x+mo2_x+motte_x+mono_x, - ya1_x+ya2_x+yara_x+yue_x+yo_x+yori_x+wa_x+wake_x, - wane_x+wayo_x+nn1_x+jya_x+tya_x+nagara2_x+wo_s_x, - ze_x+kke_x+n_si_x+deha_x, - - gotosi_x+saseru_x+zaru_x+zu_x+zunba_x+seru_x+souda_x+youtai_x, - denbun_x+ta_x+tai_x+tagaru_x+taru_x+da1_x+da2_x+daxtu_x, - darou_x+de_o+desi_x+desho_x+desu_x+na2_x+nara_x+nai_x, - nu_x+ne2_x+nn2_x+fuuda_x+besi_x+mai_x+masu_x+masure_x, - mase_x+mitaida_x+you_x+youda_x+rasii_x+rareru_x+reru_x+site_x, - - yougen_x+aru_x+ara_x+ari1_x+ari2_x+ari3_x+are1_x+are2_x, - arou_x+ii_x+itasi_x+itadaku_x+iru_x+eru_x+kakeru_x+kaneru_x, - karazu_x+gatai_x+gatida_x+kudasaru_x+gozai_x+sa1_x+si1_x+siro_x, - jyau_x+jimau_x+sugiru_x+subesi_x+suru_x+sure_x+se_x+seyo_x, - tamau_x+tayu_x+timau_x+dekiru_x+naru_x+nasai_x+nasaru_x+nikui_x, - yasui_x+yoi_x+yaru_x+ttarasii_x - }; - -static u_char beku[] = { - wo_x+ttatte_x+ttara_x+tte1_x+tte2_x+ppanasi_x+ppoi_x+ue_x, - uti_x+oite_x+okeru_x+ori_x+ka1_x+ka2_x+kai_x+kasira_x, - katagata_x+kadouka_x+kana_x+kane_x+kamo_x+kara1_x+kara2_x+ga1_x, - ga2_x+gatera_x+kiri_x+kuseni_x+kurai_x+gurumi_x+kedo_x+koso_x, - koto_x+sa2_x+sae_x+si2_x+sika_x+sura_x+zutu_x+zo_x, - tame_x+dake_x+dano_x+darake_x+tuite_x+tuki_x+tutu_x+tumori_x, - te1_x+te2_x+teru_x+dearou_x+deru_x+to1_x+to2_x+totte_x, - toiu_x+toori_x+toki_x+tokoro_x+tote_x+tohaie_x+tomo_x+do_x, - doori_x+dokoro_x+dokoroka_x+domo_x+na1_x+naa_x+nagara_x+nazo_x, - nado_x+nari_x+nanka_x+nanzo_x+nante_x+ni1_x+ni2_x+ni3_x, - nite_x+nimo_x+ne1_x+nee_x+no1_x+no2_x+node_x+noni_x, - nomi_x+nominrz_x+ha_x+hazu_x+ba_x+bakari_x+he_x+hou_x, - hoka_x+hodo_x+made_x+mama_x+mo1_x+mo2_x+motte_x+mono_x, - ya1_x+ya2_x+yara_x+yue_x+yo_x+yori_x+wa_x+wake_x, - wane_x+wayo_x+nn1_x+jya_x+tya_x+nagara2_x+wo_s_x, - ze_x+kke_x+n_si_x+deha_x, - - gotosi_x+saseru_x+zaru_x+zu_x+zunba_x+seru_x+souda_x+youtai_x, - denbun_x+ta_x+tai_x+tagaru_x+taru_x+da1_x+da2_x+daxtu_x, - darou_x+de_x+desi_x+desho_x+desu_x+na2_x+nara_x+nai_x, - nu_x+ne2_x+nn2_x+fuuda_x+besi_x+mai_x+masu_x+masure_x, - mase_x+mitaida_x+you_x+youda_x+rasii_x+rareru_x+reru_x+site_x, - - yougen_x+aru_x+ara_x+ari1_x+ari2_x+ari3_x+are1_x+are2_x, - arou_x+ii_x+itasi_x+itadaku_x+iru_x+eru_x+kakeru_x+kaneru_x, - karazu_x+gatai_x+gatida_x+kudasaru_x+gozai_x+sa1_x+si1_x+siro_x, - jyau_x+jimau_x+sugiru_x+subesi_x+suru_x+sure_x+se_x+seyo_x, - tamau_x+tayu_x+timau_x+dekiru_x+naru_x+nasai_x+nasaru_x+nikui_x, - yasui_x+yoi_x+yaru_x+ttarasii_x - }; - -static u_char soude[] = { - wo_x+ttatte_x+ttara_x+tte1_x+tte2_x+ppanasi_x+ppoi_x+ue_x, - uti_x+oite_x+okeru_x+ori_x+ka1_x+ka2_x+kai_x+kasira_x, - katagata_x+kadouka_x+kana_x+kane_x+kamo_x+kara1_x+kara2_x+ga1_x, - ga2_x+gatera_x+kiri_x+kuseni_x+kurai_x+gurumi_x+kedo_x+koso_x, - koto_x+sa2_x+sae_x+si2_x+sika_x+sura_x+zutu_x+zo_x, - tame_x+dake_x+dano_x+darake_x+tuite_x+tuki_x+tutu_x+tumori_x, - te1_x+te2_x+teru_x+dearou_x+deru_x+to1_x+to2_x+totte_x, - toiu_x+toori_x+toki_x+tokoro_x+tote_x+tohaie_x+tomo_x+do_x, - doori_x+dokoro_x+dokoroka_x+domo_x+na1_x+naa_x+nagara_x+nazo_x, - nado_x+nari_x+nanka_x+nanzo_x+nante_x+ni1_x+ni2_x+ni3_x, - nite_x+nimo_x+ne1_x+nee_x+no1_x+no2_x+node_x+noni_x, - nomi_x+nominrz_x+ha_o+hazu_x+ba_x+bakari_x+he_x+hou_x, - hoka_x+hodo_x+made_x+mama_x+mo1_o+mo2_x+motte_x+mono_x, - ya1_x+ya2_x+yara_x+yue_x+yo_x+yori_x+wa_x+wake_x, - wane_x+wayo_x+nn1_x+jya_x+tya_x+nagara2_x+wo_s_x, - ze_x+kke_x+n_si_x+deha_x, - - gotosi_x+saseru_x+zaru_x+zu_x+zunba_x+seru_x+souda_x+youtai_x, - denbun_x+ta_x+tai_x+tagaru_x+taru_x+da1_x+da2_x+daxtu_x, - darou_x+de_x+desi_x+desho_x+desu_x+na2_x+nara_x+nai_x, - nu_x+ne2_x+nn2_x+fuuda_x+besi_x+mai_x+masu_x+masure_x, - mase_x+mitaida_x+you_x+youda_x+rasii_x+rareru_x+reru_x+site_x, - - yougen_x+aru_o+ara_o+ari1_x+ari2_x+ari3_o+are1_x+are2_o, - arou_o+ii_x+itasi_x+itadaku_x+iru_x+eru_x+kakeru_x+kaneru_x, - karazu_x+gatai_x+gatida_x+kudasaru_x+gozai_x+sa1_x+si1_x+siro_x, - jyau_x+jimau_x+sugiru_x+subesi_x+suru_x+sure_x+se_x+seyo_x, - tamau_x+tayu_x+timau_x+dekiru_x+naru_x+nasai_x+nasaru_x+nikui_x, - yasui_x+yoi_x+yaru_x+ttarasii_x - }; - -static u_char souni[] = { - wo_x+ttatte_x+ttara_x+tte1_x+tte2_x+ppanasi_x+ppoi_x+ue_x, - uti_x+oite_x+okeru_x+ori_x+ka1_x+ka2_x+kai_x+kasira_x, - katagata_x+kadouka_x+kana_x+kane_x+kamo_x+kara1_x+kara2_x+ga1_x, - ga2_x+gatera_x+kiri_x+kuseni_x+kurai_x+gurumi_x+kedo_x+koso_x, - koto_x+sa2_x+sae_o+si2_x+sika_x+sura_x+zutu_x+zo_x, - tame_x+dake_x+dano_x+darake_x+tuite_x+tuki_x+tutu_x+tumori_x, - te1_x+te2_x+teru_x+dearou_x+deru_x+to1_x+to2_x+totte_x, - toiu_x+toori_x+toki_x+tokoro_x+tote_x+tohaie_x+tomo_x+do_x, - doori_x+dokoro_x+dokoroka_x+domo_x+na1_x+naa_x+nagara_x+nazo_o, - nado_o+nari_x+nanka_o+nanzo_o+nante_o+ni1_x+ni2_x+ni3_x, - nite_x+nimo_x+ne1_x+nee_x+no1_x+no2_x+node_x+noni_x, - nomi_x+nominrz_x+ha_o+hazu_x+ba_x+bakari_x+he_x+hou_x, - hoka_x+hodo_x+made_x+mama_x+mo1_o+mo2_x+motte_x+mono_x, - ya1_x+ya2_x+yara_x+yue_x+yo_x+yori_x+wa_x+wake_x, - wane_x+wayo_x+nn1_x+jya_x+tya_x+nagara2_x+wo_s_x, - ze_x+kke_x+n_si_x+deha_x, - - gotosi_x+saseru_x+zaru_x+zu_x+zunba_x+seru_x+souda_x+youtai_x, - denbun_x+ta_x+tai_x+tagaru_x+taru_x+da1_x+da2_x+daxtu_x, - darou_x+de_x+desi_x+desho_x+desu_x+na2_x+nara_x+nai_o, - nu_x+ne2_x+nn2_x+fuuda_x+besi_x+mai_x+masu_x+masure_x, - mase_x+mitaida_x+you_x+youda_x+rasii_x+rareru_x+reru_x+site_x, - - yougen_x+aru_x+ara_x+ari1_x+ari2_x+ari3_x+are1_x+are2_x, - arou_x+ii_x+itasi_x+itadaku_x+iru_x+eru_x+kakeru_x+kaneru_x, - karazu_x+gatai_x+gatida_x+kudasaru_x+gozai_x+sa1_x+si1_x+siro_x, - jyau_x+jimau_x+sugiru_x+subesi_x+suru_x+sure_x+se_x+seyo_x, - tamau_x+tayu_x+timau_x+dekiru_x+naru_o+nasai_x+nasaru_x+nikui_x, - yasui_x+yoi_x+yaru_x+ttarasii_x - }; - -static u_char tagari[] = { - wo_x+ttatte_x+ttara_x+tte1_x+tte2_x+ppanasi_x+ppoi_x+ue_x, - uti_x+oite_x+okeru_x+ori_x+ka1_x+ka2_x+kai_x+kasira_x, - katagata_x+kadouka_x+kana_x+kane_x+kamo_x+kara1_x+kara2_x+ga1_x, - ga2_x+gatera_x+kiri_x+kuseni_x+kurai_x+gurumi_x+kedo_x+koso_x, - koto_x+sa2_x+sae_o+si2_x+sika_x+sura_x+zutu_x+zo_x, - tame_x+dake_x+dano_x+darake_x+tuite_x+tuki_x+tutu_o+tumori_x, - te1_x+te2_x+teru_x+dearou_x+deru_x+to1_x+to2_x+totte_x, - toiu_x+toori_x+toki_x+tokoro_x+tote_x+tohaie_x+tomo_x+do_x, - doori_x+dokoro_x+dokoroka_x+domo_x+na1_x+naa_x+nagara_x+nazo_o, - nado_o+nari_x+nanka_o+nanzo_o+nante_o+ni1_x+ni2_x+ni3_x, - nite_x+nimo_x+ne1_x+nee_x+no1_x+no2_x+node_x+noni_x, - nomi_x+nominrz_x+ha_o+hazu_x+ba_x+bakari_x+he_x+hou_x, - hoka_x+hodo_x+made_x+mama_x+mo1_x+mo2_o+motte_x+mono_x, - ya1_x+ya2_x+yara_x+yue_x+yo_x+yori_x+wa_x+wake_x, - wane_x+wayo_x+nn1_x+jya_x+tya_x+nagara2_o+wo_s_x, - ze_x+kke_x+n_si_x+deha_x, - - gotosi_x+saseru_x+zaru_x+zu_x+zunba_x+seru_x+souda_o+youtai_o, - denbun_x+ta_x+tai_x+tagaru_x+taru_x+da1_x+da2_x+daxtu_x, - darou_x+de_x+desi_x+desho_x+desu_x+na2_x+nara_x+nai_x, - nu_x+ne2_x+nn2_x+fuuda_x+besi_x+mai_x+masu_o+masure_o, - mase_x+mitaida_x+you_x+youda_x+rasii_x+rareru_x+reru_x+site_x, - - yougen_x+aru_x+ara_x+ari1_x+ari2_x+ari3_x+are1_x+are2_x, - arou_x+ii_x+itasi_x+itadaku_x+iru_x+eru_x+kakeru_x+kaneru_x, - karazu_x+gatai_x+gatida_x+kudasaru_x+gozai_x+sa1_x+si1_x+siro_x, - jyau_x+jimau_x+sugiru_x+subesi_x+suru_x+sure_x+se_x+seyo_x, - tamau_x+tayu_x+timau_x+dekiru_x+naru_x+nasai_x+nasaru_x+nikui_x, - yasui_x+yoi_x+yaru_x+ttarasii_x - }; - -static u_char taku[] = { - wo_x+ttatte_x+ttara_x+tte1_x+tte2_o+ppanasi_x+ppoi_x+ue_x, - uti_x+oite_x+okeru_x+ori_x+ka1_x+ka2_x+kai_x+kasira_x, - katagata_x+kadouka_x+kana_x+kane_x+kamo_x+kara1_x+kara2_x+ga1_x, - ga2_x+gatera_x+kiri_x+kuseni_x+kurai_x+gurumi_x+kedo_x+koso_x, - koto_x+sa2_x+sae_o+si2_x+sika_x+sura_x+zutu_x+zo_x, - tame_x+dake_x+dano_x+darake_x+tuite_x+tuki_x+tutu_x+tumori_x, - te1_o+te2_x+teru_x+dearou_x+deru_x+to1_x+to2_x+totte_x, - toiu_x+toori_x+toki_x+tokoro_x+tote_x+tohaie_x+tomo_o+do_x, - doori_x+dokoro_x+dokoroka_x+domo_x+na1_x+naa_x+nagara_x+nazo_o, - nado_o+nari_x+nanka_o+nanzo_o+nante_o+ni1_x+ni2_x+ni3_x, - nite_x+nimo_x+ne1_x+nee_x+no1_x+no2_x+node_x+noni_x, - nomi_x+nominrz_x+ha_o+hazu_x+ba_x+bakari_x+he_x+hou_x, - hoka_x+hodo_x+made_x+mama_x+mo1_x+mo2_o+motte_x+mono_x, - ya1_x+ya2_x+yara_x+yue_x+yo_x+yori_x+wa_x+wake_x, - wane_x+wayo_x+nn1_x+jya_x+tya_o+nagara2_x+wo_s_x, - ze_x+kke_x+n_si_x+deha_x, - - gotosi_x+saseru_x+zaru_x+zu_x+zunba_x+seru_x+souda_x+youtai_x, - denbun_x+ta_x+tai_x+tagaru_x+taru_x+da1_x+da2_x+daxtu_x, - darou_x+de_x+desi_x+desho_x+desu_x+na2_x+nara_x+nai_o, - nu_x+ne2_x+nn2_x+fuuda_x+besi_x+mai_x+masu_x+masure_x, - mase_x+mitaida_x+you_x+youda_x+rasii_x+rareru_x+reru_x+site_x, - - yougen_x+aru_x+ara_x+ari1_x+ari2_x+ari3_x+are1_x+are2_x, - arou_x+ii_x+itasi_x+itadaku_x+iru_x+eru_x+kakeru_x+kaneru_x, - karazu_x+gatai_x+gatida_x+kudasaru_x+gozai_x+sa1_x+si1_x+siro_x, - jyau_x+jimau_x+sugiru_x+subesi_x+suru_x+sure_x+se_x+seyo_x, - tamau_x+tayu_x+timau_x+dekiru_x+naru_o+nasai_x+nasaru_x+nikui_x, - yasui_x+yoi_x+yaru_x+ttarasii_x - }; - -static u_char de[] = { - wo_x+ttatte_x+ttara_x+tte1_x+tte2_x+ppanasi_x+ppoi_x+ue_x, - uti_x+oite_x+okeru_x+ori_x+ka1_x+ka2_x+kai_x+kasira_x, - katagata_x+kadouka_x+kana_x+kane_x+kamo_x+kara1_x+kara2_x+ga1_x, - ga2_x+gatera_x+kiri_x+kuseni_x+kurai_x+gurumi_x+kedo_x+koso_o, - koto_x+sa2_o+sae_o+si2_x+sika_o+sura_o+zutu_x+zo_x, - tame_x+dake_o+dano_x+darake_x+tuite_x+tuki_x+tutu_x+tumori_x, - te1_x+te2_x+teru_x+dearou_x+deru_x+to1_x+to2_x+totte_x, - toiu_x+toori_x+toki_x+tokoro_x+tote_x+tohaie_x+tomo_x+do_x, - doori_x+dokoro_x+dokoroka_x+domo_x+na1_x+naa_x+nagara_x+nazo_o, - nado_o+nari_x+nanka_o+nanzo_o+nante_o+ni1_x+ni2_x+ni3_x, - nite_x+nimo_x+ne1_o+nee_o+no1_o+no2_x+node_x+noni_x, - nomi_o+nominrz_o+ha_o+hazu_x+ba_x+bakari_o+he_x+hou_x, - hoka_x+hodo_x+made_x+mama_x+mo1_x+mo2_o+motte_x+mono_x, - ya1_x+ya2_x+yara_o+yue_x+yo_x+yori_x+wa_x+wake_x, - wane_x+wayo_x+nn1_x+jya_x+tya_x+nagara2_x+wo_s_x, - ze_x+kke_x+n_si_x+deha_x, - - gotosi_x+saseru_x+zaru_x+zu_x+zunba_x+seru_x+souda_x+youtai_x, - denbun_x+ta_x+tai_x+tagaru_x+taru_x+da1_x+da2_x+daxtu_x, - darou_x+de_x+desi_x+desho_x+desu_x+na2_x+nara_x+nai_o, - nu_x+ne2_x+nn2_x+fuuda_x+besi_x+mai_x+masu_x+masure_x, - mase_x+mitaida_x+you_x+youda_x+rasii_x+rareru_x+reru_x+site_x, - - yougen_x+aru_o+ara_o+ari1_o+ari2_x+ari3_x+are1_o+are2_x, - arou_o+ii_x+itasi_x+itadaku_x+iru_x+eru_x+kakeru_x+kaneru_x, - karazu_x+gatai_x+gatida_x+kudasaru_x+gozai_o+sa1_x+si1_x+siro_x, - jyau_x+jimau_x+sugiru_x+subesi_x+suru_x+sure_x+se_x+seyo_x, - tamau_x+tayu_x+timau_x+dekiru_x+naru_x+nasai_x+nasaru_x+nikui_x, - yasui_x+yoi_x+yaru_x+ttarasii_x - }; - -static u_char naide[] = { - wo_x+ttatte_x+ttara_x+tte1_o+tte2_x+ppanasi_x+ppoi_x+ue_x, - uti_x+oite_x+okeru_x+ori_x+ka1_x+ka2_x+kai_x+kasira_x, - katagata_x+kadouka_x+kana_x+kane_x+kamo_x+kara1_x+kara2_x+ga1_x, - ga2_x+gatera_x+kiri_x+kuseni_x+kurai_x+gurumi_x+kedo_x+koso_x, - koto_x+sa2_o+sae_x+si2_x+sika_x+sura_x+zutu_x+zo_x, - tame_x+dake_x+dano_x+darake_x+tuite_x+tuki_x+tutu_x+tumori_x, - te1_x+te2_x+teru_x+dearou_x+deru_x+to1_x+to2_o+totte_x, - toiu_o+toori_x+toki_x+tokoro_x+tote_x+tohaie_o+tomo_x+do_x, - doori_x+dokoro_x+dokoroka_x+domo_x+na1_x+naa_x+nagara_x+nazo_o, - nado_o+nari_x+nanka_o+nanzo_o+nante_o+ni1_x+ni2_x+ni3_x, - nite_x+nimo_x+ne1_o+nee_o+no1_x+no2_x+node_x+noni_x, - nomi_x+nominrz_x+ha_o+hazu_x+ba_x+bakari_x+he_x+hou_x, - hoka_x+hodo_x+made_x+mama_x+mo1_o+mo2_x+motte_x+mono_x, - ya1_x+ya2_x+yara_x+yue_o+yo_o+yori_x+wa_x+wake_x, - wane_x+wayo_x+nn1_x+jya_x+tya_x+nagara2_x+wo_s_x, - ze_x+kke_x+n_si_x+deha_o, - - gotosi_x+saseru_x+zaru_x+zu_x+zunba_x+seru_x+souda_x+youtai_x, - denbun_x+ta_x+tai_x+tagaru_x+taru_x+da1_x+da2_x+daxtu_x, - darou_x+de_x+desi_x+desho_x+desu_x+na2_x+nara_x+nai_x, - nu_x+ne2_x+nn2_x+fuuda_x+besi_x+mai_x+masu_x+masure_x, - mase_x+mitaida_x+you_x+youda_x+rasii_x+rareru_x+reru_x+site_x, - - yougen_x+aru_x+ara_x+ari1_x+ari2_x+ari3_x+are1_x+are2_x, - arou_x+ii_x+itasi_x+itadaku_o+iru_o+eru_x+kakeru_x+kaneru_x, - karazu_x+gatai_x+gatida_x+kudasaru_o+gozai_x+sa1_x+si1_x+siro_x, - jyau_x+jimau_x+sugiru_x+subesi_x+suru_x+sure_x+se_x+seyo_x, - tamau_x+tayu_x+timau_x+dekiru_x+naru_x+nasai_x+nasaru_x+nikui_x, - yasui_x+yoi_x+yaru_x+ttarasii_x - }; - -static u_char naku[] = { - wo_x+ttatte_x+ttara_x+tte1_x+tte2_o+ppanasi_x+ppoi_x+ue_x, - uti_x+oite_x+okeru_x+ori_x+ka1_x+ka2_x+kai_x+kasira_x, - katagata_x+kadouka_x+kana_x+kane_x+kamo_x+kara1_x+kara2_x+ga1_x, - ga2_x+gatera_x+kiri_x+kuseni_x+kurai_x+gurumi_x+kedo_x+koso_x, - koto_x+sa2_x+sae_x+si2_x+sika_x+sura_x+zutu_x+zo_x, - tame_x+dake_x+dano_x+darake_x+tuite_x+tuki_x+tutu_x+tumori_x, - te1_o+te2_x+teru_x+dearou_x+deru_x+to1_x+to2_x+totte_x, - toiu_x+toori_x+toki_x+tokoro_x+tote_x+tohaie_x+tomo_x+do_x, - doori_x+dokoro_x+dokoroka_x+domo_x+na1_x+naa_x+nagara_x+nazo_x, - nado_x+nari_x+nanka_x+nanzo_x+nante_x+ni1_x+ni2_x+ni3_x, - nite_x+nimo_x+ne1_x+nee_x+no1_x+no2_x+node_x+noni_x, - nomi_x+nominrz_x+ha_o+hazu_x+ba_x+bakari_x+he_x+hou_x, - hoka_x+hodo_x+made_x+mama_x+mo1_x+mo2_o+motte_x+mono_x, - ya1_x+ya2_x+yara_x+yue_x+yo_x+yori_x+wa_x+wake_x, - wane_x+wayo_x+nn1_x+jya_x+tya_o+nagara2_x+wo_s_x, - ze_x+kke_x+n_si_x+deha_x, - - gotosi_x+saseru_x+zaru_x+zu_x+zunba_x+seru_x+souda_x+youtai_x, - denbun_x+ta_x+tai_x+tagaru_x+taru_x+da1_x+da2_x+daxtu_x, - darou_x+de_x+desi_x+desho_x+desu_x+na2_x+nara_x+nai_x, - nu_x+ne2_x+nn2_x+fuuda_x+besi_x+mai_x+masu_x+masure_x, - mase_x+mitaida_x+you_x+youda_x+rasii_x+rareru_x+reru_x+site_x, - - yougen_x+aru_x+ara_x+ari1_x+ari2_x+ari3_x+are1_x+are2_x, - arou_x+ii_x+itasi_x+itadaku_x+iru_x+eru_x+kakeru_x+kaneru_x, - karazu_x+gatai_x+gatida_x+kudasaru_x+gozai_x+sa1_x+si1_x+siro_x, - jyau_x+jimau_x+sugiru_x+subesi_x+suru_x+sure_x+se_x+seyo_x, - tamau_x+tayu_x+timau_x+dekiru_x+naru_o+nasai_x+nasaru_x+nikui_x, - yasui_x+yoi_x+yaru_x+ttarasii_x - }; - -static u_char nasai[] = { - wo_x+ttatte_o+ttara_x+tte1_o+tte2_x+ppanasi_x+ppoi_x+ue_x, - uti_x+oite_x+okeru_x+ori_x+ka1_x+ka2_o+kai_x+kasira_x, - katagata_x+kadouka_x+kana_x+kane_x+kamo_x+kara1_x+kara2_x+ga1_x, - ga2_x+gatera_x+kiri_x+kuseni_x+kurai_x+gurumi_x+kedo_x+koso_x, - koto_x+sa2_x+sae_x+si2_x+sika_x+sura_x+zutu_x+zo_x, - tame_x+dake_x+dano_x+darake_x+tuite_x+tuki_x+tutu_x+tumori_x, - te1_x+te2_x+teru_x+dearou_x+deru_x+to1_x+to2_o+totte_x, - toiu_o+toori_x+toki_x+tokoro_x+tote_x+tohaie_o+tomo_x+do_x, - doori_x+dokoro_o+dokoroka_o+domo_x+na1_o+naa_x+nagara_x+nazo_o, - nado_o+nari_x+nanka_o+nanzo_o+nante_o+ni1_x+ni2_x+ni3_x, - nite_x+nimo_x+ne1_o+nee_o+no1_x+no2_x+node_x+noni_x, - nomi_x+nominrz_x+ha_x+hazu_x+ba_x+bakari_x+he_x+hou_x, - hoka_x+hodo_x+made_x+mama_x+mo1_x+mo2_x+motte_x+mono_x, - ya1_x+ya2_x+yara_x+yue_x+yo_o+yori_x+wa_x+wake_x, - wane_x+wayo_x+nn1_x+jya_o+tya_x+nagara2_x+wo_s_x, - ze_x+kke_x+n_si_x+deha_o, - - gotosi_x+saseru_x+zaru_x+zu_x+zunba_x+seru_x+souda_x+youtai_x, - denbun_x+ta_x+tai_x+tagaru_x+taru_x+da1_x+da2_x+daxtu_x, - darou_x+de_x+desi_x+desho_x+desu_x+na2_x+nara_x+nai_x, - nu_x+ne2_x+nn2_x+fuuda_x+besi_x+mai_x+masu_x+masure_x, - mase_x+mitaida_x+you_x+youda_x+rasii_x+rareru_x+reru_x+site_x, - - yougen_x+aru_x+ara_x+ari1_x+ari2_x+ari3_x+are1_x+are2_x, - arou_x+ii_x+itasi_x+itadaku_x+iru_x+eru_x+kakeru_x+kaneru_x, - karazu_x+gatai_x+gatida_x+kudasaru_x+gozai_x+sa1_x+si1_x+siro_x, - jyau_x+jimau_x+sugiru_x+subesi_x+suru_x+sure_x+se_x+seyo_x, - tamau_x+tayu_x+timau_x+dekiru_x+naru_x+nasai_x+nasaru_x+nikui_x, - yasui_x+yoi_x+yaru_x+ttarasii_x - }; - -static u_char fuuni[] = { - wo_x+ttatte_x+ttara_x+tte1_o+tte2_x+ppanasi_x+ppoi_x+ue_x, - uti_x+oite_x+okeru_x+ori_x+ka1_x+ka2_x+kai_x+kasira_x, - katagata_x+kadouka_x+kana_o+kane_o+kamo_x+kara1_x+kara2_x+ga1_x, - ga2_x+gatera_x+kiri_x+kuseni_x+kurai_x+gurumi_x+kedo_x+koso_x, - koto_x+sa2_o+sae_o+si2_x+sika_o+sura_o+zutu_x+zo_x, - tame_x+dake_o+dano_o+darake_x+tuite_x+tuki_x+tutu_x+tumori_x, - te1_x+te2_x+teru_x+dearou_x+deru_x+to1_x+to2_o+totte_x, - toiu_o+toori_x+toki_x+tokoro_x+tote_x+tohaie_o+tomo_x+do_x, - doori_x+dokoro_o+dokoroka_o+domo_x+na1_o+naa_o+nagara_x+nazo_o, - nado_o+nari_x+nanka_o+nanzo_o+nante_o+ni1_x+ni2_x+ni3_x, - nite_x+nimo_x+ne1_o+nee_o+no1_x+no2_x+node_x+noni_x, - nomi_x+nominrz_x+ha_o+hazu_x+ba_x+bakari_x+he_x+hou_x, - hoka_x+hodo_x+made_o+mama_x+mo1_o+mo2_x+motte_x+mono_x, - ya1_x+ya2_x+yara_x+yue_x+yo_x+yori_x+wa_x+wake_x, - wane_o+wayo_x+nn1_x+jya_x+tya_x+nagara2_x+wo_s_x, - ze_x+kke_x+n_si_x+deha_o, - - gotosi_x+saseru_x+zaru_x+zu_x+zunba_x+seru_x+souda_x+youtai_x, - denbun_x+ta_x+tai_x+tagaru_x+taru_x+da1_x+da2_x+daxtu_x, - darou_x+de_x+desi_o+desho_o+desu_o+na2_x+nara_o+nai_x, - nu_x+ne2_x+nn2_x+fuuda_x+besi_x+mai_x+masu_x+masure_x, - mase_x+mitaida_x+you_x+youda_x+rasii_x+rareru_x+reru_x+site_x, - - yougen_x+aru_x+ara_x+ari1_x+ari2_x+ari3_x+are1_x+are2_x, - arou_x+ii_x+itasi_x+itadaku_x+iru_x+eru_x+kakeru_x+kaneru_x, - karazu_x+gatai_x+gatida_x+kudasaru_x+gozai_x+sa1_x+si1_o+siro_x, - jyau_x+jimau_x+sugiru_x+subesi_o+suru_x+sure_x+se_x+seyo_x, - tamau_x+tayu_x+timau_x+dekiru_x+naru_o+nasai_x+nasaru_x+nikui_x, - yasui_x+yoi_x+yaru_x+ttarasii_x - }; - -static u_char yori2[] = { - wo_x+ttatte_x+ttara_x+tte1_x+tte2_x+ppanasi_x+ppoi_x+ue_x, - uti_x+oite_x+okeru_x+ori_x+ka1_x+ka2_x+kai_x+kasira_x, - katagata_x+kadouka_x+kana_x+kane_x+kamo_x+kara1_x+kara2_x+ga1_x, - ga2_x+gatera_x+kiri_x+kuseni_x+kurai_x+gurumi_x+kedo_x+koso_x, - koto_x+sa2_x+sae_x+si2_x+sika_x+sura_x+zutu_x+zo_x, - tame_x+dake_x+dano_x+darake_x+tuite_x+tuki_x+tutu_x+tumori_x, - te1_x+te2_x+teru_x+dearou_x+deru_x+to1_x+to2_x+totte_x, - toiu_x+toori_x+toki_x+tokoro_x+tote_x+tohaie_x+tomo_x+do_x, - doori_x+dokoro_x+dokoroka_x+domo_x+na1_x+naa_x+nagara_x+nazo_x, - nado_x+nari_x+nanka_x+nanzo_x+nante_x+ni1_x+ni2_x+ni3_x, - nite_x+nimo_x+ne1_x+nee_x+no1_x+no2_x+node_x+noni_x, - nomi_x+nominrz_x+ha_x+hazu_x+ba_x+bakari_x+he_x+hou_x, - hoka_x+hodo_x+made_x+mama_x+mo1_x+mo2_x+motte_x+mono_x, - ya1_x+ya2_x+yara_x+yue_x+yo_x+yori_x+wa_x+wake_x, - wane_x+wayo_x+nn1_x+jya_x+tya_x+nagara2_x+wo_s_x, - ze_x+kke_x+n_si_x+deha_x, - - gotosi_x+saseru_x+zaru_x+zu_x+zunba_x+seru_x+souda_o+youtai_o, - denbun_x+ta_x+tai_x+tagaru_x+taru_x+da1_x+da2_x+daxtu_x, - darou_x+de_x+desi_x+desho_x+desu_x+na2_x+nara_x+nai_x, - nu_x+ne2_x+nn2_x+fuuda_x+besi_x+mai_x+masu_o+masure_o, - mase_x+mitaida_x+you_x+youda_x+rasii_x+rareru_x+reru_x+site_x, - - yougen_x+aru_x+ara_x+ari1_x+ari2_x+ari3_x+are1_x+are2_x, - arou_x+ii_x+itasi_x+itadaku_x+iru_x+eru_x+kakeru_x+kaneru_x, - karazu_x+gatai_x+gatida_x+kudasaru_x+gozai_x+sa1_x+si1_x+siro_x, - jyau_x+jimau_x+sugiru_x+subesi_x+suru_x+sure_x+se_x+seyo_x, - tamau_x+tayu_x+timau_x+dekiru_x+naru_x+nasai_x+nasaru_x+nikui_x, - yasui_x+yoi_x+yaru_x+ttarasii_x - }; - -static u_char rashuu[] = { - wo_x+ttatte_x+ttara_x+tte1_x+tte2_x+ppanasi_x+ppoi_x+ue_x, - uti_x+oite_x+okeru_x+ori_x+ka1_x+ka2_x+kai_x+kasira_x, - katagata_x+kadouka_x+kana_x+kane_x+kamo_x+kara1_x+kara2_x+ga1_x, - ga2_x+gatera_x+kiri_x+kuseni_x+kurai_x+gurumi_x+kedo_x+koso_x, - koto_x+sa2_x+sae_x+si2_x+sika_x+sura_x+zutu_x+zo_x, - tame_x+dake_x+dano_x+darake_x+tuite_x+tuki_x+tutu_x+tumori_x, - te1_x+te2_x+teru_x+dearou_x+deru_x+to1_x+to2_x+totte_x, - toiu_x+toori_x+toki_x+tokoro_x+tote_x+tohaie_x+tomo_x+do_x, - doori_x+dokoro_x+dokoroka_x+domo_x+na1_x+naa_x+nagara_x+nazo_x, - nado_x+nari_x+nanka_x+nanzo_x+nante_x+ni1_x+ni2_x+ni3_x, - nite_x+nimo_x+ne1_x+nee_x+no1_x+no2_x+node_x+noni_x, - nomi_x+nominrz_x+ha_x+hazu_x+ba_x+bakari_x+he_x+hou_x, - hoka_x+hodo_x+made_x+mama_x+mo1_x+mo2_x+motte_x+mono_x, - ya1_x+ya2_x+yara_x+yue_x+yo_x+yori_x+wa_x+wake_x, - wane_x+wayo_x+nn1_x+jya_x+tya_x+nagara2_x+wo_s_x, - ze_x+kke_x+n_si_x+deha_x, - - gotosi_x+saseru_x+zaru_x+zu_x+zunba_x+seru_x+souda_x+youtai_x, - denbun_x+ta_x+tai_x+tagaru_x+taru_x+da1_x+da2_x+daxtu_x, - darou_x+de_x+desi_x+desho_x+desu_x+na2_x+nara_x+nai_x, - nu_x+ne2_x+nn2_x+fuuda_x+besi_x+mai_x+masu_x+masure_x, - mase_x+mitaida_x+you_x+youda_x+rasii_x+rareru_x+reru_x+site_x, - - yougen_x+aru_x+ara_x+ari1_x+ari2_x+ari3_x+are1_x+are2_x, - arou_x+ii_x+itasi_x+itadaku_x+iru_x+eru_x+kakeru_x+kaneru_x, - karazu_x+gatai_x+gatida_x+kudasaru_x+gozai_o+sa1_x+si1_x+siro_x, - jyau_x+jimau_x+sugiru_x+subesi_x+suru_x+sure_x+se_x+seyo_x, - tamau_x+tayu_x+timau_x+dekiru_x+naru_x+nasai_x+nasaru_x+nikui_x, - yasui_x+yoi_x+yaru_x+ttarasii_x - }; - -static u_char dshuusi1[] = { - wo_x+ttatte_x+ttara_x+tte1_o+tte2_x+ppanasi_x+ppoi_x+ue_x, - uti_x+oite_x+okeru_x+ori_x+ka1_o+ka2_x+kai_x+kasira_x, - katagata_x+kadouka_o+kana_x+kane_x+kamo_x+kara1_x+kara2_o+ga1_x, - ga2_o+gatera_x+kiri_x+kuseni_x+kurai_x+gurumi_x+kedo_o+koso_x, - koto_x+sa2_x+sae_x+si2_o+sika_x+sura_x+zutu_x+zo_o, - tame_x+dake_x+dano_x+darake_x+tuite_x+tuki_x+tutu_x+tumori_x, - te1_x+te2_x+teru_x+dearou_x+deru_x+to1_x+to2_o+totte_x, - toiu_o+toori_x+toki_x+tokoro_x+tote_x+tohaie_o+tomo_x+do_x, - doori_x+dokoro_x+dokoroka_x+domo_x+na1_o+naa_o+nagara_x+nazo_o, - nado_o+nari_x+nanka_o+nanzo_o+nante_o+ni1_x+ni2_x+ni3_x, - nite_x+nimo_x+ne1_o+nee_o+no1_x+no2_x+node_x+noni_x, - nomi_x+nominrz_x+ha_x+hazu_x+ba_x+bakari_x+he_x+hou_x, - hoka_x+hodo_x+made_x+mama_x+mo1_x+mo2_x+motte_x+mono_o, - ya1_x+ya2_x+yara_x+yue_x+yo_o+yori_x+wa_o+wake_x, - wane_o+wayo_o+nn1_x+jya_x+tya_x+nagara2_x+wo_s_x, - ze_o+kke_o+n_si_x+deha_o, - - gotosi_x+saseru_x+zaru_x+zu_x+zunba_x+seru_x+souda_o+youtai_x, - denbun_o+ta_x+tai_x+tagaru_x+taru_x+da1_x+da2_x+daxtu_x, - darou_x+de_x+desi_x+desho_x+desu_x+na2_x+nara_x+nai_x, - nu_x+ne2_x+nn2_x+fuuda_x+besi_x+mai_x+masu_x+masure_x, - mase_x+mitaida_x+you_x+youda_x+rasii_x+rareru_x+reru_x+site_x, - - yougen_x+aru_x+ara_x+ari1_x+ari2_x+ari3_x+are1_x+are2_x, - arou_x+ii_x+itasi_x+itadaku_x+iru_x+eru_x+kakeru_x+kaneru_x, - karazu_x+gatai_x+gatida_x+kudasaru_x+gozai_x+sa1_x+si1_x+siro_x, - jyau_x+jimau_x+sugiru_x+subesi_x+suru_x+sure_x+se_x+seyo_x, - tamau_x+tayu_x+timau_x+dekiru_x+naru_x+nasai_x+nasaru_x+nikui_x, - yasui_x+yoi_x+yaru_x+ttarasii_x - }; - -static u_char dshuusi2[] = { - wo_x+ttatte_x+ttara_x+tte1_o+tte2_x+ppanasi_x+ppoi_x+ue_x, - uti_x+oite_x+okeru_x+ori_x+ka1_x+ka2_x+kai_x+kasira_x, - katagata_x+kadouka_x+kana_x+kane_x+kamo_x+kara1_x+kara2_x+ga1_x, - ga2_x+gatera_x+kiri_x+kuseni_x+kurai_x+gurumi_x+kedo_x+koso_x, - koto_x+sa2_x+sae_x+si2_x+sika_x+sura_x+zutu_x+zo_x, - tame_x+dake_x+dano_x+darake_x+tuite_x+tuki_x+tutu_x+tumori_x, - te1_x+te2_x+teru_x+dearou_x+deru_x+to1_x+to2_o+totte_x, - toiu_o+toori_x+toki_x+tokoro_x+tote_x+tohaie_o+tomo_x+do_x, - doori_x+dokoro_x+dokoroka_x+domo_x+na1_x+naa_x+nagara_x+nazo_o, - nado_o+nari_x+nanka_o+nanzo_o+nante_o+ni1_x+ni2_x+ni3_x, - nite_x+nimo_x+ne1_x+nee_x+no1_x+no2_x+node_x+noni_x, - nomi_x+nominrz_x+ha_x+hazu_x+ba_x+bakari_x+he_x+hou_x, - hoka_x+hodo_x+made_x+mama_x+mo1_x+mo2_x+motte_x+mono_x, - ya1_x+ya2_x+yara_x+yue_x+yo_x+yori_x+wa_x+wake_x, - wane_x+wayo_x+nn1_x+jya_x+tya_x+nagara2_x+wo_s_x, - ze_x+kke_x+n_si_x+deha_o, - - gotosi_x+saseru_x+zaru_x+zu_x+zunba_x+seru_x+souda_x+youtai_x, - denbun_x+ta_x+tai_x+tagaru_x+taru_x+da1_x+da2_x+daxtu_x, - darou_x+de_x+desi_x+desho_x+desu_x+na2_x+nara_x+nai_x, - nu_x+ne2_x+nn2_x+fuuda_x+besi_x+mai_x+masu_x+masure_x, - mase_x+mitaida_x+you_x+youda_x+rasii_x+rareru_x+reru_x+site_x, - - yougen_x+aru_x+ara_x+ari1_x+ari2_x+ari3_x+are1_x+are2_x, - arou_x+ii_x+itasi_x+itadaku_x+iru_x+eru_x+kakeru_x+kaneru_x, - karazu_x+gatai_x+gatida_x+kudasaru_x+gozai_x+sa1_x+si1_x+siro_x, - jyau_x+jimau_x+sugiru_x+subesi_x+suru_x+sure_x+se_x+seyo_x, - tamau_x+tayu_x+timau_x+dekiru_x+naru_x+nasai_x+nasaru_x+nikui_x, - yasui_x+yoi_x+yaru_x+ttarasii_x - }; - -static u_char gotosi[] = { - wo_x+ttatte_x+ttara_x+tte1_o+tte2_x+ppanasi_x+ppoi_x+ue_x, - uti_x+oite_x+okeru_x+ori_x+ka1_x+ka2_x+kai_x+kasira_x, - katagata_x+kadouka_x+kana_x+kane_x+kamo_x+kara1_x+kara2_x+ga1_x, - ga2_x+gatera_x+kiri_x+kuseni_x+kurai_x+gurumi_x+kedo_x+koso_x, - koto_x+sa2_x+sae_x+si2_x+sika_x+sura_x+zutu_x+zo_x, - tame_x+dake_x+dano_x+darake_x+tuite_x+tuki_x+tutu_x+tumori_x, - te1_x+te2_x+teru_x+dearou_x+deru_x+to1_x+to2_o+totte_x, - toiu_o+toori_x+toki_x+tokoro_x+tote_x+tohaie_o+tomo_x+do_x, - doori_x+dokoro_x+dokoroka_x+domo_x+na1_x+naa_x+nagara_x+nazo_o, - nado_o+nari_x+nanka_o+nanzo_o+nante_o+ni1_x+ni2_x+ni3_x, - nite_x+nimo_x+ne1_x+nee_x+no1_x+no2_x+node_x+noni_x, - nomi_x+nominrz_x+ha_x+hazu_x+ba_x+bakari_x+he_x+hou_x, - hoka_x+hodo_x+made_x+mama_x+mo1_x+mo2_x+motte_x+mono_x, - ya1_x+ya2_x+yara_x+yue_x+yo_x+yori_x+wa_x+wake_x, - wane_x+wayo_x+nn1_x+jya_x+tya_x+nagara2_x+wo_s_x, - ze_x+kke_x+n_si_x+deha_o, - - gotosi_x+saseru_x+zaru_x+zu_x+zunba_x+seru_x+souda_x+youtai_x, - denbun_x+ta_x+tai_x+tagaru_x+taru_x+da1_x+da2_x+daxtu_x, - darou_x+de_x+desi_x+desho_x+desu_x+na2_x+nara_x+nai_x, - nu_x+ne2_x+nn2_x+fuuda_x+besi_x+mai_x+masu_x+masure_x, - mase_x+mitaida_x+you_x+youda_x+rasii_x+rareru_x+reru_x+site_x, - - yougen_x+aru_x+ara_x+ari1_x+ari2_x+ari3_x+are1_x+are2_x, - arou_x+ii_x+itasi_x+itadaku_x+iru_x+eru_x+kakeru_x+kaneru_x, - karazu_x+gatai_x+gatida_x+kudasaru_x+gozai_x+sa1_x+si1_x+siro_x, - jyau_x+jimau_x+sugiru_x+subesi_x+suru_x+sure_x+se_x+seyo_x, - tamau_x+tayu_x+timau_x+dekiru_x+naru_x+nasai_x+nasaru_x+nikui_x, - yasui_x+yoi_x+yaru_x+ttarasii_x - }; - -static u_char besi[] = { - wo_x+ttatte_x+ttara_x+tte1_o+tte2_x+ppanasi_x+ppoi_x+ue_x, - uti_x+oite_x+okeru_x+ori_x+ka1_x+ka2_x+kai_x+kasira_x, - katagata_x+kadouka_x+kana_x+kane_x+kamo_x+kara1_x+kara2_x+ga1_x, - ga2_x+gatera_x+kiri_x+kuseni_x+kurai_x+gurumi_x+kedo_x+koso_x, - koto_x+sa2_x+sae_x+si2_x+sika_x+sura_x+zutu_x+zo_x, - tame_x+dake_x+dano_x+darake_x+tuite_x+tuki_x+tutu_x+tumori_x, - te1_x+te2_x+teru_x+dearou_x+deru_x+to1_x+to2_o+totte_x, - toiu_o+toori_x+toki_x+tokoro_x+tote_x+tohaie_o+tomo_x+do_x, - doori_x+dokoro_x+dokoroka_x+domo_x+na1_x+naa_x+nagara_x+nazo_o, - nado_o+nari_x+nanka_o+nanzo_o+nante_o+ni1_x+ni2_x+ni3_x, - nite_x+nimo_x+ne1_x+nee_x+no1_x+no2_x+node_x+noni_x, - nomi_x+nominrz_x+ha_x+hazu_x+ba_x+bakari_x+he_x+hou_x, - hoka_x+hodo_x+made_x+mama_x+mo1_x+mo2_x+motte_x+mono_x, - ya1_x+ya2_x+yara_x+yue_x+yo_x+yori_x+wa_x+wake_x, - wane_x+wayo_x+nn1_x+jya_x+tya_x+nagara2_x+wo_s_x, - ze_x+kke_x+n_si_x+deha_o, - - gotosi_x+saseru_x+zaru_x+zu_x+zunba_x+seru_x+souda_x+youtai_x, - denbun_x+ta_x+tai_x+tagaru_x+taru_x+da1_x+da2_x+daxtu_x, - darou_x+de_x+desi_x+desho_x+desu_x+na2_x+nara_x+nai_x, - nu_x+ne2_x+nn2_x+fuuda_x+besi_x+mai_x+masu_x+masure_x, - mase_x+mitaida_x+you_x+youda_x+rasii_x+rareru_x+reru_x+site_x, - - yougen_x+aru_x+ara_x+ari1_x+ari2_x+ari3_x+are1_x+are2_x, - arou_x+ii_x+itasi_x+itadaku_x+iru_x+eru_x+kakeru_x+kaneru_x, - karazu_x+gatai_x+gatida_x+kudasaru_x+gozai_x+sa1_x+si1_x+siro_x, - jyau_x+jimau_x+sugiru_x+subesi_x+suru_x+sure_x+se_x+seyo_x, - tamau_x+tayu_x+timau_x+dekiru_x+naru_x+nasai_x+nasaru_x+nikui_x, - yasui_x+yoi_x+yaru_x+ttarasii_x - }; - -static u_char zu[] = { - wo_x+ttatte_x+ttara_x+tte1_o+tte2_x+ppanasi_x+ppoi_x+ue_x, - uti_x+oite_x+okeru_x+ori_x+ka1_x+ka2_x+kai_x+kasira_x, - katagata_x+kadouka_x+kana_x+kane_x+kamo_x+kara1_x+kara2_x+ga1_x, - ga2_x+gatera_x+kiri_x+kuseni_x+kurai_x+gurumi_x+kedo_x+koso_x, - koto_x+sa2_x+sae_x+si2_x+sika_x+sura_x+zutu_x+zo_x, - tame_x+dake_x+dano_x+darake_x+tuite_x+tuki_x+tutu_x+tumori_x, - te1_x+te2_x+teru_x+dearou_x+deru_x+to1_x+to2_o+totte_x, - toiu_o+toori_x+toki_x+tokoro_x+tote_x+tohaie_o+tomo_x+do_x, - doori_x+dokoro_x+dokoroka_x+domo_x+na1_x+naa_x+nagara_x+nazo_x, - nado_x+nari_x+nanka_x+nanzo_x+nante_x+ni1_x+ni2_x+ni3_o, - nite_x+nimo_x+ne1_x+nee_x+no1_x+no2_x+node_x+noni_x, - nomi_x+nominrz_x+ha_x+hazu_x+ba_x+bakari_x+he_x+hou_x, - hoka_x+hodo_x+made_x+mama_x+mo1_o+mo2_x+motte_x+mono_x, - ya1_x+ya2_x+yara_x+yue_x+yo_x+yori_x+wa_x+wake_x, - wane_x+wayo_x+nn1_x+jya_o+tya_x+nagara2_x+wo_s_x, - ze_x+kke_x+n_si_x+deha_o, - - gotosi_x+saseru_x+zaru_x+zu_x+zunba_x+seru_x+souda_x+youtai_x, - denbun_x+ta_x+tai_x+tagaru_x+taru_x+da1_x+da2_o+daxtu_o, - darou_o+de_o+desi_o+desho_o+desu_o+na2_x+nara_o+nai_x, - nu_x+ne2_x+nn2_x+fuuda_x+besi_x+mai_x+masu_x+masure_x, - mase_x+mitaida_x+you_x+youda_x+rasii_x+rareru_x+reru_x+site_x, - - yougen_x+aru_x+ara_x+ari1_x+ari2_x+ari3_x+are1_x+are2_x, - arou_x+ii_x+itasi_x+itadaku_x+iru_x+eru_x+kakeru_x+kaneru_x, - karazu_x+gatai_x+gatida_x+kudasaru_x+gozai_x+sa1_x+si1_x+siro_x, - jyau_x+jimau_x+sugiru_x+subesi_x+suru_x+sure_x+se_x+seyo_x, - tamau_x+tayu_x+timau_x+dekiru_x+naru_x+nasai_x+nasaru_x+nikui_x, - yasui_x+yoi_x+yaru_x+ttarasii_x - }; - -static u_char souda[] = { - wo_x+ttatte_x+ttara_x+tte1_o+tte2_x+ppanasi_x+ppoi_x+ue_x, - uti_x+oite_x+okeru_x+ori_x+ka1_o+ka2_x+kai_x+kasira_x, - katagata_x+kadouka_o+kana_x+kane_x+kamo_x+kara1_x+kara2_o+ga1_x, - ga2_o+gatera_x+kiri_x+kuseni_x+kurai_x+gurumi_x+kedo_o+koso_x, - koto_x+sa2_x+sae_x+si2_o+sika_x+sura_x+zutu_x+zo_o, - tame_x+dake_x+dano_x+darake_x+tuite_x+tuki_x+tutu_x+tumori_x, - te1_x+te2_x+teru_x+dearou_x+deru_x+to1_x+to2_o+totte_x, - toiu_o+toori_x+toki_x+tokoro_x+tote_o+tohaie_o+tomo_x+do_x, - doori_x+dokoro_x+dokoroka_o+domo_x+na1_o+naa_o+nagara_x+nazo_x, - nado_x+nari_x+nanka_x+nanzo_x+nante_x+ni1_x+ni2_x+ni3_x, - nite_x+nimo_x+ne1_o+nee_o+no1_x+no2_x+node_x+noni_x, - nomi_x+nominrz_x+ha_x+hazu_x+ba_x+bakari_x+he_x+hou_x, - hoka_x+hodo_x+made_x+mama_x+mo1_x+mo2_x+motte_x+mono_x, - ya1_x+ya2_x+yara_x+yue_x+yo_o+yori_x+wa_o+wake_x, - wane_o+wayo_o+nn1_x+jya_x+tya_x+nagara2_x+wo_s_x, - ze_x+kke_x+n_si_x+deha_o, - - gotosi_x+saseru_x+zaru_x+zu_x+zunba_x+seru_x+souda_x+youtai_x, - denbun_x+ta_x+tai_x+tagaru_x+taru_x+da1_x+da2_x+daxtu_x, - darou_x+de_x+desi_x+desho_x+desu_x+na2_x+nara_x+nai_x, - nu_x+ne2_x+nn2_x+fuuda_x+besi_x+mai_x+masu_x+masure_x, - mase_x+mitaida_x+you_x+youda_x+rasii_x+rareru_x+reru_x+site_x, - - yougen_x+aru_x+ara_x+ari1_x+ari2_x+ari3_x+are1_x+are2_x, - arou_x+ii_x+itasi_x+itadaku_x+iru_x+eru_x+kakeru_x+kaneru_x, - karazu_x+gatai_x+gatida_x+kudasaru_x+gozai_x+sa1_x+si1_x+siro_x, - jyau_x+jimau_x+sugiru_x+subesi_x+suru_x+sure_x+se_x+seyo_x, - tamau_x+tayu_x+timau_x+dekiru_x+naru_x+nasai_x+nasaru_x+nikui_x, - yasui_x+yoi_x+yaru_x+ttarasii_x - }; - -static u_char mai[] = { - wo_x+ttatte_o+ttara_x+tte1_o+tte2_x+ppanasi_x+ppoi_x+ue_x, - uti_x+oite_x+okeru_x+ori_x+ka1_x+ka2_o+kai_x+kasira_x, - katagata_x+kadouka_x+kana_x+kane_x+kamo_x+kara1_x+kara2_x+ga1_x, - ga2_o+gatera_x+kiri_x+kuseni_x+kurai_x+gurumi_x+kedo_o+koso_x, - koto_x+sa2_x+sae_x+si2_x+sika_x+sura_x+zutu_x+zo_x, - tame_x+dake_x+dano_x+darake_x+tuite_x+tuki_x+tutu_x+tumori_x, - te1_x+te2_x+teru_x+dearou_x+deru_x+to1_x+to2_o+totte_x, - toiu_o+toori_x+toki_x+tokoro_x+tote_o+tohaie_o+tomo_x+do_x, - doori_x+dokoro_x+dokoroka_o+domo_x+na1_o+naa_o+nagara_x+nazo_o, - nado_o+nari_x+nanka_o+nanzo_o+nante_o+ni1_x+ni2_x+ni3_x, - nite_x+nimo_x+ne1_o+nee_o+no1_x+no2_x+node_x+noni_x, - nomi_x+nominrz_x+ha_x+hazu_x+ba_x+bakari_x+he_x+hou_x, - hoka_x+hodo_x+made_x+mama_x+mo1_x+mo2_x+motte_x+mono_x, - ya1_x+ya2_x+yara_x+yue_x+yo_x+yori_x+wa_x+wake_x, - wane_x+wayo_x+nn1_x+jya_x+tya_x+nagara2_x+wo_s_x, - ze_x+kke_x+n_si_x+deha_o, - - gotosi_x+saseru_x+zaru_x+zu_x+zunba_x+seru_x+souda_x+youtai_x, - denbun_x+ta_x+tai_x+tagaru_x+taru_x+da1_x+da2_x+daxtu_x, - darou_x+de_x+desi_x+desho_x+desu_x+na2_x+nara_x+nai_x, - nu_x+ne2_x+nn2_x+fuuda_x+besi_x+mai_x+masu_x+masure_x, - mase_x+mitaida_x+you_x+youda_x+rasii_x+rareru_x+reru_x+site_x, - - yougen_x+aru_x+ara_x+ari1_x+ari2_x+ari3_x+are1_x+are2_x, - arou_x+ii_x+itasi_x+itadaku_x+iru_x+eru_x+kakeru_x+kaneru_x, - karazu_x+gatai_x+gatida_x+kudasaru_x+gozai_x+sa1_x+si1_x+siro_x, - jyau_x+jimau_x+sugiru_x+subesi_x+suru_x+sure_x+se_x+seyo_x, - tamau_x+tayu_x+timau_x+dekiru_x+naru_x+nasai_x+nasaru_x+nikui_x, - yasui_x+yoi_x+yaru_x+ttarasii_x - }; - -static u_char mitaida[] = { - wo_x+ttatte_x+ttara_x+tte1_x+tte2_x+ppanasi_x+ppoi_x+ue_x, - uti_x+oite_x+okeru_x+ori_x+ka1_x+ka2_x+kai_x+kasira_x, - katagata_x+kadouka_x+kana_x+kane_x+kamo_x+kara1_x+kara2_o+ga1_x, - ga2_o+gatera_x+kiri_x+kuseni_x+kurai_x+gurumi_x+kedo_o+koso_x, - koto_x+sa2_x+sae_x+si2_o+sika_x+sura_x+zutu_x+zo_o, - tame_x+dake_x+dano_x+darake_x+tuite_x+tuki_x+tutu_x+tumori_x, - te1_x+te2_x+teru_x+dearou_x+deru_x+to1_x+to2_o+totte_x, - toiu_o+toori_x+toki_x+tokoro_x+tote_o+tohaie_o+tomo_x+do_x, - doori_x+dokoro_x+dokoroka_x+domo_x+na1_o+naa_o+nagara_x+nazo_o, - nado_o+nari_x+nanka_o+nanzo_o+nante_o+ni1_x+ni2_x+ni3_x, - nite_x+nimo_x+ne1_o+nee_o+no1_x+no2_x+node_x+noni_x, - nomi_x+nominrz_x+ha_x+hazu_x+ba_x+bakari_x+he_x+hou_x, - hoka_x+hodo_x+made_x+mama_x+mo1_x+mo2_x+motte_x+mono_x, - ya1_x+ya2_x+yara_o+yue_x+yo_o+yori_x+wa_o+wake_x, - wane_o+wayo_x+nn1_x+jya_x+tya_x+nagara2_x+wo_s_x, - ze_x+kke_x+n_si_x+deha_o, - - gotosi_x+saseru_x+zaru_x+zu_x+zunba_x+seru_x+souda_o+youtai_x, - denbun_o+ta_x+tai_x+tagaru_x+taru_x+da1_x+da2_x+daxtu_x, - darou_x+de_x+desi_x+desho_x+desu_x+na2_x+nara_x+nai_x, - nu_x+ne2_x+nn2_x+fuuda_x+besi_x+mai_x+masu_x+masure_x, - mase_x+mitaida_x+you_x+youda_x+rasii_x+rareru_x+reru_x+site_x, - - yougen_x+aru_x+ara_x+ari1_x+ari2_x+ari3_x+are1_x+are2_x, - arou_x+ii_x+itasi_x+itadaku_x+iru_x+eru_x+kakeru_x+kaneru_x, - karazu_x+gatai_x+gatida_x+kudasaru_x+gozai_x+sa1_x+si1_x+siro_x, - jyau_x+jimau_x+sugiru_x+subesi_x+suru_x+sure_x+se_x+seyo_x, - tamau_x+tayu_x+timau_x+dekiru_x+naru_x+nasai_x+nasaru_x+nikui_x, - yasui_x+yoi_x+yaru_x+ttarasii_x - }; - -static u_char shuusi[] = { - wo_x+ttatte_o+ttara_o+tte1_o+tte2_x+ppanasi_x+ppoi_x+ue_o, - uti_o+oite_x+okeru_x+ori_o+ka1_o+ka2_x+kai_x+kasira_o, - katagata_x+kadouka_o+kana_o+kane_o+kamo_o+kara1_x+kara2_o+ga1_x, - ga2_o+gatera_x+kiri_o+kuseni_o+kurai_o+gurumi_x+kedo_o+koso_x, - koto_o+sa2_o+sae_x+si2_o+sika_o+sura_x+zutu_x+zo_o, - tame_o+dake_o+dano_o+darake_x+tuite_x+tuki_x+tutu_x+tumori_o, - te1_x+te2_x+teru_x+dearou_o+deru_x+to1_x+to2_o+totte_x, - toiu_o+toori_o+toki_o+tokoro_o+tote_o+tohaie_o+tomo_x+do_x, - doori_x+dokoro_o+dokoroka_o+domo_x+na1_o+naa_o+nagara_x+nazo_o, - nado_o+nari_o+nanka_o+nanzo_o+nante_o+ni1_x+ni2_x+ni3_o, - nite_x+nimo_x+ne1_o+nee_o+no1_x+no2_o+node_o+noni_o, - nomi_o+nominrz_o+ha_x+hazu_o+ba_x+bakari_o+he_x+hou_o, - hoka_o+hodo_o+made_o+mama_o+mo1_o+mo2_x+motte_x+mono_o, - ya1_x+ya2_o+yara_o+yue_o+yo_o+yori_o+wa_o+wake_o, - wane_o+wayo_o+nn1_o+jya_o+tya_x+nagara2_x+wo_s_x, - ze_o+kke_x+n_si_x+deha_o, - - gotosi_o+saseru_x+zaru_x+zu_x+zunba_x+seru_x+souda_o+youtai_x, - denbun_o+ta_x+tai_x+tagaru_x+taru_x+da1_x+da2_x+daxtu_x, - darou_o+de_x+desi_x+desho_o+desu_x+na2_x+nara_o+nai_x, - nu_x+ne2_x+nn2_x+fuuda_x+besi_o+mai_o+masu_x+masure_x, - mase_x+mitaida_o+you_x+youda_o+rasii_o+rareru_x+reru_x+site_x, - - yougen_x+aru_x+ara_x+ari1_x+ari2_x+ari3_x+are1_x+are2_x, - arou_x+ii_x+itasi_x+itadaku_x+iru_x+eru_x+kakeru_x+kaneru_x, - karazu_x+gatai_x+gatida_x+kudasaru_x+gozai_x+sa1_x+si1_x+siro_x, - jyau_x+jimau_x+sugiru_x+subesi_x+suru_x+sure_x+se_x+seyo_x, - tamau_x+tayu_x+timau_x+dekiru_x+naru_x+nasai_x+nasaru_x+nikui_x, - yasui_x+yoi_x+yaru_x+ttarasii_x - }; - -static u_char kshuusi[] = { - wo_x+ttatte_o+ttara_o+tte1_o+tte2_x+ppanasi_x+ppoi_x+ue_o, - uti_o+oite_x+okeru_x+ori_x+ka1_o+ka2_x+kai_x+kasira_o, - katagata_x+kadouka_o+kana_o+kane_o+kamo_o+kara1_x+kara2_o+ga1_x, - ga2_o+gatera_x+kiri_x+kuseni_o+kurai_o+gurumi_x+kedo_o+koso_o, - koto_o+sa2_o+sae_x+si2_o+sika_x+sura_x+zutu_x+zo_o, - tame_o+dake_o+dano_o+darake_x+tuite_x+tuki_x+tutu_x+tumori_o, - te1_x+te2_x+teru_x+dearou_o+deru_x+to1_x+to2_o+totte_x, - toiu_o+toori_x+toki_o+tokoro_o+tote_o+tohaie_o+tomo_x+do_x, - doori_x+dokoro_o+dokoroka_o+domo_x+na1_o+naa_o+nagara_x+nazo_o, - nado_o+nari_o+nanka_o+nanzo_o+nante_o+ni1_x+ni2_x+ni3_o, - nite_x+nimo_x+ne1_o+nee_x+no1_x+no2_o+node_o+noni_o, - nomi_o+nominrz_o+ha_x+hazu_o+ba_x+bakari_o+he_x+hou_o, - hoka_o+hodo_o+made_o+mama_o+mo1_o+mo2_x+motte_x+mono_o, - ya1_x+ya2_x+yara_o+yue_o+yo_o+yori_o+wa_o+wake_o, - wane_o+wayo_o+nn1_o+jya_o+tya_x+nagara2_x+wo_s_x, - ze_o+kke_x+n_si_x+deha_o, - - gotosi_x+saseru_x+zaru_x+zu_x+zunba_x+seru_x+souda_o+youtai_x, - denbun_o+ta_x+tai_x+tagaru_x+taru_x+da1_x+da2_x+daxtu_x, - darou_o+de_x+desi_o+desho_o+desu_o+na2_x+nara_o+nai_x, - nu_x+ne2_x+nn2_x+fuuda_x+besi_x+mai_x+masu_x+masure_x, - mase_x+mitaida_o+you_x+youda_o+rasii_o+rareru_x+reru_x+site_x, - - yougen_x+aru_x+ara_x+ari1_x+ari2_x+ari3_x+are1_x+are2_x, - arou_x+ii_x+itasi_x+itadaku_x+iru_x+eru_x+kakeru_x+kaneru_x, - karazu_x+gatai_x+gatida_x+kudasaru_x+gozai_x+sa1_x+si1_x+siro_x, - jyau_x+jimau_x+sugiru_x+subesi_x+suru_x+sure_x+se_x+seyo_x, - tamau_x+tayu_x+timau_x+dekiru_x+naru_x+nasai_x+nasaru_x+nikui_x, - yasui_x+yoi_x+yaru_x+ttarasii_x - }; - -static u_char zaru[] = { - wo_o+ttatte_x+ttara_x+tte1_x+tte2_x+ppanasi_x+ppoi_x+ue_o, - uti_o+oite_x+okeru_x+ori_o+ka1_x+ka2_x+kai_x+kasira_x, - katagata_x+kadouka_x+kana_x+kane_x+kamo_x+kara1_x+kara2_x+ga1_x, - ga2_x+gatera_x+kiri_x+kuseni_x+kurai_x+gurumi_x+kedo_x+koso_x, - koto_o+sa2_x+sae_x+si2_x+sika_x+sura_x+zutu_x+zo_x, - tame_o+dake_x+dano_x+darake_x+tuite_x+tuki_x+tutu_x+tumori_x, - te1_x+te2_x+teru_x+dearou_x+deru_x+to1_x+to2_x+totte_x, - toiu_x+toori_x+toki_o+tokoro_o+tote_x+tohaie_x+tomo_x+do_x, - doori_x+dokoro_x+dokoroka_x+domo_x+na1_x+naa_x+nagara_x+nazo_x, - nado_x+nari_x+nanka_x+nanzo_x+nante_x+ni1_x+ni2_x+ni3_x, - nite_x+nimo_x+ne1_x+nee_x+no1_x+no2_x+node_x+noni_x, - nomi_x+nominrz_x+ha_x+hazu_x+ba_x+bakari_x+he_x+hou_x, - hoka_o+hodo_x+made_o+mama_o+mo1_x+mo2_x+motte_x+mono_o, - ya1_x+ya2_x+yara_x+yue_o+yo_x+yori_o+wa_x+wake_x, - wane_x+wayo_x+nn1_x+jya_x+tya_x+nagara2_x+wo_s_x, - ze_x+kke_x+n_si_x+deha_x, - - gotosi_x+saseru_x+zaru_x+zu_x+zunba_x+seru_x+souda_x+youtai_x, - denbun_x+ta_x+tai_x+tagaru_x+taru_x+da1_x+da2_x+daxtu_x, - darou_x+de_x+desi_x+desho_x+desu_x+na2_x+nara_x+nai_x, - nu_x+ne2_x+nn2_x+fuuda_x+besi_x+mai_x+masu_x+masure_x, - mase_x+mitaida_x+you_x+youda_x+rasii_x+rareru_x+reru_x+site_x, - - yougen_x+aru_x+ara_x+ari1_x+ari2_x+ari3_x+are1_x+are2_x, - arou_x+ii_x+itasi_x+itadaku_x+iru_x+eru_x+kakeru_x+kaneru_x, - karazu_x+gatai_x+gatida_x+kudasaru_x+gozai_x+sa1_x+si1_x+siro_x, - jyau_x+jimau_x+sugiru_x+subesi_x+suru_x+sure_x+se_x+seyo_x, - tamau_x+tayu_x+timau_x+dekiru_x+naru_x+nasai_x+nasaru_x+nikui_x, - yasui_x+yoi_x+yaru_x+ttarasii_x - }; - -static u_char soudesu[] = { - wo_x+ttatte_o+ttara_x+tte1_o+tte2_x+ppanasi_x+ppoi_x+ue_x, - uti_x+oite_x+okeru_x+ori_x+ka1_x+ka2_o+kai_x+kasira_x, - katagata_x+kadouka_x+kana_x+kane_x+kamo_x+kara1_x+kara2_o+ga1_x, - ga2_o+gatera_x+kiri_x+kuseni_x+kurai_x+gurumi_x+kedo_o+koso_x, - koto_x+sa2_x+sae_x+si2_o+sika_x+sura_x+zutu_x+zo_o, - tame_x+dake_x+dano_x+darake_x+tuite_x+tuki_x+tutu_x+tumori_x, - te1_x+te2_x+teru_x+dearou_x+deru_x+to1_x+to2_o+totte_x, - toiu_o+toori_x+toki_x+tokoro_x+tote_o+tohaie_o+tomo_x+do_x, - doori_x+dokoro_x+dokoroka_x+domo_x+na1_o+naa_o+nagara_x+nazo_x, - nado_x+nari_x+nanka_x+nanzo_x+nante_x+ni1_x+ni2_x+ni3_x, - nite_x+nimo_x+ne1_o+nee_o+no1_x+no2_x+node_o+noni_o, - nomi_x+nominrz_x+ha_x+hazu_x+ba_x+bakari_x+he_x+hou_x, - hoka_x+hodo_x+made_x+mama_x+mo1_x+mo2_x+motte_x+mono_x, - ya1_x+ya2_x+yara_x+yue_x+yo_o+yori_x+wa_o+wake_x, - wane_o+wayo_o+nn1_o+jya_x+tya_x+nagara2_x+wo_s_x, - ze_x+kke_x+n_si_x+deha_o, - - gotosi_x+saseru_x+zaru_x+zu_x+zunba_x+seru_x+souda_x+youtai_x, - denbun_x+ta_x+tai_x+tagaru_x+taru_x+da1_x+da2_x+daxtu_x, - darou_x+de_x+desi_x+desho_x+desu_x+na2_x+nara_x+nai_x, - nu_x+ne2_x+nn2_x+fuuda_x+besi_x+mai_x+masu_x+masure_x, - mase_x+mitaida_x+you_x+youda_x+rasii_x+rareru_x+reru_x+site_x, - - yougen_x+aru_x+ara_x+ari1_x+ari2_x+ari3_x+are1_x+are2_x, - arou_x+ii_x+itasi_x+itadaku_x+iru_x+eru_x+kakeru_x+kaneru_x, - karazu_x+gatai_x+gatida_x+kudasaru_x+gozai_x+sa1_x+si1_x+siro_x, - jyau_x+jimau_x+sugiru_x+subesi_x+suru_x+sure_x+se_x+seyo_x, - tamau_x+tayu_x+timau_x+dekiru_x+naru_x+nasai_x+nasaru_x+nikui_x, - yasui_x+yoi_x+yaru_x+ttarasii_x - }; - -static u_char ta[] = { - wo_x+ttatte_x+ttara_x+tte1_o+tte2_x+ppanasi_x+ppoi_x+ue_o, - uti_o+oite_x+okeru_x+ori_o+ka1_o+ka2_x+kai_x+kasira_o, - katagata_x+kadouka_o+kana_o+kane_o+kamo_o+kara1_x+kara2_o+ga1_x, - ga2_o+gatera_x+kiri_o+kuseni_o+kurai_o+gurumi_x+kedo_o+koso_x, - koto_o+sa2_o+sae_x+si2_o+sika_x+sura_x+zutu_x+zo_o, - tame_o+dake_o+dano_o+darake_x+tuite_x+tuki_x+tutu_x+tumori_o, - te1_x+te2_x+teru_x+dearou_o+deru_x+to1_x+to2_o+totte_x, - toiu_o+toori_x+toki_o+tokoro_o+tote_o+tohaie_o+tomo_x+do_x, - doori_x+dokoro_o+dokoroka_o+domo_x+na1_o+naa_o+nagara_x+nazo_o, - nado_o+nari_o+nanka_o+nanzo_o+nante_o+ni1_x+ni2_x+ni3_o, - nite_x+nimo_x+ne1_o+nee_o+no1_x+no2_o+node_o+noni_o, - nomi_o+nominrz_o+ha_x+hazu_o+ba_x+bakari_o+he_x+hou_o, - hoka_o+hodo_o+made_o+mama_o+mo1_o+mo2_x+motte_x+mono_o, - ya1_x+ya2_x+yara_o+yue_o+yo_o+yori_o+wa_o+wake_o, - wane_o+wayo_o+nn1_o+jya_o+tya_x+nagara2_x+wo_s_x, - ze_o+kke_o+n_si_x+deha_o, - - gotosi_x+saseru_x+zaru_x+zu_x+zunba_x+seru_x+souda_o+youtai_x, - denbun_o+ta_x+tai_x+tagaru_x+taru_x+da1_x+da2_x+daxtu_x, - darou_o+de_x+desi_x+desho_o+desu_o+na2_x+nara_o+nai_x, - nu_x+ne2_x+nn2_x+fuuda_x+besi_x+mai_x+masu_x+masure_x, - mase_x+mitaida_o+you_x+youda_o+rasii_o+rareru_x+reru_x+site_x, - - yougen_x+aru_x+ara_x+ari1_x+ari2_x+ari3_x+are1_x+are2_x, - arou_x+ii_x+itasi_x+itadaku_x+iru_x+eru_x+kakeru_x+kaneru_x, - karazu_x+gatai_x+gatida_x+kudasaru_x+gozai_x+sa1_x+si1_x+siro_x, - jyau_x+jimau_x+sugiru_x+subesi_x+suru_x+sure_x+se_x+seyo_x, - tamau_x+tayu_x+timau_x+dekiru_x+naru_x+nasai_x+nasaru_x+nikui_x, - yasui_x+yoi_x+yaru_x+ttarasii_x - }; - -static u_char tai[] = { - wo_x+ttatte_o+ttara_x+tte1_o+tte2_x+ppanasi_x+ppoi_x+ue_o, - uti_o+oite_x+okeru_x+ori_x+ka1_o+ka2_x+kai_x+kasira_o, - katagata_x+kadouka_o+kana_o+kane_o+kamo_o+kara1_x+kara2_o+ga1_x, - ga2_o+gatera_x+kiri_x+kuseni_o+kurai_o+gurumi_x+kedo_o+koso_x, - koto_o+sa2_o+sae_x+si2_o+sika_x+sura_x+zutu_x+zo_o, - tame_o+dake_o+dano_o+darake_x+tuite_x+tuki_x+tutu_x+tumori_x, - te1_x+te2_x+teru_x+dearou_o+deru_x+to1_x+to2_o+totte_x, - toiu_o+toori_x+toki_o+tokoro_o+tote_o+tohaie_o+tomo_x+do_x, - doori_x+dokoro_o+dokoroka_o+domo_x+na1_o+naa_o+nagara_x+nazo_o, - nado_o+nari_o+nanka_o+nanzo_o+nante_o+ni1_x+ni2_x+ni3_o, - nite_x+nimo_x+ne1_o+nee_o+no1_x+no2_o+node_o+noni_o, - nomi_x+nominrz_x+ha_x+hazu_o+ba_x+bakari_o+he_x+hou_o, - hoka_o+hodo_o+made_x+mama_x+mo1_o+mo2_x+motte_x+mono_o, - ya1_x+ya2_x+yara_o+yue_o+yo_o+yori_o+wa_o+wake_o, - wane_o+wayo_o+nn1_o+jya_o+tya_x+nagara2_x+wo_s_x, - ze_x+kke_x+n_si_x+deha_o, - - gotosi_x+saseru_x+zaru_x+zu_x+zunba_x+seru_x+souda_o+youtai_x, - denbun_o+ta_x+tai_x+tagaru_x+taru_x+da1_x+da2_x+daxtu_x, - darou_o+de_x+desi_x+desho_o+desu_o+na2_x+nara_o+nai_x, - nu_x+ne2_x+nn2_x+fuuda_x+besi_x+mai_x+masu_x+masure_x, - mase_x+mitaida_o+you_x+youda_o+rasii_o+rareru_x+reru_x+site_x, - - yougen_x+aru_x+ara_x+ari1_x+ari2_x+ari3_x+are1_x+are2_x, - arou_x+ii_x+itasi_x+itadaku_x+iru_x+eru_x+kakeru_x+kaneru_x, - karazu_x+gatai_x+gatida_x+kudasaru_x+gozai_x+sa1_x+si1_x+siro_x, - jyau_x+jimau_x+sugiru_x+subesi_x+suru_x+sure_x+se_x+seyo_x, - tamau_x+tayu_x+timau_x+dekiru_x+naru_x+nasai_x+nasaru_x+nikui_x, - yasui_x+yoi_x+yaru_x+ttarasii_x - }; - -static u_char desu[] = { - wo_x+ttatte_o+ttara_x+tte1_o+tte2_x+ppanasi_x+ppoi_x+ue_x, - uti_x+oite_x+okeru_x+ori_x+ka1_x+ka2_o+kai_x+kasira_x, - katagata_x+kadouka_x+kana_x+kane_x+kamo_x+kara1_x+kara2_o+ga1_x, - ga2_o+gatera_x+kiri_x+kuseni_x+kurai_x+gurumi_x+kedo_o+koso_x, - koto_x+sa2_x+sae_x+si2_o+sika_x+sura_x+zutu_x+zo_o, - tame_x+dake_x+dano_o+darake_x+tuite_x+tuki_x+tutu_x+tumori_x, - te1_x+te2_x+teru_x+dearou_x+deru_x+to1_x+to2_o+totte_x, - toiu_o+toori_x+toki_x+tokoro_x+tote_o+tohaie_o+tomo_x+do_x, - doori_x+dokoro_o+dokoroka_o+domo_x+na1_o+naa_o+nagara_x+nazo_o, - nado_o+nari_x+nanka_o+nanzo_o+nante_o+ni1_x+ni2_x+ni3_x, - nite_x+nimo_x+ne1_o+nee_o+no1_x+no2_o+node_o+noni_o, - nomi_x+nominrz_x+ha_x+hazu_x+ba_x+bakari_x+he_x+hou_x, - hoka_x+hodo_x+made_x+mama_x+mo1_x+mo2_x+motte_x+mono_o, - ya1_x+ya2_x+yara_o+yue_o+yo_o+yori_x+wa_o+wake_x, - wane_o+wayo_x+nn1_o+jya_x+tya_x+nagara2_x+wo_s_x, - ze_x+kke_x+n_si_x+deha_o, - - gotosi_x+saseru_x+zaru_x+zu_x+zunba_x+seru_x+souda_x+youtai_x, - denbun_x+ta_x+tai_x+tagaru_x+taru_x+da1_x+da2_x+daxtu_x, - darou_x+de_x+desi_x+desho_x+desu_x+na2_x+nara_x+nai_x, - nu_x+ne2_x+nn2_x+fuuda_x+besi_x+mai_x+masu_x+masure_x, - mase_x+mitaida_x+you_x+youda_x+rasii_x+rareru_x+reru_x+site_x, - - yougen_x+aru_x+ara_x+ari1_x+ari2_x+ari3_x+are1_x+are2_x, - arou_x+ii_x+itasi_x+itadaku_x+iru_x+eru_x+kakeru_x+kaneru_x, - karazu_x+gatai_x+gatida_x+kudasaru_x+gozai_x+sa1_x+si1_x+siro_x, - jyau_x+jimau_x+sugiru_x+subesi_x+suru_x+sure_x+se_x+seyo_x, - tamau_x+tayu_x+timau_x+dekiru_x+naru_x+nasai_x+nasaru_x+nikui_x, - yasui_x+yoi_x+yaru_x+ttarasii_x - }; - -static u_char nai[] = { - wo_x+ttatte_o+ttara_x+tte1_o+tte2_x+ppanasi_x+ppoi_x+ue_o, - uti_o+oite_x+okeru_x+ori_x+ka1_o+ka2_x+kai_x+kasira_o, - katagata_x+kadouka_o+kana_o+kane_o+kamo_o+kara1_x+kara2_o+ga1_x, - ga2_o+gatera_x+kiri_x+kuseni_o+kurai_o+gurumi_x+kedo_o+koso_x, - koto_o+sa2_o+sae_x+si2_o+sika_x+sura_x+zutu_x+zo_o, - tame_o+dake_o+dano_o+darake_x+tuite_x+tuki_x+tutu_x+tumori_o, - te1_x+te2_x+teru_x+dearou_o+deru_x+to1_x+to2_o+totte_x, - toiu_o+toori_x+toki_o+tokoro_o+tote_x+tohaie_o+tomo_x+do_x, - doori_x+dokoro_o+dokoroka_o+domo_x+na1_o+naa_o+nagara_x+nazo_o, - nado_o+nari_o+nanka_o+nanzo_o+nante_o+ni1_x+ni2_x+ni3_o, - nite_x+nimo_x+ne1_o+nee_o+no1_x+no2_o+node_o+noni_o, - nomi_x+nominrz_x+ha_x+hazu_o+ba_x+bakari_o+he_x+hou_o, - hoka_o+hodo_o+made_o+mama_o+mo1_o+mo2_x+motte_x+mono_o, - ya1_x+ya2_x+yara_o+yue_o+yo_o+yori_o+wa_o+wake_o, - wane_o+wayo_o+nn1_o+jya_o+tya_x+nagara2_o+wo_s_x, - ze_o+kke_o+n_si_x+deha_o, - - gotosi_x+saseru_x+zaru_x+zu_x+zunba_x+seru_x+souda_o+youtai_x, - denbun_o+ta_x+tai_x+tagaru_x+taru_x+da1_x+da2_x+daxtu_x, - darou_o+de_x+desi_x+desho_o+desu_o+na2_x+nara_o+nai_x, - nu_x+ne2_x+nn2_x+fuuda_x+besi_x+mai_x+masu_x+masure_x, - mase_x+mitaida_o+you_x+youda_o+rasii_o+rareru_x+reru_x+site_x, - - yougen_x+aru_x+ara_x+ari1_x+ari2_x+ari3_x+are1_x+are2_x, - arou_x+ii_x+itasi_x+itadaku_x+iru_x+eru_x+kakeru_x+kaneru_x, - karazu_x+gatai_x+gatida_x+kudasaru_x+gozai_x+sa1_x+si1_x+siro_x, - jyau_x+jimau_x+sugiru_x+subesi_x+suru_x+sure_x+se_x+seyo_x, - tamau_x+tayu_x+timau_x+dekiru_x+naru_x+nasai_x+nasaru_x+nikui_x, - yasui_x+yoi_x+yaru_x+ttarasii_x - }; - -static u_char nu[] = { - wo_x+ttatte_o+ttara_x+tte1_o+tte2_x+ppanasi_x+ppoi_x+ue_o, - uti_o+oite_x+okeru_x+ori_o+ka1_x+ka2_o+kai_x+kasira_x, - katagata_x+kadouka_x+kana_x+kane_x+kamo_x+kara1_x+kara2_o+ga1_x, - ga2_o+gatera_x+kiri_x+kuseni_x+kurai_x+gurumi_x+kedo_o+koso_x, - koto_o+sa2_x+sae_x+si2_o+sika_x+sura_x+zutu_x+zo_x, - tame_x+dake_x+dano_o+darake_x+tuite_x+tuki_x+tutu_x+tumori_x, - te1_x+te2_x+teru_x+dearou_o+deru_x+to1_x+to2_o+totte_x, - toiu_o+toori_x+toki_x+tokoro_x+tote_x+tohaie_o+tomo_x+do_x, - doori_x+dokoro_o+dokoroka_o+domo_x+na1_x+naa_x+nagara_x+nazo_o, - nado_o+nari_o+nanka_o+nanzo_o+nante_o+ni1_x+ni2_x+ni3_x, - nite_x+nimo_x+ne1_x+nee_x+no1_x+no2_o+node_o+noni_o, - nomi_x+nominrz_x+ha_x+hazu_x+ba_x+bakari_x+he_x+hou_x, - hoka_x+hodo_o+made_o+mama_x+mo1_o+mo2_x+motte_x+mono_o, - ya1_x+ya2_x+yara_o+yue_o+yo_x+yori_o+wa_x+wake_x, - wane_x+wayo_x+nn1_x+jya_x+tya_x+nagara2_o+wo_s_x, - ze_x+kke_x+n_si_x+deha_o, - - gotosi_x+saseru_x+zaru_x+zu_x+zunba_x+seru_x+souda_o+youtai_x, - denbun_o+ta_x+tai_x+tagaru_x+taru_x+da1_x+da2_x+daxtu_x, - darou_o+de_x+desi_x+desho_x+desu_x+na2_x+nara_o+nai_x, - nu_x+ne2_x+nn2_x+fuuda_x+besi_x+mai_o+masu_x+masure_x, - mase_x+mitaida_o+you_x+youda_o+rasii_o+rareru_x+reru_x+site_x, - - yougen_x+aru_x+ara_x+ari1_x+ari2_x+ari3_x+are1_x+are2_x, - arou_x+ii_x+itasi_x+itadaku_x+iru_x+eru_x+kakeru_x+kaneru_x, - karazu_x+gatai_x+gatida_x+kudasaru_x+gozai_x+sa1_x+si1_x+siro_x, - jyau_x+jimau_x+sugiru_x+subesi_x+suru_x+sure_x+se_x+seyo_x, - tamau_x+tayu_x+timau_x+dekiru_x+naru_x+nasai_x+nasaru_x+nikui_x, - yasui_x+yoi_x+yaru_x+ttarasii_x - }; - -static u_char masu[] = { - wo_x+ttatte_o+ttara_x+tte1_o+tte2_x+ppanasi_x+ppoi_x+ue_o, - uti_o+oite_x+okeru_x+ori_o+ka1_x+ka2_o+kai_x+kasira_o, - katagata_x+kadouka_o+kana_o+kane_o+kamo_o+kara1_x+kara2_o+ga1_x, - ga2_o+gatera_x+kiri_x+kuseni_x+kurai_x+gurumi_x+kedo_o+koso_x, - koto_o+sa2_x+sae_x+si2_o+sika_x+sura_x+zutu_x+zo_o, - tame_x+dake_x+dano_o+darake_x+tuite_x+tuki_x+tutu_x+tumori_x, - te1_x+te2_x+teru_x+dearou_x+deru_x+to1_x+to2_o+totte_x, - toiu_o+toori_x+toki_x+tokoro_x+tote_x+tohaie_o+tomo_x+do_x, - doori_x+dokoro_o+dokoroka_o+domo_x+na1_x+naa_x+nagara_x+nazo_o, - nado_o+nari_o+nanka_o+nanzo_o+nante_o+ni1_x+ni2_x+ni3_x, - nite_x+nimo_o+ne1_o+nee_o+no1_x+no2_o+node_o+noni_o, - nomi_x+nominrz_x+ha_x+hazu_x+ba_x+bakari_x+he_x+hou_x, - hoka_o+hodo_o+made_o+mama_o+mo1_o+mo2_x+motte_x+mono_x, - ya1_x+ya2_o+yara_o+yue_x+yo_o+yori_o+wa_o+wake_x, - wane_o+wayo_o+nn1_o+jya_x+tya_x+nagara2_x+wo_s_x, - ze_x+kke_x+n_si_x+deha_o, - - gotosi_x+saseru_x+zaru_x+zu_x+zunba_x+seru_x+souda_x+youtai_x, - denbun_x+ta_x+tai_x+tagaru_x+taru_x+da1_x+da2_x+daxtu_x, - darou_x+de_x+desi_x+desho_o+desu_x+na2_x+nara_x+nai_x, - nu_x+ne2_x+nn2_x+fuuda_x+besi_x+mai_o+masu_x+masure_x, - mase_x+mitaida_x+you_o+youda_x+rasii_x+rareru_x+reru_x+site_x, - - yougen_x+aru_x+ara_x+ari1_x+ari2_x+ari3_x+are1_x+are2_x, - arou_x+ii_x+itasi_x+itadaku_x+iru_x+eru_x+kakeru_x+kaneru_x, - karazu_x+gatai_x+gatida_x+kudasaru_x+gozai_x+sa1_x+si1_x+siro_x, - jyau_x+jimau_x+sugiru_x+subesi_x+suru_x+sure_x+se_x+seyo_x, - tamau_x+tayu_x+timau_x+dekiru_x+naru_x+nasai_x+nasaru_x+nikui_x, - yasui_x+yoi_x+yaru_x+ttarasii_x - }; - -static u_char nn2[] = { - wo_x+ttatte_x+ttara_x+tte1_o+tte2_x+ppanasi_x+ppoi_x+ue_x, - uti_x+oite_x+okeru_x+ori_x+ka1_x+ka2_o+kai_x+kasira_x, - katagata_x+kadouka_x+kana_x+kane_x+kamo_x+kara1_x+kara2_o+ga1_x, - ga2_o+gatera_x+kiri_x+kuseni_o+kurai_x+gurumi_x+kedo_o+koso_x, - koto_o+sa2_x+sae_x+si2_o+sika_x+sura_x+zutu_x+zo_o, - tame_x+dake_x+dano_x+darake_x+tuite_x+tuki_x+tutu_x+tumori_o, - te1_x+te2_x+teru_x+dearou_x+deru_x+to1_x+to2_o+totte_x, - toiu_o+toori_x+toki_o+tokoro_x+tote_x+tohaie_o+tomo_x+do_x, - doori_x+dokoro_x+dokoroka_o+domo_x+na1_x+naa_x+nagara_x+nazo_o, - nado_o+nari_x+nanka_x+nanzo_o+nante_o+ni1_x+ni2_x+ni3_x, - nite_x+nimo_x+ne1_o+nee_o+no1_x+no2_o+node_o+noni_o, - nomi_x+nominrz_x+ha_x+hazu_x+ba_x+bakari_o+he_x+hou_x, - hoka_x+hodo_x+made_x+mama_x+mo1_x+mo2_x+motte_x+mono_o, - ya1_x+ya2_x+yara_o+yue_o+yo_o+yori_o+wa_o+wake_o, - wane_o+wayo_x+nn1_x+jya_x+tya_x+nagara2_x+wo_s_x, - ze_x+kke_x+n_si_x+deha_o, - - gotosi_x+saseru_x+zaru_x+zu_x+zunba_x+seru_x+souda_o+youtai_x, - denbun_o+ta_x+tai_x+tagaru_x+taru_x+da1_x+da2_x+daxtu_x, - darou_o+de_o+desi_o+desho_o+desu_x+na2_x+nara_o+nai_x, - nu_x+ne2_x+nn2_x+fuuda_x+besi_x+mai_x+masu_x+masure_x, - mase_x+mitaida_x+you_x+youda_o+rasii_o+rareru_x+reru_x+site_x, - - yougen_x+aru_x+ara_x+ari1_x+ari2_x+ari3_x+are1_x+are2_x, - arou_x+ii_x+itasi_x+itadaku_x+iru_x+eru_x+kakeru_x+kaneru_x, - karazu_x+gatai_x+gatida_x+kudasaru_x+gozai_x+sa1_x+si1_x+siro_x, - jyau_x+jimau_x+sugiru_x+subesi_x+suru_x+sure_x+se_x+seyo_x, - tamau_x+tayu_x+timau_x+dekiru_x+naru_x+nasai_x+nasaru_x+nikui_x, - yasui_x+yoi_x+yaru_x+ttarasii_x - }; - -static u_char rasii[] = { - wo_x+ttatte_x+ttara_x+tte1_o+tte2_x+ppanasi_x+ppoi_x+ue_x, - uti_x+oite_x+okeru_x+ori_x+ka1_x+ka2_o+kai_x+kasira_o, - katagata_x+kadouka_o+kana_o+kane_o+kamo_o+kara1_x+kara2_o+ga1_x, - ga2_o+gatera_x+kiri_x+kuseni_x+kurai_x+gurumi_x+kedo_o+koso_x, - koto_o+sa2_o+sae_x+si2_o+sika_x+sura_x+zutu_x+zo_o, - tame_x+dake_o+dano_x+darake_x+tuite_x+tuki_x+tutu_x+tumori_x, - te1_x+te2_x+teru_x+dearou_x+deru_x+to1_x+to2_o+totte_x, - toiu_o+toori_x+toki_o+tokoro_x+tote_x+tohaie_o+tomo_x+do_x, - doori_x+dokoro_o+dokoroka_o+domo_x+na1_o+naa_o+nagara_x+nazo_o, - nado_o+nari_x+nanka_o+nanzo_o+nante_o+ni1_x+ni2_x+ni3_x, - nite_x+nimo_x+ne1_o+nee_o+no1_x+no2_o+node_o+noni_o, - nomi_x+nominrz_x+ha_x+hazu_x+ba_x+bakari_x+he_x+hou_x, - hoka_x+hodo_x+made_x+mama_x+mo1_x+mo2_x+motte_x+mono_o, - ya1_x+ya2_x+yara_x+yue_x+yo_o+yori_x+wa_o+wake_x, - wane_o+wayo_o+nn1_o+jya_o+tya_x+nagara2_x+wo_s_x, - ze_x+kke_x+n_si_x+deha_o, - - gotosi_x+saseru_x+zaru_x+zu_x+zunba_x+seru_x+souda_o+youtai_x, - denbun_o+ta_x+tai_x+tagaru_x+taru_x+da1_x+da2_x+daxtu_x, - darou_x+de_x+desi_o+desho_o+desu_o+na2_x+nara_o+nai_x, - nu_x+ne2_x+nn2_x+fuuda_x+besi_x+mai_x+masu_x+masure_x, - mase_x+mitaida_x+you_x+youda_x+rasii_x+rareru_x+reru_x+site_x, - - yougen_x+aru_x+ara_x+ari1_x+ari2_x+ari3_x+are1_x+are2_x, - arou_x+ii_x+itasi_x+itadaku_x+iru_x+eru_x+kakeru_x+kaneru_x, - karazu_x+gatai_x+gatida_x+kudasaru_x+gozai_x+sa1_x+si1_x+siro_x, - jyau_x+jimau_x+sugiru_x+subesi_x+suru_x+sure_x+se_x+seyo_x, - tamau_x+tayu_x+timau_x+dekiru_x+naru_x+nasai_x+nasaru_x+nikui_x, - yasui_x+yoi_x+yaru_x+ttarasii_x - }; - -static u_char drentai1[] = { - wo_x+ttatte_x+ttara_x+tte1_x+tte2_x+ppanasi_x+ppoi_x+ue_o, - uti_o+oite_x+okeru_x+ori_x+ka1_x+ka2_x+kai_x+kasira_x, - katagata_x+kadouka_x+kana_x+kane_x+kamo_x+kara1_x+kara2_x+ga1_x, - ga2_x+gatera_x+kiri_o+kuseni_o+kurai_o+gurumi_x+kedo_x+koso_x, - koto_o+sa2_x+sae_x+si2_x+sika_x+sura_x+zutu_x+zo_x, - tame_o+dake_o+dano_o+darake_x+tuite_x+tuki_x+tutu_x+tumori_o, - te1_x+te2_x+teru_x+dearou_x+deru_x+to1_x+to2_x+totte_x, - toiu_x+toori_x+toki_o+tokoro_o+tote_x+tohaie_x+tomo_x+do_x, - doori_x+dokoro_x+dokoroka_x+domo_x+na1_x+naa_x+nagara_x+nazo_x, - nado_x+nari_x+nanka_x+nanzo_x+nante_x+ni1_x+ni2_x+ni3_x, - nite_x+nimo_x+ne1_x+nee_x+no1_x+no2_o+node_o+noni_o, - nomi_o+nominrz_o+ha_x+hazu_o+ba_x+bakari_o+he_x+hou_o, - hoka_o+hodo_o+made_o+mama_o+mo1_x+mo2_x+motte_x+mono_o, - ya1_x+ya2_x+yara_x+yue_o+yo_x+yori_x+wa_x+wake_x, - wane_x+wayo_x+nn1_o+jya_x+tya_x+nagara2_x+wo_s_x, - ze_x+kke_x+n_si_x+deha_x, - - gotosi_x+saseru_x+zaru_x+zu_x+zunba_x+seru_x+souda_x+youtai_x, - denbun_x+ta_x+tai_x+tagaru_x+taru_x+da1_x+da2_x+daxtu_x, - darou_x+de_x+desi_x+desho_x+desu_x+na2_x+nara_x+nai_x, - nu_x+ne2_x+nn2_x+fuuda_x+besi_x+mai_x+masu_x+masure_x, - mase_x+mitaida_x+you_x+youda_o+rasii_x+rareru_x+reru_x+site_x, - - yougen_x+aru_x+ara_x+ari1_x+ari2_x+ari3_x+are1_x+are2_x, - arou_x+ii_x+itasi_x+itadaku_x+iru_x+eru_x+kakeru_x+kaneru_x, - karazu_x+gatai_x+gatida_x+kudasaru_x+gozai_x+sa1_x+si1_x+siro_x, - jyau_x+jimau_x+sugiru_x+subesi_x+suru_x+sure_x+se_x+seyo_x, - tamau_x+tayu_x+timau_x+dekiru_x+naru_x+nasai_x+nasaru_x+nikui_x, - yasui_x+yoi_x+yaru_x+ttarasii_x - }; - -static u_char drentai2[] = { - wo_x+ttatte_x+ttara_x+tte1_x+tte2_x+ppanasi_x+ppoi_x+ue_x, - uti_x+oite_x+okeru_x+ori_x+ka1_x+ka2_x+kai_x+kasira_x, - katagata_x+kadouka_x+kana_x+kane_x+kamo_x+kara1_x+kara2_x+ga1_x, - ga2_x+gatera_x+kiri_x+kuseni_x+kurai_x+gurumi_x+kedo_x+koso_x, - koto_o+sa2_x+sae_x+si2_x+sika_x+sura_x+zutu_x+zo_x, - tame_x+dake_x+dano_x+darake_x+tuite_x+tuki_x+tutu_x+tumori_x, - te1_x+te2_x+teru_x+dearou_x+deru_x+to1_x+to2_x+totte_x, - toiu_x+toori_x+toki_x+tokoro_x+tote_x+tohaie_x+tomo_x+do_x, - doori_x+dokoro_x+dokoroka_o+domo_x+na1_x+naa_x+nagara_x+nazo_x, - nado_x+nari_x+nanka_x+nanzo_x+nante_x+ni1_x+ni2_x+ni3_x, - nite_x+nimo_x+ne1_x+nee_x+no1_x+no2_x+node_x+noni_x, - nomi_x+nominrz_x+ha_x+hazu_x+ba_x+bakari_x+he_x+hou_x, - hoka_x+hodo_x+made_x+mama_x+mo1_x+mo2_x+motte_x+mono_o, - ya1_x+ya2_x+yara_x+yue_o+yo_x+yori_x+wa_x+wake_x, - wane_x+wayo_x+nn1_x+jya_x+tya_x+nagara2_x+wo_s_x, - ze_x+kke_x+n_si_x+deha_x, - - gotosi_x+saseru_x+zaru_x+zu_x+zunba_x+seru_x+souda_x+youtai_x, - denbun_x+ta_x+tai_x+tagaru_x+taru_x+da1_x+da2_x+daxtu_x, - darou_x+de_x+desi_x+desho_x+desu_x+na2_x+nara_x+nai_x, - nu_x+ne2_x+nn2_x+fuuda_x+besi_x+mai_x+masu_x+masure_x, - mase_x+mitaida_x+you_x+youda_x+rasii_x+rareru_x+reru_x+site_x, - - yougen_x+aru_x+ara_x+ari1_x+ari2_x+ari3_x+are1_x+are2_x, - arou_x+ii_x+itasi_x+itadaku_x+iru_x+eru_x+kakeru_x+kaneru_x, - karazu_x+gatai_x+gatida_x+kudasaru_x+gozai_x+sa1_x+si1_x+siro_x, - jyau_x+jimau_x+sugiru_x+subesi_x+suru_x+sure_x+se_x+seyo_x, - tamau_x+tayu_x+timau_x+dekiru_x+naru_x+nasai_x+nasaru_x+nikui_x, - yasui_x+yoi_x+yaru_x+ttarasii_x - }; - -static u_char drentai3[] = { - wo_x+ttatte_x+ttara_x+tte1_x+tte2_x+ppanasi_x+ppoi_x+ue_x, - uti_x+oite_x+okeru_x+ori_x+ka1_x+ka2_x+kai_x+kasira_x, - katagata_x+kadouka_x+kana_x+kane_x+kamo_x+kara1_x+kara2_x+ga1_x, - ga2_x+gatera_x+kiri_x+kuseni_x+kurai_x+gurumi_x+kedo_x+koso_x, - koto_o+sa2_x+sae_x+si2_x+sika_x+sura_x+zutu_x+zo_x, - tame_x+dake_x+dano_x+darake_x+tuite_x+tuki_x+tutu_x+tumori_x, - te1_x+te2_x+teru_x+dearou_x+deru_x+to1_x+to2_x+totte_x, - toiu_x+toori_x+toki_x+tokoro_x+tote_x+tohaie_x+tomo_x+do_x, - doori_x+dokoro_x+dokoroka_o+domo_x+na1_x+naa_x+nagara_x+nazo_x, - nado_x+nari_x+nanka_x+nanzo_x+nante_x+ni1_x+ni2_x+ni3_x, - nite_x+nimo_x+ne1_x+nee_x+no1_x+no2_x+node_x+noni_x, - nomi_x+nominrz_x+ha_x+hazu_x+ba_x+bakari_x+he_x+hou_x, - hoka_x+hodo_x+made_x+mama_x+mo1_x+mo2_x+motte_x+mono_o, - ya1_x+ya2_x+yara_x+yue_o+yo_x+yori_x+wa_x+wake_x, - wane_x+wayo_x+nn1_x+jya_x+tya_x+nagara2_x+wo_s_x, - ze_x+kke_x+n_si_x+deha_x, - - gotosi_x+saseru_x+zaru_x+zu_x+zunba_x+seru_x+souda_x+youtai_x, - denbun_x+ta_x+tai_x+tagaru_x+taru_x+da1_x+da2_x+daxtu_x, - darou_x+de_x+desi_x+desho_x+desu_x+na2_x+nara_x+nai_x, - nu_x+ne2_x+nn2_x+fuuda_x+besi_x+mai_x+masu_x+masure_x, - mase_x+mitaida_x+you_x+youda_x+rasii_x+rareru_x+reru_x+site_x, - - yougen_x+aru_x+ara_x+ari1_x+ari2_x+ari3_x+are1_x+are2_x, - arou_x+ii_x+itasi_x+itadaku_x+iru_x+eru_x+kakeru_x+kaneru_x, - karazu_x+gatai_x+gatida_x+kudasaru_x+gozai_x+sa1_x+si1_x+siro_x, - jyau_x+jimau_x+sugiru_x+subesi_x+suru_x+sure_x+se_x+seyo_x, - tamau_x+tayu_x+timau_x+dekiru_x+naru_x+nasai_x+nasaru_x+nikui_x, - yasui_x+yoi_x+yaru_x+ttarasii_x - }; - -static u_char krentai[] = { - wo_x+ttatte_x+ttara_x+tte1_x+tte2_x+ppanasi_x+ppoi_x+ue_o, - uti_o+oite_x+okeru_x+ori_x+ka1_x+ka2_x+kai_x+kasira_x, - katagata_x+kadouka_x+kana_x+kane_x+kamo_x+kara1_x+kara2_x+ga1_x, - ga2_x+gatera_x+kiri_x+kuseni_x+kurai_x+gurumi_x+kedo_x+koso_x, - koto_o+sa2_x+sae_x+si2_x+sika_x+sura_x+zutu_x+zo_x, - tame_o+dake_x+dano_x+darake_x+tuite_x+tuki_x+tutu_x+tumori_x, - te1_x+te2_x+teru_x+dearou_x+deru_x+to1_x+to2_x+totte_x, - toiu_x+toori_x+toki_x+tokoro_x+tote_x+tohaie_x+tomo_x+do_x, - doori_x+dokoro_x+dokoroka_x+domo_x+na1_x+naa_x+nagara_x+nazo_o, - nado_o+nari_x+nanka_o+nanzo_o+nante_o+ni1_x+ni2_x+ni3_x, - nite_x+nimo_x+ne1_x+nee_x+no1_o+no2_x+node_x+noni_x, - nomi_x+nominrz_x+ha_o+hazu_x+ba_x+bakari_x+he_x+hou_x, - hoka_x+hodo_x+made_x+mama_o+mo1_x+mo2_x+motte_x+mono_o, - ya1_x+ya2_x+yara_x+yue_o+yo_x+yori_x+wa_x+wake_o, - wane_x+wayo_x+nn1_x+jya_x+tya_x+nagara2_x+wo_s_x, - ze_x+kke_x+n_si_x+deha_x, - - gotosi_x+saseru_x+zaru_x+zu_x+zunba_x+seru_x+souda_x+youtai_x, - denbun_x+ta_x+tai_x+tagaru_x+taru_x+da1_x+da2_x+daxtu_x, - darou_x+de_x+desi_x+desho_x+desu_x+na2_x+nara_x+nai_x, - nu_x+ne2_x+nn2_x+fuuda_x+besi_x+mai_x+masu_x+masure_x, - mase_x+mitaida_x+you_x+youda_x+rasii_x+rareru_x+reru_x+site_x, - - yougen_x+aru_x+ara_x+ari1_x+ari2_x+ari3_x+are1_x+are2_x, - arou_x+ii_x+itasi_x+itadaku_x+iru_x+eru_x+kakeru_x+kaneru_x, - karazu_x+gatai_x+gatida_x+kudasaru_x+gozai_x+sa1_x+si1_x+siro_x, - jyau_x+jimau_x+sugiru_x+subesi_x+suru_x+sure_x+se_x+seyo_x, - tamau_x+tayu_x+timau_x+dekiru_x+naru_x+nasai_x+nasaru_x+nikui_x, - yasui_x+yoi_x+yaru_x+ttarasii_x - }; - -static u_char gotoki[] = { - wo_x+ttatte_x+ttara_x+tte1_x+tte2_x+ppanasi_x+ppoi_x+ue_o, - uti_o+oite_x+okeru_x+ori_x+ka1_x+ka2_x+kai_x+kasira_x, - katagata_x+kadouka_x+kana_x+kane_x+kamo_x+kara1_x+kara2_x+ga1_x, - ga2_x+gatera_x+kiri_x+kuseni_x+kurai_x+gurumi_x+kedo_x+koso_x, - koto_o+sa2_x+sae_x+si2_x+sika_x+sura_x+zutu_x+zo_x, - tame_o+dake_x+dano_x+darake_x+tuite_x+tuki_x+tutu_x+tumori_x, - te1_x+te2_x+teru_x+dearou_x+deru_x+to1_x+to2_x+totte_x, - toiu_x+toori_x+toki_x+tokoro_x+tote_x+tohaie_x+tomo_x+do_x, - doori_x+dokoro_x+dokoroka_x+domo_x+na1_x+naa_x+nagara_x+nazo_o, - nado_o+nari_x+nanka_o+nanzo_o+nante_o+ni1_x+ni2_x+ni3_x, - nite_x+nimo_x+ne1_x+nee_x+no1_o+no2_x+node_x+noni_x, - nomi_x+nominrz_x+ha_o+hazu_x+ba_x+bakari_x+he_x+hou_x, - hoka_x+hodo_x+made_x+mama_o+mo1_x+mo2_x+motte_x+mono_o, - ya1_x+ya2_x+yara_x+yue_o+yo_x+yori_x+wa_x+wake_o, - wane_x+wayo_x+nn1_x+jya_x+tya_x+nagara2_x+wo_s_x, - ze_x+kke_x+n_si_x+deha_x, - - gotosi_x+saseru_x+zaru_x+zu_x+zunba_x+seru_x+souda_x+youtai_x, - denbun_x+ta_x+tai_x+tagaru_x+taru_x+da1_x+da2_x+daxtu_x, - darou_x+de_x+desi_x+desho_x+desu_x+na2_x+nara_x+nai_x, - nu_x+ne2_x+nn2_x+fuuda_x+besi_x+mai_x+masu_x+masure_x, - mase_x+mitaida_x+you_x+youda_x+rasii_x+rareru_x+reru_x+site_x, - - yougen_x+aru_x+ara_x+ari1_x+ari2_x+ari3_x+are1_x+are2_x, - arou_x+ii_x+itasi_x+itadaku_x+iru_x+eru_x+kakeru_x+kaneru_x, - karazu_x+gatai_x+gatida_x+kudasaru_x+gozai_x+sa1_x+si1_x+siro_x, - jyau_x+jimau_x+sugiru_x+subesi_x+suru_x+sure_x+se_x+seyo_x, - tamau_x+tayu_x+timau_x+dekiru_x+naru_x+nasai_x+nasaru_x+nikui_x, - yasui_x+yoi_x+yaru_x+ttarasii_x - }; - -static u_char beki[] = { - wo_x+ttatte_x+ttara_x+tte1_x+tte2_x+ppanasi_x+ppoi_x+ue_o, - uti_o+oite_x+okeru_x+ori_x+ka1_o+ka2_x+kai_x+kasira_o, - katagata_x+kadouka_o+kana_o+kane_o+kamo_o+kara1_x+kara2_x+ga1_x, - ga2_x+gatera_x+kiri_x+kuseni_x+kurai_x+gurumi_x+kedo_x+koso_x, - koto_o+sa2_x+sae_x+si2_x+sika_x+sura_x+zutu_x+zo_x, - tame_x+dake_x+dano_o+darake_x+tuite_x+tuki_x+tutu_x+tumori_x, - te1_x+te2_x+teru_x+dearou_x+deru_x+to1_x+to2_x+totte_x, - toiu_x+toori_x+toki_o+tokoro_o+tote_x+tohaie_x+tomo_x+do_x, - doori_x+dokoro_x+dokoroka_x+domo_x+na1_x+naa_x+nagara_x+nazo_x, - nado_x+nari_x+nanka_x+nanzo_x+nante_x+ni1_x+ni2_x+ni3_x, - nite_x+nimo_x+ne1_o+nee_x+no1_x+no2_x+node_x+noni_x, - nomi_x+nominrz_x+ha_x+hazu_x+ba_x+bakari_x+he_x+hou_x, - hoka_x+hodo_x+made_x+mama_x+mo1_x+mo2_x+motte_x+mono_o, - ya1_x+ya2_x+yara_x+yue_x+yo_o+yori_x+wa_x+wake_x, - wane_x+wayo_x+nn1_x+jya_x+tya_x+nagara2_x+wo_s_x, - ze_x+kke_x+n_si_x+deha_x, - - gotosi_x+saseru_x+zaru_x+zu_x+zunba_x+seru_x+souda_x+youtai_x, - denbun_x+ta_x+tai_x+tagaru_x+taru_x+da1_x+da2_o+daxtu_o, - darou_o+de_o+desi_o+desho_o+desu_o+na2_o+nara_o+nai_x, - nu_x+ne2_x+nn2_x+fuuda_x+besi_x+mai_x+masu_x+masure_x, - mase_x+mitaida_x+you_x+youda_x+rasii_x+rareru_x+reru_x+site_x, - - yougen_x+aru_x+ara_x+ari1_x+ari2_x+ari3_x+are1_x+are2_x, - arou_x+ii_x+itasi_x+itadaku_x+iru_x+eru_x+kakeru_x+kaneru_x, - karazu_x+gatai_x+gatida_x+kudasaru_x+gozai_x+sa1_x+si1_x+siro_x, - jyau_x+jimau_x+sugiru_x+subesi_x+suru_x+sure_x+se_x+seyo_x, - tamau_x+tayu_x+timau_x+dekiru_x+naru_x+nasai_x+nasaru_x+nikui_x, - yasui_x+yoi_x+yaru_x+ttarasii_x - }; - -static u_char souna1[] = { - wo_x+ttatte_x+ttara_x+tte1_x+tte2_x+ppanasi_x+ppoi_x+ue_x, - uti_x+oite_x+okeru_x+ori_x+ka1_x+ka2_x+kai_x+kasira_x, - katagata_x+kadouka_x+kana_x+kane_x+kamo_x+kara1_x+kara2_x+ga1_x, - ga2_x+gatera_x+kiri_x+kuseni_x+kurai_x+gurumi_x+kedo_x+koso_x, - koto_x+sa2_x+sae_x+si2_x+sika_x+sura_x+zutu_x+zo_x, - tame_x+dake_x+dano_x+darake_x+tuite_x+tuki_x+tutu_x+tumori_x, - te1_x+te2_x+teru_x+dearou_x+deru_x+to1_x+to2_x+totte_x, - toiu_x+toori_x+toki_x+tokoro_x+tote_x+tohaie_x+tomo_x+do_x, - doori_x+dokoro_x+dokoroka_x+domo_x+na1_x+naa_x+nagara_x+nazo_x, - nado_x+nari_x+nanka_x+nanzo_x+nante_x+ni1_x+ni2_x+ni3_x, - nite_x+nimo_x+ne1_x+nee_x+no1_x+no2_x+node_o+noni_o, - nomi_x+nominrz_x+ha_x+hazu_x+ba_x+bakari_x+he_x+hou_x, - hoka_x+hodo_x+made_x+mama_x+mo1_x+mo2_x+motte_x+mono_x, - ya1_x+ya2_x+yara_x+yue_x+yo_x+yori_x+wa_x+wake_x, - wane_x+wayo_x+nn1_x+jya_x+tya_x+nagara2_x+wo_s_x, - ze_x+kke_x+n_si_x+deha_x, - - gotosi_x+saseru_x+zaru_x+zu_x+zunba_x+seru_x+souda_x+youtai_x, - denbun_x+ta_x+tai_x+tagaru_x+taru_x+da1_x+da2_x+daxtu_x, - darou_x+de_x+desi_x+desho_x+desu_x+na2_x+nara_x+nai_x, - nu_x+ne2_x+nn2_x+fuuda_x+besi_x+mai_x+masu_x+masure_x, - mase_x+mitaida_x+you_x+youda_x+rasii_x+rareru_x+reru_x+site_x, - - yougen_x+aru_x+ara_x+ari1_x+ari2_x+ari3_x+are1_x+are2_x, - arou_x+ii_x+itasi_x+itadaku_x+iru_x+eru_x+kakeru_x+kaneru_x, - karazu_x+gatai_x+gatida_x+kudasaru_x+gozai_x+sa1_x+si1_x+siro_x, - jyau_x+jimau_x+sugiru_x+subesi_x+suru_x+sure_x+se_x+seyo_x, - tamau_x+tayu_x+timau_x+dekiru_x+naru_x+nasai_x+nasaru_x+nikui_x, - yasui_x+yoi_x+yaru_x+ttarasii_x - }; - -static u_char souna2[] = { - wo_x+ttatte_x+ttara_x+tte1_x+tte2_x+ppanasi_x+ppoi_x+ue_o, - uti_o+oite_x+okeru_x+ori_x+ka1_x+ka2_x+kai_x+kasira_x, - katagata_x+kadouka_x+kana_x+kane_x+kamo_x+kara1_x+kara2_x+ga1_x, - ga2_x+gatera_x+kiri_x+kuseni_o+kurai_x+gurumi_x+kedo_x+koso_x, - koto_o+sa2_x+sae_x+si2_x+sika_x+sura_x+zutu_x+zo_x, - tame_x+dake_o+dano_x+darake_x+tuite_x+tuki_x+tutu_x+tumori_x, - te1_x+te2_x+teru_x+dearou_x+deru_x+to1_x+to2_x+totte_x, - toiu_x+toori_x+toki_x+tokoro_x+tote_x+tohaie_x+tomo_x+do_x, - doori_x+dokoro_o+dokoroka_o+domo_x+na1_x+naa_x+nagara_x+nazo_x, - nado_x+nari_x+nanka_x+nanzo_x+nante_x+ni1_x+ni2_x+ni3_x, - nite_x+nimo_x+ne1_x+nee_x+no1_x+no2_o+node_o+noni_o, - nomi_x+nominrz_x+ha_x+hazu_x+ba_x+bakari_x+he_x+hou_x, - hoka_o+hodo_o+made_o+mama_o+mo1_x+mo2_x+motte_x+mono_o, - ya1_x+ya2_x+yara_x+yue_o+yo_x+yori_x+wa_x+wake_x, - wane_x+wayo_x+nn1_o+jya_x+tya_x+nagara2_x+wo_s_x, - ze_x+kke_x+n_si_x+deha_x, - - gotosi_x+saseru_x+zaru_x+zu_x+zunba_x+seru_x+souda_x+youtai_x, - denbun_x+ta_x+tai_x+tagaru_x+taru_x+da1_x+da2_x+daxtu_x, - darou_x+de_x+desi_x+desho_x+desu_x+na2_x+nara_x+nai_x, - nu_x+ne2_x+nn2_x+fuuda_x+besi_x+mai_x+masu_x+masure_x, - mase_x+mitaida_x+you_x+youda_x+rasii_x+rareru_x+reru_x+site_x, - - yougen_x+aru_x+ara_x+ari1_x+ari2_x+ari3_x+are1_x+are2_x, - arou_x+ii_x+itasi_x+itadaku_x+iru_x+eru_x+kakeru_x+kaneru_x, - karazu_x+gatai_x+gatida_x+kudasaru_x+gozai_x+sa1_x+si1_x+siro_x, - jyau_x+jimau_x+sugiru_x+subesi_x+suru_x+sure_x+se_x+seyo_x, - tamau_x+tayu_x+timau_x+dekiru_x+naru_x+nasai_x+nasaru_x+nikui_x, - yasui_x+yoi_x+yaru_x+ttarasii_x - }; - -static u_char na2[] = { - wo_x+ttatte_x+ttara_x+tte1_x+tte2_x+ppanasi_x+ppoi_x+ue_x, - uti_x+oite_x+okeru_x+ori_x+ka1_x+ka2_x+kai_x+kasira_x, - katagata_x+kadouka_x+kana_x+kane_x+kamo_x+kara1_x+kara2_x+ga1_x, - ga2_x+gatera_x+kiri_x+kuseni_x+kurai_x+gurumi_x+kedo_x+koso_x, - koto_x+sa2_x+sae_x+si2_x+sika_x+sura_x+zutu_x+zo_x, - tame_x+dake_x+dano_x+darake_x+tuite_x+tuki_x+tutu_x+tumori_x, - te1_x+te2_x+teru_x+dearou_x+deru_x+to1_x+to2_x+totte_x, - toiu_x+toori_x+toki_x+tokoro_x+tote_x+tohaie_x+tomo_x+do_x, - doori_x+dokoro_x+dokoroka_x+domo_x+na1_x+naa_x+nagara_x+nazo_x, - nado_x+nari_x+nanka_x+nanzo_x+nante_x+ni1_x+ni2_x+ni3_x, - nite_x+nimo_x+ne1_x+nee_x+no1_x+no2_o+node_o+noni_o, - nomi_x+nominrz_x+ha_x+hazu_x+ba_x+bakari_x+he_x+hou_x, - hoka_x+hodo_x+made_x+mama_x+mo1_x+mo2_x+motte_x+mono_x, - ya1_x+ya2_x+yara_x+yue_x+yo_x+yori_x+wa_x+wake_x, - wane_x+wayo_x+nn1_o+jya_x+tya_x+nagara2_x+wo_s_x, - ze_x+kke_x+n_si_x+deha_x, - - gotosi_x+saseru_x+zaru_x+zu_x+zunba_x+seru_x+souda_x+youtai_x, - denbun_x+ta_x+tai_x+tagaru_x+taru_x+da1_x+da2_x+daxtu_x, - darou_x+de_x+desi_x+desho_x+desu_x+na2_x+nara_x+nai_x, - nu_x+ne2_x+nn2_x+fuuda_x+besi_x+mai_x+masu_x+masure_x, - mase_x+mitaida_x+you_x+youda_x+rasii_x+rareru_x+reru_x+site_x, - - yougen_x+aru_x+ara_x+ari1_x+ari2_x+ari3_x+are1_x+are2_x, - arou_x+ii_x+itasi_x+itadaku_x+iru_x+eru_x+kakeru_x+kaneru_x, - karazu_x+gatai_x+gatida_x+kudasaru_x+gozai_x+sa1_x+si1_x+siro_x, - jyau_x+jimau_x+sugiru_x+subesi_x+suru_x+sure_x+se_x+seyo_x, - tamau_x+tayu_x+timau_x+dekiru_x+naru_x+nasai_x+nasaru_x+nikui_x, - yasui_x+yoi_x+yaru_x+ttarasii_x - }; - -static u_char katei1[] = { - wo_x+ttatte_x+ttara_x+tte1_x+tte2_x+ppanasi_x+ppoi_x+ue_x, - uti_x+oite_x+okeru_x+ori_x+ka1_x+ka2_x+kai_x+kasira_x, - katagata_x+kadouka_x+kana_x+kane_x+kamo_x+kara1_x+kara2_x+ga1_x, - ga2_x+gatera_x+kiri_x+kuseni_x+kurai_x+gurumi_x+kedo_x+koso_x, - koto_x+sa2_x+sae_x+si2_x+sika_x+sura_x+zutu_x+zo_x, - tame_x+dake_x+dano_x+darake_x+tuite_x+tuki_x+tutu_x+tumori_x, - te1_x+te2_x+teru_x+dearou_x+deru_x+to1_x+to2_x+totte_x, - toiu_x+toori_x+toki_x+tokoro_x+tote_x+tohaie_x+tomo_x+do_x, - doori_x+dokoro_x+dokoroka_x+domo_x+na1_x+naa_x+nagara_x+nazo_x, - nado_x+nari_x+nanka_x+nanzo_x+nante_x+ni1_x+ni2_x+ni3_x, - nite_x+nimo_x+ne1_x+nee_x+no1_x+no2_x+node_x+noni_x, - nomi_x+nominrz_x+ha_x+hazu_x+ba_o+bakari_x+he_x+hou_x, - hoka_x+hodo_x+made_x+mama_x+mo1_x+mo2_x+motte_x+mono_x, - ya1_x+ya2_x+yara_x+yue_x+yo_x+yori_x+wa_x+wake_x, - wane_x+wayo_x+nn1_x+jya_x+tya_x+nagara2_x+wo_s_x, - ze_x+kke_x+n_si_x+deha_x, - - gotosi_x+saseru_x+zaru_x+zu_x+zunba_x+seru_x+souda_x+youtai_x, - denbun_x+ta_x+tai_x+tagaru_x+taru_x+da1_x+da2_x+daxtu_x, - darou_x+de_x+desi_x+desho_x+desu_x+na2_x+nara_x+nai_x, - nu_x+ne2_x+nn2_x+fuuda_x+besi_x+mai_x+masu_x+masure_x, - mase_x+mitaida_x+you_x+youda_x+rasii_x+rareru_x+reru_x+site_x, - - yougen_x+aru_x+ara_x+ari1_x+ari2_x+ari3_x+are1_x+are2_x, - arou_x+ii_o+itasi_x+itadaku_x+iru_x+eru_x+kakeru_x+kaneru_x, - karazu_x+gatai_x+gatida_x+kudasaru_x+gozai_x+sa1_x+si1_x+siro_x, - jyau_x+jimau_x+sugiru_x+subesi_x+suru_x+sure_x+se_x+seyo_x, - tamau_x+tayu_x+timau_x+dekiru_x+naru_x+nasai_x+nasaru_x+nikui_x, - yasui_x+yoi_x+yaru_x+ttarasii_x - }; - -static u_char katei2[] = { - wo_x+ttatte_x+ttara_x+tte1_x+tte2_x+ppanasi_x+ppoi_x+ue_x, - uti_x+oite_x+okeru_x+ori_x+ka1_x+ka2_x+kai_x+kasira_x, - katagata_x+kadouka_x+kana_x+kane_x+kamo_x+kara1_x+kara2_x+ga1_x, - ga2_x+gatera_x+kiri_x+kuseni_x+kurai_x+gurumi_x+kedo_x+koso_x, - koto_x+sa2_x+sae_x+si2_x+sika_x+sura_x+zutu_x+zo_x, - tame_x+dake_x+dano_x+darake_x+tuite_x+tuki_x+tutu_x+tumori_x, - te1_x+te2_x+teru_x+dearou_x+deru_x+to1_x+to2_x+totte_x, - toiu_x+toori_x+toki_x+tokoro_x+tote_x+tohaie_x+tomo_x+do_o, - doori_x+dokoro_x+dokoroka_x+domo_o+na1_x+naa_x+nagara_x+nazo_x, - nado_x+nari_x+nanka_x+nanzo_x+nante_x+ni1_x+ni2_x+ni3_x, - nite_x+nimo_x+ne1_x+nee_x+no1_x+no2_x+node_x+noni_x, - nomi_x+nominrz_x+ha_x+hazu_x+ba_o+bakari_x+he_x+hou_x, - hoka_x+hodo_x+made_x+mama_x+mo1_x+mo2_x+motte_x+mono_x, - ya1_x+ya2_x+yara_x+yue_x+yo_x+yori_x+wa_x+wake_x, - wane_x+wayo_x+nn1_x+jya_x+tya_x+nagara2_x+wo_s_x, - ze_x+kke_x+n_si_x+deha_x, - - gotosi_x+saseru_x+zaru_x+zu_x+zunba_x+seru_x+souda_x+youtai_x, - denbun_x+ta_x+tai_x+tagaru_x+taru_x+da1_x+da2_x+daxtu_x, - darou_x+de_x+desi_x+desho_x+desu_x+na2_x+nara_x+nai_x, - nu_x+ne2_x+nn2_x+fuuda_x+besi_x+mai_x+masu_x+masure_x, - mase_x+mitaida_x+you_x+youda_x+rasii_x+rareru_x+reru_x+site_x, - - yougen_x+aru_x+ara_x+ari1_x+ari2_x+ari3_x+are1_x+are2_x, - arou_x+ii_x+itasi_x+itadaku_x+iru_x+eru_x+kakeru_x+kaneru_x, - karazu_x+gatai_x+gatida_x+kudasaru_x+gozai_x+sa1_x+si1_x+siro_x, - jyau_x+jimau_x+sugiru_x+subesi_x+suru_x+sure_x+se_x+seyo_x, - tamau_x+tayu_x+timau_x+dekiru_x+naru_x+nasai_x+nasaru_x+nikui_x, - yasui_x+yoi_x+yaru_x+ttarasii_x - }; - -static u_char katei3[] = { - wo_x+ttatte_x+ttara_x+tte1_x+tte2_x+ppanasi_x+ppoi_x+ue_x, - uti_x+oite_x+okeru_x+ori_x+ka1_x+ka2_x+kai_x+kasira_x, - katagata_x+kadouka_x+kana_x+kane_x+kamo_x+kara1_x+kara2_x+ga1_x, - ga2_x+gatera_x+kiri_x+kuseni_x+kurai_x+gurumi_x+kedo_x+koso_x, - koto_x+sa2_x+sae_x+si2_x+sika_x+sura_x+zutu_x+zo_x, - tame_x+dake_x+dano_x+darake_x+tuite_x+tuki_x+tutu_x+tumori_x, - te1_x+te2_x+teru_x+dearou_x+deru_x+to1_x+to2_x+totte_x, - toiu_x+toori_x+toki_x+tokoro_x+tote_x+tohaie_x+tomo_x+do_x, - doori_x+dokoro_x+dokoroka_x+domo_x+na1_x+naa_x+nagara_x+nazo_x, - nado_x+nari_x+nanka_x+nanzo_x+nante_x+ni1_x+ni2_x+ni3_x, - nite_x+nimo_x+ne1_x+nee_x+no1_x+no2_x+node_x+noni_x, - nomi_x+nominrz_x+ha_x+hazu_x+ba_o+bakari_x+he_x+hou_x, - hoka_x+hodo_x+made_x+mama_x+mo1_x+mo2_x+motte_x+mono_x, - ya1_x+ya2_x+yara_x+yue_x+yo_x+yori_x+wa_x+wake_x, - wane_x+wayo_x+nn1_x+jya_x+tya_x+nagara2_x+wo_s_x, - ze_x+kke_x+n_si_x+deha_x, - - gotosi_x+saseru_x+zaru_x+zu_x+zunba_x+seru_x+souda_x+youtai_x, - denbun_x+ta_x+tai_x+tagaru_x+taru_x+da1_x+da2_x+daxtu_x, - darou_x+de_x+desi_x+desho_x+desu_x+na2_x+nara_x+nai_x, - nu_x+ne2_x+nn2_x+fuuda_x+besi_x+mai_x+masu_x+masure_x, - mase_x+mitaida_x+you_x+youda_x+rasii_x+rareru_x+reru_x+site_x, - - yougen_x+aru_x+ara_x+ari1_x+ari2_x+ari3_x+are1_x+are2_x, - arou_x+ii_x+itasi_x+itadaku_x+iru_x+eru_x+kakeru_x+kaneru_x, - karazu_x+gatai_x+gatida_x+kudasaru_x+gozai_x+sa1_x+si1_x+siro_x, - jyau_x+jimau_x+sugiru_x+subesi_x+suru_x+sure_x+se_x+seyo_x, - tamau_x+tayu_x+timau_x+dekiru_x+naru_x+nasai_x+nasaru_x+nikui_x, - yasui_x+yoi_x+yaru_x+ttarasii_x - }; - -static u_char kamei[] = { - wo_x+ttatte_o+ttara_o+tte1_o+tte2_x+ppanasi_x+ppoi_x+ue_x, - uti_x+oite_x+okeru_x+ori_x+ka1_x+ka2_x+kai_x+kasira_x, - katagata_x+kadouka_x+kana_x+kane_x+kamo_x+kara1_x+kara2_x+ga1_x, - ga2_x+gatera_x+kiri_x+kuseni_x+kurai_x+gurumi_x+kedo_x+koso_x, - koto_x+sa2_x+sae_x+si2_x+sika_x+sura_x+zutu_x+zo_x, - tame_x+dake_x+dano_o+darake_x+tuite_x+tuki_x+tutu_x+tumori_x, - te1_x+te2_x+teru_x+dearou_x+deru_x+to1_x+to2_o+totte_x, - toiu_o+toori_x+toki_x+tokoro_x+tote_o+tohaie_o+tomo_x+do_o, - doori_x+dokoro_x+dokoroka_x+domo_o+na1_x+naa_x+nagara_x+nazo_o, - nado_o+nari_x+nanka_o+nanzo_o+nante_o+ni1_x+ni2_x+ni3_x, - nite_x+nimo_x+ne1_x+nee_x+no1_x+no2_x+node_x+noni_x, - nomi_x+nominrz_x+ha_x+hazu_x+ba_o+bakari_x+he_x+hou_x, - hoka_x+hodo_x+made_x+mama_x+mo1_x+mo2_x+motte_x+mono_x, - ya1_x+ya2_x+yara_x+yue_x+yo_o+yori_x+wa_x+wake_x, - wane_x+wayo_x+nn1_x+jya_x+tya_x+nagara2_x+wo_s_x, - ze_x+kke_x+n_si_x+deha_o, - - gotosi_x+saseru_x+zaru_x+zu_x+zunba_x+seru_x+souda_x+youtai_x, - denbun_x+ta_x+tai_x+tagaru_x+taru_x+da1_x+da2_x+daxtu_x, - darou_x+de_x+desi_x+desho_x+desu_x+na2_x+nara_x+nai_x, - nu_x+ne2_x+nn2_x+fuuda_x+besi_x+mai_x+masu_x+masure_x, - mase_x+mitaida_x+you_x+youda_x+rasii_x+rareru_x+reru_x+site_x, - - yougen_x+aru_x+ara_x+ari1_x+ari2_x+ari3_x+are1_x+are2_x, - arou_x+ii_x+itasi_x+itadaku_x+iru_x+eru_x+kakeru_x+kaneru_x, - karazu_x+gatai_x+gatida_x+kudasaru_x+gozai_x+sa1_x+si1_x+siro_x, - jyau_x+jimau_x+sugiru_x+subesi_x+suru_x+sure_x+se_x+seyo_x, - tamau_x+tayu_x+timau_x+dekiru_x+naru_x+nasai_x+nasaru_x+nikui_x, - yasui_x+yoi_x+yaru_x+ttarasii_x - }; - -static u_char ike[] = { - wo_x+ttatte_o+ttara_o+tte1_o+tte2_x+ppanasi_x+ppoi_x+ue_x, - uti_x+oite_x+okeru_x+ori_x+ka1_x+ka2_x+kai_x+kasira_x, - katagata_x+kadouka_x+kana_x+kane_x+kamo_x+kara1_x+kara2_x+ga1_x, - ga2_x+gatera_x+kiri_x+kuseni_x+kurai_x+gurumi_x+kedo_x+koso_x, - koto_x+sa2_x+sae_x+si2_x+sika_x+sura_x+zutu_x+zo_x, - tame_x+dake_x+dano_o+darake_x+tuite_x+tuki_x+tutu_x+tumori_x, - te1_x+te2_x+teru_x+dearou_x+deru_x+to1_x+to2_o+totte_x, - toiu_o+toori_x+toki_x+tokoro_x+tote_o+tohaie_o+tomo_x+do_o, - doori_x+dokoro_x+dokoroka_x+domo_o+na1_x+naa_x+nagara_x+nazo_o, - nado_o+nari_x+nanka_o+nanzo_o+nante_o+ni1_x+ni2_x+ni3_x, - nite_x+nimo_x+ne1_x+nee_x+no1_x+no2_x+node_x+noni_x, - nomi_x+nominrz_x+ha_x+hazu_x+ba_o+bakari_x+he_x+hou_x, - hoka_x+hodo_x+made_x+mama_x+mo1_x+mo2_x+motte_x+mono_x, - ya1_x+ya2_x+yara_x+yue_x+yo_o+yori_x+wa_x+wake_x, - wane_x+wayo_x+nn1_x+jya_x+tya_x+nagara2_x+wo_s_x, - ze_x+kke_x+n_si_x+deha_o, - - gotosi_x+saseru_x+zaru_x+zu_o+zunba_o+seru_x+souda_x+youtai_x, - denbun_x+ta_x+tai_x+tagaru_x+taru_x+da1_x+da2_x+daxtu_x, - darou_x+de_x+desi_x+desho_x+desu_x+na2_x+nara_x+nai_o, - nu_o+ne2_o+nn2_o+fuuda_x+besi_x+mai_x+masu_x+masure_x, - mase_x+mitaida_x+you_x+youda_x+rasii_x+rareru_x+reru_x+site_x, - - yougen_x+aru_x+ara_x+ari1_x+ari2_x+ari3_x+are1_x+are2_x, - arou_x+ii_x+itasi_x+itadaku_x+iru_x+eru_x+kakeru_x+kaneru_x, - karazu_x+gatai_x+gatida_x+kudasaru_x+gozai_x+sa1_x+si1_x+siro_x, - jyau_x+jimau_x+sugiru_x+subesi_x+suru_x+sure_x+se_x+seyo_x, - tamau_x+tayu_x+timau_x+dekiru_x+naru_x+nasai_x+nasaru_x+nikui_x, - yasui_x+yoi_x+yaru_x+ttarasii_x - }; - -static u_char kure[] = { - wo_x+ttatte_o+ttara_x+tte1_o+tte2_x+ppanasi_x+ppoi_x+ue_x, - uti_x+oite_x+okeru_x+ori_x+ka1_x+ka2_x+kai_x+kasira_x, - katagata_x+kadouka_x+kana_x+kane_x+kamo_x+kara1_x+kara2_x+ga1_x, - ga2_x+gatera_x+kiri_x+kuseni_x+kurai_x+gurumi_x+kedo_x+koso_x, - koto_x+sa2_x+sae_o+si2_x+sika_x+sura_o+zutu_x+zo_x, - tame_x+dake_x+dano_x+darake_x+tuite_x+tuki_x+tutu_x+tumori_x, - te1_x+te2_o+teru_o+dearou_x+deru_x+to1_x+to2_o+totte_x, - toiu_o+toori_x+toki_x+tokoro_x+tote_x+tohaie_o+tomo_x+do_o, - doori_x+dokoro_x+dokoroka_x+domo_o+na1_x+naa_x+nagara_x+nazo_o, - nado_o+nari_x+nanka_o+nanzo_o+nante_o+ni1_x+ni2_x+ni3_x, - nite_x+nimo_x+ne1_x+nee_x+no1_x+no2_x+node_x+noni_x, - nomi_x+nominrz_x+ha_o+hazu_x+ba_o+bakari_x+he_x+hou_x, - hoka_x+hodo_x+made_x+mama_x+mo1_x+mo2_o+motte_x+mono_x, - ya1_x+ya2_x+yara_x+yue_x+yo_o+yori_x+wa_x+wake_x, - wane_x+wayo_x+nn1_x+jya_x+tya_o+nagara2_o+wo_s_x, - ze_x+kke_x+n_si_x+deha_o, - - gotosi_x+saseru_x+zaru_o+zu_o+zunba_o+seru_x+souda_o+youtai_o, - denbun_x+ta_o+tai_x+tagaru_x+taru_x+da1_x+da2_x+daxtu_x, - darou_x+de_x+desi_x+desho_x+desu_x+na2_x+nara_x+nai_o, - nu_o+ne2_o+nn2_x+fuuda_x+besi_x+mai_o+masu_o+masure_o, - mase_x+mitaida_x+you_x+youda_x+rasii_x+rareru_x+reru_x+site_x, - - yougen_x+aru_x+ara_x+ari1_x+ari2_x+ari3_x+are1_x+are2_x, - arou_x+ii_x+itasi_x+itadaku_x+iru_x+eru_x+kakeru_x+kaneru_x, - karazu_x+gatai_x+gatida_x+kudasaru_x+gozai_x+sa1_x+si1_x+siro_x, - jyau_x+jimau_x+sugiru_x+subesi_x+suru_x+sure_x+se_x+seyo_x, - tamau_x+tayu_o+timau_o+dekiru_x+naru_x+nasai_x+nasaru_x+nikui_x, - yasui_x+yoi_x+yaru_x+ttarasii_x - }; - -static u_char meirei1[] = { - wo_x+ttatte_o+ttara_o+tte1_o+tte2_x+ppanasi_x+ppoi_x+ue_x, - uti_x+oite_x+okeru_x+ori_x+ka1_x+ka2_x+kai_x+kasira_x, - katagata_x+kadouka_x+kana_x+kane_x+kamo_x+kara1_x+kara2_x+ga1_x, - ga2_x+gatera_x+kiri_x+kuseni_x+kurai_x+gurumi_x+kedo_x+koso_x, - koto_x+sa2_x+sae_x+si2_x+sika_x+sura_x+zutu_x+zo_x, - tame_x+dake_x+dano_o+darake_x+tuite_x+tuki_x+tutu_x+tumori_x, - te1_x+te2_x+teru_x+dearou_x+deru_x+to1_x+to2_o+totte_x, - toiu_o+toori_x+toki_x+tokoro_x+tote_o+tohaie_o+tomo_x+do_x, - doori_x+dokoro_x+dokoroka_x+domo_x+na1_x+naa_x+nagara_x+nazo_o, - nado_o+nari_x+nanka_o+nanzo_o+nante_o+ni1_x+ni2_x+ni3_x, - nite_x+nimo_x+ne1_x+nee_x+no1_x+no2_x+node_x+noni_x, - nomi_x+nominrz_x+ha_x+hazu_x+ba_x+bakari_x+he_x+hou_x, - hoka_x+hodo_x+made_x+mama_x+mo1_x+mo2_x+motte_x+mono_x, - ya1_x+ya2_x+yara_x+yue_x+yo_o+yori_x+wa_x+wake_x, - wane_x+wayo_x+nn1_x+jya_x+tya_x+nagara2_x+wo_s_x, - ze_x+kke_x+n_si_x+deha_o, - - gotosi_x+saseru_x+zaru_x+zu_x+zunba_x+seru_x+souda_x+youtai_x, - denbun_x+ta_x+tai_x+tagaru_x+taru_x+da1_x+da2_x+daxtu_x, - darou_x+de_x+desi_x+desho_x+desu_x+na2_x+nara_x+nai_x, - nu_x+ne2_x+nn2_x+fuuda_x+besi_x+mai_x+masu_x+masure_x, - mase_x+mitaida_x+you_x+youda_x+rasii_x+rareru_x+reru_x+site_x, - - yougen_x+aru_x+ara_x+ari1_x+ari2_x+ari3_x+are1_x+are2_x, - arou_x+ii_x+itasi_x+itadaku_x+iru_x+eru_x+kakeru_x+kaneru_x, - karazu_x+gatai_x+gatida_x+kudasaru_x+gozai_x+sa1_x+si1_x+siro_x, - jyau_x+jimau_x+sugiru_x+subesi_x+suru_x+sure_x+se_x+seyo_x, - tamau_x+tayu_x+timau_x+dekiru_x+naru_x+nasai_x+nasaru_x+nikui_x, - yasui_x+yoi_x+yaru_x+ttarasii_x - }; - -static u_char meirei2[] = { - wo_x+ttatte_o+ttara_o+tte1_o+tte2_x+ppanasi_x+ppoi_x+ue_x, - uti_x+oite_x+okeru_x+ori_x+ka1_x+ka2_x+kai_x+kasira_x, - katagata_x+kadouka_x+kana_x+kane_x+kamo_x+kara1_x+kara2_x+ga1_x, - ga2_x+gatera_x+kiri_x+kuseni_x+kurai_x+gurumi_x+kedo_x+koso_x, - koto_x+sa2_x+sae_x+si2_x+sika_x+sura_x+zutu_x+zo_x, - tame_x+dake_x+dano_o+darake_x+tuite_x+tuki_x+tutu_x+tumori_x, - te1_x+te2_x+teru_x+dearou_x+deru_x+to1_x+to2_o+totte_x, - toiu_o+toori_x+toki_x+tokoro_x+tote_o+tohaie_o+tomo_x+do_x, - doori_x+dokoro_x+dokoroka_x+domo_x+na1_x+naa_x+nagara_x+nazo_o, - nado_o+nari_x+nanka_o+nanzo_o+nante_o+ni1_x+ni2_x+ni3_x, - nite_x+nimo_x+ne1_x+nee_x+no1_x+no2_x+node_x+noni_x, - nomi_x+nominrz_x+ha_x+hazu_x+ba_x+bakari_x+he_x+hou_x, - hoka_x+hodo_x+made_x+mama_x+mo1_x+mo2_x+motte_x+mono_x, - ya1_x+ya2_x+yara_x+yue_x+yo_x+yori_x+wa_x+wake_x, - wane_x+wayo_x+nn1_x+jya_x+tya_x+nagara2_x+wo_s_x, - ze_x+kke_x+n_si_x+deha_o, - - gotosi_x+saseru_x+zaru_x+zu_x+zunba_x+seru_x+souda_x+youtai_x, - denbun_x+ta_x+tai_x+tagaru_x+taru_x+da1_x+da2_x+daxtu_x, - darou_x+de_x+desi_x+desho_x+desu_x+na2_x+nara_x+nai_x, - nu_x+ne2_x+nn2_x+fuuda_x+besi_x+mai_x+masu_x+masure_x, - mase_x+mitaida_x+you_x+youda_x+rasii_x+rareru_x+reru_x+site_x, - - yougen_x+aru_x+ara_x+ari1_x+ari2_x+ari3_x+are1_x+are2_x, - arou_x+ii_x+itasi_x+itadaku_x+iru_x+eru_x+kakeru_x+kaneru_x, - karazu_x+gatai_x+gatida_x+kudasaru_x+gozai_x+sa1_x+si1_x+siro_x, - jyau_x+jimau_x+sugiru_x+subesi_x+suru_x+sure_x+se_x+seyo_x, - tamau_x+tayu_x+timau_x+dekiru_x+naru_x+nasai_x+nasaru_x+nikui_x, - yasui_x+yoi_x+yaru_x+ttarasii_x - }; - -static u_char dgokan[] = { - wo_x+ttatte_x+ttara_x+tte1_o+tte2_x+ppanasi_x+ppoi_o+ue_x, - uti_x+oite_x+okeru_x+ori_x+ka1_o+ka2_x+kai_x+kasira_o, - katagata_x+kadouka_o+kana_o+kane_o+kamo_o+kara1_x+kara2_x+ga1_x, - ga2_x+gatera_x+kiri_x+kuseni_x+kurai_x+gurumi_x+kedo_x+koso_x, - koto_x+sa2_o+sae_x+si2_x+sika_x+sura_x+zutu_x+zo_x, - tame_x+dake_x+dano_o+darake_x+tuite_x+tuki_x+tutu_x+tumori_x, - te1_x+te2_x+teru_x+dearou_x+deru_x+to1_o+to2_x+totte_x, - toiu_o+toori_x+toki_x+tokoro_x+tote_o+tohaie_o+tomo_x+do_x, - doori_x+dokoro_x+dokoroka_o+domo_x+na1_x+naa_x+nagara_x+nazo_o, - nado_o+nari_x+nanka_o+nanzo_o+nante_o+ni1_x+ni2_x+ni3_x, - nite_x+nimo_x+ne1_o+nee_o+no1_x+no2_x+node_x+noni_x, - nomi_x+nominrz_x+ha_x+hazu_x+ba_x+bakari_x+he_x+hou_x, - hoka_x+hodo_x+made_x+mama_x+mo1_x+mo2_x+motte_x+mono_x, - ya1_x+ya2_x+yara_o+yue_x+yo_o+yori_x+wa_x+wake_x, - wane_x+wayo_x+nn1_x+jya_o+tya_x+nagara2_o+wo_s_x, - ze_x+kke_x+n_si_x+deha_x, - - gotosi_x+saseru_x+zaru_x+zu_x+zunba_x+seru_x+souda_o+youtai_o, - denbun_x+ta_x+tai_x+tagaru_x+taru_x+da1_x+da2_x+daxtu_x, - darou_x+de_x+desi_o+desho_o+desu_o+na2_x+nara_x+nai_x, - nu_x+ne2_x+nn2_x+fuuda_x+besi_x+mai_x+masu_x+masure_x, - mase_x+mitaida_o+you_x+youda_x+rasii_o+rareru_x+reru_x+site_x, - - yougen_x+aru_x+ara_x+ari1_x+ari2_x+ari3_x+are1_x+are2_x, - arou_x+ii_x+itasi_x+itadaku_x+iru_x+eru_x+kakeru_x+kaneru_x, - karazu_x+gatai_x+gatida_x+kudasaru_x+gozai_x+sa1_x+si1_x+siro_x, - jyau_x+jimau_x+sugiru_o+subesi_x+suru_x+sure_x+se_x+seyo_x, - tamau_x+tayu_x+timau_x+dekiru_x+naru_x+nasai_x+nasaru_x+nikui_x, - yasui_x+yoi_x+yaru_x+ttarasii_o - }; - -static u_char kgokan[] = { - wo_x+ttatte_x+ttara_x+tte1_x+tte2_x+ppanasi_x+ppoi_x+ue_x, - uti_x+oite_x+okeru_x+ori_x+ka1_x+ka2_x+kai_x+kasira_x, - katagata_x+kadouka_x+kana_x+kane_x+kamo_x+kara1_x+kara2_x+ga1_x, - ga2_x+gatera_x+kiri_x+kuseni_x+kurai_x+gurumi_x+kedo_x+koso_x, - koto_x+sa2_x+sae_x+si2_x+sika_x+sura_x+zutu_x+zo_x, - tame_x+dake_x+dano_x+darake_x+tuite_x+tuki_x+tutu_x+tumori_x, - te1_x+te2_x+teru_x+dearou_x+deru_x+to1_x+to2_x+totte_x, - toiu_x+toori_x+toki_x+tokoro_x+tote_x+tohaie_x+tomo_x+do_x, - doori_x+dokoro_x+dokoroka_x+domo_x+na1_x+naa_x+nagara_x+nazo_x, - nado_x+nari_x+nanka_x+nanzo_x+nante_x+ni1_x+ni2_x+ni3_x, - nite_x+nimo_x+ne1_x+nee_x+no1_x+no2_x+node_x+noni_x, - nomi_x+nominrz_x+ha_x+hazu_x+ba_x+bakari_x+he_x+hou_x, - hoka_x+hodo_x+made_x+mama_x+mo1_x+mo2_x+motte_x+mono_x, - ya1_x+ya2_x+yara_x+yue_x+yo_x+yori_x+wa_x+wake_x, - wane_x+wayo_x+nn1_x+jya_x+tya_x+nagara2_x+wo_s_x, - ze_x+kke_x+n_si_x+deha_x, - - gotosi_x+saseru_x+zaru_x+zu_x+zunba_x+seru_x+souda_o+youtai_o, - denbun_x+ta_x+tai_x+tagaru_x+taru_x+da1_x+da2_x+daxtu_x, - darou_x+de_x+desi_x+desho_x+desu_x+na2_x+nara_x+nai_x, - nu_x+ne2_x+nn2_x+fuuda_x+besi_x+mai_x+masu_x+masure_x, - mase_x+mitaida_x+you_x+youda_x+rasii_x+rareru_x+reru_x+site_x, - - yougen_x+aru_x+ara_x+ari1_x+ari2_x+ari3_x+are1_x+are2_x, - arou_x+ii_x+itasi_x+itadaku_x+iru_x+eru_x+kakeru_x+kaneru_x, - karazu_o+gatai_x+gatida_x+kudasaru_x+gozai_x+sa1_x+si1_x+siro_x, - jyau_x+jimau_x+sugiru_o+subesi_x+suru_x+sure_x+se_x+seyo_x, - tamau_x+tayu_x+timau_x+dekiru_x+naru_x+nasai_x+nasaru_x+nikui_x, - yasui_x+yoi_x+yaru_x+ttarasii_o - }; - -static u_char sgokan[] = { - wo_x+ttatte_x+ttara_x+tte1_x+tte2_x+ppanasi_x+ppoi_x+ue_x, - uti_x+oite_x+okeru_x+ori_x+ka1_x+ka2_x+kai_x+kasira_x, - katagata_x+kadouka_x+kana_x+kane_x+kamo_x+kara1_x+kara2_x+ga1_x, - ga2_x+gatera_x+kiri_x+kuseni_x+kurai_x+gurumi_x+kedo_x+koso_x, - koto_x+sa2_x+sae_x+si2_x+sika_x+sura_x+zutu_x+zo_x, - tame_x+dake_x+dano_x+darake_x+tuite_x+tuki_x+tutu_x+tumori_x, - te1_x+te2_x+teru_x+dearou_x+deru_x+to1_x+to2_x+totte_x, - toiu_x+toori_x+toki_x+tokoro_x+tote_x+tohaie_x+tomo_x+do_x, - doori_x+dokoro_x+dokoroka_x+domo_x+na1_x+naa_x+nagara_x+nazo_x, - nado_x+nari_x+nanka_x+nanzo_x+nante_x+ni1_x+ni2_x+ni3_x, - nite_x+nimo_x+ne1_x+nee_x+no1_x+no2_x+node_x+noni_x, - nomi_x+nominrz_x+ha_x+hazu_x+ba_x+bakari_x+he_x+hou_x, - hoka_x+hodo_x+made_x+mama_x+mo1_x+mo2_x+motte_x+mono_x, - ya1_x+ya2_x+yara_x+yue_x+yo_x+yori_x+wa_x+wake_x, - wane_x+wayo_x+nn1_x+jya_x+tya_x+nagara2_x+wo_s_x, - ze_x+kke_x+n_si_x+deha_x, - - gotosi_x+saseru_x+zaru_x+zu_x+zunba_x+seru_x+souda_x+youtai_x, - denbun_x+ta_x+tai_x+tagaru_x+taru_x+da1_x+da2_x+daxtu_x, - darou_x+de_x+desi_x+desho_x+desu_x+na2_x+nara_x+nai_x, - nu_x+ne2_x+nn2_x+fuuda_x+besi_x+mai_x+masu_x+masure_x, - mase_x+mitaida_x+you_x+youda_x+rasii_x+rareru_x+reru_x+site_x, - - yougen_x+aru_x+ara_x+ari1_x+ari2_x+ari3_x+are1_x+are2_x, - arou_x+ii_x+itasi_x+itadaku_x+iru_x+eru_x+kakeru_x+kaneru_x, - karazu_x+gatai_x+gatida_x+kudasaru_x+gozai_x+sa1_x+si1_x+siro_x, - jyau_x+jimau_x+sugiru_x+subesi_o+suru_x+sure_x+se_x+seyo_x, - tamau_x+tayu_x+timau_x+dekiru_x+naru_x+nasai_x+nasaru_x+nikui_x, - yasui_x+yoi_x+yaru_x+ttarasii_x - }; - -static u_char gati[] = { - wo_x+ttatte_x+ttara_x+tte1_x+tte2_x+ppanasi_x+ppoi_x+ue_x, - uti_x+oite_x+okeru_x+ori_x+ka1_x+ka2_x+kai_x+kasira_o, - katagata_x+kadouka_x+kana_o+kane_o+kamo_o+kara1_x+kara2_x+ga1_x, - ga2_x+gatera_x+kiri_x+kuseni_x+kurai_x+gurumi_x+kedo_x+koso_x, - koto_x+sa2_x+sae_x+si2_x+sika_x+sura_x+zutu_x+zo_x, - tame_x+dake_x+dano_o+darake_x+tuite_x+tuki_x+tutu_x+tumori_x, - te1_x+te2_x+teru_x+dearou_x+deru_x+to1_x+to2_x+totte_x, - toiu_x+toori_x+toki_x+tokoro_x+tote_x+tohaie_x+tomo_x+do_x, - doori_x+dokoro_x+dokoroka_x+domo_x+na1_x+naa_x+nagara_x+nazo_x, - nado_x+nari_x+nanka_x+nanzo_x+nante_x+ni1_x+ni2_x+ni3_x, - nite_x+nimo_x+ne1_o+nee_o+no1_x+no2_x+node_x+noni_x, - nomi_x+nominrz_x+ha_x+hazu_x+ba_x+bakari_x+he_x+hou_x, - hoka_x+hodo_x+made_x+mama_x+mo1_x+mo2_x+motte_x+mono_x, - ya1_x+ya2_x+yara_x+yue_x+yo_x+yori_x+wa_x+wake_x, - wane_x+wayo_x+nn1_x+jya_x+tya_x+nagara2_x+wo_s_x, - ze_x+kke_x+n_si_x+deha_x, - - gotosi_x+saseru_x+zaru_x+zu_x+zunba_x+seru_x+souda_x+youtai_x, - denbun_x+ta_x+tai_x+tagaru_x+taru_x+da1_x+da2_x+daxtu_x, - darou_x+de_x+desi_o+desho_o+desu_o+na2_x+nara_x+nai_x, - nu_x+ne2_x+nn2_x+fuuda_x+besi_x+mai_x+masu_x+masure_x, - mase_x+mitaida_x+you_x+youda_x+rasii_o+rareru_x+reru_x+site_x, - - yougen_x+aru_x+ara_x+ari1_x+ari2_x+ari3_x+are1_x+are2_x, - arou_x+ii_x+itasi_x+itadaku_x+iru_x+eru_x+kakeru_x+kaneru_x, - karazu_x+gatai_x+gatida_x+kudasaru_x+gozai_x+sa1_x+si1_x+siro_x, - jyau_x+jimau_x+sugiru_x+subesi_x+suru_x+sure_x+se_x+seyo_x, - tamau_x+tayu_x+timau_x+dekiru_x+naru_x+nasai_x+nasaru_x+nikui_x, - yasui_x+yoi_x+yaru_x+ttarasii_x - }; - -static u_char jya[] = { - wo_x+ttatte_x+ttara_x+tte1_x+tte2_x+ppanasi_x+ppoi_x+ue_x, - uti_x+oite_x+okeru_x+ori_x+ka1_x+ka2_x+kai_x+kasira_x, - katagata_x+kadouka_x+kana_x+kane_x+kamo_x+kara1_x+kara2_x+ga1_x, - ga2_x+gatera_x+kiri_x+kuseni_x+kurai_x+gurumi_x+kedo_x+koso_x, - koto_x+sa2_x+sae_x+si2_x+sika_x+sura_x+zutu_x+zo_x, - tame_x+dake_x+dano_x+darake_x+tuite_x+tuki_x+tutu_x+tumori_x, - te1_x+te2_x+teru_x+dearou_x+deru_x+to1_x+to2_x+totte_x, - toiu_x+toori_x+toki_x+tokoro_x+tote_x+tohaie_x+tomo_x+do_x, - doori_x+dokoro_x+dokoroka_x+domo_x+na1_x+naa_x+nagara_x+nazo_x, - nado_x+nari_x+nanka_x+nanzo_x+nante_x+ni1_x+ni2_x+ni3_x, - nite_x+nimo_x+ne1_o+nee_o+no1_x+no2_x+node_x+noni_x, - nomi_x+nominrz_x+ha_x+hazu_x+ba_x+bakari_x+he_x+hou_x, - hoka_x+hodo_x+made_x+mama_x+mo1_x+mo2_x+motte_x+mono_x, - ya1_x+ya2_x+yara_x+yue_x+yo_x+yori_x+wa_x+wake_x, - wane_x+wayo_x+nn1_x+jya_x+tya_x+nagara2_x+wo_s_x, - ze_x+kke_x+n_si_x+deha_x, - - gotosi_x+saseru_x+zaru_x+zu_x+zunba_x+seru_x+souda_x+youtai_x, - denbun_x+ta_x+tai_x+tagaru_x+taru_x+da1_x+da2_x+daxtu_x, - darou_x+de_x+desi_x+desho_x+desu_x+na2_x+nara_x+nai_o, - nu_x+ne2_x+nn2_x+fuuda_x+besi_x+mai_x+masu_x+masure_x, - mase_x+mitaida_x+you_x+youda_x+rasii_x+rareru_x+reru_x+site_x, - - yougen_x+aru_x+ara_x+ari1_x+ari2_x+ari3_x+are1_x+are2_x, - arou_x+ii_x+itasi_x+itadaku_x+iru_x+eru_x+kakeru_x+kaneru_x, - karazu_x+gatai_x+gatida_x+kudasaru_x+gozai_x+sa1_x+si1_x+siro_x, - jyau_x+jimau_x+sugiru_x+subesi_x+suru_x+sure_x+se_x+seyo_x, - tamau_x+tayu_x+timau_x+dekiru_x+naru_x+nasai_x+nasaru_x+nikui_x, - yasui_x+yoi_x+yaru_x+ttarasii_x - }; - -static u_char sou[] = { - wo_x+ttatte_x+ttara_x+tte1_o+tte2_x+ppanasi_x+ppoi_x+ue_x, - uti_x+oite_x+okeru_x+ori_x+ka1_x+ka2_o+kai_x+kasira_o, - katagata_x+kadouka_o+kana_o+kane_o+kamo_x+kara1_x+kara2_x+ga1_x, - ga2_x+gatera_x+kiri_x+kuseni_x+kurai_x+gurumi_x+kedo_x+koso_x, - koto_x+sa2_o+sae_x+si2_x+sika_x+sura_x+zutu_x+zo_x, - tame_x+dake_x+dano_x+darake_x+tuite_x+tuki_x+tutu_x+tumori_x, - te1_x+te2_x+teru_x+dearou_x+deru_x+to1_x+to2_o+totte_x, - toiu_o+toori_x+toki_x+tokoro_x+tote_x+tohaie_o+tomo_x+do_x, - doori_x+dokoro_x+dokoroka_o+domo_x+na1_x+naa_x+nagara_x+nazo_x, - nado_x+nari_x+nanka_x+nanzo_x+nante_x+ni1_x+ni2_x+ni3_x, - nite_x+nimo_x+ne1_o+nee_o+no1_x+no2_x+node_x+noni_x, - nomi_x+nominrz_x+ha_x+hazu_x+ba_x+bakari_x+he_x+hou_x, - hoka_x+hodo_x+made_x+mama_x+mo1_x+mo2_o+motte_x+mono_x, - ya1_x+ya2_x+yara_x+yue_x+yo_o+yori_x+wa_x+wake_x, - wane_x+wayo_x+nn1_x+jya_o+tya_x+nagara2_x+wo_s_x, - ze_x+kke_x+n_si_x+deha_o, - - gotosi_x+saseru_x+zaru_x+zu_x+zunba_x+seru_x+souda_x+youtai_x, - denbun_x+ta_x+tai_x+tagaru_x+taru_x+da1_x+da2_x+daxtu_x, - darou_x+de_x+desi_x+desho_x+desu_x+na2_x+nara_x+nai_x, - nu_x+ne2_x+nn2_x+fuuda_x+besi_x+mai_x+masu_x+masure_x, - mase_x+mitaida_x+you_x+youda_x+rasii_x+rareru_x+reru_x+site_x, - - yougen_x+aru_x+ara_x+ari1_x+ari2_x+ari3_x+are1_x+are2_x, - arou_x+ii_x+itasi_x+itadaku_x+iru_x+eru_x+kakeru_x+kaneru_x, - karazu_x+gatai_x+gatida_x+kudasaru_x+gozai_x+sa1_x+si1_x+siro_x, - jyau_x+jimau_x+sugiru_x+subesi_x+suru_x+sure_x+se_x+seyo_x, - tamau_x+tayu_x+timau_x+dekiru_x+naru_x+nasai_x+nasaru_x+nikui_x, - yasui_x+yoi_x+yaru_x+ttarasii_x - }; - -static u_char mitai[] = { - wo_x+ttatte_x+ttara_x+tte1_o+tte2_x+ppanasi_x+ppoi_x+ue_x, - uti_x+oite_x+okeru_x+ori_x+ka1_x+ka2_x+kai_x+kasira_x, - katagata_x+kadouka_x+kana_x+kane_x+kamo_x+kara1_x+kara2_x+ga1_x, - ga2_x+gatera_x+kiri_x+kuseni_x+kurai_x+gurumi_x+kedo_x+koso_x, - koto_x+sa2_o+sae_x+si2_x+sika_x+sura_x+zutu_x+zo_x, - tame_x+dake_x+dano_x+darake_x+tuite_x+tuki_x+tutu_x+tumori_x, - te1_x+te2_x+teru_x+dearou_x+deru_x+to1_x+to2_o+totte_x, - toiu_o+toori_x+toki_x+tokoro_x+tote_x+tohaie_o+tomo_x+do_x, - doori_x+dokoro_x+dokoroka_x+domo_x+na1_x+naa_x+nagara_x+nazo_x, - nado_x+nari_x+nanka_x+nanzo_x+nante_x+ni1_x+ni2_x+ni3_x, - nite_x+nimo_x+ne1_o+nee_o+no1_x+no2_x+node_x+noni_x, - nomi_x+nominrz_x+ha_x+hazu_x+ba_x+bakari_x+he_x+hou_x, - hoka_x+hodo_x+made_x+mama_x+mo1_x+mo2_x+motte_x+mono_x, - ya1_x+ya2_x+yara_x+yue_x+yo_o+yori_x+wa_x+wake_x, - wane_x+wayo_x+nn1_x+jya_o+tya_x+nagara2_x+wo_s_x, - ze_x+kke_x+n_si_x+deha_o, - - gotosi_x+saseru_x+zaru_x+zu_x+zunba_x+seru_x+souda_x+youtai_x, - denbun_x+ta_x+tai_x+tagaru_x+taru_x+da1_x+da2_x+daxtu_x, - darou_x+de_x+desi_x+desho_x+desu_x+na2_x+nara_x+nai_x, - nu_x+ne2_x+nn2_x+fuuda_x+besi_x+mai_x+masu_x+masure_x, - mase_x+mitaida_x+you_x+youda_x+rasii_x+rareru_x+reru_x+site_x, - - yougen_x+aru_x+ara_x+ari1_x+ari2_x+ari3_x+are1_x+are2_x, - arou_x+ii_x+itasi_x+itadaku_x+iru_x+eru_x+kakeru_x+kaneru_x, - karazu_x+gatai_x+gatida_x+kudasaru_x+gozai_x+sa1_x+si1_x+siro_x, - jyau_x+jimau_x+sugiru_x+subesi_x+suru_x+sure_x+se_x+seyo_x, - tamau_x+tayu_x+timau_x+dekiru_x+naru_x+nasai_x+nasaru_x+nikui_x, - yasui_x+yoi_x+yaru_x+ttarasii_x - }; - -static u_char yotte[] = { - wo_x+ttatte_x+ttara_x+tte1_x+tte2_x+ppanasi_x+ppoi_x+ue_x, - uti_x+oite_x+okeru_x+ori_x+ka1_x+ka2_x+kai_x+kasira_x, - katagata_x+kadouka_x+kana_x+kane_x+kamo_x+kara1_x+kara2_x+ga1_x, - ga2_x+gatera_x+kiri_x+kuseni_x+kurai_x+gurumi_x+kedo_x+koso_x, - koto_x+sa2_x+sae_x+si2_x+sika_x+sura_x+zutu_x+zo_x, - tame_x+dake_o+dano_x+darake_x+tuite_x+tuki_x+tutu_x+tumori_x, - te1_x+te2_x+teru_x+dearou_x+deru_x+to1_x+to2_x+totte_x, - toiu_x+toori_x+toki_x+tokoro_x+tote_x+tohaie_x+tomo_x+do_x, - doori_x+dokoro_x+dokoroka_x+domo_x+na1_x+naa_x+nagara_x+nazo_x, - nado_x+nari_x+nanka_x+nanzo_x+nante_x+ni1_x+ni2_x+ni3_x, - nite_x+nimo_x+ne1_x+nee_x+no1_x+no2_x+node_x+noni_x, - nomi_x+nominrz_x+ha_o+hazu_x+ba_x+bakari_x+he_x+hou_x, - hoka_x+hodo_x+made_x+mama_x+mo1_o+mo2_x+motte_x+mono_x, - ya1_x+ya2_x+yara_x+yue_x+yo_x+yori_x+wa_x+wake_x, - wane_x+wayo_x+nn1_x+jya_x+tya_x+nagara2_x+wo_s_x, - ze_x+kke_x+n_si_x+deha_x, - - gotosi_x+saseru_x+zaru_x+zu_x+zunba_x+seru_x+souda_x+youtai_x, - denbun_x+ta_x+tai_x+tagaru_x+taru_x+da1_x+da2_x+daxtu_x, - darou_x+de_x+desi_x+desho_x+desu_x+na2_x+nara_x+nai_x, - nu_x+ne2_x+nn2_x+fuuda_x+besi_x+mai_x+masu_x+masure_x, - mase_x+mitaida_x+you_x+youda_x+rasii_x+rareru_x+reru_x+site_x, - - yougen_x+aru_x+ara_x+ari1_x+ari2_x+ari3_x+are1_x+are2_x, - arou_x+ii_x+itasi_x+itadaku_x+iru_x+eru_x+kakeru_x+kaneru_x, - karazu_x+gatai_x+gatida_x+kudasaru_x+gozai_x+sa1_x+si1_x+siro_x, - jyau_x+jimau_x+sugiru_x+subesi_x+suru_x+sure_x+se_x+seyo_x, - tamau_x+tayu_x+timau_x+dekiru_x+naru_x+nasai_x+nasaru_x+nikui_x, - yasui_x+yoi_x+yaru_x+ttarasii_x - }; - -static u_char you2[] = { - wo_x+ttatte_x+ttara_x+tte1_x+tte2_x+ppanasi_x+ppoi_x+ue_x, - uti_x+oite_x+okeru_x+ori_x+ka1_x+ka2_x+kai_x+kasira_x, - katagata_x+kadouka_x+kana_x+kane_x+kamo_x+kara1_x+kara2_x+ga1_x, - ga2_x+gatera_x+kiri_x+kuseni_x+kurai_x+gurumi_x+kedo_x+koso_x, - koto_x+sa2_x+sae_x+si2_x+sika_x+sura_x+zutu_x+zo_x, - tame_x+dake_x+dano_x+darake_x+tuite_x+tuki_x+tutu_x+tumori_x, - te1_x+te2_x+teru_x+dearou_x+deru_x+to1_x+to2_x+totte_x, - toiu_x+toori_x+toki_x+tokoro_x+tote_x+tohaie_x+tomo_x+do_x, - doori_x+dokoro_x+dokoroka_x+domo_x+na1_x+naa_x+nagara_x+nazo_x, - nado_x+nari_x+nanka_x+nanzo_x+nante_x+ni1_x+ni2_x+ni3_x, - nite_x+nimo_x+ne1_o+nee_o+no1_x+no2_x+node_x+noni_x, - nomi_x+nominrz_x+ha_x+hazu_x+ba_x+bakari_x+he_x+hou_x, - hoka_x+hodo_x+made_x+mama_x+mo1_x+mo2_x+motte_x+mono_x, - ya1_x+ya2_x+yara_x+yue_x+yo_o+yori_x+wa_x+wake_x, - wane_x+wayo_x+nn1_x+jya_o+tya_x+nagara2_x+wo_s_x, - ze_x+kke_x+n_si_x+deha_x, - - gotosi_x+saseru_x+zaru_x+zu_x+zunba_x+seru_x+souda_x+youtai_x, - denbun_x+ta_x+tai_x+tagaru_x+taru_x+da1_x+da2_x+daxtu_x, - darou_x+de_x+desi_x+desho_x+desu_x+na2_x+nara_x+nai_x, - nu_x+ne2_x+nn2_x+fuuda_x+besi_x+mai_x+masu_x+masure_x, - mase_x+mitaida_x+you_x+youda_x+rasii_x+rareru_x+reru_x+site_x, - - yougen_x+aru_x+ara_x+ari1_x+ari2_x+ari3_x+are1_x+are2_x, - arou_x+ii_x+itasi_x+itadaku_x+iru_x+eru_x+kakeru_x+kaneru_x, - karazu_x+gatai_x+gatida_x+kudasaru_x+gozai_x+sa1_x+si1_x+siro_x, - jyau_x+jimau_x+sugiru_x+subesi_x+suru_x+sure_x+se_x+seyo_x, - tamau_x+tayu_x+timau_x+dekiru_x+naru_x+nasai_x+nasaru_x+nikui_x, - yasui_x+yoi_x+yaru_x+ttarasii_x - }; - -static u_char sho[] = { - wo_x+ttatte_o+ttara_o+tte1_o+tte2_x+ppanasi_x+ppoi_x+ue_x, - uti_x+oite_x+okeru_x+ori_x+ka1_x+ka2_x+kai_x+kasira_x, - katagata_x+kadouka_x+kana_x+kane_x+kamo_x+kara1_x+kara2_x+ga1_x, - ga2_x+gatera_x+kiri_x+kuseni_x+kurai_x+gurumi_x+kedo_x+koso_x, - koto_x+sa2_x+sae_x+si2_x+sika_x+sura_x+zutu_x+zo_x, - tame_x+dake_x+dano_x+darake_x+tuite_x+tuki_x+tutu_x+tumori_x, - te1_x+te2_x+teru_x+dearou_x+deru_x+to1_x+to2_o+totte_x, - toiu_o+toori_x+toki_x+tokoro_x+tote_x+tohaie_o+tomo_x+do_x, - doori_x+dokoro_x+dokoroka_x+domo_x+na1_x+naa_x+nagara_x+nazo_o, - nado_o+nari_x+nanka_o+nanzo_o+nante_o+ni1_x+ni2_x+ni3_x, - nite_x+nimo_x+ne1_x+nee_x+no1_x+no2_x+node_x+noni_x, - nomi_x+nominrz_x+ha_x+hazu_x+ba_x+bakari_x+he_x+hou_x, - hoka_x+hodo_x+made_x+mama_x+mo1_x+mo2_x+motte_x+mono_x, - ya1_x+ya2_x+yara_x+yue_x+yo_x+yori_x+wa_x+wake_x, - wane_x+wayo_x+nn1_x+jya_x+tya_x+nagara2_x+wo_s_x, - ze_x+kke_x+n_si_x+deha_o, - - gotosi_x+saseru_x+zaru_x+zu_x+zunba_x+seru_x+souda_x+youtai_x, - denbun_x+ta_x+tai_x+tagaru_x+taru_x+da1_x+da2_x+daxtu_x, - darou_x+de_x+desi_x+desho_x+desu_x+na2_x+nara_x+nai_x, - nu_x+ne2_x+nn2_x+fuuda_x+besi_x+mai_x+masu_x+masure_x, - mase_x+mitaida_x+you_x+youda_x+rasii_x+rareru_x+reru_x+site_x, - - yougen_x+aru_x+ara_x+ari1_x+ari2_x+ari3_x+are1_x+are2_x, - arou_x+ii_x+itasi_x+itadaku_x+iru_x+eru_x+kakeru_x+kaneru_x, - karazu_x+gatai_x+gatida_x+kudasaru_x+gozai_x+sa1_x+si1_x+siro_x, - jyau_x+jimau_x+sugiru_x+subesi_x+suru_x+sure_x+se_x+seyo_x, - tamau_x+tayu_x+timau_x+dekiru_x+naru_x+nasai_x+nasaru_x+nikui_x, - yasui_x+yoi_x+yaru_x+ttarasii_x - }; - -static u_char meisi[] = { - wo_o+ttatte_x+ttara_o+tte1_o+tte2_x+ppanasi_x+ppoi_o+ue_x, - uti_x+oite_x+okeru_x+ori_x+ka1_o+ka2_x+kai_x+kasira_o, - katagata_x+kadouka_o+kana_o+kane_o+kamo_o+kara1_o+kara2_x+ga1_o, - ga2_x+gatera_x+kiri_o+kuseni_x+kurai_o+gurumi_o+kedo_x+koso_o, - koto_x+sa2_o+sae_o+si2_x+sika_o+sura_o+zutu_o+zo_o, - tame_x+dake_o+dano_o+darake_o+tuite_x+tuki_x+tutu_x+tumori_x, - te1_x+te2_x+teru_x+dearou_x+deru_x+to1_o+to2_x+totte_x, - toiu_o+toori_x+toki_x+tokoro_x+tote_o+tohaie_o+tomo_x+do_x, - doori_o+dokoro_o+dokoroka_o+domo_x+na1_x+naa_o+nagara_o+nazo_o, - nado_o+nari_o+nanka_o+nanzo_o+nante_o+ni1_o+ni2_x+ni3_x, - nite_o+nimo_x+ne1_o+nee_o+no1_o+no2_x+node_x+noni_x, - nomi_o+nominrz_o+ha_o+hazu_x+ba_x+bakari_o+he_o+hou_x, - hoka_x+hodo_o+made_o+mama_x+mo1_x+mo2_o+motte_x+mono_x, - ya1_o+ya2_x+yara_o+yue_x+yo_o+yori_o+wa_x+wake_x, - wane_o+wayo_x+nn1_x+jya_o+tya_x+nagara2_x+wo_s_x, - ze_x+kke_x+n_si_x+deha_x, - - gotosi_x+saseru_x+zaru_x+zu_x+zunba_x+seru_x+souda_x+youtai_x, - denbun_x+ta_x+tai_x+tagaru_x+taru_o+da1_x+da2_o+daxtu_o, - darou_o+de_o+desi_o+desho_o+desu_o+na2_o+nara_o+nai_x, - nu_x+ne2_x+nn2_x+fuuda_x+besi_x+mai_x+masu_x+masure_x, - mase_x+mitaida_o+you_x+youda_x+rasii_o+rareru_x+reru_x+site_x, - - yougen_x+aru_x+ara_x+ari1_x+ari2_x+ari3_x+are1_x+are2_x, - arou_x+ii_x+itasi_x+itadaku_x+iru_x+eru_x+kakeru_x+kaneru_x, - karazu_x+gatai_x+gatida_x+kudasaru_x+gozai_x+sa1_x+si1_x+siro_x, - jyau_x+jimau_x+sugiru_x+subesi_x+suru_x+sure_x+se_x+seyo_x, - tamau_x+tayu_x+timau_x+dekiru_x+naru_x+nasai_x+nasaru_x+nikui_x, - yasui_x+yoi_x+yaru_x+ttarasii_x - }; - -static u_char wo_meisi[] = { - wo_x+ttatte_x+ttara_o+tte1_o+tte2_x+ppanasi_x+ppoi_o+ue_x, - uti_x+oite_x+okeru_x+ori_x+ka1_o+ka2_x+kai_x+kasira_o, - katagata_x+kadouka_o+kana_o+kane_o+kamo_o+kara1_o+kara2_x+ga1_o, - ga2_x+gatera_x+kiri_o+kuseni_x+kurai_o+gurumi_o+kedo_x+koso_o, - koto_x+sa2_o+sae_o+si2_x+sika_o+sura_o+zutu_o+zo_o, - tame_x+dake_o+dano_o+darake_o+tuite_x+tuki_x+tutu_x+tumori_x, - te1_x+te2_x+teru_x+dearou_x+deru_x+to1_o+to2_x+totte_x, - toiu_o+toori_x+toki_x+tokoro_x+tote_o+tohaie_o+tomo_x+do_x, - doori_o+dokoro_o+dokoroka_o+domo_x+na1_x+naa_o+nagara_o+nazo_o, - nado_o+nari_o+nanka_o+nanzo_o+nante_o+ni1_o+ni2_x+ni3_x, - nite_o+nimo_x+ne1_o+nee_o+no1_o+no2_x+node_x+noni_x, - nomi_o+nominrz_o+ha_o+hazu_x+ba_x+bakari_o+he_o+hou_x, - hoka_x+hodo_o+made_o+mama_x+mo1_x+mo2_o+motte_x+mono_x, - ya1_o+ya2_x+yara_o+yue_x+yo_o+yori_o+wa_x+wake_x, - wane_o+wayo_x+nn1_x+jya_o+tya_x+nagara2_x+wo_s_o, - ze_x+kke_x+n_si_x+deha_x, - - gotosi_x+saseru_x+zaru_x+zu_x+zunba_x+seru_x+souda_x+youtai_x, - denbun_x+ta_x+tai_x+tagaru_x+taru_o+da1_x+da2_o+daxtu_o, - darou_o+de_o+desi_o+desho_o+desu_o+na2_o+nara_o+nai_x, - nu_x+ne2_x+nn2_x+fuuda_x+besi_x+mai_x+masu_x+masure_x, - mase_x+mitaida_o+you_x+youda_x+rasii_o+rareru_x+reru_x+site_x, - - yougen_x+aru_x+ara_x+ari1_x+ari2_x+ari3_x+are1_x+are2_x, - arou_x+ii_x+itasi_x+itadaku_x+iru_x+eru_x+kakeru_x+kaneru_x, - karazu_x+gatai_x+gatida_x+kudasaru_x+gozai_x+sa1_x+si1_x+siro_x, - jyau_x+jimau_x+sugiru_x+subesi_x+suru_x+sure_x+se_x+seyo_x, - tamau_x+tayu_x+timau_x+dekiru_x+naru_x+nasai_x+nasaru_x+nikui_x, - yasui_x+yoi_x+yaru_x+ttarasii_x - }; - -static u_char dmeisi[] = { - wo_o+ttatte_x+ttara_o+tte1_o+tte2_x+ppanasi_x+ppoi_o+ue_x, - uti_x+oite_x+okeru_x+ori_x+ka1_o+ka2_x+kai_x+kasira_o, - katagata_x+kadouka_o+kana_o+kane_o+kamo_o+kara1_o+kara2_x+ga1_o, - ga2_x+gatera_x+kiri_x+kuseni_x+kurai_o+gurumi_o+kedo_x+koso_o, - koto_x+sa2_o+sae_o+si2_x+sika_o+sura_o+zutu_o+zo_o, - tame_x+dake_o+dano_o+darake_o+tuite_x+tuki_x+tutu_x+tumori_x, - te1_x+te2_x+teru_x+dearou_x+deru_x+to1_o+to2_x+totte_x, - toiu_o+toori_x+toki_x+tokoro_x+tote_o+tohaie_o+tomo_x+do_x, - doori_x+dokoro_o+dokoroka_o+domo_x+na1_x+naa_o+nagara_o+nazo_o, - nado_o+nari_o+nanka_o+nanzo_o+nante_o+ni1_x+ni2_x+ni3_x, - nite_o+nimo_x+ne1_o+nee_o+no1_o+no2_x+node_x+noni_x, - nomi_o+nominrz_o+ha_o+hazu_x+ba_x+bakari_o+he_o+hou_x, - hoka_x+hodo_o+made_o+mama_x+mo1_x+mo2_o+motte_x+mono_x, - ya1_o+ya2_x+yara_o+yue_x+yo_o+yori_o+wa_x+wake_x, - wane_o+wayo_x+nn1_x+jya_o+tya_x+nagara2_x+wo_s_x, - ze_x+kke_x+n_si_x+deha_x, - - gotosi_x+saseru_x+zaru_x+zu_x+zunba_x+seru_x+souda_o+youtai_o, - denbun_x+ta_x+tai_x+tagaru_x+taru_o+da1_x+da2_x+daxtu_x, - darou_x+de_x+desi_o+desho_o+desu_o+na2_x+nara_x+nai_x, - nu_x+ne2_x+nn2_x+fuuda_x+besi_x+mai_x+masu_x+masure_x, - mase_x+mitaida_o+you_x+youda_x+rasii_o+rareru_x+reru_x+site_x, - - yougen_x+aru_x+ara_x+ari1_x+ari2_x+ari3_x+are1_x+are2_x, - arou_x+ii_x+itasi_x+itadaku_x+iru_x+eru_x+kakeru_x+kaneru_x, - karazu_x+gatai_x+gatida_x+kudasaru_x+gozai_x+sa1_x+si1_x+siro_x, - jyau_x+jimau_x+sugiru_x+subesi_x+suru_x+sure_x+se_x+seyo_x, - tamau_x+tayu_x+timau_x+dekiru_x+naru_x+nasai_x+nasaru_x+nikui_x, - yasui_x+yoi_x+yaru_x+ttarasii_o - }; - -static u_char smeisi1[] = { - wo_x+ttatte_x+ttara_o+tte1_o+tte2_x+ppanasi_x+ppoi_o+ue_x, - uti_x+oite_x+okeru_x+ori_x+ka1_o+ka2_x+kai_x+kasira_o, - katagata_o+kadouka_o+kana_o+kane_o+kamo_o+kara1_o+kara2_x+ga1_o, - ga2_x+gatera_o+kiri_x+kuseni_x+kurai_o+gurumi_o+kedo_x+koso_o, - koto_x+sa2_o+sae_o+si2_x+sika_o+sura_o+zutu_o+zo_o, - tame_x+dake_o+dano_o+darake_o+tuite_x+tuki_x+tutu_x+tumori_x, - te1_x+te2_x+teru_x+dearou_x+deru_x+to1_o+to2_x+totte_x, - toiu_o+toori_x+toki_x+tokoro_x+tote_o+tohaie_o+tomo_x+do_x, - doori_o+dokoro_o+dokoroka_o+domo_x+na1_x+naa_o+nagara_x+nazo_o, - nado_o+nari_o+nanka_o+nanzo_o+nante_o+ni1_o+ni2_x+ni3_x, - nite_o+nimo_x+ne1_o+nee_o+no1_o+no2_x+node_x+noni_x, - nomi_o+nominrz_o+ha_o+hazu_x+ba_x+bakari_o+he_o+hou_x, - hoka_x+hodo_o+made_o+mama_x+mo1_x+mo2_o+motte_x+mono_x, - ya1_o+ya2_x+yara_o+yue_x+yo_o+yori_o+wa_x+wake_x, - wane_o+wayo_x+nn1_x+jya_o+tya_x+nagara2_x+wo_s_o, - ze_x+kke_x+n_si_x+deha_x, - - gotosi_x+saseru_x+zaru_x+zu_x+zunba_x+seru_x+souda_x+youtai_x, - denbun_x+ta_x+tai_x+tagaru_x+taru_o+da1_x+da2_o+daxtu_o, - darou_o+de_o+desi_o+desho_o+desu_o+na2_o+nara_o+nai_x, - nu_x+ne2_x+nn2_x+fuuda_x+besi_x+mai_x+masu_x+masure_x, - mase_x+mitaida_o+you_x+youda_x+rasii_o+rareru_x+reru_x+site_x, - - yougen_x+aru_x+ara_x+ari1_x+ari2_x+ari3_x+are1_x+are2_x, - arou_x+ii_x+itasi_o+itadaku_x+iru_x+eru_x+kakeru_x+kaneru_x, - karazu_x+gatai_x+gatida_x+kudasaru_x+gozai_x+sa1_x+si1_x+siro_x, - jyau_x+jimau_x+sugiru_x+subesi_o+suru_x+sure_x+se_x+seyo_x, - tamau_x+tayu_x+timau_x+dekiru_o+naru_x+nasai_x+nasaru_x+nikui_x, - yasui_x+yoi_x+yaru_x+ttarasii_x - }; - -static u_char smeisi2[] = { - wo_x+ttatte_x+ttara_o+tte1_o+tte2_x+ppanasi_x+ppoi_x+ue_x, - uti_x+oite_x+okeru_x+ori_x+ka1_o+ka2_x+kai_x+kasira_o, - katagata_o+kadouka_o+kana_o+kane_o+kamo_o+kara1_o+kara2_x+ga1_o, - ga2_x+gatera_x+kiri_x+kuseni_x+kurai_o+gurumi_o+kedo_x+koso_o, - koto_x+sa2_o+sae_o+si2_x+sika_o+sura_o+zutu_o+zo_o, - tame_x+dake_o+dano_o+darake_o+tuite_x+tuki_x+tutu_x+tumori_x, - te1_x+te2_x+teru_x+dearou_x+deru_x+to1_o+to2_x+totte_x, - toiu_o+toori_x+toki_x+tokoro_x+tote_o+tohaie_o+tomo_x+do_x, - doori_o+dokoro_o+dokoroka_o+domo_x+na1_x+naa_o+nagara_x+nazo_o, - nado_o+nari_o+nanka_o+nanzo_o+nante_o+ni1_o+ni2_x+ni3_x, - nite_o+nimo_x+ne1_o+nee_o+no1_o+no2_x+node_x+noni_x, - nomi_o+nominrz_o+ha_o+hazu_x+ba_x+bakari_o+he_o+hou_x, - hoka_x+hodo_o+made_o+mama_x+mo1_x+mo2_o+motte_x+mono_x, - ya1_o+ya2_x+yara_o+yue_x+yo_o+yori_o+wa_x+wake_x, - wane_o+wayo_x+nn1_x+jya_o+tya_x+nagara2_x+wo_s_o, - ze_x+kke_x+n_si_x+deha_x, - - gotosi_x+saseru_x+zaru_x+zu_x+zunba_x+seru_x+souda_x+youtai_x, - denbun_x+ta_x+tai_x+tagaru_x+taru_o+da1_x+da2_o+daxtu_o, - darou_o+de_o+desi_o+desho_o+desu_o+na2_o+nara_o+nai_x, - nu_x+ne2_x+nn2_x+fuuda_x+besi_x+mai_x+masu_x+masure_x, - mase_x+mitaida_o+you_x+youda_x+rasii_o+rareru_x+reru_x+site_x, - - yougen_x+aru_x+ara_x+ari1_x+ari2_x+ari3_x+are1_x+are2_x, - arou_x+ii_x+itasi_o+itadaku_o+iru_x+eru_x+kakeru_x+kaneru_x, - karazu_x+gatai_x+gatida_x+kudasaru_o+gozai_x+sa1_x+si1_x+siro_x, - jyau_x+jimau_x+sugiru_x+subesi_o+suru_x+sure_x+se_x+seyo_x, - tamau_x+tayu_x+timau_x+dekiru_o+naru_x+nasai_x+nasaru_x+nikui_x, - yasui_x+yoi_x+yaru_x+ttarasii_x - }; - -static u_char kstb[] = { - wo_x+ttatte_x+ttara_x+tte1_x+tte2_x+ppanasi_x+ppoi_x+ue_x, - uti_x+oite_x+okeru_x+ori_x+ka1_x+ka2_x+kai_x+kasira_x, - katagata_x+kadouka_x+kana_x+kane_x+kamo_x+kara1_x+kara2_x+ga1_x, - ga2_x+gatera_x+kiri_x+kuseni_x+kurai_x+gurumi_x+kedo_x+koso_x, - koto_x+sa2_x+sae_x+si2_x+sika_x+sura_x+zutu_x+zo_x, - tame_x+dake_x+dano_x+darake_x+tuite_x+tuki_x+tutu_x+tumori_x, - te1_x+te2_x+teru_x+dearou_x+deru_x+to1_x+to2_x+totte_x, - toiu_x+toori_x+toki_x+tokoro_x+tote_x+tohaie_x+tomo_x+do_x, - doori_x+dokoro_x+dokoroka_x+domo_x+na1_x+naa_x+nagara_x+nazo_x, - nado_x+nari_x+nanka_x+nanzo_x+nante_x+ni1_x+ni2_x+ni3_x, - nite_x+nimo_x+ne1_x+nee_x+no1_x+no2_x+node_x+noni_x, - nomi_x+nominrz_x+ha_x+hazu_x+ba_x+bakari_x+he_x+hou_x, - hoka_x+hodo_x+made_x+mama_x+mo1_x+mo2_x+motte_x+mono_x, - ya1_x+ya2_x+yara_x+yue_x+yo_x+yori_x+wa_x+wake_x, - wane_x+wayo_x+nn1_x+jya_x+tya_x+nagara2_x+wo_s_x, - ze_x+kke_x+n_si_x+deha_x, - - gotosi_x+saseru_x+zaru_x+zu_x+zunba_x+seru_x+souda_o+youtai_o, - denbun_x+ta_x+tai_x+tagaru_x+taru_x+da1_x+da2_x+daxtu_x, - darou_x+de_x+desi_x+desho_x+desu_x+na2_x+nara_x+nai_x, - nu_x+ne2_x+nn2_x+fuuda_x+besi_x+mai_x+masu_x+masure_x, - mase_x+mitaida_x+you_x+youda_x+rasii_x+rareru_x+reru_x+site_x, - - yougen_x+aru_x+ara_x+ari1_x+ari2_x+ari3_x+are1_x+are2_x, - arou_x+ii_x+itasi_x+itadaku_x+iru_x+eru_x+kakeru_x+kaneru_x, - karazu_o+gatai_x+gatida_x+kudasaru_x+gozai_x+sa1_x+si1_x+siro_x, - jyau_x+jimau_x+sugiru_o+subesi_x+suru_x+sure_x+se_x+seyo_x, - tamau_x+tayu_x+timau_x+dekiru_x+naru_x+nasai_x+nasaru_x+nikui_x, - yasui_x+yoi_x+yaru_x+ttarasii_x - }; - -static u_char ichisetubi[] = { - wo_o+ttatte_x+ttara_o+tte1_o+tte2_x+ppanasi_o+ppoi_o+ue_x, - uti_x+oite_x+okeru_x+ori_x+ka1_o+ka2_x+kai_x+kasira_o, - katagata_x+kadouka_o+kana_o+kane_o+kamo_o+kara1_o+kara2_x+ga1_o, - ga2_x+gatera_x+kiri_x+kuseni_x+kurai_o+gurumi_x+kedo_x+koso_x, - koto_x+sa2_o+sae_o+si2_x+sika_x+sura_o+zutu_x+zo_x, - tame_x+dake_o+dano_o+darake_x+tuite_x+tuki_x+tutu_x+tumori_x, - te1_x+te2_o+teru_o+dearou_x+deru_x+to1_o+to2_x+totte_x, - toiu_o+toori_x+toki_x+tokoro_x+tote_o+tohaie_o+tomo_x+do_x, - doori_x+dokoro_o+dokoroka_o+domo_x+na1_x+naa_o+nagara_x+nazo_o, - nado_o+nari_o+nanka_o+nanzo_o+nante_o+ni1_o+ni2_o+ni3_x, - nite_x+nimo_x+ne1_o+nee_o+no1_o+no2_x+node_x+noni_x, - nomi_o+nominrz_o+ha_o+hazu_x+ba_x+bakari_o+he_o+hou_x, - hoka_x+hodo_o+made_o+mama_x+mo1_x+mo2_o+motte_x+mono_x, - ya1_o+ya2_x+yara_o+yue_o+yo_o+yori_o+wa_x+wake_x, - wane_x+wayo_x+nn1_x+jya_o+tya_o+nagara2_x+wo_s_x, - ze_x+kke_x+n_si_x+deha_x, - - gotosi_x+saseru_o+zaru_o+zu_o+zunba_o+seru_x+souda_o+youtai_o, - denbun_x+ta_o+tai_o+tagaru_o+taru_x+da1_x+da2_o+daxtu_o, - darou_o+de_o+desi_o+desho_o+desu_o+na2_o+nara_o+nai_o, - nu_o+ne2_o+nn2_o+fuuda_x+besi_x+mai_o+masu_o+masure_o, - mase_x+mitaida_o+you_o+youda_x+rasii_o+rareru_o+reru_x+site_x, - - yougen_x+aru_x+ara_x+ari1_x+ari2_x+ari3_x+are1_x+are2_x, - arou_x+ii_x+itasi_x+itadaku_x+iru_x+eru_x+kakeru_x+kaneru_x, - karazu_x+gatai_o+gatida_o+kudasaru_x+gozai_x+sa1_x+si1_x+siro_x, - jyau_x+jimau_x+sugiru_x+subesi_x+suru_x+sure_x+se_x+seyo_x, - tamau_x+tayu_o+timau_o+dekiru_x+naru_x+nasai_o+nasaru_o+nikui_o, - yasui_o+yoi_x+yaru_x+ttarasii_x - }; - -static u_char josuusi[] = { - wo_o+ttatte_x+ttara_o+tte1_o+tte2_x+ppanasi_x+ppoi_x+ue_x, - uti_x+oite_x+okeru_x+ori_x+ka1_o+ka2_x+kai_x+kasira_o, - katagata_x+kadouka_o+kana_o+kane_o+kamo_o+kara1_o+kara2_x+ga1_o, - ga2_x+gatera_x+kiri_o+kuseni_x+kurai_o+gurumi_o+kedo_x+koso_o, - koto_x+sa2_o+sae_o+si2_x+sika_o+sura_o+zutu_o+zo_o, - tame_x+dake_o+dano_o+darake_o+tuite_x+tuki_x+tutu_x+tumori_x, - te1_x+te2_x+teru_x+dearou_x+deru_x+to1_o+to2_x+totte_x, - toiu_o+toori_x+toki_x+tokoro_x+tote_o+tohaie_o+tomo_x+do_x, - doori_x+dokoro_o+dokoroka_o+domo_x+na1_x+naa_o+nagara_x+nazo_o, - nado_o+nari_o+nanka_o+nanzo_o+nante_o+ni1_o+ni2_x+ni3_x, - nite_o+nimo_x+ne1_o+nee_o+no1_o+no2_x+node_x+noni_x, - nomi_o+nominrz_o+ha_o+hazu_x+ba_x+bakari_o+he_o+hou_x, - hoka_x+hodo_o+made_o+mama_x+mo1_x+mo2_o+motte_x+mono_o, - ya1_o+ya2_x+yara_o+yue_x+yo_o+yori_o+wa_x+wake_x, - wane_o+wayo_x+nn1_x+jya_o+tya_x+nagara2_x+wo_s_x, - ze_x+kke_x+n_si_x+deha_x, - - gotosi_x+saseru_x+zaru_x+zu_x+zunba_x+seru_x+souda_x+youtai_x, - denbun_x+ta_x+tai_x+tagaru_x+taru_o+da1_x+da2_o+daxtu_o, - darou_o+de_o+desi_o+desho_o+desu_o+na2_o+nara_o+nai_x, - nu_x+ne2_x+nn2_x+fuuda_x+besi_x+mai_x+masu_x+masure_x, - mase_x+mitaida_o+you_x+youda_x+rasii_o+rareru_x+reru_x+site_x, - - yougen_x+aru_x+ara_x+ari1_x+ari2_x+ari3_x+are1_x+are2_x, - arou_x+ii_x+itasi_x+itadaku_x+iru_x+eru_x+kakeru_x+kaneru_x, - karazu_x+gatai_x+gatida_x+kudasaru_x+gozai_x+sa1_x+si1_x+siro_x, - jyau_x+jimau_x+sugiru_x+subesi_x+suru_x+sure_x+se_x+seyo_x, - tamau_x+tayu_x+timau_x+dekiru_x+naru_x+nasai_x+nasaru_x+nikui_x, - yasui_x+yoi_x+yaru_x+ttarasii_x - }; - -static u_char rentaisi[] = { - wo_x+ttatte_x+ttara_x+tte1_x+tte2_x+ppanasi_x+ppoi_x+ue_x, - uti_x+oite_x+okeru_x+ori_x+ka1_x+ka2_x+kai_x+kasira_x, - katagata_x+kadouka_x+kana_x+kane_x+kamo_x+kara1_x+kara2_x+ga1_x, - ga2_x+gatera_x+kiri_x+kuseni_x+kurai_x+gurumi_x+kedo_x+koso_x, - koto_o+sa2_x+sae_x+si2_x+sika_x+sura_x+zutu_x+zo_x, - tame_o+dake_x+dano_x+darake_x+tuite_x+tuki_x+tutu_x+tumori_x, - te1_x+te2_x+teru_x+dearou_x+deru_x+to1_x+to2_x+totte_x, - toiu_x+toori_x+toki_x+tokoro_x+tote_x+tohaie_x+tomo_x+do_x, - doori_x+dokoro_x+dokoroka_x+domo_x+na1_x+naa_x+nagara_x+nazo_x, - nado_x+nari_x+nanka_x+nanzo_x+nante_x+ni1_x+ni2_x+ni3_x, - nite_x+nimo_x+ne1_x+nee_x+no1_x+no2_x+node_x+noni_x, - nomi_x+nominrz_x+ha_x+hazu_x+ba_x+bakari_x+he_x+hou_x, - hoka_x+hodo_x+made_x+mama_x+mo1_x+mo2_x+motte_x+mono_o, - ya1_x+ya2_x+yara_x+yue_x+yo_x+yori_x+wa_x+wake_x, - wane_x+wayo_x+nn1_x+jya_x+tya_x+nagara2_x+wo_s_x, - ze_x+kke_x+n_si_x+deha_x, - - gotosi_x+saseru_x+zaru_x+zu_x+zunba_x+seru_x+souda_x+youtai_x, - denbun_x+ta_x+tai_x+tagaru_x+taru_x+da1_x+da2_x+daxtu_x, - darou_x+de_x+desi_x+desho_x+desu_x+na2_x+nara_x+nai_x, - nu_x+ne2_x+nn2_x+fuuda_o+besi_x+mai_x+masu_x+masure_x, - mase_x+mitaida_x+you_x+youda_o+rasii_x+rareru_x+reru_x+site_x, - - yougen_x+aru_x+ara_x+ari1_x+ari2_x+ari3_x+are1_x+are2_x, - arou_x+ii_x+itasi_x+itadaku_x+iru_x+eru_x+kakeru_x+kaneru_x, - karazu_x+gatai_x+gatida_x+kudasaru_x+gozai_x+sa1_x+si1_x+siro_x, - jyau_x+jimau_x+sugiru_x+subesi_x+suru_x+sure_x+se_x+seyo_x, - tamau_x+tayu_x+timau_x+dekiru_x+naru_x+nasai_x+nasaru_x+nikui_x, - yasui_x+yoi_x+yaru_x+ttarasii_x - }; - -static u_char cut[] = { - wo_x+ttatte_x+ttara_x+tte1_x+tte2_x+ppanasi_x+ppoi_x+ue_x, - uti_x+oite_x+okeru_x+ori_x+ka1_x+ka2_x+kai_x+kasira_x, - katagata_x+kadouka_x+kana_x+kane_x+kamo_x+kara1_x+kara2_x+ga1_x, - ga2_x+gatera_x+kiri_x+kuseni_x+kurai_x+gurumi_x+kedo_x+koso_x, - koto_x+sa2_x+sae_x+si2_x+sika_x+sura_x+zutu_x+zo_x, - tame_x+dake_x+dano_x+darake_x+tuite_x+tuki_x+tutu_x+tumori_x, - te1_x+te2_x+teru_x+dearou_x+deru_x+to1_x+to2_x+totte_x, - toiu_x+toori_x+toki_x+tokoro_x+tote_x+tohaie_x+tomo_x+do_x, - doori_x+dokoro_x+dokoroka_x+domo_x+na1_x+naa_x+nagara_x+nazo_x, - nado_x+nari_x+nanka_x+nanzo_x+nante_x+ni1_x+ni2_x+ni3_x, - nite_x+nimo_x+ne1_x+nee_x+no1_x+no2_x+node_x+noni_x, - nomi_x+nominrz_x+ha_x+hazu_x+ba_x+bakari_x+he_x+hou_x, - hoka_x+hodo_x+made_x+mama_x+mo1_x+mo2_x+motte_x+mono_x, - ya1_x+ya2_x+yara_x+yue_x+yo_x+yori_x+wa_x+wake_x, - wane_x+wayo_x+nn1_x+jya_x+tya_x+nagara2_x+wo_s_x, - ze_x+kke_x+n_si_x+deha_x, - - gotosi_x+saseru_x+zaru_x+zu_x+zunba_x+seru_x+souda_x+youtai_x, - denbun_x+ta_x+tai_x+tagaru_x+taru_x+da1_x+da2_x+daxtu_x, - darou_x+de_x+desi_x+desho_x+desu_x+na2_x+nara_x+nai_x, - nu_x+ne2_x+nn2_x+fuuda_x+besi_x+mai_x+masu_x+masure_x, - mase_x+mitaida_x+you_x+youda_x+rasii_x+rareru_x+reru_x+site_x, - - yougen_x+aru_x+ara_x+ari1_x+ari2_x+ari3_x+are1_x+are2_x, - arou_x+ii_x+itasi_x+itadaku_x+iru_x+eru_x+kakeru_x+kaneru_x, - karazu_x+gatai_x+gatida_x+kudasaru_x+gozai_x+sa1_x+si1_x+siro_x, - jyau_x+jimau_x+sugiru_x+subesi_x+suru_x+sure_x+se_x+seyo_x, - tamau_x+tayu_x+timau_x+dekiru_x+naru_x+nasai_x+nasaru_x+nikui_x, - yasui_x+yoi_x+yaru_x+ttarasii_x - }; - -static u_char shuujo[] = { - wo_x+ttatte_o+ttara_o+tte1_o+tte2_x+ppanasi_x+ppoi_x+ue_x, - uti_x+oite_x+okeru_x+ori_x+ka1_x+ka2_x+kai_x+kasira_x, - katagata_x+kadouka_x+kana_x+kane_x+kamo_x+kara1_x+kara2_x+ga1_x, - ga2_x+gatera_x+kiri_x+kuseni_x+kurai_x+gurumi_x+kedo_x+koso_x, - koto_x+sa2_x+sae_x+si2_x+sika_x+sura_x+zutu_x+zo_x, - tame_x+dake_x+dano_o+darake_x+tuite_x+tuki_x+tutu_x+tumori_x, - te1_x+te2_x+teru_x+dearou_x+deru_x+to1_x+to2_o+totte_x, - toiu_o+toori_x+toki_x+tokoro_x+tote_x+tohaie_o+tomo_x+do_x, - doori_x+dokoro_x+dokoroka_x+domo_x+na1_x+naa_x+nagara_x+nazo_o, - nado_o+nari_x+nanka_o+nanzo_o+nante_o+ni1_x+ni2_x+ni3_x, - nite_x+nimo_x+ne1_x+nee_x+no1_x+no2_x+node_x+noni_x, - nomi_x+nominrz_x+ha_x+hazu_x+ba_x+bakari_x+he_x+hou_x, - hoka_x+hodo_x+made_x+mama_x+mo1_x+mo2_x+motte_x+mono_x, - ya1_x+ya2_x+yara_x+yue_x+yo_x+yori_x+wa_x+wake_x, - wane_x+wayo_x+nn1_x+jya_x+tya_x+nagara2_x+wo_s_x, - ze_x+kke_x+n_si_x+deha_x, - - gotosi_x+saseru_x+zaru_x+zu_x+zunba_x+seru_x+souda_x+youtai_x, - denbun_x+ta_x+tai_x+tagaru_x+taru_x+da1_x+da2_x+daxtu_x, - darou_x+de_x+desi_x+desho_x+desu_x+na2_x+nara_x+nai_x, - nu_x+ne2_x+nn2_x+fuuda_x+besi_x+mai_x+masu_x+masure_x, - mase_x+mitaida_x+you_x+youda_x+rasii_x+rareru_x+reru_x+site_x, - - yougen_x+aru_x+ara_x+ari1_x+ari2_x+ari3_x+are1_x+are2_x, - arou_x+ii_x+itasi_x+itadaku_x+iru_x+eru_x+kakeru_x+kaneru_x, - karazu_x+gatai_x+gatida_x+kudasaru_x+gozai_x+sa1_x+si1_x+siro_x, - jyau_x+jimau_x+sugiru_x+subesi_x+suru_x+sure_x+se_x+seyo_x, - tamau_x+tayu_x+timau_x+dekiru_x+naru_x+nasai_x+nasaru_x+nikui_x, - yasui_x+yoi_x+yaru_x+ttarasii_x - }; - -static u_char wo[] = { - wo_x+ttatte_x+ttara_x+tte1_x+tte2_x+ppanasi_x+ppoi_x+ue_x, - uti_x+oite_x+okeru_x+ori_x+ka1_x+ka2_o+kai_x+kasira_x, - katagata_x+kadouka_x+kana_o+kane_o+kamo_x+kara1_x+kara2_x+ga1_x, - ga2_x+gatera_x+kiri_x+kuseni_x+kurai_x+gurumi_x+kedo_x+koso_x, - koto_x+sa2_o+sae_x+si2_x+sika_x+sura_x+zutu_x+zo_x, - tame_x+dake_x+dano_x+darake_x+tuite_x+tuki_x+tutu_x+tumori_x, - te1_x+te2_x+teru_x+dearou_x+deru_x+to1_x+to2_x+totte_x, - toiu_o+toori_x+toki_x+tokoro_x+tote_x+tohaie_o+tomo_x+do_x, - doori_x+dokoro_x+dokoroka_x+domo_x+na1_o+naa_o+nagara_x+nazo_x, - nado_x+nari_x+nanka_x+nanzo_x+nante_x+ni1_x+ni2_x+ni3_x, - nite_x+nimo_x+ne1_o+nee_o+no1_x+no2_x+node_x+noni_x, - nomi_x+nominrz_x+ha_x+hazu_x+ba_x+bakari_x+he_x+hou_x, - hoka_x+hodo_x+made_x+mama_x+mo1_o+mo2_x+motte_o+mono_x, - ya1_x+ya2_x+yara_o+yue_x+yo_o+yori_x+wa_x+wake_x, - wane_x+wayo_x+nn1_x+jya_x+tya_x+nagara2_x+wo_s_x, - ze_x+kke_x+n_si_x+deha_x, - - gotosi_x+saseru_x+zaru_x+zu_x+zunba_x+seru_x+souda_x+youtai_x, - denbun_x+ta_x+tai_x+tagaru_x+taru_x+da1_x+da2_x+daxtu_x, - darou_x+de_x+desi_x+desho_x+desu_x+na2_x+nara_x+nai_x, - nu_x+ne2_x+nn2_x+fuuda_x+besi_x+mai_x+masu_x+masure_x, - mase_x+mitaida_x+you_x+youda_x+rasii_o+rareru_o+reru_x+site_x, - - yougen_x+aru_x+ara_x+ari1_x+ari2_x+ari3_x+are1_x+are2_x, - arou_x+ii_x+itasi_x+itadaku_x+iru_x+eru_x+kakeru_x+kaneru_x, - karazu_x+gatai_x+gatida_x+kudasaru_x+gozai_x+sa1_x+si1_x+siro_x, - jyau_x+jimau_x+sugiru_x+subesi_x+suru_x+sure_x+se_x+seyo_x, - tamau_x+tayu_x+timau_x+dekiru_x+naru_x+nasai_x+nasaru_x+nikui_x, - yasui_x+yoi_x+yaru_x+ttarasii_x - }; - -static u_char wo_s[] = { - wo_x+ttatte_x+ttara_x+tte1_x+tte2_x+ppanasi_x+ppoi_x+ue_x, - uti_x+oite_x+okeru_x+ori_x+ka1_x+ka2_o+kai_x+kasira_x, - katagata_x+kadouka_x+kana_o+kane_o+kamo_x+kara1_x+kara2_x+ga1_x, - ga2_x+gatera_x+kiri_x+kuseni_x+kurai_x+gurumi_x+kedo_x+koso_x, - koto_x+sa2_o+sae_x+si2_x+sika_x+sura_x+zutu_x+zo_x, - tame_x+dake_x+dano_x+darake_x+tuite_x+tuki_x+tutu_x+tumori_x, - te1_x+te2_x+teru_x+dearou_x+deru_x+to1_x+to2_x+totte_x, - toiu_o+toori_x+toki_x+tokoro_x+tote_x+tohaie_o+tomo_x+do_x, - doori_x+dokoro_x+dokoroka_x+domo_x+na1_o+naa_o+nagara_x+nazo_x, - nado_x+nari_x+nanka_x+nanzo_x+nante_x+ni1_x+ni2_x+ni3_x, - nite_x+nimo_x+ne1_o+nee_o+no1_x+no2_x+node_x+noni_x, - nomi_x+nominrz_x+ha_x+hazu_x+ba_x+bakari_x+he_x+hou_x, - hoka_x+hodo_x+made_x+mama_x+mo1_o+mo2_x+motte_o+mono_x, - ya1_x+ya2_x+yara_o+yue_x+yo_o+yori_x+wa_x+wake_x, - wane_x+wayo_x+nn1_x+jya_x+tya_x+nagara2_x+wo_s_x, - ze_x+kke_x+n_si_x+deha_x, - - gotosi_x+saseru_x+zaru_x+zu_x+zunba_x+seru_x+souda_x+youtai_x, - denbun_x+ta_x+tai_x+tagaru_x+taru_x+da1_x+da2_x+daxtu_x, - darou_x+de_x+desi_x+desho_x+desu_x+na2_x+nara_x+nai_x, - nu_x+ne2_x+nn2_x+fuuda_x+besi_x+mai_x+masu_x+masure_x, - mase_x+mitaida_x+you_x+youda_x+rasii_o+rareru_o+reru_x+site_x, - - yougen_x+aru_x+ara_x+ari1_x+ari2_x+ari3_x+are1_x+are2_x, - arou_x+ii_x+itasi_x+itadaku_x+iru_x+eru_x+kakeru_x+kaneru_x, - karazu_x+gatai_x+gatida_x+kudasaru_x+gozai_x+sa1_o+si1_o+siro_o, - jyau_x+jimau_x+sugiru_x+subesi_o+suru_o+sure_o+se_o+seyo_o, - tamau_x+tayu_x+timau_x+dekiru_x+naru_x+nasai_x+nasaru_x+nikui_x, - yasui_x+yoi_x+yaru_x+ttarasii_x - }; - -static u_char ttatte[] = { - wo_x+ttatte_x+ttara_x+tte1_x+tte2_x+ppanasi_x+ppoi_x+ue_x, - uti_x+oite_x+okeru_x+ori_x+ka1_x+ka2_x+kai_x+kasira_x, - katagata_x+kadouka_x+kana_x+kane_x+kamo_x+kara1_x+kara2_x+ga1_x, - ga2_x+gatera_x+kiri_x+kuseni_x+kurai_x+gurumi_x+kedo_x+koso_x, - koto_x+sa2_o+sae_x+si2_x+sika_x+sura_x+zutu_x+zo_x, - tame_x+dake_x+dano_x+darake_x+tuite_x+tuki_x+tutu_x+tumori_x, - te1_x+te2_x+teru_x+dearou_x+deru_x+to1_x+to2_x+totte_x, - toiu_x+toori_x+toki_x+tokoro_x+tote_x+tohaie_x+tomo_x+do_x, - doori_x+dokoro_x+dokoroka_x+domo_x+na1_o+naa_o+nagara_x+nazo_x, - nado_x+nari_x+nanka_x+nanzo_x+nante_x+ni1_x+ni2_x+ni3_x, - nite_x+nimo_x+ne1_o+nee_o+no1_x+no2_x+node_x+noni_x, - nomi_x+nominrz_x+ha_x+hazu_x+ba_x+bakari_x+he_x+hou_x, - hoka_x+hodo_x+made_x+mama_x+mo1_x+mo2_x+motte_x+mono_x, - ya1_x+ya2_x+yara_x+yue_x+yo_x+yori_x+wa_x+wake_x, - wane_x+wayo_x+nn1_x+jya_x+tya_x+nagara2_x+wo_s_x, - ze_x+kke_x+n_si_x+deha_x, - - gotosi_x+saseru_x+zaru_x+zu_x+zunba_x+seru_x+souda_x+youtai_x, - denbun_x+ta_x+tai_x+tagaru_x+taru_x+da1_x+da2_x+daxtu_x, - darou_x+de_x+desi_x+desho_x+desu_x+na2_x+nara_x+nai_x, - nu_x+ne2_x+nn2_x+fuuda_x+besi_x+mai_x+masu_x+masure_x, - mase_x+mitaida_x+you_x+youda_x+rasii_x+rareru_x+reru_x+site_x, - - yougen_x+aru_x+ara_x+ari1_x+ari2_x+ari3_x+are1_x+are2_x, - arou_x+ii_x+itasi_x+itadaku_x+iru_x+eru_x+kakeru_x+kaneru_x, - karazu_x+gatai_x+gatida_x+kudasaru_x+gozai_x+sa1_x+si1_x+siro_x, - jyau_x+jimau_x+sugiru_x+subesi_x+suru_x+sure_x+se_x+seyo_x, - tamau_x+tayu_x+timau_x+dekiru_x+naru_x+nasai_x+nasaru_x+nikui_x, - yasui_x+yoi_x+yaru_x+ttarasii_x - }; - -static u_char ttara[] = { - wo_x+ttatte_x+ttara_x+tte1_x+tte2_x+ppanasi_x+ppoi_x+ue_x, - uti_x+oite_x+okeru_x+ori_x+ka1_x+ka2_x+kai_x+kasira_x, - katagata_x+kadouka_x+kana_x+kane_x+kamo_x+kara1_x+kara2_x+ga1_x, - ga2_x+gatera_x+kiri_x+kuseni_x+kurai_x+gurumi_x+kedo_x+koso_x, - koto_x+sa2_o+sae_x+si2_x+sika_x+sura_x+zutu_x+zo_x, - tame_x+dake_x+dano_x+darake_x+tuite_x+tuki_x+tutu_x+tumori_x, - te1_x+te2_x+teru_x+dearou_x+deru_x+to1_x+to2_x+totte_x, - toiu_x+toori_x+toki_x+tokoro_x+tote_x+tohaie_x+tomo_x+do_x, - doori_x+dokoro_x+dokoroka_x+domo_x+na1_o+naa_o+nagara_x+nazo_x, - nado_x+nari_x+nanka_x+nanzo_x+nante_x+ni1_x+ni2_x+ni3_x, - nite_x+nimo_x+ne1_o+nee_o+no1_x+no2_x+node_x+noni_x, - nomi_x+nominrz_x+ha_x+hazu_x+ba_x+bakari_x+he_x+hou_x, - hoka_x+hodo_x+made_x+mama_x+mo1_x+mo2_x+motte_x+mono_x, - ya1_x+ya2_x+yara_x+yue_x+yo_x+yori_x+wa_x+wake_x, - wane_x+wayo_x+nn1_x+jya_x+tya_x+nagara2_x+wo_s_x, - ze_x+kke_x+n_si_x+deha_x, - - gotosi_x+saseru_x+zaru_x+zu_x+zunba_x+seru_x+souda_x+youtai_x, - denbun_x+ta_x+tai_x+tagaru_x+taru_x+da1_x+da2_x+daxtu_x, - darou_x+de_x+desi_x+desho_x+desu_x+na2_x+nara_x+nai_x, - nu_x+ne2_x+nn2_x+fuuda_x+besi_x+mai_x+masu_x+masure_x, - mase_x+mitaida_x+you_x+youda_x+rasii_x+rareru_x+reru_x+site_x, - - yougen_x+aru_x+ara_x+ari1_x+ari2_x+ari3_x+are1_x+are2_x, - arou_x+ii_x+itasi_x+itadaku_x+iru_x+eru_x+kakeru_x+kaneru_x, - karazu_x+gatai_x+gatida_x+kudasaru_x+gozai_x+sa1_x+si1_x+siro_x, - jyau_x+jimau_x+sugiru_x+subesi_x+suru_x+sure_x+se_x+seyo_x, - tamau_x+tayu_x+timau_x+dekiru_x+naru_x+nasai_x+nasaru_x+nikui_x, - yasui_x+yoi_x+yaru_x+ttarasii_x - }; - -static u_char tte1[] = { - wo_x+ttatte_x+ttara_x+tte1_x+tte2_x+ppanasi_x+ppoi_x+ue_x, - uti_x+oite_x+okeru_x+ori_x+ka1_x+ka2_x+kai_x+kasira_x, - katagata_x+kadouka_x+kana_x+kane_x+kamo_x+kara1_x+kara2_x+ga1_x, - ga2_x+gatera_x+kiri_x+kuseni_x+kurai_x+gurumi_x+kedo_x+koso_x, - koto_x+sa2_o+sae_x+si2_x+sika_x+sura_x+zutu_x+zo_x, - tame_x+dake_x+dano_x+darake_x+tuite_x+tuki_x+tutu_x+tumori_x, - te1_x+te2_x+teru_x+dearou_x+deru_x+to1_x+to2_x+totte_x, - toiu_x+toori_x+toki_x+tokoro_x+tote_x+tohaie_x+tomo_x+do_x, - doori_x+dokoro_x+dokoroka_x+domo_x+na1_o+naa_o+nagara_x+nazo_x, - nado_x+nari_x+nanka_x+nanzo_x+nante_x+ni1_x+ni2_x+ni3_x, - nite_x+nimo_x+ne1_o+nee_o+no1_x+no2_x+node_x+noni_x, - nomi_x+nominrz_x+ha_x+hazu_x+ba_x+bakari_x+he_x+hou_x, - hoka_x+hodo_x+made_x+mama_x+mo1_x+mo2_x+motte_x+mono_x, - ya1_x+ya2_x+yara_x+yue_x+yo_o+yori_x+wa_x+wake_x, - wane_x+wayo_x+nn1_x+jya_x+tya_x+nagara2_x+wo_s_x, - ze_x+kke_x+n_si_x+deha_x, - - gotosi_x+saseru_x+zaru_x+zu_x+zunba_x+seru_x+souda_x+youtai_x, - denbun_x+ta_x+tai_x+tagaru_x+taru_x+da1_x+da2_x+daxtu_x, - darou_x+de_x+desi_x+desho_x+desu_x+na2_x+nara_x+nai_x, - nu_x+ne2_x+nn2_x+fuuda_x+besi_x+mai_x+masu_x+masure_x, - mase_x+mitaida_x+you_x+youda_x+rasii_x+rareru_x+reru_x+site_x, - - yougen_x+aru_x+ara_x+ari1_x+ari2_x+ari3_x+are1_x+are2_x, - arou_x+ii_x+itasi_x+itadaku_x+iru_x+eru_x+kakeru_x+kaneru_x, - karazu_x+gatai_x+gatida_x+kudasaru_x+gozai_x+sa1_x+si1_x+siro_x, - jyau_x+jimau_x+sugiru_x+subesi_x+suru_x+sure_x+se_x+seyo_x, - tamau_x+tayu_x+timau_x+dekiru_x+naru_x+nasai_x+nasaru_x+nikui_x, - yasui_x+yoi_x+yaru_x+ttarasii_x - }; - -static u_char tte2[] = { - wo_x+ttatte_x+ttara_x+tte1_x+tte2_x+ppanasi_x+ppoi_x+ue_x, - uti_x+oite_x+okeru_x+ori_x+ka1_x+ka2_x+kai_x+kasira_x, - katagata_x+kadouka_x+kana_x+kane_x+kamo_x+kara1_x+kara2_x+ga1_x, - ga2_x+gatera_x+kiri_x+kuseni_x+kurai_x+gurumi_x+kedo_x+koso_x, - koto_x+sa2_o+sae_x+si2_x+sika_x+sura_x+zutu_x+zo_x, - tame_x+dake_x+dano_x+darake_x+tuite_x+tuki_x+tutu_x+tumori_x, - te1_x+te2_x+teru_x+dearou_x+deru_x+to1_x+to2_x+totte_x, - toiu_x+toori_x+toki_x+tokoro_x+tote_x+tohaie_x+tomo_x+do_x, - doori_x+dokoro_x+dokoroka_x+domo_x+na1_o+naa_o+nagara_x+nazo_x, - nado_x+nari_x+nanka_x+nanzo_x+nante_x+ni1_x+ni2_x+ni3_x, - nite_x+nimo_x+ne1_o+nee_o+no1_x+no2_x+node_x+noni_x, - nomi_x+nominrz_x+ha_x+hazu_x+ba_x+bakari_x+he_x+hou_x, - hoka_x+hodo_x+made_x+mama_x+mo1_o+mo2_x+motte_x+mono_x, - ya1_x+ya2_x+yara_x+yue_x+yo_x+yori_x+wa_x+wake_x, - wane_x+wayo_x+nn1_x+jya_x+tya_x+nagara2_x+wo_s_x, - ze_x+kke_x+n_si_x+deha_x, - - gotosi_x+saseru_x+zaru_x+zu_x+zunba_x+seru_x+souda_x+youtai_x, - denbun_x+ta_x+tai_x+tagaru_x+taru_x+da1_x+da2_x+daxtu_x, - darou_x+de_x+desi_x+desho_x+desu_x+na2_x+nara_x+nai_x, - nu_x+ne2_x+nn2_x+fuuda_x+besi_x+mai_x+masu_x+masure_x, - mase_x+mitaida_x+you_x+youda_x+rasii_x+rareru_x+reru_x+site_x, - - yougen_x+aru_x+ara_x+ari1_x+ari2_x+ari3_x+are1_x+are2_x, - arou_x+ii_x+itasi_x+itadaku_x+iru_x+eru_x+kakeru_x+kaneru_x, - karazu_x+gatai_x+gatida_x+kudasaru_x+gozai_x+sa1_x+si1_x+siro_x, - jyau_x+jimau_x+sugiru_x+subesi_x+suru_x+sure_x+se_x+seyo_x, - tamau_x+tayu_x+timau_x+dekiru_x+naru_x+nasai_x+nasaru_x+nikui_x, - yasui_x+yoi_x+yaru_x+ttarasii_x - }; - -static u_char ppanasi[] = { - wo_o+ttatte_o+ttara_o+tte1_o+tte2_x+ppanasi_x+ppoi_x+ue_x, - uti_x+oite_x+okeru_x+ori_x+ka1_o+ka2_x+kai_x+kasira_o, - katagata_x+kadouka_o+kana_o+kane_o+kamo_o+kara1_o+kara2_x+ga1_o, - ga2_x+gatera_x+kiri_x+kuseni_x+kurai_o+gurumi_x+kedo_x+koso_o, - koto_x+sa2_o+sae_o+si2_x+sika_o+sura_o+zutu_x+zo_x, - tame_x+dake_o+dano_o+darake_x+tuite_x+tuki_x+tutu_x+tumori_x, - te1_x+te2_x+teru_x+dearou_x+deru_x+to1_x+to2_o+totte_x, - toiu_o+toori_x+toki_x+tokoro_x+tote_o+tohaie_o+tomo_x+do_x, - doori_x+dokoro_o+dokoroka_o+domo_x+na1_x+naa_x+nagara_x+nazo_o, - nado_o+nari_o+nanka_o+nanzo_o+nante_o+ni1_o+ni2_x+ni3_x, - nite_x+nimo_x+ne1_o+nee_o+no1_o+no2_x+node_x+noni_x, - nomi_o+nominrz_o+ha_o+hazu_x+ba_x+bakari_o+he_o+hou_x, - hoka_x+hodo_o+made_o+mama_x+mo1_x+mo2_o+motte_x+mono_x, - ya1_o+ya2_x+yara_o+yue_x+yo_o+yori_o+wa_x+wake_x, - wane_o+wayo_x+nn1_x+jya_o+tya_x+nagara2_x+wo_s_x, - ze_x+kke_x+n_si_x+deha_o, - - gotosi_x+saseru_x+zaru_x+zu_x+zunba_x+seru_x+souda_x+youtai_x, - denbun_x+ta_x+tai_x+tagaru_x+taru_x+da1_x+da2_o+daxtu_o, - darou_o+de_o+desi_o+desho_o+desu_o+na2_o+nara_o+nai_x, - nu_x+ne2_x+nn2_x+fuuda_x+besi_x+mai_x+masu_x+masure_x, - mase_x+mitaida_o+you_x+youda_x+rasii_o+rareru_x+reru_x+site_x, - - yougen_x+aru_x+ara_x+ari1_x+ari2_x+ari3_x+are1_x+are2_x, - arou_x+ii_x+itasi_x+itadaku_x+iru_x+eru_x+kakeru_x+kaneru_x, - karazu_x+gatai_x+gatida_x+kudasaru_x+gozai_x+sa1_x+si1_x+siro_x, - jyau_x+jimau_x+sugiru_x+subesi_x+suru_x+sure_x+se_x+seyo_x, - tamau_x+tayu_x+timau_x+dekiru_x+naru_x+nasai_x+nasaru_x+nikui_x, - yasui_x+yoi_x+yaru_x+ttarasii_x - }; - -static u_char ppoi[] = { - wo_x+ttatte_o+ttara_o+tte1_o+tte2_x+ppanasi_x+ppoi_x+ue_o, - uti_o+oite_x+okeru_x+ori_x+ka1_o+ka2_x+kai_x+kasira_o, - katagata_x+kadouka_o+kana_o+kane_o+kamo_o+kara1_x+kara2_o+ga1_x, - ga2_o+gatera_x+kiri_x+kuseni_o+kurai_o+gurumi_x+kedo_o+koso_x, - koto_o+sa2_o+sae_x+si2_o+sika_o+sura_x+zutu_x+zo_o, - tame_o+dake_o+dano_o+darake_x+tuite_x+tuki_x+tutu_x+tumori_o, - te1_x+te2_x+teru_x+dearou_o+deru_x+to1_x+to2_o+totte_x, - toiu_o+toori_x+toki_o+tokoro_o+tote_o+tohaie_o+tomo_x+do_x, - doori_x+dokoro_o+dokoroka_o+domo_x+na1_o+naa_o+nagara_x+nazo_o, - nado_o+nari_o+nanka_o+nanzo_o+nante_o+ni1_x+ni2_x+ni3_o, - nite_x+nimo_x+ne1_o+nee_o+no1_x+no2_o+node_o+noni_o, - nomi_o+nominrz_o+ha_x+hazu_o+ba_x+bakari_o+he_x+hou_o, - hoka_o+hodo_o+made_o+mama_x+mo1_o+mo2_x+motte_x+mono_o, - ya1_x+ya2_x+yara_o+yue_o+yo_o+yori_o+wa_o+wake_o, - wane_o+wayo_o+nn1_o+jya_o+tya_x+nagara2_x+wo_s_x, - ze_x+kke_x+n_si_x+deha_o, - - gotosi_x+saseru_x+zaru_x+zu_x+zunba_x+seru_x+souda_o+youtai_o, - denbun_x+ta_x+tai_x+tagaru_x+taru_x+da1_x+da2_x+daxtu_x, - darou_o+de_x+desi_o+desho_o+desu_o+na2_x+nara_x+nai_x, - nu_x+ne2_x+nn2_x+fuuda_x+besi_x+mai_x+masu_x+masure_x, - mase_x+mitaida_o+you_x+youda_o+rasii_o+rareru_x+reru_x+site_x, - - yougen_x+aru_x+ara_x+ari1_x+ari2_x+ari3_x+are1_x+are2_x, - arou_x+ii_x+itasi_x+itadaku_x+iru_x+eru_x+kakeru_x+kaneru_x, - karazu_x+gatai_x+gatida_x+kudasaru_x+gozai_x+sa1_x+si1_x+siro_x, - jyau_x+jimau_x+sugiru_x+subesi_x+suru_x+sure_x+se_x+seyo_x, - tamau_x+tayu_x+timau_x+dekiru_x+naru_x+nasai_x+nasaru_x+nikui_x, - yasui_x+yoi_x+yaru_x+ttarasii_x - }; - -static u_char ue[] = { - wo_x+ttatte_x+ttara_x+tte1_o+tte2_x+ppanasi_x+ppoi_x+ue_x, - uti_x+oite_x+okeru_x+ori_x+ka1_x+ka2_x+kai_x+kasira_x, - katagata_x+kadouka_x+kana_x+kane_x+kamo_x+kara1_x+kara2_x+ga1_x, - ga2_x+gatera_x+kiri_x+kuseni_x+kurai_x+gurumi_x+kedo_x+koso_x, - koto_x+sa2_x+sae_x+si2_x+sika_x+sura_x+zutu_x+zo_x, - tame_x+dake_x+dano_x+darake_x+tuite_x+tuki_x+tutu_x+tumori_x, - te1_x+te2_x+teru_x+dearou_x+deru_x+to1_x+to2_x+totte_x, - toiu_x+toori_x+toki_x+tokoro_x+tote_x+tohaie_x+tomo_x+do_x, - doori_x+dokoro_x+dokoroka_x+domo_x+na1_x+naa_x+nagara_x+nazo_x, - nado_x+nari_x+nanka_x+nanzo_x+nante_x+ni1_o+ni2_x+ni3_x, - nite_x+nimo_x+ne1_x+nee_x+no1_x+no2_x+node_x+noni_x, - nomi_x+nominrz_x+ha_x+hazu_x+ba_x+bakari_x+he_x+hou_x, - hoka_x+hodo_x+made_x+mama_x+mo1_x+mo2_x+motte_x+mono_x, - ya1_x+ya2_x+yara_x+yue_x+yo_x+yori_x+wa_x+wake_x, - wane_x+wayo_x+nn1_x+jya_x+tya_x+nagara2_x+wo_s_x, - ze_x+kke_x+n_si_x+deha_x, - - gotosi_x+saseru_x+zaru_x+zu_x+zunba_x+seru_x+souda_x+youtai_x, - denbun_x+ta_x+tai_x+tagaru_x+taru_x+da1_x+da2_x+daxtu_x, - darou_x+de_o+desi_x+desho_x+desu_x+na2_x+nara_x+nai_x, - nu_x+ne2_x+nn2_x+fuuda_x+besi_x+mai_x+masu_x+masure_x, - mase_x+mitaida_x+you_x+youda_x+rasii_x+rareru_x+reru_x+site_x, - - yougen_x+aru_x+ara_x+ari1_x+ari2_x+ari3_x+are1_x+are2_x, - arou_x+ii_x+itasi_x+itadaku_x+iru_x+eru_x+kakeru_x+kaneru_x, - karazu_x+gatai_x+gatida_x+kudasaru_x+gozai_x+sa1_x+si1_x+siro_x, - jyau_x+jimau_x+sugiru_x+subesi_x+suru_x+sure_x+se_x+seyo_x, - tamau_x+tayu_x+timau_x+dekiru_x+naru_x+nasai_x+nasaru_x+nikui_x, - yasui_x+yoi_x+yaru_x+ttarasii_x - }; - -static u_char uti[] = { - wo_x+ttatte_x+ttara_x+tte1_o+tte2_x+ppanasi_x+ppoi_x+ue_x, - uti_x+oite_x+okeru_x+ori_x+ka1_o+ka2_x+kai_x+kasira_o, - katagata_x+kadouka_o+kana_o+kane_o+kamo_o+kara1_o+kara2_x+ga1_o, - ga2_x+gatera_x+kiri_x+kuseni_x+kurai_x+gurumi_x+kedo_x+koso_x, - koto_x+sa2_o+sae_o+si2_x+sika_o+sura_o+zutu_x+zo_x, - tame_x+dake_o+dano_o+darake_x+tuite_x+tuki_x+tutu_x+tumori_x, - te1_x+te2_x+teru_x+dearou_x+deru_x+to1_x+to2_o+totte_x, - toiu_o+toori_x+toki_x+tokoro_x+tote_o+tohaie_o+tomo_x+do_x, - doori_x+dokoro_o+dokoroka_o+domo_x+na1_x+naa_x+nagara_x+nazo_o, - nado_o+nari_o+nanka_o+nanzo_o+nante_o+ni1_o+ni2_x+ni3_x, - nite_x+nimo_x+ne1_o+nee_o+no1_x+no2_x+node_x+noni_x, - nomi_x+nominrz_x+ha_o+hazu_x+ba_x+bakari_x+he_x+hou_x, - hoka_x+hodo_x+made_x+mama_x+mo1_o+mo2_x+motte_x+mono_x, - ya1_x+ya2_x+yara_o+yue_x+yo_o+yori_o+wa_x+wake_x, - wane_o+wayo_x+nn1_x+jya_o+tya_x+nagara2_x+wo_s_x, - ze_x+kke_x+n_si_x+deha_o, - - gotosi_x+saseru_x+zaru_x+zu_x+zunba_x+seru_x+souda_x+youtai_x, - denbun_x+ta_x+tai_x+tagaru_x+taru_x+da1_x+da2_o+daxtu_o, - darou_o+de_o+desi_o+desho_o+desu_o+na2_o+nara_o+nai_x, - nu_x+ne2_x+nn2_x+fuuda_x+besi_x+mai_x+masu_x+masure_x, - mase_x+mitaida_x+you_x+youda_x+rasii_o+rareru_x+reru_x+site_x, - - yougen_x+aru_x+ara_x+ari1_x+ari2_x+ari3_x+are1_x+are2_x, - arou_x+ii_x+itasi_x+itadaku_x+iru_x+eru_x+kakeru_x+kaneru_x, - karazu_x+gatai_x+gatida_x+kudasaru_x+gozai_x+sa1_x+si1_x+siro_x, - jyau_x+jimau_x+sugiru_x+subesi_x+suru_x+sure_x+se_x+seyo_x, - tamau_x+tayu_x+timau_x+dekiru_x+naru_x+nasai_x+nasaru_x+nikui_x, - yasui_x+yoi_x+yaru_x+ttarasii_x - }; - -static u_char oite[] = { - wo_x+ttatte_x+ttara_x+tte1_x+tte2_x+ppanasi_x+ppoi_x+ue_x, - uti_x+oite_x+okeru_x+ori_x+ka1_x+ka2_x+kai_x+kasira_x, - katagata_x+kadouka_x+kana_x+kane_x+kamo_x+kara1_x+kara2_x+ga1_x, - ga2_x+gatera_x+kiri_x+kuseni_x+kurai_x+gurumi_x+kedo_x+koso_o, - koto_x+sa2_o+sae_o+si2_x+sika_o+sura_o+zutu_x+zo_x, - tame_x+dake_o+dano_x+darake_x+tuite_x+tuki_x+tutu_x+tumori_x, - te1_x+te2_x+teru_x+dearou_x+deru_x+to1_x+to2_x+totte_x, - toiu_x+toori_x+toki_x+tokoro_x+tote_x+tohaie_x+tomo_x+do_x, - doori_x+dokoro_x+dokoroka_x+domo_x+na1_x+naa_x+nagara_x+nazo_x, - nado_x+nari_x+nanka_x+nanzo_x+nante_x+ni1_x+ni2_x+ni3_x, - nite_x+nimo_x+ne1_x+nee_x+no1_x+no2_x+node_x+noni_x, - nomi_o+nominrz_o+ha_o+hazu_x+ba_x+bakari_x+he_x+hou_x, - hoka_x+hodo_x+made_x+mama_x+mo1_o+mo2_x+motte_x+mono_x, - ya1_x+ya2_x+yara_x+yue_x+yo_x+yori_x+wa_x+wake_x, - wane_x+wayo_x+nn1_x+jya_o+tya_x+nagara2_x+wo_s_x, - ze_x+kke_x+n_si_x+deha_x, - - gotosi_x+saseru_x+zaru_x+zu_x+zunba_x+seru_x+souda_x+youtai_x, - denbun_x+ta_x+tai_x+tagaru_x+taru_x+da1_x+da2_x+daxtu_x, - darou_x+de_x+desi_x+desho_x+desu_x+na2_x+nara_x+nai_x, - nu_x+ne2_x+nn2_x+fuuda_x+besi_x+mai_x+masu_x+masure_x, - mase_x+mitaida_x+you_x+youda_x+rasii_x+rareru_x+reru_x+site_x, - - yougen_x+aru_x+ara_x+ari1_x+ari2_x+ari3_x+are1_x+are2_x, - arou_x+ii_x+itasi_x+itadaku_x+iru_x+eru_x+kakeru_x+kaneru_x, - karazu_x+gatai_x+gatida_x+kudasaru_x+gozai_x+sa1_x+si1_x+siro_x, - jyau_x+jimau_x+sugiru_x+subesi_x+suru_x+sure_x+se_x+seyo_x, - tamau_x+tayu_x+timau_x+dekiru_x+naru_x+nasai_x+nasaru_x+nikui_x, - yasui_x+yoi_x+yaru_x+ttarasii_x - }; - -static u_char okeru[] = { - wo_x+ttatte_x+ttara_x+tte1_x+tte2_x+ppanasi_x+ppoi_x+ue_x, - uti_x+oite_x+okeru_x+ori_x+ka1_x+ka2_x+kai_x+kasira_x, - katagata_x+kadouka_x+kana_x+kane_x+kamo_x+kara1_x+kara2_x+ga1_x, - ga2_x+gatera_x+kiri_x+kuseni_x+kurai_x+gurumi_x+kedo_x+koso_x, - koto_x+sa2_x+sae_x+si2_x+sika_x+sura_x+zutu_x+zo_x, - tame_x+dake_x+dano_x+darake_x+tuite_x+tuki_x+tutu_x+tumori_x, - te1_x+te2_x+teru_x+dearou_x+deru_x+to1_x+to2_x+totte_x, - toiu_x+toori_x+toki_x+tokoro_x+tote_x+tohaie_x+tomo_x+do_x, - doori_x+dokoro_x+dokoroka_x+domo_x+na1_x+naa_x+nagara_x+nazo_x, - nado_x+nari_x+nanka_x+nanzo_x+nante_x+ni1_x+ni2_x+ni3_x, - nite_x+nimo_x+ne1_x+nee_x+no1_x+no2_x+node_x+noni_x, - nomi_x+nominrz_x+ha_x+hazu_x+ba_x+bakari_x+he_x+hou_x, - hoka_x+hodo_x+made_x+mama_x+mo1_x+mo2_x+motte_x+mono_x, - ya1_x+ya2_x+yara_x+yue_x+yo_x+yori_x+wa_x+wake_x, - wane_x+wayo_x+nn1_x+jya_x+tya_x+nagara2_x+wo_s_x, - ze_x+kke_x+n_si_x+deha_x, - - gotosi_x+saseru_x+zaru_x+zu_x+zunba_x+seru_x+souda_x+youtai_x, - denbun_x+ta_x+tai_x+tagaru_x+taru_x+da1_x+da2_x+daxtu_x, - darou_x+de_x+desi_x+desho_x+desu_x+na2_x+nara_x+nai_x, - nu_x+ne2_x+nn2_x+fuuda_x+besi_x+mai_x+masu_x+masure_x, - mase_x+mitaida_x+you_x+youda_x+rasii_x+rareru_x+reru_x+site_x, - - yougen_x+aru_x+ara_x+ari1_x+ari2_x+ari3_x+are1_x+are2_x, - arou_x+ii_x+itasi_x+itadaku_x+iru_x+eru_x+kakeru_x+kaneru_x, - karazu_x+gatai_x+gatida_x+kudasaru_x+gozai_x+sa1_x+si1_x+siro_x, - jyau_x+jimau_x+sugiru_x+subesi_x+suru_x+sure_x+se_x+seyo_x, - tamau_x+tayu_x+timau_x+dekiru_x+naru_x+nasai_x+nasaru_x+nikui_x, - yasui_x+yoi_x+yaru_x+ttarasii_x - }; - -static u_char ori[] = { - wo_x+ttatte_x+ttara_x+tte1_x+tte2_x+ppanasi_x+ppoi_x+ue_x, - uti_x+oite_x+okeru_x+ori_x+ka1_x+ka2_x+kai_x+kasira_x, - katagata_x+kadouka_x+kana_x+kane_x+kamo_x+kara1_x+kara2_x+ga1_x, - ga2_x+gatera_x+kiri_x+kuseni_x+kurai_x+gurumi_x+kedo_x+koso_o, - koto_x+sa2_x+sae_o+si2_x+sika_o+sura_o+zutu_x+zo_x, - tame_x+dake_o+dano_x+darake_x+tuite_x+tuki_x+tutu_x+tumori_x, - te1_x+te2_x+teru_x+dearou_x+deru_x+to1_o+to2_x+totte_x, - toiu_x+toori_x+toki_x+tokoro_x+tote_x+tohaie_x+tomo_x+do_x, - doori_x+dokoro_x+dokoroka_x+domo_x+na1_x+naa_x+nagara_x+nazo_x, - nado_x+nari_x+nanka_x+nanzo_x+nante_x+ni1_o+ni2_x+ni3_x, - nite_x+nimo_x+ne1_x+nee_x+no1_x+no2_x+node_x+noni_x, - nomi_x+nominrz_x+ha_o+hazu_x+ba_x+bakari_x+he_x+hou_x, - hoka_x+hodo_x+made_x+mama_x+mo1_o+mo2_x+motte_x+mono_x, - ya1_x+ya2_x+yara_x+yue_x+yo_x+yori_x+wa_x+wake_x, - wane_x+wayo_x+nn1_x+jya_x+tya_x+nagara2_x+wo_s_x, - ze_x+kke_x+n_si_x+deha_x, - - gotosi_x+saseru_x+zaru_x+zu_x+zunba_x+seru_x+souda_x+youtai_x, - denbun_x+ta_x+tai_x+tagaru_x+taru_x+da1_x+da2_o+daxtu_o, - darou_o+de_o+desi_o+desho_o+desu_o+na2_o+nara_o+nai_x, - nu_x+ne2_x+nn2_x+fuuda_x+besi_x+mai_x+masu_x+masure_x, - mase_x+mitaida_x+you_x+youda_x+rasii_x+rareru_x+reru_x+site_x, - - yougen_x+aru_x+ara_x+ari1_x+ari2_x+ari3_x+are1_x+are2_x, - arou_x+ii_x+itasi_x+itadaku_x+iru_x+eru_x+kakeru_x+kaneru_x, - karazu_x+gatai_x+gatida_x+kudasaru_x+gozai_x+sa1_x+si1_x+siro_x, - jyau_x+jimau_x+sugiru_x+subesi_x+suru_x+sure_x+se_x+seyo_x, - tamau_x+tayu_x+timau_x+dekiru_x+naru_x+nasai_x+nasaru_x+nikui_x, - yasui_x+yoi_x+yaru_x+ttarasii_x - }; - -static u_char ka1[] = { - wo_o+ttatte_x+ttara_x+tte1_x+tte2_x+ppanasi_x+ppoi_x+ue_x, - uti_x+oite_x+okeru_x+ori_x+ka1_x+ka2_x+kai_x+kasira_x, - katagata_x+kadouka_x+kana_x+kane_x+kamo_x+kara1_x+kara2_x+ga1_o, - ga2_x+gatera_x+kiri_x+kuseni_x+kurai_x+gurumi_x+kedo_x+koso_x, - koto_x+sa2_x+sae_o+si2_x+sika_o+sura_o+zutu_x+zo_x, - tame_x+dake_o+dano_o+darake_x+tuite_x+tuki_x+tutu_x+tumori_x, - te1_x+te2_x+teru_x+dearou_x+deru_x+to1_x+to2_o+totte_x, - toiu_o+toori_x+toki_x+tokoro_x+tote_x+tohaie_x+tomo_x+do_x, - doori_x+dokoro_x+dokoroka_x+domo_x+na1_x+naa_o+nagara_x+nazo_o, - nado_o+nari_x+nanka_o+nanzo_o+nante_o+ni1_o+ni2_x+ni3_x, - nite_x+nimo_x+ne1_x+nee_x+no1_o+no2_x+node_x+noni_x, - nomi_o+nominrz_o+ha_o+hazu_x+ba_x+bakari_x+he_o+hou_x, - hoka_x+hodo_x+made_x+mama_x+mo1_x+mo2_x+motte_x+mono_x, - ya1_x+ya2_x+yara_x+yue_x+yo_x+yori_x+wa_x+wake_x, - wane_x+wayo_x+nn1_x+jya_o+tya_x+nagara2_x+wo_s_x, - ze_x+kke_x+n_si_x+deha_o, - - gotosi_x+saseru_x+zaru_x+zu_x+zunba_x+seru_x+souda_x+youtai_x, - denbun_x+ta_x+tai_x+tagaru_x+taru_x+da1_x+da2_o+daxtu_o, - darou_o+de_o+desi_o+desho_o+desu_o+na2_o+nara_o+nai_x, - nu_x+ne2_x+nn2_x+fuuda_x+besi_x+mai_x+masu_x+masure_x, - mase_x+mitaida_x+you_x+youda_x+rasii_o+rareru_x+reru_x+site_x, - - yougen_x+aru_x+ara_x+ari1_x+ari2_x+ari3_x+are1_x+are2_x, - arou_x+ii_x+itasi_x+itadaku_x+iru_x+eru_x+kakeru_x+kaneru_x, - karazu_x+gatai_x+gatida_x+kudasaru_x+gozai_x+sa1_x+si1_x+siro_x, - jyau_x+jimau_x+sugiru_x+subesi_x+suru_x+sure_x+se_x+seyo_x, - tamau_x+tayu_x+timau_x+dekiru_x+naru_x+nasai_x+nasaru_x+nikui_x, - yasui_x+yoi_x+yaru_x+ttarasii_x - }; - - -static u_char ka2[] = { - wo_o+ttatte_x+ttara_x+tte1_x+tte2_x+ppanasi_x+ppoi_x+ue_x, - uti_x+oite_x+okeru_x+ori_x+ka1_x+ka2_x+kai_x+kasira_x, - katagata_x+kadouka_x+kana_x+kane_x+kamo_x+kara1_x+kara2_x+ga1_x, - ga2_x+gatera_x+kiri_x+kuseni_x+kurai_x+gurumi_x+kedo_x+koso_x, - koto_x+sa2_x+sae_x+si2_x+sika_x+sura_x+zutu_x+zo_x, - tame_x+dake_x+dano_x+darake_x+tuite_x+tuki_x+tutu_x+tumori_x, - te1_x+te2_x+teru_x+dearou_x+deru_x+to1_x+to2_o+totte_x, - toiu_o+toori_x+toki_x+tokoro_x+tote_x+tohaie_o+tomo_x+do_x, - doori_x+dokoro_x+dokoroka_x+domo_x+na1_x+naa_o+nagara_x+nazo_o, - nado_o+nari_x+nanka_o+nanzo_o+nante_o+ni1_x+ni2_x+ni3_x, - nite_x+nimo_x+ne1_o+nee_o+no1_x+no2_x+node_x+noni_x, - nomi_x+nominrz_x+ha_x+hazu_x+ba_x+bakari_x+he_x+hou_x, - hoka_x+hodo_x+made_x+mama_x+mo1_x+mo2_x+motte_x+mono_x, - ya1_x+ya2_x+yara_x+yue_x+yo_x+yori_x+wa_x+wake_x, - wane_x+wayo_x+nn1_x+jya_o+tya_x+nagara2_x+wo_s_x, - ze_x+kke_x+n_si_x+deha_o, - - gotosi_x+saseru_x+zaru_x+zu_x+zunba_x+seru_x+souda_x+youtai_x, - denbun_x+ta_x+tai_x+tagaru_x+taru_x+da1_x+da2_x+daxtu_x, - darou_x+de_x+desi_x+desho_x+desu_x+na2_x+nara_x+nai_x, - nu_x+ne2_x+nn2_x+fuuda_x+besi_x+mai_x+masu_x+masure_x, - mase_x+mitaida_x+you_x+youda_x+rasii_x+rareru_x+reru_x+site_x, - - yougen_x+aru_x+ara_x+ari1_x+ari2_x+ari3_x+are1_x+are2_x, - arou_x+ii_x+itasi_x+itadaku_x+iru_x+eru_x+kakeru_x+kaneru_x, - karazu_x+gatai_x+gatida_x+kudasaru_x+gozai_x+sa1_x+si1_x+siro_x, - jyau_x+jimau_x+sugiru_x+subesi_x+suru_x+sure_x+se_x+seyo_x, - tamau_x+tayu_x+timau_x+dekiru_x+naru_x+nasai_x+nasaru_x+nikui_x, - yasui_x+yoi_x+yaru_x+ttarasii_x - }; - -static u_char katagata[] = { - wo_x+ttatte_x+ttara_x+tte1_x+tte2_x+ppanasi_x+ppoi_x+ue_x, - uti_x+oite_x+okeru_x+ori_x+ka1_x+ka2_x+kai_x+kasira_x, - katagata_x+kadouka_x+kana_x+kane_x+kamo_x+kara1_x+kara2_x+ga1_x, - ga2_x+gatera_x+kiri_x+kuseni_x+kurai_x+gurumi_x+kedo_x+koso_x, - koto_x+sa2_x+sae_x+si2_x+sika_x+sura_x+zutu_x+zo_x, - tame_x+dake_x+dano_x+darake_x+tuite_x+tuki_x+tutu_x+tumori_x, - te1_x+te2_x+teru_x+dearou_x+deru_x+to1_x+to2_x+totte_x, - toiu_x+toori_x+toki_x+tokoro_x+tote_x+tohaie_x+tomo_x+do_x, - doori_x+dokoro_x+dokoroka_x+domo_x+na1_x+naa_x+nagara_x+nazo_x, - nado_x+nari_x+nanka_x+nanzo_x+nante_x+ni1_o+ni2_x+ni3_x, - nite_x+nimo_x+ne1_x+nee_x+no1_x+no2_x+node_x+noni_x, - nomi_x+nominrz_x+ha_x+hazu_x+ba_x+bakari_x+he_x+hou_x, - hoka_x+hodo_x+made_x+mama_x+mo1_x+mo2_x+motte_x+mono_x, - ya1_x+ya2_x+yara_x+yue_x+yo_x+yori_x+wa_x+wake_x, - wane_x+wayo_x+nn1_x+jya_x+tya_x+nagara2_x+wo_s_x, - ze_x+kke_x+n_si_x+deha_x, - - gotosi_x+saseru_x+zaru_x+zu_x+zunba_x+seru_x+souda_x+youtai_x, - denbun_x+ta_x+tai_x+tagaru_x+taru_x+da1_x+da2_x+daxtu_x, - darou_x+de_o+desi_x+desho_x+desu_x+na2_x+nara_x+nai_x, - nu_x+ne2_x+nn2_x+fuuda_x+besi_x+mai_x+masu_x+masure_x, - mase_x+mitaida_x+you_x+youda_x+rasii_x+rareru_x+reru_x+site_x, - - yougen_x+aru_x+ara_x+ari1_x+ari2_x+ari3_x+are1_x+are2_x, - arou_x+ii_x+itasi_x+itadaku_x+iru_x+eru_x+kakeru_x+kaneru_x, - karazu_x+gatai_x+gatida_x+kudasaru_x+gozai_x+sa1_x+si1_x+siro_x, - jyau_x+jimau_x+sugiru_x+subesi_x+suru_x+sure_x+se_x+seyo_x, - tamau_x+tayu_x+timau_x+dekiru_x+naru_x+nasai_x+nasaru_x+nikui_x, - yasui_x+yoi_x+yaru_x+ttarasii_x - }; - -static u_char kadouka[] = { - wo_o+ttatte_o+ttara_x+tte1_o+tte2_x+ppanasi_x+ppoi_x+ue_x, - uti_x+oite_x+okeru_x+ori_x+ka1_x+ka2_x+kai_x+kasira_x, - katagata_x+kadouka_x+kana_x+kane_x+kamo_x+kara1_x+kara2_x+ga1_o, - ga2_x+gatera_x+kiri_x+kuseni_x+kurai_x+gurumi_x+kedo_x+koso_x, - koto_x+sa2_x+sae_o+si2_x+sika_o+sura_x+zutu_x+zo_x, - tame_x+dake_o+dano_o+darake_x+tuite_x+tuki_x+tutu_x+tumori_x, - te1_x+te2_x+teru_x+dearou_x+deru_x+to1_x+to2_o+totte_x, - toiu_x+toori_x+toki_x+tokoro_x+tote_x+tohaie_x+tomo_x+do_x, - doori_x+dokoro_x+dokoroka_x+domo_x+na1_x+naa_x+nagara_x+nazo_o, - nado_o+nari_x+nanka_o+nanzo_o+nante_o+ni1_x+ni2_x+ni3_o, - nite_x+nimo_x+ne1_x+nee_x+no1_o+no2_x+node_x+noni_x, - nomi_o+nominrz_o+ha_o+hazu_x+ba_x+bakari_x+he_x+hou_x, - hoka_x+hodo_x+made_o+mama_x+mo1_o+mo2_x+motte_x+mono_x, - ya1_x+ya2_x+yara_x+yue_x+yo_x+yori_o+wa_x+wake_x, - wane_x+wayo_x+nn1_x+jya_o+tya_x+nagara2_x+wo_s_x, - ze_x+kke_x+n_si_x+deha_o, - - gotosi_x+saseru_x+zaru_x+zu_x+zunba_x+seru_x+souda_x+youtai_x, - denbun_x+ta_x+tai_x+tagaru_x+taru_x+da1_x+da2_o+daxtu_o, - darou_o+de_o+desi_o+desho_o+desu_o+na2_o+nara_o+nai_x, - nu_x+ne2_x+nn2_x+fuuda_x+besi_x+mai_x+masu_x+masure_x, - mase_x+mitaida_x+you_x+youda_x+rasii_o+rareru_x+reru_x+site_x, - - yougen_x+aru_x+ara_x+ari1_x+ari2_x+ari3_x+are1_x+are2_x, - arou_x+ii_x+itasi_x+itadaku_x+iru_x+eru_x+kakeru_x+kaneru_x, - karazu_x+gatai_x+gatida_x+kudasaru_x+gozai_x+sa1_x+si1_x+siro_x, - jyau_x+jimau_x+sugiru_x+subesi_x+suru_x+sure_x+se_x+seyo_x, - tamau_x+tayu_x+timau_x+dekiru_x+naru_x+nasai_x+nasaru_x+nikui_x, - yasui_x+yoi_x+yaru_x+ttarasii_x - }; - -static u_char kamo[] = { - wo_x+ttatte_x+ttara_x+tte1_x+tte2_x+ppanasi_x+ppoi_x+ue_x, - uti_x+oite_x+okeru_x+ori_x+ka1_x+ka2_x+kai_x+kasira_x, - katagata_x+kadouka_x+kana_x+kane_x+kamo_x+kara1_x+kara2_x+ga1_x, - ga2_x+gatera_x+kiri_x+kuseni_x+kurai_x+gurumi_x+kedo_x+koso_x, - koto_x+sa2_x+sae_x+si2_x+sika_x+sura_x+zutu_x+zo_x, - tame_x+dake_x+dano_x+darake_x+tuite_x+tuki_x+tutu_x+tumori_x, - te1_x+te2_x+teru_x+dearou_x+deru_x+to1_x+to2_x+totte_x, - toiu_x+toori_x+toki_x+tokoro_x+tote_x+tohaie_x+tomo_x+do_x, - doori_x+dokoro_x+dokoroka_x+domo_x+na1_x+naa_x+nagara_x+nazo_x, - nado_x+nari_x+nanka_x+nanzo_x+nante_x+ni1_x+ni2_x+ni3_x, - nite_x+nimo_x+ne1_x+nee_x+no1_x+no2_x+node_x+noni_x, - nomi_x+nominrz_x+ha_x+hazu_x+ba_x+bakari_x+he_x+hou_x, - hoka_x+hodo_x+made_x+mama_x+mo1_x+mo2_x+motte_x+mono_x, - ya1_x+ya2_x+yara_x+yue_x+yo_x+yori_x+wa_x+wake_x, - wane_x+wayo_x+nn1_x+jya_x+tya_x+nagara2_x+wo_s_x, - ze_x+kke_x+n_si_x+deha_x, - - gotosi_x+saseru_x+zaru_x+zu_x+zunba_x+seru_x+souda_x+youtai_x, - denbun_x+ta_x+tai_x+tagaru_x+taru_x+da1_x+da2_x+daxtu_x, - darou_x+de_x+desi_x+desho_x+desu_x+na2_x+nara_x+nai_x, - nu_x+ne2_x+nn2_x+fuuda_x+besi_x+mai_x+masu_x+masure_x, - mase_x+mitaida_x+you_x+youda_x+rasii_x+rareru_x+reru_x+site_x, - - yougen_x+aru_x+ara_x+ari1_x+ari2_x+ari3_x+are1_x+are2_x, - arou_x+ii_x+itasi_x+itadaku_x+iru_x+eru_x+kakeru_x+kaneru_x, - karazu_x+gatai_x+gatida_x+kudasaru_x+gozai_x+sa1_x+si1_x+siro_x, - jyau_x+jimau_x+sugiru_x+subesi_x+suru_x+sure_x+se_x+seyo_x, - tamau_x+tayu_x+timau_x+dekiru_x+naru_x+nasai_x+nasaru_x+nikui_x, - yasui_x+yoi_x+yaru_x+ttarasii_x - }; - -static u_char kara1[] = { - wo_x+ttatte_x+ttara_x+tte1_o+tte2_x+ppanasi_x+ppoi_x+ue_x, - uti_x+oite_x+okeru_x+ori_x+ka1_o+ka2_x+kai_x+kasira_o, - katagata_x+kadouka_o+kana_o+kane_o+kamo_o+kara1_x+kara2_x+ga1_o, - ga2_x+gatera_x+kiri_x+kuseni_x+kurai_x+gurumi_x+kedo_x+koso_o, - koto_x+sa2_o+sae_o+si2_x+sika_o+sura_x+zutu_x+zo_x, - tame_x+dake_o+dano_o+darake_x+tuite_x+tuki_x+tutu_x+tumori_x, - te1_x+te2_x+teru_x+dearou_x+deru_x+to1_x+to2_o+totte_x, - toiu_o+toori_x+toki_x+tokoro_x+tote_o+tohaie_o+tomo_x+do_x, - doori_x+dokoro_x+dokoroka_o+domo_x+na1_x+naa_x+nagara_x+nazo_o, - nado_o+nari_o+nanka_o+nanzo_o+nante_o+ni1_o+ni2_x+ni3_x, - nite_x+nimo_x+ne1_o+nee_o+no1_o+no2_x+node_x+noni_x, - nomi_x+nominrz_x+ha_o+hazu_x+ba_x+bakari_o+he_x+hou_x, - hoka_x+hodo_x+made_x+mama_x+mo1_o+mo2_x+motte_x+mono_x, - ya1_o+ya2_x+yara_x+yue_x+yo_o+yori_o+wa_x+wake_x, - wane_o+wayo_x+nn1_x+jya_o+tya_x+nagara2_x+wo_s_x, - ze_x+kke_x+n_si_x+deha_o, - - gotosi_x+saseru_x+zaru_x+zu_x+zunba_x+seru_x+souda_x+youtai_x, - denbun_x+ta_x+tai_x+tagaru_x+taru_x+da1_x+da2_o+daxtu_o, - darou_o+de_o+desi_o+desho_o+desu_o+na2_o+nara_o+nai_x, - nu_x+ne2_x+nn2_x+fuuda_x+besi_x+mai_x+masu_x+masure_x, - mase_x+mitaida_x+you_x+youda_x+rasii_x+rareru_x+reru_x+site_x, - - yougen_x+aru_x+ara_x+ari1_x+ari2_x+ari3_x+are1_x+are2_x, - arou_x+ii_x+itasi_x+itadaku_x+iru_x+eru_x+kakeru_x+kaneru_x, - karazu_x+gatai_x+gatida_x+kudasaru_x+gozai_x+sa1_x+si1_x+siro_x, - jyau_x+jimau_x+sugiru_x+subesi_x+suru_x+sure_x+se_x+seyo_x, - tamau_x+tayu_x+timau_x+dekiru_x+naru_x+nasai_x+nasaru_x+nikui_x, - yasui_x+yoi_x+yaru_x+ttarasii_x - }; - -static u_char kara2[] = { - wo_x+ttatte_o+ttara_x+tte1_o+tte2_x+ppanasi_x+ppoi_x+ue_x, - uti_x+oite_x+okeru_x+ori_x+ka1_o+ka2_x+kai_x+kasira_o, - katagata_x+kadouka_o+kana_o+kane_o+kamo_o+kara1_x+kara2_x+ga1_x, - ga2_x+gatera_x+kiri_x+kuseni_x+kurai_x+gurumi_x+kedo_x+koso_o, - koto_x+sa2_o+sae_x+si2_x+sika_x+sura_x+zutu_x+zo_x, - tame_x+dake_x+dano_o+darake_x+tuite_x+tuki_x+tutu_x+tumori_x, - te1_x+te2_x+teru_x+dearou_x+deru_x+to1_x+to2_o+totte_x, - toiu_o+toori_x+toki_x+tokoro_x+tote_o+tohaie_o+tomo_x+do_x, - doori_x+dokoro_x+dokoroka_x+domo_x+na1_o+naa_o+nagara_x+nazo_o, - nado_o+nari_x+nanka_o+nanzo_o+nante_o+ni1_x+ni2_x+ni3_o, - nite_x+nimo_x+ne1_o+nee_o+no1_x+no2_x+node_x+noni_x, - nomi_x+nominrz_x+ha_x+hazu_x+ba_x+bakari_x+he_x+hou_x, - hoka_x+hodo_x+made_x+mama_x+mo1_x+mo2_x+motte_x+mono_x, - ya1_x+ya2_x+yara_x+yue_x+yo_o+yori_o+wa_x+wake_x, - wane_x+wayo_x+nn1_x+jya_o+tya_x+nagara2_x+wo_s_x, - ze_x+kke_x+n_si_x+deha_o, - - gotosi_x+saseru_x+zaru_x+zu_x+zunba_x+seru_x+souda_x+youtai_x, - denbun_x+ta_x+tai_x+tagaru_x+taru_x+da1_x+da2_o+daxtu_o, - darou_o+de_o+desi_o+desho_o+desu_o+na2_o+nara_o+nai_x, - nu_x+ne2_x+nn2_x+fuuda_x+besi_x+mai_x+masu_x+masure_x, - mase_x+mitaida_o+you_x+youda_x+rasii_o+rareru_x+reru_x+site_x, - - yougen_x+aru_x+ara_x+ari1_x+ari2_x+ari3_x+are1_x+are2_x, - arou_x+ii_x+itasi_x+itadaku_x+iru_x+eru_x+kakeru_x+kaneru_x, - karazu_x+gatai_x+gatida_x+kudasaru_x+gozai_x+sa1_x+si1_x+siro_x, - jyau_x+jimau_x+sugiru_x+subesi_x+suru_x+sure_x+se_x+seyo_x, - tamau_x+tayu_x+timau_x+dekiru_x+naru_x+nasai_x+nasaru_x+nikui_x, - yasui_x+yoi_x+yaru_x+ttarasii_x - }; - -static u_char ga1[] = { - wo_x+ttatte_x+ttara_x+tte1_x+tte2_x+ppanasi_x+ppoi_x+ue_x, - uti_x+oite_x+okeru_x+ori_x+ka1_x+ka2_x+kai_x+kasira_x, - katagata_x+kadouka_x+kana_x+kane_x+kamo_x+kara1_x+kara2_x+ga1_x, - ga2_x+gatera_x+kiri_x+kuseni_x+kurai_x+gurumi_x+kedo_x+koso_x, - koto_x+sa2_x+sae_x+si2_x+sika_x+sura_x+zutu_x+zo_x, - tame_x+dake_x+dano_x+darake_x+tuite_x+tuki_x+tutu_x+tumori_x, - te1_x+te2_x+teru_x+dearou_x+deru_x+to1_x+to2_x+totte_x, - toiu_x+toori_x+toki_x+tokoro_x+tote_x+tohaie_x+tomo_x+do_x, - doori_x+dokoro_x+dokoroka_x+domo_x+na1_x+naa_x+nagara_x+nazo_o, - nado_o+nari_x+nanka_x+nanzo_x+nante_x+ni1_x+ni2_x+ni3_x, - nite_x+nimo_x+ne1_o+nee_o+no1_x+no2_x+node_x+noni_x, - nomi_x+nominrz_x+ha_x+hazu_x+ba_x+bakari_x+he_x+hou_x, - hoka_x+hodo_x+made_x+mama_x+mo1_x+mo2_x+motte_x+mono_x, - ya1_x+ya2_x+yara_x+yue_x+yo_x+yori_x+wa_x+wake_x, - wane_x+wayo_x+nn1_x+jya_x+tya_x+nagara2_x+wo_s_x, - ze_x+kke_x+n_si_x+deha_x, - - gotosi_x+saseru_x+zaru_x+zu_x+zunba_x+seru_x+souda_x+youtai_x, - denbun_x+ta_x+tai_x+tagaru_x+taru_x+da1_x+da2_x+daxtu_x, - darou_x+de_x+desi_x+desho_x+desu_x+na2_x+nara_x+nai_o, - nu_x+ne2_x+nn2_x+fuuda_x+besi_x+mai_x+masu_x+masure_x, - mase_x+mitaida_x+you_x+youda_x+rasii_x+rareru_x+reru_x+site_x, - - yougen_x+aru_o+ara_o+ari1_x+ari2_o+ari3_x+are1_x+are2_o, - arou_x+ii_o+itasi_x+itadaku_x+iru_x+eru_x+kakeru_x+kaneru_x, - karazu_x+gatai_x+gatida_x+kudasaru_x+gozai_o+sa1_o+si1_o+siro_o, - jyau_x+jimau_x+sugiru_x+subesi_o+suru_o+sure_o+se_o+seyo_o, - tamau_x+tayu_x+timau_x+dekiru_x+naru_x+nasai_x+nasaru_x+nikui_x, - yasui_x+yoi_x+yaru_x+ttarasii_x - }; - -static u_char ga2[] = { - wo_x+ttatte_x+ttara_x+tte1_x+tte2_x+ppanasi_x+ppoi_x+ue_x, - uti_x+oite_x+okeru_x+ori_x+ka1_x+ka2_x+kai_x+kasira_x, - katagata_x+kadouka_x+kana_x+kane_x+kamo_x+kara1_x+kara2_x+ga1_x, - ga2_x+gatera_x+kiri_x+kuseni_x+kurai_x+gurumi_x+kedo_x+koso_x, - koto_x+sa2_x+sae_x+si2_x+sika_x+sura_x+zutu_x+zo_x, - tame_x+dake_x+dano_x+darake_x+tuite_x+tuki_x+tutu_x+tumori_x, - te1_x+te2_x+teru_x+dearou_x+deru_x+to1_x+to2_x+totte_x, - toiu_x+toori_x+toki_x+tokoro_x+tote_x+tohaie_x+tomo_x+do_x, - doori_x+dokoro_x+dokoroka_x+domo_x+na1_x+naa_x+nagara_x+nazo_x, - nado_x+nari_x+nanka_x+nanzo_x+nante_x+ni1_x+ni2_x+ni3_x, - nite_x+nimo_x+ne1_o+nee_o+no1_x+no2_x+node_x+noni_x, - nomi_x+nominrz_x+ha_x+hazu_x+ba_x+bakari_x+he_x+hou_x, - hoka_x+hodo_x+made_x+mama_x+mo1_x+mo2_x+motte_x+mono_x, - ya1_x+ya2_x+yara_x+yue_o+yo_x+yori_x+wa_x+wake_x, - wane_x+wayo_x+nn1_x+jya_x+tya_x+nagara2_x+wo_s_x, - ze_x+kke_x+n_si_x+deha_x, - - gotosi_o+saseru_x+zaru_x+zu_x+zunba_x+seru_x+souda_x+youtai_x, - denbun_x+ta_x+tai_x+tagaru_x+taru_x+da1_x+da2_x+daxtu_x, - darou_x+de_x+desi_x+desho_x+desu_x+na2_x+nara_x+nai_x, - nu_x+ne2_x+nn2_x+fuuda_x+besi_x+mai_x+masu_x+masure_x, - mase_x+mitaida_x+you_x+youda_x+rasii_x+rareru_x+reru_x+site_x, - - yougen_x+aru_x+ara_x+ari1_x+ari2_x+ari3_x+are1_x+are2_x, - arou_x+ii_o+itasi_x+itadaku_x+iru_x+eru_x+kakeru_x+kaneru_x, - karazu_x+gatai_x+gatida_x+kudasaru_x+gozai_x+sa1_x+si1_x+siro_x, - jyau_x+jimau_x+sugiru_x+subesi_x+suru_x+sure_x+se_x+seyo_x, - tamau_x+tayu_x+timau_x+dekiru_x+naru_x+nasai_x+nasaru_x+nikui_x, - yasui_x+yoi_x+yaru_x+ttarasii_x - }; - -static u_char gatera[] = { - wo_x+ttatte_x+ttara_x+tte1_x+tte2_x+ppanasi_x+ppoi_x+ue_x, - uti_x+oite_x+okeru_x+ori_x+ka1_x+ka2_x+kai_x+kasira_x, - katagata_x+kadouka_x+kana_x+kane_x+kamo_x+kara1_x+kara2_x+ga1_x, - ga2_x+gatera_x+kiri_x+kuseni_x+kurai_x+gurumi_x+kedo_x+koso_x, - koto_x+sa2_x+sae_x+si2_x+sika_x+sura_x+zutu_x+zo_x, - tame_x+dake_x+dano_x+darake_x+tuite_x+tuki_x+tutu_x+tumori_x, - te1_x+te2_x+teru_x+dearou_x+deru_x+to1_x+to2_x+totte_x, - toiu_x+toori_x+toki_x+tokoro_x+tote_x+tohaie_x+tomo_x+do_x, - doori_x+dokoro_x+dokoroka_x+domo_x+na1_x+naa_x+nagara_x+nazo_x, - nado_x+nari_x+nanka_x+nanzo_x+nante_x+ni1_x+ni2_x+ni3_o, - nite_x+nimo_x+ne1_x+nee_x+no1_o+no2_x+node_x+noni_x, - nomi_x+nominrz_x+ha_o+hazu_x+ba_x+bakari_x+he_x+hou_x, - hoka_x+hodo_x+made_x+mama_x+mo1_o+mo2_x+motte_x+mono_x, - ya1_x+ya2_x+yara_x+yue_x+yo_x+yori_x+wa_x+wake_x, - wane_x+wayo_x+nn1_x+jya_x+tya_x+nagara2_x+wo_s_x, - ze_x+kke_x+n_si_x+deha_x, - - gotosi_x+saseru_x+zaru_x+zu_x+zunba_x+seru_x+souda_x+youtai_x, - denbun_x+ta_x+tai_x+tagaru_x+taru_x+da1_x+da2_x+daxtu_x, - darou_x+de_o+desi_x+desho_x+desu_x+na2_x+nara_x+nai_x, - nu_x+ne2_x+nn2_x+fuuda_x+besi_x+mai_x+masu_x+masure_x, - mase_x+mitaida_x+you_x+youda_x+rasii_x+rareru_x+reru_x+site_x, - - yougen_x+aru_x+ara_x+ari1_x+ari2_x+ari3_x+are1_x+are2_x, - arou_x+ii_x+itasi_x+itadaku_x+iru_x+eru_x+kakeru_x+kaneru_x, - karazu_x+gatai_x+gatida_x+kudasaru_x+gozai_x+sa1_x+si1_x+siro_x, - jyau_x+jimau_x+sugiru_x+subesi_x+suru_x+sure_x+se_x+seyo_x, - tamau_x+tayu_x+timau_x+dekiru_x+naru_x+nasai_x+nasaru_x+nikui_x, - yasui_x+yoi_x+yaru_x+ttarasii_x - }; - -static u_char kiri[] = { - wo_x+ttatte_x+ttara_x+tte1_x+tte2_x+ppanasi_x+ppoi_x+ue_x, - uti_x+oite_x+okeru_x+ori_x+ka1_x+ka2_x+kai_x+kasira_x, - katagata_x+kadouka_x+kana_x+kane_x+kamo_x+kara1_x+kara2_x+ga1_x, - ga2_x+gatera_x+kiri_x+kuseni_x+kurai_x+gurumi_x+kedo_x+koso_x, - koto_x+sa2_x+sae_x+si2_x+sika_x+sura_x+zutu_x+zo_x, - tame_x+dake_x+dano_x+darake_x+tuite_x+tuki_x+tutu_x+tumori_x, - te1_x+te2_x+teru_x+dearou_x+deru_x+to1_x+to2_x+totte_x, - toiu_x+toori_x+toki_x+tokoro_x+tote_x+tohaie_x+tomo_o+do_x, - doori_x+dokoro_x+dokoroka_x+domo_x+na1_x+naa_x+nagara_x+nazo_x, - nado_x+nari_x+nanka_x+nanzo_x+nante_x+ni1_x+ni2_x+ni3_x, - nite_x+nimo_x+ne1_x+nee_x+no1_o+no2_x+node_x+noni_x, - nomi_x+nominrz_x+ha_x+hazu_x+ba_x+bakari_x+he_x+hou_x, - hoka_x+hodo_x+made_x+mama_x+mo1_x+mo2_x+motte_x+mono_x, - ya1_x+ya2_x+yara_x+yue_x+yo_o+yori_x+wa_x+wake_x, - wane_x+wayo_x+nn1_x+jya_x+tya_x+nagara2_x+wo_s_x, - ze_x+kke_x+n_si_x+deha_x, - - gotosi_x+saseru_x+zaru_x+zu_x+zunba_x+seru_x+souda_x+youtai_x, - denbun_x+ta_x+tai_x+tagaru_x+taru_x+da1_x+da2_o+daxtu_o, - darou_o+de_o+desi_o+desho_o+desu_o+na2_o+nara_o+nai_x, - nu_x+ne2_x+nn2_x+fuuda_x+besi_x+mai_x+masu_x+masure_x, - mase_x+mitaida_o+you_x+youda_x+rasii_x+rareru_x+reru_x+site_x, - - yougen_x+aru_x+ara_x+ari1_x+ari2_x+ari3_x+are1_x+are2_x, - arou_x+ii_x+itasi_x+itadaku_x+iru_x+eru_x+kakeru_x+kaneru_x, - karazu_x+gatai_x+gatida_x+kudasaru_x+gozai_x+sa1_x+si1_x+siro_x, - jyau_x+jimau_x+sugiru_x+subesi_x+suru_x+sure_x+se_x+seyo_x, - tamau_x+tayu_x+timau_x+dekiru_x+naru_x+nasai_x+nasaru_x+nikui_x, - yasui_x+yoi_x+yaru_x+ttarasii_x - }; - -static u_char kuseni[] = { - wo_x+ttatte_x+ttara_x+tte1_x+tte2_x+ppanasi_x+ppoi_x+ue_x, - uti_x+oite_x+okeru_x+ori_x+ka1_x+ka2_x+kai_x+kasira_x, - katagata_x+kadouka_x+kana_x+kane_x+kamo_x+kara1_x+kara2_x+ga1_x, - ga2_x+gatera_x+kiri_x+kuseni_x+kurai_x+gurumi_x+kedo_x+koso_x, - koto_x+sa2_o+sae_x+si2_x+sika_x+sura_x+zutu_x+zo_x, - tame_x+dake_x+dano_x+darake_x+tuite_x+tuki_x+tutu_x+tumori_x, - te1_x+te2_x+teru_x+dearou_x+deru_x+to1_x+to2_x+totte_x, - toiu_x+toori_x+toki_x+tokoro_x+tote_x+tohaie_x+tomo_x+do_x, - doori_x+dokoro_x+dokoroka_x+domo_x+na1_o+naa_o+nagara_x+nazo_x, - nado_x+nari_x+nanka_x+nanzo_x+nante_x+ni1_x+ni2_x+ni3_x, - nite_x+nimo_x+ne1_o+nee_o+no1_x+no2_x+node_x+noni_x, - nomi_x+nominrz_x+ha_x+hazu_x+ba_x+bakari_x+he_x+hou_x, - hoka_x+hodo_x+made_x+mama_x+mo1_x+mo2_x+motte_x+mono_x, - ya1_x+ya2_x+yara_x+yue_x+yo_o+yori_x+wa_x+wake_x, - wane_x+wayo_x+nn1_x+jya_x+tya_x+nagara2_x+wo_s_x, - ze_x+kke_x+n_si_x+deha_x, - - gotosi_x+saseru_x+zaru_x+zu_x+zunba_x+seru_x+souda_x+youtai_x, - denbun_x+ta_x+tai_x+tagaru_x+taru_x+da1_x+da2_x+daxtu_x, - darou_x+de_x+desi_x+desho_x+desu_x+na2_x+nara_x+nai_x, - nu_x+ne2_x+nn2_x+fuuda_x+besi_x+mai_x+masu_x+masure_x, - mase_x+mitaida_x+you_x+youda_x+rasii_x+rareru_x+reru_x+site_x, - - yougen_x+aru_x+ara_x+ari1_x+ari2_x+ari3_x+are1_x+are2_x, - arou_x+ii_x+itasi_x+itadaku_x+iru_x+eru_x+kakeru_x+kaneru_x, - karazu_x+gatai_x+gatida_x+kudasaru_x+gozai_x+sa1_x+si1_x+siro_x, - jyau_x+jimau_x+sugiru_x+subesi_x+suru_x+sure_x+se_x+seyo_x, - tamau_x+tayu_x+timau_x+dekiru_x+naru_x+nasai_x+nasaru_x+nikui_x, - yasui_x+yoi_x+yaru_x+ttarasii_x - }; - -static u_char kurai[] = { - wo_o+ttatte_x+ttara_x+tte1_o+tte2_x+ppanasi_x+ppoi_x+ue_x, - uti_x+oite_x+okeru_x+ori_x+ka1_o+ka2_x+kai_x+kasira_o, - katagata_x+kadouka_o+kana_o+kane_o+kamo_o+kara1_o+kara2_x+ga1_o, - ga2_x+gatera_x+kiri_x+kuseni_x+kurai_x+gurumi_x+kedo_x+koso_o, - koto_x+sa2_o+sae_o+si2_x+sika_o+sura_x+zutu_x+zo_x, - tame_x+dake_o+dano_o+darake_x+tuite_x+tuki_x+tutu_x+tumori_x, - te1_x+te2_x+teru_x+dearou_x+deru_x+to1_o+to2_x+totte_x, - toiu_o+toori_x+toki_x+tokoro_x+tote_x+tohaie_o+tomo_o+do_x, - doori_x+dokoro_x+dokoroka_x+domo_x+na1_o+naa_o+nagara_x+nazo_x, - nado_x+nari_x+nanka_o+nanzo_o+nante_o+ni1_o+ni2_x+ni3_x, - nite_x+nimo_x+ne1_o+nee_o+no1_o+no2_x+node_x+noni_x, - nomi_x+nominrz_x+ha_o+hazu_x+ba_x+bakari_x+he_x+hou_x, - hoka_x+hodo_x+made_o+mama_x+mo1_o+mo2_x+motte_x+mono_x, - ya1_o+ya2_x+yara_o+yue_x+yo_o+yori_o+wa_x+wake_x, - wane_o+wayo_x+nn1_x+jya_o+tya_x+nagara2_x+wo_s_x, - ze_x+kke_x+n_si_x+deha_x, - - gotosi_x+saseru_x+zaru_x+zu_x+zunba_x+seru_x+souda_x+youtai_x, - denbun_x+ta_x+tai_x+tagaru_x+taru_x+da1_x+da2_o+daxtu_o, - darou_o+de_o+desi_o+desho_o+desu_o+na2_o+nara_o+nai_x, - nu_x+ne2_x+nn2_x+fuuda_x+besi_x+mai_x+masu_x+masure_x, - mase_x+mitaida_o+you_x+youda_x+rasii_o+rareru_x+reru_x+site_x, - - yougen_x+aru_x+ara_x+ari1_x+ari2_x+ari3_x+are1_x+are2_x, - arou_x+ii_x+itasi_x+itadaku_x+iru_x+eru_x+kakeru_x+kaneru_x, - karazu_x+gatai_x+gatida_x+kudasaru_x+gozai_x+sa1_x+si1_x+siro_x, - jyau_x+jimau_x+sugiru_x+subesi_x+suru_x+sure_x+se_x+seyo_x, - tamau_x+tayu_x+timau_x+dekiru_x+naru_x+nasai_x+nasaru_x+nikui_x, - yasui_x+yoi_x+yaru_x+ttarasii_x - }; - -static u_char gurumi[] = { - wo_o+ttatte_x+ttara_x+tte1_x+tte2_x+ppanasi_x+ppoi_x+ue_x, - uti_x+oite_x+okeru_x+ori_x+ka1_o+ka2_x+kai_x+kasira_o, - katagata_x+kadouka_o+kana_o+kane_o+kamo_o+kara1_o+kara2_x+ga1_o, - ga2_x+gatera_x+kiri_x+kuseni_x+kurai_x+gurumi_x+kedo_x+koso_o, - koto_x+sa2_o+sae_o+si2_x+sika_o+sura_o+zutu_x+zo_x, - tame_x+dake_o+dano_o+darake_x+tuite_x+tuki_x+tutu_x+tumori_x, - te1_x+te2_x+teru_x+dearou_x+deru_x+to1_x+to2_o+totte_x, - toiu_o+toori_x+toki_x+tokoro_x+tote_x+tohaie_o+tomo_x+do_x, - doori_x+dokoro_o+dokoroka_o+domo_x+na1_x+naa_o+nagara_x+nazo_o, - nado_o+nari_o+nanka_o+nanzo_o+nante_x+ni1_o+ni2_x+ni3_x, - nite_x+nimo_x+ne1_o+nee_o+no1_x+no2_x+node_x+noni_x, - nomi_o+nominrz_o+ha_o+hazu_x+ba_x+bakari_x+he_x+hou_x, - hoka_x+hodo_o+made_o+mama_x+mo1_o+mo2_x+motte_x+mono_x, - ya1_o+ya2_x+yara_o+yue_o+yo_o+yori_o+wa_x+wake_x, - wane_o+wayo_x+nn1_x+jya_o+tya_x+nagara2_x+wo_s_x, - ze_x+kke_x+n_si_x+deha_o, - - gotosi_x+saseru_x+zaru_x+zu_x+zunba_x+seru_x+souda_x+youtai_x, - denbun_x+ta_x+tai_x+tagaru_x+taru_x+da1_x+da2_o+daxtu_o, - darou_o+de_o+desi_o+desho_o+desu_o+na2_o+nara_o+nai_x, - nu_x+ne2_x+nn2_x+fuuda_x+besi_x+mai_x+masu_x+masure_x, - mase_x+mitaida_o+you_x+youda_x+rasii_o+rareru_x+reru_x+site_x, - - yougen_x+aru_x+ara_x+ari1_x+ari2_x+ari3_x+are1_x+are2_x, - arou_x+ii_x+itasi_x+itadaku_x+iru_x+eru_x+kakeru_x+kaneru_x, - karazu_x+gatai_x+gatida_x+kudasaru_x+gozai_x+sa1_x+si1_x+siro_x, - jyau_x+jimau_x+sugiru_x+subesi_x+suru_x+sure_x+se_x+seyo_x, - tamau_x+tayu_x+timau_x+dekiru_x+naru_x+nasai_x+nasaru_x+nikui_x, - yasui_x+yoi_x+yaru_x+ttarasii_x - }; - -static u_char kedo[] = { - wo_x+ttatte_x+ttara_x+tte1_x+tte2_x+ppanasi_x+ppoi_x+ue_x, - uti_x+oite_x+okeru_x+ori_x+ka1_x+ka2_x+kai_x+kasira_x, - katagata_x+kadouka_x+kana_x+kane_x+kamo_x+kara1_x+kara2_x+ga1_x, - ga2_x+gatera_x+kiri_x+kuseni_x+kurai_x+gurumi_x+kedo_x+koso_x, - koto_x+sa2_o+sae_x+si2_x+sika_x+sura_x+zutu_x+zo_x, - tame_x+dake_x+dano_x+darake_x+tuite_x+tuki_x+tutu_x+tumori_x, - te1_x+te2_x+teru_x+dearou_x+deru_x+to1_x+to2_x+totte_x, - toiu_o+toori_x+toki_x+tokoro_x+tote_x+tohaie_o+tomo_x+do_x, - doori_x+dokoro_x+dokoroka_x+domo_x+na1_o+naa_o+nagara_x+nazo_x, - nado_x+nari_x+nanka_x+nanzo_x+nante_x+ni1_x+ni2_x+ni3_x, - nite_x+nimo_x+ne1_o+nee_o+no1_x+no2_x+node_x+noni_x, - nomi_x+nominrz_x+ha_x+hazu_x+ba_x+bakari_x+he_x+hou_x, - hoka_x+hodo_x+made_x+mama_x+mo1_x+mo2_x+motte_x+mono_x, - ya1_x+ya2_x+yara_x+yue_x+yo_x+yori_x+wa_x+wake_x, - wane_x+wayo_x+nn1_x+jya_x+tya_x+nagara2_x+wo_s_x, - ze_x+kke_x+n_si_x+deha_x, - - gotosi_x+saseru_x+zaru_x+zu_x+zunba_x+seru_x+souda_x+youtai_x, - denbun_x+ta_x+tai_x+tagaru_x+taru_x+da1_x+da2_x+daxtu_x, - darou_x+de_x+desi_x+desho_x+desu_x+na2_x+nara_x+nai_x, - nu_x+ne2_x+nn2_x+fuuda_x+besi_x+mai_x+masu_x+masure_x, - mase_x+mitaida_x+you_x+youda_x+rasii_x+rareru_x+reru_x+site_x, - - yougen_x+aru_x+ara_x+ari1_x+ari2_x+ari3_x+are1_x+are2_x, - arou_x+ii_x+itasi_x+itadaku_x+iru_x+eru_x+kakeru_x+kaneru_x, - karazu_x+gatai_x+gatida_x+kudasaru_x+gozai_x+sa1_x+si1_x+siro_x, - jyau_x+jimau_x+sugiru_x+subesi_x+suru_x+sure_x+se_x+seyo_x, - tamau_x+tayu_x+timau_x+dekiru_x+naru_x+nasai_x+nasaru_x+nikui_x, - yasui_x+yoi_x+yaru_x+ttarasii_x - }; - -static u_char koso[] = { - wo_o+ttatte_x+ttara_x+tte1_x+tte2_x+ppanasi_x+ppoi_x+ue_x, - uti_x+oite_x+okeru_x+ori_x+ka1_x+ka2_x+kai_x+kasira_x, - katagata_x+kadouka_x+kana_x+kane_x+kamo_x+kara1_x+kara2_x+ga1_o, - ga2_x+gatera_x+kiri_x+kuseni_x+kurai_x+gurumi_x+kedo_x+koso_x, - koto_x+sa2_x+sae_x+si2_x+sika_x+sura_x+zutu_x+zo_x, - tame_x+dake_x+dano_x+darake_x+tuite_x+tuki_x+tutu_x+tumori_x, - te1_x+te2_x+teru_x+dearou_x+deru_x+to1_o+to2_x+totte_x, - toiu_x+toori_x+toki_x+tokoro_x+tote_x+tohaie_x+tomo_x+do_x, - doori_x+dokoro_x+dokoroka_x+domo_x+na1_x+naa_x+nagara_x+nazo_x, - nado_x+nari_x+nanka_x+nanzo_x+nante_x+ni1_x+ni2_x+ni3_x, - nite_x+nimo_x+ne1_x+nee_x+no1_x+no2_x+node_x+noni_x, - nomi_x+nominrz_x+ha_o+hazu_x+ba_x+bakari_x+he_x+hou_x, - hoka_x+hodo_x+made_x+mama_x+mo1_x+mo2_x+motte_x+mono_x, - ya1_x+ya2_x+yara_x+yue_x+yo_x+yori_x+wa_x+wake_x, - wane_x+wayo_x+nn1_x+jya_x+tya_x+nagara2_x+wo_s_x, - ze_x+kke_x+n_si_x+deha_x, - - gotosi_x+saseru_x+zaru_x+zu_x+zunba_x+seru_x+souda_x+youtai_x, - denbun_x+ta_x+tai_x+tagaru_x+taru_x+da1_x+da2_x+daxtu_x, - darou_o+de_x+desi_x+desho_x+desu_x+na2_x+nara_x+nai_x, - nu_x+ne2_x+nn2_x+fuuda_x+besi_x+mai_x+masu_x+masure_x, - mase_x+mitaida_x+you_x+youda_x+rasii_x+rareru_x+reru_x+site_x, - - yougen_x+aru_x+ara_x+ari1_x+ari2_x+ari3_x+are1_x+are2_x, - arou_x+ii_x+itasi_x+itadaku_x+iru_x+eru_x+kakeru_x+kaneru_x, - karazu_x+gatai_x+gatida_x+kudasaru_x+gozai_x+sa1_x+si1_x+siro_x, - jyau_x+jimau_x+sugiru_x+subesi_x+suru_x+sure_x+se_x+seyo_x, - tamau_x+tayu_x+timau_x+dekiru_x+naru_x+nasai_x+nasaru_x+nikui_x, - yasui_x+yoi_x+yaru_x+ttarasii_x - }; - -static u_char koto[] = { - wo_x+ttatte_x+ttara_x+tte1_o+tte2_x+ppanasi_x+ppoi_x+ue_x, - uti_x+oite_x+okeru_x+ori_x+ka1_o+ka2_x+kai_x+kasira_o, - katagata_x+kadouka_o+kana_o+kane_o+kamo_o+kara1_o+kara2_x+ga1_o, - ga2_x+gatera_x+kiri_x+kuseni_x+kurai_o+gurumi_x+kedo_x+koso_o, - koto_x+sa2_o+sae_o+si2_x+sika_o+sura_o+zutu_x+zo_o, - tame_x+dake_o+dano_o+darake_x+tuite_x+tuki_x+tutu_x+tumori_x, - te1_x+te2_x+teru_x+dearou_x+deru_x+to1_x+to2_o+totte_x, - toiu_o+toori_x+toki_x+tokoro_x+tote_x+tohaie_o+tomo_x+do_x, - doori_x+dokoro_o+dokoroka_o+domo_x+na1_x+naa_o+nagara_o+nazo_o, - nado_o+nari_o+nanka_o+nanzo_o+nante_o+ni1_o+ni2_x+ni3_x, - nite_x+nimo_x+ne1_o+nee_o+no1_o+no2_x+node_x+noni_x, - nomi_o+nominrz_o+ha_o+hazu_x+ba_x+bakari_o+he_o+hou_x, - hoka_x+hodo_o+made_o+mama_x+mo1_o+mo2_x+motte_x+mono_x, - ya1_o+ya2_x+yara_o+yue_x+yo_o+yori_o+wa_x+wake_x, - wane_o+wayo_x+nn1_x+jya_x+tya_x+nagara2_x+wo_s_o, - ze_x+kke_x+n_si_x+deha_o, - - gotosi_x+saseru_x+zaru_x+zu_x+zunba_x+seru_x+souda_x+youtai_x, - denbun_x+ta_x+tai_x+tagaru_x+taru_x+da1_x+da2_o+daxtu_o, - darou_o+de_o+desi_o+desho_o+desu_o+na2_o+nara_o+nai_o, - nu_x+ne2_x+nn2_x+fuuda_x+besi_x+mai_x+masu_x+masure_x, - mase_x+mitaida_o+you_x+youda_x+rasii_o+rareru_x+reru_x+site_x, - - yougen_x+aru_x+ara_x+ari1_x+ari2_x+ari3_x+are1_x+are2_x, - arou_x+ii_x+itasi_x+itadaku_x+iru_x+eru_x+kakeru_x+kaneru_x, - karazu_x+gatai_x+gatida_x+kudasaru_x+gozai_x+sa1_x+si1_x+siro_x, - jyau_x+jimau_x+sugiru_x+subesi_x+suru_x+sure_x+se_x+seyo_x, - tamau_x+tayu_x+timau_x+dekiru_x+naru_x+nasai_x+nasaru_x+nikui_x, - yasui_x+yoi_x+yaru_x+ttarasii_x - }; - -static u_char sae[] = { - wo_x+ttatte_x+ttara_x+tte1_x+tte2_x+ppanasi_x+ppoi_x+ue_x, - uti_x+oite_x+okeru_x+ori_x+ka1_x+ka2_x+kai_x+kasira_x, - katagata_x+kadouka_x+kana_x+kane_x+kamo_x+kara1_x+kara2_x+ga1_x, - ga2_x+gatera_x+kiri_x+kuseni_x+kurai_x+gurumi_x+kedo_x+koso_x, - koto_x+sa2_x+sae_x+si2_x+sika_x+sura_x+zutu_x+zo_x, - tame_x+dake_x+dano_x+darake_x+tuite_x+tuki_x+tutu_x+tumori_x, - te1_x+te2_x+teru_x+dearou_x+deru_x+to1_x+to2_x+totte_x, - toiu_x+toori_x+toki_x+tokoro_x+tote_x+tohaie_x+tomo_x+do_x, - doori_x+dokoro_x+dokoroka_x+domo_x+na1_x+naa_x+nagara_x+nazo_x, - nado_x+nari_x+nanka_x+nanzo_x+nante_x+ni1_x+ni2_x+ni3_x, - nite_x+nimo_x+ne1_x+nee_x+no1_x+no2_x+node_x+noni_x, - nomi_x+nominrz_x+ha_x+hazu_x+ba_x+bakari_x+he_x+hou_x, - hoka_x+hodo_x+made_x+mama_x+mo1_o+mo2_x+motte_x+mono_x, - ya1_x+ya2_x+yara_x+yue_x+yo_x+yori_x+wa_x+wake_x, - wane_x+wayo_x+nn1_x+jya_x+tya_x+nagara2_x+wo_s_x, - ze_x+kke_x+n_si_x+deha_x, - - gotosi_x+saseru_x+zaru_x+zu_x+zunba_x+seru_x+souda_x+youtai_x, - denbun_x+ta_x+tai_x+tagaru_x+taru_x+da1_x+da2_x+daxtu_x, - darou_x+de_x+desi_x+desho_x+desu_x+na2_x+nara_x+nai_o, - nu_x+ne2_x+nn2_x+fuuda_x+besi_x+mai_x+masu_x+masure_x, - mase_x+mitaida_x+you_x+youda_x+rasii_x+rareru_x+reru_x+site_x, - - yougen_x+aru_o+ara_o+ari1_x+ari2_o+ari3_x+are1_x+are2_o, - arou_x+ii_x+itasi_x+itadaku_x+iru_x+eru_x+kakeru_x+kaneru_x, - karazu_x+gatai_x+gatida_x+kudasaru_x+gozai_x+sa1_o+si1_o+siro_o, - jyau_x+jimau_x+sugiru_x+subesi_x+suru_o+sure_o+se_o+seyo_o, - tamau_x+tayu_x+timau_x+dekiru_x+naru_x+nasai_x+nasaru_x+nikui_x, - yasui_x+yoi_x+yaru_x+ttarasii_x - }; - -static u_char si2[] = { - wo_x+ttatte_x+ttara_x+tte1_x+tte2_x+ppanasi_x+ppoi_x+ue_x, - uti_x+oite_x+okeru_x+ori_x+ka1_x+ka2_x+kai_x+kasira_x, - katagata_x+kadouka_x+kana_x+kane_x+kamo_x+kara1_x+kara2_x+ga1_x, - ga2_x+gatera_x+kiri_x+kuseni_x+kurai_x+gurumi_x+kedo_x+koso_x, - koto_x+sa2_o+sae_x+si2_x+sika_x+sura_x+zutu_x+zo_x, - tame_x+dake_x+dano_x+darake_x+tuite_x+tuki_x+tutu_x+tumori_x, - te1_x+te2_x+teru_x+dearou_x+deru_x+to1_x+to2_x+totte_x, - toiu_x+toori_x+toki_x+tokoro_x+tote_x+tohaie_x+tomo_x+do_x, - doori_x+dokoro_x+dokoroka_x+domo_x+na1_x+naa_o+nagara_x+nazo_x, - nado_x+nari_x+nanka_x+nanzo_x+nante_x+ni1_x+ni2_x+ni3_x, - nite_x+nimo_x+ne1_o+nee_o+no1_x+no2_x+node_x+noni_x, - nomi_x+nominrz_x+ha_x+hazu_x+ba_x+bakari_x+he_x+hou_x, - hoka_x+hodo_x+made_x+mama_x+mo1_x+mo2_x+motte_x+mono_x, - ya1_x+ya2_x+yara_x+yue_x+yo_x+yori_x+wa_x+wake_x, - wane_x+wayo_x+nn1_x+jya_x+tya_x+nagara2_x+wo_s_x, - ze_x+kke_x+n_si_x+deha_x, - - gotosi_x+saseru_x+zaru_x+zu_x+zunba_x+seru_x+souda_x+youtai_x, - denbun_x+ta_x+tai_x+tagaru_x+taru_x+da1_x+da2_x+daxtu_x, - darou_x+de_x+desi_x+desho_x+desu_x+na2_x+nara_x+nai_x, - nu_x+ne2_x+nn2_x+fuuda_x+besi_x+mai_x+masu_x+masure_x, - mase_x+mitaida_x+you_x+youda_x+rasii_x+rareru_x+reru_x+site_x, - - yougen_x+aru_x+ara_x+ari1_x+ari2_x+ari3_x+are1_x+are2_x, - arou_x+ii_x+itasi_x+itadaku_x+iru_x+eru_x+kakeru_x+kaneru_x, - karazu_x+gatai_x+gatida_x+kudasaru_x+gozai_x+sa1_x+si1_x+siro_x, - jyau_x+jimau_x+sugiru_x+subesi_x+suru_x+sure_x+se_x+seyo_x, - tamau_x+tayu_x+timau_x+dekiru_x+naru_x+nasai_x+nasaru_x+nikui_x, - yasui_x+yoi_x+yaru_x+ttarasii_x - }; - -static u_char sika[] = { - wo_x+ttatte_x+ttara_x+tte1_x+tte2_x+ppanasi_x+ppoi_x+ue_x, - uti_x+oite_x+okeru_x+ori_x+ka1_x+ka2_x+kai_x+kasira_x, - katagata_x+kadouka_x+kana_x+kane_x+kamo_x+kara1_x+kara2_x+ga1_x, - ga2_x+gatera_x+kiri_x+kuseni_x+kurai_x+gurumi_x+kedo_x+koso_x, - koto_x+sa2_o+sae_x+si2_x+sika_x+sura_x+zutu_x+zo_x, - tame_x+dake_x+dano_x+darake_x+tuite_x+tuki_x+tutu_x+tumori_x, - te1_x+te2_x+teru_x+dearou_x+deru_x+to1_x+to2_x+totte_x, - toiu_x+toori_x+toki_x+tokoro_x+tote_x+tohaie_x+tomo_x+do_x, - doori_x+dokoro_x+dokoroka_x+domo_x+na1_x+naa_x+nagara_x+nazo_x, - nado_x+nari_x+nanka_x+nanzo_x+nante_x+ni1_x+ni2_x+ni3_x, - nite_x+nimo_x+ne1_o+nee_o+no1_x+no2_x+node_x+noni_x, - nomi_x+nominrz_x+ha_x+hazu_x+ba_x+bakari_x+he_x+hou_x, - hoka_x+hodo_x+made_x+mama_x+mo1_x+mo2_x+motte_x+mono_x, - ya1_x+ya2_x+yara_x+yue_x+yo_x+yori_x+wa_x+wake_x, - wane_x+wayo_x+nn1_x+jya_x+tya_x+nagara2_x+wo_s_x, - ze_x+kke_x+n_si_x+deha_x, - - gotosi_x+saseru_x+zaru_x+zu_x+zunba_x+seru_x+souda_x+youtai_x, - denbun_x+ta_x+tai_x+tagaru_x+taru_x+da1_x+da2_x+daxtu_x, - darou_x+de_x+desi_x+desho_x+desu_x+na2_x+nara_x+nai_o, - nu_x+ne2_x+nn2_x+fuuda_x+besi_x+mai_x+masu_x+masure_x, - mase_x+mitaida_x+you_x+youda_x+rasii_x+rareru_x+reru_x+site_x, - - yougen_x+aru_x+ara_x+ari1_x+ari2_x+ari3_x+are1_x+are2_x, - arou_x+ii_x+itasi_x+itadaku_x+iru_x+eru_x+kakeru_x+kaneru_x, - karazu_x+gatai_x+gatida_x+kudasaru_x+gozai_x+sa1_x+si1_x+siro_x, - jyau_x+jimau_x+sugiru_x+subesi_x+suru_x+sure_x+se_x+seyo_x, - tamau_x+tayu_x+timau_x+dekiru_x+naru_x+nasai_x+nasaru_x+nikui_x, - yasui_x+yoi_x+yaru_x+ttarasii_x - }; - -static u_char sura[] = { - wo_x+ttatte_x+ttara_x+tte1_x+tte2_x+ppanasi_x+ppoi_x+ue_x, - uti_x+oite_x+okeru_x+ori_x+ka1_x+ka2_x+kai_x+kasira_x, - katagata_x+kadouka_x+kana_x+kane_x+kamo_x+kara1_x+kara2_x+ga1_o, - ga2_x+gatera_x+kiri_x+kuseni_x+kurai_x+gurumi_x+kedo_x+koso_x, - koto_x+sa2_x+sae_x+si2_x+sika_x+sura_x+zutu_x+zo_x, - tame_x+dake_x+dano_x+darake_x+tuite_x+tuki_x+tutu_x+tumori_x, - te1_x+te2_x+teru_x+dearou_x+deru_x+to1_x+to2_x+totte_x, - toiu_x+toori_x+toki_x+tokoro_x+tote_x+tohaie_x+tomo_x+do_x, - doori_x+dokoro_x+dokoroka_x+domo_x+na1_x+naa_x+nagara_x+nazo_x, - nado_x+nari_x+nanka_x+nanzo_x+nante_x+ni1_x+ni2_x+ni3_x, - nite_x+nimo_x+ne1_x+nee_x+no1_x+no2_x+node_x+noni_x, - nomi_x+nominrz_x+ha_x+hazu_x+ba_x+bakari_x+he_x+hou_x, - hoka_x+hodo_x+made_x+mama_x+mo1_o+mo2_x+motte_x+mono_x, - ya1_x+ya2_x+yara_x+yue_x+yo_x+yori_x+wa_x+wake_x, - wane_x+wayo_x+nn1_x+jya_x+tya_x+nagara2_x+wo_s_x, - ze_x+kke_x+n_si_x+deha_x, - - gotosi_x+saseru_x+zaru_x+zu_x+zunba_x+seru_x+souda_x+youtai_x, - denbun_x+ta_x+tai_x+tagaru_x+taru_x+da1_x+da2_x+daxtu_x, - darou_x+de_x+desi_x+desho_x+desu_x+na2_x+nara_x+nai_o, - nu_x+ne2_x+nn2_x+fuuda_x+besi_x+mai_x+masu_x+masure_x, - mase_x+mitaida_x+you_x+youda_x+rasii_x+rareru_x+reru_x+site_x, - - yougen_x+aru_x+ara_x+ari1_x+ari2_x+ari3_x+are1_x+are2_x, - arou_x+ii_x+itasi_x+itadaku_x+iru_x+eru_x+kakeru_x+kaneru_x, - karazu_x+gatai_x+gatida_x+kudasaru_x+gozai_x+sa1_x+si1_x+siro_x, - jyau_x+jimau_x+sugiru_x+subesi_x+suru_x+sure_x+se_x+seyo_x, - tamau_x+tayu_x+timau_x+dekiru_x+naru_x+nasai_x+nasaru_x+nikui_x, - yasui_x+yoi_x+yaru_x+ttarasii_x - }; - -static u_char zutu[] = { - wo_o+ttatte_x+ttara_x+tte1_o+tte2_x+ppanasi_x+ppoi_x+ue_x, - uti_x+oite_x+okeru_x+ori_x+ka1_o+ka2_x+kai_x+kasira_o, - katagata_x+kadouka_o+kana_o+kane_o+kamo_o+kara1_o+kara2_x+ga1_o, - ga2_x+gatera_x+kiri_x+kuseni_x+kurai_o+gurumi_x+kedo_x+koso_x, - koto_x+sa2_o+sae_o+si2_x+sika_o+sura_x+zutu_x+zo_x, - tame_x+dake_x+dano_o+darake_x+tuite_x+tuki_x+tutu_x+tumori_x, - te1_x+te2_x+teru_x+dearou_x+deru_x+to1_o+to2_x+totte_x, - toiu_o+toori_x+toki_x+tokoro_x+tote_x+tohaie_o+tomo_x+do_x, - doori_x+dokoro_o+dokoroka_o+domo_x+na1_x+naa_x+nagara_x+nazo_o, - nado_o+nari_o+nanka_o+nanzo_o+nante_o+ni1_o+ni2_x+ni3_x, - nite_x+nimo_x+ne1_o+nee_o+no1_o+no2_x+node_x+noni_x, - nomi_x+nominrz_x+ha_o+hazu_x+ba_x+bakari_x+he_x+hou_x, - hoka_x+hodo_x+made_x+mama_x+mo1_o+mo2_x+motte_x+mono_x, - ya1_o+ya2_x+yara_o+yue_o+yo_o+yori_o+wa_x+wake_x, - wane_o+wayo_x+nn1_x+jya_o+tya_x+nagara2_x+wo_s_x, - ze_x+kke_x+n_si_x+deha_x, - - gotosi_x+saseru_x+zaru_x+zu_x+zunba_x+seru_x+souda_x+youtai_x, - denbun_x+ta_x+tai_x+tagaru_x+taru_x+da1_x+da2_o+daxtu_o, - darou_o+de_o+desi_o+desho_o+desu_o+na2_o+nara_o+nai_o, - nu_x+ne2_x+nn2_x+fuuda_x+besi_x+mai_x+masu_x+masure_x, - mase_x+mitaida_o+you_x+youda_x+rasii_o+rareru_x+reru_x+site_x, - - yougen_x+aru_o+ara_o+ari1_x+ari2_o+ari3_x+are1_x+are2_o, - arou_o+ii_x+itasi_x+itadaku_x+iru_x+eru_x+kakeru_x+kaneru_x, - karazu_x+gatai_x+gatida_x+kudasaru_x+gozai_o+sa1_x+si1_x+siro_x, - jyau_x+jimau_x+sugiru_x+subesi_x+suru_x+sure_x+se_x+seyo_x, - tamau_x+tayu_x+timau_x+dekiru_x+naru_x+nasai_x+nasaru_x+nikui_x, - yasui_x+yoi_x+yaru_x+ttarasii_x - }; - -static u_char tame[] = { - wo_o+ttatte_x+ttara_x+tte1_o+tte2_x+ppanasi_x+ppoi_x+ue_x, - uti_x+oite_x+okeru_x+ori_x+ka1_o+ka2_x+kai_x+kasira_o, - katagata_x+kadouka_o+kana_o+kane_o+kamo_o+kara1_x+kara2_x+ga1_x, - ga2_x+gatera_x+kiri_x+kuseni_x+kurai_o+gurumi_x+kedo_x+koso_o, - koto_x+sa2_o+sae_o+si2_x+sika_o+sura_o+zutu_x+zo_x, - tame_x+dake_o+dano_o+darake_x+tuite_x+tuki_x+tutu_x+tumori_x, - te1_x+te2_x+teru_x+dearou_x+deru_x+to1_x+to2_o+totte_x, - toiu_o+toori_x+toki_x+tokoro_x+tote_o+tohaie_o+tomo_x+do_x, - doori_x+dokoro_o+dokoroka_o+domo_x+na1_x+naa_o+nagara_x+nazo_o, - nado_o+nari_o+nanka_o+nanzo_o+nante_o+ni1_o+ni2_x+ni3_x, - nite_x+nimo_x+ne1_o+nee_o+no1_o+no2_x+node_x+noni_x, - nomi_o+nominrz_o+ha_x+hazu_x+ba_x+bakari_o+he_x+hou_x, - hoka_x+hodo_x+made_x+mama_x+mo1_x+mo2_x+motte_x+mono_x, - ya1_x+ya2_x+yara_o+yue_x+yo_x+yori_o+wa_x+wake_x, - wane_x+wayo_x+nn1_x+jya_o+tya_x+nagara2_x+wo_s_x, - ze_x+kke_x+n_si_x+deha_o, - - gotosi_x+saseru_x+zaru_x+zu_x+zunba_x+seru_x+souda_x+youtai_x, - denbun_x+ta_x+tai_x+tagaru_x+taru_x+da1_x+da2_o+daxtu_o, - darou_o+de_o+desi_o+desho_o+desu_o+na2_o+nara_o+nai_x, - nu_x+ne2_x+nn2_x+fuuda_x+besi_x+mai_x+masu_x+masure_x, - mase_x+mitaida_o+you_x+youda_x+rasii_o+rareru_x+reru_x+site_x, - - yougen_x+aru_x+ara_x+ari1_x+ari2_x+ari3_x+are1_x+are2_x, - arou_x+ii_x+itasi_x+itadaku_x+iru_x+eru_x+kakeru_x+kaneru_x, - karazu_x+gatai_x+gatida_x+kudasaru_x+gozai_x+sa1_x+si1_x+siro_x, - jyau_x+jimau_x+sugiru_x+subesi_x+suru_x+sure_x+se_x+seyo_x, - tamau_x+tayu_x+timau_x+dekiru_x+naru_x+nasai_x+nasaru_x+nikui_x, - yasui_x+yoi_x+yaru_x+ttarasii_x - }; - -static u_char tari[] = { - wo_x+ttatte_x+ttara_x+tte1_x+tte2_x+ppanasi_x+ppoi_x+ue_x, - uti_x+oite_x+okeru_x+ori_x+ka1_x+ka2_x+kai_x+kasira_x, - katagata_x+kadouka_x+kana_x+kane_x+kamo_x+kara1_x+kara2_x+ga1_x, - ga2_x+gatera_x+kiri_x+kuseni_x+kurai_o+gurumi_x+kedo_x+koso_x, - koto_x+sa2_o+sae_o+si2_x+sika_o+sura_o+zutu_x+zo_x, - tame_x+dake_o+dano_o+darake_x+tuite_x+tuki_x+tutu_x+tumori_x, - te1_x+te2_x+teru_x+dearou_x+deru_x+to1_x+to2_x+totte_x, - toiu_o+toori_x+toki_x+tokoro_x+tote_x+tohaie_o+tomo_x+do_x, - doori_x+dokoro_o+dokoroka_o+domo_x+na1_x+naa_x+nagara_x+nazo_o, - nado_o+nari_o+nanka_o+nanzo_o+nante_o+ni1_x+ni2_x+ni3_x, - nite_x+nimo_x+ne1_x+nee_x+no1_x+no2_x+node_x+noni_x, - nomi_o+nominrz_o+ha_o+hazu_x+ba_x+bakari_o+he_x+hou_x, - hoka_x+hodo_x+made_x+mama_x+mo1_x+mo2_o+motte_x+mono_x, - ya1_x+ya2_x+yara_x+yue_x+yo_x+yori_o+wa_x+wake_x, - wane_x+wayo_x+nn1_x+jya_o+tya_x+nagara2_x+wo_s_x, - ze_x+kke_x+n_si_x+deha_x, - - gotosi_x+saseru_x+zaru_x+zu_x+zunba_x+seru_x+souda_x+youtai_x, - denbun_x+ta_x+tai_x+tagaru_x+taru_x+da1_x+da2_o+daxtu_o, - darou_o+de_o+desi_o+desho_o+desu_o+na2_o+nara_o+nai_x, - nu_x+ne2_x+nn2_x+fuuda_x+besi_x+mai_x+masu_x+masure_x, - mase_x+mitaida_x+you_x+youda_x+rasii_x+rareru_x+reru_x+site_x, - - yougen_x+aru_x+ara_x+ari1_x+ari2_x+ari3_x+are1_x+are2_x, - arou_x+ii_x+itasi_x+itadaku_x+iru_x+eru_x+kakeru_x+kaneru_x, - karazu_x+gatai_x+gatida_x+kudasaru_x+gozai_x+sa1_o+si1_o+siro_o, - jyau_x+jimau_x+sugiru_x+subesi_x+suru_o+sure_o+se_o+seyo_o, - tamau_x+tayu_x+timau_x+dekiru_o+naru_x+nasai_o+nasaru_o+nikui_x, - yasui_x+yoi_x+yaru_x+ttarasii_x - }; - -static u_char dake[] = { - wo_o+ttatte_o+ttara_o+tte1_o+tte2_x+ppanasi_x+ppoi_x+ue_x, - uti_x+oite_x+okeru_x+ori_x+ka1_o+ka2_x+kai_x+kasira_o, - katagata_x+kadouka_o+kana_o+kane_o+kamo_o+kara1_o+kara2_x+ga1_o, - ga2_x+gatera_x+kiri_x+kuseni_x+kurai_x+gurumi_x+kedo_x+koso_x, - koto_x+sa2_o+sae_o+si2_x+sika_o+sura_x+zutu_x+zo_x, - tame_x+dake_x+dano_o+darake_x+tuite_x+tuki_x+tutu_x+tumori_x, - te1_x+te2_x+teru_x+dearou_x+deru_x+to1_o+to2_x+totte_x, - toiu_o+toori_x+toki_x+tokoro_x+tote_o+tohaie_o+tomo_x+do_x, - doori_x+dokoro_x+dokoroka_x+domo_x+na1_o+naa_o+nagara_x+nazo_o, - nado_o+nari_o+nanka_o+nanzo_o+nante_o+ni1_o+ni2_x+ni3_x, - nite_x+nimo_x+ne1_o+nee_o+no1_o+no2_x+node_x+noni_x, - nomi_x+nominrz_x+ha_o+hazu_x+ba_x+bakari_x+he_x+hou_x, - hoka_x+hodo_x+made_x+mama_x+mo1_x+mo2_x+motte_x+mono_x, - ya1_o+ya2_x+yara_o+yue_x+yo_o+yori_x+wa_x+wake_x, - wane_x+wayo_x+nn1_x+jya_o+tya_x+nagara2_x+wo_s_x, - ze_x+kke_x+n_si_x+deha_x, - - gotosi_x+saseru_x+zaru_x+zu_x+zunba_x+seru_x+souda_x+youtai_x, - denbun_x+ta_x+tai_x+tagaru_x+taru_x+da1_x+da2_o+daxtu_o, - darou_o+de_o+desi_o+desho_o+desu_o+na2_o+nara_o+nai_x, - nu_x+ne2_x+nn2_x+fuuda_x+besi_x+mai_x+masu_x+masure_x, - mase_x+mitaida_o+you_x+youda_x+rasii_o+rareru_x+reru_x+site_x, - - yougen_x+aru_o+ara_o+ari1_x+ari2_o+ari3_x+are1_x+are2_o, - arou_o+ii_x+itasi_x+itadaku_x+iru_x+eru_x+kakeru_x+kaneru_x, - karazu_x+gatai_x+gatida_x+kudasaru_x+gozai_x+sa1_x+si1_x+siro_x, - jyau_x+jimau_x+sugiru_x+subesi_x+suru_x+sure_x+se_x+seyo_x, - tamau_x+tayu_x+timau_x+dekiru_x+naru_x+nasai_x+nasaru_x+nikui_x, - yasui_x+yoi_x+yaru_x+ttarasii_x - }; - -static u_char dano[] = { - wo_o+ttatte_x+ttara_x+tte1_x+tte2_x+ppanasi_x+ppoi_x+ue_x, - uti_x+oite_x+okeru_x+ori_x+ka1_x+ka2_x+kai_x+kasira_x, - katagata_x+kadouka_x+kana_x+kane_x+kamo_x+kara1_o+kara2_x+ga1_o, - ga2_x+gatera_x+kiri_x+kuseni_x+kurai_x+gurumi_x+kedo_x+koso_x, - koto_x+sa2_o+sae_o+si2_x+sika_o+sura_o+zutu_x+zo_x, - tame_x+dake_o+dano_x+darake_x+tuite_x+tuki_x+tutu_x+tumori_x, - te1_x+te2_x+teru_x+dearou_x+deru_x+to1_o+to2_x+totte_x, - toiu_x+toori_x+toki_x+tokoro_x+tote_x+tohaie_x+tomo_x+do_x, - doori_x+dokoro_x+dokoroka_x+domo_x+na1_x+naa_x+nagara_x+nazo_o, - nado_o+nari_x+nanka_o+nanzo_o+nante_o+ni1_o+ni2_x+ni3_x, - nite_x+nimo_x+ne1_o+nee_o+no1_x+no2_x+node_x+noni_x, - nomi_x+nominrz_x+ha_o+hazu_x+ba_x+bakari_o+he_x+hou_x, - hoka_x+hodo_x+made_o+mama_x+mo1_o+mo2_x+motte_x+mono_x, - ya1_x+ya2_x+yara_x+yue_x+yo_o+yori_o+wa_x+wake_x, - wane_x+wayo_x+nn1_x+jya_o+tya_x+nagara2_x+wo_s_x, - ze_x+kke_x+n_si_x+deha_x, - - gotosi_x+saseru_x+zaru_x+zu_x+zunba_x+seru_x+souda_x+youtai_x, - denbun_x+ta_x+tai_x+tagaru_x+taru_x+da1_x+da2_x+daxtu_x, - darou_o+de_o+desi_o+desho_o+desu_o+na2_x+nara_o+nai_x, - nu_x+ne2_x+nn2_x+fuuda_x+besi_x+mai_x+masu_x+masure_x, - mase_x+mitaida_x+you_x+youda_x+rasii_x+rareru_x+reru_x+site_x, - - yougen_x+aru_x+ara_x+ari1_x+ari2_x+ari3_x+are1_x+are2_x, - arou_x+ii_x+itasi_x+itadaku_x+iru_x+eru_x+kakeru_x+kaneru_x, - karazu_x+gatai_x+gatida_x+kudasaru_x+gozai_x+sa1_x+si1_x+siro_x, - jyau_x+jimau_x+sugiru_x+subesi_x+suru_x+sure_x+se_x+seyo_x, - tamau_x+tayu_x+timau_x+dekiru_x+naru_x+nasai_x+nasaru_x+nikui_x, - yasui_x+yoi_x+yaru_x+ttarasii_x - }; - - -static u_char darake[] = { - wo_o+ttatte_x+ttara_x+tte1_o+tte2_x+ppanasi_x+ppoi_x+ue_x, - uti_x+oite_x+okeru_x+ori_x+ka1_x+ka2_x+kai_x+kasira_o, - katagata_x+kadouka_o+kana_o+kane_o+kamo_o+kara1_o+kara2_x+ga1_o, - ga2_x+gatera_x+kiri_x+kuseni_x+kurai_x+gurumi_x+kedo_x+koso_x, - koto_x+sa2_o+sae_x+si2_x+sika_x+sura_x+zutu_x+zo_x, - tame_x+dake_x+dano_o+darake_x+tuite_x+tuki_x+tutu_x+tumori_x, - te1_x+te2_x+teru_x+dearou_x+deru_x+to1_x+to2_o+totte_x, - toiu_o+toori_x+toki_x+tokoro_x+tote_o+tohaie_o+tomo_x+do_x, - doori_x+dokoro_x+dokoroka_x+domo_x+na1_x+naa_x+nagara_x+nazo_o, - nado_o+nari_x+nanka_o+nanzo_o+nante_o+ni1_o+ni2_x+ni3_x, - nite_x+nimo_x+ne1_o+nee_o+no1_o+no2_x+node_x+noni_x, - nomi_x+nominrz_x+ha_o+hazu_x+ba_x+bakari_x+he_x+hou_x, - hoka_x+hodo_x+made_x+mama_x+mo1_o+mo2_x+motte_x+mono_x, - ya1_o+ya2_x+yara_o+yue_x+yo_o+yori_o+wa_x+wake_x, - wane_o+wayo_x+nn1_x+jya_o+tya_x+nagara2_x+wo_s_x, - ze_x+kke_x+n_si_x+deha_o, - - gotosi_x+saseru_x+zaru_x+zu_x+zunba_x+seru_x+souda_x+youtai_x, - denbun_x+ta_x+tai_x+tagaru_x+taru_x+da1_x+da2_o+daxtu_o, - darou_o+de_o+desi_o+desho_o+desu_o+na2_o+nara_o+nai_x, - nu_x+ne2_x+nn2_x+fuuda_x+besi_x+mai_x+masu_x+masure_x, - mase_x+mitaida_o+you_x+youda_x+rasii_o+rareru_x+reru_x+site_x, - - yougen_x+aru_x+ara_x+ari1_x+ari2_x+ari3_x+are1_x+are2_x, - arou_x+ii_x+itasi_x+itadaku_x+iru_x+eru_x+kakeru_x+kaneru_x, - karazu_x+gatai_x+gatida_x+kudasaru_x+gozai_x+sa1_x+si1_x+siro_x, - jyau_x+jimau_x+sugiru_x+subesi_x+suru_x+sure_x+se_x+seyo_x, - tamau_x+tayu_x+timau_x+dekiru_x+naru_x+nasai_x+nasaru_x+nikui_x, - yasui_x+yoi_x+yaru_x+ttarasii_x - }; - -static u_char tuite[] = { - wo_x+ttatte_x+ttara_x+tte1_x+tte2_x+ppanasi_x+ppoi_x+ue_x, - uti_x+oite_x+okeru_x+ori_x+ka1_o+ka2_x+kai_x+kasira_o, - katagata_x+kadouka_x+kana_o+kane_o+kamo_o+kara1_x+kara2_x+ga1_x, - ga2_x+gatera_x+kiri_x+kuseni_x+kurai_o+gurumi_x+kedo_x+koso_x, - koto_x+sa2_o+sae_o+si2_x+sika_o+sura_x+zutu_x+zo_x, - tame_x+dake_o+dano_o+darake_x+tuite_x+tuki_x+tutu_x+tumori_x, - te1_x+te2_x+teru_x+dearou_x+deru_x+to1_o+to2_x+totte_x, - toiu_x+toori_x+toki_x+tokoro_x+tote_x+tohaie_x+tomo_x+do_x, - doori_x+dokoro_x+dokoroka_x+domo_x+na1_x+naa_x+nagara_x+nazo_o, - nado_o+nari_x+nanka_o+nanzo_o+nante_o+ni1_x+ni2_x+ni3_x, - nite_x+nimo_x+ne1_o+nee_o+no1_o+no2_x+node_x+noni_x, - nomi_o+nominrz_o+ha_o+hazu_x+ba_x+bakari_o+he_x+hou_x, - hoka_x+hodo_x+made_x+mama_x+mo1_o+mo2_x+motte_x+mono_x, - ya1_o+ya2_x+yara_o+yue_x+yo_o+yori_o+wa_x+wake_x, - wane_o+wayo_x+nn1_x+jya_o+tya_x+nagara2_x+wo_s_x, - ze_x+kke_x+n_si_x+deha_x, - - gotosi_x+saseru_x+zaru_x+zu_x+zunba_x+seru_x+souda_x+youtai_x, - denbun_x+ta_x+tai_x+tagaru_x+taru_x+da1_x+da2_o+daxtu_o, - darou_o+de_o+desi_o+desho_o+desu_o+na2_o+nara_o+nai_x, - nu_x+ne2_x+nn2_x+fuuda_x+besi_x+mai_x+masu_x+masure_x, - mase_x+mitaida_x+you_x+youda_x+rasii_x+rareru_x+reru_x+site_x, - - yougen_x+aru_x+ara_x+ari1_x+ari2_x+ari3_x+are1_x+are2_x, - arou_x+ii_x+itasi_x+itadaku_x+iru_x+eru_x+kakeru_x+kaneru_x, - karazu_x+gatai_x+gatida_x+kudasaru_x+gozai_x+sa1_x+si1_x+siro_x, - jyau_x+jimau_x+sugiru_x+subesi_x+suru_x+sure_x+se_x+seyo_x, - tamau_x+tayu_x+timau_x+dekiru_x+naru_x+nasai_x+nasaru_x+nikui_x, - yasui_x+yoi_x+yaru_x+ttarasii_x - }; - -static u_char tuki[] = { - wo_x+ttatte_x+ttara_x+tte1_x+tte2_x+ppanasi_x+ppoi_x+ue_x, - uti_x+oite_x+okeru_x+ori_x+ka1_x+ka2_x+kai_x+kasira_x, - katagata_x+kadouka_x+kana_x+kane_x+kamo_x+kara1_x+kara2_x+ga1_x, - ga2_x+gatera_x+kiri_x+kuseni_x+kurai_x+gurumi_x+kedo_x+koso_x, - koto_x+sa2_x+sae_x+si2_x+sika_x+sura_x+zutu_x+zo_x, - tame_x+dake_x+dano_x+darake_x+tuite_x+tuki_x+tutu_x+tumori_x, - te1_x+te2_x+teru_x+dearou_x+deru_x+to1_x+to2_x+totte_x, - toiu_x+toori_x+toki_x+tokoro_x+tote_x+tohaie_x+tomo_x+do_x, - doori_x+dokoro_x+dokoroka_x+domo_x+na1_x+naa_x+nagara_x+nazo_x, - nado_x+nari_x+nanka_x+nanzo_x+nante_x+ni1_x+ni2_x+ni3_x, - nite_x+nimo_x+ne1_x+nee_x+no1_x+no2_x+node_x+noni_x, - nomi_x+nominrz_x+ha_x+hazu_x+ba_x+bakari_x+he_x+hou_x, - hoka_x+hodo_x+made_x+mama_x+mo1_x+mo2_x+motte_x+mono_x, - ya1_x+ya2_x+yara_x+yue_x+yo_x+yori_x+wa_x+wake_x, - wane_x+wayo_x+nn1_x+jya_x+tya_x+nagara2_x+wo_s_x, - ze_x+kke_x+n_si_x+deha_x, - - gotosi_x+saseru_x+zaru_x+zu_x+zunba_x+seru_x+souda_x+youtai_x, - denbun_x+ta_x+tai_x+tagaru_x+taru_x+da1_x+da2_x+daxtu_x, - darou_x+de_x+desi_x+desho_x+desu_x+na2_x+nara_x+nai_x, - nu_x+ne2_x+nn2_x+fuuda_x+besi_x+mai_x+masu_x+masure_x, - mase_x+mitaida_x+you_x+youda_x+rasii_x+rareru_x+reru_x+site_x, - - yougen_x+aru_x+ara_x+ari1_x+ari2_x+ari3_x+are1_x+are2_x, - arou_x+ii_x+itasi_x+itadaku_x+iru_x+eru_x+kakeru_x+kaneru_x, - karazu_x+gatai_x+gatida_x+kudasaru_x+gozai_x+sa1_x+si1_x+siro_x, - jyau_x+jimau_x+sugiru_x+subesi_x+suru_x+sure_x+se_x+seyo_x, - tamau_x+tayu_x+timau_x+dekiru_x+naru_x+nasai_x+nasaru_x+nikui_x, - yasui_x+yoi_x+yaru_x+ttarasii_x - }; - -static u_char tutu[] = { - wo_x+ttatte_x+ttara_x+tte1_x+tte2_x+ppanasi_x+ppoi_x+ue_x, - uti_x+oite_x+okeru_x+ori_x+ka1_x+ka2_x+kai_x+kasira_x, - katagata_x+kadouka_x+kana_x+kane_x+kamo_x+kara1_x+kara2_x+ga1_x, - ga2_x+gatera_x+kiri_x+kuseni_x+kurai_x+gurumi_x+kedo_x+koso_x, - koto_x+sa2_o+sae_o+si2_x+sika_x+sura_x+zutu_x+zo_x, - tame_x+dake_x+dano_x+darake_x+tuite_x+tuki_x+tutu_x+tumori_x, - te1_x+te2_x+teru_x+dearou_x+deru_x+to1_x+to2_x+totte_x, - toiu_x+toori_x+toki_x+tokoro_x+tote_x+tohaie_x+tomo_x+do_x, - doori_x+dokoro_x+dokoroka_x+domo_x+na1_x+naa_x+nagara_x+nazo_x, - nado_x+nari_x+nanka_x+nanzo_x+nante_x+ni1_x+ni2_x+ni3_x, - nite_x+nimo_x+ne1_o+nee_o+no1_x+no2_x+node_x+noni_x, - nomi_x+nominrz_x+ha_x+hazu_x+ba_x+bakari_x+he_x+hou_x, - hoka_x+hodo_x+made_x+mama_x+mo1_x+mo2_o+motte_x+mono_x, - ya1_x+ya2_x+yara_x+yue_x+yo_o+yori_x+wa_x+wake_x, - wane_o+wayo_x+nn1_x+jya_o+tya_x+nagara2_x+wo_s_x, - ze_x+kke_x+n_si_x+deha_x, - - gotosi_x+saseru_x+zaru_x+zu_x+zunba_x+seru_x+souda_x+youtai_x, - denbun_x+ta_x+tai_x+tagaru_x+taru_x+da1_x+da2_x+daxtu_x, - darou_x+de_x+desi_x+desho_x+desu_x+na2_x+nara_o+nai_x, - nu_x+ne2_x+nn2_x+fuuda_x+besi_x+mai_x+masu_x+masure_x, - mase_x+mitaida_o+you_x+youda_x+rasii_o+rareru_x+reru_x+site_x, - - yougen_x+aru_o+ara_o+ari1_x+ari2_x+ari3_o+are1_x+are2_o, - arou_o+ii_x+itasi_x+itadaku_x+iru_x+eru_x+kakeru_x+kaneru_x, - karazu_x+gatai_x+gatida_x+kudasaru_x+gozai_x+sa1_x+si1_x+siro_x, - jyau_x+jimau_x+sugiru_x+subesi_x+suru_x+sure_x+se_x+seyo_x, - tamau_x+tayu_x+timau_x+dekiru_x+naru_x+nasai_x+nasaru_x+nikui_x, - yasui_x+yoi_x+yaru_x+ttarasii_x - }; - -static u_char tumori[] = { - wo_x+ttatte_x+ttara_x+tte1_o+tte2_x+ppanasi_x+ppoi_x+ue_x, - uti_x+oite_x+okeru_x+ori_x+ka1_o+ka2_x+kai_x+kasira_o, - katagata_x+kadouka_o+kana_o+kane_o+kamo_o+kara1_x+kara2_x+ga1_o, - ga2_x+gatera_x+kiri_x+kuseni_x+kurai_o+gurumi_x+kedo_x+koso_o, - koto_x+sa2_o+sae_o+si2_x+sika_o+sura_o+zutu_x+zo_x, - tame_x+dake_o+dano_o+darake_x+tuite_x+tuki_x+tutu_x+tumori_x, - te1_x+te2_x+teru_x+dearou_x+deru_x+to1_o+to2_x+totte_x, - toiu_o+toori_x+toki_x+tokoro_x+tote_x+tohaie_o+tomo_x+do_x, - doori_x+dokoro_o+dokoroka_o+domo_x+na1_x+naa_x+nagara_x+nazo_o, - nado_o+nari_x+nanka_o+nanzo_o+nante_o+ni1_x+ni2_x+ni3_x, - nite_x+nimo_x+ne1_o+nee_o+no1_x+no2_x+node_x+noni_x, - nomi_x+nominrz_x+ha_o+hazu_x+ba_x+bakari_x+he_x+hou_x, - hoka_x+hodo_x+made_o+mama_x+mo1_o+mo2_x+motte_x+mono_x, - ya1_x+ya2_x+yara_x+yue_x+yo_o+yori_o+wa_x+wake_x, - wane_x+wayo_x+nn1_x+jya_o+tya_x+nagara2_x+wo_s_x, - ze_x+kke_x+n_si_x+deha_x, - - gotosi_x+saseru_x+zaru_x+zu_x+zunba_x+seru_x+souda_x+youtai_x, - denbun_x+ta_x+tai_x+tagaru_x+taru_x+da1_x+da2_o+daxtu_o, - darou_o+de_o+desi_o+desho_o+desu_o+na2_o+nara_o+nai_x, - nu_x+ne2_x+nn2_x+fuuda_x+besi_x+mai_x+masu_x+masure_x, - mase_x+mitaida_x+you_x+youda_x+rasii_o+rareru_x+reru_x+site_x, - - yougen_x+aru_x+ara_x+ari1_x+ari2_x+ari3_x+are1_x+are2_x, - arou_x+ii_x+itasi_x+itadaku_x+iru_x+eru_x+kakeru_x+kaneru_x, - karazu_x+gatai_x+gatida_x+kudasaru_x+gozai_x+sa1_x+si1_x+siro_x, - jyau_x+jimau_x+sugiru_x+subesi_x+suru_x+sure_x+se_x+seyo_x, - tamau_x+tayu_x+timau_x+dekiru_x+naru_x+nasai_x+nasaru_x+nikui_x, - yasui_x+yoi_x+yaru_x+ttarasii_x - }; - -static u_char te1[] = { - wo_x+ttatte_x+ttara_x+tte1_x+tte2_x+ppanasi_x+ppoi_x+ue_x, - uti_x+oite_x+okeru_x+ori_x+ka1_x+ka2_x+kai_x+kasira_x, - katagata_x+kadouka_x+kana_x+kane_x+kamo_x+kara1_x+kara2_x+ga1_x, - ga2_x+gatera_x+kiri_x+kuseni_x+kurai_x+gurumi_x+kedo_x+koso_x, - koto_x+sa2_o+sae_x+si2_x+sika_x+sura_x+zutu_x+zo_x, - tame_x+dake_x+dano_x+darake_x+tuite_x+tuki_x+tutu_x+tumori_x, - te1_x+te2_x+teru_x+dearou_x+deru_x+to1_x+to2_x+totte_x, - toiu_x+toori_x+toki_x+tokoro_x+tote_x+tohaie_x+tomo_x+do_x, - doori_x+dokoro_x+dokoroka_x+domo_x+na1_x+naa_o+nagara_x+nazo_x, - nado_x+nari_x+nanka_x+nanzo_x+nante_x+ni1_x+ni2_x+ni3_x, - nite_x+nimo_x+ne1_o+nee_o+no1_x+no2_x+node_x+noni_x, - nomi_x+nominrz_x+ha_o+hazu_x+ba_x+bakari_x+he_x+hou_x, - hoka_x+hodo_x+made_x+mama_x+mo1_o+mo2_x+motte_x+mono_x, - ya1_x+ya2_x+yara_x+yue_x+yo_x+yori_x+wa_x+wake_x, - wane_x+wayo_x+nn1_x+jya_o+tya_x+nagara2_x+wo_s_x, - ze_x+kke_x+n_si_x+deha_x, - - gotosi_x+saseru_x+zaru_x+zu_x+zunba_x+seru_x+souda_x+youtai_x, - denbun_x+ta_x+tai_x+tagaru_x+taru_x+da1_x+da2_x+daxtu_x, - darou_x+de_x+desi_x+desho_x+desu_x+na2_x+nara_x+nai_x, - nu_x+ne2_x+nn2_x+fuuda_x+besi_x+mai_x+masu_x+masure_x, - mase_x+mitaida_x+you_x+youda_x+rasii_x+rareru_x+reru_x+site_x, - - yougen_x+aru_x+ara_x+ari1_x+ari2_x+ari3_x+are1_x+are2_x, - arou_x+ii_x+itasi_x+itadaku_x+iru_x+eru_x+kakeru_x+kaneru_x, - karazu_x+gatai_x+gatida_x+kudasaru_x+gozai_x+sa1_x+si1_x+siro_x, - jyau_x+jimau_x+sugiru_x+subesi_x+suru_x+sure_x+se_x+seyo_x, - tamau_x+tayu_x+timau_x+dekiru_x+naru_x+nasai_x+nasaru_x+nikui_x, - yasui_x+yoi_x+yaru_x+ttarasii_x - }; - -static u_char te2[] = { - wo_x+ttatte_x+ttara_x+tte1_x+tte2_o+ppanasi_x+ppoi_x+ue_x, - uti_x+oite_x+okeru_x+ori_x+ka1_x+ka2_x+kai_x+kasira_x, - katagata_x+kadouka_x+kana_x+kane_x+kamo_x+kara1_o+kara2_x+ga1_x, - ga2_x+gatera_x+kiri_x+kuseni_x+kurai_x+gurumi_x+kedo_x+koso_o, - koto_x+sa2_o+sae_o+si2_x+sika_o+sura_o+zutu_x+zo_x, - tame_x+dake_x+dano_x+darake_x+tuite_x+tuki_x+tutu_x+tumori_x, - te1_x+te2_x+teru_x+dearou_x+deru_x+to1_x+to2_x+totte_x, - toiu_x+toori_x+toki_x+tokoro_x+tote_x+tohaie_x+tomo_x+do_x, - doori_x+dokoro_x+dokoroka_x+domo_x+na1_x+naa_x+nagara_x+nazo_x, - nado_x+nari_x+nanka_x+nanzo_x+nante_x+ni1_x+ni2_x+ni3_x, - nite_x+nimo_x+ne1_o+nee_x+no1_o+no2_x+node_x+noni_x, - nomi_x+nominrz_x+ha_o+hazu_x+ba_x+bakari_o+he_x+hou_x, - hoka_x+hodo_x+made_o+mama_x+mo1_x+mo2_o+motte_x+mono_x, - ya1_x+ya2_x+yara_x+yue_x+yo_o+yori_x+wa_x+wake_x, - wane_x+wayo_x+nn1_x+jya_x+tya_o+nagara2_x+wo_s_x, - ze_x+kke_x+n_si_x+deha_x, - - gotosi_x+saseru_x+zaru_x+zu_x+zunba_x+seru_x+souda_o+youtai_o, - denbun_x+ta_o+tai_x+tagaru_x+taru_x+da1_x+da2_x+daxtu_x, - darou_x+de_o+desi_x+desho_x+desu_x+na2_x+nara_x+nai_o, - nu_x+ne2_x+nn2_x+fuuda_x+besi_x+mai_o+masu_o+masure_o, - mase_x+mitaida_x+you_x+youda_x+rasii_x+rareru_x+reru_x+site_x, - - yougen_o+aru_o+ara_o+ari1_x+ari2_o+ari3_x+are1_x+are2_o, - arou_o+ii_o+itasi_x+itadaku_o+iru_o+eru_x+kakeru_x+kaneru_x, - karazu_x+gatai_x+gatida_x+kudasaru_o+gozai_x+sa1_x+si1_x+siro_x, - jyau_x+jimau_x+sugiru_x+subesi_x+suru_x+sure_x+se_x+seyo_x, - tamau_x+tayu_x+timau_x+dekiru_x+naru_x+nasai_o+nasaru_x+nikui_x, - yasui_x+yoi_x+yaru_x+ttarasii_x - }; - -static u_char teru[] = { - wo_x+ttatte_x+ttara_x+tte1_o+tte2_x+ppanasi_x+ppoi_x+ue_o, - uti_o+oite_x+okeru_x+ori_x+ka1_o+ka2_x+kai_o+kasira_o, - katagata_x+kadouka_o+kana_o+kane_o+kamo_o+kara1_x+kara2_o+ga1_x, - ga2_o+gatera_x+kiri_x+kuseni_o+kurai_o+gurumi_x+kedo_o+koso_x, - koto_o+sa2_o+sae_x+si2_o+sika_o+sura_x+zutu_x+zo_x, - tame_x+dake_o+dano_o+darake_x+tuite_x+tuki_x+tutu_x+tumori_o, - te1_x+te2_x+teru_x+dearou_o+deru_x+to1_x+to2_o+totte_x, - toiu_o+toori_x+toki_x+tokoro_o+tote_x+tohaie_o+tomo_x+do_x, - doori_x+dokoro_o+dokoroka_o+domo_x+na1_o+naa_o+nagara_x+nazo_o, - nado_o+nari_x+nanka_o+nanzo_o+nante_o+ni1_x+ni2_x+ni3_x, - nite_x+nimo_x+ne1_o+nee_o+no1_x+no2_o+node_o+noni_o, - nomi_x+nominrz_x+ha_x+hazu_o+ba_x+bakari_o+he_x+hou_o, - hoka_o+hodo_o+made_x+mama_x+mo1_o+mo2_x+motte_x+mono_o, - ya1_x+ya2_x+yara_o+yue_x+yo_o+yori_o+wa_o+wake_o, - wane_o+wayo_o+nn1_o+jya_o+tya_x+nagara2_x+wo_s_x, - ze_x+kke_x+n_si_x+deha_o, - - gotosi_x+saseru_x+zaru_x+zu_x+zunba_x+seru_x+souda_o+youtai_x, - denbun_o+ta_x+tai_x+tagaru_x+taru_x+da1_x+da2_x+daxtu_x, - darou_o+de_x+desi_x+desho_o+desu_x+na2_x+nara_o+nai_x, - nu_x+ne2_x+nn2_x+fuuda_x+besi_x+mai_x+masu_x+masure_x, - mase_x+mitaida_o+you_x+youda_o+rasii_o+rareru_x+reru_x+site_x, - - yougen_x+aru_x+ara_x+ari1_x+ari2_x+ari3_x+are1_x+are2_x, - arou_x+ii_x+itasi_x+itadaku_x+iru_x+eru_x+kakeru_x+kaneru_x, - karazu_x+gatai_x+gatida_x+kudasaru_x+gozai_x+sa1_x+si1_x+siro_x, - jyau_x+jimau_x+sugiru_x+subesi_x+suru_x+sure_x+se_x+seyo_x, - tamau_x+tayu_x+timau_x+dekiru_x+naru_x+nasai_x+nasaru_x+nikui_x, - yasui_x+yoi_x+yaru_x+ttarasii_x - }; - -static u_char to1[] = { - wo_o+ttatte_x+ttara_x+tte1_x+tte2_x+ppanasi_x+ppoi_x+ue_x, - uti_x+oite_x+okeru_x+ori_x+ka1_o+ka2_x+kai_x+kasira_o, - katagata_x+kadouka_o+kana_o+kane_o+kamo_o+kara1_x+kara2_x+ga1_o, - ga2_x+gatera_x+kiri_x+kuseni_x+kurai_x+gurumi_x+kedo_x+koso_x, - koto_x+sa2_x+sae_o+si2_x+sika_o+sura_x+zutu_x+zo_x, - tame_x+dake_o+dano_x+darake_x+tuite_x+tuki_x+tutu_x+tumori_x, - te1_x+te2_x+teru_x+dearou_x+deru_x+to1_x+to2_x+totte_x, - toiu_x+toori_x+toki_x+tokoro_x+tote_x+tohaie_x+tomo_x+do_x, - doori_x+dokoro_x+dokoroka_x+domo_x+na1_o+naa_o+nagara_x+nazo_o, - nado_o+nari_x+nanka_o+nanzo_o+nante_o+ni1_o+ni2_x+ni3_x, - nite_x+nimo_x+ne1_o+nee_o+no1_o+no2_x+node_x+noni_x, - nomi_o+nominrz_o+ha_o+hazu_x+ba_x+bakari_o+he_x+hou_x, - hoka_x+hodo_x+made_x+mama_x+mo1_o+mo2_x+motte_x+mono_x, - ya1_x+ya2_x+yara_o+yue_x+yo_o+yori_x+wa_x+wake_x, - wane_o+wayo_x+nn1_x+jya_x+tya_x+nagara2_x+wo_s_x, - ze_x+kke_x+n_si_x+deha_x, - - gotosi_x+saseru_x+zaru_x+zu_x+zunba_x+seru_x+souda_x+youtai_x, - denbun_x+ta_x+tai_x+tagaru_x+taru_x+da1_x+da2_o+daxtu_o, - darou_o+de_x+desi_o+desho_o+desu_o+na2_x+nara_o+nai_x, - nu_x+ne2_x+nn2_x+fuuda_x+besi_x+mai_x+masu_x+masure_x, - mase_x+mitaida_x+you_x+youda_x+rasii_x+rareru_x+reru_x+site_x, - - yougen_x+aru_x+ara_x+ari1_x+ari2_x+ari3_x+are1_x+are2_x, - arou_x+ii_x+itasi_x+itadaku_x+iru_x+eru_x+kakeru_x+kaneru_x, - karazu_x+gatai_x+gatida_x+kudasaru_x+gozai_x+sa1_x+si1_o+siro_o, - jyau_x+jimau_x+sugiru_x+subesi_x+suru_o+sure_o+se_o+seyo_o, - tamau_x+tayu_x+timau_x+dekiru_x+naru_o+nasai_x+nasaru_x+nikui_x, - yasui_x+yoi_x+yaru_x+ttarasii_x - }; - -static u_char to2[] = { - wo_x+ttatte_x+ttara_x+tte1_x+tte2_x+ppanasi_x+ppoi_x+ue_x, - uti_x+oite_x+okeru_x+ori_x+ka1_o+ka2_x+kai_x+kasira_o, - katagata_x+kadouka_x+kana_o+kane_o+kamo_x+kara1_x+kara2_x+ga1_x, - ga2_x+gatera_x+kiri_x+kuseni_x+kurai_x+gurumi_x+kedo_x+koso_x, - koto_x+sa2_x+sae_o+si2_x+sika_o+sura_o+zutu_x+zo_x, - tame_x+dake_o+dano_x+darake_x+tuite_x+tuki_x+tutu_x+tumori_x, - te1_x+te2_x+teru_x+dearou_x+deru_x+to1_x+to2_x+totte_x, - toiu_x+toori_x+toki_x+tokoro_x+tote_x+tohaie_x+tomo_x+do_x, - doori_x+dokoro_x+dokoroka_x+domo_x+na1_o+naa_o+nagara_x+nazo_o, - nado_o+nari_x+nanka_o+nanzo_o+nante_o+ni1_x+ni2_x+ni3_x, - nite_x+nimo_x+ne1_o+nee_o+no1_o+no2_x+node_x+noni_x, - nomi_o+nominrz_o+ha_o+hazu_x+ba_x+bakari_o+he_x+hou_x, - hoka_x+hodo_x+made_o+mama_x+mo1_o+mo2_x+motte_x+mono_x, - ya1_x+ya2_x+yara_x+yue_x+yo_x+yori_x+wa_x+wake_x, - wane_o+wayo_x+nn1_x+jya_x+tya_x+nagara2_x+wo_s_x, - ze_x+kke_x+n_si_x+deha_x, - - gotosi_x+saseru_x+zaru_x+zu_x+zunba_x+seru_x+souda_x+youtai_x, - denbun_x+ta_x+tai_x+tagaru_x+taru_x+da1_x+da2_x+daxtu_x, - darou_x+de_x+desi_x+desho_x+desu_x+na2_x+nara_x+nai_x, - nu_x+ne2_x+nn2_x+fuuda_x+besi_x+mai_x+masu_x+masure_x, - mase_x+mitaida_x+you_x+youda_x+rasii_x+rareru_x+reru_x+site_x, - - yougen_x+aru_x+ara_x+ari1_x+ari2_x+ari3_x+are1_x+are2_x, - arou_x+ii_x+itasi_x+itadaku_x+iru_x+eru_x+kakeru_x+kaneru_x, - karazu_x+gatai_x+gatida_x+kudasaru_x+gozai_x+sa1_o+si1_o+siro_o, - jyau_x+jimau_x+sugiru_x+subesi_x+suru_o+sure_o+se_o+seyo_o, - tamau_x+tayu_x+timau_x+dekiru_x+naru_o+nasai_x+nasaru_x+nikui_x, - yasui_x+yoi_x+yaru_x+ttarasii_x - }; - -static u_char totte[] = { - wo_x+ttatte_x+ttara_x+tte1_x+tte2_x+ppanasi_x+ppoi_x+ue_x, - uti_x+oite_x+okeru_x+ori_x+ka1_x+ka2_x+kai_x+kasira_x, - katagata_x+kadouka_x+kana_x+kane_x+kamo_x+kara1_x+kara2_x+ga1_x, - ga2_x+gatera_x+kiri_x+kuseni_x+kurai_x+gurumi_x+kedo_x+koso_x, - koto_x+sa2_x+sae_x+si2_x+sika_x+sura_x+zutu_x+zo_x, - tame_x+dake_x+dano_x+darake_x+tuite_x+tuki_x+tutu_x+tumori_x, - te1_x+te2_x+teru_x+dearou_x+deru_x+to1_x+to2_x+totte_x, - toiu_x+toori_x+toki_x+tokoro_x+tote_x+tohaie_x+tomo_x+do_x, - doori_x+dokoro_x+dokoroka_x+domo_x+na1_o+naa_o+nagara_x+nazo_x, - nado_x+nari_x+nanka_x+nanzo_x+nante_x+ni1_x+ni2_x+ni3_x, - nite_x+nimo_x+ne1_o+nee_o+no1_o+no2_x+node_x+noni_x, - nomi_x+nominrz_x+ha_o+hazu_x+ba_x+bakari_x+he_x+hou_x, - hoka_x+hodo_x+made_x+mama_x+mo1_o+mo2_x+motte_x+mono_x, - ya1_x+ya2_x+yara_x+yue_x+yo_o+yori_x+wa_x+wake_x, - wane_o+wayo_x+nn1_x+jya_o+tya_x+nagara2_x+wo_s_x, - ze_x+kke_x+n_si_x+deha_x, - - gotosi_x+saseru_x+zaru_x+zu_x+zunba_x+seru_x+souda_x+youtai_x, - denbun_x+ta_x+tai_x+tagaru_x+taru_x+da1_x+da2_x+daxtu_x, - darou_x+de_x+desi_x+desho_x+desu_x+na2_x+nara_x+nai_x, - nu_x+ne2_x+nn2_x+fuuda_x+besi_x+mai_x+masu_x+masure_x, - mase_x+mitaida_x+you_x+youda_x+rasii_x+rareru_x+reru_x+site_x, - - yougen_x+aru_x+ara_x+ari1_x+ari2_x+ari3_x+are1_x+are2_x, - arou_x+ii_x+itasi_x+itadaku_x+iru_x+eru_x+kakeru_x+kaneru_x, - karazu_x+gatai_x+gatida_x+kudasaru_x+gozai_x+sa1_x+si1_x+siro_x, - jyau_x+jimau_x+sugiru_x+subesi_x+suru_x+sure_x+se_x+seyo_x, - tamau_x+tayu_x+timau_x+dekiru_x+naru_x+nasai_x+nasaru_x+nikui_x, - yasui_x+yoi_x+yaru_x+ttarasii_x - }; - -static u_char toiu[] = { - wo_x+ttatte_x+ttara_x+tte1_x+tte2_x+ppanasi_x+ppoi_x+ue_x, - uti_x+oite_x+okeru_x+ori_x+ka1_o+ka2_x+kai_x+kasira_x, - katagata_x+kadouka_o+kana_x+kane_x+kamo_x+kara1_x+kara2_o+ga1_x, - ga2_o+gatera_x+kiri_x+kuseni_o+kurai_o+gurumi_x+kedo_o+koso_x, - koto_o+sa2_x+sae_x+si2_o+sika_o+sura_x+zutu_x+zo_x, - tame_x+dake_o+dano_x+darake_x+tuite_x+tuki_x+tutu_x+tumori_o, - te1_x+te2_x+teru_x+dearou_x+deru_x+to1_x+to2_x+totte_x, - toiu_x+toori_x+toki_x+tokoro_x+tote_x+tohaie_x+tomo_x+do_x, - doori_x+dokoro_o+dokoroka_o+domo_x+na1_x+naa_x+nagara_x+nazo_x, - nado_x+nari_x+nanka_x+nanzo_x+nante_x+ni1_x+ni2_x+ni3_o, - nite_x+nimo_o+ne1_x+nee_x+no1_x+no2_o+node_o+noni_o, - nomi_x+nominrz_x+ha_x+hazu_x+ba_x+bakari_x+he_x+hou_x, - hoka_o+hodo_o+made_o+mama_x+mo1_x+mo2_x+motte_x+mono_o, - ya1_x+ya2_x+yara_x+yue_o+yo_x+yori_x+wa_x+wake_o, - wane_x+wayo_x+nn1_x+jya_x+tya_x+nagara2_x+wo_s_x, - ze_x+kke_x+n_si_x+deha_x, - - gotosi_x+saseru_x+zaru_x+zu_x+zunba_x+seru_x+souda_x+youtai_x, - denbun_x+ta_x+tai_x+tagaru_x+taru_x+da1_x+da2_x+daxtu_x, - darou_x+de_x+desi_x+desho_x+desu_x+na2_x+nara_x+nai_x, - nu_x+ne2_x+nn2_x+fuuda_x+besi_x+mai_x+masu_x+masure_x, - mase_x+mitaida_x+you_x+youda_x+rasii_x+rareru_x+reru_x+site_x, - - yougen_x+aru_x+ara_x+ari1_x+ari2_x+ari3_x+are1_x+are2_x, - arou_x+ii_x+itasi_x+itadaku_x+iru_x+eru_x+kakeru_x+kaneru_x, - karazu_x+gatai_x+gatida_x+kudasaru_x+gozai_x+sa1_x+si1_x+siro_x, - jyau_x+jimau_x+sugiru_x+subesi_x+suru_x+sure_x+se_x+seyo_x, - tamau_x+tayu_x+timau_x+dekiru_x+naru_x+nasai_x+nasaru_x+nikui_x, - yasui_x+yoi_x+yaru_x+ttarasii_x - }; - -static u_char toori[] = { - wo_x+ttatte_x+ttara_x+tte1_o+tte2_x+ppanasi_x+ppoi_x+ue_x, - uti_x+oite_x+okeru_x+ori_x+ka1_o+ka2_x+kai_x+kasira_o, - katagata_x+kadouka_o+kana_o+kane_o+kamo_o+kara1_x+kara2_x+ga1_o, - ga2_x+gatera_x+kiri_x+kuseni_x+kurai_x+gurumi_x+kedo_x+koso_x, - koto_x+sa2_o+sae_x+si2_x+sika_o+sura_x+zutu_x+zo_x, - tame_x+dake_x+dano_x+darake_x+tuite_x+tuki_x+tutu_x+tumori_x, - te1_x+te2_x+teru_x+dearou_x+deru_x+to1_o+to2_x+totte_x, - toiu_o+toori_x+toki_x+tokoro_x+tote_x+tohaie_o+tomo_x+do_x, - doori_x+dokoro_o+dokoroka_o+domo_x+na1_x+naa_x+nagara_x+nazo_x, - nado_x+nari_x+nanka_x+nanzo_x+nante_o+ni1_o+ni2_x+ni3_x, - nite_x+nimo_x+ne1_o+nee_o+no1_o+no2_x+node_x+noni_x, - nomi_o+nominrz_x+ha_o+hazu_x+ba_x+bakari_x+he_x+hou_x, - hoka_x+hodo_x+made_x+mama_x+mo1_o+mo2_x+motte_x+mono_x, - ya1_o+ya2_x+yara_x+yue_x+yo_o+yori_x+wa_x+wake_x, - wane_x+wayo_x+nn1_x+jya_x+tya_x+nagara2_x+wo_s_x, - ze_x+kke_x+n_si_x+deha_x, - - gotosi_x+saseru_x+zaru_x+zu_x+zunba_x+seru_x+souda_x+youtai_x, - denbun_x+ta_x+tai_x+tagaru_x+taru_x+da1_x+da2_o+daxtu_o, - darou_o+de_o+desi_o+desho_o+desu_o+na2_o+nara_o+nai_x, - nu_x+ne2_x+nn2_x+fuuda_x+besi_x+mai_x+masu_x+masure_x, - mase_x+mitaida_o+you_x+youda_x+rasii_o+rareru_x+reru_x+site_x, - - yougen_x+aru_x+ara_x+ari1_x+ari2_x+ari3_x+are1_x+are2_x, - arou_x+ii_x+itasi_x+itadaku_x+iru_x+eru_x+kakeru_x+kaneru_x, - karazu_x+gatai_x+gatida_x+kudasaru_x+gozai_x+sa1_x+si1_x+siro_x, - jyau_x+jimau_x+sugiru_x+subesi_x+suru_x+sure_x+se_x+seyo_x, - tamau_x+tayu_x+timau_x+dekiru_x+naru_x+nasai_x+nasaru_x+nikui_x, - yasui_x+yoi_x+yaru_x+ttarasii_x - }; - -static u_char toki[] = { - wo_o+ttatte_x+ttara_x+tte1_o+tte2_x+ppanasi_x+ppoi_x+ue_x, - uti_x+oite_x+okeru_x+ori_x+ka1_o+ka2_x+kai_x+kasira_o, - katagata_x+kadouka_o+kana_o+kane_o+kamo_o+kara1_o+kara2_x+ga1_o, - ga2_x+gatera_x+kiri_x+kuseni_x+kurai_o+gurumi_x+kedo_x+koso_x, - koto_x+sa2_o+sae_o+si2_x+sika_o+sura_o+zutu_x+zo_x, - tame_x+dake_o+dano_o+darake_x+tuite_x+tuki_x+tutu_x+tumori_x, - te1_x+te2_x+teru_x+dearou_x+deru_x+to1_o+to2_x+totte_x, - toiu_o+toori_x+toki_x+tokoro_x+tote_x+tohaie_o+tomo_x+do_x, - doori_x+dokoro_o+dokoroka_o+domo_x+na1_x+naa_x+nagara_x+nazo_o, - nado_o+nari_x+nanka_o+nanzo_o+nante_o+ni1_o+ni2_x+ni3_x, - nite_x+nimo_x+ne1_o+nee_o+no1_o+no2_x+node_x+noni_x, - nomi_o+nominrz_o+ha_o+hazu_x+ba_x+bakari_o+he_o+hou_x, - hoka_x+hodo_x+made_o+mama_x+mo1_x+mo2_o+motte_x+mono_x, - ya1_o+ya2_x+yara_o+yue_x+yo_o+yori_o+wa_x+wake_x, - wane_x+wayo_x+nn1_x+jya_o+tya_x+nagara2_x+wo_s_x, - ze_x+kke_x+n_si_x+deha_x, - - gotosi_x+saseru_x+zaru_x+zu_x+zunba_x+seru_x+souda_x+youtai_x, - denbun_x+ta_x+tai_x+tagaru_x+taru_x+da1_x+da2_o+daxtu_o, - darou_o+de_o+desi_o+desho_o+desu_o+na2_o+nara_o+nai_x, - nu_x+ne2_x+nn2_x+fuuda_x+besi_x+mai_x+masu_x+masure_x, - mase_x+mitaida_o+you_x+youda_x+rasii_o+rareru_x+reru_x+site_x, - - yougen_x+aru_x+ara_x+ari1_x+ari2_x+ari3_x+are1_x+are2_x, - arou_x+ii_x+itasi_x+itadaku_x+iru_x+eru_x+kakeru_x+kaneru_x, - karazu_x+gatai_x+gatida_x+kudasaru_x+gozai_x+sa1_x+si1_x+siro_x, - jyau_x+jimau_x+sugiru_x+subesi_x+suru_x+sure_x+se_x+seyo_x, - tamau_x+tayu_x+timau_x+dekiru_x+naru_x+nasai_x+nasaru_x+nikui_x, - yasui_x+yoi_x+yaru_x+ttarasii_x - }; - -static u_char tokoro[] = { - wo_o+ttatte_x+ttara_x+tte1_o+tte2_x+ppanasi_x+ppoi_x+ue_x, - uti_x+oite_x+okeru_x+ori_x+ka1_o+ka2_x+kai_x+kasira_o, - katagata_x+kadouka_o+kana_o+kane_o+kamo_o+kara1_o+kara2_x+ga1_o, - ga2_x+gatera_x+kiri_x+kuseni_x+kurai_o+gurumi_x+kedo_x+koso_x, - koto_x+sa2_o+sae_o+si2_x+sika_o+sura_o+zutu_x+zo_x, - tame_x+dake_x+dano_x+darake_x+tuite_x+tuki_x+tutu_x+tumori_x, - te1_x+te2_x+teru_x+dearou_x+deru_x+to1_o+to2_x+totte_x, - toiu_o+toori_x+toki_x+tokoro_x+tote_x+tohaie_o+tomo_x+do_x, - doori_x+dokoro_o+dokoroka_o+domo_x+na1_x+naa_x+nagara_x+nazo_o, - nado_o+nari_x+nanka_o+nanzo_o+nante_o+ni1_o+ni2_x+ni3_x, - nite_x+nimo_x+ne1_o+nee_o+no1_o+no2_x+node_x+noni_x, - nomi_o+nominrz_x+ha_o+hazu_x+ba_x+bakari_o+he_o+hou_x, - hoka_x+hodo_x+made_o+mama_x+mo1_x+mo2_o+motte_x+mono_x, - ya1_o+ya2_x+yara_o+yue_x+yo_o+yori_o+wa_x+wake_x, - wane_x+wayo_x+nn1_x+jya_o+tya_x+nagara2_x+wo_s_x, - ze_x+kke_x+n_si_x+deha_x, - - gotosi_x+saseru_x+zaru_x+zu_x+zunba_x+seru_x+souda_x+youtai_x, - denbun_x+ta_x+tai_x+tagaru_x+taru_x+da1_x+da2_o+daxtu_o, - darou_o+de_o+desi_o+desho_o+desu_o+na2_o+nara_o+nai_x, - nu_x+ne2_x+nn2_x+fuuda_x+besi_x+mai_x+masu_x+masure_x, - mase_x+mitaida_o+you_x+youda_x+rasii_o+rareru_x+reru_x+site_x, - - yougen_x+aru_x+ara_x+ari1_x+ari2_x+ari3_x+are1_x+are2_x, - arou_x+ii_x+itasi_x+itadaku_x+iru_x+eru_x+kakeru_x+kaneru_x, - karazu_x+gatai_x+gatida_x+kudasaru_x+gozai_x+sa1_x+si1_x+siro_x, - jyau_x+jimau_x+sugiru_x+subesi_x+suru_x+sure_x+se_x+seyo_x, - tamau_x+tayu_x+timau_x+dekiru_x+naru_x+nasai_x+nasaru_x+nikui_x, - yasui_x+yoi_x+yaru_x+ttarasii_x - }; - -static u_char tote[] = { - wo_x+ttatte_x+ttara_x+tte1_x+tte2_x+ppanasi_x+ppoi_x+ue_x, - uti_x+oite_x+okeru_x+ori_x+ka1_x+ka2_x+kai_x+kasira_x, - katagata_x+kadouka_x+kana_x+kane_x+kamo_x+kara1_x+kara2_x+ga1_x, - ga2_x+gatera_x+kiri_x+kuseni_x+kurai_x+gurumi_x+kedo_x+koso_x, - koto_x+sa2_x+sae_x+si2_x+sika_x+sura_x+zutu_x+zo_x, - tame_x+dake_x+dano_x+darake_x+tuite_x+tuki_x+tutu_x+tumori_x, - te1_x+te2_x+teru_x+dearou_x+deru_x+to1_x+to2_x+totte_x, - toiu_x+toori_x+toki_x+tokoro_x+tote_x+tohaie_x+tomo_x+do_x, - doori_x+dokoro_x+dokoroka_x+domo_x+na1_x+naa_x+nagara_x+nazo_x, - nado_x+nari_x+nanka_x+nanzo_x+nante_x+ni1_x+ni2_x+ni3_x, - nite_x+nimo_x+ne1_x+nee_x+no1_x+no2_x+node_x+noni_x, - nomi_x+nominrz_x+ha_x+hazu_x+ba_x+bakari_x+he_x+hou_x, - hoka_x+hodo_x+made_x+mama_x+mo1_x+mo2_x+motte_x+mono_x, - ya1_x+ya2_x+yara_x+yue_x+yo_x+yori_x+wa_x+wake_x, - wane_x+wayo_x+nn1_x+jya_x+tya_x+nagara2_x+wo_s_x, - ze_x+kke_x+n_si_x+deha_x, - - gotosi_x+saseru_x+zaru_x+zu_x+zunba_x+seru_x+souda_x+youtai_x, - denbun_x+ta_x+tai_x+tagaru_x+taru_x+da1_x+da2_x+daxtu_x, - darou_x+de_x+desi_x+desho_x+desu_x+na2_x+nara_x+nai_x, - nu_x+ne2_x+nn2_x+fuuda_x+besi_x+mai_x+masu_x+masure_x, - mase_x+mitaida_x+you_x+youda_x+rasii_x+rareru_x+reru_x+site_x, - - yougen_x+aru_x+ara_x+ari1_x+ari2_x+ari3_x+are1_x+are2_x, - arou_x+ii_x+itasi_x+itadaku_x+iru_x+eru_x+kakeru_x+kaneru_x, - karazu_x+gatai_x+gatida_x+kudasaru_x+gozai_x+sa1_x+si1_x+siro_x, - jyau_x+jimau_x+sugiru_x+subesi_x+suru_x+sure_x+se_x+seyo_x, - tamau_x+tayu_x+timau_x+dekiru_x+naru_x+nasai_x+nasaru_x+nikui_x, - yasui_x+yoi_x+yaru_x+ttarasii_x - }; - -static u_char tohaie[] = { - wo_x+ttatte_x+ttara_x+tte1_x+tte2_x+ppanasi_x+ppoi_x+ue_x, - uti_x+oite_x+okeru_x+ori_x+ka1_x+ka2_x+kai_x+kasira_x, - katagata_x+kadouka_x+kana_x+kane_x+kamo_x+kara1_x+kara2_x+ga1_x, - ga2_x+gatera_x+kiri_x+kuseni_x+kurai_x+gurumi_x+kedo_x+koso_x, - koto_x+sa2_x+sae_x+si2_x+sika_x+sura_x+zutu_x+zo_x, - tame_x+dake_x+dano_x+darake_x+tuite_x+tuki_x+tutu_x+tumori_x, - te1_x+te2_x+teru_x+dearou_x+deru_x+to1_x+to2_x+totte_x, - toiu_x+toori_x+toki_x+tokoro_x+tote_x+tohaie_x+tomo_x+do_x, - doori_x+dokoro_x+dokoroka_x+domo_x+na1_x+naa_x+nagara_x+nazo_x, - nado_x+nari_x+nanka_x+nanzo_x+nante_x+ni1_x+ni2_x+ni3_x, - nite_x+nimo_x+ne1_x+nee_x+no1_x+no2_x+node_x+noni_x, - nomi_x+nominrz_x+ha_x+hazu_x+ba_x+bakari_x+he_x+hou_x, - hoka_x+hodo_x+made_x+mama_x+mo1_x+mo2_x+motte_x+mono_x, - ya1_x+ya2_x+yara_x+yue_x+yo_x+yori_x+wa_x+wake_x, - wane_x+wayo_x+nn1_x+jya_x+tya_x+nagara2_x+wo_s_x, - ze_x+kke_x+n_si_x+deha_x, - - gotosi_x+saseru_x+zaru_x+zu_x+zunba_x+seru_x+souda_x+youtai_x, - denbun_x+ta_x+tai_x+tagaru_x+taru_x+da1_x+da2_x+daxtu_x, - darou_x+de_x+desi_x+desho_x+desu_x+na2_x+nara_x+nai_x, - nu_x+ne2_x+nn2_x+fuuda_x+besi_x+mai_x+masu_x+masure_x, - mase_x+mitaida_x+you_x+youda_x+rasii_x+rareru_x+reru_x+site_x, - - yougen_x+aru_x+ara_x+ari1_x+ari2_x+ari3_x+are1_x+are2_x, - arou_x+ii_x+itasi_x+itadaku_x+iru_x+eru_x+kakeru_x+kaneru_x, - karazu_x+gatai_x+gatida_x+kudasaru_x+gozai_x+sa1_x+si1_x+siro_x, - jyau_x+jimau_x+sugiru_x+subesi_x+suru_x+sure_x+se_x+seyo_x, - tamau_x+tayu_x+timau_x+dekiru_x+naru_x+nasai_x+nasaru_x+nikui_x, - yasui_x+yoi_x+yaru_x+ttarasii_x - }; - -static u_char tomo[] = { - wo_x+ttatte_x+ttara_x+tte1_x+tte2_x+ppanasi_x+ppoi_x+ue_x, - uti_x+oite_x+okeru_x+ori_x+ka1_x+ka2_x+kai_x+kasira_x, - katagata_x+kadouka_x+kana_x+kane_x+kamo_x+kara1_x+kara2_x+ga1_x, - ga2_x+gatera_x+kiri_x+kuseni_x+kurai_x+gurumi_x+kedo_x+koso_x, - koto_x+sa2_x+sae_x+si2_x+sika_x+sura_x+zutu_x+zo_x, - tame_x+dake_x+dano_x+darake_x+tuite_x+tuki_x+tutu_x+tumori_x, - te1_x+te2_x+teru_x+dearou_x+deru_x+to1_x+to2_x+totte_x, - toiu_x+toori_x+toki_x+tokoro_x+tote_x+tohaie_x+tomo_x+do_x, - doori_x+dokoro_x+dokoroka_x+domo_x+na1_x+naa_x+nagara_x+nazo_x, - nado_x+nari_x+nanka_x+nanzo_x+nante_x+ni1_x+ni2_x+ni3_x, - nite_x+nimo_x+ne1_x+nee_x+no1_x+no2_x+node_x+noni_x, - nomi_x+nominrz_x+ha_x+hazu_x+ba_x+bakari_x+he_x+hou_x, - hoka_x+hodo_x+made_x+mama_x+mo1_x+mo2_x+motte_x+mono_x, - ya1_x+ya2_x+yara_x+yue_x+yo_x+yori_x+wa_x+wake_x, - wane_x+wayo_x+nn1_x+jya_x+tya_x+nagara2_x+wo_s_x, - ze_x+kke_x+n_si_x+deha_x, - - gotosi_x+saseru_x+zaru_x+zu_x+zunba_x+seru_x+souda_x+youtai_x, - denbun_x+ta_x+tai_x+tagaru_x+taru_x+da1_x+da2_x+daxtu_x, - darou_x+de_x+desi_x+desho_x+desu_x+na2_x+nara_x+nai_x, - nu_x+ne2_x+nn2_x+fuuda_x+besi_x+mai_x+masu_x+masure_x, - mase_x+mitaida_x+you_x+youda_x+rasii_x+rareru_x+reru_x+site_x, - - yougen_x+aru_x+ara_x+ari1_x+ari2_x+ari3_x+are1_x+are2_x, - arou_x+ii_x+itasi_x+itadaku_x+iru_x+eru_x+kakeru_x+kaneru_x, - karazu_x+gatai_x+gatida_x+kudasaru_x+gozai_x+sa1_x+si1_x+siro_x, - jyau_x+jimau_x+sugiru_x+subesi_x+suru_x+sure_x+se_x+seyo_x, - tamau_x+tayu_x+timau_x+dekiru_x+naru_x+nasai_x+nasaru_x+nikui_x, - yasui_x+yoi_x+yaru_x+ttarasii_x - }; - -static u_char fdo[] = { - wo_x+ttatte_x+ttara_x+tte1_x+tte2_x+ppanasi_x+ppoi_x+ue_x, - uti_x+oite_x+okeru_x+ori_x+ka1_x+ka2_x+kai_x+kasira_x, - katagata_x+kadouka_x+kana_x+kane_x+kamo_x+kara1_x+kara2_x+ga1_x, - ga2_x+gatera_x+kiri_x+kuseni_x+kurai_x+gurumi_x+kedo_x+koso_x, - koto_x+sa2_x+sae_x+si2_x+sika_x+sura_x+zutu_x+zo_x, - tame_x+dake_x+dano_x+darake_x+tuite_x+tuki_x+tutu_x+tumori_x, - te1_x+te2_x+teru_x+dearou_x+deru_x+to1_x+to2_x+totte_x, - toiu_x+toori_x+toki_x+tokoro_x+tote_x+tohaie_x+tomo_x+do_x, - doori_x+dokoro_x+dokoroka_x+domo_x+na1_x+naa_x+nagara_x+nazo_x, - nado_x+nari_x+nanka_x+nanzo_x+nante_x+ni1_x+ni2_x+ni3_x, - nite_x+nimo_x+ne1_o+nee_o+no1_x+no2_x+node_x+noni_x, - nomi_x+nominrz_x+ha_x+hazu_x+ba_x+bakari_x+he_x+hou_x, - hoka_x+hodo_x+made_x+mama_x+mo1_x+mo2_x+motte_x+mono_x, - ya1_x+ya2_x+yara_x+yue_x+yo_x+yori_x+wa_x+wake_x, - wane_x+wayo_x+nn1_x+jya_x+tya_x+nagara2_x+wo_s_x, - ze_x+kke_x+n_si_x+deha_x, - - gotosi_x+saseru_x+zaru_x+zu_x+zunba_x+seru_x+souda_x+youtai_x, - denbun_x+ta_x+tai_x+tagaru_x+taru_x+da1_x+da2_x+daxtu_x, - darou_x+de_x+desi_x+desho_x+desu_x+na2_x+nara_x+nai_x, - nu_x+ne2_x+nn2_x+fuuda_x+besi_x+mai_x+masu_x+masure_x, - mase_x+mitaida_x+you_x+youda_x+rasii_x+rareru_x+reru_x+site_x, - - yougen_x+aru_x+ara_x+ari1_x+ari2_x+ari3_x+are1_x+are2_x, - arou_x+ii_x+itasi_x+itadaku_x+iru_x+eru_x+kakeru_x+kaneru_x, - karazu_x+gatai_x+gatida_x+kudasaru_x+gozai_x+sa1_x+si1_x+siro_x, - jyau_x+jimau_x+sugiru_x+subesi_x+suru_x+sure_x+se_x+seyo_x, - tamau_x+tayu_x+timau_x+dekiru_x+naru_x+nasai_x+nasaru_x+nikui_x, - yasui_x+yoi_x+yaru_x+ttarasii_x - }; - -static u_char doori[] = { - wo_o+ttatte_x+ttara_x+tte1_o+tte2_x+ppanasi_x+ppoi_x+ue_x, - uti_x+oite_x+okeru_x+ori_x+ka1_o+ka2_x+kai_x+kasira_o, - katagata_x+kadouka_o+kana_o+kane_o+kamo_o+kara1_o+kara2_x+ga1_o, - ga2_x+gatera_x+kiri_x+kuseni_x+kurai_x+gurumi_x+kedo_x+koso_x, - koto_x+sa2_o+sae_o+si2_x+sika_o+sura_o+zutu_x+zo_x, - tame_x+dake_x+dano_x+darake_x+tuite_x+tuki_x+tutu_x+tumori_x, - te1_x+te2_x+teru_x+dearou_x+deru_x+to1_o+to2_x+totte_x, - toiu_o+toori_x+toki_x+tokoro_x+tote_x+tohaie_o+tomo_x+do_x, - doori_x+dokoro_o+dokoroka_o+domo_x+na1_x+naa_x+nagara_x+nazo_x, - nado_x+nari_x+nanka_x+nanzo_x+nante_o+ni1_o+ni2_x+ni3_x, - nite_x+nimo_x+ne1_o+nee_o+no1_o+no2_x+node_x+noni_x, - nomi_x+nominrz_x+ha_o+hazu_x+ba_x+bakari_x+he_x+hou_x, - hoka_x+hodo_x+made_x+mama_x+mo1_o+mo2_x+motte_x+mono_x, - ya1_o+ya2_x+yara_o+yue_x+yo_o+yori_o+wa_x+wake_x, - wane_x+wayo_x+nn1_x+jya_o+tya_x+nagara2_x+wo_s_x, - ze_x+kke_x+n_si_x+deha_x, - - gotosi_x+saseru_x+zaru_x+zu_x+zunba_x+seru_x+souda_x+youtai_x, - denbun_x+ta_x+tai_x+tagaru_x+taru_x+da1_x+da2_o+daxtu_o, - darou_o+de_o+desi_o+desho_o+desu_o+na2_o+nara_o+nai_x, - nu_x+ne2_x+nn2_x+fuuda_x+besi_x+mai_x+masu_x+masure_x, - mase_x+mitaida_o+you_x+youda_x+rasii_o+rareru_x+reru_x+site_x, - - yougen_x+aru_x+ara_x+ari1_x+ari2_x+ari3_x+are1_x+are2_x, - arou_x+ii_x+itasi_x+itadaku_x+iru_x+eru_x+kakeru_x+kaneru_x, - karazu_x+gatai_x+gatida_x+kudasaru_x+gozai_x+sa1_x+si1_x+siro_x, - jyau_x+jimau_x+sugiru_x+subesi_x+suru_x+sure_x+se_x+seyo_x, - tamau_x+tayu_x+timau_x+dekiru_x+naru_x+nasai_x+nasaru_x+nikui_x, - yasui_x+yoi_x+yaru_x+ttarasii_x - }; - -static u_char dokoro[] = { - wo_x+ttatte_x+ttara_x+tte1_x+tte2_x+ppanasi_x+ppoi_x+ue_x, - uti_x+oite_x+okeru_x+ori_x+ka1_x+ka2_x+kai_x+kasira_x, - katagata_x+kadouka_x+kana_x+kane_x+kamo_x+kara1_x+kara2_x+ga1_x, - ga2_x+gatera_x+kiri_x+kuseni_x+kurai_x+gurumi_x+kedo_x+koso_x, - koto_x+sa2_x+sae_x+si2_x+sika_x+sura_x+zutu_x+zo_x, - tame_x+dake_x+dano_x+darake_x+tuite_x+tuki_x+tutu_x+tumori_x, - te1_x+te2_x+teru_x+dearou_x+deru_x+to1_x+to2_x+totte_x, - toiu_x+toori_x+toki_x+tokoro_x+tote_x+tohaie_x+tomo_x+do_x, - doori_x+dokoro_x+dokoroka_x+domo_x+na1_x+naa_x+nagara_x+nazo_x, - nado_x+nari_x+nanka_x+nanzo_x+nante_x+ni1_x+ni2_x+ni3_x, - nite_x+nimo_x+ne1_x+nee_x+no1_o+no2_x+node_x+noni_x, - nomi_x+nominrz_x+ha_x+hazu_x+ba_x+bakari_x+he_x+hou_x, - hoka_x+hodo_x+made_x+mama_x+mo1_x+mo2_x+motte_x+mono_x, - ya1_x+ya2_x+yara_x+yue_x+yo_x+yori_x+wa_x+wake_x, - wane_x+wayo_x+nn1_x+jya_x+tya_x+nagara2_x+wo_s_x, - ze_x+kke_x+n_si_x+deha_x, - - gotosi_x+saseru_x+zaru_x+zu_x+zunba_x+seru_x+souda_x+youtai_x, - denbun_x+ta_x+tai_x+tagaru_x+taru_x+da1_x+da2_x+daxtu_x, - darou_x+de_o+desi_x+desho_x+desu_x+na2_x+nara_x+nai_x, - nu_x+ne2_x+nn2_x+fuuda_x+besi_x+mai_x+masu_x+masure_x, - mase_x+mitaida_x+you_x+youda_x+rasii_x+rareru_x+reru_x+site_x, - - yougen_x+aru_x+ara_x+ari1_x+ari2_x+ari3_x+are1_x+are2_x, - arou_x+ii_x+itasi_x+itadaku_x+iru_x+eru_x+kakeru_x+kaneru_x, - karazu_x+gatai_x+gatida_x+kudasaru_x+gozai_x+sa1_x+si1_x+siro_x, - jyau_x+jimau_x+sugiru_x+subesi_x+suru_x+sure_x+se_x+seyo_x, - tamau_x+tayu_x+timau_x+dekiru_x+naru_x+nasai_x+nasaru_x+nikui_x, - yasui_x+yoi_x+yaru_x+ttarasii_x - }; - -static u_char dokoroka[] = { - wo_x+ttatte_x+ttara_x+tte1_x+tte2_x+ppanasi_x+ppoi_x+ue_x, - uti_x+oite_x+okeru_x+ori_x+ka1_x+ka2_x+kai_x+kasira_x, - katagata_x+kadouka_x+kana_x+kane_x+kamo_x+kara1_x+kara2_x+ga1_x, - ga2_x+gatera_x+kiri_x+kuseni_x+kurai_x+gurumi_x+kedo_x+koso_x, - koto_x+sa2_x+sae_x+si2_x+sika_x+sura_x+zutu_x+zo_x, - tame_x+dake_x+dano_x+darake_x+tuite_x+tuki_x+tutu_x+tumori_x, - te1_x+te2_x+teru_x+dearou_x+deru_x+to1_x+to2_x+totte_x, - toiu_x+toori_x+toki_x+tokoro_x+tote_x+tohaie_x+tomo_x+do_x, - doori_x+dokoro_x+dokoroka_x+domo_x+na1_x+naa_x+nagara_x+nazo_x, - nado_x+nari_x+nanka_x+nanzo_x+nante_x+ni1_x+ni2_x+ni3_x, - nite_x+nimo_x+ne1_o+nee_o+no1_x+no2_x+node_x+noni_x, - nomi_x+nominrz_x+ha_x+hazu_x+ba_x+bakari_x+he_x+hou_x, - hoka_x+hodo_x+made_x+mama_x+mo1_x+mo2_x+motte_x+mono_x, - ya1_x+ya2_x+yara_x+yue_x+yo_x+yori_x+wa_x+wake_x, - wane_x+wayo_x+nn1_x+jya_x+tya_x+nagara2_x+wo_s_x, - ze_x+kke_x+n_si_x+deha_x, - - gotosi_x+saseru_x+zaru_x+zu_x+zunba_x+seru_x+souda_x+youtai_x, - denbun_x+ta_x+tai_x+tagaru_x+taru_x+da1_x+da2_x+daxtu_x, - darou_x+de_x+desi_x+desho_x+desu_x+na2_x+nara_x+nai_x, - nu_x+ne2_x+nn2_x+fuuda_x+besi_x+mai_x+masu_x+masure_x, - mase_x+mitaida_x+you_x+youda_x+rasii_x+rareru_x+reru_x+site_x, - - yougen_x+aru_x+ara_x+ari1_x+ari2_x+ari3_x+are1_x+are2_x, - arou_x+ii_x+itasi_x+itadaku_x+iru_x+eru_x+kakeru_x+kaneru_x, - karazu_x+gatai_x+gatida_x+kudasaru_x+gozai_x+sa1_x+si1_x+siro_x, - jyau_x+jimau_x+sugiru_x+subesi_x+suru_x+sure_x+se_x+seyo_x, - tamau_x+tayu_x+timau_x+dekiru_x+naru_x+nasai_x+nasaru_x+nikui_x, - yasui_x+yoi_x+yaru_x+ttarasii_x - }; - -static u_char domo[] = { - wo_x+ttatte_x+ttara_x+tte1_x+tte2_x+ppanasi_x+ppoi_x+ue_x, - uti_x+oite_x+okeru_x+ori_x+ka1_x+ka2_x+kai_x+kasira_x, - katagata_x+kadouka_x+kana_x+kane_x+kamo_x+kara1_x+kara2_x+ga1_x, - ga2_x+gatera_x+kiri_x+kuseni_x+kurai_x+gurumi_x+kedo_x+koso_x, - koto_x+sa2_x+sae_x+si2_x+sika_x+sura_x+zutu_x+zo_x, - tame_x+dake_x+dano_x+darake_x+tuite_x+tuki_x+tutu_x+tumori_x, - te1_x+te2_x+teru_x+dearou_x+deru_x+to1_x+to2_x+totte_x, - toiu_x+toori_x+toki_x+tokoro_x+tote_x+tohaie_x+tomo_x+do_x, - doori_x+dokoro_x+dokoroka_x+domo_x+na1_x+naa_x+nagara_x+nazo_x, - nado_x+nari_x+nanka_x+nanzo_x+nante_x+ni1_x+ni2_x+ni3_x, - nite_x+nimo_x+ne1_o+nee_o+no1_x+no2_x+node_x+noni_x, - nomi_x+nominrz_x+ha_x+hazu_x+ba_x+bakari_x+he_x+hou_x, - hoka_x+hodo_x+made_x+mama_x+mo1_x+mo2_x+motte_x+mono_x, - ya1_x+ya2_x+yara_x+yue_x+yo_x+yori_x+wa_x+wake_x, - wane_x+wayo_x+nn1_x+jya_x+tya_x+nagara2_x+wo_s_x, - ze_x+kke_x+n_si_x+deha_x, - - gotosi_x+saseru_x+zaru_x+zu_x+zunba_x+seru_x+souda_x+youtai_x, - denbun_x+ta_x+tai_x+tagaru_x+taru_x+da1_x+da2_x+daxtu_x, - darou_x+de_x+desi_x+desho_x+desu_x+na2_x+nara_x+nai_x, - nu_x+ne2_x+nn2_x+fuuda_x+besi_x+mai_x+masu_x+masure_x, - mase_x+mitaida_x+you_x+youda_x+rasii_x+rareru_x+reru_x+site_x, - - yougen_x+aru_x+ara_x+ari1_x+ari2_x+ari3_x+are1_x+are2_x, - arou_x+ii_x+itasi_x+itadaku_x+iru_x+eru_x+kakeru_x+kaneru_x, - karazu_x+gatai_x+gatida_x+kudasaru_x+gozai_x+sa1_x+si1_x+siro_x, - jyau_x+jimau_x+sugiru_x+subesi_x+suru_x+sure_x+se_x+seyo_x, - tamau_x+tayu_x+timau_x+dekiru_x+naru_x+nasai_x+nasaru_x+nikui_x, - yasui_x+yoi_x+yaru_x+ttarasii_x - }; - -static u_char nagara[] = { - wo_x+ttatte_x+ttara_x+tte1_o+tte2_x+ppanasi_x+ppoi_x+ue_x, - uti_x+oite_x+okeru_x+ori_x+ka1_o+ka2_x+kai_x+kasira_o, - katagata_x+kadouka_o+kana_o+kane_o+kamo_o+kara1_x+kara2_x+ga1_x, - ga2_x+gatera_x+kiri_x+kuseni_x+kurai_o+gurumi_x+kedo_x+koso_x, - koto_x+sa2_o+sae_o+si2_x+sika_o+sura_x+zutu_x+zo_x, - tame_x+dake_o+dano_o+darake_x+tuite_x+tuki_x+tutu_x+tumori_x, - te1_x+te2_x+teru_x+dearou_x+deru_x+to1_x+to2_o+totte_x, - toiu_o+toori_x+toki_x+tokoro_x+tote_x+tohaie_o+tomo_x+do_x, - doori_x+dokoro_o+dokoroka_o+domo_x+na1_x+naa_x+nagara_x+nazo_o, - nado_o+nari_x+nanka_o+nanzo_o+nante_o+ni1_o+ni2_x+ni3_x, - nite_x+nimo_x+ne1_o+nee_o+no1_o+no2_x+node_x+noni_x, - nomi_o+nominrz_o+ha_o+hazu_x+ba_x+bakari_o+he_x+hou_x, - hoka_x+hodo_o+made_o+mama_x+mo1_o+mo2_x+motte_x+mono_x, - ya1_o+ya2_x+yara_x+yue_o+yo_o+yori_o+wa_x+wake_x, - wane_o+wayo_x+nn1_x+jya_o+tya_x+nagara2_x+wo_s_x, - ze_x+kke_x+n_si_x+deha_o, - - gotosi_x+saseru_x+zaru_x+zu_x+zunba_x+seru_x+souda_x+youtai_x, - denbun_x+ta_x+tai_x+tagaru_x+taru_x+da1_x+da2_o+daxtu_o, - darou_o+de_o+desi_o+desho_o+desu_o+na2_o+nara_o+nai_x, - nu_x+ne2_x+nn2_x+fuuda_x+besi_x+mai_x+masu_x+masure_x, - mase_x+mitaida_o+you_x+youda_x+rasii_o+rareru_x+reru_x+site_x, - - yougen_x+aru_x+ara_x+ari1_x+ari2_x+ari3_x+are1_x+are2_x, - arou_x+ii_x+itasi_x+itadaku_x+iru_x+eru_x+kakeru_x+kaneru_x, - karazu_x+gatai_x+gatida_x+kudasaru_x+gozai_x+sa1_x+si1_x+siro_x, - jyau_x+jimau_x+sugiru_x+subesi_x+suru_x+sure_x+se_x+seyo_x, - tamau_x+tayu_x+timau_x+dekiru_x+naru_x+nasai_x+nasaru_x+nikui_x, - yasui_x+yoi_x+yaru_x+ttarasii_x - }; - -static u_char nagara2[] = { - wo_x+ttatte_x+ttara_x+tte1_o+tte2_x+ppanasi_x+ppoi_x+ue_x, - uti_x+oite_x+okeru_x+ori_x+ka1_o+ka2_x+kai_x+kasira_o, - katagata_x+kadouka_o+kana_o+kane_o+kamo_o+kara1_x+kara2_x+ga1_x, - ga2_x+gatera_x+kiri_x+kuseni_x+kurai_o+gurumi_x+kedo_x+koso_x, - koto_x+sa2_o+sae_o+si2_x+sika_o+sura_x+zutu_x+zo_x, - tame_x+dake_o+dano_o+darake_x+tuite_x+tuki_x+tutu_x+tumori_x, - te1_x+te2_x+teru_x+dearou_x+deru_x+to1_x+to2_o+totte_x, - toiu_o+toori_x+toki_x+tokoro_x+tote_x+tohaie_o+tomo_x+do_x, - doori_x+dokoro_o+dokoroka_o+domo_x+na1_x+naa_x+nagara_x+nazo_o, - nado_o+nari_x+nanka_o+nanzo_o+nante_o+ni1_o+ni2_x+ni3_x, - nite_x+nimo_x+ne1_o+nee_o+no1_o+no2_x+node_x+noni_x, - nomi_o+nominrz_o+ha_o+hazu_x+ba_x+bakari_o+he_x+hou_x, - hoka_x+hodo_o+made_o+mama_x+mo1_o+mo2_x+motte_x+mono_x, - ya1_o+ya2_x+yara_x+yue_o+yo_o+yori_o+wa_x+wake_x, - wane_o+wayo_x+nn1_x+jya_o+tya_x+nagara2_x+wo_s_x, - ze_x+kke_x+n_si_x+deha_o, - - gotosi_x+saseru_x+zaru_x+zu_x+zunba_x+seru_x+souda_x+youtai_x, - denbun_x+ta_x+tai_x+tagaru_x+taru_x+da1_x+da2_o+daxtu_o, - darou_o+de_o+desi_o+desho_o+desu_o+na2_o+nara_o+nai_x, - nu_x+ne2_x+nn2_x+fuuda_x+besi_x+mai_x+masu_x+masure_x, - mase_x+mitaida_o+you_x+youda_x+rasii_o+rareru_x+reru_x+site_x, - - yougen_x+aru_x+ara_x+ari1_x+ari2_x+ari3_x+are1_x+are2_x, - arou_x+ii_x+itasi_x+itadaku_x+iru_x+eru_x+kakeru_x+kaneru_x, - karazu_x+gatai_x+gatida_x+kudasaru_x+gozai_x+sa1_x+si1_x+siro_x, - jyau_x+jimau_x+sugiru_x+subesi_x+suru_x+sure_x+se_x+seyo_x, - tamau_x+tayu_x+timau_x+dekiru_x+naru_x+nasai_x+nasaru_x+nikui_x, - yasui_x+yoi_x+yaru_x+ttarasii_x - }; - -static u_char nazo[] = { - wo_o+ttatte_x+ttara_x+tte1_o+tte2_x+ppanasi_x+ppoi_x+ue_x, - uti_x+oite_x+okeru_x+ori_x+ka1_x+ka2_x+kai_x+kasira_x, - katagata_x+kadouka_x+kana_x+kane_x+kamo_x+kara1_o+kara2_x+ga1_o, - ga2_x+gatera_x+kiri_x+kuseni_x+kurai_o+gurumi_x+kedo_x+koso_x, - koto_x+sa2_o+sae_o+si2_x+sika_o+sura_x+zutu_x+zo_x, - tame_x+dake_x+dano_x+darake_x+tuite_x+tuki_x+tutu_x+tumori_x, - te1_x+te2_x+teru_x+dearou_x+deru_x+to1_o+to2_x+totte_x, - toiu_o+toori_x+toki_x+tokoro_x+tote_x+tohaie_o+tomo_x+do_x, - doori_x+dokoro_x+dokoroka_x+domo_x+na1_x+naa_x+nagara_x+nazo_x, - nado_x+nari_x+nanka_x+nanzo_x+nante_x+ni1_o+ni2_x+ni3_x, - nite_x+nimo_x+ne1_o+nee_o+no1_o+no2_x+node_x+noni_x, - nomi_x+nominrz_x+ha_o+hazu_x+ba_x+bakari_x+he_o+hou_x, - hoka_x+hodo_x+made_o+mama_x+mo1_o+mo2_x+motte_x+mono_x, - ya1_x+ya2_x+yara_x+yue_x+yo_x+yori_x+wa_x+wake_x, - wane_o+wayo_x+nn1_x+jya_x+tya_x+nagara2_x+wo_s_x, - ze_x+kke_x+n_si_x+deha_x, - - gotosi_x+saseru_x+zaru_x+zu_x+zunba_x+seru_x+souda_x+youtai_x, - denbun_x+ta_x+tai_x+tagaru_x+taru_x+da1_x+da2_x+daxtu_x, - darou_x+de_o+desi_x+desho_x+desu_x+na2_x+nara_x+nai_x, - nu_x+ne2_x+nn2_x+fuuda_x+besi_x+mai_x+masu_x+masure_x, - mase_x+mitaida_x+you_x+youda_x+rasii_x+rareru_x+reru_x+site_x, - - yougen_x+aru_x+ara_x+ari1_x+ari2_x+ari3_x+are1_x+are2_x, - arou_x+ii_x+itasi_x+itadaku_x+iru_x+eru_x+kakeru_x+kaneru_x, - karazu_x+gatai_x+gatida_x+kudasaru_x+gozai_x+sa1_x+si1_x+siro_x, - jyau_x+jimau_x+sugiru_x+subesi_x+suru_x+sure_x+se_x+seyo_x, - tamau_x+tayu_x+timau_x+dekiru_x+naru_x+nasai_x+nasaru_x+nikui_x, - yasui_x+yoi_x+yaru_x+ttarasii_x - }; - -static u_char nado[] = { - wo_o+ttatte_x+ttara_o+tte1_o+tte2_x+ppanasi_x+ppoi_x+ue_x, - uti_x+oite_x+okeru_x+ori_x+ka1_o+ka2_x+kai_x+kasira_o, - katagata_x+kadouka_o+kana_o+kane_o+kamo_o+kara1_o+kara2_x+ga1_o, - ga2_x+gatera_x+kiri_x+kuseni_x+kurai_o+gurumi_x+kedo_x+koso_o, - koto_x+sa2_o+sae_o+si2_x+sika_o+sura_o+zutu_x+zo_x, - tame_x+dake_o+dano_x+darake_x+tuite_x+tuki_x+tutu_x+tumori_x, - te1_x+te2_x+teru_x+dearou_x+deru_x+to1_o+to2_x+totte_x, - toiu_o+toori_x+toki_x+tokoro_x+tote_x+tohaie_o+tomo_x+do_x, - doori_x+dokoro_x+dokoroka_x+domo_x+na1_x+naa_x+nagara_x+nazo_x, - nado_x+nari_x+nanka_x+nanzo_x+nante_x+ni1_o+ni2_x+ni3_x, - nite_x+nimo_x+ne1_o+nee_o+no1_o+no2_x+node_x+noni_x, - nomi_x+nominrz_x+ha_o+hazu_x+ba_x+bakari_o+he_o+hou_x, - hoka_x+hodo_x+made_o+mama_x+mo1_o+mo2_x+motte_x+mono_x, - ya1_o+ya2_x+yara_o+yue_x+yo_o+yori_x+wa_x+wake_x, - wane_o+wayo_x+nn1_x+jya_o+tya_x+nagara2_x+wo_s_x, - ze_x+kke_x+n_si_x+deha_x, - - gotosi_x+saseru_x+zaru_x+zu_x+zunba_x+seru_x+souda_x+youtai_x, - denbun_x+ta_x+tai_x+tagaru_x+taru_x+da1_x+da2_o+daxtu_o, - darou_o+de_o+desi_o+desho_o+desu_o+na2_o+nara_o+nai_x, - nu_x+ne2_x+nn2_x+fuuda_x+besi_x+mai_x+masu_x+masure_x, - mase_x+mitaida_x+you_x+youda_x+rasii_o+rareru_x+reru_x+site_x, - - yougen_x+aru_x+ara_x+ari1_x+ari2_x+ari3_x+are1_x+are2_x, - arou_x+ii_x+itasi_x+itadaku_x+iru_x+eru_x+kakeru_x+kaneru_x, - karazu_x+gatai_x+gatida_x+kudasaru_x+gozai_x+sa1_x+si1_x+siro_x, - jyau_x+jimau_x+sugiru_x+subesi_x+suru_x+sure_x+se_x+seyo_x, - tamau_x+tayu_x+timau_x+dekiru_x+naru_x+nasai_x+nasaru_x+nikui_x, - yasui_x+yoi_x+yaru_x+ttarasii_x - }; - -static u_char nari[] = { - wo_o+ttatte_x+ttara_x+tte1_x+tte2_x+ppanasi_x+ppoi_x+ue_x, - uti_x+oite_x+okeru_x+ori_x+ka1_x+ka2_x+kai_x+kasira_x, - katagata_x+kadouka_x+kana_x+kane_x+kamo_x+kara1_o+kara2_x+ga1_o, - ga2_x+gatera_x+kiri_x+kuseni_x+kurai_x+gurumi_x+kedo_x+koso_x, - koto_x+sa2_x+sae_o+si2_x+sika_o+sura_x+zutu_x+zo_x, - tame_x+dake_o+dano_o+darake_x+tuite_x+tuki_x+tutu_x+tumori_x, - te1_x+te2_x+teru_x+dearou_x+deru_x+to1_o+to2_x+totte_x, - toiu_x+toori_x+toki_x+tokoro_x+tote_x+tohaie_x+tomo_x+do_x, - doori_x+dokoro_x+dokoroka_x+domo_x+na1_x+naa_x+nagara_x+nazo_x, - nado_x+nari_x+nanka_x+nanzo_x+nante_x+ni1_o+ni2_x+ni3_x, - nite_x+nimo_x+ne1_x+nee_x+no1_o+no2_x+node_x+noni_x, - nomi_x+nominrz_x+ha_x+hazu_x+ba_x+bakari_x+he_o+hou_x, - hoka_x+hodo_x+made_x+mama_x+mo1_x+mo2_x+motte_x+mono_x, - ya1_x+ya2_x+yara_x+yue_x+yo_x+yori_x+wa_x+wake_x, - wane_x+wayo_x+nn1_x+jya_x+tya_x+nagara2_x+wo_s_x, - ze_x+kke_x+n_si_x+deha_x, - - gotosi_x+saseru_x+zaru_x+zu_x+zunba_x+seru_x+souda_x+youtai_x, - denbun_x+ta_x+tai_x+tagaru_x+taru_x+da1_x+da2_x+daxtu_x, - darou_x+de_o+desi_x+desho_x+desu_x+na2_x+nara_x+nai_x, - nu_x+ne2_x+nn2_x+fuuda_x+besi_x+mai_x+masu_x+masure_x, - mase_x+mitaida_x+you_x+youda_x+rasii_x+rareru_x+reru_x+site_x, - - yougen_x+aru_x+ara_x+ari1_x+ari2_x+ari3_x+are1_x+are2_x, - arou_x+ii_x+itasi_x+itadaku_x+iru_x+eru_x+kakeru_x+kaneru_x, - karazu_x+gatai_x+gatida_x+kudasaru_x+gozai_x+sa1_x+si1_x+siro_x, - jyau_x+jimau_x+sugiru_x+subesi_x+suru_x+sure_x+se_x+seyo_x, - tamau_x+tayu_x+timau_x+dekiru_x+naru_x+nasai_x+nasaru_x+nikui_x, - yasui_x+yoi_x+yaru_x+ttarasii_x - }; - -static u_char nanka[] = { - wo_o+ttatte_x+ttara_x+tte1_x+tte2_x+ppanasi_x+ppoi_x+ue_x, - uti_x+oite_x+okeru_x+ori_x+ka1_x+ka2_x+kai_x+kasira_x, - katagata_x+kadouka_x+kana_x+kane_x+kamo_x+kara1_o+kara2_x+ga1_o, - ga2_x+gatera_x+kiri_x+kuseni_x+kurai_x+gurumi_x+kedo_x+koso_x, - koto_x+sa2_o+sae_o+si2_x+sika_o+sura_x+zutu_x+zo_x, - tame_x+dake_o+dano_x+darake_x+tuite_x+tuki_x+tutu_x+tumori_x, - te1_x+te2_x+teru_x+dearou_x+deru_x+to1_o+to2_x+totte_x, - toiu_x+toori_x+toki_x+tokoro_x+tote_x+tohaie_x+tomo_x+do_x, - doori_x+dokoro_x+dokoroka_x+domo_x+na1_o+naa_x+nagara_x+nazo_x, - nado_x+nari_x+nanka_x+nanzo_x+nante_x+ni1_x+ni2_x+ni3_o, - nite_x+nimo_x+ne1_o+nee_o+no1_o+no2_x+node_x+noni_x, - nomi_x+nominrz_x+ha_o+hazu_x+ba_x+bakari_x+he_o+hou_x, - hoka_x+hodo_x+made_x+mama_x+mo1_o+mo2_x+motte_x+mono_x, - ya1_o+ya2_x+yara_x+yue_x+yo_x+yori_x+wa_x+wake_x, - wane_x+wayo_x+nn1_x+jya_x+tya_x+nagara2_x+wo_s_x, - ze_x+kke_x+n_si_x+deha_x, - - gotosi_x+saseru_x+zaru_x+zu_x+zunba_x+seru_x+souda_x+youtai_x, - denbun_x+ta_x+tai_x+tagaru_x+taru_x+da1_x+da2_o+daxtu_x, - darou_x+de_o+desi_x+desho_x+desu_x+na2_x+nara_x+nai_o, - nu_x+ne2_x+nn2_x+fuuda_x+besi_x+mai_x+masu_x+masure_x, - mase_x+mitaida_x+you_x+youda_x+rasii_x+rareru_x+reru_x+site_x, - - yougen_x+aru_x+ara_x+ari1_x+ari2_x+ari3_x+are1_x+are2_x, - arou_x+ii_x+itasi_x+itadaku_x+iru_x+eru_x+kakeru_x+kaneru_x, - karazu_x+gatai_x+gatida_x+kudasaru_x+gozai_x+sa1_x+si1_x+siro_x, - jyau_x+jimau_x+sugiru_x+subesi_x+suru_x+sure_x+se_x+seyo_x, - tamau_x+tayu_x+timau_x+dekiru_x+naru_x+nasai_x+nasaru_x+nikui_x, - yasui_x+yoi_x+yaru_x+ttarasii_x - }; - -static u_char nanzo[] = { - wo_o+ttatte_x+ttara_x+tte1_x+tte2_x+ppanasi_x+ppoi_x+ue_x, - uti_x+oite_x+okeru_x+ori_x+ka1_x+ka2_x+kai_x+kasira_x, - katagata_x+kadouka_x+kana_x+kane_x+kamo_x+kara1_o+kara2_x+ga1_o, - ga2_x+gatera_x+kiri_x+kuseni_x+kurai_x+gurumi_x+kedo_x+koso_x, - koto_x+sa2_x+sae_x+si2_x+sika_x+sura_x+zutu_x+zo_x, - tame_x+dake_x+dano_x+darake_x+tuite_x+tuki_x+tutu_x+tumori_x, - te1_x+te2_x+teru_x+dearou_x+deru_x+to1_o+to2_x+totte_x, - toiu_x+toori_x+toki_x+tokoro_x+tote_x+tohaie_x+tomo_x+do_x, - doori_x+dokoro_x+dokoroka_x+domo_x+na1_x+naa_x+nagara_x+nazo_x, - nado_x+nari_x+nanka_x+nanzo_x+nante_x+ni1_o+ni2_x+ni3_x, - nite_x+nimo_x+ne1_x+nee_x+no1_o+no2_x+node_x+noni_x, - nomi_x+nominrz_x+ha_o+hazu_x+ba_x+bakari_x+he_o+hou_x, - hoka_x+hodo_x+made_x+mama_x+mo1_x+mo2_x+motte_x+mono_x, - ya1_x+ya2_x+yara_x+yue_x+yo_x+yori_x+wa_x+wake_x, - wane_x+wayo_x+nn1_x+jya_x+tya_x+nagara2_x+wo_s_x, - ze_x+kke_x+n_si_x+deha_x, - - gotosi_x+saseru_x+zaru_x+zu_x+zunba_x+seru_x+souda_x+youtai_x, - denbun_x+ta_x+tai_x+tagaru_x+taru_x+da1_x+da2_x+daxtu_x, - darou_x+de_o+desi_x+desho_x+desu_x+na2_x+nara_x+nai_o, - nu_x+ne2_x+nn2_x+fuuda_x+besi_x+mai_x+masu_x+masure_x, - mase_x+mitaida_x+you_x+youda_x+rasii_x+rareru_x+reru_x+site_x, - - yougen_x+aru_x+ara_x+ari1_x+ari2_x+ari3_x+are1_x+are2_x, - arou_x+ii_x+itasi_x+itadaku_x+iru_x+eru_x+kakeru_x+kaneru_x, - karazu_x+gatai_x+gatida_x+kudasaru_x+gozai_x+sa1_x+si1_x+siro_x, - jyau_x+jimau_x+sugiru_x+subesi_x+suru_x+sure_x+se_x+seyo_x, - tamau_x+tayu_x+timau_x+dekiru_x+naru_x+nasai_x+nasaru_x+nikui_x, - yasui_x+yoi_x+yaru_x+ttarasii_x - }; - -static u_char nante[] = { - wo_x+ttatte_x+ttara_x+tte1_x+tte2_x+ppanasi_x+ppoi_x+ue_x, - uti_x+oite_x+okeru_x+ori_x+ka1_x+ka2_x+kai_x+kasira_x, - katagata_x+kadouka_x+kana_x+kane_x+kamo_x+kara1_x+kara2_x+ga1_x, - ga2_x+gatera_x+kiri_x+kuseni_x+kurai_x+gurumi_x+kedo_x+koso_x, - koto_x+sa2_o+sae_x+si2_x+sika_x+sura_x+zutu_x+zo_x, - tame_x+dake_x+dano_x+darake_x+tuite_x+tuki_x+tutu_x+tumori_x, - te1_x+te2_x+teru_x+dearou_x+deru_x+to1_x+to2_x+totte_x, - toiu_x+toori_x+toki_x+tokoro_x+tote_x+tohaie_x+tomo_x+do_x, - doori_x+dokoro_x+dokoroka_x+domo_x+na1_o+naa_o+nagara_x+nazo_x, - nado_x+nari_x+nanka_x+nanzo_x+nante_x+ni1_x+ni2_x+ni3_x, - nite_x+nimo_x+ne1_o+nee_o+no1_x+no2_x+node_x+noni_x, - nomi_x+nominrz_x+ha_x+hazu_x+ba_x+bakari_x+he_x+hou_x, - hoka_x+hodo_x+made_x+mama_x+mo1_x+mo2_x+motte_x+mono_x, - ya1_x+ya2_x+yara_x+yue_x+yo_o+yori_x+wa_x+wake_x, - wane_x+wayo_x+nn1_x+jya_x+tya_x+nagara2_x+wo_s_x, - ze_x+kke_x+n_si_x+deha_x, - - gotosi_x+saseru_x+zaru_x+zu_x+zunba_x+seru_x+souda_x+youtai_x, - denbun_x+ta_x+tai_x+tagaru_x+taru_x+da1_x+da2_x+daxtu_x, - darou_x+de_x+desi_x+desho_x+desu_x+na2_x+nara_x+nai_o, - nu_x+ne2_x+nn2_x+fuuda_x+besi_x+mai_x+masu_x+masure_x, - mase_x+mitaida_x+you_x+youda_x+rasii_x+rareru_x+reru_x+site_x, - - yougen_x+aru_x+ara_x+ari1_x+ari2_x+ari3_x+are1_x+are2_x, - arou_x+ii_x+itasi_x+itadaku_x+iru_x+eru_x+kakeru_x+kaneru_x, - karazu_x+gatai_x+gatida_x+kudasaru_x+gozai_x+sa1_x+si1_x+siro_x, - jyau_x+jimau_x+sugiru_x+subesi_x+suru_x+sure_x+se_x+seyo_x, - tamau_x+tayu_x+timau_x+dekiru_x+naru_x+nasai_x+nasaru_x+nikui_x, - yasui_x+yoi_x+yaru_x+ttarasii_x - }; - -static u_char ni1[] = { - wo_x+ttatte_x+ttara_x+tte1_x+tte2_x+ppanasi_x+ppoi_x+ue_x, - uti_x+oite_o+okeru_o+ori_x+ka1_x+ka2_x+kai_x+kasira_o, - katagata_x+kadouka_o+kana_o+kane_o+kamo_o+kara1_x+kara2_x+ga1_x, - ga2_x+gatera_x+kiri_x+kuseni_x+kurai_o+gurumi_x+kedo_x+koso_o, - koto_x+sa2_o+sae_o+si2_x+sika_o+sura_o+zutu_x+zo_x, - tame_x+dake_o+dano_o+darake_x+tuite_o+tuki_o+tutu_x+tumori_x, - te1_x+te2_x+teru_x+dearou_x+deru_x+to1_o+to2_x+totte_o, - toiu_x+toori_x+toki_x+tokoro_x+tote_x+tohaie_x+tomo_x+do_x, - doori_x+dokoro_x+dokoroka_x+domo_x+na1_o+naa_o+nagara_x+nazo_o, - nado_o+nari_o+nanka_o+nanzo_o+nante_o+ni1_x+ni2_x+ni3_x, - nite_x+nimo_x+ne1_o+nee_o+no1_x+no2_x+node_x+noni_x, - nomi_o+nominrz_o+ha_o+hazu_x+ba_x+bakari_o+he_x+hou_x, - hoka_x+hodo_x+made_o+mama_x+mo1_x+mo2_o+motte_x+mono_x, - ya1_x+ya2_x+yara_o+yue_x+yo_o+yori_x+wa_x+wake_x, - wane_o+wayo_x+nn1_x+jya_x+tya_x+nagara2_x+wo_s_x, - ze_x+kke_x+n_si_o+deha_o, - - gotosi_x+saseru_x+zaru_x+zu_x+zunba_x+seru_x+souda_x+youtai_x, - denbun_x+ta_x+tai_x+tagaru_x+taru_x+da1_x+da2_x+daxtu_x, - darou_x+de_x+desi_x+desho_x+desu_x+na2_x+nara_o+nai_o, - nu_x+ne2_x+nn2_x+fuuda_x+besi_x+mai_x+masu_x+masure_x, - mase_x+mitaida_x+you_x+youda_x+rasii_x+rareru_x+reru_x+site_x, - - yougen_x+aru_o+ara_o+ari1_x+ari2_o+ari3_x+are1_x+are2_o, - arou_o+ii_x+itasi_x+itadaku_x+iru_o+eru_x+kakeru_x+kaneru_x, - karazu_x+gatai_x+gatida_x+kudasaru_x+gozai_x+sa1_o+si1_x+siro_o, - jyau_x+jimau_x+sugiru_x+subesi_o+suru_o+sure_o+se_o+seyo_o, - tamau_x+tayu_x+timau_x+dekiru_x+naru_o+nasai_x+nasaru_x+nikui_x, - yasui_x+yoi_x+yaru_o - }; - -static u_char ni2[] = { - wo_x+ttatte_x+ttara_x+tte1_x+tte2_x+ppanasi_x+ppoi_x+ue_x, - uti_x+oite_x+okeru_x+ori_x+ka1_x+ka2_x+kai_x+kasira_x, - katagata_x+kadouka_x+kana_x+kane_x+kamo_x+kara1_x+kara2_x+ga1_x, - ga2_x+gatera_x+kiri_x+kuseni_x+kurai_x+gurumi_x+kedo_x+koso_x, - koto_x+sa2_x+sae_o+si2_x+sika_o+sura_o+zutu_x+zo_x, - tame_x+dake_o+dano_x+darake_x+tuite_x+tuki_x+tutu_x+tumori_x, - te1_x+te2_x+teru_x+dearou_x+deru_x+to1_x+to2_o+totte_x, - toiu_x+toori_x+toki_x+tokoro_x+tote_x+tohaie_x+tomo_x+do_x, - doori_x+dokoro_x+dokoroka_x+domo_x+na1_x+naa_x+nagara_x+nazo_o, - nado_o+nari_x+nanka_o+nanzo_o+nante_o+ni1_x+ni2_x+ni3_x, - nite_x+nimo_x+ne1_x+nee_x+no1_x+no2_x+node_x+noni_x, - nomi_x+nominrz_x+ha_o+hazu_x+ba_x+bakari_o+he_x+hou_x, - hoka_x+hodo_x+made_o+mama_x+mo1_o+mo2_x+motte_x+mono_x, - ya1_x+ya2_x+yara_o+yue_x+yo_x+yori_x+wa_x+wake_x, - wane_x+wayo_x+nn1_x+jya_x+tya_x+nagara2_x+wo_s_x, - ze_x+kke_x+n_si_x+deha_o, - - gotosi_x+saseru_x+zaru_x+zu_x+zunba_x+seru_x+souda_x+youtai_x, - denbun_x+ta_x+tai_x+tagaru_x+taru_x+da1_x+da2_x+daxtu_x, - darou_x+de_x+desi_x+desho_x+desu_x+na2_x+nara_x+nai_x, - nu_x+ne2_x+nn2_x+fuuda_x+besi_x+mai_x+masu_x+masure_x, - mase_x+mitaida_x+you_x+youda_x+rasii_x+rareru_x+reru_x+site_x, - - yougen_x+aru_x+ara_x+ari1_x+ari2_x+ari3_x+are1_x+are2_x, - arou_x+ii_x+itasi_x+itadaku_x+iru_x+eru_x+kakeru_x+kaneru_x, - karazu_x+gatai_x+gatida_x+kudasaru_x+gozai_x+sa1_x+si1_x+siro_x, - jyau_x+jimau_x+sugiru_x+subesi_x+suru_x+sure_x+se_x+seyo_x, - tamau_x+tayu_x+timau_x+dekiru_x+naru_x+nasai_x+nasaru_x+nikui_x, - yasui_x+yoi_x+yaru_x+ttarasii_x - }; - -static u_char ni3[] = { - wo_x+ttatte_x+ttara_x+tte1_x+tte2_x+ppanasi_x+ppoi_x+ue_x, - uti_x+oite_x+okeru_x+ori_x+ka1_x+ka2_x+kai_x+kasira_x, - katagata_x+kadouka_x+kana_x+kane_x+kamo_x+kara1_x+kara2_x+ga1_x, - ga2_x+gatera_x+kiri_x+kuseni_x+kurai_x+gurumi_x+kedo_x+koso_x, - koto_x+sa2_x+sae_x+si2_x+sika_x+sura_x+zutu_x+zo_x, - tame_x+dake_x+dano_x+darake_x+tuite_x+tuki_x+tutu_x+tumori_x, - te1_x+te2_x+teru_x+dearou_x+deru_x+to1_x+to2_x+totte_x, - toiu_x+toori_x+toki_x+tokoro_x+tote_x+tohaie_x+tomo_x+do_x, - doori_x+dokoro_x+dokoroka_x+domo_x+na1_x+naa_x+nagara_x+nazo_x, - nado_x+nari_x+nanka_x+nanzo_x+nante_x+ni1_x+ni2_x+ni3_x, - nite_x+nimo_x+ne1_x+nee_x+no1_x+no2_x+node_x+noni_x, - nomi_x+nominrz_x+ha_o+hazu_x+ba_x+bakari_x+he_x+hou_x, - hoka_x+hodo_x+made_x+mama_x+mo1_o+mo2_x+motte_x+mono_x, - ya1_x+ya2_x+yara_x+yue_x+yo_x+yori_x+wa_x+wake_x, - wane_x+wayo_x+nn1_x+jya_x+tya_x+nagara2_x+wo_s_x, - ze_x+kke_x+n_si_x+deha_x, - - gotosi_x+saseru_x+zaru_x+zu_x+zunba_x+seru_x+souda_x+youtai_x, - denbun_x+ta_x+tai_x+tagaru_x+taru_x+da1_x+da2_x+daxtu_x, - darou_x+de_x+desi_x+desho_x+desu_x+na2_x+nara_x+nai_x, - nu_x+ne2_x+nn2_x+fuuda_x+besi_x+mai_x+masu_x+masure_x, - mase_x+mitaida_x+you_x+youda_x+rasii_x+rareru_x+reru_x+site_o, - - yougen_x+aru_x+ara_x+ari1_x+ari2_x+ari3_x+are1_x+are2_x, - arou_x+ii_x+itasi_x+itadaku_x+iru_x+eru_x+kakeru_x+kaneru_x, - karazu_x+gatai_x+gatida_x+kudasaru_x+gozai_x+sa1_x+si1_x+siro_x, - jyau_x+jimau_x+sugiru_x+subesi_x+suru_x+sure_x+se_x+seyo_x, - tamau_x+tayu_x+timau_x+dekiru_x+naru_x+nasai_x+nasaru_x+nikui_x, - yasui_x+yoi_x+yaru_x+ttarasii_x - }; - -static u_char nite[] = { - wo_x+ttatte_x+ttara_x+tte1_x+tte2_x+ppanasi_x+ppoi_x+ue_x, - uti_x+oite_x+okeru_x+ori_x+ka1_x+ka2_x+kai_x+kasira_x, - katagata_x+kadouka_x+kana_x+kane_x+kamo_x+kara1_x+kara2_x+ga1_x, - ga2_x+gatera_x+kiri_x+kuseni_x+kurai_x+gurumi_x+kedo_x+koso_x, - koto_x+sa2_x+sae_x+si2_x+sika_x+sura_x+zutu_x+zo_x, - tame_x+dake_x+dano_x+darake_x+tuite_x+tuki_x+tutu_x+tumori_x, - te1_x+te2_x+teru_x+dearou_x+deru_x+to1_x+to2_x+totte_x, - toiu_x+toori_x+toki_x+tokoro_x+tote_x+tohaie_x+tomo_x+do_x, - doori_x+dokoro_x+dokoroka_x+domo_x+na1_x+naa_x+nagara_x+nazo_x, - nado_x+nari_x+nanka_x+nanzo_x+nante_x+ni1_x+ni2_x+ni3_x, - nite_x+nimo_x+ne1_x+nee_x+no1_x+no2_x+node_x+noni_x, - nomi_x+nominrz_x+ha_x+hazu_x+ba_x+bakari_x+he_x+hou_x, - hoka_x+hodo_x+made_x+mama_x+mo1_x+mo2_x+motte_x+mono_x, - ya1_x+ya2_x+yara_x+yue_x+yo_x+yori_x+wa_x+wake_x, - wane_x+wayo_x+nn1_x+jya_x+tya_x+nagara2_x+wo_s_x, - ze_x+kke_x+n_si_x+deha_x, - - gotosi_x+saseru_x+zaru_x+zu_x+zunba_x+seru_x+souda_x+youtai_x, - denbun_x+ta_x+tai_x+tagaru_x+taru_x+da1_x+da2_x+daxtu_x, - darou_x+de_x+desi_x+desho_x+desu_x+na2_x+nara_x+nai_x, - nu_x+ne2_x+nn2_x+fuuda_x+besi_x+mai_x+masu_x+masure_x, - mase_x+mitaida_x+you_x+youda_x+rasii_x+rareru_x+reru_x+site_x, - - yougen_x+aru_x+ara_x+ari1_x+ari2_x+ari3_x+are1_x+are2_x, - arou_x+ii_x+itasi_x+itadaku_x+iru_x+eru_x+kakeru_x+kaneru_x, - karazu_x+gatai_x+gatida_x+kudasaru_x+gozai_x+sa1_x+si1_x+siro_x, - jyau_x+jimau_x+sugiru_x+subesi_x+suru_x+sure_x+se_x+seyo_x, - tamau_x+tayu_x+timau_x+dekiru_x+naru_x+nasai_x+nasaru_x+nikui_x, - yasui_x+yoi_x+yaru_x+ttarasii_x - }; - -static u_char nimo[] = { - wo_x+ttatte_x+ttara_x+tte1_x+tte2_x+ppanasi_x+ppoi_x+ue_x, - uti_x+oite_x+okeru_x+ori_x+ka1_x+ka2_x+kai_x+kasira_x, - katagata_x+kadouka_x+kana_x+kane_x+kamo_x+kara1_x+kara2_x+ga1_x, - ga2_x+gatera_x+kiri_x+kuseni_x+kurai_x+gurumi_x+kedo_x+koso_x, - koto_x+sa2_o+sae_x+si2_x+sika_x+sura_x+zutu_x+zo_x, - tame_x+dake_x+dano_x+darake_x+tuite_x+tuki_x+tutu_x+tumori_x, - te1_x+te2_x+teru_x+dearou_x+deru_x+to1_x+to2_x+totte_x, - toiu_x+toori_x+toki_x+tokoro_x+tote_x+tohaie_x+tomo_x+do_x, - doori_x+dokoro_x+dokoroka_x+domo_x+na1_x+naa_x+nagara_x+nazo_x, - nado_x+nari_x+nanka_x+nanzo_x+nante_x+ni1_x+ni2_x+ni3_x, - nite_x+nimo_x+ne1_o+nee_o+no1_x+no2_x+node_x+noni_x, - nomi_x+nominrz_x+ha_x+hazu_x+ba_x+bakari_x+he_x+hou_x, - hoka_x+hodo_x+made_x+mama_x+mo1_x+mo2_x+motte_x+mono_x, - ya1_x+ya2_x+yara_x+yue_x+yo_x+yori_x+wa_x+wake_x, - wane_x+wayo_x+nn1_x+jya_x+tya_x+nagara2_x+wo_s_x, - ze_x+kke_x+n_si_x+deha_x, - - gotosi_x+saseru_x+zaru_x+zu_x+zunba_x+seru_x+souda_x+youtai_x, - denbun_x+ta_x+tai_x+tagaru_x+taru_x+da1_x+da2_x+daxtu_x, - darou_x+de_x+desi_x+desho_x+desu_x+na2_x+nara_x+nai_x, - nu_x+ne2_x+nn2_x+fuuda_x+besi_x+mai_x+masu_x+masure_x, - mase_x+mitaida_x+you_x+youda_x+rasii_x+rareru_x+reru_x+site_x, - - yougen_x+aru_x+ara_x+ari1_x+ari2_x+ari3_x+are1_x+are2_x, - arou_x+ii_x+itasi_x+itadaku_x+iru_x+eru_x+kakeru_x+kaneru_x, - karazu_x+gatai_x+gatida_x+kudasaru_x+gozai_x+sa1_x+si1_x+siro_x, - jyau_x+jimau_x+sugiru_x+subesi_x+suru_x+sure_x+se_x+seyo_x, - tamau_x+tayu_x+timau_x+dekiru_x+naru_x+nasai_x+nasaru_x+nikui_x, - yasui_x+yoi_x+yaru_x+ttarasii_x - }; - -static u_char no1[] = { - wo_o+ttatte_x+ttara_x+tte1_x+tte2_x+ppanasi_x+ppoi_x+ue_x, - uti_o+oite_x+okeru_x+ori_x+ka1_o+ka2_x+kai_x+kasira_o, - katagata_x+kadouka_o+kana_o+kane_o+kamo_o+kara1_o+kara2_x+ga1_o, - ga2_x+gatera_x+kiri_x+kuseni_o+kurai_o+gurumi_x+kedo_x+koso_o, - koto_o+sa2_o+sae_o+si2_x+sika_o+sura_o+zutu_x+zo_x, - tame_o+dake_o+dano_o+darake_x+tuite_x+tuki_x+tutu_x+tumori_x, - te1_x+te2_x+teru_x+dearou_x+deru_x+to1_o+to2_x+totte_x, - toiu_o+toori_x+toki_o+tokoro_o+tote_x+tohaie_o+tomo_x+do_x, - doori_x+dokoro_o+dokoroka_o+domo_x+na1_x+naa_x+nagara_x+nazo_o, - nado_o+nari_o+nanka_o+nanzo_o+nante_o+ni1_o+ni2_x+ni3_x, - nite_x+nimo_x+ne1_o+nee_o+no1_x+no2_x+node_x+noni_x, - nomi_o+nominrz_o+ha_o+hazu_x+ba_x+bakari_o+he_o+hou_x, - hoka_x+hodo_o+made_o+mama_o+mo1_o+mo2_x+motte_x+mono_o, - ya1_o+ya2_x+yara_o+yue_x+yo_o+yori_o+wa_x+wake_x, - wane_o+wayo_x+nn1_x+jya_o+tya_x+nagara2_x+wo_s_x, - ze_x+kke_x+n_si_x+deha_x, - - gotosi_o+saseru_x+zaru_x+zu_x+zunba_x+seru_x+souda_x+youtai_x, - denbun_x+ta_x+tai_x+tagaru_x+taru_x+da1_x+da2_o+daxtu_o, - darou_o+de_o+desi_o+desho_o+desu_o+na2_o+nara_o+nai_x, - nu_x+ne2_x+nn2_x+fuuda_x+besi_x+mai_x+masu_x+masure_x, - mase_x+mitaida_o+you_x+youda_o+rasii_o+rareru_x+reru_x+site_x, - - yougen_x+aru_x+ara_x+ari1_x+ari2_x+ari3_x+are1_x+are2_x, - arou_x+ii_x+itasi_x+itadaku_x+iru_x+eru_x+kakeru_x+kaneru_x, - karazu_x+gatai_x+gatida_x+kudasaru_x+gozai_x+sa1_x+si1_x+siro_x, - jyau_x+jimau_x+sugiru_x+subesi_o+suru_x+sure_x+se_x+seyo_x, - tamau_x+tayu_x+timau_x+dekiru_x+naru_x+nasai_x+nasaru_x+nikui_x, - yasui_x+yoi_x+yaru_x+ttarasii_x - }; - -static u_char no2[] = { - wo_o+ttatte_x+ttara_x+tte1_x+tte2_x+ppanasi_x+ppoi_x+ue_x, - uti_x+oite_x+okeru_x+ori_x+ka1_o+ka2_x+kai_x+kasira_o, - katagata_x+kadouka_o+kana_o+kane_o+kamo_o+kara1_o+kara2_x+ga1_o, - ga2_x+gatera_x+kiri_x+kuseni_x+kurai_x+gurumi_x+kedo_x+koso_o, - koto_x+sa2_o+sae_o+si2_x+sika_o+sura_o+zutu_x+zo_x, - tame_x+dake_o+dano_o+darake_x+tuite_x+tuki_x+tutu_x+tumori_x, - te1_x+te2_x+teru_x+dearou_x+deru_x+to1_o+to2_x+totte_x, - toiu_x+toori_x+toki_x+tokoro_x+tote_x+tohaie_x+tomo_x+do_x, - doori_x+dokoro_o+dokoroka_o+domo_x+na1_x+naa_x+nagara_x+nazo_o, - nado_o+nari_o+nanka_o+nanzo_o+nante_o+ni1_x+ni2_x+ni3_x, - nite_x+nimo_x+ne1_o+nee_o+no1_x+no2_x+node_x+noni_x, - nomi_x+nominrz_x+ha_o+hazu_x+ba_x+bakari_o+he_x+hou_x, - hoka_x+hodo_x+made_x+mama_x+mo1_o+mo2_x+motte_x+mono_x, - ya1_o+ya2_x+yara_o+yue_x+yo_o+yori_o+wa_x+wake_x, - wane_o+wayo_x+nn1_x+jya_o+tya_x+nagara2_x+wo_s_x, - ze_x+kke_x+n_si_x+deha_x, - - gotosi_x+saseru_x+zaru_x+zu_x+zunba_x+seru_x+souda_x+youtai_x, - denbun_x+ta_x+tai_x+tagaru_x+taru_x+da1_x+da2_o+daxtu_o, - darou_o+de_x+desi_o+desho_o+desu_o+na2_o+nara_o+nai_x, - nu_x+ne2_x+nn2_x+fuuda_x+besi_x+mai_x+masu_x+masure_x, - mase_x+mitaida_x+you_x+youda_x+rasii_x+rareru_x+reru_x+site_x, - - yougen_x+aru_x+ara_x+ari1_x+ari2_x+ari3_x+are1_x+are2_x, - arou_x+ii_x+itasi_x+itadaku_x+iru_x+eru_x+kakeru_x+kaneru_x, - karazu_x+gatai_x+gatida_x+kudasaru_x+gozai_x+sa1_x+si1_x+siro_x, - jyau_x+jimau_x+sugiru_x+subesi_x+suru_x+sure_x+se_x+seyo_x, - tamau_x+tayu_x+timau_x+dekiru_x+naru_x+nasai_x+nasaru_x+nikui_x, - yasui_x+yoi_x+yaru_x+ttarasii_x - }; - -static u_char node[] = { - wo_x+ttatte_x+ttara_x+tte1_x+tte2_x+ppanasi_x+ppoi_x+ue_x, - uti_x+oite_x+okeru_x+ori_x+ka1_x+ka2_x+kai_x+kasira_x, - katagata_x+kadouka_x+kana_x+kane_x+kamo_x+kara1_x+kara2_x+ga1_x, - ga2_x+gatera_x+kiri_x+kuseni_x+kurai_x+gurumi_x+kedo_x+koso_x, - koto_x+sa2_x+sae_o+si2_x+sika_x+sura_x+zutu_x+zo_x, - tame_x+dake_x+dano_x+darake_x+tuite_x+tuki_x+tutu_x+tumori_x, - te1_x+te2_x+teru_x+dearou_x+deru_x+to1_x+to2_o+totte_x, - toiu_o+toori_x+toki_x+tokoro_x+tote_x+tohaie_o+tomo_x+do_x, - doori_x+dokoro_x+dokoroka_x+domo_x+na1_x+naa_x+nagara_x+nazo_x, - nado_x+nari_x+nanka_x+nanzo_x+nante_x+ni1_x+ni2_x+ni3_x, - nite_x+nimo_x+ne1_x+nee_x+no1_x+no2_x+node_x+noni_x, - nomi_x+nominrz_x+ha_o+hazu_x+ba_x+bakari_x+he_x+hou_x, - hoka_x+hodo_x+made_x+mama_x+mo1_x+mo2_o+motte_x+mono_x, - ya1_x+ya2_x+yara_x+yue_x+yo_x+yori_x+wa_x+wake_x, - wane_x+wayo_x+nn1_x+jya_x+tya_x+nagara2_x+wo_s_x, - ze_x+kke_x+n_si_x+deha_x, - - gotosi_x+saseru_x+zaru_x+zu_x+zunba_x+seru_x+souda_x+youtai_x, - denbun_x+ta_x+tai_x+tagaru_x+taru_x+da1_x+da2_x+daxtu_x, - darou_x+de_x+desi_x+desho_x+desu_x+na2_x+nara_x+nai_o, - nu_x+ne2_x+nn2_x+fuuda_x+besi_x+mai_x+masu_x+masure_x, - mase_x+mitaida_x+you_x+youda_x+rasii_x+rareru_x+reru_x+site_x, - - yougen_x+aru_o+ara_x+ari1_x+ari2_x+ari3_o+are1_x+are2_o, - arou_o+ii_x+itasi_x+itadaku_x+iru_x+eru_x+kakeru_x+kaneru_x, - karazu_x+gatai_x+gatida_x+kudasaru_x+gozai_x+sa1_x+si1_x+siro_x, - jyau_x+jimau_x+sugiru_x+subesi_x+suru_x+sure_x+se_x+seyo_x, - tamau_x+tayu_x+timau_x+dekiru_x+naru_x+nasai_x+nasaru_x+nikui_x, - yasui_x+yoi_x+yaru_x+ttarasii_x - }; - -static u_char noni[] = { - wo_x+ttatte_x+ttara_x+tte1_x+tte2_x+ppanasi_x+ppoi_x+ue_x, - uti_x+oite_x+okeru_x+ori_x+ka1_x+ka2_x+kai_x+kasira_x, - katagata_x+kadouka_x+kana_x+kane_x+kamo_x+kara1_x+kara2_x+ga1_x, - ga2_x+gatera_x+kiri_x+kuseni_x+kurai_x+gurumi_x+kedo_x+koso_x, - koto_x+sa2_x+sae_x+si2_x+sika_x+sura_x+zutu_x+zo_x, - tame_x+dake_x+dano_x+darake_x+tuite_x+tuki_x+tutu_x+tumori_x, - te1_x+te2_x+teru_x+dearou_x+deru_x+to1_x+to2_o+totte_x, - toiu_o+toori_x+toki_x+tokoro_x+tote_x+tohaie_o+tomo_x+do_x, - doori_x+dokoro_x+dokoroka_x+domo_x+na1_x+naa_x+nagara_x+nazo_x, - nado_x+nari_x+nanka_x+nanzo_x+nante_x+ni1_x+ni2_x+ni3_x, - nite_x+nimo_x+ne1_x+nee_x+no1_x+no2_x+node_x+noni_x, - nomi_x+nominrz_x+ha_o+hazu_x+ba_x+bakari_x+he_x+hou_x, - hoka_x+hodo_x+made_x+mama_x+mo1_o+mo2_x+motte_x+mono_x, - ya1_x+ya2_x+yara_x+yue_x+yo_x+yori_x+wa_x+wake_x, - wane_x+wayo_x+nn1_x+jya_x+tya_x+nagara2_x+wo_s_x, - ze_x+kke_x+n_si_x+deha_x, - - gotosi_x+saseru_x+zaru_x+zu_x+zunba_x+seru_x+souda_x+youtai_x, - denbun_x+ta_x+tai_x+tagaru_x+taru_x+da1_x+da2_x+daxtu_x, - darou_x+de_x+desi_x+desho_x+desu_x+na2_x+nara_x+nai_x, - nu_x+ne2_x+nn2_x+fuuda_x+besi_x+mai_x+masu_x+masure_x, - mase_x+mitaida_x+you_x+youda_x+rasii_x+rareru_x+reru_x+site_x, - - yougen_x+aru_x+ara_x+ari1_x+ari2_x+ari3_x+are1_x+are2_x, - arou_x+ii_x+itasi_x+itadaku_x+iru_x+eru_x+kakeru_x+kaneru_x, - karazu_x+gatai_x+gatida_x+kudasaru_x+gozai_x+sa1_x+si1_x+siro_x, - jyau_x+jimau_x+sugiru_x+subesi_x+suru_x+sure_x+se_x+seyo_x, - tamau_x+tayu_x+timau_x+dekiru_x+naru_x+nasai_x+nasaru_x+nikui_x, - yasui_x+yoi_x+yaru_x+ttarasii_x - }; - -static u_char nomi[] = { - wo_o+ttatte_x+ttara_o+tte1_o+tte2_x+ppanasi_x+ppoi_x+ue_x, - uti_x+oite_x+okeru_x+ori_x+ka1_x+ka2_x+kai_x+kasira_o, - katagata_x+kadouka_o+kana_o+kane_o+kamo_o+kara1_o+kara2_x+ga1_o, - ga2_x+gatera_x+kiri_x+kuseni_x+kurai_x+gurumi_x+kedo_x+koso_x, - koto_x+sa2_o+sae_x+si2_x+sika_o+sura_x+zutu_x+zo_x, - tame_x+dake_x+dano_o+darake_x+tuite_x+tuki_x+tutu_x+tumori_x, - te1_x+te2_x+teru_x+dearou_x+deru_x+to1_o+to2_x+totte_x, - toiu_o+toori_x+toki_x+tokoro_x+tote_x+tohaie_o+tomo_x+do_x, - doori_x+dokoro_o+dokoroka_o+domo_x+na1_x+naa_x+nagara_x+nazo_o, - nado_o+nari_x+nanka_o+nanzo_o+nante_o+ni1_o+ni2_x+ni3_x, - nite_x+nimo_x+ne1_o+nee_o+no1_o+no2_x+node_x+noni_x, - nomi_x+nominrz_x+ha_o+hazu_x+ba_x+bakari_o+he_o+hou_x, - hoka_x+hodo_x+made_o+mama_x+mo1_o+mo2_x+motte_x+mono_x, - ya1_o+ya2_x+yara_o+yue_o+yo_o+yori_x+wa_x+wake_x, - wane_o+wayo_x+nn1_x+jya_o+tya_x+nagara2_x+wo_s_x, - ze_x+kke_x+n_si_x+deha_x, - - gotosi_x+saseru_x+zaru_x+zu_x+zunba_x+seru_x+souda_x+youtai_x, - denbun_x+ta_x+tai_x+tagaru_x+taru_x+da1_x+da2_o+daxtu_o, - darou_o+de_o+desi_o+desho_o+desu_o+na2_o+nara_o+nai_x, - nu_x+ne2_x+nn2_x+fuuda_x+besi_x+mai_x+masu_x+masure_x, - mase_x+mitaida_o+you_x+youda_x+rasii_o+rareru_x+reru_x+site_x, - - yougen_x+aru_x+ara_x+ari1_x+ari2_x+ari3_x+are1_x+are2_x, - arou_x+ii_x+itasi_x+itadaku_x+iru_x+eru_x+kakeru_x+kaneru_x, - karazu_x+gatai_x+gatida_x+kudasaru_x+gozai_x+sa1_x+si1_x+siro_x, - jyau_x+jimau_x+sugiru_x+subesi_x+suru_x+sure_x+se_x+seyo_x, - tamau_x+tayu_x+timau_x+dekiru_x+naru_x+nasai_x+nasaru_x+nikui_x, - yasui_x+yoi_x+yaru_x+ttarasii_x - }; - -static u_char nominrz[] = { - wo_x+ttatte_x+ttara_x+tte1_x+tte2_x+ppanasi_x+ppoi_x+ue_x, - uti_x+oite_x+okeru_x+ori_x+ka1_x+ka2_x+kai_x+kasira_x, - katagata_x+kadouka_x+kana_x+kane_x+kamo_x+kara1_x+kara2_x+ga1_x, - ga2_x+gatera_x+kiri_x+kuseni_x+kurai_x+gurumi_x+kedo_x+koso_x, - koto_x+sa2_x+sae_x+si2_x+sika_x+sura_x+zutu_x+zo_x, - tame_x+dake_x+dano_x+darake_x+tuite_x+tuki_x+tutu_x+tumori_x, - te1_x+te2_x+teru_x+dearou_x+deru_x+to1_x+to2_x+totte_x, - toiu_x+toori_x+toki_x+tokoro_x+tote_x+tohaie_x+tomo_x+do_x, - doori_x+dokoro_x+dokoroka_x+domo_x+na1_x+naa_x+nagara_x+nazo_x, - nado_x+nari_x+nanka_x+nanzo_x+nante_x+ni1_x+ni2_x+ni3_x, - nite_x+nimo_x+ne1_x+nee_x+no1_x+no2_x+node_x+noni_x, - nomi_x+nominrz_x+ha_x+hazu_x+ba_x+bakari_x+he_x+hou_x, - hoka_x+hodo_x+made_x+mama_x+mo1_x+mo2_x+motte_x+mono_x, - ya1_x+ya2_x+yara_x+yue_x+yo_x+yori_x+wa_x+wake_x, - wane_x+wayo_x+nn1_x+jya_x+tya_x+nagara2_x+wo_s_x, - ze_x+kke_x+n_si_x+deha_x, - - gotosi_x+saseru_x+zaru_x+zu_x+zunba_x+seru_x+souda_x+youtai_x, - denbun_x+ta_x+tai_x+tagaru_x+taru_x+da1_x+da2_x+daxtu_x, - darou_x+de_x+desi_x+desho_x+desu_x+na2_x+nara_x+nai_x, - nu_x+ne2_x+nn2_x+fuuda_x+besi_x+mai_x+masu_x+masure_x, - mase_x+mitaida_x+you_x+youda_x+rasii_x+rareru_x+reru_x+site_x, - - yougen_x+aru_x+ara_x+ari1_x+ari2_x+ari3_x+are1_x+are2_x, - arou_x+ii_x+itasi_x+itadaku_x+iru_x+eru_x+kakeru_x+kaneru_x, - karazu_x+gatai_x+gatida_x+kudasaru_x+gozai_x+sa1_x+si1_x+siro_x, - jyau_x+jimau_x+sugiru_x+subesi_x+suru_x+sure_x+se_x+seyo_x, - tamau_x+tayu_x+timau_x+dekiru_x+naru_x+nasai_x+nasaru_x+nikui_x, - yasui_x+yoi_x+yaru_x+ttarasii_x - }; - -static u_char ha[] = { - wo_x+ttatte_x+ttara_x+tte1_x+tte2_x+ppanasi_x+ppoi_x+ue_x, - uti_x+oite_x+okeru_x+ori_x+ka1_x+ka2_x+kai_x+kasira_x, - katagata_x+kadouka_x+kana_x+kane_x+kamo_x+kara1_x+kara2_x+ga1_x, - ga2_x+gatera_x+kiri_x+kuseni_x+kurai_x+gurumi_x+kedo_x+koso_x, - koto_x+sa2_o+sae_x+si2_x+sika_x+sura_x+zutu_x+zo_x, - tame_x+dake_x+dano_x+darake_x+tuite_x+tuki_x+tutu_x+tumori_x, - te1_x+te2_x+teru_x+dearou_x+deru_x+to1_x+to2_x+totte_x, - toiu_x+toori_x+toki_x+tokoro_x+tote_x+tohaie_x+tomo_x+do_x, - doori_x+dokoro_x+dokoroka_x+domo_x+na1_x+naa_x+nagara_x+nazo_x, - nado_x+nari_x+nanka_x+nanzo_x+nante_x+ni1_x+ni2_x+ni3_x, - nite_x+nimo_x+ne1_o+nee_o+no1_x+no2_x+node_x+noni_x, - nomi_x+nominrz_x+ha_x+hazu_x+ba_x+bakari_x+he_x+hou_x, - hoka_x+hodo_x+made_x+mama_x+mo1_x+mo2_x+motte_x+mono_x, - ya1_x+ya2_x+yara_x+yue_x+yo_x+yori_x+wa_x+wake_x, - wane_x+wayo_x+nn1_x+jya_x+tya_x+nagara2_x+wo_s_x, - ze_x+kke_x+n_si_x+deha_x, - - gotosi_x+saseru_x+zaru_x+zu_x+zunba_x+seru_x+souda_x+youtai_x, - denbun_x+ta_x+tai_x+tagaru_x+taru_x+da1_x+da2_x+daxtu_x, - darou_x+de_x+desi_x+desho_x+desu_x+na2_x+nara_x+nai_o, - nu_x+ne2_x+nn2_x+fuuda_x+besi_x+mai_x+masu_x+masure_x, - mase_x+mitaida_x+you_x+youda_x+rasii_x+rareru_x+reru_x+site_x, - - yougen_x+aru_o+ara_o+ari1_x+ari2_o+ari3_x+are1_x+are2_o, - arou_o+ii_o+itasi_x+itadaku_x+iru_x+eru_x+kakeru_x+kaneru_x, - karazu_x+gatai_x+gatida_x+kudasaru_x+gozai_x+sa1_o+si1_x+siro_o, - jyau_x+jimau_x+sugiru_x+subesi_x+suru_o+sure_o+se_o+seyo_o, - tamau_x+tayu_x+timau_x+dekiru_x+naru_x+nasai_x+nasaru_x+nikui_x, - yasui_x+yoi_x+yaru_x+ttarasii_x - }; - -static u_char hazu[] = { - wo_x+ttatte_x+ttara_x+tte1_o+tte2_x+ppanasi_x+ppoi_x+ue_x, - uti_x+oite_x+okeru_x+ori_x+ka1_x+ka2_x+kai_x+kasira_x, - katagata_x+kadouka_x+kana_o+kane_o+kamo_x+kara1_x+kara2_x+ga1_o, - ga2_x+gatera_x+kiri_x+kuseni_x+kurai_x+gurumi_x+kedo_x+koso_x, - koto_x+sa2_o+sae_x+si2_x+sika_x+sura_x+zutu_x+zo_x, - tame_x+dake_x+dano_x+darake_x+tuite_x+tuki_x+tutu_x+tumori_x, - te1_x+te2_x+teru_x+dearou_x+deru_x+to1_o+to2_x+totte_x, - toiu_o+toori_x+toki_x+tokoro_x+tote_x+tohaie_o+tomo_x+do_x, - doori_x+dokoro_o+dokoroka_o+domo_x+na1_x+naa_x+nagara_x+nazo_o, - nado_o+nari_x+nanka_o+nanzo_o+nante_o+ni1_x+ni2_x+ni3_x, - nite_x+nimo_x+ne1_o+nee_o+no1_o+no2_x+node_x+noni_x, - nomi_x+nominrz_x+ha_o+hazu_x+ba_x+bakari_x+he_x+hou_x, - hoka_x+hodo_x+made_x+mama_x+mo1_o+mo2_x+motte_x+mono_x, - ya1_x+ya2_x+yara_x+yue_x+yo_o+yori_x+wa_x+wake_x, - wane_x+wayo_x+nn1_x+jya_o+tya_x+nagara2_x+wo_s_x, - ze_x+kke_x+n_si_x+deha_x, - - gotosi_x+saseru_x+zaru_x+zu_x+zunba_x+seru_x+souda_x+youtai_x, - denbun_x+ta_x+tai_x+tagaru_x+taru_x+da1_x+da2_o+daxtu_o, - darou_o+de_o+desi_o+desho_o+desu_o+na2_o+nara_o+nai_x, - nu_x+ne2_x+nn2_x+fuuda_x+besi_x+mai_x+masu_x+masure_x, - mase_x+mitaida_x+you_x+youda_x+rasii_o+rareru_x+reru_x+site_x, - - yougen_x+aru_x+ara_x+ari1_x+ari2_x+ari3_x+are1_x+are2_x, - arou_x+ii_x+itasi_x+itadaku_x+iru_x+eru_x+kakeru_x+kaneru_x, - karazu_x+gatai_x+gatida_x+kudasaru_x+gozai_x+sa1_x+si1_x+siro_x, - jyau_x+jimau_x+sugiru_x+subesi_x+suru_x+sure_x+se_x+seyo_x, - tamau_x+tayu_x+timau_x+dekiru_x+naru_x+nasai_x+nasaru_x+nikui_x, - yasui_x+yoi_x+yaru_x+ttarasii_x - }; - -static u_char ba[] = { - wo_x+ttatte_x+ttara_x+tte1_x+tte2_x+ppanasi_x+ppoi_x+ue_x, - uti_x+oite_x+okeru_x+ori_x+ka1_x+ka2_x+kai_x+kasira_x, - katagata_x+kadouka_x+kana_x+kane_x+kamo_x+kara1_x+kara2_x+ga1_x, - ga2_x+gatera_x+kiri_x+kuseni_x+kurai_x+gurumi_x+kedo_x+koso_x, - koto_x+sa2_o+sae_x+si2_x+sika_x+sura_x+zutu_x+zo_x, - tame_x+dake_x+dano_x+darake_x+tuite_x+tuki_x+tutu_x+tumori_x, - te1_x+te2_x+teru_x+dearou_x+deru_x+to1_o+to2_x+totte_x, - toiu_o+toori_x+toki_x+tokoro_x+tote_x+tohaie_o+tomo_x+do_x, - doori_x+dokoro_x+dokoroka_x+domo_x+na1_o+naa_o+nagara_x+nazo_x, - nado_x+nari_x+nanka_x+nanzo_x+nante_x+ni1_x+ni2_x+ni3_x, - nite_x+nimo_x+ne1_o+nee_o+no1_x+no2_x+node_x+noni_x, - nomi_x+nominrz_x+ha_x+hazu_x+ba_x+bakari_x+he_x+hou_x, - hoka_x+hodo_x+made_x+mama_x+mo1_x+mo2_x+motte_x+mono_x, - ya1_x+ya2_x+yara_x+yue_x+yo_x+yori_x+wa_x+wake_x, - wane_x+wayo_x+nn1_x+jya_x+tya_x+nagara2_x+wo_s_x, - ze_x+kke_x+n_si_x+deha_x, - - gotosi_x+saseru_x+zaru_x+zu_x+zunba_x+seru_x+souda_x+youtai_x, - denbun_x+ta_x+tai_x+tagaru_x+taru_x+da1_x+da2_x+daxtu_x, - darou_x+de_x+desi_x+desho_x+desu_x+na2_x+nara_x+nai_x, - nu_x+ne2_x+nn2_x+fuuda_x+besi_x+mai_x+masu_x+masure_x, - mase_x+mitaida_x+you_x+youda_x+rasii_x+rareru_x+reru_x+site_x, - - yougen_x+aru_x+ara_x+ari1_x+ari2_x+ari3_x+are1_x+are2_x, - arou_x+ii_x+itasi_x+itadaku_x+iru_x+eru_x+kakeru_x+kaneru_x, - karazu_x+gatai_x+gatida_x+kudasaru_x+gozai_x+sa1_x+si1_x+siro_x, - jyau_x+jimau_x+sugiru_x+subesi_x+suru_x+sure_x+se_x+seyo_x, - tamau_x+tayu_x+timau_x+dekiru_x+naru_x+nasai_x+nasaru_x+nikui_x, - yasui_x+yoi_x+yaru_x+ttarasii_x - }; - -static u_char bakari[] = { - wo_o+ttatte_x+ttara_x+tte1_o+tte2_x+ppanasi_x+ppoi_x+ue_x, - uti_x+oite_x+okeru_x+ori_x+ka1_o+ka2_x+kai_x+kasira_o, - katagata_x+kadouka_o+kana_o+kane_o+kamo_o+kara1_o+kara2_x+ga1_o, - ga2_x+gatera_x+kiri_x+kuseni_x+kurai_x+gurumi_x+kedo_x+koso_x, - koto_x+sa2_o+sae_x+si2_x+sika_o+sura_x+zutu_x+zo_x, - tame_x+dake_x+dano_x+darake_x+tuite_x+tuki_x+tutu_x+tumori_x, - te1_x+te2_x+teru_x+dearou_x+deru_x+to1_o+to2_x+totte_x, - toiu_o+toori_x+toki_x+tokoro_x+tote_x+tohaie_o+tomo_x+do_x, - doori_x+dokoro_x+dokoroka_x+domo_x+na1_x+naa_x+nagara_x+nazo_x, - nado_x+nari_x+nanka_o+nanzo_o+nante_o+ni1_o+ni2_x+ni3_x, - nite_x+nimo_x+ne1_o+nee_o+no1_o+no2_x+node_x+noni_x, - nomi_x+nominrz_x+ha_o+hazu_x+ba_x+bakari_x+he_o+hou_x, - hoka_x+hodo_x+made_x+mama_x+mo1_o+mo2_x+motte_x+mono_x, - ya1_x+ya2_x+yara_x+yue_o+yo_o+yori_x+wa_x+wake_x, - wane_x+wayo_x+nn1_x+jya_o+tya_x+nagara2_x+wo_s_x, - ze_x+kke_x+n_si_x+deha_x, - - gotosi_x+saseru_x+zaru_x+zu_x+zunba_x+seru_x+souda_x+youtai_x, - denbun_x+ta_x+tai_x+tagaru_x+taru_x+da1_x+da2_o+daxtu_o, - darou_o+de_o+desi_o+desho_o+desu_o+na2_o+nara_o+nai_x, - nu_x+ne2_x+nn2_x+fuuda_x+besi_x+mai_x+masu_x+masure_x, - mase_x+mitaida_o+you_x+youda_x+rasii_o+rareru_x+reru_x+site_x, - - yougen_x+aru_o+ara_o+ari1_x+ari2_o+ari3_x+are1_x+are2_o, - arou_o+ii_x+itasi_x+itadaku_x+iru_o+eru_x+kakeru_x+kaneru_x, - karazu_x+gatai_x+gatida_x+kudasaru_x+gozai_x+sa1_x+si1_x+siro_x, - jyau_x+jimau_x+sugiru_x+subesi_x+suru_x+sure_x+se_x+seyo_x, - tamau_x+tayu_x+timau_x+dekiru_x+naru_x+nasai_x+nasaru_x+nikui_x, - yasui_x+yoi_x+yaru_x+ttarasii_x - }; - -static u_char he[] = { - wo_x+ttatte_x+ttara_x+tte1_x+tte2_x+ppanasi_x+ppoi_x+ue_x, - uti_x+oite_x+okeru_x+ori_x+ka1_x+ka2_x+kai_x+kasira_o, - katagata_x+kadouka_o+kana_o+kane_o+kamo_x+kara1_x+kara2_x+ga1_x, - ga2_x+gatera_x+kiri_x+kuseni_x+kurai_x+gurumi_x+kedo_x+koso_x, - koto_x+sa2_o+sae_o+si2_x+sika_o+sura_o+zutu_x+zo_x, - tame_x+dake_o+dano_o+darake_x+tuite_x+tuki_x+tutu_x+tumori_x, - te1_x+te2_x+teru_x+dearou_x+deru_x+to1_o+to2_x+totte_x, - toiu_x+toori_x+toki_x+tokoro_x+tote_x+tohaie_x+tomo_x+do_x, - doori_x+dokoro_x+dokoroka_o+domo_x+na1_o+naa_o+nagara_x+nazo_o, - nado_o+nari_x+nanka_o+nanzo_o+nante_o+ni1_x+ni2_x+ni3_x, - nite_x+nimo_x+ne1_o+nee_o+no1_o+no2_x+node_x+noni_x, - nomi_x+nominrz_x+ha_o+hazu_x+ba_x+bakari_x+he_x+hou_x, - hoka_x+hodo_x+made_x+mama_x+mo1_o+mo2_x+motte_x+mono_x, - ya1_x+ya2_x+yara_o+yue_x+yo_o+yori_x+wa_x+wake_x, - wane_x+wayo_x+nn1_x+jya_x+tya_x+nagara2_x+wo_s_x, - ze_x+kke_x+n_si_x+deha_x, - - gotosi_x+saseru_x+zaru_x+zu_x+zunba_x+seru_x+souda_x+youtai_x, - denbun_x+ta_x+tai_x+tagaru_x+taru_x+da1_x+da2_x+daxtu_x, - darou_x+de_x+desi_x+desho_x+desu_x+na2_x+nara_o+nai_x, - nu_x+ne2_x+nn2_x+fuuda_x+besi_x+mai_x+masu_x+masure_x, - mase_x+mitaida_x+you_x+youda_x+rasii_x+rareru_x+reru_x+site_x, - - yougen_x+aru_x+ara_x+ari1_x+ari2_x+ari3_x+are1_x+are2_x, - arou_x+ii_x+itasi_x+itadaku_x+iru_x+eru_x+kakeru_x+kaneru_x, - karazu_x+gatai_x+gatida_x+kudasaru_x+gozai_x+sa1_x+si1_x+siro_x, - jyau_x+jimau_x+sugiru_x+subesi_x+suru_x+sure_x+se_x+seyo_x, - tamau_x+tayu_x+timau_x+dekiru_x+naru_x+nasai_x+nasaru_x+nikui_x, - yasui_x+yoi_x+yaru_x+ttarasii_x - }; - -static u_char hou[] = { - wo_o+ttatte_x+ttara_x+tte1_o+tte2_x+ppanasi_x+ppoi_x+ue_x, - uti_x+oite_x+okeru_x+ori_x+ka1_o+ka2_x+kai_x+kasira_o, - katagata_x+kadouka_o+kana_o+kane_o+kamo_o+kara1_o+kara2_x+ga1_o, - ga2_x+gatera_x+kiri_x+kuseni_x+kurai_x+gurumi_x+kedo_x+koso_x, - koto_x+sa2_o+sae_o+si2_x+sika_o+sura_o+zutu_x+zo_x, - tame_x+dake_o+dano_o+darake_x+tuite_x+tuki_x+tutu_x+tumori_x, - te1_x+te2_x+teru_x+dearou_x+deru_x+to1_o+to2_x+totte_x, - toiu_o+toori_x+toki_x+tokoro_x+tote_x+tohaie_o+tomo_x+do_x, - doori_x+dokoro_o+dokoroka_o+domo_x+na1_x+naa_x+nagara_x+nazo_o, - nado_o+nari_o+nanka_o+nanzo_o+nante_o+ni1_o+ni2_x+ni3_x, - nite_x+nimo_x+ne1_o+nee_o+no1_o+no2_x+node_x+noni_x, - nomi_x+nominrz_x+ha_o+hazu_x+ba_x+bakari_o+he_o+hou_x, - hoka_x+hodo_x+made_o+mama_x+mo1_o+mo2_x+motte_x+mono_x, - ya1_o+ya2_x+yara_o+yue_x+yo_o+yori_o+wa_x+wake_x, - wane_x+wayo_x+nn1_x+jya_o+tya_x+nagara2_x+wo_s_x, - ze_x+kke_x+n_si_x+deha_x, - - gotosi_x+saseru_x+zaru_x+zu_x+zunba_x+seru_x+souda_x+youtai_x, - denbun_x+ta_x+tai_x+tagaru_x+taru_x+da1_x+da2_o+daxtu_o, - darou_o+de_o+desi_o+desho_o+desu_o+na2_o+nara_o+nai_x, - nu_x+ne2_x+nn2_x+fuuda_x+besi_x+mai_x+masu_x+masure_x, - mase_x+mitaida_o+you_x+youda_x+rasii_o+rareru_x+reru_x+site_x, - - yougen_x+aru_x+ara_x+ari1_x+ari2_x+ari3_x+are1_x+are2_x, - arou_x+ii_x+itasi_x+itadaku_x+iru_x+eru_x+kakeru_x+kaneru_x, - karazu_x+gatai_x+gatida_x+kudasaru_x+gozai_x+sa1_x+si1_x+siro_x, - jyau_x+jimau_x+sugiru_x+subesi_x+suru_x+sure_x+se_x+seyo_x, - tamau_x+tayu_x+timau_x+dekiru_x+naru_x+nasai_x+nasaru_x+nikui_x, - yasui_x+yoi_x+yaru_x+ttarasii_x - }; - -static u_char hoka[] = { - wo_x+ttatte_x+ttara_x+tte1_x+tte2_x+ppanasi_x+ppoi_x+ue_x, - uti_x+oite_x+okeru_x+ori_x+ka1_x+ka2_x+kai_x+kasira_x, - katagata_x+kadouka_x+kana_x+kane_x+kamo_x+kara1_x+kara2_x+ga1_x, - ga2_x+gatera_x+kiri_x+kuseni_x+kurai_x+gurumi_x+kedo_x+koso_x, - koto_x+sa2_x+sae_x+si2_x+sika_x+sura_x+zutu_x+zo_x, - tame_x+dake_x+dano_x+darake_x+tuite_x+tuki_x+tutu_x+tumori_x, - te1_x+te2_x+teru_x+dearou_x+deru_x+to1_x+to2_x+totte_x, - toiu_x+toori_x+toki_x+tokoro_x+tote_x+tohaie_x+tomo_x+do_x, - doori_x+dokoro_x+dokoroka_x+domo_x+na1_x+naa_x+nagara_x+nazo_x, - nado_x+nari_x+nanka_x+nanzo_x+nante_x+ni1_o+ni2_x+ni3_x, - nite_x+nimo_x+ne1_x+nee_x+no1_x+no2_x+node_x+noni_x, - nomi_x+nominrz_x+ha_o+hazu_x+ba_x+bakari_x+he_x+hou_x, - hoka_x+hodo_x+made_x+mama_x+mo1_o+mo2_x+motte_x+mono_x, - ya1_o+ya2_x+yara_x+yue_x+yo_x+yori_x+wa_x+wake_x, - wane_x+wayo_x+nn1_x+jya_x+tya_x+nagara2_x+wo_s_x, - ze_x+kke_x+n_si_x+deha_x, - - gotosi_x+saseru_x+zaru_x+zu_x+zunba_x+seru_x+souda_x+youtai_x, - denbun_x+ta_x+tai_x+tagaru_x+taru_x+da1_x+da2_x+daxtu_x, - darou_x+de_x+desi_x+desho_x+desu_x+na2_x+nara_x+nai_x, - nu_x+ne2_x+nn2_x+fuuda_x+besi_x+mai_x+masu_x+masure_x, - mase_x+mitaida_x+you_x+youda_x+rasii_x+rareru_x+reru_x+site_x, - - yougen_x+aru_x+ara_x+ari1_x+ari2_x+ari3_x+are1_x+are2_x, - arou_x+ii_x+itasi_x+itadaku_x+iru_x+eru_x+kakeru_x+kaneru_x, - karazu_x+gatai_x+gatida_x+kudasaru_x+gozai_x+sa1_x+si1_x+siro_x, - jyau_x+jimau_x+sugiru_x+subesi_x+suru_x+sure_x+se_x+seyo_x, - tamau_x+tayu_x+timau_x+dekiru_x+naru_x+nasai_x+nasaru_x+nikui_x, - yasui_x+yoi_x+yaru_x+ttarasii_x - }; - -static u_char hodo[] = { - wo_x+ttatte_x+ttara_x+tte1_x+tte2_x+ppanasi_x+ppoi_x+ue_x, - uti_x+oite_x+okeru_x+ori_x+ka1_o+ka2_x+kai_x+kasira_o, - katagata_x+kadouka_o+kana_o+kane_o+kamo_o+kara1_x+kara2_x+ga1_x, - ga2_x+gatera_x+kiri_x+kuseni_x+kurai_x+gurumi_x+kedo_x+koso_x, - koto_x+sa2_o+sae_x+si2_x+sika_o+sura_x+zutu_x+zo_x, - tame_x+dake_x+dano_x+darake_x+tuite_x+tuki_x+tutu_x+tumori_x, - te1_x+te2_x+teru_x+dearou_x+deru_x+to1_o+to2_x+totte_x, - toiu_o+toori_x+toki_x+tokoro_x+tote_x+tohaie_o+tomo_x+do_x, - doori_x+dokoro_x+dokoroka_x+domo_x+na1_x+naa_x+nagara_x+nazo_x, - nado_x+nari_x+nanka_x+nanzo_x+nante_x+ni1_o+ni2_x+ni3_x, - nite_x+nimo_x+ne1_o+nee_o+no1_o+no2_x+node_x+noni_x, - nomi_x+nominrz_x+ha_o+hazu_x+ba_x+bakari_x+he_x+hou_x, - hoka_x+hodo_x+made_o+mama_x+mo1_o+mo2_x+motte_x+mono_x, - ya1_x+ya2_x+yara_x+yue_x+yo_x+yori_x+wa_x+wake_x, - wane_x+wayo_x+nn1_x+jya_o+tya_x+nagara2_x+wo_s_x, - ze_x+kke_x+n_si_x+deha_x, - - gotosi_x+saseru_x+zaru_x+zu_x+zunba_x+seru_x+souda_x+youtai_x, - denbun_x+ta_x+tai_x+tagaru_x+taru_x+da1_x+da2_o+daxtu_o, - darou_o+de_o+desi_o+desho_o+desu_o+na2_o+nara_o+nai_x, - nu_x+ne2_x+nn2_x+fuuda_x+besi_x+mai_x+masu_x+masure_x, - mase_x+mitaida_x+you_x+youda_x+rasii_o+rareru_x+reru_x+site_x, - - yougen_x+aru_x+ara_x+ari1_x+ari2_x+ari3_x+are1_x+are2_x, - arou_x+ii_x+itasi_x+itadaku_x+iru_x+eru_x+kakeru_x+kaneru_x, - karazu_x+gatai_x+gatida_x+kudasaru_x+gozai_x+sa1_x+si1_x+siro_x, - jyau_x+jimau_x+sugiru_x+subesi_x+suru_x+sure_x+se_x+seyo_x, - tamau_x+tayu_x+timau_x+dekiru_x+naru_x+nasai_x+nasaru_x+nikui_x, - yasui_x+yoi_x+yaru_x+ttarasii_x - }; - -static u_char made[] = { - wo_o+ttatte_x+ttara_o+tte1_o+tte2_x+ppanasi_x+ppoi_x+ue_x, - uti_x+oite_x+okeru_x+ori_x+ka1_o+ka2_x+kai_x+kasira_o, - katagata_x+kadouka_o+kana_o+kane_o+kamo_o+kara1_x+kara2_x+ga1_o, - ga2_x+gatera_x+kiri_x+kuseni_x+kurai_o+gurumi_x+kedo_x+koso_x, - koto_x+sa2_o+sae_o+si2_x+sika_o+sura_o+zutu_x+zo_o, - tame_x+dake_o+dano_o+darake_x+tuite_x+tuki_x+tutu_x+tumori_x, - te1_x+te2_x+teru_x+dearou_x+deru_x+to1_o+to2_x+totte_x, - toiu_o+toori_x+toki_x+tokoro_x+tote_x+tohaie_o+tomo_x+do_x, - doori_x+dokoro_o+dokoroka_o+domo_x+na1_o+naa_o+nagara_x+nazo_o, - nado_o+nari_o+nanka_o+nanzo_o+nante_o+ni1_o+ni2_x+ni3_x, - nite_x+nimo_x+ne1_o+nee_o+no1_o+no2_x+node_x+noni_x, - nomi_o+nominrz_o+ha_o+hazu_x+ba_x+bakari_o+he_x+hou_x, - hoka_x+hodo_x+made_x+mama_x+mo1_x+mo2_o+motte_x+mono_x, - ya1_o+ya2_x+yara_o+yue_x+yo_o+yori_x+wa_x+wake_x, - wane_o+wayo_x+nn1_x+jya_o+tya_x+nagara2_x+wo_s_x, - ze_x+kke_x+n_si_x+deha_x, - - gotosi_x+saseru_x+zaru_x+zu_x+zunba_x+seru_x+souda_x+youtai_x, - denbun_x+ta_x+tai_x+tagaru_x+taru_x+da1_x+da2_o+daxtu_o, - darou_o+de_o+desi_o+desho_o+desu_o+na2_o+nara_o+nai_x, - nu_x+ne2_x+nn2_x+fuuda_x+besi_x+mai_x+masu_x+masure_x, - mase_x+mitaida_o+you_x+youda_x+rasii_o+rareru_x+reru_x+site_x, - - yougen_x+aru_o+ara_x+ari1_x+ari2_o+ari3_x+are1_x+are2_o, - arou_o+ii_x+itasi_x+itadaku_x+iru_x+eru_x+kakeru_x+kaneru_x, - karazu_x+gatai_x+gatida_x+kudasaru_x+gozai_x+sa1_x+si1_x+siro_x, - jyau_x+jimau_x+sugiru_x+subesi_x+suru_x+sure_x+se_x+seyo_x, - tamau_x+tayu_x+timau_x+dekiru_x+naru_x+nasai_x+nasaru_x+nikui_x, - yasui_x+yoi_x+yaru_x+ttarasii_x - }; - -static u_char mama[] = { - wo_o+ttatte_x+ttara_o+tte1_o+tte2_x+ppanasi_x+ppoi_x+ue_x, - uti_x+oite_x+okeru_x+ori_x+ka1_o+ka2_x+kai_x+kasira_o, - katagata_x+kadouka_o+kana_o+kane_o+kamo_o+kara1_o+kara2_x+ga1_o, - ga2_x+gatera_x+kiri_x+kuseni_x+kurai_x+gurumi_x+kedo_x+koso_o, - koto_x+sa2_o+sae_o+si2_x+sika_o+sura_o+zutu_x+zo_o, - tame_x+dake_o+dano_o+darake_x+tuite_x+tuki_x+tutu_x+tumori_x, - te1_x+te2_x+teru_x+dearou_x+deru_x+to1_o+to2_x+totte_x, - toiu_o+toori_x+toki_x+tokoro_x+tote_x+tohaie_o+tomo_x+do_x, - doori_x+dokoro_o+dokoroka_o+domo_x+na1_x+naa_x+nagara_x+nazo_o, - nado_o+nari_o+nanka_o+nanzo_o+nante_o+ni1_o+ni2_x+ni3_x, - nite_x+nimo_x+ne1_o+nee_o+no1_o+no2_x+node_x+noni_x, - nomi_o+nominrz_o+ha_o+hazu_x+ba_x+bakari_x+he_x+hou_x, - hoka_x+hodo_x+made_x+mama_x+mo1_o+mo2_x+motte_x+mono_x, - ya1_o+ya2_x+yara_o+yue_x+yo_o+yori_o+wa_x+wake_x, - wane_x+wayo_x+nn1_x+jya_o+tya_x+nagara2_x+wo_s_x, - ze_x+kke_x+n_si_x+deha_x, - - gotosi_x+saseru_x+zaru_x+zu_x+zunba_x+seru_x+souda_x+youtai_x, - denbun_x+ta_x+tai_x+tagaru_x+taru_x+da1_x+da2_o+daxtu_o, - darou_o+de_o+desi_o+desho_o+desu_o+na2_o+nara_o+nai_x, - nu_x+ne2_x+nn2_x+fuuda_x+besi_x+mai_x+masu_x+masure_x, - mase_x+mitaida_o+you_x+youda_x+rasii_o+rareru_x+reru_x+site_x, - - yougen_x+aru_x+ara_x+ari1_x+ari2_x+ari3_x+are1_x+are2_x, - arou_x+ii_x+itasi_x+itadaku_x+iru_x+eru_x+kakeru_x+kaneru_x, - karazu_x+gatai_x+gatida_x+kudasaru_x+gozai_x+sa1_x+si1_x+siro_x, - jyau_x+jimau_x+sugiru_x+subesi_x+suru_x+sure_x+se_x+seyo_x, - tamau_x+tayu_x+timau_x+dekiru_x+naru_x+nasai_x+nasaru_x+nikui_x, - yasui_x+yoi_x+yaru_x+ttarasii_x - }; - -static u_char mo1[] = { - wo_x+ttatte_x+ttara_x+tte1_x+tte2_x+ppanasi_x+ppoi_x+ue_x, - uti_x+oite_x+okeru_x+ori_x+ka1_x+ka2_x+kai_x+kasira_x, - katagata_x+kadouka_x+kana_x+kane_x+kamo_x+kara1_x+kara2_x+ga1_x, - ga2_x+gatera_x+kiri_x+kuseni_x+kurai_x+gurumi_x+kedo_x+koso_x, - koto_x+sa2_x+sae_x+si2_x+sika_x+sura_x+zutu_x+zo_x, - tame_x+dake_x+dano_x+darake_x+tuite_x+tuki_x+tutu_x+tumori_x, - te1_x+te2_x+teru_x+dearou_x+deru_x+to1_x+to2_x+totte_x, - toiu_x+toori_x+toki_x+tokoro_x+tote_x+tohaie_x+tomo_x+do_x, - doori_x+dokoro_x+dokoroka_x+domo_x+na1_x+naa_x+nagara_x+nazo_x, - nado_x+nari_x+nanka_x+nanzo_x+nante_x+ni1_x+ni2_x+ni3_x, - nite_x+nimo_x+ne1_x+nee_x+no1_x+no2_x+node_x+noni_x, - nomi_x+nominrz_x+ha_x+hazu_x+ba_x+bakari_x+he_x+hou_x, - hoka_x+hodo_x+made_x+mama_x+mo1_x+mo2_x+motte_x+mono_x, - ya1_x+ya2_x+yara_x+yue_x+yo_x+yori_x+wa_x+wake_x, - wane_x+wayo_x+nn1_x+jya_x+tya_x+nagara2_x+wo_s_x, - ze_x+kke_x+n_si_x+deha_x, - - gotosi_x+saseru_x+zaru_x+zu_x+zunba_x+seru_x+souda_x+youtai_x, - denbun_x+ta_x+tai_x+tagaru_x+taru_x+da1_x+da2_x+daxtu_x, - darou_x+de_x+desi_x+desho_x+desu_x+na2_x+nara_x+nai_x, - nu_x+ne2_x+nn2_x+fuuda_x+besi_x+mai_x+masu_x+masure_x, - mase_x+mitaida_x+you_x+youda_x+rasii_x+rareru_x+reru_x+site_x, - - yougen_x+aru_x+ara_x+ari1_x+ari2_x+ari3_x+are1_x+are2_x, - arou_x+ii_x+itasi_x+itadaku_x+iru_x+eru_x+kakeru_x+kaneru_x, - karazu_x+gatai_x+gatida_x+kudasaru_x+gozai_x+sa1_x+si1_x+siro_x, - jyau_x+jimau_x+sugiru_x+subesi_x+suru_x+sure_x+se_x+seyo_x, - tamau_x+tayu_x+timau_x+dekiru_x+naru_x+nasai_x+nasaru_x+nikui_x, - yasui_x+yoi_x+yaru_x+ttarasii_x - }; - -static u_char mo2[] = { - wo_x+ttatte_x+ttara_x+tte1_x+tte2_x+ppanasi_x+ppoi_x+ue_x, - uti_x+oite_x+okeru_x+ori_x+ka1_x+ka2_x+kai_x+kasira_x, - katagata_x+kadouka_x+kana_x+kane_x+kamo_x+kara1_x+kara2_x+ga1_o, - ga2_x+gatera_x+kiri_x+kuseni_x+kurai_x+gurumi_x+kedo_x+koso_x, - koto_x+sa2_x+sae_x+si2_x+sika_x+sura_x+zutu_x+zo_x, - tame_x+dake_x+dano_x+darake_x+tuite_x+tuki_x+tutu_x+tumori_x, - te1_x+te2_x+teru_x+dearou_x+deru_x+to1_x+to2_x+totte_x, - toiu_x+toori_x+toki_x+tokoro_x+tote_x+tohaie_x+tomo_x+do_x, - doori_x+dokoro_x+dokoroka_x+domo_x+na1_x+naa_x+nagara_x+nazo_x, - nado_x+nari_x+nanka_x+nanzo_x+nante_x+ni1_x+ni2_x+ni3_x, - nite_x+nimo_x+ne1_x+nee_x+no1_x+no2_x+node_x+noni_x, - nomi_x+nominrz_x+ha_x+hazu_x+ba_x+bakari_x+he_x+hou_x, - hoka_x+hodo_x+made_x+mama_x+mo1_x+mo2_x+motte_x+mono_x, - ya1_x+ya2_x+yara_x+yue_x+yo_x+yori_x+wa_x+wake_x, - wane_x+wayo_x+nn1_x+jya_x+tya_x+nagara2_x+wo_s_x, - ze_x+kke_x+n_si_x+deha_x, - - gotosi_x+saseru_x+zaru_x+zu_x+zunba_x+seru_x+souda_x+youtai_x, - denbun_x+ta_x+tai_x+tagaru_x+taru_x+da1_x+da2_x+daxtu_x, - darou_x+de_x+desi_x+desho_x+desu_x+na2_x+nara_x+nai_o, - nu_x+ne2_x+nn2_x+fuuda_x+besi_x+mai_x+masu_x+masure_x, - mase_x+mitaida_x+you_x+youda_x+rasii_x+rareru_x+reru_x+site_x, - - yougen_x+aru_x+ara_x+ari1_x+ari2_x+ari3_x+are1_x+are2_x, - arou_x+ii_x+itasi_x+itadaku_x+iru_x+eru_x+kakeru_x+kaneru_x, - karazu_x+gatai_x+gatida_x+kudasaru_x+gozai_x+sa1_x+si1_o+siro_x, - jyau_x+jimau_x+sugiru_x+subesi_x+suru_o+sure_x+se_o+seyo_x, - tamau_x+tayu_x+timau_x+dekiru_x+naru_o+nasai_x+nasaru_x+nikui_x, - yasui_x+yoi_x+yaru_x+ttarasii_x - }; - -static u_char motte[] = { - wo_x+ttatte_x+ttara_x+tte1_x+tte2_x+ppanasi_x+ppoi_x+ue_x, - uti_x+oite_x+okeru_x+ori_x+ka1_x+ka2_x+kai_x+kasira_x, - katagata_x+kadouka_x+kana_x+kane_x+kamo_x+kara1_x+kara2_x+ga1_x, - ga2_x+gatera_x+kiri_x+kuseni_x+kurai_x+gurumi_x+kedo_x+koso_x, - koto_x+sa2_x+sae_x+si2_x+sika_x+sura_x+zutu_x+zo_x, - tame_x+dake_x+dano_x+darake_x+tuite_x+tuki_x+tutu_x+tumori_x, - te1_x+te2_x+teru_x+dearou_x+deru_x+to1_x+to2_x+totte_x, - toiu_x+toori_x+toki_x+tokoro_x+tote_x+tohaie_x+tomo_x+do_x, - doori_x+dokoro_x+dokoroka_x+domo_x+na1_x+naa_x+nagara_x+nazo_x, - nado_x+nari_x+nanka_x+nanzo_x+nante_x+ni1_x+ni2_x+ni3_x, - nite_x+nimo_x+ne1_x+nee_x+no1_x+no2_x+node_x+noni_x, - nomi_x+nominrz_x+ha_x+hazu_x+ba_x+bakari_x+he_x+hou_x, - hoka_x+hodo_x+made_x+mama_x+mo1_x+mo2_x+motte_x+mono_x, - ya1_x+ya2_x+yara_x+yue_x+yo_x+yori_x+wa_x+wake_x, - wane_x+wayo_x+nn1_x+jya_x+tya_x+nagara2_x+wo_s_x, - ze_x+kke_x+n_si_x+deha_x, - - gotosi_x+saseru_x+zaru_x+zu_x+zunba_x+seru_x+souda_x+youtai_x, - denbun_x+ta_x+tai_x+tagaru_x+taru_x+da1_x+da2_x+daxtu_x, - darou_x+de_x+desi_x+desho_x+desu_x+na2_x+nara_x+nai_x, - nu_x+ne2_x+nn2_x+fuuda_x+besi_x+mai_x+masu_x+masure_x, - mase_x+mitaida_x+you_x+youda_x+rasii_x+rareru_x+reru_x+site_x, - - yougen_x+aru_x+ara_x+ari1_x+ari2_x+ari3_x+are1_x+are2_x, - arou_x+ii_x+itasi_x+itadaku_x+iru_x+eru_x+kakeru_x+kaneru_x, - karazu_x+gatai_x+gatida_x+kudasaru_x+gozai_x+sa1_x+si1_x+siro_x, - jyau_x+jimau_x+sugiru_x+subesi_x+suru_x+sure_x+se_x+seyo_x, - tamau_x+tayu_x+timau_x+dekiru_x+naru_x+nasai_x+nasaru_x+nikui_x, - yasui_x+yoi_x+yaru_x+ttarasii_x - }; - -static u_char mono[] = { - wo_o+ttatte_x+ttara_x+tte1_o+tte2_x+ppanasi_x+ppoi_x+ue_x, - uti_x+oite_x+okeru_x+ori_x+ka1_o+ka2_x+kai_x+kasira_o, - katagata_x+kadouka_o+kana_o+kane_o+kamo_o+kara1_o+kara2_x+ga1_o, - ga2_x+gatera_x+kiri_x+kuseni_x+kurai_o+gurumi_x+kedo_x+koso_o, - koto_x+sa2_o+sae_o+si2_x+sika_o+sura_o+zutu_x+zo_o, - tame_x+dake_o+dano_o+darake_o+tuite_x+tuki_x+tutu_x+tumori_x, - te1_x+te2_x+teru_x+dearou_x+deru_x+to1_o+to2_x+totte_x, - toiu_o+toori_x+toki_x+tokoro_x+tote_x+tohaie_o+tomo_x+do_x, - doori_x+dokoro_o+dokoroka_o+domo_x+na1_o+naa_o+nagara_o+nazo_o, - nado_o+nari_o+nanka_o+nanzo_o+nante_o+ni1_o+ni2_x+ni3_x, - nite_x+nimo_x+ne1_o+nee_o+no1_o+no2_x+node_x+noni_x, - nomi_o+nominrz_o+ha_o+hazu_x+ba_x+bakari_o+he_o+hou_x, - hoka_x+hodo_o+made_o+mama_x+mo1_o+mo2_x+motte_x+mono_x, - ya1_o+ya2_x+yara_o+yue_x+yo_o+yori_o+wa_x+wake_x, - wane_o+wayo_x+nn1_x+jya_o+tya_x+nagara2_x+wo_s_x, - ze_x+kke_x+n_si_x+deha_x, - - gotosi_x+saseru_x+zaru_x+zu_x+zunba_x+seru_x+souda_x+youtai_x, - denbun_x+ta_x+tai_x+tagaru_x+taru_x+da1_x+da2_o+daxtu_o, - darou_o+de_o+desi_o+desho_o+desu_o+na2_o+nara_o+nai_x, - nu_x+ne2_x+nn2_x+fuuda_x+besi_x+mai_x+masu_x+masure_x, - mase_x+mitaida_o+you_x+youda_x+rasii_o+rareru_x+reru_x+site_x, - - yougen_x+aru_x+ara_x+ari1_x+ari2_x+ari3_x+are1_x+are2_x, - arou_x+ii_x+itasi_x+itadaku_x+iru_x+eru_x+kakeru_x+kaneru_x, - karazu_x+gatai_x+gatida_x+kudasaru_x+gozai_x+sa1_x+si1_x+siro_x, - jyau_x+jimau_x+sugiru_x+subesi_x+suru_x+sure_x+se_x+seyo_x, - tamau_x+tayu_x+timau_x+dekiru_x+naru_x+nasai_x+nasaru_x+nikui_x, - yasui_x+yoi_x+yaru_x+ttarasii_x - }; - -static u_char ya1[] = { - wo_x+ttatte_x+ttara_x+tte1_x+tte2_x+ppanasi_x+ppoi_x+ue_x, - uti_x+oite_x+okeru_x+ori_x+ka1_x+ka2_x+kai_x+kasira_x, - katagata_x+kadouka_x+kana_x+kane_x+kamo_x+kara1_x+kara2_x+ga1_x, - ga2_x+gatera_x+kiri_x+kuseni_x+kurai_x+gurumi_x+kedo_x+koso_x, - koto_x+sa2_o+sae_x+si2_x+sika_x+sura_x+zutu_x+zo_x, - tame_x+dake_x+dano_x+darake_x+tuite_x+tuki_x+tutu_x+tumori_x, - te1_x+te2_x+teru_x+dearou_x+deru_x+to1_x+to2_x+totte_x, - toiu_x+toori_x+toki_x+tokoro_x+tote_x+tohaie_x+tomo_x+do_x, - doori_x+dokoro_x+dokoroka_x+domo_x+na1_x+naa_x+nagara_x+nazo_x, - nado_x+nari_x+nanka_x+nanzo_x+nante_x+ni1_x+ni2_x+ni3_x, - nite_x+nimo_x+ne1_x+nee_o+no1_x+no2_x+node_x+noni_x, - nomi_x+nominrz_x+ha_x+hazu_x+ba_x+bakari_x+he_x+hou_x, - hoka_x+hodo_x+made_x+mama_x+mo1_x+mo2_x+motte_x+mono_x, - ya1_x+ya2_x+yara_x+yue_x+yo_x+yori_x+wa_x+wake_x, - wane_x+wayo_x+nn1_x+jya_x+tya_x+nagara2_x+wo_s_x, - ze_x+kke_x+n_si_x+deha_x, - - gotosi_x+saseru_x+zaru_x+zu_x+zunba_x+seru_x+souda_x+youtai_x, - denbun_x+ta_x+tai_x+tagaru_x+taru_x+da1_x+da2_x+daxtu_x, - darou_x+de_x+desi_x+desho_x+desu_x+na2_x+nara_x+nai_x, - nu_x+ne2_x+nn2_x+fuuda_x+besi_x+mai_x+masu_x+masure_x, - mase_x+mitaida_x+you_x+youda_x+rasii_x+rareru_x+reru_x+site_x, - - yougen_x+aru_x+ara_x+ari1_x+ari2_x+ari3_x+are1_x+are2_x, - arou_x+ii_x+itasi_x+itadaku_x+iru_x+eru_x+kakeru_x+kaneru_x, - karazu_x+gatai_x+gatida_x+kudasaru_x+gozai_x+sa1_x+si1_x+siro_x, - jyau_x+jimau_x+sugiru_x+subesi_x+suru_x+sure_x+se_x+seyo_x, - tamau_x+tayu_x+timau_x+dekiru_x+naru_x+nasai_x+nasaru_x+nikui_x, - yasui_x+yoi_x+yaru_x+ttarasii_x - }; - -static u_char ya2[] = { - wo_x+ttatte_x+ttara_x+tte1_x+tte2_x+ppanasi_x+ppoi_x+ue_x, - uti_x+oite_x+okeru_x+ori_x+ka1_x+ka2_x+kai_x+kasira_x, - katagata_x+kadouka_x+kana_x+kane_x+kamo_x+kara1_x+kara2_x+ga1_x, - ga2_x+gatera_x+kiri_x+kuseni_x+kurai_x+gurumi_x+kedo_x+koso_x, - koto_x+sa2_x+sae_x+si2_x+sika_x+sura_x+zutu_x+zo_x, - tame_x+dake_x+dano_x+darake_x+tuite_x+tuki_x+tutu_x+tumori_x, - te1_x+te2_x+teru_x+dearou_x+deru_x+to1_x+to2_x+totte_x, - toiu_x+toori_x+toki_x+tokoro_x+tote_x+tohaie_x+tomo_x+do_x, - doori_x+dokoro_x+dokoroka_x+domo_x+na1_x+naa_x+nagara_x+nazo_x, - nado_x+nari_x+nanka_x+nanzo_x+nante_x+ni1_x+ni2_x+ni3_x, - nite_x+nimo_x+ne1_x+nee_x+no1_x+no2_x+node_x+noni_x, - nomi_x+nominrz_x+ha_x+hazu_x+ba_x+bakari_x+he_x+hou_x, - hoka_x+hodo_x+made_x+mama_x+mo1_x+mo2_x+motte_x+mono_x, - ya1_x+ya2_x+yara_x+yue_x+yo_x+yori_x+wa_x+wake_x, - wane_x+wayo_x+nn1_x+jya_x+tya_x+nagara2_x+wo_s_x, - ze_x+kke_x+n_si_x+deha_x, - - gotosi_x+saseru_x+zaru_x+zu_x+zunba_x+seru_x+souda_x+youtai_x, - denbun_x+ta_x+tai_x+tagaru_x+taru_x+da1_x+da2_x+daxtu_x, - darou_x+de_x+desi_x+desho_x+desu_x+na2_x+nara_x+nai_x, - nu_x+ne2_x+nn2_x+fuuda_x+besi_x+mai_x+masu_x+masure_x, - mase_x+mitaida_x+you_x+youda_x+rasii_x+rareru_x+reru_x+site_x, - - yougen_x+aru_x+ara_x+ari1_x+ari2_x+ari3_x+are1_x+are2_x, - arou_x+ii_x+itasi_x+itadaku_x+iru_x+eru_x+kakeru_x+kaneru_x, - karazu_x+gatai_x+gatida_x+kudasaru_x+gozai_x+sa1_x+si1_x+siro_x, - jyau_x+jimau_x+sugiru_x+subesi_x+suru_x+sure_x+se_x+seyo_x, - tamau_x+tayu_x+timau_x+dekiru_x+naru_x+nasai_x+nasaru_x+nikui_x, - yasui_x+yoi_x+yaru_x+ttarasii_x - }; - -static u_char yara[] = { - wo_o+ttatte_x+ttara_x+tte1_x+tte2_x+ppanasi_x+ppoi_x+ue_x, - uti_x+oite_x+okeru_x+ori_x+ka1_x+ka2_x+kai_x+kasira_x, - katagata_x+kadouka_x+kana_x+kane_x+kamo_x+kara1_x+kara2_x+ga1_o, - ga2_x+gatera_x+kiri_x+kuseni_x+kurai_x+gurumi_x+kedo_x+koso_x, - koto_x+sa2_x+sae_o+si2_x+sika_o+sura_x+zutu_x+zo_x, - tame_x+dake_o+dano_x+darake_x+tuite_x+tuki_x+tutu_x+tumori_x, - te1_x+te2_x+teru_x+dearou_x+deru_x+to1_o+to2_x+totte_x, - toiu_x+toori_x+toki_x+tokoro_x+tote_x+tohaie_x+tomo_x+do_x, - doori_x+dokoro_x+dokoroka_x+domo_x+na1_x+naa_x+nagara_x+nazo_o, - nado_o+nari_x+nanka_o+nanzo_o+nante_o+ni1_o+ni2_x+ni3_x, - nite_x+nimo_x+ne1_o+nee_o+no1_o+no2_x+node_x+noni_x, - nomi_x+nominrz_x+ha_o+hazu_x+ba_x+bakari_x+he_o+hou_x, - hoka_x+hodo_x+made_o+mama_x+mo1_o+mo2_x+motte_x+mono_x, - ya1_x+ya2_x+yara_x+yue_x+yo_x+yori_x+wa_x+wake_x, - wane_x+wayo_x+nn1_x+jya_x+tya_x+nagara2_x+wo_s_x, - ze_x+kke_x+n_si_x+deha_x, - - gotosi_x+saseru_x+zaru_x+zu_x+zunba_x+seru_x+souda_x+youtai_x, - denbun_x+ta_x+tai_x+tagaru_x+taru_x+da1_x+da2_x+daxtu_x, - darou_x+de_o+desi_x+desho_x+desu_x+na2_x+nara_x+nai_x, - nu_x+ne2_x+nn2_x+fuuda_x+besi_x+mai_x+masu_x+masure_x, - mase_x+mitaida_x+you_x+youda_x+rasii_x+rareru_x+reru_x+site_x, - - yougen_x+aru_x+ara_x+ari1_x+ari2_x+ari3_x+are1_x+are2_x, - arou_x+ii_x+itasi_x+itadaku_x+iru_x+eru_x+kakeru_x+kaneru_x, - karazu_x+gatai_x+gatida_x+kudasaru_x+gozai_x+sa1_x+si1_x+siro_x, - jyau_x+jimau_x+sugiru_x+subesi_x+suru_x+sure_x+se_x+seyo_x, - tamau_x+tayu_x+timau_x+dekiru_x+naru_x+nasai_x+nasaru_x+nikui_x, - yasui_x+yoi_x+yaru_x+ttarasii_x - }; - -static u_char yue[] = { - wo_x+ttatte_x+ttara_x+tte1_x+tte2_x+ppanasi_x+ppoi_x+ue_x, - uti_x+oite_x+okeru_x+ori_x+ka1_x+ka2_x+kai_x+kasira_x, - katagata_x+kadouka_x+kana_x+kane_x+kamo_x+kara1_x+kara2_x+ga1_x, - ga2_x+gatera_x+kiri_x+kuseni_x+kurai_x+gurumi_x+kedo_x+koso_x, - koto_x+sa2_o+sae_x+si2_x+sika_x+sura_x+zutu_x+zo_x, - tame_x+dake_x+dano_x+darake_x+tuite_x+tuki_x+tutu_x+tumori_x, - te1_x+te2_x+teru_x+dearou_x+deru_x+to1_x+to2_o+totte_x, - toiu_o+toori_x+toki_x+tokoro_x+tote_x+tohaie_o+tomo_x+do_x, - doori_x+dokoro_x+dokoroka_x+domo_x+na1_x+naa_x+nagara_x+nazo_x, - nado_x+nari_x+nanka_x+nanzo_x+nante_x+ni1_o+ni2_x+ni3_x, - nite_x+nimo_x+ne1_o+nee_o+no1_x+no2_x+node_x+noni_x, - nomi_x+nominrz_x+ha_x+hazu_x+ba_x+bakari_x+he_x+hou_x, - hoka_x+hodo_x+made_x+mama_x+mo1_x+mo2_x+motte_x+mono_x, - ya1_x+ya2_x+yara_x+yue_x+yo_x+yori_x+wa_x+wake_x, - wane_x+wayo_x+nn1_x+jya_x+tya_x+nagara2_x+wo_s_x, - ze_x+kke_x+n_si_x+deha_x, - - gotosi_x+saseru_x+zaru_x+zu_x+zunba_x+seru_x+souda_x+youtai_x, - denbun_x+ta_x+tai_x+tagaru_x+taru_x+da1_x+da2_o+daxtu_o, - darou_o+de_o+desi_o+desho_o+desu_o+na2_o+nara_o+nai_x, - nu_x+ne2_x+nn2_x+fuuda_x+besi_x+mai_x+masu_x+masure_x, - mase_x+mitaida_x+you_x+youda_x+rasii_o+rareru_x+reru_x+site_x, - - yougen_x+aru_x+ara_x+ari1_x+ari2_x+ari3_x+are1_x+are2_x, - arou_x+ii_x+itasi_x+itadaku_x+iru_x+eru_x+kakeru_x+kaneru_x, - karazu_x+gatai_x+gatida_x+kudasaru_x+gozai_x+sa1_x+si1_x+siro_x, - jyau_x+jimau_x+sugiru_x+subesi_x+suru_x+sure_x+se_x+seyo_x, - tamau_x+tayu_x+timau_x+dekiru_x+naru_x+nasai_x+nasaru_x+nikui_x, - yasui_x+yoi_x+yaru_x+ttarasii_x - }; - -static u_char yori1[] = { - wo_x+ttatte_x+ttara_x+tte1_x+tte2_x+ppanasi_x+ppoi_x+ue_x, - uti_x+oite_x+okeru_x+ori_x+ka1_x+ka2_x+kai_x+kasira_x, - katagata_x+kadouka_x+kana_x+kane_x+kamo_x+kara1_x+kara2_x+ga1_x, - ga2_x+gatera_x+kiri_x+kuseni_x+kurai_x+gurumi_x+kedo_x+koso_x, - koto_x+sa2_o+sae_x+si2_x+sika_x+sura_x+zutu_x+zo_x, - tame_x+dake_x+dano_x+darake_x+tuite_x+tuki_x+tutu_x+tumori_x, - te1_x+te2_x+teru_x+dearou_x+deru_x+to1_x+to2_x+totte_x, - toiu_x+toori_x+toki_x+tokoro_x+tote_x+tohaie_x+tomo_x+do_x, - doori_x+dokoro_x+dokoroka_x+domo_x+na1_x+naa_x+nagara_x+nazo_x, - nado_x+nari_x+nanka_x+nanzo_x+nante_x+ni1_x+ni2_x+ni3_x, - nite_x+nimo_x+ne1_o+nee_o+no1_x+no2_x+node_x+noni_x, - nomi_x+nominrz_x+ha_o+hazu_x+ba_x+bakari_x+he_x+hou_x, - hoka_x+hodo_x+made_x+mama_x+mo1_o+mo2_x+motte_x+mono_x, - ya1_x+ya2_x+yara_x+yue_x+yo_x+yori_x+wa_x+wake_x, - wane_x+wayo_x+nn1_x+jya_x+tya_x+nagara2_x+wo_s_x, - ze_x+kke_x+n_si_x+deha_x, - - gotosi_x+saseru_x+zaru_x+zu_x+zunba_x+seru_x+souda_x+youtai_x, - denbun_x+ta_x+tai_x+tagaru_x+taru_x+da1_x+da2_x+daxtu_x, - darou_x+de_x+desi_x+desho_x+desu_x+na2_x+nara_x+nai_x, - nu_x+ne2_x+nn2_x+fuuda_x+besi_x+mai_x+masu_x+masure_x, - mase_x+mitaida_x+you_x+youda_x+rasii_x+rareru_x+reru_x+site_x, - - yougen_x+aru_x+ara_x+ari1_x+ari2_x+ari3_x+are1_x+are2_x, - arou_x+ii_x+itasi_x+itadaku_x+iru_x+eru_x+kakeru_x+kaneru_x, - karazu_x+gatai_x+gatida_x+kudasaru_x+gozai_x+sa1_x+si1_x+siro_x, - jyau_x+jimau_x+sugiru_x+subesi_x+suru_x+sure_x+se_x+seyo_x, - tamau_x+tayu_x+timau_x+dekiru_x+naru_x+nasai_x+nasaru_x+nikui_x, - yasui_x+yoi_x+yaru_x+ttarasii_x - }; - -static u_char wake[] = { - wo_x+ttatte_x+ttara_x+tte1_x+tte2_x+ppanasi_x+ppoi_x+ue_x, - uti_x+oite_x+okeru_x+ori_x+ka1_x+ka2_o+kai_x+kasira_o, - katagata_x+kadouka_o+kana_o+kane_o+kamo_x+kara1_x+kara2_x+ga1_o, - ga2_x+gatera_x+kiri_x+kuseni_x+kurai_x+gurumi_x+kedo_x+koso_x, - koto_x+sa2_o+sae_x+si2_x+sika_x+sura_x+zutu_x+zo_x, - tame_x+dake_x+dano_x+darake_x+tuite_x+tuki_x+tutu_x+tumori_x, - te1_x+te2_x+teru_x+dearou_x+deru_x+to1_o+to2_x+totte_x, - toiu_o+toori_x+toki_x+tokoro_x+tote_x+tohaie_o+tomo_x+do_x, - doori_x+dokoro_x+dokoroka_x+domo_x+na1_x+naa_x+nagara_x+nazo_o, - nado_o+nari_x+nanka_o+nanzo_o+nante_o+ni1_o+ni2_x+ni3_x, - nite_x+nimo_x+ne1_o+nee_o+no1_x+no2_x+node_x+noni_x, - nomi_x+nominrz_x+ha_o+hazu_x+ba_x+bakari_x+he_x+hou_x, - hoka_x+hodo_x+made_x+mama_x+mo1_o+mo2_x+motte_x+mono_x, - ya1_x+ya2_x+yara_x+yue_x+yo_o+yori_x+wa_x+wake_x, - wane_x+wayo_x+nn1_x+jya_o+tya_x+nagara2_x+wo_s_x, - ze_x+kke_x+n_si_x+deha_x, - - gotosi_x+saseru_x+zaru_x+zu_x+zunba_x+seru_x+souda_x+youtai_x, - denbun_x+ta_x+tai_x+tagaru_x+taru_x+da1_x+da2_o+daxtu_o, - darou_o+de_o+desi_o+desho_o+desu_o+na2_o+nara_o+nai_x, - nu_x+ne2_x+nn2_x+fuuda_x+besi_x+mai_x+masu_x+masure_x, - mase_x+mitaida_x+you_x+youda_x+rasii_x+rareru_x+reru_x+site_x, - - yougen_x+aru_x+ara_x+ari1_x+ari2_x+ari3_x+are1_x+are2_x, - arou_x+ii_x+itasi_x+itadaku_x+iru_x+eru_x+kakeru_x+kaneru_x, - karazu_x+gatai_x+gatida_x+kudasaru_x+gozai_x+sa1_x+si1_x+siro_x, - jyau_x+jimau_x+sugiru_x+subesi_x+suru_x+sure_x+se_x+seyo_x, - tamau_x+tayu_x+timau_x+dekiru_x+naru_x+nasai_x+nasaru_x+nikui_x, - yasui_x+yoi_x+yaru_x+ttarasii_x - }; - -static u_char nn1[] = { - wo_x+ttatte_x+ttara_x+tte1_x+tte2_x+ppanasi_x+ppoi_x+ue_x, - uti_x+oite_x+okeru_x+ori_x+ka1_x+ka2_x+kai_x+kasira_x, - katagata_x+kadouka_x+kana_x+kane_x+kamo_x+kara1_x+kara2_x+ga1_x, - ga2_x+gatera_x+kiri_x+kuseni_x+kurai_x+gurumi_x+kedo_x+koso_x, - koto_x+sa2_x+sae_x+si2_x+sika_x+sura_x+zutu_x+zo_x, - tame_x+dake_x+dano_x+darake_x+tuite_x+tuki_x+tutu_x+tumori_x, - te1_x+te2_x+teru_x+dearou_x+deru_x+to1_x+to2_x+totte_x, - toiu_x+toori_x+toki_x+tokoro_x+tote_x+tohaie_x+tomo_x+do_x, - doori_x+dokoro_x+dokoroka_x+domo_x+na1_x+naa_x+nagara_x+nazo_x, - nado_x+nari_x+nanka_x+nanzo_x+nante_x+ni1_x+ni2_x+ni3_x, - nite_x+nimo_x+ne1_x+nee_x+no1_x+no2_x+node_x+noni_x, - nomi_x+nominrz_x+ha_x+hazu_x+ba_x+bakari_x+he_x+hou_x, - hoka_x+hodo_x+made_x+mama_x+mo1_x+mo2_x+motte_x+mono_x, - ya1_x+ya2_x+yara_x+yue_x+yo_x+yori_x+wa_x+wake_x, - wane_x+wayo_x+nn1_x+jya_o+tya_x+nagara2_x+wo_s_x, - ze_x+kke_x+n_si_x+deha_x, - - gotosi_x+saseru_x+zaru_x+zu_x+zunba_x+seru_x+souda_x+youtai_x, - denbun_x+ta_x+tai_x+tagaru_x+taru_x+da1_x+da2_o+daxtu_o, - darou_o+de_o+desi_o+desho_o+desu_o+na2_x+nara_o+nai_x, - nu_x+ne2_x+nn2_x+fuuda_x+besi_x+mai_x+masu_x+masure_x, - mase_x+mitaida_x+you_x+youda_x+rasii_x+rareru_x+reru_x+site_x, - - yougen_x+aru_x+ara_x+ari1_x+ari2_x+ari3_x+are1_x+are2_x, - arou_x+ii_x+itasi_x+itadaku_x+iru_x+eru_x+kakeru_x+kaneru_x, - karazu_x+gatai_x+gatida_x+kudasaru_x+gozai_x+sa1_x+si1_x+siro_x, - jyau_x+jimau_x+sugiru_x+subesi_x+suru_x+sure_x+se_x+seyo_x, - tamau_x+tayu_x+timau_x+dekiru_x+naru_x+nasai_x+nasaru_x+nikui_x, - yasui_x+yoi_x+yaru_x+ttarasii_x - }; - -static u_char aisatu[] = { - wo_o+ttatte_x+ttara_x+tte1_o+tte2_x+ppanasi_x+ppoi_x+ue_x, - uti_x+oite_x+okeru_x+ori_x+ka1_x+ka2_x+kai_x+kasira_x, - katagata_x+kadouka_x+kana_x+kane_x+kamo_x+kara1_x+kara2_x+ga1_x, - ga2_x+gatera_x+kiri_x+kuseni_x+kurai_x+gurumi_x+kedo_x+koso_x, - koto_x+sa2_x+sae_x+si2_x+sika_x+sura_x+zutu_x+zo_x, - tame_x+dake_x+dano_x+darake_x+tuite_x+tuki_x+tutu_x+tumori_x, - te1_x+te2_x+teru_x+dearou_x+deru_x+to1_x+to2_o+totte_x, - toiu_o+toori_x+toki_x+tokoro_x+tote_x+tohaie_x+tomo_x+do_x, - doori_x+dokoro_x+dokoroka_x+domo_x+na1_x+naa_x+nagara_x+nazo_x, - nado_x+nari_x+nanka_x+nanzo_x+nante_x+ni1_x+ni2_x+ni3_x, - nite_x+nimo_x+ne1_x+nee_x+no1_x+no2_x+node_x+noni_x, - nomi_x+nominrz_x+ha_x+hazu_x+ba_x+bakari_x+he_x+hou_x, - hoka_x+hodo_x+made_x+mama_x+mo1_x+mo2_x+motte_x+mono_x, - ya1_x+ya2_x+yara_x+yue_x+yo_x+yori_x+wa_x+wake_x, - wane_x+wayo_x+nn1_x+jya_x+tya_x+nagara2_x+wo_s_x, - ze_x+kke_x+n_si_x+deha_o, - - gotosi_x+saseru_x+zaru_x+zu_x+zunba_x+seru_x+souda_x+youtai_x, - denbun_x+ta_x+tai_x+tagaru_x+taru_x+da1_x+da2_x+daxtu_x, - darou_x+de_x+desi_x+desho_x+desu_x+na2_x+nara_x+nai_x, - nu_x+ne2_x+nn2_x+fuuda_x+besi_x+mai_x+masu_x+masure_x, - mase_x+mitaida_x+you_x+youda_x+rasii_x+rareru_x+reru_x+site_x, - - yougen_x+aru_x+ara_x+ari1_x+ari2_x+ari3_x+are1_x+are2_x, - arou_x+ii_x+itasi_x+itadaku_x+iru_x+eru_x+kakeru_x+kaneru_x, - karazu_x+gatai_x+gatida_x+kudasaru_x+gozai_o+sa1_x+si1_x+siro_x, - jyau_x+jimau_x+sugiru_x+subesi_x+suru_x+sure_x+se_x+seyo_x, - tamau_x+tayu_x+timau_x+dekiru_x+naru_x+nasai_x+nasaru_x+nikui_x, - yasui_x+yoi_x+yaru_x+ttarasii_x - }; - -static u_char kosodo[] = { - wo_x+ttatte_x+ttara_x+tte1_x+tte2_x+ppanasi_x+ppoi_x+ue_x, - uti_x+oite_x+okeru_x+ori_x+ka1_o+ka2_x+kai_x+kasira_o, - katagata_x+kadouka_x+kana_o+kane_x+kamo_o+kara1_x+kara2_x+ga1_x, - ga2_x+gatera_x+kiri_x+kuseni_x+kurai_x+gurumi_x+kedo_x+koso_x, - koto_x+sa2_o+sae_o+si2_x+sika_o+sura_o+zutu_x+zo_x, - tame_x+dake_x+dano_x+darake_x+tuite_x+tuki_x+tutu_x+tumori_x, - te1_x+te2_x+teru_x+dearou_x+deru_x+to1_x+to2_x+totte_x, - toiu_x+toori_x+toki_x+tokoro_x+tote_x+tohaie_x+tomo_x+do_x, - doori_x+dokoro_x+dokoroka_x+domo_x+na1_x+naa_x+nagara_x+nazo_o, - nado_o+nari_x+nanka_o+nanzo_o+nante_o+ni1_x+ni2_x+ni3_x, - nite_x+nimo_o+ne1_o+nee_o+no1_x+no2_x+node_x+noni_x, - nomi_x+nominrz_x+ha_o+hazu_x+ba_x+bakari_x+he_x+hou_x, - hoka_x+hodo_x+made_x+mama_x+mo1_o+mo2_x+motte_x+mono_x, - ya1_x+ya2_x+yara_x+yue_x+yo_o+yori_x+wa_x+wake_x, - wane_x+wayo_x+nn1_x+jya_o+tya_x+nagara2_x+wo_s_x, - ze_x+kke_x+n_si_x+deha_x, - - gotosi_x+saseru_x+zaru_x+zu_x+zunba_x+seru_x+souda_x+youtai_x, - denbun_x+ta_x+tai_x+tagaru_x+taru_x+da1_x+da2_o+daxtu_o, - darou_o+de_o+desi_o+desho_o+desu_o+na2_o+nara_o+nai_x, - nu_x+ne2_x+nn2_x+fuuda_x+besi_x+mai_x+masu_x+masure_x, - mase_x+mitaida_x+you_x+youda_x+rasii_o+rareru_x+reru_x+site_x, - - yougen_x+aru_x+ara_x+ari1_x+ari2_x+ari3_x+are1_x+are2_x, - arou_x+ii_x+itasi_x+itadaku_x+iru_x+eru_x+kakeru_x+kaneru_x, - karazu_x+gatai_x+gatida_x+kudasaru_x+gozai_x+sa1_o+si1_o+siro_o, - jyau_x+jimau_x+sugiru_x+subesi_o+suru_o+sure_o+se_o+seyo_o, - tamau_x+tayu_x+timau_x+dekiru_o+naru_o+nasai_x+nasaru_x+nikui_x, - yasui_x+yoi_x+yaru_x+ttarasii_x - }; - -static u_char site[] = { - wo_x+ttatte_x+ttara_x+tte1_x+tte2_x+ppanasi_x+ppoi_x+ue_x, - uti_x+oite_x+okeru_x+ori_x+ka1_x+ka2_x+kai_x+kasira_x, - katagata_x+kadouka_x+kana_x+kane_x+kamo_x+kara1_x+kara2_x+ga1_x, - ga2_x+gatera_x+kiri_x+kuseni_x+kurai_x+gurumi_x+kedo_x+koso_x, - koto_x+sa2_x+sae_x+si2_x+sika_x+sura_x+zutu_x+zo_x, - tame_x+dake_x+dano_x+darake_x+tuite_x+tuki_x+tutu_x+tumori_x, - te1_x+te2_x+teru_x+dearou_x+deru_x+to1_x+to2_x+totte_x, - toiu_x+toori_x+toki_x+tokoro_x+tote_x+tohaie_x+tomo_x+do_x, - doori_x+dokoro_x+dokoroka_x+domo_x+na1_x+naa_x+nagara_x+nazo_x, - nado_x+nari_x+nanka_x+nanzo_x+nante_x+ni1_x+ni2_x+ni3_x, - nite_x+nimo_x+ne1_x+nee_x+no1_x+no2_x+node_x+noni_x, - nomi_x+nominrz_x+ha_o+hazu_x+ba_x+bakari_x+he_x+hou_x, - hoka_x+hodo_x+made_x+mama_x+mo1_o+mo2_x+motte_x+mono_x, - ya1_x+ya2_x+yara_x+yue_x+yo_x+yori_x+wa_x+wake_x, - wane_x+wayo_x+nn1_x+jya_x+tya_x+nagara2_x+wo_s_x, - ze_x+kke_x+n_si_x+deha_x, - - gotosi_x+saseru_x+zaru_x+zu_x+zunba_x+seru_x+souda_x+youtai_x, - denbun_x+ta_x+tai_x+tagaru_x+taru_x+da1_x+da2_x+daxtu_x, - darou_x+de_x+desi_x+desho_x+desu_x+na2_x+nara_x+nai_x, - nu_x+ne2_x+nn2_x+fuuda_x+besi_x+mai_x+masu_x+masure_x, - mase_x+mitaida_x+you_x+youda_x+rasii_x+rareru_x+reru_x+site_x, - - yougen_x+aru_x+ara_x+ari1_x+ari2_x+ari3_x+are1_x+are2_x, - arou_x+ii_x+itasi_x+itadaku_x+iru_x+eru_x+kakeru_x+kaneru_x, - karazu_x+gatai_x+gatida_x+kudasaru_x+gozai_x+sa1_x+si1_x+siro_x, - jyau_x+jimau_x+sugiru_x+subesi_x+suru_x+sure_x+se_x+seyo_x, - tamau_x+tayu_x+timau_x+dekiru_x+naru_x+nasai_x+nasaru_x+nikui_x, - yasui_x+yoi_x+yaru_x+ttarasii_x - }; - -static u_char n_si[] = { - wo_x+ttatte_x+ttara_x+tte1_x+tte2_x+ppanasi_o+ppoi_x+ue_x, - uti_x+oite_x+okeru_x+ori_x+ka1_x+ka2_x+kai_x+kasira_x, - katagata_x+kadouka_x+kana_x+kane_x+kamo_x+kara1_x+kara2_x+ga1_x, - ga2_x+gatera_o+kiri_x+kuseni_x+kurai_x+gurumi_x+kedo_x+koso_x, - koto_x+sa2_x+sae_o+si2_x+sika_x+sura_x+zutu_x+zo_x, - tame_x+dake_x+dano_x+darake_x+tuite_x+tuki_x+tutu_o+tumori_x, - te1_x+te2_o+teru_o+dearou_x+deru_x+to1_x+to2_x+totte_x, - toiu_x+toori_x+toki_x+tokoro_x+tote_x+tohaie_x+tomo_x+do_x, - doori_x+dokoro_x+dokoroka_x+domo_x+na1_o+naa_x+nagara_x+nazo_x, - nado_x+nari_x+nanka_x+nanzo_x+nante_x+ni1_x+ni2_o+ni3_x, - nite_x+nimo_x+ne1_x+nee_x+no1_x+no2_x+node_x+noni_x, - nomi_x+nominrz_x+ha_x+hazu_x+ba_x+bakari_x+he_x+hou_x, - hoka_x+hodo_x+made_x+mama_x+mo1_x+mo2_x+motte_x+mono_x, - ya1_x+ya2_x+yara_x+yue_x+yo_x+yori_x+wa_x+wake_x, - wane_x+wayo_x+nn1_x+jya_x+tya_o+nagara2_o+wo_s_x, - ze_x+kke_x+n_si_x+deha_x, - - gotosi_x+saseru_x+zaru_x+zu_x+zunba_x+seru_x+souda_o+youtai_o, - denbun_x+ta_o+tai_o+tagaru_x+taru_x+da1_x+da2_x+daxtu_x, - darou_x+de_x+desi_x+desho_x+desu_x+na2_x+nara_x+nai_o, - nu_x+ne2_x+nn2_x+fuuda_x+besi_x+mai_o+masu_o+masure_o, - mase_x+mitaida_x+you_o+youda_x+rasii_x+rareru_x+reru_x+site_x, - - yougen_x+aru_x+ara_x+ari1_x+ari2_x+ari3_x+are1_x+are2_x, - arou_x+ii_o+itasi_x+itadaku_x+iru_x+eru_x+kakeru_o+kaneru_o, - karazu_x+gatai_o+gatida_o+kudasaru_x+gozai_x+sa1_x+si1_x+siro_x, - jyau_x+jimau_x+sugiru_x+subesi_x+suru_x+sure_x+se_x+seyo_x, - tamau_x+tayu_o+timau_x+dekiru_x+naru_x+nasai_o+nasaru_o+nikui_o, - yasui_o+yoi_x+yaru_x+ttarasii_x - }; - -u_char connadr[] = { - 0, - R_MEISI, - R_MEISI, - R_MEISI, - R_MEISI, - 0, - 0, - 0, - 0, - 0, - 0, - R_MEISI, - - R_DAIMEISI, - R_DAIMEISI, - R_WO_MEISI, - 0, - 0, - R_DAIMEISI6, - - 0, - 0, - 0, - - R_MEISI, - R_MEISI, - R_MEISI, - R_MEISI, - R_MEISI, - R_RENTAISI, - R_SETUZOKU, - R_KANDOU, - R_JOSUUSI, - R_SUUSI, - - R_SETTOU, - R_SETTOU, - R_SETTOU, - R_SETTOU, - R_SETTOU, - - R_MEISI, - R_MEISI, - R_MEISI, - R_MEISI, - 0, - 0, - 0, - 0, - R_MEISI, - - R_FUKUSI, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - R_JOSUUSI, - - 0, - 0, - 0, - 0, - 0, - - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - - 0, - 0, - - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - - 0, - 0, - - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - - 0, - 0, - - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - - R_MIZEN1, - R_MIZEN2, - R_SI1, - R_SHUUSI, - R_KATEI2, - R_MEIREI1, - R_MEIREI2, - R_KO, - R_KI, - R_SHUUSI, - R_KATEI2, - R_MEIREI1, - R_KUDASAI, - R_GOZAI, - R_ONBIN2, - R_KOSODO, - R_AISATU, - R_KSHUUSI, - R_TANKAN, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - R_MEISI - }; - -u_char *rigtadr[] = { - 0, - de, - wo, - kara1, - ga1, - to1, - ni1, - no1, - ha, - he, - mo1, - ya1, - yori1, - sae, - sika, - dake, - i, - e, - kake, - kane2, - sugi, - deki, - mi, - sase, - rare, - itadake, - exp, - renyou1, - renyou5, - sa5renyou1, - renyou3, - renyou7, - sa5renyou3, - renyou4, - renyou8, - sa5renyou4, - 0, - 0, - 0, - krenyou, - drenyou1, - drenyou2, - drenyou3, - onbin1, - onbin2, - onbin3, - deshi, - axtu, - onbin6, - onbin8, - ari1, - ari2, - ari3, - iki, - itasi, - itadaki, - ori2, - gataku, - ki, - kudasai, - gozai, - gotoku, - beku, - soude, - souni, - tagari, - taku, - mizen1, - naide, - naku, - nasai, - fuuni, - yori2, - rashuu, - dshuusi1, - dshuusi2, - gotosi, - besi, - zu, - souda, - mai, - mitaida, - shuusi, - kshuusi, - zaru, - soudesu, - ta, - tai, - desu, - nai, - nu, - masu, - nn2, - rasii, - drentai1, - drentai2, - drentai3, - krentai, - gotoki, - beki, - souna1, - souna2, - na2, - katei1, - katei2, - katei3, - kamei, - ike, - kure, - meirei1, - meirei2, - dgokan, - kgokan, - sgokan, - gati, - jya, - sou, - mitai, - yotte, - you2, - sho, - meisi, - aisatu, - kosodo, - you1, - si1, - meisi, - meisi, - fzkki, - deha, - nagara2, - wo_s, - wo_meisi, - site, - n_si, - cut, - 0, - cut, - 0, 0, - mizen2, - mizen3, - mizen4, - si1, - ji, - age, - mizen5, - arou, - karou, - darou, - deshou, - ko, - bekara, - tagara, - shuujo, - ttatte, - ttara, - tte1, - tte2, - ppanasi, - ppoi, - ue, - uti, - oite, - okeru, - ori, - ka1, - ka2, - katagata, - kadouka, - kamo, - kara2, - ga2, - gatera, - kiri, - kuseni, - kurai, - gurumi, - kedo, - koso, - koto, - si2, - sura, - zutu, - tame, - tari, - dano, - darake, - tuite, - tuki, - tutu, - tumori, - te1, - te2, - teru, - to2, - totte, - toiu, - toori, - toki, - tokoro, - tote, - tohaie, - tomo, - fdo, - doori, - dokoro, - dokoroka, - domo, - nagara, - nazo, - nado, - nari, - nanka, - nanzo, - nante, - ni2, - ni3, - nite, - nimo, - no2, - node, - noni, - nomi, - nominrz, - hazu, - ba, - bakari, - hou, - hoka, - hodo, - made, - mama, - mo2, - motte, - mono, - ya2, - yara, - yue, - wake, - nn1, - josuusi, - cut, - cut, - cut, - cut, - cut, - meisi, - dmeisi, - smeisi1, - smeisi2, - kstb, - ichisetubi, - josuusi, - rentaisi, - cut - }; +static u_char mizen1[] = { + wo_x + ttatte_x + ttara_x + tte1_x + tte2_x + ppanasi_x + ppoi_x + ue_x, + uti_x + oite_x + okeru_x + ori_x + ka1_x + ka2_x + kai_x + kasira_x, + katagata_x + kadouka_x + kana_x + kane_x + kamo_x + kara1_x + kara2_x + ga1_x, + ga2_x + gatera_x + kiri_x + kuseni_x + kurai_x + gurumi_x + kedo_x + koso_x, + koto_x + sa2_x + sae_x + si2_x + sika_x + sura_x + zutu_x + zo_x, + tame_x + dake_x + dano_x + darake_x + tuite_x + tuki_x + tutu_x + tumori_x, + te1_x + te2_x + teru_x + dearou_x + deru_x + to1_x + to2_x + totte_x, + toiu_x + toori_x + toki_x + tokoro_x + tote_x + tohaie_x + tomo_x + do_x, + doori_x + dokoro_x + dokoroka_x + domo_x + na1_x + naa_x + nagara_x + nazo_x, + nado_x + nari_x + nanka_x + nanzo_x + nante_x + ni1_x + ni2_x + ni3_x, + nite_x + nimo_x + ne1_x + nee_x + no1_x + no2_x + node_x + noni_x, + nomi_x + nominrz_x + ha_x + hazu_x + ba_x + bakari_x + he_x + hou_x, + hoka_x + hodo_x + made_x + mama_x + mo1_x + mo2_x + motte_x + mono_x, + ya1_x + ya2_x + yara_x + yue_x + yo_x + yori_x + wa_x + wake_x, + wane_x + wayo_x + nn1_x + jya_x + tya_x + nagara2_x + wo_s_x, + ze_x + kke_x + n_si_x + deha_x, + + gotosi_x + saseru_x + zaru_x + zu_x + zunba_x + seru_o + souda_x + youtai_x, + denbun_x + ta_x + tai_x + tagaru_x + taru_x + da1_x + da2_x + daxtu_x, + darou_x + de_x + desi_x + desho_x + desu_x + na2_x + nara_x + nai_x, + nu_x + ne2_x + nn2_x + fuuda_x + besi_x + mai_x + masu_x + masure_x, + mase_x + mitaida_x + you_x + youda_x + rasii_x + rareru_x + reru_o + site_x, + + yougen_x + aru_x + ara_x + ari1_x + ari2_x + ari3_x + are1_x + are2_x, + arou_x + ii_x + itasi_x + itadaku_x + iru_x + eru_x + kakeru_x + kaneru_x, + karazu_x + gatai_x + gatida_x + kudasaru_x + gozai_x + sa1_x + si1_x + siro_x, + jyau_x + jimau_x + sugiru_x + subesi_x + suru_x + sure_x + se_x + seyo_x, + tamau_x + tayu_x + timau_x + dekiru_x + naru_x + nasai_x + nasaru_x + nikui_x, + yasui_x + yoi_x + yaru_x + ttarasii_x}; + +static u_char mizen2[] = { + wo_x + ttatte_x + ttara_x + tte1_x + tte2_x + ppanasi_x + ppoi_x + ue_x, + uti_x + oite_x + okeru_x + ori_x + ka1_x + ka2_x + kai_x + kasira_x, + katagata_x + kadouka_x + kana_x + kane_x + kamo_x + kara1_x + kara2_x + ga1_x, + ga2_x + gatera_x + kiri_x + kuseni_x + kurai_x + gurumi_x + kedo_x + koso_x, + koto_x + sa2_x + sae_x + si2_x + sika_x + sura_x + zutu_x + zo_x, + tame_x + dake_x + dano_x + darake_x + tuite_x + tuki_x + tutu_x + tumori_x, + te1_x + te2_x + teru_x + dearou_x + deru_x + to1_x + to2_x + totte_x, + toiu_x + toori_x + toki_x + tokoro_x + tote_x + tohaie_x + tomo_x + do_x, + doori_x + dokoro_x + dokoroka_x + domo_x + na1_x + naa_x + nagara_x + nazo_x, + nado_x + nari_x + nanka_x + nanzo_x + nante_x + ni1_x + ni2_x + ni3_x, + nite_x + nimo_x + ne1_x + nee_x + no1_x + no2_x + node_x + noni_x, + nomi_x + nominrz_x + ha_x + hazu_x + ba_x + bakari_x + he_x + hou_x, + hoka_x + hodo_x + made_x + mama_x + mo1_x + mo2_x + motte_x + mono_x, + ya1_x + ya2_x + yara_x + yue_x + yo_x + yori_x + wa_x + wake_x, + wane_x + wayo_x + nn1_x + jya_x + tya_x + nagara2_x + wo_s_x, + ze_x + kke_x + n_si_x + deha_x, + + gotosi_x + saseru_x + zaru_o + zu_o + zunba_o + seru_x + souda_x + youtai_x, + denbun_x + ta_x + tai_x + tagaru_x + taru_x + da1_x + da2_x + daxtu_x, + darou_x + de_x + desi_x + desho_x + desu_x + na2_x + nara_x + nai_x, + nu_o + ne2_o + nn2_o + fuuda_x + besi_x + mai_x + masu_x + masure_x, + mase_x + mitaida_x + you_x + youda_x + rasii_x + rareru_x + reru_x + site_x, + + yougen_x + aru_x + ara_x + ari1_x + ari2_x + ari3_x + are1_x + are2_x, + arou_x + ii_x + itasi_x + itadaku_x + iru_x + eru_x + kakeru_x + kaneru_x, + karazu_x + gatai_x + gatida_x + kudasaru_x + gozai_x + sa1_x + si1_x + siro_x, + jyau_x + jimau_x + sugiru_x + subesi_x + suru_x + sure_x + se_x + seyo_x, + tamau_x + tayu_x + timau_x + dekiru_x + naru_x + nasai_x + nasaru_x + nikui_x, + yasui_x + yoi_x + yaru_x + ttarasii_x}; + +static u_char mizen3[] = { + wo_x + ttatte_x + ttara_x + tte1_x + tte2_x + ppanasi_x + ppoi_x + ue_x, + uti_x + oite_x + okeru_x + ori_x + ka1_x + ka2_x + kai_x + kasira_x, + katagata_x + kadouka_x + kana_x + kane_x + kamo_x + kara1_x + kara2_x + ga1_x, + ga2_x + gatera_x + kiri_x + kuseni_x + kurai_x + gurumi_x + kedo_x + koso_x, + koto_x + sa2_x + sae_x + si2_x + sika_x + sura_x + zutu_x + zo_x, + tame_x + dake_x + dano_x + darake_x + tuite_x + tuki_x + tutu_x + tumori_x, + te1_x + te2_x + teru_x + dearou_x + deru_x + to1_x + to2_x + totte_x, + toiu_x + toori_x + toki_x + tokoro_x + tote_x + tohaie_x + tomo_x + do_x, + doori_x + dokoro_x + dokoroka_x + domo_x + na1_x + naa_x + nagara_x + nazo_x, + nado_x + nari_x + nanka_x + nanzo_x + nante_x + ni1_x + ni2_x + ni3_x, + nite_x + nimo_x + ne1_x + nee_x + no1_x + no2_x + node_x + noni_x, + nomi_x + nominrz_x + ha_x + hazu_x + ba_x + bakari_x + he_x + hou_x, + hoka_x + hodo_x + made_x + mama_x + mo1_x + mo2_x + motte_x + mono_x, + ya1_x + ya2_x + yara_x + yue_x + yo_x + yori_x + wa_x + wake_x, + wane_x + wayo_x + nn1_x + jya_x + tya_x + nagara2_x + wo_s_x, + ze_x + kke_x + n_si_x + deha_x, + + gotosi_x + saseru_x + zaru_o + zu_o + zunba_o + seru_x + souda_x + youtai_x, + denbun_x + ta_x + tai_x + tagaru_x + taru_x + da1_x + da2_x + daxtu_x, + darou_x + de_x + desi_x + desho_x + desu_x + na2_x + nara_x + nai_x, + nu_o + ne2_o + nn2_x + fuuda_x + besi_x + mai_x + masu_x + masure_x, + mase_x + mitaida_x + you_x + youda_x + rasii_x + rareru_o + reru_x + site_x, + + yougen_x + aru_x + ara_x + ari1_x + ari2_x + ari3_x + are1_x + are2_x, + arou_x + ii_x + itasi_x + itadaku_x + iru_x + eru_x + kakeru_x + kaneru_x, + karazu_x + gatai_x + gatida_x + kudasaru_x + gozai_x + sa1_x + si1_x + siro_x, + jyau_x + jimau_x + sugiru_x + subesi_x + suru_x + sure_x + se_x + seyo_x, + tamau_x + tayu_x + timau_x + dekiru_x + naru_x + nasai_x + nasaru_x + nikui_x, + yasui_x + yoi_x + yaru_x + ttarasii_x}; + +static u_char mizen4[] = { + wo_x + ttatte_x + ttara_x + tte1_x + tte2_x + ppanasi_x + ppoi_x + ue_x, + uti_x + oite_x + okeru_x + ori_x + ka1_x + ka2_x + kai_x + kasira_x, + katagata_x + kadouka_x + kana_x + kane_x + kamo_x + kara1_x + kara2_x + ga1_x, + ga2_x + gatera_x + kiri_x + kuseni_x + kurai_x + gurumi_x + kedo_x + koso_x, + koto_x + sa2_x + sae_x + si2_x + sika_x + sura_x + zutu_x + zo_x, + tame_x + dake_x + dano_x + darake_x + tuite_x + tuki_x + tutu_x + tumori_x, + te1_x + te2_x + teru_x + dearou_x + deru_x + to1_x + to2_x + totte_x, + toiu_x + toori_x + toki_x + tokoro_x + tote_x + tohaie_x + tomo_x + do_x, + doori_x + dokoro_x + dokoroka_x + domo_x + na1_x + naa_x + nagara_x + nazo_x, + nado_x + nari_x + nanka_x + nanzo_x + nante_x + ni1_x + ni2_x + ni3_x, + nite_x + nimo_x + ne1_x + nee_x + no1_x + no2_x + node_x + noni_x, + nomi_x + nominrz_x + ha_x + hazu_x + ba_x + bakari_x + he_x + hou_x, + hoka_x + hodo_x + made_x + mama_x + mo1_x + mo2_x + motte_x + mono_x, + ya1_x + ya2_x + yara_x + yue_x + yo_x + yori_x + wa_x + wake_x, + wane_x + wayo_x + nn1_x + jya_x + tya_x + nagara2_x + wo_s_x, + ze_x + kke_x + n_si_x + deha_x, + + gotosi_x + saseru_x + zaru_o + zu_o + zunba_o + seru_x + souda_x + youtai_x, + denbun_x + ta_x + tai_x + tagaru_x + taru_x + da1_x + da2_x + daxtu_x, + darou_x + de_x + desi_x + desho_x + desu_x + na2_x + nara_x + nai_o, + nu_o + ne2_o + nn2_o + fuuda_x + besi_x + mai_x + masu_x + masure_x, + mase_x + mitaida_x + you_x + youda_x + rasii_x + rareru_x + reru_x + site_x, + + yougen_x + aru_x + ara_x + ari1_x + ari2_x + ari3_x + are1_x + are2_x, + arou_x + ii_x + itasi_x + itadaku_x + iru_x + eru_x + kakeru_x + kaneru_x, + karazu_x + gatai_x + gatida_x + kudasaru_x + gozai_x + sa1_x + si1_x + siro_x, + jyau_x + jimau_x + sugiru_x + subesi_x + suru_x + sure_x + se_x + seyo_x, + tamau_x + tayu_x + timau_x + dekiru_x + naru_x + nasai_x + nasaru_x + nikui_x, + yasui_x + yoi_x + yaru_x + ttarasii_x}; + +static u_char mizen5[] = { + wo_x + ttatte_x + ttara_x + tte1_x + tte2_x + ppanasi_x + ppoi_x + ue_x, + uti_x + oite_x + okeru_x + ori_x + ka1_x + ka2_x + kai_x + kasira_x, + katagata_x + kadouka_x + kana_x + kane_x + kamo_x + kara1_x + kara2_x + ga1_x, + ga2_x + gatera_x + kiri_x + kuseni_x + kurai_x + gurumi_x + kedo_x + koso_x, + koto_x + sa2_x + sae_x + si2_x + sika_x + sura_x + zutu_x + zo_x, + tame_x + dake_x + dano_x + darake_x + tuite_x + tuki_x + tutu_x + tumori_x, + te1_x + te2_x + teru_x + dearou_x + deru_x + to1_x + to2_x + totte_x, + toiu_x + toori_x + toki_x + tokoro_x + tote_x + tohaie_x + tomo_x + do_x, + doori_x + dokoro_x + dokoroka_x + domo_x + na1_x + naa_x + nagara_x + nazo_x, + nado_x + nari_x + nanka_x + nanzo_x + nante_x + ni1_x + ni2_x + ni3_x, + nite_x + nimo_x + ne1_x + nee_x + no1_x + no2_x + node_x + noni_x, + nomi_x + nominrz_x + ha_x + hazu_x + ba_x + bakari_x + he_x + hou_x, + hoka_x + hodo_x + made_x + mama_x + mo1_x + mo2_x + motte_x + mono_x, + ya1_x + ya2_x + yara_x + yue_x + yo_x + yori_x + wa_x + wake_x, + wane_x + wayo_x + nn1_x + jya_x + tya_x + nagara2_x + wo_s_x, + ze_x + kke_x + n_si_x + deha_x, + + gotosi_x + saseru_x + zaru_o + zu_o + zunba_o + seru_o + souda_x + youtai_x, + denbun_x + ta_x + tai_x + tagaru_x + taru_x + da1_x + da2_x + daxtu_x, + darou_x + de_x + desi_x + desho_x + desu_x + na2_x + nara_x + nai_o, + nu_o + ne2_o + nn2_o + fuuda_x + besi_x + mai_x + masu_x + masure_x, + mase_x + mitaida_x + you_x + youda_x + rasii_x + rareru_x + reru_o + site_x, + + yougen_x + aru_x + ara_x + ari1_x + ari2_x + ari3_x + are1_x + are2_x, + arou_x + ii_x + itasi_x + itadaku_x + iru_x + eru_x + kakeru_x + kaneru_x, + karazu_x + gatai_x + gatida_x + kudasaru_x + gozai_x + sa1_x + si1_x + siro_x, + jyau_x + jimau_x + sugiru_x + subesi_x + suru_x + sure_x + se_x + seyo_x, + tamau_x + tayu_x + timau_x + dekiru_x + naru_x + nasai_x + nasaru_x + nikui_x, + yasui_x + yoi_x + yaru_x + ttarasii_x}; + +static u_char arou[] = { + wo_x + ttatte_o + ttara_o + tte1_o + tte2_x + ppanasi_x + ppoi_x + ue_x, + uti_x + oite_x + okeru_x + ori_x + ka1_x + ka2_o + kai_x + kasira_o, + katagata_x + kadouka_x + kana_o + kane_x + kamo_x + kara1_x + kara2_o + ga1_x, + ga2_o + gatera_x + kiri_x + kuseni_x + kurai_x + gurumi_x + kedo_o + koso_x, + koto_x + sa2_x + sae_x + si2_o + sika_x + sura_x + zutu_x + zo_x, + tame_x + dake_x + dano_o + darake_x + tuite_x + tuki_x + tutu_x + tumori_x, + te1_x + te2_x + teru_x + dearou_x + deru_x + to1_x + to2_o + totte_x, + toiu_o + toori_x + toki_x + tokoro_x + tote_o + tohaie_o + tomo_o + do_x, + doori_x + dokoro_o + dokoroka_o + domo_x + na1_o + naa_o + nagara_x + nazo_o, + nado_o + nari_x + nanka_o + nanzo_o + nante_o + ni1_x + ni2_x + ni3_o, + nite_x + nimo_x + ne1_o + nee_o + no1_x + no2_x + node_x + noni_x, + nomi_x + nominrz_x + ha_x + hazu_x + ba_x + bakari_x + he_x + hou_x, + hoka_x + hodo_x + made_x + mama_x + mo1_x + mo2_x + motte_x + mono_o, + ya1_x + ya2_x + yara_x + yue_x + yo_o + yori_x + wa_x + wake_x, + wane_x + wayo_x + nn1_x + jya_o + tya_x + nagara2_x + wo_s_x, + ze_o + kke_x + n_si_x + deha_o, + + gotosi_x + saseru_x + zaru_x + zu_x + zunba_x + seru_x + souda_x + youtai_x, + denbun_x + ta_x + tai_x + tagaru_x + taru_x + da1_x + da2_x + daxtu_x, + darou_x + de_x + desi_x + desho_x + desu_x + na2_x + nara_x + nai_x, + nu_x + ne2_x + nn2_x + fuuda_x + besi_x + mai_x + masu_x + masure_x, + mase_x + mitaida_x + you_x + youda_x + rasii_x + rareru_x + reru_x + site_x, + + yougen_x + aru_x + ara_x + ari1_x + ari2_x + ari3_x + are1_x + are2_x, + arou_x + ii_x + itasi_x + itadaku_x + iru_x + eru_x + kakeru_x + kaneru_x, + karazu_x + gatai_x + gatida_x + kudasaru_x + gozai_x + sa1_x + si1_x + siro_x, + jyau_x + jimau_x + sugiru_x + subesi_x + suru_x + sure_x + se_x + seyo_x, + tamau_x + tayu_x + timau_x + dekiru_x + naru_x + nasai_x + nasaru_x + nikui_x, + yasui_x + yoi_x + yaru_x + ttarasii_x}; + +static u_char you1[] = { + wo_x + ttatte_o + ttara_o + tte1_o + tte2_x + ppanasi_x + ppoi_x + ue_x, + uti_x + oite_x + okeru_x + ori_x + ka1_x + ka2_o + kai_x + kasira_o, + katagata_x + kadouka_x + kana_o + kane_x + kamo_x + kara1_x + kara2_x + ga1_x, + ga2_o + gatera_x + kiri_x + kuseni_x + kurai_x + gurumi_x + kedo_x + koso_x, + koto_x + sa2_x + sae_x + si2_x + sika_x + sura_x + zutu_x + zo_x, + tame_x + dake_x + dano_o + darake_x + tuite_x + tuki_x + tutu_x + tumori_x, + te1_x + te2_x + teru_x + dearou_x + deru_x + to1_x + to2_o + totte_x, + toiu_o + toori_x + toki_x + tokoro_x + tote_o + tohaie_o + tomo_o + do_x, + doori_x + dokoro_o + dokoroka_o + domo_x + na1_o + naa_o + nagara_x + nazo_o, + nado_o + nari_x + nanka_o + nanzo_o + nante_o + ni1_x + ni2_x + ni3_o, + nite_x + nimo_x + ne1_o + nee_o + no1_x + no2_x + node_x + noni_x, + nomi_x + nominrz_x + ha_x + hazu_x + ba_x + bakari_x + he_x + hou_x, + hoka_x + hodo_x + made_x + mama_x + mo1_x + mo2_x + motte_x + mono_o, + ya1_x + ya2_x + yara_x + yue_x + yo_o + yori_x + wa_x + wake_x, + wane_x + wayo_x + nn1_x + jya_o + tya_x + nagara2_x + wo_s_x, + ze_o + kke_x + n_si_x + deha_o, + + gotosi_x + saseru_x + zaru_x + zu_x + zunba_x + seru_x + souda_x + youtai_x, + denbun_x + ta_x + tai_x + tagaru_x + taru_x + da1_x + da2_x + daxtu_x, + darou_x + de_x + desi_x + desho_x + desu_x + na2_x + nara_x + nai_x, + nu_x + ne2_x + nn2_x + fuuda_x + besi_x + mai_x + masu_x + masure_x, + mase_x + mitaida_x + you_x + youda_x + rasii_x + rareru_x + reru_x + site_x, + + yougen_x + aru_x + ara_x + ari1_x + ari2_x + ari3_x + are1_x + are2_x, + arou_x + ii_x + itasi_x + itadaku_x + iru_x + eru_x + kakeru_x + kaneru_x, + karazu_x + gatai_x + gatida_x + kudasaru_x + gozai_x + sa1_x + si1_x + siro_x, + jyau_x + jimau_x + sugiru_x + subesi_x + suru_x + sure_x + se_x + seyo_x, + tamau_x + tayu_x + timau_x + dekiru_x + naru_x + nasai_x + nasaru_x + nikui_x, + yasui_x + yoi_x + yaru_x + ttarasii_x}; + +static u_char karou[] = { + wo_x + ttatte_o + ttara_x + tte1_o + tte2_x + ppanasi_x + ppoi_x + ue_x, + uti_x + oite_x + okeru_x + ori_x + ka1_x + ka2_o + kai_x + kasira_x, + katagata_x + kadouka_x + kana_x + kane_x + kamo_x + kara1_x + kara2_x + ga1_x, + ga2_o + gatera_x + kiri_x + kuseni_x + kurai_x + gurumi_x + kedo_x + koso_x, + koto_x + sa2_x + sae_x + si2_x + sika_x + sura_x + zutu_x + zo_x, + tame_x + dake_x + dano_o + darake_x + tuite_x + tuki_x + tutu_x + tumori_x, + te1_x + te2_x + teru_x + dearou_x + deru_x + to1_x + to2_o + totte_x, + toiu_o + toori_x + toki_x + tokoro_x + tote_o + tohaie_o + tomo_x + do_x, + doori_x + dokoro_x + dokoroka_o + domo_x + na1_o + naa_o + nagara_x + nazo_o, + nado_o + nari_x + nanka_o + nanzo_o + nante_o + ni1_x + ni2_x + ni3_x, + nite_x + nimo_x + ne1_x + nee_x + no1_x + no2_x + node_x + noni_x, + nomi_x + nominrz_x + ha_x + hazu_x + ba_x + bakari_x + he_x + hou_x, + hoka_x + hodo_x + made_x + mama_x + mo1_x + mo2_x + motte_x + mono_x, + ya1_x + ya2_x + yara_x + yue_x + yo_o + yori_x + wa_x + wake_x, + wane_x + wayo_x + nn1_x + jya_x + tya_x + nagara2_x + wo_s_x, + ze_x + kke_x + n_si_x + deha_o, + + gotosi_x + saseru_x + zaru_x + zu_x + zunba_x + seru_x + souda_x + youtai_x, + denbun_x + ta_x + tai_x + tagaru_x + taru_x + da1_x + da2_x + daxtu_x, + darou_x + de_x + desi_x + desho_x + desu_x + na2_x + nara_x + nai_x, + nu_x + ne2_x + nn2_x + fuuda_x + besi_x + mai_x + masu_x + masure_x, + mase_x + mitaida_x + you_x + youda_x + rasii_x + rareru_x + reru_x + site_x, + + yougen_x + aru_x + ara_x + ari1_x + ari2_x + ari3_x + are1_x + are2_x, + arou_x + ii_x + itasi_x + itadaku_x + iru_x + eru_x + kakeru_x + kaneru_x, + karazu_x + gatai_x + gatida_x + kudasaru_x + gozai_x + sa1_x + si1_x + siro_x, + jyau_x + jimau_x + sugiru_x + subesi_x + suru_x + sure_x + se_x + seyo_x, + tamau_x + tayu_x + timau_x + dekiru_x + naru_x + nasai_x + nasaru_x + nikui_x, + yasui_x + yoi_x + yaru_x + ttarasii_x}; + +static u_char darou[] = { + wo_x + ttatte_o + ttara_x + tte1_o + tte2_x + ppanasi_x + ppoi_x + ue_x, + uti_x + oite_x + okeru_x + ori_x + ka1_x + ka2_o + kai_x + kasira_x, + katagata_x + kadouka_x + kana_x + kane_o + kamo_x + kara1_x + kara2_o + ga1_x, + ga2_o + gatera_x + kiri_x + kuseni_x + kurai_x + gurumi_x + kedo_o + koso_x, + koto_x + sa2_x + sae_x + si2_o + sika_x + sura_x + zutu_x + zo_x, + tame_x + dake_x + dano_o + darake_x + tuite_x + tuki_x + tutu_x + tumori_x, + te1_x + te2_x + teru_x + dearou_x + deru_x + to1_x + to2_o + totte_x, + toiu_o + toori_x + toki_x + tokoro_x + tote_o + tohaie_o + tomo_x + do_x, + doori_x + dokoro_x + dokoroka_o + domo_x + na1_o + naa_o + nagara_x + nazo_o, + nado_o + nari_x + nanka_o + nanzo_o + nante_o + ni1_x + ni2_x + ni3_o, + nite_x + nimo_x + ne1_o + nee_x + no1_x + no2_x + node_x + noni_x, + nomi_x + nominrz_x + ha_x + hazu_x + ba_x + bakari_x + he_x + hou_x, + hoka_x + hodo_x + made_x + mama_x + mo1_x + mo2_x + motte_x + mono_x, + ya1_x + ya2_x + yara_x + yue_x + yo_o + yori_x + wa_x + wake_x, + wane_x + wayo_x + nn1_x + jya_x + tya_x + nagara2_x + wo_s_x, + ze_x + kke_x + n_si_x + deha_o, + + gotosi_x + saseru_x + zaru_x + zu_x + zunba_x + seru_x + souda_x + youtai_x, + denbun_x + ta_x + tai_x + tagaru_x + taru_x + da1_x + da2_x + daxtu_x, + darou_x + de_x + desi_x + desho_x + desu_x + na2_x + nara_x + nai_x, + nu_x + ne2_x + nn2_x + fuuda_x + besi_x + mai_x + masu_x + masure_x, + mase_x + mitaida_x + you_x + youda_x + rasii_x + rareru_x + reru_x + site_x, + + yougen_x + aru_x + ara_x + ari1_x + ari2_x + ari3_x + are1_x + are2_x, + arou_x + ii_x + itasi_x + itadaku_x + iru_x + eru_x + kakeru_x + kaneru_x, + karazu_x + gatai_x + gatida_x + kudasaru_x + gozai_x + sa1_x + si1_x + siro_x, + jyau_x + jimau_x + sugiru_x + subesi_x + suru_x + sure_x + se_x + seyo_x, + tamau_x + tayu_x + timau_x + dekiru_x + naru_x + nasai_x + nasaru_x + nikui_x, + yasui_x + yoi_x + yaru_x + ttarasii_x}; + +static u_char deshou[] = { + wo_x + ttatte_o + ttara_x + tte1_o + tte2_x + ppanasi_x + ppoi_x + ue_x, + uti_x + oite_x + okeru_x + ori_x + ka1_x + ka2_o + kai_x + kasira_x, + katagata_x + kadouka_x + kana_x + kane_x + kamo_x + kara1_x + kara2_o + ga1_x, + ga2_o + gatera_x + kiri_x + kuseni_x + kurai_x + gurumi_x + kedo_o + koso_x, + koto_x + sa2_x + sae_x + si2_o + sika_x + sura_x + zutu_x + zo_x, + tame_x + dake_x + dano_x + darake_x + tuite_x + tuki_x + tutu_x + tumori_x, + te1_x + te2_x + teru_x + dearou_x + deru_x + to1_x + to2_o + totte_x, + toiu_o + toori_x + toki_x + tokoro_x + tote_x + tohaie_o + tomo_o + do_x, + doori_x + dokoro_x + dokoroka_x + domo_x + na1_o + naa_o + nagara_x + nazo_x, + nado_x + nari_x + nanka_x + nanzo_x + nante_x + ni1_x + ni2_x + ni3_x, + nite_x + nimo_x + ne1_o + nee_o + no1_x + no2_x + node_x + noni_x, + nomi_x + nominrz_x + ha_x + hazu_x + ba_x + bakari_x + he_x + hou_x, + hoka_x + hodo_x + made_x + mama_x + mo1_x + mo2_x + motte_x + mono_x, + ya1_x + ya2_x + yara_x + yue_x + yo_o + yori_x + wa_x + wake_x, + wane_x + wayo_x + nn1_x + jya_x + tya_x + nagara2_x + wo_s_x, + ze_x + kke_x + n_si_x + deha_o, + + gotosi_x + saseru_x + zaru_x + zu_x + zunba_x + seru_x + souda_x + youtai_x, + denbun_x + ta_x + tai_x + tagaru_x + taru_x + da1_x + da2_x + daxtu_x, + darou_x + de_x + desi_x + desho_x + desu_x + na2_x + nara_x + nai_x, + nu_x + ne2_x + nn2_x + fuuda_x + besi_x + mai_x + masu_x + masure_x, + mase_x + mitaida_x + you_x + youda_x + rasii_x + rareru_x + reru_x + site_x, + + yougen_x + aru_x + ara_x + ari1_x + ari2_x + ari3_x + are1_x + are2_x, + arou_x + ii_x + itasi_x + itadaku_x + iru_x + eru_x + kakeru_x + kaneru_x, + karazu_x + gatai_x + gatida_x + kudasaru_x + gozai_x + sa1_x + si1_x + siro_x, + jyau_x + jimau_x + sugiru_x + subesi_x + suru_x + sure_x + se_x + seyo_x, + tamau_x + tayu_x + timau_x + dekiru_x + naru_x + nasai_x + nasaru_x + nikui_x, + yasui_x + yoi_x + yaru_x + ttarasii_x}; + +static u_char ko[] = { + wo_x + ttatte_x + ttara_x + tte1_x + tte2_x + ppanasi_x + ppoi_x + ue_x, + uti_x + oite_x + okeru_x + ori_x + ka1_x + ka2_x + kai_x + kasira_x, + katagata_x + kadouka_x + kana_x + kane_x + kamo_x + kara1_x + kara2_x + ga1_x, + ga2_x + gatera_x + kiri_x + kuseni_x + kurai_x + gurumi_x + kedo_x + koso_x, + koto_x + sa2_x + sae_x + si2_x + sika_x + sura_x + zutu_x + zo_x, + tame_x + dake_x + dano_x + darake_x + tuite_x + tuki_x + tutu_x + tumori_x, + te1_x + te2_x + teru_x + dearou_x + deru_x + to1_x + to2_x + totte_x, + toiu_x + toori_x + toki_x + tokoro_x + tote_x + tohaie_x + tomo_x + do_x, + doori_x + dokoro_x + dokoroka_x + domo_x + na1_x + naa_x + nagara_x + nazo_x, + nado_x + nari_x + nanka_x + nanzo_x + nante_x + ni1_x + ni2_x + ni3_x, + nite_x + nimo_x + ne1_x + nee_x + no1_x + no2_x + node_x + noni_x, + nomi_x + nominrz_x + ha_x + hazu_x + ba_x + bakari_x + he_x + hou_x, + hoka_x + hodo_x + made_x + mama_x + mo1_x + mo2_x + motte_x + mono_x, + ya1_x + ya2_x + yara_x + yue_x + yo_x + yori_x + wa_x + wake_x, + wane_x + wayo_x + nn1_x + jya_x + tya_x + nagara2_x + wo_s_x, + ze_x + kke_x + n_si_x + deha_x, + + gotosi_x + saseru_o + zaru_x + zu_x + zunba_o + seru_x + souda_x + youtai_x, + denbun_x + ta_x + tai_x + tagaru_x + taru_x + da1_x + da2_x + daxtu_x, + darou_x + de_x + desi_x + desho_x + desu_x + na2_x + nara_x + nai_o, + nu_o + ne2_o + nn2_o + fuuda_x + besi_x + mai_x + masu_x + masure_x, + mase_x + mitaida_x + you_o + youda_x + rasii_x + rareru_o + reru_o + site_x, + + yougen_x + aru_x + ara_x + ari1_x + ari2_x + ari3_x + are1_x + are2_x, + arou_x + ii_x + itasi_x + itadaku_x + iru_x + eru_x + kakeru_x + kaneru_x, + karazu_x + gatai_x + gatida_x + kudasaru_x + gozai_x + sa1_x + si1_x + siro_x, + jyau_x + jimau_x + sugiru_x + subesi_x + suru_x + sure_x + se_x + seyo_x, + tamau_x + tayu_x + timau_x + dekiru_x + naru_x + nasai_x + nasaru_x + nikui_x, + yasui_x + yoi_x + yaru_x + ttarasii_x}; + +static u_char bekara[] = { + wo_x + ttatte_x + ttara_x + tte1_x + tte2_x + ppanasi_x + ppoi_x + ue_x, + uti_x + oite_x + okeru_x + ori_x + ka1_x + ka2_x + kai_x + kasira_x, + katagata_x + kadouka_x + kana_x + kane_x + kamo_x + kara1_x + kara2_x + ga1_x, + ga2_x + gatera_x + kiri_x + kuseni_x + kurai_x + gurumi_x + kedo_x + koso_x, + koto_x + sa2_x + sae_x + si2_x + sika_x + sura_x + zutu_x + zo_x, + tame_x + dake_x + dano_x + darake_x + tuite_x + tuki_x + tutu_x + tumori_x, + te1_x + te2_x + teru_x + dearou_x + deru_x + to1_x + to2_x + totte_x, + toiu_x + toori_x + toki_x + tokoro_x + tote_x + tohaie_x + tomo_x + do_x, + doori_x + dokoro_x + dokoroka_x + domo_x + na1_x + naa_x + nagara_x + nazo_x, + nado_x + nari_x + nanka_x + nanzo_x + nante_x + ni1_x + ni2_x + ni3_x, + nite_x + nimo_x + ne1_x + nee_x + no1_x + no2_x + node_x + noni_x, + nomi_x + nominrz_x + ha_x + hazu_x + ba_x + bakari_x + he_x + hou_x, + hoka_x + hodo_x + made_x + mama_x + mo1_x + mo2_x + motte_x + mono_x, + ya1_x + ya2_x + yara_x + yue_x + yo_x + yori_x + wa_x + wake_x, + wane_x + wayo_x + nn1_x + jya_x + tya_x + nagara2_x + wo_s_x, + ze_x + kke_x + n_si_x + deha_x, + + gotosi_x + saseru_x + zaru_o + zu_o + zunba_o + seru_x + souda_x + youtai_x, + denbun_x + ta_x + tai_x + tagaru_x + taru_x + da1_x + da2_x + daxtu_x, + darou_x + de_x + desi_x + desho_x + desu_x + na2_x + nara_x + nai_x, + nu_x + ne2_x + nn2_x + fuuda_x + besi_x + mai_x + masu_x + masure_x, + mase_x + mitaida_x + you_x + youda_x + rasii_x + rareru_x + reru_x + site_x, + + yougen_x + aru_x + ara_x + ari1_x + ari2_x + ari3_x + are1_x + are2_x, + arou_x + ii_x + itasi_x + itadaku_x + iru_x + eru_x + kakeru_x + kaneru_x, + karazu_x + gatai_x + gatida_x + kudasaru_x + gozai_x + sa1_x + si1_x + siro_x, + jyau_x + jimau_x + sugiru_x + subesi_x + suru_x + sure_x + se_x + seyo_x, + tamau_x + tayu_x + timau_x + dekiru_x + naru_x + nasai_x + nasaru_x + nikui_x, + yasui_x + yoi_x + yaru_x + ttarasii_x}; + +static u_char tagara[] = { + wo_x + ttatte_x + ttara_x + tte1_x + tte2_x + ppanasi_x + ppoi_x + ue_x, + uti_x + oite_x + okeru_x + ori_x + ka1_x + ka2_x + kai_x + kasira_x, + katagata_x + kadouka_x + kana_x + kane_x + kamo_x + kara1_x + kara2_x + ga1_x, + ga2_x + gatera_x + kiri_x + kuseni_x + kurai_x + gurumi_x + kedo_x + koso_x, + koto_x + sa2_x + sae_x + si2_x + sika_x + sura_x + zutu_x + zo_x, + tame_x + dake_x + dano_x + darake_x + tuite_x + tuki_x + tutu_x + tumori_x, + te1_x + te2_x + teru_x + dearou_x + deru_x + to1_x + to2_x + totte_x, + toiu_x + toori_x + toki_x + tokoro_x + tote_x + tohaie_x + tomo_x + do_x, + doori_x + dokoro_x + dokoroka_x + domo_x + na1_x + naa_x + nagara_x + nazo_x, + nado_x + nari_x + nanka_x + nanzo_x + nante_x + ni1_x + ni2_x + ni3_x, + nite_x + nimo_x + ne1_x + nee_x + no1_x + no2_x + node_x + noni_x, + nomi_x + nominrz_x + ha_x + hazu_x + ba_x + bakari_x + he_x + hou_x, + hoka_x + hodo_x + made_x + mama_x + mo1_x + mo2_x + motte_x + mono_x, + ya1_x + ya2_x + yara_x + yue_x + yo_x + yori_x + wa_x + wake_x, + wane_x + wayo_x + nn1_x + jya_x + tya_x + nagara2_x + wo_s_x, + ze_x + kke_x + n_si_x + deha_x, + + gotosi_x + saseru_x + zaru_o + zu_o + zunba_x + seru_o + souda_x + youtai_x, + denbun_x + ta_x + tai_x + tagaru_x + taru_x + da1_x + da2_x + daxtu_x, + darou_x + de_x + desi_x + desho_x + desu_x + na2_x + nara_x + nai_o, + nu_o + ne2_o + nn2_o + fuuda_x + besi_x + mai_x + masu_x + masure_x, + mase_x + mitaida_x + you_x + youda_x + rasii_x + rareru_x + reru_x + site_x, + + yougen_x + aru_x + ara_x + ari1_x + ari2_x + ari3_x + are1_x + are2_x, + arou_x + ii_x + itasi_x + itadaku_x + iru_x + eru_x + kakeru_x + kaneru_x, + karazu_x + gatai_x + gatida_x + kudasaru_x + gozai_x + sa1_x + si1_x + siro_x, + jyau_x + jimau_x + sugiru_x + subesi_x + suru_x + sure_x + se_x + seyo_x, + tamau_x + tayu_x + timau_x + dekiru_x + naru_x + nasai_x + nasaru_x + nikui_x, + yasui_x + yoi_x + yaru_x + ttarasii_x}; + +static u_char si1[] = { + wo_x + ttatte_x + ttara_x + tte1_x + tte2_x + ppanasi_o + ppoi_x + ue_x, + uti_x + oite_x + okeru_x + ori_x + ka1_x + ka2_x + kai_x + kasira_x, + katagata_x + kadouka_x + kana_x + kane_x + kamo_x + kara1_x + kara2_x + ga1_x, + ga2_x + gatera_o + kiri_x + kuseni_x + kurai_x + gurumi_x + kedo_x + koso_x, + koto_x + sa2_x + sae_o + si2_x + sika_x + sura_x + zutu_x + zo_x, + tame_x + dake_x + dano_x + darake_x + tuite_x + tuki_x + tutu_o + tumori_x, + te1_x + te2_o + teru_o + dearou_x + deru_x + to1_x + to2_x + totte_x, + toiu_x + toori_x + toki_x + tokoro_x + tote_x + tohaie_x + tomo_x + do_x, + doori_x + dokoro_x + dokoroka_x + domo_x + na1_o + naa_x + nagara_x + nazo_x, + nado_x + nari_x + nanka_x + nanzo_x + nante_x + ni1_x + ni2_o + ni3_x, + nite_x + nimo_x + ne1_x + nee_x + no1_x + no2_x + node_x + noni_x, + nomi_x + nominrz_x + ha_x + hazu_x + ba_x + bakari_x + he_x + hou_x, + hoka_x + hodo_x + made_x + mama_x + mo1_x + mo2_x + motte_x + mono_x, + ya1_x + ya2_x + yara_x + yue_x + yo_x + yori_x + wa_x + wake_x, + wane_x + wayo_x + nn1_x + jya_x + tya_o + nagara2_o + wo_s_x, + ze_x + kke_x + n_si_x + deha_x, + + gotosi_x + saseru_x + zaru_x + zu_x + zunba_x + seru_x + souda_o + youtai_o, + denbun_x + ta_o + tai_o + tagaru_o + taru_x + da1_x + da2_x + daxtu_x, + darou_x + de_x + desi_x + desho_x + desu_x + na2_x + nara_x + nai_o, + nu_x + ne2_x + nn2_x + fuuda_x + besi_x + mai_o + masu_o + masure_o, + mase_x + mitaida_x + you_o + youda_x + rasii_x + rareru_x + reru_x + site_x, + + yougen_x + aru_x + ara_x + ari1_x + ari2_x + ari3_x + are1_x + are2_x, + arou_x + ii_o + itasi_x + itadaku_x + iru_x + eru_x + kakeru_o + kaneru_o, + karazu_x + gatai_o + gatida_o + kudasaru_x + gozai_x + sa1_x + si1_x + siro_x, + jyau_x + jimau_x + sugiru_x + subesi_x + suru_x + sure_x + se_x + seyo_x, + tamau_x + tayu_o + timau_o + dekiru_x + naru_x + nasai_o + nasaru_o + nikui_o, + yasui_o + yoi_x + yaru_x + ttarasii_x}; + +static u_char ji[] = { + wo_x + ttatte_x + ttara_x + tte1_x + tte2_x + ppanasi_o + ppoi_x + ue_x, + uti_x + oite_x + okeru_x + ori_x + ka1_x + ka2_x + kai_x + kasira_x, + katagata_x + kadouka_x + kana_x + kane_x + kamo_x + kara1_x + kara2_x + ga1_x, + ga2_x + gatera_o + kiri_x + kuseni_x + kurai_x + gurumi_x + kedo_x + koso_x, + koto_x + sa2_x + sae_o + si2_x + sika_x + sura_x + zutu_x + zo_x, + tame_x + dake_x + dano_x + darake_x + tuite_x + tuki_x + tutu_o + tumori_x, + te1_x + te2_o + teru_o + dearou_x + deru_x + to1_x + to2_x + totte_x, + toiu_x + toori_x + toki_x + tokoro_x + tote_x + tohaie_x + tomo_x + do_x, + doori_x + dokoro_x + dokoroka_x + domo_x + na1_o + naa_x + nagara_x + nazo_x, + nado_x + nari_x + nanka_x + nanzo_x + nante_x + ni1_x + ni2_o + ni3_x, + nite_x + nimo_x + ne1_x + nee_x + no1_x + no2_x + node_x + noni_x, + nomi_x + nominrz_x + ha_o + hazu_x + ba_x + bakari_x + he_x + hou_x, + hoka_x + hodo_x + made_x + mama_x + mo1_x + mo2_x + motte_x + mono_x, + ya1_x + ya2_x + yara_x + yue_x + yo_x + yori_x + wa_x + wake_x, + wane_x + wayo_x + nn1_x + jya_x + tya_o + nagara2_o + wo_s_x, + ze_x + kke_x + n_si_x + deha_x, + + gotosi_x + saseru_o + zaru_o + zu_o + zunba_o + seru_x + souda_o + youtai_o, + denbun_x + ta_o + tai_o + tagaru_o + taru_x + da1_x + da2_x + daxtu_x, + darou_x + de_x + desi_x + desho_x + desu_x + na2_x + nara_x + nai_o, + nu_o + ne2_o + nn2_x + fuuda_x + besi_x + mai_o + masu_o + masure_o, + mase_x + mitaida_x + you_x + youda_x + rasii_x + rareru_o + reru_x + site_x, + + yougen_x + aru_x + ara_x + ari1_x + ari2_x + ari3_x + are1_x + are2_x, + arou_x + ii_o + itasi_x + itadaku_x + iru_x + eru_x + kakeru_o + kaneru_o, + karazu_x + gatai_o + gatida_o + kudasaru_x + gozai_x + sa1_x + si1_x + siro_x, + jyau_x + jimau_x + sugiru_x + subesi_x + suru_x + sure_x + se_x + seyo_x, + tamau_x + tayu_o + timau_x + dekiru_x + naru_x + nasai_o + nasaru_o + nikui_o, + yasui_o + yoi_o + yaru_x + ttarasii_x}; + +static u_char age[] = { + wo_x + ttatte_x + ttara_x + tte1_x + tte2_x + ppanasi_x + ppoi_x + ue_x, + uti_x + oite_x + okeru_x + ori_x + ka1_x + ka2_x + kai_x + kasira_x, + katagata_x + kadouka_x + kana_x + kane_x + kamo_x + kara1_x + kara2_x + ga1_x, + ga2_x + gatera_x + kiri_x + kuseni_x + kurai_x + gurumi_x + kedo_x + koso_x, + koto_x + sa2_x + sae_o + si2_x + sika_x + sura_o + zutu_x + zo_x, + tame_x + dake_x + dano_x + darake_x + tuite_x + tuki_x + tutu_o + tumori_x, + te1_x + te2_o + teru_o + dearou_x + deru_x + to1_x + to2_x + totte_x, + toiu_x + toori_x + toki_x + tokoro_x + tote_x + tohaie_x + tomo_x + do_x, + doori_x + dokoro_x + dokoroka_x + domo_x + na1_o + naa_x + nagara_x + nazo_x, + nado_x + nari_x + nanka_x + nanzo_x + nante_x + ni1_x + ni2_o + ni3_x, + nite_x + nimo_x + ne1_x + nee_x + no1_x + no2_x + node_x + noni_x, + nomi_x + nominrz_x + ha_o + hazu_x + ba_x + bakari_x + he_x + hou_x, + hoka_x + hodo_x + made_x + mama_x + mo1_x + mo2_o + motte_x + mono_x, + ya1_x + ya2_x + yara_x + yue_x + yo_x + yori_x + wa_x + wake_x, + wane_x + wayo_x + nn1_x + jya_x + tya_o + nagara2_x + wo_s_x, + ze_x + kke_x + n_si_x + deha_x, + + gotosi_x + saseru_x + zaru_x + zu_o + zunba_o + seru_x + souda_o + youtai_o, + denbun_x + ta_o + tai_o + tagaru_o + taru_x + da1_x + da2_x + daxtu_x, + darou_x + de_x + desi_x + desho_x + desu_x + na2_x + nara_x + nai_o, + nu_o + ne2_o + nn2_o + fuuda_x + besi_x + mai_o + masu_o + masure_o, + mase_x + mitaida_x + you_o + youda_x + rasii_x + rareru_o + reru_x + site_x, + + yougen_x + aru_x + ara_x + ari1_x + ari2_x + ari3_x + are1_x + are2_x, + arou_x + ii_x + itasi_x + itadaku_x + iru_x + eru_x + kakeru_x + kaneru_x, + karazu_x + gatai_x + gatida_x + kudasaru_x + gozai_x + sa1_x + si1_x + siro_x, + jyau_x + jimau_x + sugiru_x + subesi_x + suru_x + sure_x + se_x + seyo_x, + tamau_x + tayu_o + timau_o + dekiru_x + naru_x + nasai_o + nasaru_x + nikui_o, + yasui_o + yoi_x + yaru_x + ttarasii_x}; + +static u_char i[] = { + wo_x + ttatte_x + ttara_x + tte1_x + tte2_x + ppanasi_x + ppoi_x + ue_x, + uti_x + oite_x + okeru_x + ori_x + ka1_x + ka2_x + kai_x + kasira_x, + katagata_x + kadouka_x + kana_x + kane_x + kamo_x + kara1_x + kara2_x + ga1_x, + ga2_x + gatera_x + kiri_x + kuseni_x + kurai_x + gurumi_x + kedo_x + koso_x, + koto_x + sa2_x + sae_x + si2_x + sika_x + sura_x + zutu_x + zo_x, + tame_x + dake_x + dano_x + darake_x + tuite_x + tuki_x + tutu_o + tumori_x, + te1_x + te2_o + teru_x + dearou_x + deru_x + to1_x + to2_x + totte_x, + toiu_x + toori_x + toki_x + tokoro_x + tote_x + tohaie_x + tomo_x + do_x, + doori_x + dokoro_x + dokoroka_x + domo_x + na1_x + naa_x + nagara_x + nazo_x, + nado_x + nari_x + nanka_x + nanzo_x + nante_x + ni1_x + ni2_x + ni3_x, + nite_x + nimo_x + ne1_x + nee_x + no1_x + no2_x + node_x + noni_x, + nomi_x + nominrz_x + ha_x + hazu_x + ba_x + bakari_x + he_x + hou_x, + hoka_x + hodo_x + made_x + mama_x + mo1_x + mo2_x + motte_x + mono_x, + ya1_x + ya2_x + yara_x + yue_x + yo_x + yori_x + wa_x + wake_x, + wane_x + wayo_x + nn1_x + jya_x + tya_o + nagara2_o + wo_s_x, + ze_x + kke_x + n_si_x + deha_x, + + gotosi_x + saseru_o + zaru_o + zu_o + zunba_x + seru_x + souda_o + youtai_o, + denbun_x + ta_o + tai_o + tagaru_o + taru_x + da1_x + da2_x + daxtu_x, + darou_x + de_x + desi_x + desho_x + desu_x + na2_x + nara_x + nai_o, + nu_o + ne2_o + nn2_x + fuuda_x + besi_x + mai_o + masu_o + masure_o, + mase_x + mitaida_x + you_o + youda_x + rasii_x + rareru_o + reru_x + site_x, + + yougen_x + aru_x + ara_x + ari1_x + ari2_x + ari3_x + are1_x + are2_x, + arou_x + ii_x + itasi_x + itadaku_x + iru_x + eru_x + kakeru_x + kaneru_x, + karazu_x + gatai_x + gatida_x + kudasaru_x + gozai_x + sa1_x + si1_x + siro_x, + jyau_x + jimau_x + sugiru_x + subesi_x + suru_x + sure_x + se_x + seyo_x, + tamau_x + tayu_x + timau_x + dekiru_x + naru_x + nasai_o + nasaru_o + nikui_x, + yasui_x + yoi_x + yaru_x + ttarasii_x}; + +static u_char e[] = { + wo_x + ttatte_x + ttara_x + tte1_x + tte2_x + ppanasi_x + ppoi_x + ue_x, + uti_x + oite_x + okeru_x + ori_x + ka1_x + ka2_x + kai_x + kasira_x, + katagata_x + kadouka_x + kana_x + kane_x + kamo_x + kara1_x + kara2_x + ga1_x, + ga2_x + gatera_x + kiri_x + kuseni_x + kurai_x + gurumi_x + kedo_x + koso_x, + koto_x + sa2_x + sae_x + si2_x + sika_x + sura_x + zutu_x + zo_x, + tame_x + dake_x + dano_x + darake_x + tuite_x + tuki_x + tutu_x + tumori_x, + te1_x + te2_o + teru_x + dearou_x + deru_x + to1_x + to2_x + totte_x, + toiu_x + toori_x + toki_x + tokoro_x + tote_x + tohaie_x + tomo_x + do_x, + doori_x + dokoro_x + dokoroka_x + domo_x + na1_x + naa_x + nagara_x + nazo_x, + nado_x + nari_x + nanka_x + nanzo_x + nante_x + ni1_x + ni2_x + ni3_x, + nite_x + nimo_x + ne1_x + nee_x + no1_x + no2_x + node_x + noni_x, + nomi_x + nominrz_x + ha_x + hazu_x + ba_x + bakari_x + he_x + hou_x, + hoka_x + hodo_x + made_x + mama_x + mo1_x + mo2_x + motte_x + mono_x, + ya1_x + ya2_x + yara_x + yue_x + yo_x + yori_x + wa_x + wake_x, + wane_x + wayo_x + nn1_x + jya_x + tya_x + nagara2_x + wo_s_x, + ze_x + kke_x + n_si_x + deha_x, + + gotosi_x + saseru_x + zaru_x + zu_o + zunba_x + seru_x + souda_o + youtai_o, + denbun_x + ta_o + tai_x + tagaru_x + taru_x + da1_x + da2_x + daxtu_x, + darou_x + de_x + desi_x + desho_x + desu_x + na2_x + nara_x + nai_o, + nu_o + ne2_o + nn2_x + fuuda_x + besi_x + mai_x + masu_x + masure_x, + mase_x + mitaida_x + you_o + youda_x + rasii_x + rareru_x + reru_x + site_x, + + yougen_x + aru_x + ara_x + ari1_x + ari2_x + ari3_x + are1_x + are2_x, + arou_x + ii_x + itasi_x + itadaku_x + iru_x + eru_x + kakeru_x + kaneru_x, + karazu_x + gatai_x + gatida_x + kudasaru_x + gozai_x + sa1_x + si1_x + siro_x, + jyau_x + jimau_x + sugiru_x + subesi_x + suru_x + sure_x + se_x + seyo_x, + tamau_x + tayu_x + timau_x + dekiru_x + naru_x + nasai_x + nasaru_x + nikui_x, + yasui_x + yoi_x + yaru_x + ttarasii_x}; + +static u_char kake[] = { + wo_x + ttatte_x + ttara_x + tte1_x + tte2_x + ppanasi_x + ppoi_x + ue_x, + uti_x + oite_x + okeru_x + ori_x + ka1_x + ka2_x + kai_x + kasira_x, + katagata_x + kadouka_x + kana_x + kane_x + kamo_x + kara1_x + kara2_x + ga1_x, + ga2_x + gatera_x + kiri_x + kuseni_x + kurai_x + gurumi_x + kedo_x + koso_x, + koto_x + sa2_x + sae_x + si2_x + sika_x + sura_x + zutu_x + zo_x, + tame_x + dake_x + dano_x + darake_x + tuite_x + tuki_x + tutu_o + tumori_x, + te1_x + te2_o + teru_o + dearou_x + deru_x + to1_x + to2_x + totte_x, + toiu_x + toori_x + toki_x + tokoro_x + tote_x + tohaie_x + tomo_x + do_x, + doori_x + dokoro_x + dokoroka_x + domo_x + na1_x + naa_x + nagara_x + nazo_x, + nado_x + nari_x + nanka_x + nanzo_x + nante_x + ni1_x + ni2_x + ni3_x, + nite_x + nimo_x + ne1_x + nee_x + no1_o + no2_x + node_x + noni_x, + nomi_x + nominrz_x + ha_x + hazu_x + ba_x + bakari_x + he_x + hou_x, + hoka_x + hodo_x + made_x + mama_x + mo1_x + mo2_o + motte_x + mono_x, + ya1_x + ya2_x + yara_x + yue_x + yo_x + yori_x + wa_x + wake_x, + wane_x + wayo_x + nn1_x + jya_o + tya_o + nagara2_o + wo_s_x, + ze_x + kke_x + n_si_x + deha_x, + + gotosi_x + saseru_x + zaru_x + zu_o + zunba_x + seru_x + souda_x + youtai_x, + denbun_x + ta_o + tai_x + tagaru_x + taru_x + da1_x + da2_x + daxtu_x, + darou_x + de_o + desi_o + desho_o + desu_o + na2_o + nara_o + nai_o, + nu_o + ne2_o + nn2_o + fuuda_x + besi_x + mai_x + masu_o + masure_o, + mase_x + mitaida_x + you_o + youda_x + rasii_x + rareru_x + reru_x + site_x, + + yougen_x + aru_x + ara_x + ari1_x + ari2_x + ari3_x + are1_x + are2_x, + arou_x + ii_x + itasi_x + itadaku_x + iru_x + eru_x + kakeru_x + kaneru_x, + karazu_x + gatai_x + gatida_x + kudasaru_x + gozai_x + sa1_x + si1_x + siro_x, + jyau_x + jimau_x + sugiru_x + subesi_x + suru_x + sure_x + se_x + seyo_x, + tamau_x + tayu_o + timau_o + dekiru_x + naru_x + nasai_o + nasaru_x + nikui_x, + yasui_x + yoi_x + yaru_x + ttarasii_x}; + +static u_char kane2[] = { + wo_x + ttatte_x + ttara_x + tte1_x + tte2_x + ppanasi_x + ppoi_x + ue_x, + uti_x + oite_x + okeru_x + ori_x + ka1_x + ka2_x + kai_x + kasira_x, + katagata_x + kadouka_x + kana_x + kane_x + kamo_x + kara1_x + kara2_x + ga1_x, + ga2_x + gatera_x + kiri_x + kuseni_x + kurai_x + gurumi_x + kedo_x + koso_x, + koto_x + sa2_x + sae_x + si2_x + sika_x + sura_x + zutu_x + zo_x, + tame_x + dake_x + dano_x + darake_x + tuite_x + tuki_x + tutu_o + tumori_x, + te1_x + te2_o + teru_o + dearou_x + deru_x + to1_x + to2_x + totte_x, + toiu_x + toori_x + toki_x + tokoro_x + tote_x + tohaie_x + tomo_x + do_x, + doori_x + dokoro_x + dokoroka_x + domo_x + na1_x + naa_x + nagara_x + nazo_x, + nado_x + nari_x + nanka_x + nanzo_x + nante_x + ni1_x + ni2_x + ni3_x, + nite_x + nimo_x + ne1_x + nee_x + no1_x + no2_x + node_x + noni_x, + nomi_x + nominrz_x + ha_x + hazu_x + ba_x + bakari_x + he_x + hou_x, + hoka_x + hodo_x + made_x + mama_x + mo1_x + mo2_x + motte_x + mono_x, + ya1_x + ya2_x + yara_x + yue_x + yo_x + yori_x + wa_x + wake_x, + wane_x + wayo_x + nn1_x + jya_x + tya_o + nagara2_o + wo_s_x, + ze_x + kke_x + n_si_x + deha_x, + + gotosi_x + saseru_x + zaru_x + zu_o + zunba_x + seru_x + souda_x + youtai_x, + denbun_x + ta_o + tai_x + tagaru_x + taru_x + da1_x + da2_x + daxtu_x, + darou_x + de_x + desi_x + desho_x + desu_x + na2_x + nara_x + nai_o, + nu_x + ne2_x + nn2_x + fuuda_x + besi_x + mai_x + masu_o + masure_o, + mase_x + mitaida_x + you_o + youda_x + rasii_x + rareru_x + reru_x + site_x, + + yougen_x + aru_x + ara_x + ari1_x + ari2_x + ari3_x + are1_x + are2_x, + arou_x + ii_x + itasi_x + itadaku_x + iru_x + eru_x + kakeru_x + kaneru_x, + karazu_x + gatai_x + gatida_x + kudasaru_x + gozai_x + sa1_x + si1_x + siro_x, + jyau_x + jimau_x + sugiru_x + subesi_x + suru_x + sure_x + se_x + seyo_x, + tamau_x + tayu_o + timau_o + dekiru_x + naru_x + nasai_x + nasaru_x + nikui_x, + yasui_x + yoi_x + yaru_x + ttarasii_x}; + +static u_char sugi[] = { + wo_x + ttatte_x + ttara_x + tte1_x + tte2_x + ppanasi_x + ppoi_x + ue_x, + uti_x + oite_x + okeru_x + ori_x + ka1_x + ka2_x + kai_x + kasira_x, + katagata_x + kadouka_x + kana_x + kane_x + kamo_x + kara1_x + kara2_x + ga1_x, + ga2_x + gatera_x + kiri_x + kuseni_x + kurai_x + gurumi_x + kedo_x + koso_x, + koto_x + sa2_x + sae_x + si2_x + sika_x + sura_x + zutu_x + zo_x, + tame_x + dake_x + dano_x + darake_x + tuite_x + tuki_x + tutu_x + tumori_x, + te1_o + te2_x + teru_x + dearou_x + deru_x + to1_x + to2_x + totte_x, + toiu_x + toori_x + toki_x + tokoro_x + tote_x + tohaie_x + tomo_x + do_x, + doori_x + dokoro_x + dokoroka_x + domo_x + na1_x + naa_x + nagara_x + nazo_x, + nado_x + nari_x + nanka_x + nanzo_x + nante_x + ni1_x + ni2_x + ni3_x, + nite_x + nimo_x + ne1_x + nee_x + no1_x + no2_x + node_x + noni_x, + nomi_x + nominrz_x + ha_x + hazu_x + ba_x + bakari_x + he_x + hou_x, + hoka_x + hodo_x + made_x + mama_x + mo1_o + mo2_x + motte_x + mono_x, + ya1_x + ya2_x + yara_x + yue_x + yo_x + yori_x + wa_x + wake_x, + wane_x + wayo_x + nn1_x + jya_x + tya_o + nagara2_x + wo_s_x, + ze_x + kke_x + n_si_x + deha_x, + + gotosi_x + saseru_x + zaru_o + zu_o + zunba_o + seru_x + souda_x + youtai_x, + denbun_x + ta_o + tai_x + tagaru_x + taru_x + da1_x + da2_x + daxtu_x, + darou_x + de_x + desi_x + desho_x + desu_x + na2_x + nara_x + nai_o, + nu_o + ne2_o + nn2_x + fuuda_x + besi_x + mai_o + masu_o + masure_o, + mase_x + mitaida_x + you_x + youda_x + rasii_x + rareru_x + reru_x + site_x, + + yougen_x + aru_x + ara_x + ari1_x + ari2_x + ari3_x + are1_x + are2_x, + arou_x + ii_x + itasi_x + itadaku_x + iru_x + eru_x + kakeru_x + kaneru_x, + karazu_x + gatai_x + gatida_x + kudasaru_x + gozai_x + sa1_x + si1_x + siro_x, + jyau_x + jimau_x + sugiru_x + subesi_x + suru_x + sure_x + se_x + seyo_x, + tamau_x + tayu_o + timau_o + dekiru_x + naru_x + nasai_x + nasaru_x + nikui_x, + yasui_x + yoi_x + yaru_x + ttarasii_x}; + +static u_char deki[] = { + wo_x + ttatte_x + ttara_x + tte1_x + tte2_x + ppanasi_x + ppoi_x + ue_x, + uti_x + oite_x + okeru_x + ori_x + ka1_x + ka2_x + kai_x + kasira_x, + katagata_x + kadouka_x + kana_x + kane_x + kamo_x + kara1_x + kara2_x + ga1_x, + ga2_x + gatera_x + kiri_x + kuseni_x + kurai_x + gurumi_x + kedo_x + koso_x, + koto_x + sa2_x + sae_x + si2_x + sika_x + sura_x + zutu_x + zo_x, + tame_x + dake_x + dano_x + darake_x + tuite_x + tuki_x + tutu_o + tumori_x, + te1_x + te2_o + teru_o + dearou_x + deru_x + to1_x + to2_x + totte_x, + toiu_x + toori_x + toki_x + tokoro_x + tote_x + tohaie_x + tomo_x + do_x, + doori_x + dokoro_x + dokoroka_x + domo_x + na1_x + naa_x + nagara_x + nazo_x, + nado_x + nari_x + nanka_x + nanzo_x + nante_x + ni1_x + ni2_x + ni3_x, + nite_x + nimo_x + ne1_x + nee_x + no1_x + no2_x + node_x + noni_x, + nomi_x + nominrz_x + ha_x + hazu_x + ba_x + bakari_x + he_x + hou_x, + hoka_x + hodo_x + made_x + mama_x + mo1_x + mo2_x + motte_x + mono_x, + ya1_x + ya2_x + yara_x + yue_x + yo_x + yori_x + wa_x + wake_x, + wane_x + wayo_x + nn1_x + jya_x + tya_o + nagara2_o + wo_s_x, + ze_x + kke_x + n_si_x + deha_x, + + gotosi_x + saseru_x + zaru_x + zu_o + zunba_o + seru_x + souda_o + youtai_o, + denbun_x + ta_o + tai_x + tagaru_x + taru_x + da1_x + da2_x + daxtu_x, + darou_x + de_x + desi_x + desho_x + desu_x + na2_x + nara_x + nai_o, + nu_o + ne2_o + nn2_o + fuuda_x + besi_x + mai_o + masu_o + masure_o, + mase_x + mitaida_x + you_x + youda_x + rasii_x + rareru_x + reru_x + site_x, + + yougen_x + aru_x + ara_x + ari1_x + ari2_x + ari3_x + are1_x + are2_x, + arou_x + ii_x + itasi_x + itadaku_x + iru_x + eru_x + kakeru_x + kaneru_x, + karazu_x + gatai_x + gatida_x + kudasaru_x + gozai_x + sa1_x + si1_x + siro_x, + jyau_x + jimau_x + sugiru_x + subesi_x + suru_x + sure_x + se_x + seyo_x, + tamau_x + tayu_o + timau_o + dekiru_x + naru_x + nasai_x + nasaru_x + nikui_x, + yasui_x + yoi_x + yaru_x + ttarasii_x}; + +static u_char mi[] = { + wo_x + ttatte_x + ttara_x + tte1_x + tte2_x + ppanasi_x + ppoi_x + ue_x, + uti_x + oite_x + okeru_x + ori_x + ka1_x + ka2_x + kai_x + kasira_x, + katagata_x + kadouka_x + kana_x + kane_x + kamo_x + kara1_x + kara2_x + ga1_x, + ga2_x + gatera_x + kiri_x + kuseni_x + kurai_x + gurumi_x + kedo_x + koso_x, + koto_x + sa2_x + sae_x + si2_x + sika_x + sura_x + zutu_x + zo_x, + tame_x + dake_x + dano_x + darake_x + tuite_x + tuki_x + tutu_o + tumori_x, + te1_x + te2_o + teru_o + dearou_x + deru_x + to1_x + to2_x + totte_x, + toiu_x + toori_x + toki_x + tokoro_x + tote_x + tohaie_x + tomo_x + do_x, + doori_x + dokoro_x + dokoroka_x + domo_x + na1_o + naa_x + nagara_x + nazo_x, + nado_x + nari_x + nanka_x + nanzo_x + nante_x + ni1_x + ni2_x + ni3_x, + nite_x + nimo_x + ne1_x + nee_x + no1_x + no2_x + node_x + noni_x, + nomi_x + nominrz_x + ha_x + hazu_x + ba_x + bakari_x + he_x + hou_x, + hoka_x + hodo_x + made_x + mama_x + mo1_x + mo2_x + motte_x + mono_x, + ya1_x + ya2_x + yara_x + yue_x + yo_o + yori_x + wa_x + wake_x, + wane_x + wayo_x + nn1_x + jya_x + tya_o + nagara2_o + wo_s_x, + ze_x + kke_x + n_si_x + deha_x, + + gotosi_x + saseru_o + zaru_x + zu_o + zunba_x + seru_x + souda_x + youtai_x, + denbun_x + ta_o + tai_o + tagaru_o + taru_x + da1_x + da2_x + daxtu_x, + darou_x + de_x + desi_x + desho_x + desu_x + na2_x + nara_x + nai_o, + nu_o + ne2_o + nn2_o + fuuda_x + besi_x + mai_o + masu_o + masure_o, + mase_x + mitaida_x + you_o + youda_x + rasii_x + rareru_o + reru_x + site_x, + + yougen_x + aru_x + ara_x + ari1_x + ari2_x + ari3_x + are1_x + are2_x, + arou_x + ii_x + itasi_x + itadaku_x + iru_x + eru_x + kakeru_x + kaneru_x, + karazu_x + gatai_x + gatida_x + kudasaru_x + gozai_x + sa1_x + si1_x + siro_x, + jyau_x + jimau_x + sugiru_x + subesi_x + suru_x + sure_x + se_x + seyo_x, + tamau_x + tayu_o + timau_o + dekiru_x + naru_x + nasai_o + nasaru_x + nikui_x, + yasui_x + yoi_x + yaru_x + ttarasii_x}; + +static u_char sase[] = { + wo_x + ttatte_x + ttara_x + tte1_x + tte2_x + ppanasi_x + ppoi_x + ue_x, + uti_x + oite_x + okeru_x + ori_x + ka1_x + ka2_x + kai_x + kasira_x, + katagata_x + kadouka_x + kana_x + kane_x + kamo_x + kara1_x + kara2_x + ga1_x, + ga2_x + gatera_x + kiri_x + kuseni_x + kurai_x + gurumi_x + kedo_x + koso_x, + koto_x + sa2_x + sae_x + si2_x + sika_x + sura_x + zutu_x + zo_x, + tame_x + dake_x + dano_x + darake_x + tuite_x + tuki_x + tutu_o + tumori_x, + te1_x + te2_o + teru_o + dearou_x + deru_x + to1_x + to2_x + totte_x, + toiu_x + toori_x + toki_x + tokoro_x + tote_x + tohaie_x + tomo_x + do_x, + doori_x + dokoro_x + dokoroka_x + domo_x + na1_x + naa_x + nagara_x + nazo_x, + nado_x + nari_x + nanka_x + nanzo_x + nante_x + ni1_x + ni2_o + ni3_x, + nite_x + nimo_x + ne1_x + nee_x + no1_x + no2_x + node_x + noni_x, + nomi_x + nominrz_x + ha_x + hazu_x + ba_x + bakari_x + he_x + hou_x, + hoka_x + hodo_x + made_x + mama_x + mo1_x + mo2_x + motte_x + mono_x, + ya1_x + ya2_x + yara_x + yue_x + yo_x + yori_x + wa_x + wake_x, + wane_x + wayo_x + nn1_x + jya_x + tya_o + nagara2_o + wo_s_x, + ze_x + kke_x + n_si_x + deha_x, + + gotosi_x + saseru_x + zaru_o + zu_o + zunba_o + seru_x + souda_o + youtai_o, + denbun_x + ta_o + tai_o + tagaru_o + taru_x + da1_x + da2_x + daxtu_x, + darou_x + de_x + desi_x + desho_x + desu_x + na2_x + nara_x + nai_o, + nu_o + ne2_o + nn2_o + fuuda_x + besi_x + mai_o + masu_o + masure_o, + mase_x + mitaida_x + you_o + youda_x + rasii_x + rareru_o + reru_x + site_x, + + yougen_x + aru_x + ara_x + ari1_x + ari2_x + ari3_x + are1_x + are2_x, + arou_x + ii_x + itasi_x + itadaku_x + iru_x + eru_x + kakeru_x + kaneru_x, + karazu_x + gatai_x + gatida_x + kudasaru_x + gozai_x + sa1_x + si1_x + siro_x, + jyau_x + jimau_x + sugiru_x + subesi_x + suru_x + sure_x + se_x + seyo_x, + tamau_x + tayu_o + timau_o + dekiru_x + naru_x + nasai_o + nasaru_x + nikui_x, + yasui_x + yoi_x + yaru_x + ttarasii_x}; + +static u_char rare[] = { + wo_x + ttatte_x + ttara_x + tte1_x + tte2_x + ppanasi_x + ppoi_x + ue_x, + uti_x + oite_x + okeru_x + ori_x + ka1_x + ka2_x + kai_x + kasira_x, + katagata_x + kadouka_x + kana_x + kane_x + kamo_x + kara1_x + kara2_x + ga1_x, + ga2_x + gatera_x + kiri_x + kuseni_x + kurai_x + gurumi_x + kedo_x + koso_x, + koto_x + sa2_x + sae_o + si2_x + sika_x + sura_x + zutu_x + zo_x, + tame_x + dake_x + dano_x + darake_x + tuite_x + tuki_x + tutu_o + tumori_x, + te1_x + te2_o + teru_o + dearou_x + deru_x + to1_x + to2_x + totte_x, + toiu_x + toori_x + toki_x + tokoro_x + tote_x + tohaie_x + tomo_x + do_x, + doori_x + dokoro_x + dokoroka_x + domo_x + na1_x + naa_x + nagara_x + nazo_o, + nado_o + nari_x + nanka_o + nanzo_o + nante_o + ni1_x + ni2_x + ni3_x, + nite_x + nimo_x + ne1_x + nee_x + no1_x + no2_x + node_x + noni_x, + nomi_x + nominrz_x + ha_x + hazu_x + ba_x + bakari_x + he_x + hou_x, + hoka_x + hodo_x + made_x + mama_x + mo1_x + mo2_o + motte_x + mono_x, + ya1_x + ya2_o + yara_x + yue_x + yo_x + yori_x + wa_x + wake_x, + wane_x + wayo_x + nn1_x + jya_x + tya_o + nagara2_o + wo_s_x, + ze_x + kke_x + n_si_x + deha_x, + + gotosi_x + saseru_x + zaru_o + zu_o + zunba_o + seru_x + souda_o + youtai_o, + denbun_x + ta_o + tai_o + tagaru_x + taru_x + da1_x + da2_x + daxtu_x, + darou_x + de_x + desi_x + desho_x + desu_x + na2_x + nara_x + nai_o, + nu_o + ne2_o + nn2_o + fuuda_x + besi_x + mai_o + masu_o + masure_o, + mase_x + mitaida_x + you_o + youda_x + rasii_x + rareru_x + reru_x + site_x, + + yougen_x + aru_x + ara_x + ari1_x + ari2_x + ari3_x + are1_x + are2_x, + arou_x + ii_x + itasi_x + itadaku_x + iru_x + eru_x + kakeru_x + kaneru_x, + karazu_x + gatai_x + gatida_o + kudasaru_x + gozai_x + sa1_x + si1_x + siro_x, + jyau_x + jimau_x + sugiru_x + subesi_x + suru_x + sure_x + se_x + seyo_x, + tamau_x + tayu_o + timau_o + dekiru_x + naru_x + nasai_x + nasaru_x + nikui_o, + yasui_o + yoi_x + yaru_x + ttarasii_x}; + +static u_char itadake[] = { + wo_x + ttatte_x + ttara_x + tte1_x + tte2_x + ppanasi_x + ppoi_x + ue_x, + uti_x + oite_x + okeru_x + ori_x + ka1_x + ka2_x + kai_x + kasira_x, + katagata_x + kadouka_x + kana_x + kane_x + kamo_x + kara1_x + kara2_x + ga1_x, + ga2_x + gatera_x + kiri_x + kuseni_x + kurai_x + gurumi_x + kedo_x + koso_x, + koto_x + sa2_x + sae_o + si2_x + sika_x + sura_x + zutu_x + zo_x, + tame_x + dake_x + dano_x + darake_x + tuite_x + tuki_x + tutu_x + tumori_x, + te1_x + te2_o + teru_o + dearou_x + deru_x + to1_x + to2_x + totte_x, + toiu_x + toori_x + toki_x + tokoro_x + tote_x + tohaie_x + tomo_x + do_x, + doori_x + dokoro_x + dokoroka_x + domo_x + na1_x + naa_x + nagara_x + nazo_x, + nado_x + nari_x + nanka_x + nanzo_x + nante_x + ni1_x + ni2_x + ni3_x, + nite_x + nimo_x + ne1_x + nee_x + no1_x + no2_x + node_x + noni_x, + nomi_x + nominrz_x + ha_x + hazu_x + ba_o + bakari_x + he_x + hou_x, + hoka_x + hodo_x + made_x + mama_x + mo1_x + mo2_o + motte_x + mono_x, + ya1_x + ya2_x + yara_x + yue_x + yo_x + yori_x + wa_x + wake_x, + wane_x + wayo_x + nn1_x + jya_x + tya_o + nagara2_x + wo_s_x, + ze_x + kke_x + n_si_x + deha_x, + + gotosi_x + saseru_x + zaru_x + zu_o + zunba_x + seru_x + souda_o + youtai_o, + denbun_x + ta_o + tai_x + tagaru_x + taru_x + da1_x + da2_x + daxtu_x, + darou_x + de_x + desi_x + desho_x + desu_x + na2_x + nara_x + nai_o, + nu_o + ne2_o + nn2_o + fuuda_x + besi_x + mai_o + masu_o + masure_o, + mase_x + mitaida_x + you_x + youda_x + rasii_x + rareru_x + reru_x + site_x, + + yougen_x + aru_x + ara_x + ari1_x + ari2_x + ari3_x + are1_x + are2_x, + arou_x + ii_x + itasi_x + itadaku_x + iru_x + eru_x + kakeru_x + kaneru_x, + karazu_x + gatai_x + gatida_x + kudasaru_x + gozai_x + sa1_x + si1_x + siro_x, + jyau_x + jimau_x + sugiru_x + subesi_x + suru_x + sure_x + se_x + seyo_x, + tamau_x + tayu_o + timau_x + dekiru_x + naru_x + nasai_x + nasaru_x + nikui_x, + yasui_x + yoi_x + yaru_x + ttarasii_x}; + +static u_char exp[] = { + wo_x + ttatte_o + ttara_o + tte1_o + tte2_x + ppanasi_x + ppoi_x + ue_x, + uti_x + oite_x + okeru_x + ori_x + ka1_x + ka2_x + kai_x + kasira_x, + katagata_x + kadouka_x + kana_x + kane_x + kamo_x + kara1_x + kara2_x + ga1_x, + ga2_x + gatera_x + kiri_x + kuseni_x + kurai_x + gurumi_x + kedo_x + koso_x, + koto_x + sa2_x + sae_o + si2_x + sika_x + sura_x + zutu_x + zo_x, + tame_x + dake_x + dano_o + darake_x + tuite_x + tuki_x + tutu_o + tumori_x, + te1_x + te2_o + teru_o + dearou_x + deru_x + to1_x + to2_o + totte_x, + toiu_o + toori_x + toki_x + tokoro_x + tote_o + tohaie_o + tomo_x + do_o, + doori_x + dokoro_x + dokoroka_x + domo_o + na1_x + naa_x + nagara_x + nazo_o, + nado_o + nari_x + nanka_o + nanzo_o + nante_o + ni1_x + ni2_x + ni3_x, + nite_x + nimo_x + ne1_x + nee_x + no1_x + no2_x + node_x + noni_x, + nomi_x + nominrz_x + ha_x + hazu_x + ba_o + bakari_x + he_x + hou_x, + hoka_x + hodo_x + made_x + mama_x + mo1_x + mo2_o + motte_x + mono_x, + ya1_x + ya2_x + yara_x + yue_x + yo_o + yori_x + wa_x + wake_x, + wane_x + wayo_x + nn1_x + jya_x + tya_o + nagara2_o + wo_s_x, + ze_x + kke_x + n_si_x + deha_x, + + gotosi_x + saseru_o + zaru_o + zu_o + zunba_x + seru_x + souda_o + youtai_o, + denbun_x + ta_o + tai_o + tagaru_o + taru_x + da1_x + da2_x + daxtu_x, + darou_x + de_x + desi_x + desho_x + desu_x + na2_x + nara_x + nai_o, + nu_o + ne2_o + nn2_o + fuuda_x + besi_x + mai_o + masu_o + masure_o, + mase_x + mitaida_x + you_o + youda_x + rasii_x + rareru_o + reru_x + site_x, + + yougen_x + aru_x + ara_x + ari1_x + ari2_x + ari3_x + are1_x + are2_x, + arou_x + ii_x + itasi_x + itadaku_x + iru_x + eru_x + kakeru_x + kaneru_x, + karazu_x + gatai_x + gatida_x + kudasaru_x + gozai_x + sa1_x + si1_x + siro_x, + jyau_x + jimau_x + sugiru_x + subesi_x + suru_x + sure_x + se_x + seyo_x, + tamau_x + tayu_o + timau_x + dekiru_x + naru_x + nasai_x + nasaru_x + nikui_o, + yasui_o + yoi_x + yaru_x + ttarasii_x}; + +static u_char renyou1[] = { + wo_x + ttatte_x + ttara_x + tte1_x + tte2_x + ppanasi_o + ppoi_o + ue_x, + uti_x + oite_x + okeru_x + ori_x + ka1_x + ka2_x + kai_x + kasira_x, + katagata_x + kadouka_x + kana_x + kane_x + kamo_x + kara1_x + kara2_x + ga1_x, + ga2_x + gatera_o + kiri_x + kuseni_x + kurai_x + gurumi_x + kedo_x + koso_x, + koto_x + sa2_x + sae_x + si2_x + sika_x + sura_x + zutu_x + zo_x, + tame_x + dake_x + dano_x + darake_x + tuite_x + tuki_x + tutu_o + tumori_x, + te1_x + te2_o + teru_o + dearou_x + deru_x + to1_x + to2_x + totte_x, + toiu_x + toori_x + toki_x + tokoro_x + tote_x + tohaie_x + tomo_x + do_x, + doori_x + dokoro_x + dokoroka_x + domo_x + na1_o + naa_x + nagara_x + nazo_x, + nado_x + nari_x + nanka_x + nanzo_x + nante_x + ni1_x + ni2_o + ni3_x, + nite_x + nimo_x + ne1_x + nee_x + no1_x + no2_x + node_x + noni_x, + nomi_x + nominrz_x + ha_o + hazu_x + ba_x + bakari_x + he_x + hou_x, + hoka_x + hodo_x + made_x + mama_x + mo1_x + mo2_o + motte_x + mono_x, + ya1_x + ya2_x + yara_x + yue_x + yo_x + yori_x + wa_x + wake_x, + wane_x + wayo_x + nn1_x + jya_x + tya_o + nagara2_o + wo_s_x, + ze_x + kke_x + n_si_x + deha_x, + + gotosi_x + saseru_o + zaru_o + zu_o + zunba_o + seru_x + souda_o + youtai_o, + denbun_x + ta_o + tai_o + tagaru_o + taru_x + da1_x + da2_x + daxtu_x, + darou_x + de_x + desi_x + desho_x + desu_x + na2_x + nara_x + nai_o, + nu_o + ne2_o + nn2_o + fuuda_x + besi_x + mai_o + masu_o + masure_o, + mase_x + mitaida_x + you_o + youda_x + rasii_x + rareru_o + reru_o + site_x, + + yougen_x + aru_x + ara_x + ari1_x + ari2_x + ari3_x + are1_x + are2_x, + arou_x + ii_o + itasi_x + itadaku_x + iru_x + eru_x + kakeru_x + kaneru_x, + karazu_x + gatai_o + gatida_o + kudasaru_x + gozai_x + sa1_x + si1_x + siro_x, + jyau_x + jimau_x + sugiru_x + subesi_x + suru_x + sure_x + se_x + seyo_x, + tamau_x + tayu_o + timau_o + dekiru_x + naru_x + nasai_o + nasaru_o + nikui_o, + yasui_o + yoi_x + yaru_x + ttarasii_x}; + +static u_char renyou3[] = { + wo_x + ttatte_x + ttara_o + tte1_o + tte2_x + ppanasi_o + ppoi_o + ue_x, + uti_x + oite_x + okeru_x + ori_x + ka1_o + ka2_x + kai_x + kasira_o, + katagata_x + kadouka_o + kana_o + kane_o + kamo_o + kara1_o + kara2_x + ga1_o, + ga2_x + gatera_o + kiri_x + kuseni_x + kurai_o + gurumi_x + kedo_x + koso_x, + koto_x + sa2_o + sae_o + si2_x + sika_o + sura_o + zutu_x + zo_x, + tame_x + dake_o + dano_o + darake_o + tuite_x + tuki_x + tutu_o + tumori_x, + te1_x + te2_o + teru_o + dearou_x + deru_x + to1_o + to2_x + totte_x, + toiu_o + toori_x + toki_x + tokoro_x + tote_o + tohaie_o + tomo_x + do_x, + doori_x + dokoro_o + dokoroka_o + domo_x + na1_o + naa_o + nagara_x + nazo_o, + nado_o + nari_o + nanka_o + nanzo_o + nante_o + ni1_o + ni2_x + ni3_x, + nite_o + nimo_x + ne1_o + nee_o + no1_o + no2_x + node_x + noni_x, + nomi_o + nominrz_o + ha_o + hazu_x + ba_x + bakari_o + he_o + hou_x, + hoka_x + hodo_o + made_o + mama_x + mo1_x + mo2_o + motte_x + mono_x, + ya1_o + ya2_x + yara_o + yue_o + yo_o + yori_o + wa_x + wake_x, + wane_x + wayo_x + nn1_x + jya_o + tya_o + nagara2_o + wo_s_o, + ze_x + kke_x + n_si_x + deha_x, + + gotosi_x + saseru_o + zaru_o + zu_o + zunba_o + seru_x + souda_o + youtai_o, + denbun_x + ta_o + tai_o + tagaru_o + taru_x + da1_x + da2_o + daxtu_o, + darou_o + de_o + desi_o + desho_o + desu_o + na2_o + nara_o + nai_o, + nu_o + ne2_o + nn2_o + fuuda_x + besi_x + mai_o + masu_o + masure_o, + mase_x + mitaida_o + you_o + youda_x + rasii_o + rareru_o + reru_o + site_x, + + yougen_x + aru_x + ara_x + ari1_x + ari2_x + ari3_x + are1_x + are2_x, + arou_x + ii_o + itasi_x + itadaku_x + iru_x + eru_x + kakeru_x + kaneru_x, + karazu_x + gatai_o + gatida_o + kudasaru_x + gozai_x + sa1_x + si1_x + siro_x, + jyau_x + jimau_x + sugiru_x + subesi_x + suru_x + sure_x + se_x + seyo_x, + tamau_x + tayu_o + timau_o + dekiru_x + naru_x + nasai_o + nasaru_o + nikui_o, + yasui_o + yoi_x + yaru_x + ttarasii_x}; + +static u_char renyou4[] = { + wo_o + ttatte_x + ttara_o + tte1_o + tte2_x + ppanasi_o + ppoi_o + ue_x, + uti_x + oite_x + okeru_x + ori_x + ka1_o + ka2_x + kai_x + kasira_o, + katagata_x + kadouka_o + kana_o + kane_o + kamo_o + kara1_o + kara2_x + ga1_o, + ga2_x + gatera_o + kiri_x + kuseni_x + kurai_o + gurumi_x + kedo_x + koso_x, + koto_x + sa2_x + sae_o + si2_x + sika_x + sura_o + zutu_x + zo_x, + tame_x + dake_o + dano_o + darake_x + tuite_x + tuki_x + tutu_o + tumori_x, + te1_x + te2_o + teru_o + dearou_x + deru_x + to1_o + to2_x + totte_x, + toiu_o + toori_x + toki_x + tokoro_x + tote_o + tohaie_o + tomo_x + do_x, + doori_x + dokoro_o + dokoroka_o + domo_x + na1_x + naa_x + nagara_x + nazo_o, + nado_o + nari_o + nanka_o + nanzo_o + nante_o + ni1_o + ni2_x + ni3_x, + nite_o + nimo_x + ne1_o + nee_o + no1_o + no2_x + node_x + noni_x, + nomi_o + nominrz_o + ha_o + hazu_x + ba_x + bakari_o + he_o + hou_x, + hoka_x + hodo_o + made_o + mama_x + mo1_x + mo2_o + motte_x + mono_x, + ya1_o + ya2_x + yara_o + yue_o + yo_o + yori_o + wa_x + wake_x, + wane_x + wayo_x + nn1_x + jya_o + tya_o + nagara2_o + wo_s_x, + ze_x + kke_x + n_si_x + deha_x, + + gotosi_x + saseru_o + zaru_o + zu_o + zunba_o + seru_x + souda_x + youtai_x, + denbun_x + ta_x + tai_o + tagaru_o + taru_x + da1_x + da2_o + daxtu_o, + darou_o + de_o + desi_o + desho_o + desu_o + na2_o + nara_o + nai_x, + nu_o + ne2_o + nn2_o + fuuda_x + besi_x + mai_x + masu_x + masure_x, + mase_x + mitaida_o + you_x + youda_x + rasii_o + rareru_o + reru_x + site_x, + + yougen_x + aru_x + ara_x + ari1_x + ari2_x + ari3_x + are1_x + are2_x, + arou_x + ii_o + itasi_o + itadaku_o + iru_x + eru_x + kakeru_x + kaneru_x, + karazu_x + gatai_o + gatida_o + kudasaru_o + gozai_x + sa1_o + si1_o + siro_x, + jyau_x + jimau_x + sugiru_x + subesi_x + suru_o + sure_o + se_o + seyo_x, + tamau_x + tayu_o + timau_o + dekiru_o + naru_x + nasai_o + nasaru_o + nikui_o, + yasui_o + yoi_x + yaru_x + ttarasii_x}; + +static u_char renyou5[] = { + wo_x + ttatte_x + ttara_x + tte1_x + tte2_x + ppanasi_o + ppoi_x + ue_x, + uti_x + oite_x + okeru_x + ori_x + ka1_x + ka2_x + kai_x + kasira_x, + katagata_x + kadouka_x + kana_x + kane_x + kamo_x + kara1_x + kara2_x + ga1_x, + ga2_x + gatera_o + kiri_x + kuseni_x + kurai_x + gurumi_x + kedo_x + koso_o, + koto_x + sa2_x + sae_o + si2_x + sika_x + sura_x + zutu_x + zo_x, + tame_x + dake_x + dano_x + darake_x + tuite_x + tuki_x + tutu_o + tumori_x, + te1_x + te2_x + teru_x + dearou_x + deru_x + to1_x + to2_x + totte_x, + toiu_x + toori_x + toki_x + tokoro_x + tote_x + tohaie_x + tomo_x + do_x, + doori_x + dokoro_x + dokoroka_x + domo_x + na1_x + naa_x + nagara_x + nazo_x, + nado_x + nari_x + nanka_x + nanzo_x + nante_x + ni1_x + ni2_o + ni3_x, + nite_x + nimo_x + ne1_x + nee_x + no1_x + no2_x + node_x + noni_x, + nomi_x + nominrz_x + ha_o + hazu_x + ba_x + bakari_x + he_x + hou_x, + hoka_x + hodo_x + made_x + mama_x + mo1_x + mo2_o + motte_x + mono_x, + ya1_x + ya2_x + yara_x + yue_x + yo_x + yori_x + wa_x + wake_x, + wane_x + wayo_x + nn1_x + jya_x + tya_x + nagara2_o + wo_s_x, + ze_x + kke_x + n_si_x + deha_x, + + gotosi_x + saseru_x + zaru_x + zu_x + zunba_x + seru_x + souda_o + youtai_o, + denbun_x + ta_x + tai_o + tagaru_o + taru_x + da1_x + da2_x + daxtu_x, + darou_x + de_x + desi_x + desho_x + desu_x + na2_x + nara_x + nai_x, + nu_x + ne2_x + nn2_x + fuuda_x + besi_x + mai_x + masu_o + masure_o, + mase_x + mitaida_x + you_x + youda_x + rasii_x + rareru_x + reru_x + site_x, + + yougen_x + aru_x + ara_x + ari1_x + ari2_x + ari3_x + are1_x + are2_x, + arou_x + ii_o + itasi_x + itadaku_x + iru_x + eru_o + kakeru_x + kaneru_x, + karazu_x + gatai_o + gatida_o + kudasaru_x + gozai_x + sa1_x + si1_x + siro_x, + jyau_x + jimau_x + sugiru_x + subesi_x + suru_x + sure_x + se_x + seyo_x, + tamau_x + tayu_x + timau_x + dekiru_x + naru_x + nasai_o + nasaru_x + nikui_o, + yasui_o + yoi_x + yaru_x + ttarasii_x}; + +static u_char renyou7[] = { + wo_x + ttatte_x + ttara_o + tte1_o + tte2_x + ppanasi_o + ppoi_x + ue_x, + uti_x + oite_x + okeru_x + ori_x + ka1_o + ka2_x + kai_x + kasira_o, + katagata_x + kadouka_o + kana_o + kane_o + kamo_o + kara1_o + kara2_x + ga1_o, + ga2_x + gatera_o + kiri_x + kuseni_x + kurai_o + gurumi_x + kedo_x + koso_o, + koto_x + sa2_o + sae_o + si2_x + sika_o + sura_o + zutu_x + zo_x, + tame_x + dake_o + dano_o + darake_o + tuite_x + tuki_x + tutu_o + tumori_x, + te1_x + te2_x + teru_x + dearou_x + deru_x + to1_o + to2_x + totte_x, + toiu_o + toori_x + toki_x + tokoro_x + tote_o + tohaie_o + tomo_x + do_x, + doori_x + dokoro_o + dokoroka_o + domo_x + na1_o + naa_o + nagara_x + nazo_o, + nado_o + nari_o + nanka_o + nanzo_o + nante_o + ni1_o + ni2_x + ni3_x, + nite_x + nimo_x + ne1_o + nee_o + no1_o + no2_x + node_x + noni_x, + nomi_o + nominrz_o + ha_o + hazu_x + ba_x + bakari_o + he_o + hou_x, + hoka_x + hodo_o + made_o + mama_x + mo1_x + mo2_o + motte_x + mono_x, + ya1_o + ya2_x + yara_o + yue_o + yo_o + yori_o + wa_x + wake_x, + wane_x + wayo_x + nn1_x + jya_o + tya_x + nagara2_o + wo_s_o, + ze_x + kke_x + n_si_x + deha_x, + + gotosi_x + saseru_x + zaru_x + zu_x + zunba_x + seru_x + souda_o + youtai_o, + denbun_x + ta_x + tai_o + tagaru_o + taru_x + da1_x + da2_o + daxtu_o, + darou_o + de_o + desi_o + desho_o + desu_o + na2_o + nara_o + nai_x, + nu_x + ne2_x + nn2_x + fuuda_x + besi_x + mai_x + masu_o + masure_o, + mase_x + mitaida_o + you_x + youda_x + rasii_o + rareru_x + reru_x + site_x, + + yougen_x + aru_x + ara_x + ari1_x + ari2_x + ari3_x + are1_x + are2_x, + arou_x + ii_o + itasi_x + itadaku_x + iru_x + eru_o + kakeru_x + kaneru_x, + karazu_x + gatai_o + gatida_o + kudasaru_x + gozai_x + sa1_x + si1_x + siro_x, + jyau_x + jimau_x + sugiru_x + subesi_x + suru_x + sure_x + se_x + seyo_x, + tamau_x + tayu_x + timau_x + dekiru_x + naru_x + nasai_o + nasaru_x + nikui_o, + yasui_o + yoi_x + yaru_x + ttarasii_x}; + +static u_char renyou8[] = { + wo_o + ttatte_x + ttara_o + tte1_o + tte2_x + ppanasi_o + ppoi_x + ue_x, + uti_x + oite_x + okeru_x + ori_x + ka1_o + ka2_x + kai_x + kasira_o, + katagata_x + kadouka_o + kana_o + kane_o + kamo_o + kara1_o + kara2_x + ga1_o, + ga2_x + gatera_o + kiri_x + kuseni_x + kurai_o + gurumi_x + kedo_x + koso_o, + koto_x + sa2_x + sae_o + si2_x + sika_x + sura_o + zutu_x + zo_x, + tame_x + dake_o + dano_o + darake_x + tuite_x + tuki_x + tutu_o + tumori_x, + te1_x + te2_x + teru_x + dearou_x + deru_x + to1_o + to2_x + totte_x, + toiu_o + toori_x + toki_x + tokoro_x + tote_o + tohaie_o + tomo_x + do_x, + doori_x + dokoro_o + dokoroka_o + domo_x + na1_x + naa_x + nagara_x + nazo_o, + nado_o + nari_o + nanka_o + nanzo_o + nante_o + ni1_o + ni2_x + ni3_x, + nite_x + nimo_x + ne1_o + nee_o + no1_o + no2_x + node_x + noni_x, + nomi_o + nominrz_o + ha_o + hazu_x + ba_x + bakari_o + he_o + hou_x, + hoka_x + hodo_o + made_o + mama_x + mo1_x + mo2_o + motte_x + mono_x, + ya1_o + ya2_x + yara_o + yue_o + yo_o + yori_o + wa_x + wake_x, + wane_x + wayo_x + nn1_x + jya_o + tya_x + nagara2_o + wo_s_x, + ze_x + kke_x + n_si_x + deha_x, + + gotosi_x + saseru_x + zaru_x + zu_x + zunba_x + seru_x + souda_x + youtai_x, + denbun_x + ta_x + tai_o + tagaru_o + taru_x + da1_x + da2_o + daxtu_o, + darou_o + de_o + desi_o + desho_o + desu_o + na2_o + nara_o + nai_x, + nu_x + ne2_x + nn2_x + fuuda_x + besi_x + mai_x + masu_x + masure_x, + mase_x + mitaida_x + you_x + youda_x + rasii_o + rareru_x + reru_x + site_x, + + yougen_x + aru_x + ara_x + ari1_x + ari2_x + ari3_x + are1_x + are2_x, + arou_x + ii_o + itasi_o + itadaku_o + iru_x + eru_x + kakeru_x + kaneru_x, + karazu_x + gatai_o + gatida_o + kudasaru_o + gozai_x + sa1_x + si1_o + siro_o, + jyau_x + jimau_x + sugiru_x + subesi_x + suru_o + sure_o + se_o + seyo_o, + tamau_x + tayu_x + timau_x + dekiru_o + naru_x + nasai_o + nasaru_x + nikui_o, + yasui_o + yoi_x + yaru_x + ttarasii_x}; + +static u_char sa5renyou1[] = { + wo_x + ttatte_x + ttara_x + tte1_x + tte2_x + ppanasi_o + ppoi_x + ue_x, + uti_x + oite_x + okeru_x + ori_x + ka1_x + ka2_x + kai_x + kasira_x, + katagata_x + kadouka_x + kana_x + kane_x + kamo_x + kara1_x + kara2_x + ga1_x, + ga2_x + gatera_o + kiri_x + kuseni_x + kurai_x + gurumi_x + kedo_x + koso_o, + koto_x + sa2_x + sae_o + si2_x + sika_x + sura_x + zutu_x + zo_x, + tame_x + dake_x + dano_x + darake_x + tuite_x + tuki_x + tutu_o + tumori_x, + te1_x + te2_o + teru_o + dearou_x + deru_x + to1_x + to2_x + totte_x, + toiu_x + toori_x + toki_x + tokoro_x + tote_x + tohaie_x + tomo_x + do_x, + doori_x + dokoro_x + dokoroka_x + domo_x + na1_x + naa_x + nagara_x + nazo_x, + nado_x + nari_x + nanka_x + nanzo_x + nante_x + ni1_x + ni2_o + ni3_x, + nite_x + nimo_x + ne1_x + nee_x + no1_x + no2_x + node_x + noni_x, + nomi_x + nominrz_x + ha_o + hazu_x + ba_x + bakari_x + he_x + hou_x, + hoka_x + hodo_x + made_x + mama_x + mo1_x + mo2_o + motte_x + mono_x, + ya1_x + ya2_x + yara_x + yue_x + yo_x + yori_x + wa_x + wake_x, + wane_x + wayo_x + nn1_x + jya_x + tya_o + nagara2_o + wo_s_x, + ze_x + kke_x + n_si_x + deha_x, + + gotosi_x + saseru_x + zaru_x + zu_x + zunba_x + seru_x + souda_o + youtai_o, + denbun_x + ta_o + tai_o + tagaru_o + taru_x + da1_x + da2_x + daxtu_x, + darou_x + de_x + desi_x + desho_x + desu_x + na2_x + nara_x + nai_x, + nu_x + ne2_x + nn2_x + fuuda_x + besi_x + mai_x + masu_o + masure_o, + mase_x + mitaida_x + you_x + youda_x + rasii_x + rareru_x + reru_x + site_x, + + yougen_x + aru_x + ara_x + ari1_x + ari2_x + ari3_x + are1_x + are2_x, + arou_x + ii_o + itasi_x + itadaku_x + iru_x + eru_x + kakeru_x + kaneru_x, + karazu_x + gatai_o + gatida_o + kudasaru_x + gozai_x + sa1_x + si1_x + siro_x, + jyau_x + jimau_x + sugiru_x + subesi_x + suru_x + sure_x + se_x + seyo_x, + tamau_x + tayu_o + timau_o + dekiru_x + naru_x + nasai_o + nasaru_x + nikui_o, + yasui_o + yoi_x + yaru_x + ttarasii_x}; + +static u_char sa5renyou3[] = { + wo_x + ttatte_x + ttara_o + tte1_o + tte2_x + ppanasi_o + ppoi_x + ue_x, + uti_x + oite_x + okeru_x + ori_x + ka1_o + ka2_x + kai_x + kasira_o, + katagata_x + kadouka_o + kana_o + kane_o + kamo_o + kara1_o + kara2_x + ga1_o, + ga2_x + gatera_o + kiri_x + kuseni_x + kurai_o + gurumi_x + kedo_x + koso_o, + koto_x + sa2_o + sae_o + si2_x + sika_o + sura_o + zutu_x + zo_x, + tame_x + dake_o + dano_o + darake_x + tuite_x + tuki_x + tutu_o + tumori_x, + te1_x + te2_o + teru_o + dearou_x + deru_x + to1_o + to2_x + totte_x, + toiu_o + toori_x + toki_x + tokoro_x + tote_o + tohaie_o + tomo_x + do_x, + doori_x + dokoro_o + dokoroka_o + domo_x + na1_o + naa_o + nagara_x + nazo_o, + nado_o + nari_o + nanka_o + nanzo_o + nante_o + ni1_o + ni2_x + ni3_x, + nite_x + nimo_x + ne1_o + nee_o + no1_o + no2_x + node_x + noni_x, + nomi_o + nominrz_o + ha_o + hazu_x + ba_x + bakari_o + he_o + hou_x, + hoka_x + hodo_o + made_o + mama_x + mo1_x + mo2_o + motte_x + mono_x, + ya1_o + ya2_x + yara_o + yue_o + yo_o + yori_o + wa_x + wake_x, + wane_x + wayo_x + nn1_x + jya_o + tya_o + nagara2_o + wo_s_o, + ze_x + kke_x + n_si_x + deha_x, + + gotosi_x + saseru_x + zaru_x + zu_x + zunba_x + seru_x + souda_o + youtai_o, + denbun_x + ta_o + tai_o + tagaru_o + taru_x + da1_x + da2_o + daxtu_o, + darou_o + de_o + desi_o + desho_o + desu_o + na2_o + nara_o + nai_x, + nu_x + ne2_x + nn2_x + fuuda_x + besi_x + mai_x + masu_o + masure_o, + mase_x + mitaida_o + you_x + youda_x + rasii_o + rareru_x + reru_x + site_x, + + yougen_x + aru_x + ara_x + ari1_x + ari2_x + ari3_x + are1_x + are2_x, + arou_x + ii_o + itasi_x + itadaku_x + iru_x + eru_x + kakeru_x + kaneru_x, + karazu_x + gatai_o + gatida_o + kudasaru_x + gozai_x + sa1_x + si1_x + siro_x, + jyau_x + jimau_x + sugiru_x + subesi_x + suru_x + sure_x + se_x + seyo_x, + tamau_x + tayu_o + timau_o + dekiru_x + naru_x + nasai_o + nasaru_x + nikui_o, + yasui_o + yoi_x + yaru_x + ttarasii_x}; + +static u_char sa5renyou4[] = { + wo_o + ttatte_x + ttara_o + tte1_o + tte2_x + ppanasi_o + ppoi_x + ue_x, + uti_x + oite_x + okeru_x + ori_x + ka1_o + ka2_x + kai_x + kasira_o, + katagata_x + kadouka_o + kana_o + kane_o + kamo_o + kara1_o + kara2_x + ga1_o, + ga2_x + gatera_o + kiri_x + kuseni_x + kurai_o + gurumi_x + kedo_x + koso_o, + koto_x + sa2_x + sae_o + si2_x + sika_x + sura_o + zutu_x + zo_x, + tame_x + dake_o + dano_o + darake_x + tuite_x + tuki_x + tutu_o + tumori_x, + te1_x + te2_o + teru_o + dearou_x + deru_x + to1_o + to2_x + totte_x, + toiu_o + toori_x + toki_x + tokoro_x + tote_o + tohaie_o + tomo_x + do_x, + doori_x + dokoro_o + dokoroka_o + domo_x + na1_x + naa_x + nagara_x + nazo_o, + nado_o + nari_o + nanka_o + nanzo_o + nante_o + ni1_o + ni2_x + ni3_x, + nite_x + nimo_x + ne1_o + nee_o + no1_o + no2_x + node_x + noni_x, + nomi_o + nominrz_o + ha_o + hazu_x + ba_x + bakari_o + he_o + hou_x, + hoka_x + hodo_o + made_o + mama_x + mo1_x + mo2_o + motte_x + mono_x, + ya1_o + ya2_x + yara_o + yue_o + yo_o + yori_o + wa_x + wake_x, + wane_x + wayo_x + nn1_x + jya_o + tya_o + nagara2_o + wo_s_x, + ze_x + kke_x + n_si_x + deha_x, + + gotosi_x + saseru_x + zaru_x + zu_x + zunba_x + seru_x + souda_x + youtai_x, + denbun_x + ta_x + tai_o + tagaru_o + taru_x + da1_x + da2_o + daxtu_o, + darou_o + de_o + desi_o + desho_o + desu_o + na2_o + nara_o + nai_x, + nu_x + ne2_x + nn2_x + fuuda_x + besi_x + mai_x + masu_x + masure_x, + mase_x + mitaida_o + you_x + youda_x + rasii_o + rareru_x + reru_x + site_x, + + yougen_x + aru_x + ara_x + ari1_x + ari2_x + ari3_x + are1_x + are2_x, + arou_x + ii_o + itasi_o + itadaku_o + iru_x + eru_x + kakeru_x + kaneru_x, + karazu_x + gatai_o + gatida_o + kudasaru_o + gozai_x + sa1_o + si1_o + siro_x, + jyau_x + jimau_x + sugiru_x + subesi_x + suru_o + sure_o + se_o + seyo_x, + tamau_x + tayu_o + timau_o + dekiru_o + naru_x + nasai_o + nasaru_x + nikui_o, + yasui_o + yoi_x + yaru_x + ttarasii_x}; + +static u_char krenyou[] = { + wo_x + ttatte_o + ttara_x + tte1_x + tte2_o + ppanasi_x + ppoi_x + ue_x, + uti_x + oite_x + okeru_x + ori_x + ka1_o + ka2_x + kai_x + kasira_x, + katagata_x + kadouka_x + kana_x + kane_x + kamo_x + kara1_x + kara2_x + ga1_x, + ga2_x + gatera_x + kiri_x + kuseni_x + kurai_x + gurumi_x + kedo_x + koso_o, + koto_x + sa2_x + sae_o + si2_x + sika_o + sura_x + zutu_x + zo_x, + tame_x + dake_x + dano_o + darake_x + tuite_x + tuki_x + tutu_x + tumori_x, + te1_o + te2_x + teru_x + dearou_x + deru_x + to1_x + to2_x + totte_x, + toiu_x + toori_x + toki_x + tokoro_x + tote_x + tohaie_x + tomo_o + do_x, + doori_x + dokoro_x + dokoroka_x + domo_x + na1_x + naa_x + nagara_x + nazo_o, + nado_o + nari_x + nanka_o + nanzo_o + nante_o + ni1_x + ni2_x + ni3_x, + nite_x + nimo_x + ne1_o + nee_x + no1_x + no2_x + node_x + noni_x, + nomi_x + nominrz_x + ha_o + hazu_x + ba_x + bakari_x + he_x + hou_x, + hoka_x + hodo_x + made_x + mama_x + mo1_x + mo2_o + motte_x + mono_x, + ya1_x + ya2_x + yara_x + yue_x + yo_x + yori_x + wa_x + wake_x, + wane_x + wayo_x + nn1_x + jya_x + tya_x + nagara2_x + wo_s_x, + ze_x + kke_x + n_si_x + deha_x, + + gotosi_x + saseru_x + zaru_x + zu_x + zunba_x + seru_x + souda_x + youtai_x, + denbun_x + ta_x + tai_x + tagaru_x + taru_x + da1_x + da2_x + daxtu_x, + darou_x + de_x + desi_x + desho_x + desu_x + na2_x + nara_x + nai_o, + nu_x + ne2_x + nn2_x + fuuda_x + besi_x + mai_x + masu_x + masure_x, + mase_x + mitaida_x + you_x + youda_x + rasii_x + rareru_x + reru_x + site_x, + + yougen_x + aru_x + ara_x + ari1_x + ari2_x + ari3_x + are1_x + are2_x, + arou_x + ii_x + itasi_x + itadaku_x + iru_x + eru_x + kakeru_x + kaneru_x, + karazu_x + gatai_x + gatida_x + kudasaru_x + gozai_x + sa1_o + si1_o + siro_o, + jyau_x + jimau_x + sugiru_x + subesi_o + suru_o + sure_o + se_o + seyo_o, + tamau_x + tayu_x + timau_x + dekiru_o + naru_o + nasai_x + nasaru_x + nikui_x, + yasui_x + yoi_x + yaru_x + ttarasii_x}; + +static u_char drenyou1[] = { + wo_x + ttatte_x + ttara_x + tte1_x + tte2_x + ppanasi_x + ppoi_x + ue_x, + uti_x + oite_x + okeru_x + ori_x + ka1_x + ka2_x + kai_x + kasira_x, + katagata_x + kadouka_x + kana_x + kane_x + kamo_x + kara1_x + kara2_x + ga1_x, + ga2_x + gatera_x + kiri_x + kuseni_x + kurai_x + gurumi_x + kedo_x + koso_o, + koto_x + sa2_x + sae_o + si2_x + sika_o + sura_o + zutu_x + zo_x, + tame_x + dake_x + dano_x + darake_x + tuite_x + tuki_x + tutu_x + tumori_x, + te1_x + te2_x + teru_x + dearou_x + deru_x + to1_x + to2_x + totte_x, + toiu_x + toori_x + toki_x + tokoro_x + tote_x + tohaie_x + tomo_x + do_x, + doori_x + dokoro_x + dokoroka_x + domo_x + na1_x + naa_x + nagara_x + nazo_o, + nado_o + nari_x + nanka_o + nanzo_o + nante_o + ni1_x + ni2_x + ni3_x, + nite_x + nimo_x + ne1_x + nee_x + no1_x + no2_x + node_x + noni_x, + nomi_x + nominrz_x + ha_o + hazu_x + ba_x + bakari_x + he_x + hou_x, + hoka_x + hodo_x + made_x + mama_x + mo1_x + mo2_o + motte_x + mono_x, + ya1_x + ya2_x + yara_x + yue_x + yo_x + yori_x + wa_x + wake_x, + wane_x + wayo_x + nn1_x + jya_x + tya_x + nagara2_x + wo_s_x, + ze_x + kke_x + n_si_x + deha_x, + + gotosi_x + saseru_x + zaru_x + zu_x + zunba_x + seru_x + souda_x + youtai_x, + denbun_x + ta_x + tai_x + tagaru_x + taru_x + da1_x + da2_x + daxtu_x, + darou_x + de_x + desi_x + desho_x + desu_x + na2_x + nara_x + nai_o, + nu_x + ne2_x + nn2_x + fuuda_x + besi_x + mai_x + masu_x + masure_x, + mase_x + mitaida_x + you_x + youda_x + rasii_x + rareru_x + reru_x + site_x, + + yougen_x + aru_o + ara_o + ari1_o + ari2_x + ari3_x + are1_o + are2_x, + arou_o + ii_x + itasi_x + itadaku_x + iru_x + eru_x + kakeru_x + kaneru_x, + karazu_x + gatai_x + gatida_x + kudasaru_x + gozai_o + sa1_x + si1_x + siro_x, + jyau_x + jimau_x + sugiru_x + subesi_x + suru_x + sure_x + se_x + seyo_x, + tamau_x + tayu_x + timau_x + dekiru_x + naru_x + nasai_x + nasaru_x + nikui_x, + yasui_x + yoi_x + yaru_x + ttarasii_x}; + +static u_char drenyou2[] = { + wo_x + ttatte_x + ttara_x + tte1_x + tte2_x + ppanasi_x + ppoi_x + ue_x, + uti_x + oite_o + okeru_o + ori_x + ka1_o + ka2_x + kai_x + kasira_o, + katagata_x + kadouka_o + kana_o + kane_o + kamo_x + kara1_x + kara2_x + ga1_x, + ga2_x + gatera_x + kiri_x + kuseni_x + kurai_o + gurumi_x + kedo_x + koso_o, + koto_x + sa2_o + sae_o + si2_x + sika_o + sura_o + zutu_x + zo_x, + tame_x + dake_o + dano_o + darake_x + tuite_o + tuki_o + tutu_x + tumori_x, + te1_x + te2_x + teru_x + dearou_x + deru_x + to1_x + to2_o + totte_o, + toiu_x + toori_x + toki_x + tokoro_x + tote_x + tohaie_x + tomo_x + do_x, + doori_x + dokoro_o + dokoroka_o + domo_x + na1_o + naa_o + nagara_x + nazo_o, + nado_o + nari_o + nanka_o + nanzo_o + nante_o + ni1_x + ni2_x + ni3_x, + nite_x + nimo_x + ne1_o + nee_o + no1_x + no2_x + node_x + noni_x, + nomi_o + nominrz_o + ha_o + hazu_x + ba_x + bakari_o + he_x + hou_x, + hoka_x + hodo_x + made_o + mama_x + mo1_x + mo2_o + motte_x + mono_x, + ya1_x + ya2_x + yara_o + yue_x + yo_o + yori_x + wa_x + wake_x, + wane_o + wayo_x + nn1_x + jya_x + tya_x + nagara2_x + wo_s_x, + ze_x + kke_x + n_si_x + deha_o, + + gotosi_x + saseru_x + zaru_x + zu_x + zunba_x + seru_x + souda_x + youtai_x, + denbun_x + ta_x + tai_x + tagaru_x + taru_x + da1_x + da2_x + daxtu_x, + darou_x + de_o + desi_x + desho_x + desu_x + na2_x + nara_o + nai_o, + nu_x + ne2_x + nn2_x + fuuda_x + besi_x + mai_x + masu_x + masure_x, + mase_x + mitaida_x + you_x + youda_x + rasii_x + rareru_x + reru_x + site_x, + + yougen_x + aru_o + ara_o + ari1_x + ari2_o + ari3_x + are1_x + are2_o, + arou_o + ii_x + itasi_x + itadaku_x + iru_x + eru_x + kakeru_x + kaneru_x, + karazu_x + gatai_x + gatida_x + kudasaru_x + gozai_x + sa1_o + si1_o + siro_o, + jyau_x + jimau_x + sugiru_x + subesi_o + suru_o + sure_o + se_o + seyo_o, + tamau_x + tayu_x + timau_x + dekiru_o + naru_o + nasai_o + nasaru_o + nikui_x, + yasui_x + yoi_x + yaru_x + ttarasii_x}; + +static u_char drenyou3[] = { + wo_x + ttatte_x + ttara_x + tte1_x + tte2_x + ppanasi_x + ppoi_x + ue_x, + uti_x + oite_x + okeru_x + ori_x + ka1_o + ka2_x + kai_x + kasira_x, + katagata_x + kadouka_x + kana_x + kane_x + kamo_x + kara1_x + kara2_x + ga1_x, + ga2_x + gatera_x + kiri_x + kuseni_x + kurai_x + gurumi_x + kedo_x + koso_x, + koto_x + sa2_x + sae_x + si2_x + sika_x + sura_x + zutu_x + zo_x, + tame_x + dake_x + dano_x + darake_x + tuite_x + tuki_x + tutu_x + tumori_x, + te1_x + te2_x + teru_x + dearou_x + deru_x + to1_x + to2_x + totte_x, + toiu_x + toori_x + toki_x + tokoro_x + tote_x + tohaie_x + tomo_x + do_x, + doori_x + dokoro_o + dokoroka_o + domo_x + na1_x + naa_x + nagara_x + nazo_o, + nado_o + nari_x + nanka_o + nanzo_o + nante_o + ni1_x + ni2_x + ni3_x, + nite_x + nimo_x + ne1_o + nee_x + no1_x + no2_x + node_x + noni_x, + nomi_x + nominrz_x + ha_o + hazu_x + ba_x + bakari_x + he_x + hou_x, + hoka_x + hodo_x + made_x + mama_x + mo1_x + mo2_x + motte_x + mono_x, + ya1_x + ya2_x + yara_x + yue_x + yo_o + yori_x + wa_x + wake_x, + wane_x + wayo_x + nn1_x + jya_x + tya_x + nagara2_x + wo_s_x, + ze_x + kke_x + n_si_x + deha_x, + + gotosi_x + saseru_x + zaru_x + zu_x + zunba_x + seru_x + souda_x + youtai_x, + denbun_x + ta_x + tai_x + tagaru_x + taru_x + da1_x + da2_x + daxtu_x, + darou_x + de_x + desi_x + desho_x + desu_x + na2_x + nara_x + nai_x, + nu_x + ne2_x + nn2_x + fuuda_x + besi_x + mai_x + masu_x + masure_x, + mase_x + mitaida_x + you_x + youda_x + rasii_x + rareru_x + reru_x + site_x, + + yougen_x + aru_x + ara_x + ari1_x + ari2_x + ari3_x + are1_x + are2_x, + arou_x + ii_x + itasi_x + itadaku_x + iru_x + eru_x + kakeru_x + kaneru_x, + karazu_x + gatai_x + gatida_x + kudasaru_x + gozai_x + sa1_o + si1_o + siro_o, + jyau_x + jimau_x + sugiru_x + subesi_o + suru_o + sure_o + se_o + seyo_o, + tamau_x + tayu_x + timau_x + dekiru_o + naru_o + nasai_o + nasaru_o + nikui_x, + yasui_x + yoi_x + yaru_x + ttarasii_x}; + +static u_char onbin1[] = { + wo_x + ttatte_x + ttara_x + tte1_x + tte2_x + ppanasi_x + ppoi_x + ue_x, + uti_x + oite_x + okeru_x + ori_x + ka1_x + ka2_x + kai_x + kasira_x, + katagata_x + kadouka_x + kana_x + kane_x + kamo_x + kara1_x + kara2_x + ga1_x, + ga2_x + gatera_x + kiri_x + kuseni_x + kurai_x + gurumi_x + kedo_x + koso_x, + koto_x + sa2_x + sae_x + si2_x + sika_x + sura_x + zutu_x + zo_x, + tame_x + dake_x + dano_x + darake_x + tuite_x + tuki_x + tutu_x + tumori_x, + te1_x + te2_x + teru_x + dearou_x + deru_x + to1_x + to2_x + totte_x, + toiu_x + toori_x + toki_x + tokoro_x + tote_x + tohaie_x + tomo_x + do_x, + doori_x + dokoro_x + dokoroka_x + domo_x + na1_x + naa_x + nagara_x + nazo_x, + nado_x + nari_x + nanka_x + nanzo_x + nante_x + ni1_x + ni2_x + ni3_x, + nite_x + nimo_x + ne1_x + nee_x + no1_x + no2_x + node_x + noni_x, + nomi_x + nominrz_x + ha_x + hazu_x + ba_x + bakari_x + he_x + hou_x, + hoka_x + hodo_x + made_x + mama_x + mo1_x + mo2_x + motte_x + mono_x, + ya1_x + ya2_x + yara_x + yue_x + yo_x + yori_x + wa_x + wake_x, + wane_x + wayo_x + nn1_x + jya_x + tya_x + nagara2_x + wo_s_x, + ze_x + kke_x + n_si_x + deha_x, + + gotosi_x + saseru_x + zaru_x + zu_x + zunba_x + seru_x + souda_x + youtai_x, + denbun_x + ta_o + tai_x + tagaru_x + taru_x + da1_x + da2_x + daxtu_x, + darou_x + de_x + desi_x + desho_x + desu_x + na2_x + nara_x + nai_x, + nu_x + ne2_x + nn2_x + fuuda_x + besi_x + mai_x + masu_x + masure_x, + mase_x + mitaida_x + you_x + youda_x + rasii_x + rareru_x + reru_x + site_x, + + yougen_x + aru_x + ara_x + ari1_x + ari2_x + ari3_x + are1_x + are2_x, + arou_x + ii_x + itasi_x + itadaku_x + iru_x + eru_x + kakeru_x + kaneru_x, + karazu_x + gatai_x + gatida_x + kudasaru_x + gozai_x + sa1_x + si1_x + siro_x, + jyau_x + jimau_x + sugiru_x + subesi_x + suru_x + sure_x + se_x + seyo_x, + tamau_x + tayu_x + timau_x + dekiru_x + naru_x + nasai_x + nasaru_x + nikui_x, + yasui_x + yoi_x + yaru_x + ttarasii_x}; + +static u_char onbin2[] = { + wo_x + ttatte_x + ttara_x + tte1_x + tte2_x + ppanasi_x + ppoi_x + ue_x, + uti_x + oite_x + okeru_x + ori_x + ka1_x + ka2_x + kai_x + kasira_x, + katagata_x + kadouka_x + kana_x + kane_x + kamo_x + kara1_x + kara2_x + ga1_x, + ga2_x + gatera_x + kiri_x + kuseni_x + kurai_x + gurumi_x + kedo_x + koso_x, + koto_x + sa2_x + sae_x + si2_x + sika_x + sura_x + zutu_x + zo_x, + tame_x + dake_x + dano_x + darake_x + tuite_x + tuki_x + tutu_x + tumori_x, + te1_x + te2_o + teru_o + dearou_x + deru_x + to1_x + to2_x + totte_x, + toiu_x + toori_x + toki_x + tokoro_x + tote_x + tohaie_x + tomo_x + do_x, + doori_x + dokoro_x + dokoroka_x + domo_x + na1_x + naa_x + nagara_x + nazo_x, + nado_x + nari_x + nanka_x + nanzo_x + nante_x + ni1_x + ni2_x + ni3_x, + nite_x + nimo_x + ne1_x + nee_x + no1_x + no2_x + node_x + noni_x, + nomi_x + nominrz_x + ha_x + hazu_x + ba_x + bakari_x + he_x + hou_x, + hoka_x + hodo_x + made_x + mama_x + mo1_x + mo2_x + motte_x + mono_x, + ya1_x + ya2_x + yara_x + yue_x + yo_x + yori_x + wa_x + wake_x, + wane_x + wayo_x + nn1_x + jya_x + tya_o + nagara2_x + wo_s_x, + ze_x + kke_x + n_si_x + deha_x, + + gotosi_x + saseru_x + zaru_x + zu_x + zunba_x + seru_x + souda_x + youtai_x, + denbun_x + ta_o + tai_x + tagaru_x + taru_x + da1_x + da2_x + daxtu_x, + darou_x + de_x + desi_x + desho_x + desu_x + na2_x + nara_x + nai_x, + nu_x + ne2_x + nn2_x + fuuda_x + besi_x + mai_x + masu_x + masure_x, + mase_x + mitaida_x + you_x + youda_x + rasii_x + rareru_x + reru_x + site_x, + + yougen_x + aru_x + ara_x + ari1_x + ari2_x + ari3_x + are1_x + are2_x, + arou_x + ii_x + itasi_x + itadaku_x + iru_x + eru_x + kakeru_x + kaneru_x, + karazu_x + gatai_x + gatida_x + kudasaru_x + gozai_x + sa1_x + si1_x + siro_x, + jyau_x + jimau_x + sugiru_x + subesi_x + suru_x + sure_x + se_x + seyo_x, + tamau_x + tayu_o + timau_o + dekiru_x + naru_x + nasai_x + nasaru_x + nikui_x, + yasui_x + yoi_x + yaru_x + ttarasii_x}; + +static u_char onbin3[] = { + wo_x + ttatte_x + ttara_x + tte1_x + tte2_x + ppanasi_x + ppoi_x + ue_x, + uti_x + oite_x + okeru_x + ori_x + ka1_x + ka2_x + kai_x + kasira_x, + katagata_x + kadouka_x + kana_x + kane_x + kamo_x + kara1_x + kara2_x + ga1_x, + ga2_x + gatera_x + kiri_x + kuseni_x + kurai_x + gurumi_x + kedo_x + koso_x, + koto_x + sa2_x + sae_x + si2_x + sika_x + sura_x + zutu_x + zo_x, + tame_x + dake_x + dano_x + darake_x + tuite_x + tuki_x + tutu_x + tumori_x, + te1_x + te2_x + teru_x + dearou_x + deru_o + to1_x + to2_x + totte_x, + toiu_x + toori_x + toki_x + tokoro_x + tote_x + tohaie_x + tomo_x + do_x, + doori_x + dokoro_x + dokoroka_x + domo_x + na1_x + naa_x + nagara_x + nazo_x, + nado_x + nari_x + nanka_x + nanzo_x + nante_x + ni1_x + ni2_x + ni3_x, + nite_x + nimo_x + ne1_x + nee_x + no1_x + no2_x + node_x + noni_x, + nomi_x + nominrz_x + ha_x + hazu_x + ba_x + bakari_x + he_x + hou_x, + hoka_x + hodo_x + made_x + mama_x + mo1_x + mo2_x + motte_x + mono_x, + ya1_x + ya2_x + yara_x + yue_x + yo_x + yori_x + wa_x + wake_x, + wane_x + wayo_x + nn1_x + jya_o + tya_x + nagara2_x + wo_s_x, + ze_x + kke_x + n_si_x + deha_x, + + gotosi_x + saseru_x + zaru_x + zu_x + zunba_x + seru_x + souda_x + youtai_x, + denbun_x + ta_x + tai_x + tagaru_x + taru_x + da1_o + da2_x + daxtu_x, + darou_o + de_x + desi_x + desho_x + desu_x + na2_x + nara_x + nai_x, + nu_x + ne2_x + nn2_x + fuuda_x + besi_x + mai_x + masu_x + masure_x, + mase_x + mitaida_x + you_x + youda_x + rasii_x + rareru_x + reru_x + site_x, + + yougen_x + aru_x + ara_x + ari1_x + ari2_x + ari3_x + are1_x + are2_x, + arou_x + ii_x + itasi_x + itadaku_x + iru_x + eru_x + kakeru_x + kaneru_x, + karazu_x + gatai_x + gatida_x + kudasaru_x + gozai_x + sa1_x + si1_x + siro_x, + jyau_o + jimau_o + sugiru_x + subesi_x + suru_x + sure_x + se_x + seyo_x, + tamau_x + tayu_x + timau_x + dekiru_x + naru_x + nasai_x + nasaru_x + nikui_x, + yasui_x + yoi_x + yaru_x + ttarasii_x}; + +static u_char deshi[] = { + wo_x + ttatte_x + ttara_x + tte1_x + tte2_x + ppanasi_x + ppoi_x + ue_x, + uti_x + oite_x + okeru_x + ori_x + ka1_x + ka2_x + kai_x + kasira_x, + katagata_x + kadouka_x + kana_x + kane_x + kamo_x + kara1_x + kara2_x + ga1_x, + ga2_x + gatera_x + kiri_x + kuseni_x + kurai_x + gurumi_x + kedo_x + koso_x, + koto_x + sa2_x + sae_x + si2_x + sika_x + sura_x + zutu_x + zo_x, + tame_x + dake_x + dano_x + darake_x + tuite_x + tuki_x + tutu_x + tumori_x, + te1_x + te2_o + teru_x + dearou_x + deru_x + to1_x + to2_x + totte_x, + toiu_x + toori_x + toki_x + tokoro_x + tote_x + tohaie_x + tomo_x + do_x, + doori_x + dokoro_x + dokoroka_x + domo_x + na1_x + naa_x + nagara_x + nazo_x, + nado_x + nari_x + nanka_x + nanzo_x + nante_x + ni1_x + ni2_x + ni3_x, + nite_x + nimo_x + ne1_x + nee_x + no1_x + no2_x + node_x + noni_x, + nomi_x + nominrz_x + ha_x + hazu_x + ba_x + bakari_x + he_x + hou_x, + hoka_x + hodo_x + made_x + mama_x + mo1_x + mo2_x + motte_x + mono_x, + ya1_x + ya2_x + yara_x + yue_x + yo_x + yori_x + wa_x + wake_x, + wane_x + wayo_x + nn1_x + jya_x + tya_x + nagara2_x + wo_s_x, + ze_x + kke_x + n_si_x + deha_x, + + gotosi_x + saseru_x + zaru_x + zu_x + zunba_x + seru_x + souda_x + youtai_x, + denbun_x + ta_o + tai_x + tagaru_x + taru_x + da1_x + da2_x + daxtu_x, + darou_x + de_x + desi_x + desho_x + desu_x + na2_x + nara_x + nai_x, + nu_x + ne2_x + nn2_x + fuuda_x + besi_x + mai_x + masu_x + masure_x, + mase_x + mitaida_x + you_x + youda_x + rasii_x + rareru_x + reru_x + site_x, + + yougen_x + aru_x + ara_x + ari1_x + ari2_x + ari3_x + are1_x + are2_x, + arou_x + ii_x + itasi_x + itadaku_x + iru_x + eru_x + kakeru_x + kaneru_x, + karazu_x + gatai_x + gatida_x + kudasaru_x + gozai_x + sa1_x + si1_x + siro_x, + jyau_x + jimau_x + sugiru_x + subesi_x + suru_x + sure_x + se_x + seyo_x, + tamau_x + tayu_x + timau_x + dekiru_x + naru_x + nasai_x + nasaru_x + nikui_x, + yasui_x + yoi_x + yaru_x + ttarasii_x}; + +static u_char axtu[] = { + wo_x + ttatte_x + ttara_x + tte1_x + tte2_x + ppanasi_x + ppoi_x + ue_x, + uti_x + oite_x + okeru_x + ori_x + ka1_x + ka2_x + kai_x + kasira_x, + katagata_x + kadouka_x + kana_x + kane_x + kamo_x + kara1_x + kara2_x + ga1_x, + ga2_x + gatera_x + kiri_x + kuseni_x + kurai_x + gurumi_x + kedo_x + koso_x, + koto_x + sa2_x + sae_x + si2_x + sika_x + sura_x + zutu_x + zo_x, + tame_x + dake_x + dano_x + darake_x + tuite_x + tuki_x + tutu_x + tumori_x, + te1_x + te2_o + teru_x + dearou_x + deru_x + to1_x + to2_x + totte_x, + toiu_x + toori_x + toki_x + tokoro_x + tote_x + tohaie_x + tomo_x + do_x, + doori_x + dokoro_x + dokoroka_x + domo_x + na1_x + naa_x + nagara_x + nazo_x, + nado_x + nari_x + nanka_x + nanzo_x + nante_x + ni1_x + ni2_x + ni3_x, + nite_x + nimo_x + ne1_x + nee_x + no1_x + no2_x + node_x + noni_x, + nomi_x + nominrz_x + ha_x + hazu_x + ba_x + bakari_x + he_x + hou_x, + hoka_x + hodo_x + made_x + mama_x + mo1_x + mo2_x + motte_x + mono_x, + ya1_x + ya2_x + yara_x + yue_x + yo_x + yori_x + wa_x + wake_x, + wane_x + wayo_x + nn1_x + jya_x + tya_o + nagara2_x + wo_s_x, + ze_x + kke_x + n_si_x + deha_x, + + gotosi_x + saseru_x + zaru_x + zu_x + zunba_x + seru_x + souda_x + youtai_x, + denbun_x + ta_o + tai_x + tagaru_x + taru_x + da1_x + da2_x + daxtu_x, + darou_x + de_x + desi_x + desho_x + desu_x + na2_x + nara_x + nai_x, + nu_x + ne2_x + nn2_x + fuuda_x + besi_x + mai_x + masu_x + masure_x, + mase_x + mitaida_x + you_x + youda_x + rasii_x + rareru_x + reru_x + site_x, + + yougen_x + aru_x + ara_x + ari1_x + ari2_x + ari3_x + are1_x + are2_x, + arou_x + ii_x + itasi_x + itadaku_x + iru_x + eru_x + kakeru_x + kaneru_x, + karazu_x + gatai_x + gatida_x + kudasaru_x + gozai_x + sa1_x + si1_x + siro_x, + jyau_x + jimau_x + sugiru_x + subesi_x + suru_x + sure_x + se_x + seyo_x, + tamau_x + tayu_x + timau_x + dekiru_x + naru_x + nasai_x + nasaru_x + nikui_x, + yasui_x + yoi_x + yaru_x + ttarasii_x}; + +static u_char onbin6[] = { + wo_x + ttatte_x + ttara_x + tte1_x + tte2_x + ppanasi_x + ppoi_x + ue_x, + uti_x + oite_x + okeru_x + ori_x + ka1_x + ka2_x + kai_x + kasira_x, + katagata_x + kadouka_x + kana_x + kane_x + kamo_x + kara1_x + kara2_x + ga1_x, + ga2_x + gatera_x + kiri_x + kuseni_x + kurai_x + gurumi_x + kedo_x + koso_x, + koto_x + sa2_x + sae_x + si2_x + sika_x + sura_x + zutu_x + zo_x, + tame_x + dake_x + dano_x + darake_x + tuite_x + tuki_x + tutu_x + tumori_x, + te1_x + te2_o + teru_o + dearou_x + deru_x + to1_x + to2_x + totte_x, + toiu_x + toori_x + toki_x + tokoro_x + tote_x + tohaie_x + tomo_x + do_x, + doori_x + dokoro_x + dokoroka_x + domo_x + na1_x + naa_x + nagara_x + nazo_x, + nado_x + nari_x + nanka_x + nanzo_x + nante_x + ni1_x + ni2_x + ni3_x, + nite_x + nimo_x + ne1_x + nee_x + no1_x + no2_x + node_x + noni_x, + nomi_x + nominrz_x + ha_x + hazu_x + ba_x + bakari_x + he_x + hou_x, + hoka_x + hodo_x + made_x + mama_x + mo1_x + mo2_x + motte_x + mono_x, + ya1_x + ya2_x + yara_x + yue_x + yo_x + yori_x + wa_x + wake_x, + wane_x + wayo_x + nn1_x + jya_x + tya_x + nagara2_x + wo_s_x, + ze_x + kke_x + n_si_x + deha_x, + + gotosi_x + saseru_x + zaru_x + zu_x + zunba_x + seru_x + souda_x + youtai_x, + denbun_x + ta_o + tai_x + tagaru_x + taru_x + da1_x + da2_x + daxtu_x, + darou_x + de_x + desi_x + desho_x + desu_x + na2_x + nara_x + nai_x, + nu_x + ne2_x + nn2_x + fuuda_x + besi_x + mai_x + masu_x + masure_x, + mase_x + mitaida_x + you_x + youda_x + rasii_x + rareru_x + reru_x + site_x, + + yougen_x + aru_x + ara_x + ari1_x + ari2_x + ari3_x + are1_x + are2_x, + arou_x + ii_x + itasi_x + itadaku_x + iru_x + eru_x + kakeru_x + kaneru_x, + karazu_x + gatai_x + gatida_x + kudasaru_x + gozai_x + sa1_x + si1_x + siro_x, + jyau_x + jimau_x + sugiru_x + subesi_x + suru_x + sure_x + se_x + seyo_x, + tamau_x + tayu_x + timau_x + dekiru_x + naru_x + nasai_x + nasaru_x + nikui_x, + yasui_x + yoi_x + yaru_x + ttarasii_x}; + +static u_char onbin8[] = { + wo_x + ttatte_x + ttara_x + tte1_x + tte2_x + ppanasi_x + ppoi_x + ue_x, + uti_x + oite_x + okeru_x + ori_x + ka1_x + ka2_x + kai_x + kasira_x, + katagata_x + kadouka_x + kana_x + kane_x + kamo_x + kara1_x + kara2_x + ga1_x, + ga2_x + gatera_x + kiri_x + kuseni_x + kurai_x + gurumi_x + kedo_x + koso_x, + koto_x + sa2_x + sae_x + si2_x + sika_x + sura_x + zutu_x + zo_x, + tame_x + dake_x + dano_x + darake_x + tuite_x + tuki_x + tutu_x + tumori_x, + te1_x + te2_o + teru_x + dearou_x + deru_x + to1_x + to2_x + totte_x, + toiu_x + toori_x + toki_x + tokoro_x + tote_x + tohaie_x + tomo_x + do_x, + doori_x + dokoro_x + dokoroka_x + domo_x + na1_x + naa_x + nagara_x + nazo_x, + nado_x + nari_x + nanka_x + nanzo_x + nante_x + ni1_x + ni2_x + ni3_x, + nite_x + nimo_x + ne1_x + nee_x + no1_x + no2_x + node_x + noni_x, + nomi_x + nominrz_x + ha_x + hazu_x + ba_x + bakari_x + he_x + hou_x, + hoka_x + hodo_x + made_x + mama_x + mo1_x + mo2_x + motte_x + mono_x, + ya1_x + ya2_x + yara_x + yue_x + yo_x + yori_x + wa_x + wake_x, + wane_x + wayo_x + nn1_x + jya_x + tya_o + nagara2_x + wo_s_x, + ze_x + kke_x + n_si_x + deha_x, + + gotosi_x + saseru_x + zaru_x + zu_x + zunba_x + seru_x + souda_x + youtai_x, + denbun_x + ta_o + tai_x + tagaru_x + taru_x + da1_x + da2_x + daxtu_x, + darou_x + de_x + desi_x + desho_x + desu_x + na2_x + nara_x + nai_x, + nu_x + ne2_x + nn2_x + fuuda_x + besi_x + mai_x + masu_x + masure_x, + mase_x + mitaida_x + you_x + youda_x + rasii_x + rareru_x + reru_x + site_x, + + yougen_x + aru_x + ara_x + ari1_x + ari2_x + ari3_x + are1_x + are2_x, + arou_x + ii_x + itasi_x + itadaku_x + iru_x + eru_x + kakeru_x + kaneru_x, + karazu_x + gatai_x + gatida_x + kudasaru_x + gozai_x + sa1_x + si1_x + siro_x, + jyau_x + jimau_x + sugiru_x + subesi_x + suru_x + sure_x + se_x + seyo_x, + tamau_x + tayu_o + timau_o + dekiru_x + naru_x + nasai_x + nasaru_x + nikui_x, + yasui_x + yoi_x + yaru_x + ttarasii_x}; + +static u_char ari1[] = { + wo_x + ttatte_x + ttara_x + tte1_x + tte2_x + ppanasi_x + ppoi_x + ue_x, + uti_x + oite_x + okeru_x + ori_x + ka1_x + ka2_x + kai_x + kasira_x, + katagata_x + kadouka_x + kana_x + kane_x + kamo_x + kara1_x + kara2_x + ga1_x, + ga2_x + gatera_x + kiri_x + kuseni_x + kurai_x + gurumi_x + kedo_x + koso_x, + koto_x + sa2_x + sae_o + si2_x + sika_x + sura_x + zutu_x + zo_x, + tame_x + dake_x + dano_x + darake_x + tuite_x + tuki_x + tutu_o + tumori_x, + te1_x + te2_x + teru_x + dearou_x + deru_x + to1_x + to2_x + totte_x, + toiu_x + toori_x + toki_x + tokoro_x + tote_x + tohaie_x + tomo_x + do_x, + doori_x + dokoro_x + dokoroka_x + domo_x + na1_x + naa_x + nagara_x + nazo_x, + nado_x + nari_x + nanka_x + nanzo_x + nante_x + ni1_x + ni2_x + ni3_x, + nite_x + nimo_x + ne1_x + nee_x + no1_x + no2_x + node_x + noni_x, + nomi_x + nominrz_x + ha_o + hazu_x + ba_x + bakari_x + he_x + hou_x, + hoka_x + hodo_x + made_x + mama_x + mo1_x + mo2_o + motte_x + mono_x, + ya1_x + ya2_x + yara_x + yue_x + yo_x + yori_x + wa_x + wake_x, + wane_x + wayo_x + nn1_x + jya_x + tya_x + nagara2_o + wo_s_x, + ze_x + kke_x + n_si_x + deha_x, + + gotosi_x + saseru_x + zaru_x + zu_x + zunba_x + seru_x + souda_x + youtai_x, + denbun_x + ta_x + tai_o + tagaru_x + taru_x + da1_x + da2_x + daxtu_x, + darou_x + de_x + desi_x + desho_x + desu_x + na2_x + nara_x + nai_x, + nu_x + ne2_x + nn2_x + fuuda_x + besi_x + mai_x + masu_o + masure_o, + mase_x + mitaida_x + you_x + youda_x + rasii_x + rareru_x + reru_x + site_x, + + yougen_x + aru_x + ara_x + ari1_x + ari2_x + ari3_x + are1_x + are2_x, + arou_x + ii_x + itasi_x + itadaku_x + iru_x + eru_o + kakeru_x + kaneru_x, + karazu_x + gatai_x + gatida_x + kudasaru_x + gozai_x + sa1_x + si1_x + siro_x, + jyau_x + jimau_x + sugiru_x + subesi_x + suru_x + sure_x + se_x + seyo_x, + tamau_x + tayu_x + timau_x + dekiru_x + naru_x + nasai_o + nasaru_o + nikui_x, + yasui_x + yoi_x + yaru_x + ttarasii_x}; + +static u_char ari2[] = { + wo_x + ttatte_x + ttara_x + tte1_x + tte2_x + ppanasi_x + ppoi_x + ue_x, + uti_x + oite_x + okeru_x + ori_x + ka1_x + ka2_x + kai_x + kasira_x, + katagata_x + kadouka_x + kana_x + kane_x + kamo_x + kara1_x + kara2_x + ga1_x, + ga2_x + gatera_x + kiri_x + kuseni_x + kurai_x + gurumi_x + kedo_x + koso_x, + koto_x + sa2_x + sae_o + si2_x + sika_x + sura_x + zutu_x + zo_x, + tame_x + dake_x + dano_x + darake_x + tuite_x + tuki_x + tutu_o + tumori_x, + te1_x + te2_x + teru_x + dearou_x + deru_x + to1_x + to2_x + totte_x, + toiu_x + toori_x + toki_x + tokoro_x + tote_x + tohaie_x + tomo_x + do_x, + doori_x + dokoro_x + dokoroka_x + domo_x + na1_x + naa_x + nagara_x + nazo_x, + nado_x + nari_x + nanka_x + nanzo_x + nante_x + ni1_x + ni2_x + ni3_x, + nite_x + nimo_x + ne1_x + nee_x + no1_x + no2_x + node_x + noni_x, + nomi_x + nominrz_x + ha_o + hazu_x + ba_x + bakari_x + he_x + hou_x, + hoka_x + hodo_x + made_x + mama_x + mo1_x + mo2_o + motte_x + mono_x, + ya1_x + ya2_x + yara_x + yue_x + yo_x + yori_x + wa_x + wake_x, + wane_x + wayo_x + nn1_x + jya_x + tya_x + nagara2_o + wo_s_x, + ze_x + kke_x + n_si_x + deha_x, + + gotosi_x + saseru_x + zaru_x + zu_x + zunba_x + seru_x + souda_o + youtai_o, + denbun_x + ta_x + tai_x + tagaru_x + taru_x + da1_x + da2_x + daxtu_x, + darou_x + de_x + desi_x + desho_x + desu_x + na2_x + nara_x + nai_x, + nu_x + ne2_x + nn2_x + fuuda_x + besi_x + mai_x + masu_o + masure_o, + mase_x + mitaida_x + you_x + youda_x + rasii_x + rareru_x + reru_x + site_x, + + yougen_x + aru_x + ara_x + ari1_x + ari2_x + ari3_x + are1_x + are2_x, + arou_x + ii_x + itasi_x + itadaku_x + iru_x + eru_o + kakeru_x + kaneru_x, + karazu_x + gatai_x + gatida_x + kudasaru_x + gozai_x + sa1_x + si1_x + siro_x, + jyau_x + jimau_x + sugiru_x + subesi_x + suru_x + sure_x + se_x + seyo_x, + tamau_x + tayu_x + timau_x + dekiru_x + naru_x + nasai_x + nasaru_x + nikui_x, + yasui_x + yoi_x + yaru_x + ttarasii_x}; + +static u_char ari3[] = { + wo_x + ttatte_x + ttara_x + tte1_x + tte2_x + ppanasi_x + ppoi_x + ue_x, + uti_x + oite_x + okeru_x + ori_x + ka1_x + ka2_x + kai_x + kasira_x, + katagata_x + kadouka_x + kana_x + kane_x + kamo_x + kara1_x + kara2_x + ga1_x, + ga2_x + gatera_x + kiri_x + kuseni_x + kurai_x + gurumi_x + kedo_x + koso_x, + koto_x + sa2_x + sae_x + si2_x + sika_x + sura_x + zutu_x + zo_x, + tame_x + dake_x + dano_x + darake_x + tuite_x + tuki_x + tutu_o + tumori_x, + te1_x + te2_x + teru_x + dearou_x + deru_x + to1_x + to2_x + totte_x, + toiu_x + toori_x + toki_x + tokoro_x + tote_x + tohaie_x + tomo_x + do_x, + doori_x + dokoro_x + dokoroka_x + domo_x + na1_x + naa_x + nagara_x + nazo_x, + nado_x + nari_x + nanka_x + nanzo_x + nante_x + ni1_x + ni2_x + ni3_x, + nite_x + nimo_x + ne1_x + nee_x + no1_x + no2_x + node_x + noni_x, + nomi_x + nominrz_x + ha_x + hazu_x + ba_x + bakari_x + he_x + hou_x, + hoka_x + hodo_x + made_x + mama_x + mo1_x + mo2_x + motte_x + mono_x, + ya1_x + ya2_x + yara_x + yue_x + yo_x + yori_x + wa_x + wake_x, + wane_x + wayo_x + nn1_x + jya_x + tya_x + nagara2_o + wo_s_x, + ze_x + kke_x + n_si_x + deha_x, + + gotosi_x + saseru_x + zaru_x + zu_x + zunba_x + seru_x + souda_x + youtai_x, + denbun_x + ta_x + tai_x + tagaru_x + taru_x + da1_x + da2_x + daxtu_x, + darou_x + de_x + desi_x + desho_x + desu_x + na2_x + nara_x + nai_x, + nu_x + ne2_x + nn2_x + fuuda_x + besi_x + mai_x + masu_o + masure_o, + mase_x + mitaida_x + you_x + youda_x + rasii_x + rareru_x + reru_x + site_x, + + yougen_x + aru_x + ara_x + ari1_x + ari2_x + ari3_x + are1_x + are2_x, + arou_x + ii_x + itasi_x + itadaku_x + iru_x + eru_o + kakeru_x + kaneru_x, + karazu_x + gatai_x + gatida_x + kudasaru_x + gozai_x + sa1_x + si1_x + siro_x, + jyau_x + jimau_x + sugiru_x + subesi_x + suru_x + sure_x + se_x + seyo_x, + tamau_x + tayu_x + timau_x + dekiru_x + naru_x + nasai_x + nasaru_x + nikui_x, + yasui_x + yoi_x + yaru_x + ttarasii_x}; + +static u_char iki[] = { + wo_x + ttatte_x + ttara_x + tte1_x + tte2_x + ppanasi_x + ppoi_x + ue_x, + uti_x + oite_x + okeru_x + ori_x + ka1_x + ka2_x + kai_x + kasira_x, + katagata_x + kadouka_x + kana_x + kane_x + kamo_x + kara1_x + kara2_x + ga1_x, + ga2_x + gatera_x + kiri_x + kuseni_x + kurai_x + gurumi_x + kedo_x + koso_x, + koto_x + sa2_x + sae_x + si2_x + sika_x + sura_x + zutu_x + zo_x, + tame_x + dake_x + dano_x + darake_x + tuite_x + tuki_x + tutu_o + tumori_x, + te1_x + te2_x + teru_x + dearou_x + deru_x + to1_x + to2_x + totte_x, + toiu_x + toori_x + toki_x + tokoro_x + tote_x + tohaie_x + tomo_x + do_x, + doori_x + dokoro_x + dokoroka_x + domo_x + na1_x + naa_x + nagara_x + nazo_x, + nado_x + nari_x + nanka_x + nanzo_x + nante_x + ni1_x + ni2_x + ni3_x, + nite_x + nimo_x + ne1_x + nee_x + no1_x + no2_x + node_x + noni_x, + nomi_x + nominrz_x + ha_x + hazu_x + ba_x + bakari_x + he_x + hou_x, + hoka_x + hodo_x + made_x + mama_x + mo1_x + mo2_o + motte_x + mono_x, + ya1_x + ya2_x + yara_x + yue_x + yo_x + yori_x + wa_x + wake_x, + wane_x + wayo_x + nn1_x + jya_x + tya_x + nagara2_o + wo_s_x, + ze_x + kke_x + n_si_x + deha_x, + + gotosi_x + saseru_x + zaru_x + zu_x + zunba_x + seru_x + souda_o + youtai_o, + denbun_x + ta_x + tai_o + tagaru_o + taru_x + da1_x + da2_x + daxtu_x, + darou_x + de_x + desi_x + desho_x + desu_x + na2_x + nara_x + nai_x, + nu_x + ne2_x + nn2_x + fuuda_x + besi_x + mai_x + masu_o + masure_o, + mase_x + mitaida_x + you_x + youda_x + rasii_x + rareru_x + reru_x + site_x, + + yougen_x + aru_x + ara_x + ari1_x + ari2_x + ari3_x + are1_x + are2_x, + arou_x + ii_x + itasi_x + itadaku_x + iru_x + eru_x + kakeru_x + kaneru_x, + karazu_x + gatai_x + gatida_x + kudasaru_x + gozai_x + sa1_x + si1_x + siro_x, + jyau_x + jimau_x + sugiru_x + subesi_x + suru_x + sure_x + se_x + seyo_x, + tamau_x + tayu_x + timau_x + dekiru_x + naru_x + nasai_o + nasaru_x + nikui_x, + yasui_x + yoi_x + yaru_x + ttarasii_x}; + +static u_char itasi[] = { + wo_x + ttatte_x + ttara_x + tte1_x + tte2_x + ppanasi_x + ppoi_x + ue_x, + uti_x + oite_x + okeru_x + ori_x + ka1_x + ka2_x + kai_x + kasira_x, + katagata_x + kadouka_x + kana_x + kane_x + kamo_x + kara1_x + kara2_x + ga1_x, + ga2_x + gatera_x + kiri_x + kuseni_x + kurai_x + gurumi_x + kedo_x + koso_x, + koto_x + sa2_x + sae_x + si2_x + sika_x + sura_x + zutu_x + zo_x, + tame_x + dake_x + dano_x + darake_x + tuite_x + tuki_x + tutu_x + tumori_x, + te1_x + te2_x + teru_x + dearou_x + deru_x + to1_x + to2_x + totte_x, + toiu_x + toori_x + toki_x + tokoro_x + tote_x + tohaie_x + tomo_x + do_x, + doori_x + dokoro_x + dokoroka_x + domo_x + na1_x + naa_x + nagara_x + nazo_x, + nado_x + nari_x + nanka_x + nanzo_x + nante_x + ni1_x + ni2_x + ni3_x, + nite_x + nimo_x + ne1_x + nee_x + no1_x + no2_x + node_x + noni_x, + nomi_x + nominrz_x + ha_x + hazu_x + ba_x + bakari_x + he_x + hou_x, + hoka_x + hodo_x + made_x + mama_x + mo1_x + mo2_x + motte_x + mono_x, + ya1_x + ya2_x + yara_x + yue_x + yo_x + yori_x + wa_x + wake_x, + wane_x + wayo_x + nn1_x + jya_x + tya_x + nagara2_x + wo_s_x, + ze_x + kke_x + n_si_x + deha_x, + + gotosi_x + saseru_x + zaru_x + zu_x + zunba_x + seru_x + souda_x + youtai_x, + denbun_x + ta_x + tai_x + tagaru_x + taru_x + da1_x + da2_x + daxtu_x, + darou_x + de_x + desi_x + desho_x + desu_x + na2_x + nara_x + nai_x, + nu_x + ne2_x + nn2_x + fuuda_x + besi_x + mai_x + masu_o + masure_o, + mase_x + mitaida_x + you_x + youda_x + rasii_x + rareru_x + reru_x + site_x, + + yougen_x + aru_x + ara_x + ari1_x + ari2_x + ari3_x + are1_x + are2_x, + arou_x + ii_x + itasi_x + itadaku_x + iru_x + eru_x + kakeru_x + kaneru_x, + karazu_x + gatai_x + gatida_x + kudasaru_x + gozai_x + sa1_x + si1_x + siro_x, + jyau_x + jimau_x + sugiru_x + subesi_x + suru_x + sure_x + se_x + seyo_x, + tamau_x + tayu_x + timau_x + dekiru_x + naru_x + nasai_x + nasaru_x + nikui_x, + yasui_x + yoi_x + yaru_x + ttarasii_x}; + +static u_char itadaki[] = { + wo_x + ttatte_x + ttara_x + tte1_x + tte2_x + ppanasi_x + ppoi_x + ue_x, + uti_x + oite_x + okeru_x + ori_x + ka1_x + ka2_x + kai_x + kasira_x, + katagata_x + kadouka_x + kana_x + kane_x + kamo_x + kara1_x + kara2_x + ga1_x, + ga2_x + gatera_x + kiri_x + kuseni_x + kurai_x + gurumi_x + kedo_x + koso_x, + koto_x + sa2_x + sae_o + si2_x + sika_x + sura_x + zutu_x + zo_x, + tame_x + dake_x + dano_x + darake_x + tuite_x + tuki_x + tutu_o + tumori_x, + te1_x + te2_x + teru_x + dearou_x + deru_x + to1_x + to2_x + totte_x, + toiu_x + toori_x + toki_x + tokoro_x + tote_x + tohaie_x + tomo_x + do_x, + doori_x + dokoro_x + dokoroka_x + domo_x + na1_x + naa_x + nagara_x + nazo_x, + nado_x + nari_x + nanka_x + nanzo_x + nante_x + ni1_x + ni2_x + ni3_x, + nite_x + nimo_x + ne1_x + nee_x + no1_x + no2_x + node_x + noni_x, + nomi_x + nominrz_x + ha_o + hazu_x + ba_x + bakari_x + he_x + hou_x, + hoka_x + hodo_x + made_x + mama_x + mo1_x + mo2_o + motte_x + mono_x, + ya1_x + ya2_x + yara_x + yue_x + yo_x + yori_x + wa_x + wake_x, + wane_x + wayo_x + nn1_x + jya_x + tya_x + nagara2_o + wo_s_x, + ze_x + kke_x + n_si_x + deha_x, + + gotosi_x + saseru_x + zaru_x + zu_x + zunba_x + seru_x + souda_x + youtai_x, + denbun_x + ta_x + tai_o + tagaru_x + taru_x + da1_x + da2_x + daxtu_x, + darou_x + de_x + desi_x + desho_x + desu_x + na2_x + nara_x + nai_x, + nu_x + ne2_x + nn2_x + fuuda_x + besi_x + mai_x + masu_o + masure_o, + mase_x + mitaida_x + you_x + youda_x + rasii_x + rareru_x + reru_x + site_x, + + yougen_x + aru_x + ara_x + ari1_x + ari2_x + ari3_x + are1_x + are2_x, + arou_x + ii_x + itasi_x + itadaku_x + iru_x + eru_x + kakeru_x + kaneru_x, + karazu_x + gatai_x + gatida_x + kudasaru_x + gozai_x + sa1_x + si1_x + siro_x, + jyau_x + jimau_x + sugiru_x + subesi_x + suru_x + sure_x + se_x + seyo_x, + tamau_x + tayu_x + timau_x + dekiru_x + naru_x + nasai_o + nasaru_x + nikui_x, + yasui_x + yoi_x + yaru_x + ttarasii_x}; + +static u_char ori2[] = { + wo_x + ttatte_x + ttara_x + tte1_x + tte2_x + ppanasi_x + ppoi_x + ue_x, + uti_x + oite_x + okeru_x + ori_x + ka1_x + ka2_x + kai_x + kasira_x, + katagata_x + kadouka_x + kana_x + kane_x + kamo_x + kara1_x + kara2_x + ga1_x, + ga2_x + gatera_x + kiri_x + kuseni_x + kurai_x + gurumi_x + kedo_x + koso_x, + koto_x + sa2_x + sae_x + si2_x + sika_x + sura_x + zutu_x + zo_x, + tame_x + dake_x + dano_x + darake_x + tuite_x + tuki_x + tutu_x + tumori_x, + te1_x + te2_x + teru_x + dearou_x + deru_x + to1_x + to2_x + totte_x, + toiu_x + toori_x + toki_x + tokoro_x + tote_x + tohaie_x + tomo_x + do_x, + doori_x + dokoro_x + dokoroka_x + domo_x + na1_x + naa_x + nagara_x + nazo_x, + nado_x + nari_x + nanka_x + nanzo_x + nante_x + ni1_x + ni2_x + ni3_x, + nite_x + nimo_x + ne1_x + nee_x + no1_x + no2_x + node_x + noni_x, + nomi_x + nominrz_x + ha_x + hazu_x + ba_x + bakari_x + he_x + hou_x, + hoka_x + hodo_x + made_x + mama_x + mo1_x + mo2_x + motte_x + mono_x, + ya1_x + ya2_x + yara_x + yue_x + yo_x + yori_x + wa_x + wake_x, + wane_x + wayo_x + nn1_x + jya_x + tya_x + nagara2_o + wo_s_x, + ze_x + kke_x + n_si_x + deha_x, + + gotosi_x + saseru_x + zaru_x + zu_x + zunba_x + seru_x + souda_x + youtai_x, + denbun_x + ta_x + tai_x + tagaru_x + taru_x + da1_x + da2_x + daxtu_x, + darou_x + de_x + desi_x + desho_x + desu_x + na2_x + nara_x + nai_x, + nu_x + ne2_x + nn2_x + fuuda_x + besi_x + mai_x + masu_o + masure_o, + mase_x + mitaida_x + you_x + youda_x + rasii_x + rareru_x + reru_x + site_x, + + yougen_x + aru_x + ara_x + ari1_x + ari2_x + ari3_x + are1_x + are2_x, + arou_x + ii_x + itasi_x + itadaku_x + iru_x + eru_x + kakeru_x + kaneru_x, + karazu_x + gatai_x + gatida_x + kudasaru_x + gozai_x + sa1_x + si1_x + siro_x, + jyau_x + jimau_x + sugiru_x + subesi_x + suru_x + sure_x + se_x + seyo_x, + tamau_x + tayu_x + timau_x + dekiru_x + naru_x + nasai_x + nasaru_x + nikui_x, + yasui_x + yoi_x + yaru_x + ttarasii_x}; + +static u_char gataku[] = { + wo_x + ttatte_x + ttara_x + tte1_x + tte2_o + ppanasi_x + ppoi_x + ue_x, + uti_x + oite_x + okeru_x + ori_x + ka1_x + ka2_x + kai_x + kasira_x, + katagata_x + kadouka_x + kana_x + kane_x + kamo_x + kara1_x + kara2_x + ga1_x, + ga2_x + gatera_x + kiri_x + kuseni_x + kurai_x + gurumi_x + kedo_x + koso_x, + koto_x + sa2_x + sae_x + si2_x + sika_x + sura_x + zutu_x + zo_x, + tame_x + dake_x + dano_x + darake_x + tuite_x + tuki_x + tutu_x + tumori_x, + te1_o + te2_x + teru_x + dearou_x + deru_x + to1_x + to2_x + totte_x, + toiu_x + toori_x + toki_x + tokoro_x + tote_x + tohaie_x + tomo_o + do_x, + doori_x + dokoro_x + dokoroka_x + domo_x + na1_x + naa_x + nagara_x + nazo_o, + nado_o + nari_x + nanka_o + nanzo_o + nante_o + ni1_x + ni2_x + ni3_x, + nite_x + nimo_x + ne1_x + nee_x + no1_x + no2_x + node_x + noni_x, + nomi_x + nominrz_x + ha_o + hazu_x + ba_x + bakari_x + he_x + hou_x, + hoka_x + hodo_x + made_x + mama_x + mo1_o + mo2_x + motte_x + mono_x, + ya1_x + ya2_x + yara_x + yue_x + yo_x + yori_x + wa_x + wake_x, + wane_x + wayo_x + nn1_x + jya_x + tya_x + nagara2_x + wo_s_x, + ze_x + kke_x + n_si_x + deha_x, + + gotosi_x + saseru_x + zaru_x + zu_x + zunba_x + seru_x + souda_x + youtai_x, + denbun_x + ta_x + tai_x + tagaru_x + taru_x + da1_x + da2_x + daxtu_x, + darou_x + de_x + desi_x + desho_x + desu_x + na2_x + nara_o + nai_o, + nu_x + ne2_x + nn2_x + fuuda_x + besi_x + mai_x + masu_x + masure_x, + mase_x + mitaida_x + you_x + youda_x + rasii_x + rareru_x + reru_x + site_x, + + yougen_x + aru_x + ara_x + ari1_x + ari2_x + ari3_x + are1_x + are2_x, + arou_x + ii_x + itasi_x + itadaku_x + iru_x + eru_x + kakeru_x + kaneru_x, + karazu_x + gatai_x + gatida_x + kudasaru_x + gozai_x + sa1_o + si1_o + siro_o, + jyau_x + jimau_x + sugiru_x + subesi_x + suru_o + sure_o + se_o + seyo_o, + tamau_x + tayu_x + timau_x + dekiru_x + naru_x + nasai_x + nasaru_x + nikui_x, + yasui_x + yoi_x + yaru_x + ttarasii_x}; + +static u_char ki[] = { + wo_x + ttatte_x + ttara_x + tte1_x + tte2_x + ppanasi_x + ppoi_x + ue_x, + uti_x + oite_x + okeru_x + ori_x + ka1_x + ka2_x + kai_x + kasira_x, + katagata_x + kadouka_x + kana_x + kane_x + kamo_x + kara1_x + kara2_x + ga1_x, + ga2_x + gatera_x + kiri_x + kuseni_x + kurai_x + gurumi_x + kedo_x + koso_x, + koto_x + sa2_x + sae_x + si2_x + sika_x + sura_x + zutu_x + zo_x, + tame_x + dake_x + dano_x + darake_x + tuite_x + tuki_x + tutu_o + tumori_x, + te1_x + te2_o + teru_o + dearou_x + deru_x + to1_x + to2_x + totte_x, + toiu_x + toori_x + toki_x + tokoro_x + tote_x + tohaie_x + tomo_x + do_x, + doori_x + dokoro_x + dokoroka_x + domo_x + na1_x + naa_x + nagara_x + nazo_x, + nado_x + nari_x + nanka_x + nanzo_x + nante_x + ni1_x + ni2_x + ni3_x, + nite_x + nimo_x + ne1_x + nee_x + no1_x + no2_x + node_x + noni_x, + nomi_x + nominrz_x + ha_o + hazu_x + ba_x + bakari_x + he_x + hou_x, + hoka_x + hodo_x + made_x + mama_x + mo1_x + mo2_o + motte_x + mono_x, + ya1_x + ya2_x + yara_x + yue_x + yo_x + yori_x + wa_x + wake_x, + wane_x + wayo_x + nn1_x + jya_x + tya_o + nagara2_o + wo_s_x, + ze_x + kke_x + n_si_x + deha_x, + + gotosi_x + saseru_x + zaru_x + zu_x + zunba_x + seru_x + souda_o + youtai_o, + denbun_x + ta_o + tai_o + tagaru_o + taru_x + da1_x + da2_x + daxtu_x, + darou_x + de_x + desi_x + desho_x + desu_x + na2_x + nara_x + nai_x, + nu_x + ne2_x + nn2_x + fuuda_x + besi_x + mai_x + masu_o + masure_o, + mase_x + mitaida_x + you_x + youda_x + rasii_x + rareru_x + reru_x + site_x, + + yougen_x + aru_x + ara_x + ari1_x + ari2_x + ari3_x + are1_x + are2_x, + arou_x + ii_x + itasi_x + itadaku_x + iru_x + eru_x + kakeru_x + kaneru_x, + karazu_x + gatai_x + gatida_x + kudasaru_x + gozai_x + sa1_x + si1_x + siro_x, + jyau_x + jimau_x + sugiru_x + subesi_x + suru_x + sure_x + se_x + seyo_x, + tamau_x + tayu_o + timau_o + dekiru_x + naru_x + nasai_o + nasaru_x + nikui_x, + yasui_x + yoi_x + yaru_x + ttarasii_x}; + +static u_char fzkki[] = { + wo_x + ttatte_x + ttara_x + tte1_x + tte2_x + ppanasi_x + ppoi_x + ue_x, + uti_x + oite_x + okeru_x + ori_x + ka1_x + ka2_x + kai_x + kasira_x, + katagata_x + kadouka_x + kana_x + kane_x + kamo_x + kara1_x + kara2_x + ga1_x, + ga2_x + gatera_x + kiri_x + kuseni_x + kurai_x + gurumi_x + kedo_x + koso_x, + koto_x + sa2_x + sae_x + si2_x + sika_x + sura_x + zutu_x + zo_x, + tame_x + dake_x + dano_x + darake_x + tuite_x + tuki_x + tutu_o + tumori_x, + te1_x + te2_o + teru_o + dearou_x + deru_x + to1_x + to2_x + totte_x, + toiu_x + toori_x + toki_x + tokoro_x + tote_x + tohaie_x + tomo_x + do_x, + doori_x + dokoro_x + dokoroka_x + domo_x + na1_x + naa_x + nagara_x + nazo_x, + nado_x + nari_x + nanka_x + nanzo_x + nante_x + ni1_x + ni2_x + ni3_x, + nite_x + nimo_x + ne1_x + nee_x + no1_x + no2_x + node_x + noni_x, + nomi_x + nominrz_x + ha_o + hazu_x + ba_x + bakari_x + he_x + hou_x, + hoka_x + hodo_x + made_x + mama_x + mo1_x + mo2_o + motte_x + mono_x, + ya1_x + ya2_x + yara_x + yue_x + yo_x + yori_x + wa_x + wake_x, + wane_x + wayo_x + nn1_x + jya_x + tya_o + nagara2_o + wo_s_x, + ze_x + kke_x + n_si_x + deha_x, + + gotosi_x + saseru_x + zaru_x + zu_x + zunba_x + seru_x + souda_o + youtai_o, + denbun_x + ta_o + tai_o + tagaru_o + taru_x + da1_x + da2_x + daxtu_x, + darou_x + de_x + desi_x + desho_x + desu_x + na2_x + nara_x + nai_x, + nu_x + ne2_x + nn2_x + fuuda_x + besi_x + mai_x + masu_o + masure_o, + mase_x + mitaida_x + you_x + youda_x + rasii_x + rareru_x + reru_x + site_x, + + yougen_x + aru_x + ara_x + ari1_x + ari2_x + ari3_x + are1_x + are2_x, + arou_x + ii_x + itasi_x + itadaku_x + iru_x + eru_x + kakeru_x + kaneru_x, + karazu_x + gatai_x + gatida_x + kudasaru_x + gozai_x + sa1_x + si1_x + siro_x, + jyau_x + jimau_x + sugiru_x + subesi_x + suru_x + sure_x + se_x + seyo_x, + tamau_x + tayu_o + timau_o + dekiru_x + naru_x + nasai_o + nasaru_x + nikui_x, + yasui_x + yoi_x + yaru_x + ttarasii_x}; + +static u_char deha[] = { + wo_x + ttatte_x + ttara_x + tte1_x + tte2_x + ppanasi_x + ppoi_x + ue_x, + uti_x + oite_x + okeru_x + ori_x + ka1_x + ka2_x + kai_x + kasira_x, + katagata_x + kadouka_x + kana_x + kane_x + kamo_x + kara1_x + kara2_x + ga1_x, + ga2_x + gatera_x + kiri_x + kuseni_x + kurai_x + gurumi_x + kedo_x + koso_x, + koto_x + sa2_x + sae_x + si2_x + sika_x + sura_x + zutu_x + zo_x, + tame_x + dake_x + dano_x + darake_x + tuite_x + tuki_x + tutu_x + tumori_x, + te1_x + te2_x + teru_x + dearou_x + deru_x + to1_x + to2_x + totte_x, + toiu_x + toori_x + toki_x + tokoro_x + tote_x + tohaie_x + tomo_x + do_x, + doori_x + dokoro_x + dokoroka_x + domo_x + na1_x + naa_x + nagara_x + nazo_x, + nado_x + nari_x + nanka_x + nanzo_x + nante_x + ni1_x + ni2_x + ni3_x, + nite_x + nimo_x + ne1_x + nee_x + no1_x + no2_x + node_x + noni_x, + nomi_x + nominrz_x + ha_x + hazu_x + ba_x + bakari_x + he_x + hou_x, + hoka_x + hodo_x + made_x + mama_x + mo1_x + mo2_x + motte_x + mono_x, + ya1_x + ya2_x + yara_x + yue_x + yo_x + yori_x + wa_x + wake_x, + wane_x + wayo_x + nn1_x + jya_x + tya_x + nagara2_x + wo_s_x, + ze_x + kke_x + n_si_x + deha_x, + + gotosi_x + saseru_x + zaru_x + zu_x + zunba_x + seru_x + souda_x + youtai_x, + denbun_x + ta_x + tai_x + tagaru_x + taru_x + da1_x + da2_x + daxtu_x, + darou_x + de_x + desi_x + desho_x + desu_x + na2_x + nara_x + nai_o, + nu_x + ne2_x + nn2_x + fuuda_x + besi_x + mai_x + masu_x + masure_x, + mase_x + mitaida_x + you_x + youda_x + rasii_x + rareru_x + reru_x + site_x, + + yougen_x + aru_x + ara_x + ari1_x + ari2_x + ari3_x + are1_x + are2_x, + arou_x + ii_x + itasi_x + itadaku_x + iru_x + eru_x + kakeru_x + kaneru_x, + karazu_x + gatai_x + gatida_x + kudasaru_x + gozai_x + sa1_x + si1_x + siro_x, + jyau_x + jimau_x + sugiru_x + subesi_x + suru_x + sure_x + se_x + seyo_x, + tamau_x + tayu_x + timau_x + dekiru_x + naru_x + nasai_x + nasaru_x + nikui_x, + yasui_x + yoi_x + yaru_x + ttarasii_x}; + +static u_char kudasai[] = { + wo_x + ttatte_o + ttara_x + tte1_o + tte2_x + ppanasi_x + ppoi_x + ue_x, + uti_x + oite_x + okeru_x + ori_x + ka1_x + ka2_x + kai_x + kasira_x, + katagata_x + kadouka_x + kana_x + kane_x + kamo_x + kara1_x + kara2_x + ga1_x, + ga2_x + gatera_x + kiri_x + kuseni_x + kurai_x + gurumi_x + kedo_x + koso_x, + koto_x + sa2_x + sae_x + si2_x + sika_x + sura_x + zutu_x + zo_x, + tame_x + dake_x + dano_o + darake_x + tuite_x + tuki_x + tutu_x + tumori_x, + te1_x + te2_x + teru_x + dearou_x + deru_x + to1_x + to2_o + totte_x, + toiu_o + toori_x + toki_x + tokoro_x + tote_x + tohaie_o + tomo_x + do_x, + doori_x + dokoro_x + dokoroka_x + domo_x + na1_o + naa_o + nagara_x + nazo_x, + nado_x + nari_x + nanka_x + nanzo_x + nante_x + ni1_x + ni2_x + ni3_x, + nite_x + nimo_x + ne1_o + nee_o + no1_x + no2_x + node_x + noni_x, + nomi_x + nominrz_x + ha_x + hazu_x + ba_x + bakari_x + he_x + hou_x, + hoka_x + hodo_x + made_x + mama_x + mo1_x + mo2_x + motte_x + mono_x, + ya1_x + ya2_x + yara_o + yue_x + yo_o + yori_x + wa_x + wake_x, + wane_x + wayo_x + nn1_x + jya_x + tya_x + nagara2_x + wo_s_x, + ze_x + kke_x + n_si_x + deha_o, + + gotosi_x + saseru_x + zaru_x + zu_x + zunba_x + seru_x + souda_x + youtai_x, + denbun_x + ta_x + tai_x + tagaru_x + taru_x + da1_x + da2_x + daxtu_x, + darou_x + de_x + desi_x + desho_x + desu_x + na2_x + nara_x + nai_x, + nu_x + ne2_x + nn2_x + fuuda_x + besi_x + mai_x + masu_o + masure_o, + mase_o + mitaida_x + you_x + youda_x + rasii_x + rareru_x + reru_x + site_x, + + yougen_x + aru_x + ara_x + ari1_x + ari2_x + ari3_x + are1_x + are2_x, + arou_x + ii_x + itasi_x + itadaku_x + iru_x + eru_x + kakeru_x + kaneru_x, + karazu_x + gatai_x + gatida_x + kudasaru_x + gozai_x + sa1_x + si1_x + siro_x, + jyau_x + jimau_x + sugiru_x + subesi_x + suru_x + sure_x + se_x + seyo_x, + tamau_x + tayu_x + timau_x + dekiru_x + naru_x + nasai_x + nasaru_x + nikui_x, + yasui_x + yoi_x + yaru_x + ttarasii_x}; + +static u_char gozai[] = { + wo_x + ttatte_x + ttara_x + tte1_x + tte2_x + ppanasi_x + ppoi_x + ue_x, + uti_x + oite_x + okeru_x + ori_x + ka1_x + ka2_x + kai_x + kasira_x, + katagata_x + kadouka_x + kana_x + kane_x + kamo_x + kara1_x + kara2_x + ga1_x, + ga2_x + gatera_x + kiri_x + kuseni_x + kurai_x + gurumi_x + kedo_x + koso_x, + koto_x + sa2_x + sae_x + si2_x + sika_x + sura_x + zutu_x + zo_x, + tame_x + dake_x + dano_x + darake_x + tuite_x + tuki_x + tutu_x + tumori_x, + te1_x + te2_x + teru_x + dearou_x + deru_x + to1_x + to2_x + totte_x, + toiu_x + toori_x + toki_x + tokoro_x + tote_x + tohaie_x + tomo_x + do_x, + doori_x + dokoro_x + dokoroka_x + domo_x + na1_x + naa_x + nagara_x + nazo_x, + nado_x + nari_x + nanka_x + nanzo_x + nante_x + ni1_x + ni2_x + ni3_x, + nite_x + nimo_x + ne1_x + nee_x + no1_x + no2_x + node_x + noni_x, + nomi_x + nominrz_x + ha_x + hazu_x + ba_x + bakari_x + he_x + hou_x, + hoka_x + hodo_x + made_x + mama_x + mo1_x + mo2_x + motte_x + mono_x, + ya1_x + ya2_x + yara_x + yue_x + yo_x + yori_x + wa_x + wake_x, + wane_x + wayo_x + nn1_x + jya_x + tya_x + nagara2_o + wo_s_x, + ze_x + kke_x + n_si_x + deha_x, + + gotosi_x + saseru_x + zaru_x + zu_x + zunba_x + seru_x + souda_x + youtai_x, + denbun_x + ta_x + tai_x + tagaru_x + taru_x + da1_x + da2_x + daxtu_x, + darou_x + de_x + desi_x + desho_x + desu_x + na2_x + nara_x + nai_x, + nu_x + ne2_x + nn2_x + fuuda_x + besi_x + mai_x + masu_o + masure_o, + mase_o + mitaida_x + you_x + youda_x + rasii_x + rareru_x + reru_x + site_x, + + yougen_x + aru_x + ara_x + ari1_x + ari2_x + ari3_x + are1_x + are2_x, + arou_x + ii_x + itasi_x + itadaku_x + iru_x + eru_x + kakeru_x + kaneru_x, + karazu_x + gatai_x + gatida_x + kudasaru_x + gozai_x + sa1_x + si1_x + siro_x, + jyau_x + jimau_x + sugiru_x + subesi_x + suru_x + sure_x + se_x + seyo_x, + tamau_x + tayu_x + timau_x + dekiru_x + naru_x + nasai_x + nasaru_x + nikui_x, + yasui_x + yoi_x + yaru_x + ttarasii_x}; + +static u_char gotoku[] = { + wo_x + ttatte_x + ttara_x + tte1_x + tte2_x + ppanasi_x + ppoi_x + ue_x, + uti_x + oite_x + okeru_x + ori_x + ka1_x + ka2_x + kai_x + kasira_x, + katagata_x + kadouka_x + kana_x + kane_x + kamo_x + kara1_x + kara2_x + ga1_x, + ga2_x + gatera_x + kiri_x + kuseni_x + kurai_x + gurumi_x + kedo_x + koso_x, + koto_x + sa2_x + sae_x + si2_x + sika_x + sura_x + zutu_x + zo_x, + tame_x + dake_x + dano_x + darake_x + tuite_x + tuki_x + tutu_x + tumori_x, + te1_x + te2_x + teru_x + dearou_x + deru_x + to1_x + to2_x + totte_x, + toiu_x + toori_x + toki_x + tokoro_x + tote_x + tohaie_x + tomo_x + do_x, + doori_x + dokoro_x + dokoroka_x + domo_x + na1_x + naa_x + nagara_x + nazo_x, + nado_x + nari_x + nanka_x + nanzo_x + nante_x + ni1_o + ni2_x + ni3_x, + nite_x + nimo_x + ne1_x + nee_x + no1_x + no2_x + node_x + noni_x, + nomi_x + nominrz_x + ha_x + hazu_x + ba_x + bakari_x + he_x + hou_x, + hoka_x + hodo_x + made_x + mama_x + mo1_x + mo2_x + motte_x + mono_x, + ya1_x + ya2_x + yara_x + yue_x + yo_x + yori_x + wa_x + wake_x, + wane_x + wayo_x + nn1_x + jya_x + tya_x + nagara2_x + wo_s_x, + ze_x + kke_x + n_si_x + deha_x, + + gotosi_x + saseru_x + zaru_x + zu_x + zunba_x + seru_x + souda_x + youtai_x, + denbun_x + ta_x + tai_x + tagaru_x + taru_x + da1_x + da2_x + daxtu_x, + darou_x + de_o + desi_x + desho_x + desu_x + na2_x + nara_x + nai_x, + nu_x + ne2_x + nn2_x + fuuda_x + besi_x + mai_x + masu_x + masure_x, + mase_x + mitaida_x + you_x + youda_x + rasii_x + rareru_x + reru_x + site_x, + + yougen_x + aru_x + ara_x + ari1_x + ari2_x + ari3_x + are1_x + are2_x, + arou_x + ii_x + itasi_x + itadaku_x + iru_x + eru_x + kakeru_x + kaneru_x, + karazu_x + gatai_x + gatida_x + kudasaru_x + gozai_x + sa1_x + si1_x + siro_x, + jyau_x + jimau_x + sugiru_x + subesi_x + suru_x + sure_x + se_x + seyo_x, + tamau_x + tayu_x + timau_x + dekiru_x + naru_x + nasai_x + nasaru_x + nikui_x, + yasui_x + yoi_x + yaru_x + ttarasii_x}; + +static u_char beku[] = { + wo_x + ttatte_x + ttara_x + tte1_x + tte2_x + ppanasi_x + ppoi_x + ue_x, + uti_x + oite_x + okeru_x + ori_x + ka1_x + ka2_x + kai_x + kasira_x, + katagata_x + kadouka_x + kana_x + kane_x + kamo_x + kara1_x + kara2_x + ga1_x, + ga2_x + gatera_x + kiri_x + kuseni_x + kurai_x + gurumi_x + kedo_x + koso_x, + koto_x + sa2_x + sae_x + si2_x + sika_x + sura_x + zutu_x + zo_x, + tame_x + dake_x + dano_x + darake_x + tuite_x + tuki_x + tutu_x + tumori_x, + te1_x + te2_x + teru_x + dearou_x + deru_x + to1_x + to2_x + totte_x, + toiu_x + toori_x + toki_x + tokoro_x + tote_x + tohaie_x + tomo_x + do_x, + doori_x + dokoro_x + dokoroka_x + domo_x + na1_x + naa_x + nagara_x + nazo_x, + nado_x + nari_x + nanka_x + nanzo_x + nante_x + ni1_x + ni2_x + ni3_x, + nite_x + nimo_x + ne1_x + nee_x + no1_x + no2_x + node_x + noni_x, + nomi_x + nominrz_x + ha_x + hazu_x + ba_x + bakari_x + he_x + hou_x, + hoka_x + hodo_x + made_x + mama_x + mo1_x + mo2_x + motte_x + mono_x, + ya1_x + ya2_x + yara_x + yue_x + yo_x + yori_x + wa_x + wake_x, + wane_x + wayo_x + nn1_x + jya_x + tya_x + nagara2_x + wo_s_x, + ze_x + kke_x + n_si_x + deha_x, + + gotosi_x + saseru_x + zaru_x + zu_x + zunba_x + seru_x + souda_x + youtai_x, + denbun_x + ta_x + tai_x + tagaru_x + taru_x + da1_x + da2_x + daxtu_x, + darou_x + de_x + desi_x + desho_x + desu_x + na2_x + nara_x + nai_x, + nu_x + ne2_x + nn2_x + fuuda_x + besi_x + mai_x + masu_x + masure_x, + mase_x + mitaida_x + you_x + youda_x + rasii_x + rareru_x + reru_x + site_x, + + yougen_x + aru_x + ara_x + ari1_x + ari2_x + ari3_x + are1_x + are2_x, + arou_x + ii_x + itasi_x + itadaku_x + iru_x + eru_x + kakeru_x + kaneru_x, + karazu_x + gatai_x + gatida_x + kudasaru_x + gozai_x + sa1_x + si1_x + siro_x, + jyau_x + jimau_x + sugiru_x + subesi_x + suru_x + sure_x + se_x + seyo_x, + tamau_x + tayu_x + timau_x + dekiru_x + naru_x + nasai_x + nasaru_x + nikui_x, + yasui_x + yoi_x + yaru_x + ttarasii_x}; + +static u_char soude[] = { + wo_x + ttatte_x + ttara_x + tte1_x + tte2_x + ppanasi_x + ppoi_x + ue_x, + uti_x + oite_x + okeru_x + ori_x + ka1_x + ka2_x + kai_x + kasira_x, + katagata_x + kadouka_x + kana_x + kane_x + kamo_x + kara1_x + kara2_x + ga1_x, + ga2_x + gatera_x + kiri_x + kuseni_x + kurai_x + gurumi_x + kedo_x + koso_x, + koto_x + sa2_x + sae_x + si2_x + sika_x + sura_x + zutu_x + zo_x, + tame_x + dake_x + dano_x + darake_x + tuite_x + tuki_x + tutu_x + tumori_x, + te1_x + te2_x + teru_x + dearou_x + deru_x + to1_x + to2_x + totte_x, + toiu_x + toori_x + toki_x + tokoro_x + tote_x + tohaie_x + tomo_x + do_x, + doori_x + dokoro_x + dokoroka_x + domo_x + na1_x + naa_x + nagara_x + nazo_x, + nado_x + nari_x + nanka_x + nanzo_x + nante_x + ni1_x + ni2_x + ni3_x, + nite_x + nimo_x + ne1_x + nee_x + no1_x + no2_x + node_x + noni_x, + nomi_x + nominrz_x + ha_o + hazu_x + ba_x + bakari_x + he_x + hou_x, + hoka_x + hodo_x + made_x + mama_x + mo1_o + mo2_x + motte_x + mono_x, + ya1_x + ya2_x + yara_x + yue_x + yo_x + yori_x + wa_x + wake_x, + wane_x + wayo_x + nn1_x + jya_x + tya_x + nagara2_x + wo_s_x, + ze_x + kke_x + n_si_x + deha_x, + + gotosi_x + saseru_x + zaru_x + zu_x + zunba_x + seru_x + souda_x + youtai_x, + denbun_x + ta_x + tai_x + tagaru_x + taru_x + da1_x + da2_x + daxtu_x, + darou_x + de_x + desi_x + desho_x + desu_x + na2_x + nara_x + nai_x, + nu_x + ne2_x + nn2_x + fuuda_x + besi_x + mai_x + masu_x + masure_x, + mase_x + mitaida_x + you_x + youda_x + rasii_x + rareru_x + reru_x + site_x, + + yougen_x + aru_o + ara_o + ari1_x + ari2_x + ari3_o + are1_x + are2_o, + arou_o + ii_x + itasi_x + itadaku_x + iru_x + eru_x + kakeru_x + kaneru_x, + karazu_x + gatai_x + gatida_x + kudasaru_x + gozai_x + sa1_x + si1_x + siro_x, + jyau_x + jimau_x + sugiru_x + subesi_x + suru_x + sure_x + se_x + seyo_x, + tamau_x + tayu_x + timau_x + dekiru_x + naru_x + nasai_x + nasaru_x + nikui_x, + yasui_x + yoi_x + yaru_x + ttarasii_x}; + +static u_char souni[] = { + wo_x + ttatte_x + ttara_x + tte1_x + tte2_x + ppanasi_x + ppoi_x + ue_x, + uti_x + oite_x + okeru_x + ori_x + ka1_x + ka2_x + kai_x + kasira_x, + katagata_x + kadouka_x + kana_x + kane_x + kamo_x + kara1_x + kara2_x + ga1_x, + ga2_x + gatera_x + kiri_x + kuseni_x + kurai_x + gurumi_x + kedo_x + koso_x, + koto_x + sa2_x + sae_o + si2_x + sika_x + sura_x + zutu_x + zo_x, + tame_x + dake_x + dano_x + darake_x + tuite_x + tuki_x + tutu_x + tumori_x, + te1_x + te2_x + teru_x + dearou_x + deru_x + to1_x + to2_x + totte_x, + toiu_x + toori_x + toki_x + tokoro_x + tote_x + tohaie_x + tomo_x + do_x, + doori_x + dokoro_x + dokoroka_x + domo_x + na1_x + naa_x + nagara_x + nazo_o, + nado_o + nari_x + nanka_o + nanzo_o + nante_o + ni1_x + ni2_x + ni3_x, + nite_x + nimo_x + ne1_x + nee_x + no1_x + no2_x + node_x + noni_x, + nomi_x + nominrz_x + ha_o + hazu_x + ba_x + bakari_x + he_x + hou_x, + hoka_x + hodo_x + made_x + mama_x + mo1_o + mo2_x + motte_x + mono_x, + ya1_x + ya2_x + yara_x + yue_x + yo_x + yori_x + wa_x + wake_x, + wane_x + wayo_x + nn1_x + jya_x + tya_x + nagara2_x + wo_s_x, + ze_x + kke_x + n_si_x + deha_x, + + gotosi_x + saseru_x + zaru_x + zu_x + zunba_x + seru_x + souda_x + youtai_x, + denbun_x + ta_x + tai_x + tagaru_x + taru_x + da1_x + da2_x + daxtu_x, + darou_x + de_x + desi_x + desho_x + desu_x + na2_x + nara_x + nai_o, + nu_x + ne2_x + nn2_x + fuuda_x + besi_x + mai_x + masu_x + masure_x, + mase_x + mitaida_x + you_x + youda_x + rasii_x + rareru_x + reru_x + site_x, + + yougen_x + aru_x + ara_x + ari1_x + ari2_x + ari3_x + are1_x + are2_x, + arou_x + ii_x + itasi_x + itadaku_x + iru_x + eru_x + kakeru_x + kaneru_x, + karazu_x + gatai_x + gatida_x + kudasaru_x + gozai_x + sa1_x + si1_x + siro_x, + jyau_x + jimau_x + sugiru_x + subesi_x + suru_x + sure_x + se_x + seyo_x, + tamau_x + tayu_x + timau_x + dekiru_x + naru_o + nasai_x + nasaru_x + nikui_x, + yasui_x + yoi_x + yaru_x + ttarasii_x}; + +static u_char tagari[] = { + wo_x + ttatte_x + ttara_x + tte1_x + tte2_x + ppanasi_x + ppoi_x + ue_x, + uti_x + oite_x + okeru_x + ori_x + ka1_x + ka2_x + kai_x + kasira_x, + katagata_x + kadouka_x + kana_x + kane_x + kamo_x + kara1_x + kara2_x + ga1_x, + ga2_x + gatera_x + kiri_x + kuseni_x + kurai_x + gurumi_x + kedo_x + koso_x, + koto_x + sa2_x + sae_o + si2_x + sika_x + sura_x + zutu_x + zo_x, + tame_x + dake_x + dano_x + darake_x + tuite_x + tuki_x + tutu_o + tumori_x, + te1_x + te2_x + teru_x + dearou_x + deru_x + to1_x + to2_x + totte_x, + toiu_x + toori_x + toki_x + tokoro_x + tote_x + tohaie_x + tomo_x + do_x, + doori_x + dokoro_x + dokoroka_x + domo_x + na1_x + naa_x + nagara_x + nazo_o, + nado_o + nari_x + nanka_o + nanzo_o + nante_o + ni1_x + ni2_x + ni3_x, + nite_x + nimo_x + ne1_x + nee_x + no1_x + no2_x + node_x + noni_x, + nomi_x + nominrz_x + ha_o + hazu_x + ba_x + bakari_x + he_x + hou_x, + hoka_x + hodo_x + made_x + mama_x + mo1_x + mo2_o + motte_x + mono_x, + ya1_x + ya2_x + yara_x + yue_x + yo_x + yori_x + wa_x + wake_x, + wane_x + wayo_x + nn1_x + jya_x + tya_x + nagara2_o + wo_s_x, + ze_x + kke_x + n_si_x + deha_x, + + gotosi_x + saseru_x + zaru_x + zu_x + zunba_x + seru_x + souda_o + youtai_o, + denbun_x + ta_x + tai_x + tagaru_x + taru_x + da1_x + da2_x + daxtu_x, + darou_x + de_x + desi_x + desho_x + desu_x + na2_x + nara_x + nai_x, + nu_x + ne2_x + nn2_x + fuuda_x + besi_x + mai_x + masu_o + masure_o, + mase_x + mitaida_x + you_x + youda_x + rasii_x + rareru_x + reru_x + site_x, + + yougen_x + aru_x + ara_x + ari1_x + ari2_x + ari3_x + are1_x + are2_x, + arou_x + ii_x + itasi_x + itadaku_x + iru_x + eru_x + kakeru_x + kaneru_x, + karazu_x + gatai_x + gatida_x + kudasaru_x + gozai_x + sa1_x + si1_x + siro_x, + jyau_x + jimau_x + sugiru_x + subesi_x + suru_x + sure_x + se_x + seyo_x, + tamau_x + tayu_x + timau_x + dekiru_x + naru_x + nasai_x + nasaru_x + nikui_x, + yasui_x + yoi_x + yaru_x + ttarasii_x}; + +static u_char taku[] = { + wo_x + ttatte_x + ttara_x + tte1_x + tte2_o + ppanasi_x + ppoi_x + ue_x, + uti_x + oite_x + okeru_x + ori_x + ka1_x + ka2_x + kai_x + kasira_x, + katagata_x + kadouka_x + kana_x + kane_x + kamo_x + kara1_x + kara2_x + ga1_x, + ga2_x + gatera_x + kiri_x + kuseni_x + kurai_x + gurumi_x + kedo_x + koso_x, + koto_x + sa2_x + sae_o + si2_x + sika_x + sura_x + zutu_x + zo_x, + tame_x + dake_x + dano_x + darake_x + tuite_x + tuki_x + tutu_x + tumori_x, + te1_o + te2_x + teru_x + dearou_x + deru_x + to1_x + to2_x + totte_x, + toiu_x + toori_x + toki_x + tokoro_x + tote_x + tohaie_x + tomo_o + do_x, + doori_x + dokoro_x + dokoroka_x + domo_x + na1_x + naa_x + nagara_x + nazo_o, + nado_o + nari_x + nanka_o + nanzo_o + nante_o + ni1_x + ni2_x + ni3_x, + nite_x + nimo_x + ne1_x + nee_x + no1_x + no2_x + node_x + noni_x, + nomi_x + nominrz_x + ha_o + hazu_x + ba_x + bakari_x + he_x + hou_x, + hoka_x + hodo_x + made_x + mama_x + mo1_x + mo2_o + motte_x + mono_x, + ya1_x + ya2_x + yara_x + yue_x + yo_x + yori_x + wa_x + wake_x, + wane_x + wayo_x + nn1_x + jya_x + tya_o + nagara2_x + wo_s_x, + ze_x + kke_x + n_si_x + deha_x, + + gotosi_x + saseru_x + zaru_x + zu_x + zunba_x + seru_x + souda_x + youtai_x, + denbun_x + ta_x + tai_x + tagaru_x + taru_x + da1_x + da2_x + daxtu_x, + darou_x + de_x + desi_x + desho_x + desu_x + na2_x + nara_x + nai_o, + nu_x + ne2_x + nn2_x + fuuda_x + besi_x + mai_x + masu_x + masure_x, + mase_x + mitaida_x + you_x + youda_x + rasii_x + rareru_x + reru_x + site_x, + + yougen_x + aru_x + ara_x + ari1_x + ari2_x + ari3_x + are1_x + are2_x, + arou_x + ii_x + itasi_x + itadaku_x + iru_x + eru_x + kakeru_x + kaneru_x, + karazu_x + gatai_x + gatida_x + kudasaru_x + gozai_x + sa1_x + si1_x + siro_x, + jyau_x + jimau_x + sugiru_x + subesi_x + suru_x + sure_x + se_x + seyo_x, + tamau_x + tayu_x + timau_x + dekiru_x + naru_o + nasai_x + nasaru_x + nikui_x, + yasui_x + yoi_x + yaru_x + ttarasii_x}; + +static u_char de[] = { + wo_x + ttatte_x + ttara_x + tte1_x + tte2_x + ppanasi_x + ppoi_x + ue_x, + uti_x + oite_x + okeru_x + ori_x + ka1_x + ka2_x + kai_x + kasira_x, + katagata_x + kadouka_x + kana_x + kane_x + kamo_x + kara1_x + kara2_x + ga1_x, + ga2_x + gatera_x + kiri_x + kuseni_x + kurai_x + gurumi_x + kedo_x + koso_o, + koto_x + sa2_o + sae_o + si2_x + sika_o + sura_o + zutu_x + zo_x, + tame_x + dake_o + dano_x + darake_x + tuite_x + tuki_x + tutu_x + tumori_x, + te1_x + te2_x + teru_x + dearou_x + deru_x + to1_x + to2_x + totte_x, + toiu_x + toori_x + toki_x + tokoro_x + tote_x + tohaie_x + tomo_x + do_x, + doori_x + dokoro_x + dokoroka_x + domo_x + na1_x + naa_x + nagara_x + nazo_o, + nado_o + nari_x + nanka_o + nanzo_o + nante_o + ni1_x + ni2_x + ni3_x, + nite_x + nimo_x + ne1_o + nee_o + no1_o + no2_x + node_x + noni_x, + nomi_o + nominrz_o + ha_o + hazu_x + ba_x + bakari_o + he_x + hou_x, + hoka_x + hodo_x + made_x + mama_x + mo1_x + mo2_o + motte_x + mono_x, + ya1_x + ya2_x + yara_o + yue_x + yo_x + yori_x + wa_x + wake_x, + wane_x + wayo_x + nn1_x + jya_x + tya_x + nagara2_x + wo_s_x, + ze_x + kke_x + n_si_x + deha_x, + + gotosi_x + saseru_x + zaru_x + zu_x + zunba_x + seru_x + souda_x + youtai_x, + denbun_x + ta_x + tai_x + tagaru_x + taru_x + da1_x + da2_x + daxtu_x, + darou_x + de_x + desi_x + desho_x + desu_x + na2_x + nara_x + nai_o, + nu_x + ne2_x + nn2_x + fuuda_x + besi_x + mai_x + masu_x + masure_x, + mase_x + mitaida_x + you_x + youda_x + rasii_x + rareru_x + reru_x + site_x, + + yougen_x + aru_o + ara_o + ari1_o + ari2_x + ari3_x + are1_o + are2_x, + arou_o + ii_x + itasi_x + itadaku_x + iru_x + eru_x + kakeru_x + kaneru_x, + karazu_x + gatai_x + gatida_x + kudasaru_x + gozai_o + sa1_x + si1_x + siro_x, + jyau_x + jimau_x + sugiru_x + subesi_x + suru_x + sure_x + se_x + seyo_x, + tamau_x + tayu_x + timau_x + dekiru_x + naru_x + nasai_x + nasaru_x + nikui_x, + yasui_x + yoi_x + yaru_x + ttarasii_x}; + +static u_char naide[] = { + wo_x + ttatte_x + ttara_x + tte1_o + tte2_x + ppanasi_x + ppoi_x + ue_x, + uti_x + oite_x + okeru_x + ori_x + ka1_x + ka2_x + kai_x + kasira_x, + katagata_x + kadouka_x + kana_x + kane_x + kamo_x + kara1_x + kara2_x + ga1_x, + ga2_x + gatera_x + kiri_x + kuseni_x + kurai_x + gurumi_x + kedo_x + koso_x, + koto_x + sa2_o + sae_x + si2_x + sika_x + sura_x + zutu_x + zo_x, + tame_x + dake_x + dano_x + darake_x + tuite_x + tuki_x + tutu_x + tumori_x, + te1_x + te2_x + teru_x + dearou_x + deru_x + to1_x + to2_o + totte_x, + toiu_o + toori_x + toki_x + tokoro_x + tote_x + tohaie_o + tomo_x + do_x, + doori_x + dokoro_x + dokoroka_x + domo_x + na1_x + naa_x + nagara_x + nazo_o, + nado_o + nari_x + nanka_o + nanzo_o + nante_o + ni1_x + ni2_x + ni3_x, + nite_x + nimo_x + ne1_o + nee_o + no1_x + no2_x + node_x + noni_x, + nomi_x + nominrz_x + ha_o + hazu_x + ba_x + bakari_x + he_x + hou_x, + hoka_x + hodo_x + made_x + mama_x + mo1_o + mo2_x + motte_x + mono_x, + ya1_x + ya2_x + yara_x + yue_o + yo_o + yori_x + wa_x + wake_x, + wane_x + wayo_x + nn1_x + jya_x + tya_x + nagara2_x + wo_s_x, + ze_x + kke_x + n_si_x + deha_o, + + gotosi_x + saseru_x + zaru_x + zu_x + zunba_x + seru_x + souda_x + youtai_x, + denbun_x + ta_x + tai_x + tagaru_x + taru_x + da1_x + da2_x + daxtu_x, + darou_x + de_x + desi_x + desho_x + desu_x + na2_x + nara_x + nai_x, + nu_x + ne2_x + nn2_x + fuuda_x + besi_x + mai_x + masu_x + masure_x, + mase_x + mitaida_x + you_x + youda_x + rasii_x + rareru_x + reru_x + site_x, + + yougen_x + aru_x + ara_x + ari1_x + ari2_x + ari3_x + are1_x + are2_x, + arou_x + ii_x + itasi_x + itadaku_o + iru_o + eru_x + kakeru_x + kaneru_x, + karazu_x + gatai_x + gatida_x + kudasaru_o + gozai_x + sa1_x + si1_x + siro_x, + jyau_x + jimau_x + sugiru_x + subesi_x + suru_x + sure_x + se_x + seyo_x, + tamau_x + tayu_x + timau_x + dekiru_x + naru_x + nasai_x + nasaru_x + nikui_x, + yasui_x + yoi_x + yaru_x + ttarasii_x}; + +static u_char naku[] = { + wo_x + ttatte_x + ttara_x + tte1_x + tte2_o + ppanasi_x + ppoi_x + ue_x, + uti_x + oite_x + okeru_x + ori_x + ka1_x + ka2_x + kai_x + kasira_x, + katagata_x + kadouka_x + kana_x + kane_x + kamo_x + kara1_x + kara2_x + ga1_x, + ga2_x + gatera_x + kiri_x + kuseni_x + kurai_x + gurumi_x + kedo_x + koso_x, + koto_x + sa2_x + sae_x + si2_x + sika_x + sura_x + zutu_x + zo_x, + tame_x + dake_x + dano_x + darake_x + tuite_x + tuki_x + tutu_x + tumori_x, + te1_o + te2_x + teru_x + dearou_x + deru_x + to1_x + to2_x + totte_x, + toiu_x + toori_x + toki_x + tokoro_x + tote_x + tohaie_x + tomo_x + do_x, + doori_x + dokoro_x + dokoroka_x + domo_x + na1_x + naa_x + nagara_x + nazo_x, + nado_x + nari_x + nanka_x + nanzo_x + nante_x + ni1_x + ni2_x + ni3_x, + nite_x + nimo_x + ne1_x + nee_x + no1_x + no2_x + node_x + noni_x, + nomi_x + nominrz_x + ha_o + hazu_x + ba_x + bakari_x + he_x + hou_x, + hoka_x + hodo_x + made_x + mama_x + mo1_x + mo2_o + motte_x + mono_x, + ya1_x + ya2_x + yara_x + yue_x + yo_x + yori_x + wa_x + wake_x, + wane_x + wayo_x + nn1_x + jya_x + tya_o + nagara2_x + wo_s_x, + ze_x + kke_x + n_si_x + deha_x, + + gotosi_x + saseru_x + zaru_x + zu_x + zunba_x + seru_x + souda_x + youtai_x, + denbun_x + ta_x + tai_x + tagaru_x + taru_x + da1_x + da2_x + daxtu_x, + darou_x + de_x + desi_x + desho_x + desu_x + na2_x + nara_x + nai_x, + nu_x + ne2_x + nn2_x + fuuda_x + besi_x + mai_x + masu_x + masure_x, + mase_x + mitaida_x + you_x + youda_x + rasii_x + rareru_x + reru_x + site_x, + + yougen_x + aru_x + ara_x + ari1_x + ari2_x + ari3_x + are1_x + are2_x, + arou_x + ii_x + itasi_x + itadaku_x + iru_x + eru_x + kakeru_x + kaneru_x, + karazu_x + gatai_x + gatida_x + kudasaru_x + gozai_x + sa1_x + si1_x + siro_x, + jyau_x + jimau_x + sugiru_x + subesi_x + suru_x + sure_x + se_x + seyo_x, + tamau_x + tayu_x + timau_x + dekiru_x + naru_o + nasai_x + nasaru_x + nikui_x, + yasui_x + yoi_x + yaru_x + ttarasii_x}; + +static u_char nasai[] = { + wo_x + ttatte_o + ttara_x + tte1_o + tte2_x + ppanasi_x + ppoi_x + ue_x, + uti_x + oite_x + okeru_x + ori_x + ka1_x + ka2_o + kai_x + kasira_x, + katagata_x + kadouka_x + kana_x + kane_x + kamo_x + kara1_x + kara2_x + ga1_x, + ga2_x + gatera_x + kiri_x + kuseni_x + kurai_x + gurumi_x + kedo_x + koso_x, + koto_x + sa2_x + sae_x + si2_x + sika_x + sura_x + zutu_x + zo_x, + tame_x + dake_x + dano_x + darake_x + tuite_x + tuki_x + tutu_x + tumori_x, + te1_x + te2_x + teru_x + dearou_x + deru_x + to1_x + to2_o + totte_x, + toiu_o + toori_x + toki_x + tokoro_x + tote_x + tohaie_o + tomo_x + do_x, + doori_x + dokoro_o + dokoroka_o + domo_x + na1_o + naa_x + nagara_x + nazo_o, + nado_o + nari_x + nanka_o + nanzo_o + nante_o + ni1_x + ni2_x + ni3_x, + nite_x + nimo_x + ne1_o + nee_o + no1_x + no2_x + node_x + noni_x, + nomi_x + nominrz_x + ha_x + hazu_x + ba_x + bakari_x + he_x + hou_x, + hoka_x + hodo_x + made_x + mama_x + mo1_x + mo2_x + motte_x + mono_x, + ya1_x + ya2_x + yara_x + yue_x + yo_o + yori_x + wa_x + wake_x, + wane_x + wayo_x + nn1_x + jya_o + tya_x + nagara2_x + wo_s_x, + ze_x + kke_x + n_si_x + deha_o, + + gotosi_x + saseru_x + zaru_x + zu_x + zunba_x + seru_x + souda_x + youtai_x, + denbun_x + ta_x + tai_x + tagaru_x + taru_x + da1_x + da2_x + daxtu_x, + darou_x + de_x + desi_x + desho_x + desu_x + na2_x + nara_x + nai_x, + nu_x + ne2_x + nn2_x + fuuda_x + besi_x + mai_x + masu_x + masure_x, + mase_x + mitaida_x + you_x + youda_x + rasii_x + rareru_x + reru_x + site_x, + + yougen_x + aru_x + ara_x + ari1_x + ari2_x + ari3_x + are1_x + are2_x, + arou_x + ii_x + itasi_x + itadaku_x + iru_x + eru_x + kakeru_x + kaneru_x, + karazu_x + gatai_x + gatida_x + kudasaru_x + gozai_x + sa1_x + si1_x + siro_x, + jyau_x + jimau_x + sugiru_x + subesi_x + suru_x + sure_x + se_x + seyo_x, + tamau_x + tayu_x + timau_x + dekiru_x + naru_x + nasai_x + nasaru_x + nikui_x, + yasui_x + yoi_x + yaru_x + ttarasii_x}; + +static u_char fuuni[] = { + wo_x + ttatte_x + ttara_x + tte1_o + tte2_x + ppanasi_x + ppoi_x + ue_x, + uti_x + oite_x + okeru_x + ori_x + ka1_x + ka2_x + kai_x + kasira_x, + katagata_x + kadouka_x + kana_o + kane_o + kamo_x + kara1_x + kara2_x + ga1_x, + ga2_x + gatera_x + kiri_x + kuseni_x + kurai_x + gurumi_x + kedo_x + koso_x, + koto_x + sa2_o + sae_o + si2_x + sika_o + sura_o + zutu_x + zo_x, + tame_x + dake_o + dano_o + darake_x + tuite_x + tuki_x + tutu_x + tumori_x, + te1_x + te2_x + teru_x + dearou_x + deru_x + to1_x + to2_o + totte_x, + toiu_o + toori_x + toki_x + tokoro_x + tote_x + tohaie_o + tomo_x + do_x, + doori_x + dokoro_o + dokoroka_o + domo_x + na1_o + naa_o + nagara_x + nazo_o, + nado_o + nari_x + nanka_o + nanzo_o + nante_o + ni1_x + ni2_x + ni3_x, + nite_x + nimo_x + ne1_o + nee_o + no1_x + no2_x + node_x + noni_x, + nomi_x + nominrz_x + ha_o + hazu_x + ba_x + bakari_x + he_x + hou_x, + hoka_x + hodo_x + made_o + mama_x + mo1_o + mo2_x + motte_x + mono_x, + ya1_x + ya2_x + yara_x + yue_x + yo_x + yori_x + wa_x + wake_x, + wane_o + wayo_x + nn1_x + jya_x + tya_x + nagara2_x + wo_s_x, + ze_x + kke_x + n_si_x + deha_o, + + gotosi_x + saseru_x + zaru_x + zu_x + zunba_x + seru_x + souda_x + youtai_x, + denbun_x + ta_x + tai_x + tagaru_x + taru_x + da1_x + da2_x + daxtu_x, + darou_x + de_x + desi_o + desho_o + desu_o + na2_x + nara_o + nai_x, + nu_x + ne2_x + nn2_x + fuuda_x + besi_x + mai_x + masu_x + masure_x, + mase_x + mitaida_x + you_x + youda_x + rasii_x + rareru_x + reru_x + site_x, + + yougen_x + aru_x + ara_x + ari1_x + ari2_x + ari3_x + are1_x + are2_x, + arou_x + ii_x + itasi_x + itadaku_x + iru_x + eru_x + kakeru_x + kaneru_x, + karazu_x + gatai_x + gatida_x + kudasaru_x + gozai_x + sa1_x + si1_o + siro_x, + jyau_x + jimau_x + sugiru_x + subesi_o + suru_x + sure_x + se_x + seyo_x, + tamau_x + tayu_x + timau_x + dekiru_x + naru_o + nasai_x + nasaru_x + nikui_x, + yasui_x + yoi_x + yaru_x + ttarasii_x}; + +static u_char yori2[] = { + wo_x + ttatte_x + ttara_x + tte1_x + tte2_x + ppanasi_x + ppoi_x + ue_x, + uti_x + oite_x + okeru_x + ori_x + ka1_x + ka2_x + kai_x + kasira_x, + katagata_x + kadouka_x + kana_x + kane_x + kamo_x + kara1_x + kara2_x + ga1_x, + ga2_x + gatera_x + kiri_x + kuseni_x + kurai_x + gurumi_x + kedo_x + koso_x, + koto_x + sa2_x + sae_x + si2_x + sika_x + sura_x + zutu_x + zo_x, + tame_x + dake_x + dano_x + darake_x + tuite_x + tuki_x + tutu_x + tumori_x, + te1_x + te2_x + teru_x + dearou_x + deru_x + to1_x + to2_x + totte_x, + toiu_x + toori_x + toki_x + tokoro_x + tote_x + tohaie_x + tomo_x + do_x, + doori_x + dokoro_x + dokoroka_x + domo_x + na1_x + naa_x + nagara_x + nazo_x, + nado_x + nari_x + nanka_x + nanzo_x + nante_x + ni1_x + ni2_x + ni3_x, + nite_x + nimo_x + ne1_x + nee_x + no1_x + no2_x + node_x + noni_x, + nomi_x + nominrz_x + ha_x + hazu_x + ba_x + bakari_x + he_x + hou_x, + hoka_x + hodo_x + made_x + mama_x + mo1_x + mo2_x + motte_x + mono_x, + ya1_x + ya2_x + yara_x + yue_x + yo_x + yori_x + wa_x + wake_x, + wane_x + wayo_x + nn1_x + jya_x + tya_x + nagara2_x + wo_s_x, + ze_x + kke_x + n_si_x + deha_x, + + gotosi_x + saseru_x + zaru_x + zu_x + zunba_x + seru_x + souda_o + youtai_o, + denbun_x + ta_x + tai_x + tagaru_x + taru_x + da1_x + da2_x + daxtu_x, + darou_x + de_x + desi_x + desho_x + desu_x + na2_x + nara_x + nai_x, + nu_x + ne2_x + nn2_x + fuuda_x + besi_x + mai_x + masu_o + masure_o, + mase_x + mitaida_x + you_x + youda_x + rasii_x + rareru_x + reru_x + site_x, + + yougen_x + aru_x + ara_x + ari1_x + ari2_x + ari3_x + are1_x + are2_x, + arou_x + ii_x + itasi_x + itadaku_x + iru_x + eru_x + kakeru_x + kaneru_x, + karazu_x + gatai_x + gatida_x + kudasaru_x + gozai_x + sa1_x + si1_x + siro_x, + jyau_x + jimau_x + sugiru_x + subesi_x + suru_x + sure_x + se_x + seyo_x, + tamau_x + tayu_x + timau_x + dekiru_x + naru_x + nasai_x + nasaru_x + nikui_x, + yasui_x + yoi_x + yaru_x + ttarasii_x}; + +static u_char rashuu[] = { + wo_x + ttatte_x + ttara_x + tte1_x + tte2_x + ppanasi_x + ppoi_x + ue_x, + uti_x + oite_x + okeru_x + ori_x + ka1_x + ka2_x + kai_x + kasira_x, + katagata_x + kadouka_x + kana_x + kane_x + kamo_x + kara1_x + kara2_x + ga1_x, + ga2_x + gatera_x + kiri_x + kuseni_x + kurai_x + gurumi_x + kedo_x + koso_x, + koto_x + sa2_x + sae_x + si2_x + sika_x + sura_x + zutu_x + zo_x, + tame_x + dake_x + dano_x + darake_x + tuite_x + tuki_x + tutu_x + tumori_x, + te1_x + te2_x + teru_x + dearou_x + deru_x + to1_x + to2_x + totte_x, + toiu_x + toori_x + toki_x + tokoro_x + tote_x + tohaie_x + tomo_x + do_x, + doori_x + dokoro_x + dokoroka_x + domo_x + na1_x + naa_x + nagara_x + nazo_x, + nado_x + nari_x + nanka_x + nanzo_x + nante_x + ni1_x + ni2_x + ni3_x, + nite_x + nimo_x + ne1_x + nee_x + no1_x + no2_x + node_x + noni_x, + nomi_x + nominrz_x + ha_x + hazu_x + ba_x + bakari_x + he_x + hou_x, + hoka_x + hodo_x + made_x + mama_x + mo1_x + mo2_x + motte_x + mono_x, + ya1_x + ya2_x + yara_x + yue_x + yo_x + yori_x + wa_x + wake_x, + wane_x + wayo_x + nn1_x + jya_x + tya_x + nagara2_x + wo_s_x, + ze_x + kke_x + n_si_x + deha_x, + + gotosi_x + saseru_x + zaru_x + zu_x + zunba_x + seru_x + souda_x + youtai_x, + denbun_x + ta_x + tai_x + tagaru_x + taru_x + da1_x + da2_x + daxtu_x, + darou_x + de_x + desi_x + desho_x + desu_x + na2_x + nara_x + nai_x, + nu_x + ne2_x + nn2_x + fuuda_x + besi_x + mai_x + masu_x + masure_x, + mase_x + mitaida_x + you_x + youda_x + rasii_x + rareru_x + reru_x + site_x, + + yougen_x + aru_x + ara_x + ari1_x + ari2_x + ari3_x + are1_x + are2_x, + arou_x + ii_x + itasi_x + itadaku_x + iru_x + eru_x + kakeru_x + kaneru_x, + karazu_x + gatai_x + gatida_x + kudasaru_x + gozai_o + sa1_x + si1_x + siro_x, + jyau_x + jimau_x + sugiru_x + subesi_x + suru_x + sure_x + se_x + seyo_x, + tamau_x + tayu_x + timau_x + dekiru_x + naru_x + nasai_x + nasaru_x + nikui_x, + yasui_x + yoi_x + yaru_x + ttarasii_x}; + +static u_char dshuusi1[] = { + wo_x + ttatte_x + ttara_x + tte1_o + tte2_x + ppanasi_x + ppoi_x + ue_x, + uti_x + oite_x + okeru_x + ori_x + ka1_o + ka2_x + kai_x + kasira_x, + katagata_x + kadouka_o + kana_x + kane_x + kamo_x + kara1_x + kara2_o + ga1_x, + ga2_o + gatera_x + kiri_x + kuseni_x + kurai_x + gurumi_x + kedo_o + koso_x, + koto_x + sa2_x + sae_x + si2_o + sika_x + sura_x + zutu_x + zo_o, + tame_x + dake_x + dano_x + darake_x + tuite_x + tuki_x + tutu_x + tumori_x, + te1_x + te2_x + teru_x + dearou_x + deru_x + to1_x + to2_o + totte_x, + toiu_o + toori_x + toki_x + tokoro_x + tote_x + tohaie_o + tomo_x + do_x, + doori_x + dokoro_x + dokoroka_x + domo_x + na1_o + naa_o + nagara_x + nazo_o, + nado_o + nari_x + nanka_o + nanzo_o + nante_o + ni1_x + ni2_x + ni3_x, + nite_x + nimo_x + ne1_o + nee_o + no1_x + no2_x + node_x + noni_x, + nomi_x + nominrz_x + ha_x + hazu_x + ba_x + bakari_x + he_x + hou_x, + hoka_x + hodo_x + made_x + mama_x + mo1_x + mo2_x + motte_x + mono_o, + ya1_x + ya2_x + yara_x + yue_x + yo_o + yori_x + wa_o + wake_x, + wane_o + wayo_o + nn1_x + jya_x + tya_x + nagara2_x + wo_s_x, + ze_o + kke_o + n_si_x + deha_o, + + gotosi_x + saseru_x + zaru_x + zu_x + zunba_x + seru_x + souda_o + youtai_x, + denbun_o + ta_x + tai_x + tagaru_x + taru_x + da1_x + da2_x + daxtu_x, + darou_x + de_x + desi_x + desho_x + desu_x + na2_x + nara_x + nai_x, + nu_x + ne2_x + nn2_x + fuuda_x + besi_x + mai_x + masu_x + masure_x, + mase_x + mitaida_x + you_x + youda_x + rasii_x + rareru_x + reru_x + site_x, + + yougen_x + aru_x + ara_x + ari1_x + ari2_x + ari3_x + are1_x + are2_x, + arou_x + ii_x + itasi_x + itadaku_x + iru_x + eru_x + kakeru_x + kaneru_x, + karazu_x + gatai_x + gatida_x + kudasaru_x + gozai_x + sa1_x + si1_x + siro_x, + jyau_x + jimau_x + sugiru_x + subesi_x + suru_x + sure_x + se_x + seyo_x, + tamau_x + tayu_x + timau_x + dekiru_x + naru_x + nasai_x + nasaru_x + nikui_x, + yasui_x + yoi_x + yaru_x + ttarasii_x}; + +static u_char dshuusi2[] = { + wo_x + ttatte_x + ttara_x + tte1_o + tte2_x + ppanasi_x + ppoi_x + ue_x, + uti_x + oite_x + okeru_x + ori_x + ka1_x + ka2_x + kai_x + kasira_x, + katagata_x + kadouka_x + kana_x + kane_x + kamo_x + kara1_x + kara2_x + ga1_x, + ga2_x + gatera_x + kiri_x + kuseni_x + kurai_x + gurumi_x + kedo_x + koso_x, + koto_x + sa2_x + sae_x + si2_x + sika_x + sura_x + zutu_x + zo_x, + tame_x + dake_x + dano_x + darake_x + tuite_x + tuki_x + tutu_x + tumori_x, + te1_x + te2_x + teru_x + dearou_x + deru_x + to1_x + to2_o + totte_x, + toiu_o + toori_x + toki_x + tokoro_x + tote_x + tohaie_o + tomo_x + do_x, + doori_x + dokoro_x + dokoroka_x + domo_x + na1_x + naa_x + nagara_x + nazo_o, + nado_o + nari_x + nanka_o + nanzo_o + nante_o + ni1_x + ni2_x + ni3_x, + nite_x + nimo_x + ne1_x + nee_x + no1_x + no2_x + node_x + noni_x, + nomi_x + nominrz_x + ha_x + hazu_x + ba_x + bakari_x + he_x + hou_x, + hoka_x + hodo_x + made_x + mama_x + mo1_x + mo2_x + motte_x + mono_x, + ya1_x + ya2_x + yara_x + yue_x + yo_x + yori_x + wa_x + wake_x, + wane_x + wayo_x + nn1_x + jya_x + tya_x + nagara2_x + wo_s_x, + ze_x + kke_x + n_si_x + deha_o, + + gotosi_x + saseru_x + zaru_x + zu_x + zunba_x + seru_x + souda_x + youtai_x, + denbun_x + ta_x + tai_x + tagaru_x + taru_x + da1_x + da2_x + daxtu_x, + darou_x + de_x + desi_x + desho_x + desu_x + na2_x + nara_x + nai_x, + nu_x + ne2_x + nn2_x + fuuda_x + besi_x + mai_x + masu_x + masure_x, + mase_x + mitaida_x + you_x + youda_x + rasii_x + rareru_x + reru_x + site_x, + + yougen_x + aru_x + ara_x + ari1_x + ari2_x + ari3_x + are1_x + are2_x, + arou_x + ii_x + itasi_x + itadaku_x + iru_x + eru_x + kakeru_x + kaneru_x, + karazu_x + gatai_x + gatida_x + kudasaru_x + gozai_x + sa1_x + si1_x + siro_x, + jyau_x + jimau_x + sugiru_x + subesi_x + suru_x + sure_x + se_x + seyo_x, + tamau_x + tayu_x + timau_x + dekiru_x + naru_x + nasai_x + nasaru_x + nikui_x, + yasui_x + yoi_x + yaru_x + ttarasii_x}; + +static u_char gotosi[] = { + wo_x + ttatte_x + ttara_x + tte1_o + tte2_x + ppanasi_x + ppoi_x + ue_x, + uti_x + oite_x + okeru_x + ori_x + ka1_x + ka2_x + kai_x + kasira_x, + katagata_x + kadouka_x + kana_x + kane_x + kamo_x + kara1_x + kara2_x + ga1_x, + ga2_x + gatera_x + kiri_x + kuseni_x + kurai_x + gurumi_x + kedo_x + koso_x, + koto_x + sa2_x + sae_x + si2_x + sika_x + sura_x + zutu_x + zo_x, + tame_x + dake_x + dano_x + darake_x + tuite_x + tuki_x + tutu_x + tumori_x, + te1_x + te2_x + teru_x + dearou_x + deru_x + to1_x + to2_o + totte_x, + toiu_o + toori_x + toki_x + tokoro_x + tote_x + tohaie_o + tomo_x + do_x, + doori_x + dokoro_x + dokoroka_x + domo_x + na1_x + naa_x + nagara_x + nazo_o, + nado_o + nari_x + nanka_o + nanzo_o + nante_o + ni1_x + ni2_x + ni3_x, + nite_x + nimo_x + ne1_x + nee_x + no1_x + no2_x + node_x + noni_x, + nomi_x + nominrz_x + ha_x + hazu_x + ba_x + bakari_x + he_x + hou_x, + hoka_x + hodo_x + made_x + mama_x + mo1_x + mo2_x + motte_x + mono_x, + ya1_x + ya2_x + yara_x + yue_x + yo_x + yori_x + wa_x + wake_x, + wane_x + wayo_x + nn1_x + jya_x + tya_x + nagara2_x + wo_s_x, + ze_x + kke_x + n_si_x + deha_o, + + gotosi_x + saseru_x + zaru_x + zu_x + zunba_x + seru_x + souda_x + youtai_x, + denbun_x + ta_x + tai_x + tagaru_x + taru_x + da1_x + da2_x + daxtu_x, + darou_x + de_x + desi_x + desho_x + desu_x + na2_x + nara_x + nai_x, + nu_x + ne2_x + nn2_x + fuuda_x + besi_x + mai_x + masu_x + masure_x, + mase_x + mitaida_x + you_x + youda_x + rasii_x + rareru_x + reru_x + site_x, + + yougen_x + aru_x + ara_x + ari1_x + ari2_x + ari3_x + are1_x + are2_x, + arou_x + ii_x + itasi_x + itadaku_x + iru_x + eru_x + kakeru_x + kaneru_x, + karazu_x + gatai_x + gatida_x + kudasaru_x + gozai_x + sa1_x + si1_x + siro_x, + jyau_x + jimau_x + sugiru_x + subesi_x + suru_x + sure_x + se_x + seyo_x, + tamau_x + tayu_x + timau_x + dekiru_x + naru_x + nasai_x + nasaru_x + nikui_x, + yasui_x + yoi_x + yaru_x + ttarasii_x}; + +static u_char besi[] = { + wo_x + ttatte_x + ttara_x + tte1_o + tte2_x + ppanasi_x + ppoi_x + ue_x, + uti_x + oite_x + okeru_x + ori_x + ka1_x + ka2_x + kai_x + kasira_x, + katagata_x + kadouka_x + kana_x + kane_x + kamo_x + kara1_x + kara2_x + ga1_x, + ga2_x + gatera_x + kiri_x + kuseni_x + kurai_x + gurumi_x + kedo_x + koso_x, + koto_x + sa2_x + sae_x + si2_x + sika_x + sura_x + zutu_x + zo_x, + tame_x + dake_x + dano_x + darake_x + tuite_x + tuki_x + tutu_x + tumori_x, + te1_x + te2_x + teru_x + dearou_x + deru_x + to1_x + to2_o + totte_x, + toiu_o + toori_x + toki_x + tokoro_x + tote_x + tohaie_o + tomo_x + do_x, + doori_x + dokoro_x + dokoroka_x + domo_x + na1_x + naa_x + nagara_x + nazo_o, + nado_o + nari_x + nanka_o + nanzo_o + nante_o + ni1_x + ni2_x + ni3_x, + nite_x + nimo_x + ne1_x + nee_x + no1_x + no2_x + node_x + noni_x, + nomi_x + nominrz_x + ha_x + hazu_x + ba_x + bakari_x + he_x + hou_x, + hoka_x + hodo_x + made_x + mama_x + mo1_x + mo2_x + motte_x + mono_x, + ya1_x + ya2_x + yara_x + yue_x + yo_x + yori_x + wa_x + wake_x, + wane_x + wayo_x + nn1_x + jya_x + tya_x + nagara2_x + wo_s_x, + ze_x + kke_x + n_si_x + deha_o, + + gotosi_x + saseru_x + zaru_x + zu_x + zunba_x + seru_x + souda_x + youtai_x, + denbun_x + ta_x + tai_x + tagaru_x + taru_x + da1_x + da2_x + daxtu_x, + darou_x + de_x + desi_x + desho_x + desu_x + na2_x + nara_x + nai_x, + nu_x + ne2_x + nn2_x + fuuda_x + besi_x + mai_x + masu_x + masure_x, + mase_x + mitaida_x + you_x + youda_x + rasii_x + rareru_x + reru_x + site_x, + + yougen_x + aru_x + ara_x + ari1_x + ari2_x + ari3_x + are1_x + are2_x, + arou_x + ii_x + itasi_x + itadaku_x + iru_x + eru_x + kakeru_x + kaneru_x, + karazu_x + gatai_x + gatida_x + kudasaru_x + gozai_x + sa1_x + si1_x + siro_x, + jyau_x + jimau_x + sugiru_x + subesi_x + suru_x + sure_x + se_x + seyo_x, + tamau_x + tayu_x + timau_x + dekiru_x + naru_x + nasai_x + nasaru_x + nikui_x, + yasui_x + yoi_x + yaru_x + ttarasii_x}; + +static u_char zu[] = { + wo_x + ttatte_x + ttara_x + tte1_o + tte2_x + ppanasi_x + ppoi_x + ue_x, + uti_x + oite_x + okeru_x + ori_x + ka1_x + ka2_x + kai_x + kasira_x, + katagata_x + kadouka_x + kana_x + kane_x + kamo_x + kara1_x + kara2_x + ga1_x, + ga2_x + gatera_x + kiri_x + kuseni_x + kurai_x + gurumi_x + kedo_x + koso_x, + koto_x + sa2_x + sae_x + si2_x + sika_x + sura_x + zutu_x + zo_x, + tame_x + dake_x + dano_x + darake_x + tuite_x + tuki_x + tutu_x + tumori_x, + te1_x + te2_x + teru_x + dearou_x + deru_x + to1_x + to2_o + totte_x, + toiu_o + toori_x + toki_x + tokoro_x + tote_x + tohaie_o + tomo_x + do_x, + doori_x + dokoro_x + dokoroka_x + domo_x + na1_x + naa_x + nagara_x + nazo_x, + nado_x + nari_x + nanka_x + nanzo_x + nante_x + ni1_x + ni2_x + ni3_o, + nite_x + nimo_x + ne1_x + nee_x + no1_x + no2_x + node_x + noni_x, + nomi_x + nominrz_x + ha_x + hazu_x + ba_x + bakari_x + he_x + hou_x, + hoka_x + hodo_x + made_x + mama_x + mo1_o + mo2_x + motte_x + mono_x, + ya1_x + ya2_x + yara_x + yue_x + yo_x + yori_x + wa_x + wake_x, + wane_x + wayo_x + nn1_x + jya_o + tya_x + nagara2_x + wo_s_x, + ze_x + kke_x + n_si_x + deha_o, + + gotosi_x + saseru_x + zaru_x + zu_x + zunba_x + seru_x + souda_x + youtai_x, + denbun_x + ta_x + tai_x + tagaru_x + taru_x + da1_x + da2_o + daxtu_o, + darou_o + de_o + desi_o + desho_o + desu_o + na2_x + nara_o + nai_x, + nu_x + ne2_x + nn2_x + fuuda_x + besi_x + mai_x + masu_x + masure_x, + mase_x + mitaida_x + you_x + youda_x + rasii_x + rareru_x + reru_x + site_x, + + yougen_x + aru_x + ara_x + ari1_x + ari2_x + ari3_x + are1_x + are2_x, + arou_x + ii_x + itasi_x + itadaku_x + iru_x + eru_x + kakeru_x + kaneru_x, + karazu_x + gatai_x + gatida_x + kudasaru_x + gozai_x + sa1_x + si1_x + siro_x, + jyau_x + jimau_x + sugiru_x + subesi_x + suru_x + sure_x + se_x + seyo_x, + tamau_x + tayu_x + timau_x + dekiru_x + naru_x + nasai_x + nasaru_x + nikui_x, + yasui_x + yoi_x + yaru_x + ttarasii_x}; + +static u_char souda[] = { + wo_x + ttatte_x + ttara_x + tte1_o + tte2_x + ppanasi_x + ppoi_x + ue_x, + uti_x + oite_x + okeru_x + ori_x + ka1_o + ka2_x + kai_x + kasira_x, + katagata_x + kadouka_o + kana_x + kane_x + kamo_x + kara1_x + kara2_o + ga1_x, + ga2_o + gatera_x + kiri_x + kuseni_x + kurai_x + gurumi_x + kedo_o + koso_x, + koto_x + sa2_x + sae_x + si2_o + sika_x + sura_x + zutu_x + zo_o, + tame_x + dake_x + dano_x + darake_x + tuite_x + tuki_x + tutu_x + tumori_x, + te1_x + te2_x + teru_x + dearou_x + deru_x + to1_x + to2_o + totte_x, + toiu_o + toori_x + toki_x + tokoro_x + tote_o + tohaie_o + tomo_x + do_x, + doori_x + dokoro_x + dokoroka_o + domo_x + na1_o + naa_o + nagara_x + nazo_x, + nado_x + nari_x + nanka_x + nanzo_x + nante_x + ni1_x + ni2_x + ni3_x, + nite_x + nimo_x + ne1_o + nee_o + no1_x + no2_x + node_x + noni_x, + nomi_x + nominrz_x + ha_x + hazu_x + ba_x + bakari_x + he_x + hou_x, + hoka_x + hodo_x + made_x + mama_x + mo1_x + mo2_x + motte_x + mono_x, + ya1_x + ya2_x + yara_x + yue_x + yo_o + yori_x + wa_o + wake_x, + wane_o + wayo_o + nn1_x + jya_x + tya_x + nagara2_x + wo_s_x, + ze_x + kke_x + n_si_x + deha_o, + + gotosi_x + saseru_x + zaru_x + zu_x + zunba_x + seru_x + souda_x + youtai_x, + denbun_x + ta_x + tai_x + tagaru_x + taru_x + da1_x + da2_x + daxtu_x, + darou_x + de_x + desi_x + desho_x + desu_x + na2_x + nara_x + nai_x, + nu_x + ne2_x + nn2_x + fuuda_x + besi_x + mai_x + masu_x + masure_x, + mase_x + mitaida_x + you_x + youda_x + rasii_x + rareru_x + reru_x + site_x, + + yougen_x + aru_x + ara_x + ari1_x + ari2_x + ari3_x + are1_x + are2_x, + arou_x + ii_x + itasi_x + itadaku_x + iru_x + eru_x + kakeru_x + kaneru_x, + karazu_x + gatai_x + gatida_x + kudasaru_x + gozai_x + sa1_x + si1_x + siro_x, + jyau_x + jimau_x + sugiru_x + subesi_x + suru_x + sure_x + se_x + seyo_x, + tamau_x + tayu_x + timau_x + dekiru_x + naru_x + nasai_x + nasaru_x + nikui_x, + yasui_x + yoi_x + yaru_x + ttarasii_x}; + +static u_char mai[] = { + wo_x + ttatte_o + ttara_x + tte1_o + tte2_x + ppanasi_x + ppoi_x + ue_x, + uti_x + oite_x + okeru_x + ori_x + ka1_x + ka2_o + kai_x + kasira_x, + katagata_x + kadouka_x + kana_x + kane_x + kamo_x + kara1_x + kara2_x + ga1_x, + ga2_o + gatera_x + kiri_x + kuseni_x + kurai_x + gurumi_x + kedo_o + koso_x, + koto_x + sa2_x + sae_x + si2_x + sika_x + sura_x + zutu_x + zo_x, + tame_x + dake_x + dano_x + darake_x + tuite_x + tuki_x + tutu_x + tumori_x, + te1_x + te2_x + teru_x + dearou_x + deru_x + to1_x + to2_o + totte_x, + toiu_o + toori_x + toki_x + tokoro_x + tote_o + tohaie_o + tomo_x + do_x, + doori_x + dokoro_x + dokoroka_o + domo_x + na1_o + naa_o + nagara_x + nazo_o, + nado_o + nari_x + nanka_o + nanzo_o + nante_o + ni1_x + ni2_x + ni3_x, + nite_x + nimo_x + ne1_o + nee_o + no1_x + no2_x + node_x + noni_x, + nomi_x + nominrz_x + ha_x + hazu_x + ba_x + bakari_x + he_x + hou_x, + hoka_x + hodo_x + made_x + mama_x + mo1_x + mo2_x + motte_x + mono_x, + ya1_x + ya2_x + yara_x + yue_x + yo_x + yori_x + wa_x + wake_x, + wane_x + wayo_x + nn1_x + jya_x + tya_x + nagara2_x + wo_s_x, + ze_x + kke_x + n_si_x + deha_o, + + gotosi_x + saseru_x + zaru_x + zu_x + zunba_x + seru_x + souda_x + youtai_x, + denbun_x + ta_x + tai_x + tagaru_x + taru_x + da1_x + da2_x + daxtu_x, + darou_x + de_x + desi_x + desho_x + desu_x + na2_x + nara_x + nai_x, + nu_x + ne2_x + nn2_x + fuuda_x + besi_x + mai_x + masu_x + masure_x, + mase_x + mitaida_x + you_x + youda_x + rasii_x + rareru_x + reru_x + site_x, + + yougen_x + aru_x + ara_x + ari1_x + ari2_x + ari3_x + are1_x + are2_x, + arou_x + ii_x + itasi_x + itadaku_x + iru_x + eru_x + kakeru_x + kaneru_x, + karazu_x + gatai_x + gatida_x + kudasaru_x + gozai_x + sa1_x + si1_x + siro_x, + jyau_x + jimau_x + sugiru_x + subesi_x + suru_x + sure_x + se_x + seyo_x, + tamau_x + tayu_x + timau_x + dekiru_x + naru_x + nasai_x + nasaru_x + nikui_x, + yasui_x + yoi_x + yaru_x + ttarasii_x}; + +static u_char mitaida[] = { + wo_x + ttatte_x + ttara_x + tte1_x + tte2_x + ppanasi_x + ppoi_x + ue_x, + uti_x + oite_x + okeru_x + ori_x + ka1_x + ka2_x + kai_x + kasira_x, + katagata_x + kadouka_x + kana_x + kane_x + kamo_x + kara1_x + kara2_o + ga1_x, + ga2_o + gatera_x + kiri_x + kuseni_x + kurai_x + gurumi_x + kedo_o + koso_x, + koto_x + sa2_x + sae_x + si2_o + sika_x + sura_x + zutu_x + zo_o, + tame_x + dake_x + dano_x + darake_x + tuite_x + tuki_x + tutu_x + tumori_x, + te1_x + te2_x + teru_x + dearou_x + deru_x + to1_x + to2_o + totte_x, + toiu_o + toori_x + toki_x + tokoro_x + tote_o + tohaie_o + tomo_x + do_x, + doori_x + dokoro_x + dokoroka_x + domo_x + na1_o + naa_o + nagara_x + nazo_o, + nado_o + nari_x + nanka_o + nanzo_o + nante_o + ni1_x + ni2_x + ni3_x, + nite_x + nimo_x + ne1_o + nee_o + no1_x + no2_x + node_x + noni_x, + nomi_x + nominrz_x + ha_x + hazu_x + ba_x + bakari_x + he_x + hou_x, + hoka_x + hodo_x + made_x + mama_x + mo1_x + mo2_x + motte_x + mono_x, + ya1_x + ya2_x + yara_o + yue_x + yo_o + yori_x + wa_o + wake_x, + wane_o + wayo_x + nn1_x + jya_x + tya_x + nagara2_x + wo_s_x, + ze_x + kke_x + n_si_x + deha_o, + + gotosi_x + saseru_x + zaru_x + zu_x + zunba_x + seru_x + souda_o + youtai_x, + denbun_o + ta_x + tai_x + tagaru_x + taru_x + da1_x + da2_x + daxtu_x, + darou_x + de_x + desi_x + desho_x + desu_x + na2_x + nara_x + nai_x, + nu_x + ne2_x + nn2_x + fuuda_x + besi_x + mai_x + masu_x + masure_x, + mase_x + mitaida_x + you_x + youda_x + rasii_x + rareru_x + reru_x + site_x, + + yougen_x + aru_x + ara_x + ari1_x + ari2_x + ari3_x + are1_x + are2_x, + arou_x + ii_x + itasi_x + itadaku_x + iru_x + eru_x + kakeru_x + kaneru_x, + karazu_x + gatai_x + gatida_x + kudasaru_x + gozai_x + sa1_x + si1_x + siro_x, + jyau_x + jimau_x + sugiru_x + subesi_x + suru_x + sure_x + se_x + seyo_x, + tamau_x + tayu_x + timau_x + dekiru_x + naru_x + nasai_x + nasaru_x + nikui_x, + yasui_x + yoi_x + yaru_x + ttarasii_x}; + +static u_char shuusi[] = { + wo_x + ttatte_o + ttara_o + tte1_o + tte2_x + ppanasi_x + ppoi_x + ue_o, + uti_o + oite_x + okeru_x + ori_o + ka1_o + ka2_x + kai_x + kasira_o, + katagata_x + kadouka_o + kana_o + kane_o + kamo_o + kara1_x + kara2_o + ga1_x, + ga2_o + gatera_x + kiri_o + kuseni_o + kurai_o + gurumi_x + kedo_o + koso_x, + koto_o + sa2_o + sae_x + si2_o + sika_o + sura_x + zutu_x + zo_o, + tame_o + dake_o + dano_o + darake_x + tuite_x + tuki_x + tutu_x + tumori_o, + te1_x + te2_x + teru_x + dearou_o + deru_x + to1_x + to2_o + totte_x, + toiu_o + toori_o + toki_o + tokoro_o + tote_o + tohaie_o + tomo_x + do_x, + doori_x + dokoro_o + dokoroka_o + domo_x + na1_o + naa_o + nagara_x + nazo_o, + nado_o + nari_o + nanka_o + nanzo_o + nante_o + ni1_x + ni2_x + ni3_o, + nite_x + nimo_x + ne1_o + nee_o + no1_x + no2_o + node_o + noni_o, + nomi_o + nominrz_o + ha_x + hazu_o + ba_x + bakari_o + he_x + hou_o, + hoka_o + hodo_o + made_o + mama_o + mo1_o + mo2_x + motte_x + mono_o, + ya1_x + ya2_o + yara_o + yue_o + yo_o + yori_o + wa_o + wake_o, + wane_o + wayo_o + nn1_o + jya_o + tya_x + nagara2_x + wo_s_x, + ze_o + kke_x + n_si_x + deha_o, + + gotosi_o + saseru_x + zaru_x + zu_x + zunba_x + seru_x + souda_o + youtai_x, + denbun_o + ta_x + tai_x + tagaru_x + taru_x + da1_x + da2_x + daxtu_x, + darou_o + de_x + desi_x + desho_o + desu_x + na2_x + nara_o + nai_x, + nu_x + ne2_x + nn2_x + fuuda_x + besi_o + mai_o + masu_x + masure_x, + mase_x + mitaida_o + you_x + youda_o + rasii_o + rareru_x + reru_x + site_x, + + yougen_x + aru_x + ara_x + ari1_x + ari2_x + ari3_x + are1_x + are2_x, + arou_x + ii_x + itasi_x + itadaku_x + iru_x + eru_x + kakeru_x + kaneru_x, + karazu_x + gatai_x + gatida_x + kudasaru_x + gozai_x + sa1_x + si1_x + siro_x, + jyau_x + jimau_x + sugiru_x + subesi_x + suru_x + sure_x + se_x + seyo_x, + tamau_x + tayu_x + timau_x + dekiru_x + naru_x + nasai_x + nasaru_x + nikui_x, + yasui_x + yoi_x + yaru_x + ttarasii_x}; + +static u_char kshuusi[] = { + wo_x + ttatte_o + ttara_o + tte1_o + tte2_x + ppanasi_x + ppoi_x + ue_o, + uti_o + oite_x + okeru_x + ori_x + ka1_o + ka2_x + kai_x + kasira_o, + katagata_x + kadouka_o + kana_o + kane_o + kamo_o + kara1_x + kara2_o + ga1_x, + ga2_o + gatera_x + kiri_x + kuseni_o + kurai_o + gurumi_x + kedo_o + koso_o, + koto_o + sa2_o + sae_x + si2_o + sika_x + sura_x + zutu_x + zo_o, + tame_o + dake_o + dano_o + darake_x + tuite_x + tuki_x + tutu_x + tumori_o, + te1_x + te2_x + teru_x + dearou_o + deru_x + to1_x + to2_o + totte_x, + toiu_o + toori_x + toki_o + tokoro_o + tote_o + tohaie_o + tomo_x + do_x, + doori_x + dokoro_o + dokoroka_o + domo_x + na1_o + naa_o + nagara_x + nazo_o, + nado_o + nari_o + nanka_o + nanzo_o + nante_o + ni1_x + ni2_x + ni3_o, + nite_x + nimo_x + ne1_o + nee_x + no1_x + no2_o + node_o + noni_o, + nomi_o + nominrz_o + ha_x + hazu_o + ba_x + bakari_o + he_x + hou_o, + hoka_o + hodo_o + made_o + mama_o + mo1_o + mo2_x + motte_x + mono_o, + ya1_x + ya2_x + yara_o + yue_o + yo_o + yori_o + wa_o + wake_o, + wane_o + wayo_o + nn1_o + jya_o + tya_x + nagara2_x + wo_s_x, + ze_o + kke_x + n_si_x + deha_o, + + gotosi_x + saseru_x + zaru_x + zu_x + zunba_x + seru_x + souda_o + youtai_x, + denbun_o + ta_x + tai_x + tagaru_x + taru_x + da1_x + da2_x + daxtu_x, + darou_o + de_x + desi_o + desho_o + desu_o + na2_x + nara_o + nai_x, + nu_x + ne2_x + nn2_x + fuuda_x + besi_x + mai_x + masu_x + masure_x, + mase_x + mitaida_o + you_x + youda_o + rasii_o + rareru_x + reru_x + site_x, + + yougen_x + aru_x + ara_x + ari1_x + ari2_x + ari3_x + are1_x + are2_x, + arou_x + ii_x + itasi_x + itadaku_x + iru_x + eru_x + kakeru_x + kaneru_x, + karazu_x + gatai_x + gatida_x + kudasaru_x + gozai_x + sa1_x + si1_x + siro_x, + jyau_x + jimau_x + sugiru_x + subesi_x + suru_x + sure_x + se_x + seyo_x, + tamau_x + tayu_x + timau_x + dekiru_x + naru_x + nasai_x + nasaru_x + nikui_x, + yasui_x + yoi_x + yaru_x + ttarasii_x}; + +static u_char zaru[] = { + wo_o + ttatte_x + ttara_x + tte1_x + tte2_x + ppanasi_x + ppoi_x + ue_o, + uti_o + oite_x + okeru_x + ori_o + ka1_x + ka2_x + kai_x + kasira_x, + katagata_x + kadouka_x + kana_x + kane_x + kamo_x + kara1_x + kara2_x + ga1_x, + ga2_x + gatera_x + kiri_x + kuseni_x + kurai_x + gurumi_x + kedo_x + koso_x, + koto_o + sa2_x + sae_x + si2_x + sika_x + sura_x + zutu_x + zo_x, + tame_o + dake_x + dano_x + darake_x + tuite_x + tuki_x + tutu_x + tumori_x, + te1_x + te2_x + teru_x + dearou_x + deru_x + to1_x + to2_x + totte_x, + toiu_x + toori_x + toki_o + tokoro_o + tote_x + tohaie_x + tomo_x + do_x, + doori_x + dokoro_x + dokoroka_x + domo_x + na1_x + naa_x + nagara_x + nazo_x, + nado_x + nari_x + nanka_x + nanzo_x + nante_x + ni1_x + ni2_x + ni3_x, + nite_x + nimo_x + ne1_x + nee_x + no1_x + no2_x + node_x + noni_x, + nomi_x + nominrz_x + ha_x + hazu_x + ba_x + bakari_x + he_x + hou_x, + hoka_o + hodo_x + made_o + mama_o + mo1_x + mo2_x + motte_x + mono_o, + ya1_x + ya2_x + yara_x + yue_o + yo_x + yori_o + wa_x + wake_x, + wane_x + wayo_x + nn1_x + jya_x + tya_x + nagara2_x + wo_s_x, + ze_x + kke_x + n_si_x + deha_x, + + gotosi_x + saseru_x + zaru_x + zu_x + zunba_x + seru_x + souda_x + youtai_x, + denbun_x + ta_x + tai_x + tagaru_x + taru_x + da1_x + da2_x + daxtu_x, + darou_x + de_x + desi_x + desho_x + desu_x + na2_x + nara_x + nai_x, + nu_x + ne2_x + nn2_x + fuuda_x + besi_x + mai_x + masu_x + masure_x, + mase_x + mitaida_x + you_x + youda_x + rasii_x + rareru_x + reru_x + site_x, + + yougen_x + aru_x + ara_x + ari1_x + ari2_x + ari3_x + are1_x + are2_x, + arou_x + ii_x + itasi_x + itadaku_x + iru_x + eru_x + kakeru_x + kaneru_x, + karazu_x + gatai_x + gatida_x + kudasaru_x + gozai_x + sa1_x + si1_x + siro_x, + jyau_x + jimau_x + sugiru_x + subesi_x + suru_x + sure_x + se_x + seyo_x, + tamau_x + tayu_x + timau_x + dekiru_x + naru_x + nasai_x + nasaru_x + nikui_x, + yasui_x + yoi_x + yaru_x + ttarasii_x}; + +static u_char soudesu[] = { + wo_x + ttatte_o + ttara_x + tte1_o + tte2_x + ppanasi_x + ppoi_x + ue_x, + uti_x + oite_x + okeru_x + ori_x + ka1_x + ka2_o + kai_x + kasira_x, + katagata_x + kadouka_x + kana_x + kane_x + kamo_x + kara1_x + kara2_o + ga1_x, + ga2_o + gatera_x + kiri_x + kuseni_x + kurai_x + gurumi_x + kedo_o + koso_x, + koto_x + sa2_x + sae_x + si2_o + sika_x + sura_x + zutu_x + zo_o, + tame_x + dake_x + dano_x + darake_x + tuite_x + tuki_x + tutu_x + tumori_x, + te1_x + te2_x + teru_x + dearou_x + deru_x + to1_x + to2_o + totte_x, + toiu_o + toori_x + toki_x + tokoro_x + tote_o + tohaie_o + tomo_x + do_x, + doori_x + dokoro_x + dokoroka_x + domo_x + na1_o + naa_o + nagara_x + nazo_x, + nado_x + nari_x + nanka_x + nanzo_x + nante_x + ni1_x + ni2_x + ni3_x, + nite_x + nimo_x + ne1_o + nee_o + no1_x + no2_x + node_o + noni_o, + nomi_x + nominrz_x + ha_x + hazu_x + ba_x + bakari_x + he_x + hou_x, + hoka_x + hodo_x + made_x + mama_x + mo1_x + mo2_x + motte_x + mono_x, + ya1_x + ya2_x + yara_x + yue_x + yo_o + yori_x + wa_o + wake_x, + wane_o + wayo_o + nn1_o + jya_x + tya_x + nagara2_x + wo_s_x, + ze_x + kke_x + n_si_x + deha_o, + + gotosi_x + saseru_x + zaru_x + zu_x + zunba_x + seru_x + souda_x + youtai_x, + denbun_x + ta_x + tai_x + tagaru_x + taru_x + da1_x + da2_x + daxtu_x, + darou_x + de_x + desi_x + desho_x + desu_x + na2_x + nara_x + nai_x, + nu_x + ne2_x + nn2_x + fuuda_x + besi_x + mai_x + masu_x + masure_x, + mase_x + mitaida_x + you_x + youda_x + rasii_x + rareru_x + reru_x + site_x, + + yougen_x + aru_x + ara_x + ari1_x + ari2_x + ari3_x + are1_x + are2_x, + arou_x + ii_x + itasi_x + itadaku_x + iru_x + eru_x + kakeru_x + kaneru_x, + karazu_x + gatai_x + gatida_x + kudasaru_x + gozai_x + sa1_x + si1_x + siro_x, + jyau_x + jimau_x + sugiru_x + subesi_x + suru_x + sure_x + se_x + seyo_x, + tamau_x + tayu_x + timau_x + dekiru_x + naru_x + nasai_x + nasaru_x + nikui_x, + yasui_x + yoi_x + yaru_x + ttarasii_x}; + +static u_char ta[] = { + wo_x + ttatte_x + ttara_x + tte1_o + tte2_x + ppanasi_x + ppoi_x + ue_o, + uti_o + oite_x + okeru_x + ori_o + ka1_o + ka2_x + kai_x + kasira_o, + katagata_x + kadouka_o + kana_o + kane_o + kamo_o + kara1_x + kara2_o + ga1_x, + ga2_o + gatera_x + kiri_o + kuseni_o + kurai_o + gurumi_x + kedo_o + koso_x, + koto_o + sa2_o + sae_x + si2_o + sika_x + sura_x + zutu_x + zo_o, + tame_o + dake_o + dano_o + darake_x + tuite_x + tuki_x + tutu_x + tumori_o, + te1_x + te2_x + teru_x + dearou_o + deru_x + to1_x + to2_o + totte_x, + toiu_o + toori_x + toki_o + tokoro_o + tote_o + tohaie_o + tomo_x + do_x, + doori_x + dokoro_o + dokoroka_o + domo_x + na1_o + naa_o + nagara_x + nazo_o, + nado_o + nari_o + nanka_o + nanzo_o + nante_o + ni1_x + ni2_x + ni3_o, + nite_x + nimo_x + ne1_o + nee_o + no1_x + no2_o + node_o + noni_o, + nomi_o + nominrz_o + ha_x + hazu_o + ba_x + bakari_o + he_x + hou_o, + hoka_o + hodo_o + made_o + mama_o + mo1_o + mo2_x + motte_x + mono_o, + ya1_x + ya2_x + yara_o + yue_o + yo_o + yori_o + wa_o + wake_o, + wane_o + wayo_o + nn1_o + jya_o + tya_x + nagara2_x + wo_s_x, + ze_o + kke_o + n_si_x + deha_o, + + gotosi_x + saseru_x + zaru_x + zu_x + zunba_x + seru_x + souda_o + youtai_x, + denbun_o + ta_x + tai_x + tagaru_x + taru_x + da1_x + da2_x + daxtu_x, + darou_o + de_x + desi_x + desho_o + desu_o + na2_x + nara_o + nai_x, + nu_x + ne2_x + nn2_x + fuuda_x + besi_x + mai_x + masu_x + masure_x, + mase_x + mitaida_o + you_x + youda_o + rasii_o + rareru_x + reru_x + site_x, + + yougen_x + aru_x + ara_x + ari1_x + ari2_x + ari3_x + are1_x + are2_x, + arou_x + ii_x + itasi_x + itadaku_x + iru_x + eru_x + kakeru_x + kaneru_x, + karazu_x + gatai_x + gatida_x + kudasaru_x + gozai_x + sa1_x + si1_x + siro_x, + jyau_x + jimau_x + sugiru_x + subesi_x + suru_x + sure_x + se_x + seyo_x, + tamau_x + tayu_x + timau_x + dekiru_x + naru_x + nasai_x + nasaru_x + nikui_x, + yasui_x + yoi_x + yaru_x + ttarasii_x}; + +static u_char tai[] = { + wo_x + ttatte_o + ttara_x + tte1_o + tte2_x + ppanasi_x + ppoi_x + ue_o, + uti_o + oite_x + okeru_x + ori_x + ka1_o + ka2_x + kai_x + kasira_o, + katagata_x + kadouka_o + kana_o + kane_o + kamo_o + kara1_x + kara2_o + ga1_x, + ga2_o + gatera_x + kiri_x + kuseni_o + kurai_o + gurumi_x + kedo_o + koso_x, + koto_o + sa2_o + sae_x + si2_o + sika_x + sura_x + zutu_x + zo_o, + tame_o + dake_o + dano_o + darake_x + tuite_x + tuki_x + tutu_x + tumori_x, + te1_x + te2_x + teru_x + dearou_o + deru_x + to1_x + to2_o + totte_x, + toiu_o + toori_x + toki_o + tokoro_o + tote_o + tohaie_o + tomo_x + do_x, + doori_x + dokoro_o + dokoroka_o + domo_x + na1_o + naa_o + nagara_x + nazo_o, + nado_o + nari_o + nanka_o + nanzo_o + nante_o + ni1_x + ni2_x + ni3_o, + nite_x + nimo_x + ne1_o + nee_o + no1_x + no2_o + node_o + noni_o, + nomi_x + nominrz_x + ha_x + hazu_o + ba_x + bakari_o + he_x + hou_o, + hoka_o + hodo_o + made_x + mama_x + mo1_o + mo2_x + motte_x + mono_o, + ya1_x + ya2_x + yara_o + yue_o + yo_o + yori_o + wa_o + wake_o, + wane_o + wayo_o + nn1_o + jya_o + tya_x + nagara2_x + wo_s_x, + ze_x + kke_x + n_si_x + deha_o, + + gotosi_x + saseru_x + zaru_x + zu_x + zunba_x + seru_x + souda_o + youtai_x, + denbun_o + ta_x + tai_x + tagaru_x + taru_x + da1_x + da2_x + daxtu_x, + darou_o + de_x + desi_x + desho_o + desu_o + na2_x + nara_o + nai_x, + nu_x + ne2_x + nn2_x + fuuda_x + besi_x + mai_x + masu_x + masure_x, + mase_x + mitaida_o + you_x + youda_o + rasii_o + rareru_x + reru_x + site_x, + + yougen_x + aru_x + ara_x + ari1_x + ari2_x + ari3_x + are1_x + are2_x, + arou_x + ii_x + itasi_x + itadaku_x + iru_x + eru_x + kakeru_x + kaneru_x, + karazu_x + gatai_x + gatida_x + kudasaru_x + gozai_x + sa1_x + si1_x + siro_x, + jyau_x + jimau_x + sugiru_x + subesi_x + suru_x + sure_x + se_x + seyo_x, + tamau_x + tayu_x + timau_x + dekiru_x + naru_x + nasai_x + nasaru_x + nikui_x, + yasui_x + yoi_x + yaru_x + ttarasii_x}; + +static u_char desu[] = { + wo_x + ttatte_o + ttara_x + tte1_o + tte2_x + ppanasi_x + ppoi_x + ue_x, + uti_x + oite_x + okeru_x + ori_x + ka1_x + ka2_o + kai_x + kasira_x, + katagata_x + kadouka_x + kana_x + kane_x + kamo_x + kara1_x + kara2_o + ga1_x, + ga2_o + gatera_x + kiri_x + kuseni_x + kurai_x + gurumi_x + kedo_o + koso_x, + koto_x + sa2_x + sae_x + si2_o + sika_x + sura_x + zutu_x + zo_o, + tame_x + dake_x + dano_o + darake_x + tuite_x + tuki_x + tutu_x + tumori_x, + te1_x + te2_x + teru_x + dearou_x + deru_x + to1_x + to2_o + totte_x, + toiu_o + toori_x + toki_x + tokoro_x + tote_o + tohaie_o + tomo_x + do_x, + doori_x + dokoro_o + dokoroka_o + domo_x + na1_o + naa_o + nagara_x + nazo_o, + nado_o + nari_x + nanka_o + nanzo_o + nante_o + ni1_x + ni2_x + ni3_x, + nite_x + nimo_x + ne1_o + nee_o + no1_x + no2_o + node_o + noni_o, + nomi_x + nominrz_x + ha_x + hazu_x + ba_x + bakari_x + he_x + hou_x, + hoka_x + hodo_x + made_x + mama_x + mo1_x + mo2_x + motte_x + mono_o, + ya1_x + ya2_x + yara_o + yue_o + yo_o + yori_x + wa_o + wake_x, + wane_o + wayo_x + nn1_o + jya_x + tya_x + nagara2_x + wo_s_x, + ze_x + kke_x + n_si_x + deha_o, + + gotosi_x + saseru_x + zaru_x + zu_x + zunba_x + seru_x + souda_x + youtai_x, + denbun_x + ta_x + tai_x + tagaru_x + taru_x + da1_x + da2_x + daxtu_x, + darou_x + de_x + desi_x + desho_x + desu_x + na2_x + nara_x + nai_x, + nu_x + ne2_x + nn2_x + fuuda_x + besi_x + mai_x + masu_x + masure_x, + mase_x + mitaida_x + you_x + youda_x + rasii_x + rareru_x + reru_x + site_x, + + yougen_x + aru_x + ara_x + ari1_x + ari2_x + ari3_x + are1_x + are2_x, + arou_x + ii_x + itasi_x + itadaku_x + iru_x + eru_x + kakeru_x + kaneru_x, + karazu_x + gatai_x + gatida_x + kudasaru_x + gozai_x + sa1_x + si1_x + siro_x, + jyau_x + jimau_x + sugiru_x + subesi_x + suru_x + sure_x + se_x + seyo_x, + tamau_x + tayu_x + timau_x + dekiru_x + naru_x + nasai_x + nasaru_x + nikui_x, + yasui_x + yoi_x + yaru_x + ttarasii_x}; + +static u_char nai[] = { + wo_x + ttatte_o + ttara_x + tte1_o + tte2_x + ppanasi_x + ppoi_x + ue_o, + uti_o + oite_x + okeru_x + ori_x + ka1_o + ka2_x + kai_x + kasira_o, + katagata_x + kadouka_o + kana_o + kane_o + kamo_o + kara1_x + kara2_o + ga1_x, + ga2_o + gatera_x + kiri_x + kuseni_o + kurai_o + gurumi_x + kedo_o + koso_x, + koto_o + sa2_o + sae_x + si2_o + sika_x + sura_x + zutu_x + zo_o, + tame_o + dake_o + dano_o + darake_x + tuite_x + tuki_x + tutu_x + tumori_o, + te1_x + te2_x + teru_x + dearou_o + deru_x + to1_x + to2_o + totte_x, + toiu_o + toori_x + toki_o + tokoro_o + tote_x + tohaie_o + tomo_x + do_x, + doori_x + dokoro_o + dokoroka_o + domo_x + na1_o + naa_o + nagara_x + nazo_o, + nado_o + nari_o + nanka_o + nanzo_o + nante_o + ni1_x + ni2_x + ni3_o, + nite_x + nimo_x + ne1_o + nee_o + no1_x + no2_o + node_o + noni_o, + nomi_x + nominrz_x + ha_x + hazu_o + ba_x + bakari_o + he_x + hou_o, + hoka_o + hodo_o + made_o + mama_o + mo1_o + mo2_x + motte_x + mono_o, + ya1_x + ya2_x + yara_o + yue_o + yo_o + yori_o + wa_o + wake_o, + wane_o + wayo_o + nn1_o + jya_o + tya_x + nagara2_o + wo_s_x, + ze_o + kke_o + n_si_x + deha_o, + + gotosi_x + saseru_x + zaru_x + zu_x + zunba_x + seru_x + souda_o + youtai_x, + denbun_o + ta_x + tai_x + tagaru_x + taru_x + da1_x + da2_x + daxtu_x, + darou_o + de_x + desi_x + desho_o + desu_o + na2_x + nara_o + nai_x, + nu_x + ne2_x + nn2_x + fuuda_x + besi_x + mai_x + masu_x + masure_x, + mase_x + mitaida_o + you_x + youda_o + rasii_o + rareru_x + reru_x + site_x, + + yougen_x + aru_x + ara_x + ari1_x + ari2_x + ari3_x + are1_x + are2_x, + arou_x + ii_x + itasi_x + itadaku_x + iru_x + eru_x + kakeru_x + kaneru_x, + karazu_x + gatai_x + gatida_x + kudasaru_x + gozai_x + sa1_x + si1_x + siro_x, + jyau_x + jimau_x + sugiru_x + subesi_x + suru_x + sure_x + se_x + seyo_x, + tamau_x + tayu_x + timau_x + dekiru_x + naru_x + nasai_x + nasaru_x + nikui_x, + yasui_x + yoi_x + yaru_x + ttarasii_x}; + +static u_char nu[] = { + wo_x + ttatte_o + ttara_x + tte1_o + tte2_x + ppanasi_x + ppoi_x + ue_o, + uti_o + oite_x + okeru_x + ori_o + ka1_x + ka2_o + kai_x + kasira_x, + katagata_x + kadouka_x + kana_x + kane_x + kamo_x + kara1_x + kara2_o + ga1_x, + ga2_o + gatera_x + kiri_x + kuseni_x + kurai_x + gurumi_x + kedo_o + koso_x, + koto_o + sa2_x + sae_x + si2_o + sika_x + sura_x + zutu_x + zo_x, + tame_x + dake_x + dano_o + darake_x + tuite_x + tuki_x + tutu_x + tumori_x, + te1_x + te2_x + teru_x + dearou_o + deru_x + to1_x + to2_o + totte_x, + toiu_o + toori_x + toki_x + tokoro_x + tote_x + tohaie_o + tomo_x + do_x, + doori_x + dokoro_o + dokoroka_o + domo_x + na1_x + naa_x + nagara_x + nazo_o, + nado_o + nari_o + nanka_o + nanzo_o + nante_o + ni1_x + ni2_x + ni3_x, + nite_x + nimo_x + ne1_x + nee_x + no1_x + no2_o + node_o + noni_o, + nomi_x + nominrz_x + ha_x + hazu_x + ba_x + bakari_x + he_x + hou_x, + hoka_x + hodo_o + made_o + mama_x + mo1_o + mo2_x + motte_x + mono_o, + ya1_x + ya2_x + yara_o + yue_o + yo_x + yori_o + wa_x + wake_x, + wane_x + wayo_x + nn1_x + jya_x + tya_x + nagara2_o + wo_s_x, + ze_x + kke_x + n_si_x + deha_o, + + gotosi_x + saseru_x + zaru_x + zu_x + zunba_x + seru_x + souda_o + youtai_x, + denbun_o + ta_x + tai_x + tagaru_x + taru_x + da1_x + da2_x + daxtu_x, + darou_o + de_x + desi_x + desho_x + desu_x + na2_x + nara_o + nai_x, + nu_x + ne2_x + nn2_x + fuuda_x + besi_x + mai_o + masu_x + masure_x, + mase_x + mitaida_o + you_x + youda_o + rasii_o + rareru_x + reru_x + site_x, + + yougen_x + aru_x + ara_x + ari1_x + ari2_x + ari3_x + are1_x + are2_x, + arou_x + ii_x + itasi_x + itadaku_x + iru_x + eru_x + kakeru_x + kaneru_x, + karazu_x + gatai_x + gatida_x + kudasaru_x + gozai_x + sa1_x + si1_x + siro_x, + jyau_x + jimau_x + sugiru_x + subesi_x + suru_x + sure_x + se_x + seyo_x, + tamau_x + tayu_x + timau_x + dekiru_x + naru_x + nasai_x + nasaru_x + nikui_x, + yasui_x + yoi_x + yaru_x + ttarasii_x}; + +static u_char masu[] = { + wo_x + ttatte_o + ttara_x + tte1_o + tte2_x + ppanasi_x + ppoi_x + ue_o, + uti_o + oite_x + okeru_x + ori_o + ka1_x + ka2_o + kai_x + kasira_o, + katagata_x + kadouka_o + kana_o + kane_o + kamo_o + kara1_x + kara2_o + ga1_x, + ga2_o + gatera_x + kiri_x + kuseni_x + kurai_x + gurumi_x + kedo_o + koso_x, + koto_o + sa2_x + sae_x + si2_o + sika_x + sura_x + zutu_x + zo_o, + tame_x + dake_x + dano_o + darake_x + tuite_x + tuki_x + tutu_x + tumori_x, + te1_x + te2_x + teru_x + dearou_x + deru_x + to1_x + to2_o + totte_x, + toiu_o + toori_x + toki_x + tokoro_x + tote_x + tohaie_o + tomo_x + do_x, + doori_x + dokoro_o + dokoroka_o + domo_x + na1_x + naa_x + nagara_x + nazo_o, + nado_o + nari_o + nanka_o + nanzo_o + nante_o + ni1_x + ni2_x + ni3_x, + nite_x + nimo_o + ne1_o + nee_o + no1_x + no2_o + node_o + noni_o, + nomi_x + nominrz_x + ha_x + hazu_x + ba_x + bakari_x + he_x + hou_x, + hoka_o + hodo_o + made_o + mama_o + mo1_o + mo2_x + motte_x + mono_x, + ya1_x + ya2_o + yara_o + yue_x + yo_o + yori_o + wa_o + wake_x, + wane_o + wayo_o + nn1_o + jya_x + tya_x + nagara2_x + wo_s_x, + ze_x + kke_x + n_si_x + deha_o, + + gotosi_x + saseru_x + zaru_x + zu_x + zunba_x + seru_x + souda_x + youtai_x, + denbun_x + ta_x + tai_x + tagaru_x + taru_x + da1_x + da2_x + daxtu_x, + darou_x + de_x + desi_x + desho_o + desu_x + na2_x + nara_x + nai_x, + nu_x + ne2_x + nn2_x + fuuda_x + besi_x + mai_o + masu_x + masure_x, + mase_x + mitaida_x + you_o + youda_x + rasii_x + rareru_x + reru_x + site_x, + + yougen_x + aru_x + ara_x + ari1_x + ari2_x + ari3_x + are1_x + are2_x, + arou_x + ii_x + itasi_x + itadaku_x + iru_x + eru_x + kakeru_x + kaneru_x, + karazu_x + gatai_x + gatida_x + kudasaru_x + gozai_x + sa1_x + si1_x + siro_x, + jyau_x + jimau_x + sugiru_x + subesi_x + suru_x + sure_x + se_x + seyo_x, + tamau_x + tayu_x + timau_x + dekiru_x + naru_x + nasai_x + nasaru_x + nikui_x, + yasui_x + yoi_x + yaru_x + ttarasii_x}; + +static u_char nn2[] = { + wo_x + ttatte_x + ttara_x + tte1_o + tte2_x + ppanasi_x + ppoi_x + ue_x, + uti_x + oite_x + okeru_x + ori_x + ka1_x + ka2_o + kai_x + kasira_x, + katagata_x + kadouka_x + kana_x + kane_x + kamo_x + kara1_x + kara2_o + ga1_x, + ga2_o + gatera_x + kiri_x + kuseni_o + kurai_x + gurumi_x + kedo_o + koso_x, + koto_o + sa2_x + sae_x + si2_o + sika_x + sura_x + zutu_x + zo_o, + tame_x + dake_x + dano_x + darake_x + tuite_x + tuki_x + tutu_x + tumori_o, + te1_x + te2_x + teru_x + dearou_x + deru_x + to1_x + to2_o + totte_x, + toiu_o + toori_x + toki_o + tokoro_x + tote_x + tohaie_o + tomo_x + do_x, + doori_x + dokoro_x + dokoroka_o + domo_x + na1_x + naa_x + nagara_x + nazo_o, + nado_o + nari_x + nanka_x + nanzo_o + nante_o + ni1_x + ni2_x + ni3_x, + nite_x + nimo_x + ne1_o + nee_o + no1_x + no2_o + node_o + noni_o, + nomi_x + nominrz_x + ha_x + hazu_x + ba_x + bakari_o + he_x + hou_x, + hoka_x + hodo_x + made_x + mama_x + mo1_x + mo2_x + motte_x + mono_o, + ya1_x + ya2_x + yara_o + yue_o + yo_o + yori_o + wa_o + wake_o, + wane_o + wayo_x + nn1_x + jya_x + tya_x + nagara2_x + wo_s_x, + ze_x + kke_x + n_si_x + deha_o, + + gotosi_x + saseru_x + zaru_x + zu_x + zunba_x + seru_x + souda_o + youtai_x, + denbun_o + ta_x + tai_x + tagaru_x + taru_x + da1_x + da2_x + daxtu_x, + darou_o + de_o + desi_o + desho_o + desu_x + na2_x + nara_o + nai_x, + nu_x + ne2_x + nn2_x + fuuda_x + besi_x + mai_x + masu_x + masure_x, + mase_x + mitaida_x + you_x + youda_o + rasii_o + rareru_x + reru_x + site_x, + + yougen_x + aru_x + ara_x + ari1_x + ari2_x + ari3_x + are1_x + are2_x, + arou_x + ii_x + itasi_x + itadaku_x + iru_x + eru_x + kakeru_x + kaneru_x, + karazu_x + gatai_x + gatida_x + kudasaru_x + gozai_x + sa1_x + si1_x + siro_x, + jyau_x + jimau_x + sugiru_x + subesi_x + suru_x + sure_x + se_x + seyo_x, + tamau_x + tayu_x + timau_x + dekiru_x + naru_x + nasai_x + nasaru_x + nikui_x, + yasui_x + yoi_x + yaru_x + ttarasii_x}; + +static u_char rasii[] = { + wo_x + ttatte_x + ttara_x + tte1_o + tte2_x + ppanasi_x + ppoi_x + ue_x, + uti_x + oite_x + okeru_x + ori_x + ka1_x + ka2_o + kai_x + kasira_o, + katagata_x + kadouka_o + kana_o + kane_o + kamo_o + kara1_x + kara2_o + ga1_x, + ga2_o + gatera_x + kiri_x + kuseni_x + kurai_x + gurumi_x + kedo_o + koso_x, + koto_o + sa2_o + sae_x + si2_o + sika_x + sura_x + zutu_x + zo_o, + tame_x + dake_o + dano_x + darake_x + tuite_x + tuki_x + tutu_x + tumori_x, + te1_x + te2_x + teru_x + dearou_x + deru_x + to1_x + to2_o + totte_x, + toiu_o + toori_x + toki_o + tokoro_x + tote_x + tohaie_o + tomo_x + do_x, + doori_x + dokoro_o + dokoroka_o + domo_x + na1_o + naa_o + nagara_x + nazo_o, + nado_o + nari_x + nanka_o + nanzo_o + nante_o + ni1_x + ni2_x + ni3_x, + nite_x + nimo_x + ne1_o + nee_o + no1_x + no2_o + node_o + noni_o, + nomi_x + nominrz_x + ha_x + hazu_x + ba_x + bakari_x + he_x + hou_x, + hoka_x + hodo_x + made_x + mama_x + mo1_x + mo2_x + motte_x + mono_o, + ya1_x + ya2_x + yara_x + yue_x + yo_o + yori_x + wa_o + wake_x, + wane_o + wayo_o + nn1_o + jya_o + tya_x + nagara2_x + wo_s_x, + ze_x + kke_x + n_si_x + deha_o, + + gotosi_x + saseru_x + zaru_x + zu_x + zunba_x + seru_x + souda_o + youtai_x, + denbun_o + ta_x + tai_x + tagaru_x + taru_x + da1_x + da2_x + daxtu_x, + darou_x + de_x + desi_o + desho_o + desu_o + na2_x + nara_o + nai_x, + nu_x + ne2_x + nn2_x + fuuda_x + besi_x + mai_x + masu_x + masure_x, + mase_x + mitaida_x + you_x + youda_x + rasii_x + rareru_x + reru_x + site_x, + + yougen_x + aru_x + ara_x + ari1_x + ari2_x + ari3_x + are1_x + are2_x, + arou_x + ii_x + itasi_x + itadaku_x + iru_x + eru_x + kakeru_x + kaneru_x, + karazu_x + gatai_x + gatida_x + kudasaru_x + gozai_x + sa1_x + si1_x + siro_x, + jyau_x + jimau_x + sugiru_x + subesi_x + suru_x + sure_x + se_x + seyo_x, + tamau_x + tayu_x + timau_x + dekiru_x + naru_x + nasai_x + nasaru_x + nikui_x, + yasui_x + yoi_x + yaru_x + ttarasii_x}; + +static u_char drentai1[] = { + wo_x + ttatte_x + ttara_x + tte1_x + tte2_x + ppanasi_x + ppoi_x + ue_o, + uti_o + oite_x + okeru_x + ori_x + ka1_x + ka2_x + kai_x + kasira_x, + katagata_x + kadouka_x + kana_x + kane_x + kamo_x + kara1_x + kara2_x + ga1_x, + ga2_x + gatera_x + kiri_o + kuseni_o + kurai_o + gurumi_x + kedo_x + koso_x, + koto_o + sa2_x + sae_x + si2_x + sika_x + sura_x + zutu_x + zo_x, + tame_o + dake_o + dano_o + darake_x + tuite_x + tuki_x + tutu_x + tumori_o, + te1_x + te2_x + teru_x + dearou_x + deru_x + to1_x + to2_x + totte_x, + toiu_x + toori_x + toki_o + tokoro_o + tote_x + tohaie_x + tomo_x + do_x, + doori_x + dokoro_x + dokoroka_x + domo_x + na1_x + naa_x + nagara_x + nazo_x, + nado_x + nari_x + nanka_x + nanzo_x + nante_x + ni1_x + ni2_x + ni3_x, + nite_x + nimo_x + ne1_x + nee_x + no1_x + no2_o + node_o + noni_o, + nomi_o + nominrz_o + ha_x + hazu_o + ba_x + bakari_o + he_x + hou_o, + hoka_o + hodo_o + made_o + mama_o + mo1_x + mo2_x + motte_x + mono_o, + ya1_x + ya2_x + yara_x + yue_o + yo_x + yori_x + wa_x + wake_x, + wane_x + wayo_x + nn1_o + jya_x + tya_x + nagara2_x + wo_s_x, + ze_x + kke_x + n_si_x + deha_x, + + gotosi_x + saseru_x + zaru_x + zu_x + zunba_x + seru_x + souda_x + youtai_x, + denbun_x + ta_x + tai_x + tagaru_x + taru_x + da1_x + da2_x + daxtu_x, + darou_x + de_x + desi_x + desho_x + desu_x + na2_x + nara_x + nai_x, + nu_x + ne2_x + nn2_x + fuuda_x + besi_x + mai_x + masu_x + masure_x, + mase_x + mitaida_x + you_x + youda_o + rasii_x + rareru_x + reru_x + site_x, + + yougen_x + aru_x + ara_x + ari1_x + ari2_x + ari3_x + are1_x + are2_x, + arou_x + ii_x + itasi_x + itadaku_x + iru_x + eru_x + kakeru_x + kaneru_x, + karazu_x + gatai_x + gatida_x + kudasaru_x + gozai_x + sa1_x + si1_x + siro_x, + jyau_x + jimau_x + sugiru_x + subesi_x + suru_x + sure_x + se_x + seyo_x, + tamau_x + tayu_x + timau_x + dekiru_x + naru_x + nasai_x + nasaru_x + nikui_x, + yasui_x + yoi_x + yaru_x + ttarasii_x}; + +static u_char drentai2[] = { + wo_x + ttatte_x + ttara_x + tte1_x + tte2_x + ppanasi_x + ppoi_x + ue_x, + uti_x + oite_x + okeru_x + ori_x + ka1_x + ka2_x + kai_x + kasira_x, + katagata_x + kadouka_x + kana_x + kane_x + kamo_x + kara1_x + kara2_x + ga1_x, + ga2_x + gatera_x + kiri_x + kuseni_x + kurai_x + gurumi_x + kedo_x + koso_x, + koto_o + sa2_x + sae_x + si2_x + sika_x + sura_x + zutu_x + zo_x, + tame_x + dake_x + dano_x + darake_x + tuite_x + tuki_x + tutu_x + tumori_x, + te1_x + te2_x + teru_x + dearou_x + deru_x + to1_x + to2_x + totte_x, + toiu_x + toori_x + toki_x + tokoro_x + tote_x + tohaie_x + tomo_x + do_x, + doori_x + dokoro_x + dokoroka_o + domo_x + na1_x + naa_x + nagara_x + nazo_x, + nado_x + nari_x + nanka_x + nanzo_x + nante_x + ni1_x + ni2_x + ni3_x, + nite_x + nimo_x + ne1_x + nee_x + no1_x + no2_x + node_x + noni_x, + nomi_x + nominrz_x + ha_x + hazu_x + ba_x + bakari_x + he_x + hou_x, + hoka_x + hodo_x + made_x + mama_x + mo1_x + mo2_x + motte_x + mono_o, + ya1_x + ya2_x + yara_x + yue_o + yo_x + yori_x + wa_x + wake_x, + wane_x + wayo_x + nn1_x + jya_x + tya_x + nagara2_x + wo_s_x, + ze_x + kke_x + n_si_x + deha_x, + + gotosi_x + saseru_x + zaru_x + zu_x + zunba_x + seru_x + souda_x + youtai_x, + denbun_x + ta_x + tai_x + tagaru_x + taru_x + da1_x + da2_x + daxtu_x, + darou_x + de_x + desi_x + desho_x + desu_x + na2_x + nara_x + nai_x, + nu_x + ne2_x + nn2_x + fuuda_x + besi_x + mai_x + masu_x + masure_x, + mase_x + mitaida_x + you_x + youda_x + rasii_x + rareru_x + reru_x + site_x, + + yougen_x + aru_x + ara_x + ari1_x + ari2_x + ari3_x + are1_x + are2_x, + arou_x + ii_x + itasi_x + itadaku_x + iru_x + eru_x + kakeru_x + kaneru_x, + karazu_x + gatai_x + gatida_x + kudasaru_x + gozai_x + sa1_x + si1_x + siro_x, + jyau_x + jimau_x + sugiru_x + subesi_x + suru_x + sure_x + se_x + seyo_x, + tamau_x + tayu_x + timau_x + dekiru_x + naru_x + nasai_x + nasaru_x + nikui_x, + yasui_x + yoi_x + yaru_x + ttarasii_x}; + +static u_char drentai3[] = { + wo_x + ttatte_x + ttara_x + tte1_x + tte2_x + ppanasi_x + ppoi_x + ue_x, + uti_x + oite_x + okeru_x + ori_x + ka1_x + ka2_x + kai_x + kasira_x, + katagata_x + kadouka_x + kana_x + kane_x + kamo_x + kara1_x + kara2_x + ga1_x, + ga2_x + gatera_x + kiri_x + kuseni_x + kurai_x + gurumi_x + kedo_x + koso_x, + koto_o + sa2_x + sae_x + si2_x + sika_x + sura_x + zutu_x + zo_x, + tame_x + dake_x + dano_x + darake_x + tuite_x + tuki_x + tutu_x + tumori_x, + te1_x + te2_x + teru_x + dearou_x + deru_x + to1_x + to2_x + totte_x, + toiu_x + toori_x + toki_x + tokoro_x + tote_x + tohaie_x + tomo_x + do_x, + doori_x + dokoro_x + dokoroka_o + domo_x + na1_x + naa_x + nagara_x + nazo_x, + nado_x + nari_x + nanka_x + nanzo_x + nante_x + ni1_x + ni2_x + ni3_x, + nite_x + nimo_x + ne1_x + nee_x + no1_x + no2_x + node_x + noni_x, + nomi_x + nominrz_x + ha_x + hazu_x + ba_x + bakari_x + he_x + hou_x, + hoka_x + hodo_x + made_x + mama_x + mo1_x + mo2_x + motte_x + mono_o, + ya1_x + ya2_x + yara_x + yue_o + yo_x + yori_x + wa_x + wake_x, + wane_x + wayo_x + nn1_x + jya_x + tya_x + nagara2_x + wo_s_x, + ze_x + kke_x + n_si_x + deha_x, + + gotosi_x + saseru_x + zaru_x + zu_x + zunba_x + seru_x + souda_x + youtai_x, + denbun_x + ta_x + tai_x + tagaru_x + taru_x + da1_x + da2_x + daxtu_x, + darou_x + de_x + desi_x + desho_x + desu_x + na2_x + nara_x + nai_x, + nu_x + ne2_x + nn2_x + fuuda_x + besi_x + mai_x + masu_x + masure_x, + mase_x + mitaida_x + you_x + youda_x + rasii_x + rareru_x + reru_x + site_x, + + yougen_x + aru_x + ara_x + ari1_x + ari2_x + ari3_x + are1_x + are2_x, + arou_x + ii_x + itasi_x + itadaku_x + iru_x + eru_x + kakeru_x + kaneru_x, + karazu_x + gatai_x + gatida_x + kudasaru_x + gozai_x + sa1_x + si1_x + siro_x, + jyau_x + jimau_x + sugiru_x + subesi_x + suru_x + sure_x + se_x + seyo_x, + tamau_x + tayu_x + timau_x + dekiru_x + naru_x + nasai_x + nasaru_x + nikui_x, + yasui_x + yoi_x + yaru_x + ttarasii_x}; + +static u_char krentai[] = { + wo_x + ttatte_x + ttara_x + tte1_x + tte2_x + ppanasi_x + ppoi_x + ue_o, + uti_o + oite_x + okeru_x + ori_x + ka1_x + ka2_x + kai_x + kasira_x, + katagata_x + kadouka_x + kana_x + kane_x + kamo_x + kara1_x + kara2_x + ga1_x, + ga2_x + gatera_x + kiri_x + kuseni_x + kurai_x + gurumi_x + kedo_x + koso_x, + koto_o + sa2_x + sae_x + si2_x + sika_x + sura_x + zutu_x + zo_x, + tame_o + dake_x + dano_x + darake_x + tuite_x + tuki_x + tutu_x + tumori_x, + te1_x + te2_x + teru_x + dearou_x + deru_x + to1_x + to2_x + totte_x, + toiu_x + toori_x + toki_x + tokoro_x + tote_x + tohaie_x + tomo_x + do_x, + doori_x + dokoro_x + dokoroka_x + domo_x + na1_x + naa_x + nagara_x + nazo_o, + nado_o + nari_x + nanka_o + nanzo_o + nante_o + ni1_x + ni2_x + ni3_x, + nite_x + nimo_x + ne1_x + nee_x + no1_o + no2_x + node_x + noni_x, + nomi_x + nominrz_x + ha_o + hazu_x + ba_x + bakari_x + he_x + hou_x, + hoka_x + hodo_x + made_x + mama_o + mo1_x + mo2_x + motte_x + mono_o, + ya1_x + ya2_x + yara_x + yue_o + yo_x + yori_x + wa_x + wake_o, + wane_x + wayo_x + nn1_x + jya_x + tya_x + nagara2_x + wo_s_x, + ze_x + kke_x + n_si_x + deha_x, + + gotosi_x + saseru_x + zaru_x + zu_x + zunba_x + seru_x + souda_x + youtai_x, + denbun_x + ta_x + tai_x + tagaru_x + taru_x + da1_x + da2_x + daxtu_x, + darou_x + de_x + desi_x + desho_x + desu_x + na2_x + nara_x + nai_x, + nu_x + ne2_x + nn2_x + fuuda_x + besi_x + mai_x + masu_x + masure_x, + mase_x + mitaida_x + you_x + youda_x + rasii_x + rareru_x + reru_x + site_x, + + yougen_x + aru_x + ara_x + ari1_x + ari2_x + ari3_x + are1_x + are2_x, + arou_x + ii_x + itasi_x + itadaku_x + iru_x + eru_x + kakeru_x + kaneru_x, + karazu_x + gatai_x + gatida_x + kudasaru_x + gozai_x + sa1_x + si1_x + siro_x, + jyau_x + jimau_x + sugiru_x + subesi_x + suru_x + sure_x + se_x + seyo_x, + tamau_x + tayu_x + timau_x + dekiru_x + naru_x + nasai_x + nasaru_x + nikui_x, + yasui_x + yoi_x + yaru_x + ttarasii_x}; + +static u_char gotoki[] = { + wo_x + ttatte_x + ttara_x + tte1_x + tte2_x + ppanasi_x + ppoi_x + ue_o, + uti_o + oite_x + okeru_x + ori_x + ka1_x + ka2_x + kai_x + kasira_x, + katagata_x + kadouka_x + kana_x + kane_x + kamo_x + kara1_x + kara2_x + ga1_x, + ga2_x + gatera_x + kiri_x + kuseni_x + kurai_x + gurumi_x + kedo_x + koso_x, + koto_o + sa2_x + sae_x + si2_x + sika_x + sura_x + zutu_x + zo_x, + tame_o + dake_x + dano_x + darake_x + tuite_x + tuki_x + tutu_x + tumori_x, + te1_x + te2_x + teru_x + dearou_x + deru_x + to1_x + to2_x + totte_x, + toiu_x + toori_x + toki_x + tokoro_x + tote_x + tohaie_x + tomo_x + do_x, + doori_x + dokoro_x + dokoroka_x + domo_x + na1_x + naa_x + nagara_x + nazo_o, + nado_o + nari_x + nanka_o + nanzo_o + nante_o + ni1_x + ni2_x + ni3_x, + nite_x + nimo_x + ne1_x + nee_x + no1_o + no2_x + node_x + noni_x, + nomi_x + nominrz_x + ha_o + hazu_x + ba_x + bakari_x + he_x + hou_x, + hoka_x + hodo_x + made_x + mama_o + mo1_x + mo2_x + motte_x + mono_o, + ya1_x + ya2_x + yara_x + yue_o + yo_x + yori_x + wa_x + wake_o, + wane_x + wayo_x + nn1_x + jya_x + tya_x + nagara2_x + wo_s_x, + ze_x + kke_x + n_si_x + deha_x, + + gotosi_x + saseru_x + zaru_x + zu_x + zunba_x + seru_x + souda_x + youtai_x, + denbun_x + ta_x + tai_x + tagaru_x + taru_x + da1_x + da2_x + daxtu_x, + darou_x + de_x + desi_x + desho_x + desu_x + na2_x + nara_x + nai_x, + nu_x + ne2_x + nn2_x + fuuda_x + besi_x + mai_x + masu_x + masure_x, + mase_x + mitaida_x + you_x + youda_x + rasii_x + rareru_x + reru_x + site_x, + + yougen_x + aru_x + ara_x + ari1_x + ari2_x + ari3_x + are1_x + are2_x, + arou_x + ii_x + itasi_x + itadaku_x + iru_x + eru_x + kakeru_x + kaneru_x, + karazu_x + gatai_x + gatida_x + kudasaru_x + gozai_x + sa1_x + si1_x + siro_x, + jyau_x + jimau_x + sugiru_x + subesi_x + suru_x + sure_x + se_x + seyo_x, + tamau_x + tayu_x + timau_x + dekiru_x + naru_x + nasai_x + nasaru_x + nikui_x, + yasui_x + yoi_x + yaru_x + ttarasii_x}; + +static u_char beki[] = { + wo_x + ttatte_x + ttara_x + tte1_x + tte2_x + ppanasi_x + ppoi_x + ue_o, + uti_o + oite_x + okeru_x + ori_x + ka1_o + ka2_x + kai_x + kasira_o, + katagata_x + kadouka_o + kana_o + kane_o + kamo_o + kara1_x + kara2_x + ga1_x, + ga2_x + gatera_x + kiri_x + kuseni_x + kurai_x + gurumi_x + kedo_x + koso_x, + koto_o + sa2_x + sae_x + si2_x + sika_x + sura_x + zutu_x + zo_x, + tame_x + dake_x + dano_o + darake_x + tuite_x + tuki_x + tutu_x + tumori_x, + te1_x + te2_x + teru_x + dearou_x + deru_x + to1_x + to2_x + totte_x, + toiu_x + toori_x + toki_o + tokoro_o + tote_x + tohaie_x + tomo_x + do_x, + doori_x + dokoro_x + dokoroka_x + domo_x + na1_x + naa_x + nagara_x + nazo_x, + nado_x + nari_x + nanka_x + nanzo_x + nante_x + ni1_x + ni2_x + ni3_x, + nite_x + nimo_x + ne1_o + nee_x + no1_x + no2_x + node_x + noni_x, + nomi_x + nominrz_x + ha_x + hazu_x + ba_x + bakari_x + he_x + hou_x, + hoka_x + hodo_x + made_x + mama_x + mo1_x + mo2_x + motte_x + mono_o, + ya1_x + ya2_x + yara_x + yue_x + yo_o + yori_x + wa_x + wake_x, + wane_x + wayo_x + nn1_x + jya_x + tya_x + nagara2_x + wo_s_x, + ze_x + kke_x + n_si_x + deha_x, + + gotosi_x + saseru_x + zaru_x + zu_x + zunba_x + seru_x + souda_x + youtai_x, + denbun_x + ta_x + tai_x + tagaru_x + taru_x + da1_x + da2_o + daxtu_o, + darou_o + de_o + desi_o + desho_o + desu_o + na2_o + nara_o + nai_x, + nu_x + ne2_x + nn2_x + fuuda_x + besi_x + mai_x + masu_x + masure_x, + mase_x + mitaida_x + you_x + youda_x + rasii_x + rareru_x + reru_x + site_x, + + yougen_x + aru_x + ara_x + ari1_x + ari2_x + ari3_x + are1_x + are2_x, + arou_x + ii_x + itasi_x + itadaku_x + iru_x + eru_x + kakeru_x + kaneru_x, + karazu_x + gatai_x + gatida_x + kudasaru_x + gozai_x + sa1_x + si1_x + siro_x, + jyau_x + jimau_x + sugiru_x + subesi_x + suru_x + sure_x + se_x + seyo_x, + tamau_x + tayu_x + timau_x + dekiru_x + naru_x + nasai_x + nasaru_x + nikui_x, + yasui_x + yoi_x + yaru_x + ttarasii_x}; + +static u_char souna1[] = { + wo_x + ttatte_x + ttara_x + tte1_x + tte2_x + ppanasi_x + ppoi_x + ue_x, + uti_x + oite_x + okeru_x + ori_x + ka1_x + ka2_x + kai_x + kasira_x, + katagata_x + kadouka_x + kana_x + kane_x + kamo_x + kara1_x + kara2_x + ga1_x, + ga2_x + gatera_x + kiri_x + kuseni_x + kurai_x + gurumi_x + kedo_x + koso_x, + koto_x + sa2_x + sae_x + si2_x + sika_x + sura_x + zutu_x + zo_x, + tame_x + dake_x + dano_x + darake_x + tuite_x + tuki_x + tutu_x + tumori_x, + te1_x + te2_x + teru_x + dearou_x + deru_x + to1_x + to2_x + totte_x, + toiu_x + toori_x + toki_x + tokoro_x + tote_x + tohaie_x + tomo_x + do_x, + doori_x + dokoro_x + dokoroka_x + domo_x + na1_x + naa_x + nagara_x + nazo_x, + nado_x + nari_x + nanka_x + nanzo_x + nante_x + ni1_x + ni2_x + ni3_x, + nite_x + nimo_x + ne1_x + nee_x + no1_x + no2_x + node_o + noni_o, + nomi_x + nominrz_x + ha_x + hazu_x + ba_x + bakari_x + he_x + hou_x, + hoka_x + hodo_x + made_x + mama_x + mo1_x + mo2_x + motte_x + mono_x, + ya1_x + ya2_x + yara_x + yue_x + yo_x + yori_x + wa_x + wake_x, + wane_x + wayo_x + nn1_x + jya_x + tya_x + nagara2_x + wo_s_x, + ze_x + kke_x + n_si_x + deha_x, + + gotosi_x + saseru_x + zaru_x + zu_x + zunba_x + seru_x + souda_x + youtai_x, + denbun_x + ta_x + tai_x + tagaru_x + taru_x + da1_x + da2_x + daxtu_x, + darou_x + de_x + desi_x + desho_x + desu_x + na2_x + nara_x + nai_x, + nu_x + ne2_x + nn2_x + fuuda_x + besi_x + mai_x + masu_x + masure_x, + mase_x + mitaida_x + you_x + youda_x + rasii_x + rareru_x + reru_x + site_x, + + yougen_x + aru_x + ara_x + ari1_x + ari2_x + ari3_x + are1_x + are2_x, + arou_x + ii_x + itasi_x + itadaku_x + iru_x + eru_x + kakeru_x + kaneru_x, + karazu_x + gatai_x + gatida_x + kudasaru_x + gozai_x + sa1_x + si1_x + siro_x, + jyau_x + jimau_x + sugiru_x + subesi_x + suru_x + sure_x + se_x + seyo_x, + tamau_x + tayu_x + timau_x + dekiru_x + naru_x + nasai_x + nasaru_x + nikui_x, + yasui_x + yoi_x + yaru_x + ttarasii_x}; + +static u_char souna2[] = { + wo_x + ttatte_x + ttara_x + tte1_x + tte2_x + ppanasi_x + ppoi_x + ue_o, + uti_o + oite_x + okeru_x + ori_x + ka1_x + ka2_x + kai_x + kasira_x, + katagata_x + kadouka_x + kana_x + kane_x + kamo_x + kara1_x + kara2_x + ga1_x, + ga2_x + gatera_x + kiri_x + kuseni_o + kurai_x + gurumi_x + kedo_x + koso_x, + koto_o + sa2_x + sae_x + si2_x + sika_x + sura_x + zutu_x + zo_x, + tame_x + dake_o + dano_x + darake_x + tuite_x + tuki_x + tutu_x + tumori_x, + te1_x + te2_x + teru_x + dearou_x + deru_x + to1_x + to2_x + totte_x, + toiu_x + toori_x + toki_x + tokoro_x + tote_x + tohaie_x + tomo_x + do_x, + doori_x + dokoro_o + dokoroka_o + domo_x + na1_x + naa_x + nagara_x + nazo_x, + nado_x + nari_x + nanka_x + nanzo_x + nante_x + ni1_x + ni2_x + ni3_x, + nite_x + nimo_x + ne1_x + nee_x + no1_x + no2_o + node_o + noni_o, + nomi_x + nominrz_x + ha_x + hazu_x + ba_x + bakari_x + he_x + hou_x, + hoka_o + hodo_o + made_o + mama_o + mo1_x + mo2_x + motte_x + mono_o, + ya1_x + ya2_x + yara_x + yue_o + yo_x + yori_x + wa_x + wake_x, + wane_x + wayo_x + nn1_o + jya_x + tya_x + nagara2_x + wo_s_x, + ze_x + kke_x + n_si_x + deha_x, + + gotosi_x + saseru_x + zaru_x + zu_x + zunba_x + seru_x + souda_x + youtai_x, + denbun_x + ta_x + tai_x + tagaru_x + taru_x + da1_x + da2_x + daxtu_x, + darou_x + de_x + desi_x + desho_x + desu_x + na2_x + nara_x + nai_x, + nu_x + ne2_x + nn2_x + fuuda_x + besi_x + mai_x + masu_x + masure_x, + mase_x + mitaida_x + you_x + youda_x + rasii_x + rareru_x + reru_x + site_x, + + yougen_x + aru_x + ara_x + ari1_x + ari2_x + ari3_x + are1_x + are2_x, + arou_x + ii_x + itasi_x + itadaku_x + iru_x + eru_x + kakeru_x + kaneru_x, + karazu_x + gatai_x + gatida_x + kudasaru_x + gozai_x + sa1_x + si1_x + siro_x, + jyau_x + jimau_x + sugiru_x + subesi_x + suru_x + sure_x + se_x + seyo_x, + tamau_x + tayu_x + timau_x + dekiru_x + naru_x + nasai_x + nasaru_x + nikui_x, + yasui_x + yoi_x + yaru_x + ttarasii_x}; + +static u_char na2[] = { + wo_x + ttatte_x + ttara_x + tte1_x + tte2_x + ppanasi_x + ppoi_x + ue_x, + uti_x + oite_x + okeru_x + ori_x + ka1_x + ka2_x + kai_x + kasira_x, + katagata_x + kadouka_x + kana_x + kane_x + kamo_x + kara1_x + kara2_x + ga1_x, + ga2_x + gatera_x + kiri_x + kuseni_x + kurai_x + gurumi_x + kedo_x + koso_x, + koto_x + sa2_x + sae_x + si2_x + sika_x + sura_x + zutu_x + zo_x, + tame_x + dake_x + dano_x + darake_x + tuite_x + tuki_x + tutu_x + tumori_x, + te1_x + te2_x + teru_x + dearou_x + deru_x + to1_x + to2_x + totte_x, + toiu_x + toori_x + toki_x + tokoro_x + tote_x + tohaie_x + tomo_x + do_x, + doori_x + dokoro_x + dokoroka_x + domo_x + na1_x + naa_x + nagara_x + nazo_x, + nado_x + nari_x + nanka_x + nanzo_x + nante_x + ni1_x + ni2_x + ni3_x, + nite_x + nimo_x + ne1_x + nee_x + no1_x + no2_o + node_o + noni_o, + nomi_x + nominrz_x + ha_x + hazu_x + ba_x + bakari_x + he_x + hou_x, + hoka_x + hodo_x + made_x + mama_x + mo1_x + mo2_x + motte_x + mono_x, + ya1_x + ya2_x + yara_x + yue_x + yo_x + yori_x + wa_x + wake_x, + wane_x + wayo_x + nn1_o + jya_x + tya_x + nagara2_x + wo_s_x, + ze_x + kke_x + n_si_x + deha_x, + + gotosi_x + saseru_x + zaru_x + zu_x + zunba_x + seru_x + souda_x + youtai_x, + denbun_x + ta_x + tai_x + tagaru_x + taru_x + da1_x + da2_x + daxtu_x, + darou_x + de_x + desi_x + desho_x + desu_x + na2_x + nara_x + nai_x, + nu_x + ne2_x + nn2_x + fuuda_x + besi_x + mai_x + masu_x + masure_x, + mase_x + mitaida_x + you_x + youda_x + rasii_x + rareru_x + reru_x + site_x, + + yougen_x + aru_x + ara_x + ari1_x + ari2_x + ari3_x + are1_x + are2_x, + arou_x + ii_x + itasi_x + itadaku_x + iru_x + eru_x + kakeru_x + kaneru_x, + karazu_x + gatai_x + gatida_x + kudasaru_x + gozai_x + sa1_x + si1_x + siro_x, + jyau_x + jimau_x + sugiru_x + subesi_x + suru_x + sure_x + se_x + seyo_x, + tamau_x + tayu_x + timau_x + dekiru_x + naru_x + nasai_x + nasaru_x + nikui_x, + yasui_x + yoi_x + yaru_x + ttarasii_x}; + +static u_char katei1[] = { + wo_x + ttatte_x + ttara_x + tte1_x + tte2_x + ppanasi_x + ppoi_x + ue_x, + uti_x + oite_x + okeru_x + ori_x + ka1_x + ka2_x + kai_x + kasira_x, + katagata_x + kadouka_x + kana_x + kane_x + kamo_x + kara1_x + kara2_x + ga1_x, + ga2_x + gatera_x + kiri_x + kuseni_x + kurai_x + gurumi_x + kedo_x + koso_x, + koto_x + sa2_x + sae_x + si2_x + sika_x + sura_x + zutu_x + zo_x, + tame_x + dake_x + dano_x + darake_x + tuite_x + tuki_x + tutu_x + tumori_x, + te1_x + te2_x + teru_x + dearou_x + deru_x + to1_x + to2_x + totte_x, + toiu_x + toori_x + toki_x + tokoro_x + tote_x + tohaie_x + tomo_x + do_x, + doori_x + dokoro_x + dokoroka_x + domo_x + na1_x + naa_x + nagara_x + nazo_x, + nado_x + nari_x + nanka_x + nanzo_x + nante_x + ni1_x + ni2_x + ni3_x, + nite_x + nimo_x + ne1_x + nee_x + no1_x + no2_x + node_x + noni_x, + nomi_x + nominrz_x + ha_x + hazu_x + ba_o + bakari_x + he_x + hou_x, + hoka_x + hodo_x + made_x + mama_x + mo1_x + mo2_x + motte_x + mono_x, + ya1_x + ya2_x + yara_x + yue_x + yo_x + yori_x + wa_x + wake_x, + wane_x + wayo_x + nn1_x + jya_x + tya_x + nagara2_x + wo_s_x, + ze_x + kke_x + n_si_x + deha_x, + + gotosi_x + saseru_x + zaru_x + zu_x + zunba_x + seru_x + souda_x + youtai_x, + denbun_x + ta_x + tai_x + tagaru_x + taru_x + da1_x + da2_x + daxtu_x, + darou_x + de_x + desi_x + desho_x + desu_x + na2_x + nara_x + nai_x, + nu_x + ne2_x + nn2_x + fuuda_x + besi_x + mai_x + masu_x + masure_x, + mase_x + mitaida_x + you_x + youda_x + rasii_x + rareru_x + reru_x + site_x, + + yougen_x + aru_x + ara_x + ari1_x + ari2_x + ari3_x + are1_x + are2_x, + arou_x + ii_o + itasi_x + itadaku_x + iru_x + eru_x + kakeru_x + kaneru_x, + karazu_x + gatai_x + gatida_x + kudasaru_x + gozai_x + sa1_x + si1_x + siro_x, + jyau_x + jimau_x + sugiru_x + subesi_x + suru_x + sure_x + se_x + seyo_x, + tamau_x + tayu_x + timau_x + dekiru_x + naru_x + nasai_x + nasaru_x + nikui_x, + yasui_x + yoi_x + yaru_x + ttarasii_x}; + +static u_char katei2[] = { + wo_x + ttatte_x + ttara_x + tte1_x + tte2_x + ppanasi_x + ppoi_x + ue_x, + uti_x + oite_x + okeru_x + ori_x + ka1_x + ka2_x + kai_x + kasira_x, + katagata_x + kadouka_x + kana_x + kane_x + kamo_x + kara1_x + kara2_x + ga1_x, + ga2_x + gatera_x + kiri_x + kuseni_x + kurai_x + gurumi_x + kedo_x + koso_x, + koto_x + sa2_x + sae_x + si2_x + sika_x + sura_x + zutu_x + zo_x, + tame_x + dake_x + dano_x + darake_x + tuite_x + tuki_x + tutu_x + tumori_x, + te1_x + te2_x + teru_x + dearou_x + deru_x + to1_x + to2_x + totte_x, + toiu_x + toori_x + toki_x + tokoro_x + tote_x + tohaie_x + tomo_x + do_o, + doori_x + dokoro_x + dokoroka_x + domo_o + na1_x + naa_x + nagara_x + nazo_x, + nado_x + nari_x + nanka_x + nanzo_x + nante_x + ni1_x + ni2_x + ni3_x, + nite_x + nimo_x + ne1_x + nee_x + no1_x + no2_x + node_x + noni_x, + nomi_x + nominrz_x + ha_x + hazu_x + ba_o + bakari_x + he_x + hou_x, + hoka_x + hodo_x + made_x + mama_x + mo1_x + mo2_x + motte_x + mono_x, + ya1_x + ya2_x + yara_x + yue_x + yo_x + yori_x + wa_x + wake_x, + wane_x + wayo_x + nn1_x + jya_x + tya_x + nagara2_x + wo_s_x, + ze_x + kke_x + n_si_x + deha_x, + + gotosi_x + saseru_x + zaru_x + zu_x + zunba_x + seru_x + souda_x + youtai_x, + denbun_x + ta_x + tai_x + tagaru_x + taru_x + da1_x + da2_x + daxtu_x, + darou_x + de_x + desi_x + desho_x + desu_x + na2_x + nara_x + nai_x, + nu_x + ne2_x + nn2_x + fuuda_x + besi_x + mai_x + masu_x + masure_x, + mase_x + mitaida_x + you_x + youda_x + rasii_x + rareru_x + reru_x + site_x, + + yougen_x + aru_x + ara_x + ari1_x + ari2_x + ari3_x + are1_x + are2_x, + arou_x + ii_x + itasi_x + itadaku_x + iru_x + eru_x + kakeru_x + kaneru_x, + karazu_x + gatai_x + gatida_x + kudasaru_x + gozai_x + sa1_x + si1_x + siro_x, + jyau_x + jimau_x + sugiru_x + subesi_x + suru_x + sure_x + se_x + seyo_x, + tamau_x + tayu_x + timau_x + dekiru_x + naru_x + nasai_x + nasaru_x + nikui_x, + yasui_x + yoi_x + yaru_x + ttarasii_x}; + +static u_char katei3[] = { + wo_x + ttatte_x + ttara_x + tte1_x + tte2_x + ppanasi_x + ppoi_x + ue_x, + uti_x + oite_x + okeru_x + ori_x + ka1_x + ka2_x + kai_x + kasira_x, + katagata_x + kadouka_x + kana_x + kane_x + kamo_x + kara1_x + kara2_x + ga1_x, + ga2_x + gatera_x + kiri_x + kuseni_x + kurai_x + gurumi_x + kedo_x + koso_x, + koto_x + sa2_x + sae_x + si2_x + sika_x + sura_x + zutu_x + zo_x, + tame_x + dake_x + dano_x + darake_x + tuite_x + tuki_x + tutu_x + tumori_x, + te1_x + te2_x + teru_x + dearou_x + deru_x + to1_x + to2_x + totte_x, + toiu_x + toori_x + toki_x + tokoro_x + tote_x + tohaie_x + tomo_x + do_x, + doori_x + dokoro_x + dokoroka_x + domo_x + na1_x + naa_x + nagara_x + nazo_x, + nado_x + nari_x + nanka_x + nanzo_x + nante_x + ni1_x + ni2_x + ni3_x, + nite_x + nimo_x + ne1_x + nee_x + no1_x + no2_x + node_x + noni_x, + nomi_x + nominrz_x + ha_x + hazu_x + ba_o + bakari_x + he_x + hou_x, + hoka_x + hodo_x + made_x + mama_x + mo1_x + mo2_x + motte_x + mono_x, + ya1_x + ya2_x + yara_x + yue_x + yo_x + yori_x + wa_x + wake_x, + wane_x + wayo_x + nn1_x + jya_x + tya_x + nagara2_x + wo_s_x, + ze_x + kke_x + n_si_x + deha_x, + + gotosi_x + saseru_x + zaru_x + zu_x + zunba_x + seru_x + souda_x + youtai_x, + denbun_x + ta_x + tai_x + tagaru_x + taru_x + da1_x + da2_x + daxtu_x, + darou_x + de_x + desi_x + desho_x + desu_x + na2_x + nara_x + nai_x, + nu_x + ne2_x + nn2_x + fuuda_x + besi_x + mai_x + masu_x + masure_x, + mase_x + mitaida_x + you_x + youda_x + rasii_x + rareru_x + reru_x + site_x, + + yougen_x + aru_x + ara_x + ari1_x + ari2_x + ari3_x + are1_x + are2_x, + arou_x + ii_x + itasi_x + itadaku_x + iru_x + eru_x + kakeru_x + kaneru_x, + karazu_x + gatai_x + gatida_x + kudasaru_x + gozai_x + sa1_x + si1_x + siro_x, + jyau_x + jimau_x + sugiru_x + subesi_x + suru_x + sure_x + se_x + seyo_x, + tamau_x + tayu_x + timau_x + dekiru_x + naru_x + nasai_x + nasaru_x + nikui_x, + yasui_x + yoi_x + yaru_x + ttarasii_x}; + +static u_char kamei[] = { + wo_x + ttatte_o + ttara_o + tte1_o + tte2_x + ppanasi_x + ppoi_x + ue_x, + uti_x + oite_x + okeru_x + ori_x + ka1_x + ka2_x + kai_x + kasira_x, + katagata_x + kadouka_x + kana_x + kane_x + kamo_x + kara1_x + kara2_x + ga1_x, + ga2_x + gatera_x + kiri_x + kuseni_x + kurai_x + gurumi_x + kedo_x + koso_x, + koto_x + sa2_x + sae_x + si2_x + sika_x + sura_x + zutu_x + zo_x, + tame_x + dake_x + dano_o + darake_x + tuite_x + tuki_x + tutu_x + tumori_x, + te1_x + te2_x + teru_x + dearou_x + deru_x + to1_x + to2_o + totte_x, + toiu_o + toori_x + toki_x + tokoro_x + tote_o + tohaie_o + tomo_x + do_o, + doori_x + dokoro_x + dokoroka_x + domo_o + na1_x + naa_x + nagara_x + nazo_o, + nado_o + nari_x + nanka_o + nanzo_o + nante_o + ni1_x + ni2_x + ni3_x, + nite_x + nimo_x + ne1_x + nee_x + no1_x + no2_x + node_x + noni_x, + nomi_x + nominrz_x + ha_x + hazu_x + ba_o + bakari_x + he_x + hou_x, + hoka_x + hodo_x + made_x + mama_x + mo1_x + mo2_x + motte_x + mono_x, + ya1_x + ya2_x + yara_x + yue_x + yo_o + yori_x + wa_x + wake_x, + wane_x + wayo_x + nn1_x + jya_x + tya_x + nagara2_x + wo_s_x, + ze_x + kke_x + n_si_x + deha_o, + + gotosi_x + saseru_x + zaru_x + zu_x + zunba_x + seru_x + souda_x + youtai_x, + denbun_x + ta_x + tai_x + tagaru_x + taru_x + da1_x + da2_x + daxtu_x, + darou_x + de_x + desi_x + desho_x + desu_x + na2_x + nara_x + nai_x, + nu_x + ne2_x + nn2_x + fuuda_x + besi_x + mai_x + masu_x + masure_x, + mase_x + mitaida_x + you_x + youda_x + rasii_x + rareru_x + reru_x + site_x, + + yougen_x + aru_x + ara_x + ari1_x + ari2_x + ari3_x + are1_x + are2_x, + arou_x + ii_x + itasi_x + itadaku_x + iru_x + eru_x + kakeru_x + kaneru_x, + karazu_x + gatai_x + gatida_x + kudasaru_x + gozai_x + sa1_x + si1_x + siro_x, + jyau_x + jimau_x + sugiru_x + subesi_x + suru_x + sure_x + se_x + seyo_x, + tamau_x + tayu_x + timau_x + dekiru_x + naru_x + nasai_x + nasaru_x + nikui_x, + yasui_x + yoi_x + yaru_x + ttarasii_x}; + +static u_char ike[] = { + wo_x + ttatte_o + ttara_o + tte1_o + tte2_x + ppanasi_x + ppoi_x + ue_x, + uti_x + oite_x + okeru_x + ori_x + ka1_x + ka2_x + kai_x + kasira_x, + katagata_x + kadouka_x + kana_x + kane_x + kamo_x + kara1_x + kara2_x + ga1_x, + ga2_x + gatera_x + kiri_x + kuseni_x + kurai_x + gurumi_x + kedo_x + koso_x, + koto_x + sa2_x + sae_x + si2_x + sika_x + sura_x + zutu_x + zo_x, + tame_x + dake_x + dano_o + darake_x + tuite_x + tuki_x + tutu_x + tumori_x, + te1_x + te2_x + teru_x + dearou_x + deru_x + to1_x + to2_o + totte_x, + toiu_o + toori_x + toki_x + tokoro_x + tote_o + tohaie_o + tomo_x + do_o, + doori_x + dokoro_x + dokoroka_x + domo_o + na1_x + naa_x + nagara_x + nazo_o, + nado_o + nari_x + nanka_o + nanzo_o + nante_o + ni1_x + ni2_x + ni3_x, + nite_x + nimo_x + ne1_x + nee_x + no1_x + no2_x + node_x + noni_x, + nomi_x + nominrz_x + ha_x + hazu_x + ba_o + bakari_x + he_x + hou_x, + hoka_x + hodo_x + made_x + mama_x + mo1_x + mo2_x + motte_x + mono_x, + ya1_x + ya2_x + yara_x + yue_x + yo_o + yori_x + wa_x + wake_x, + wane_x + wayo_x + nn1_x + jya_x + tya_x + nagara2_x + wo_s_x, + ze_x + kke_x + n_si_x + deha_o, + + gotosi_x + saseru_x + zaru_x + zu_o + zunba_o + seru_x + souda_x + youtai_x, + denbun_x + ta_x + tai_x + tagaru_x + taru_x + da1_x + da2_x + daxtu_x, + darou_x + de_x + desi_x + desho_x + desu_x + na2_x + nara_x + nai_o, + nu_o + ne2_o + nn2_o + fuuda_x + besi_x + mai_x + masu_x + masure_x, + mase_x + mitaida_x + you_x + youda_x + rasii_x + rareru_x + reru_x + site_x, + + yougen_x + aru_x + ara_x + ari1_x + ari2_x + ari3_x + are1_x + are2_x, + arou_x + ii_x + itasi_x + itadaku_x + iru_x + eru_x + kakeru_x + kaneru_x, + karazu_x + gatai_x + gatida_x + kudasaru_x + gozai_x + sa1_x + si1_x + siro_x, + jyau_x + jimau_x + sugiru_x + subesi_x + suru_x + sure_x + se_x + seyo_x, + tamau_x + tayu_x + timau_x + dekiru_x + naru_x + nasai_x + nasaru_x + nikui_x, + yasui_x + yoi_x + yaru_x + ttarasii_x}; + +static u_char kure[] = { + wo_x + ttatte_o + ttara_x + tte1_o + tte2_x + ppanasi_x + ppoi_x + ue_x, + uti_x + oite_x + okeru_x + ori_x + ka1_x + ka2_x + kai_x + kasira_x, + katagata_x + kadouka_x + kana_x + kane_x + kamo_x + kara1_x + kara2_x + ga1_x, + ga2_x + gatera_x + kiri_x + kuseni_x + kurai_x + gurumi_x + kedo_x + koso_x, + koto_x + sa2_x + sae_o + si2_x + sika_x + sura_o + zutu_x + zo_x, + tame_x + dake_x + dano_x + darake_x + tuite_x + tuki_x + tutu_x + tumori_x, + te1_x + te2_o + teru_o + dearou_x + deru_x + to1_x + to2_o + totte_x, + toiu_o + toori_x + toki_x + tokoro_x + tote_x + tohaie_o + tomo_x + do_o, + doori_x + dokoro_x + dokoroka_x + domo_o + na1_x + naa_x + nagara_x + nazo_o, + nado_o + nari_x + nanka_o + nanzo_o + nante_o + ni1_x + ni2_x + ni3_x, + nite_x + nimo_x + ne1_x + nee_x + no1_x + no2_x + node_x + noni_x, + nomi_x + nominrz_x + ha_o + hazu_x + ba_o + bakari_x + he_x + hou_x, + hoka_x + hodo_x + made_x + mama_x + mo1_x + mo2_o + motte_x + mono_x, + ya1_x + ya2_x + yara_x + yue_x + yo_o + yori_x + wa_x + wake_x, + wane_x + wayo_x + nn1_x + jya_x + tya_o + nagara2_o + wo_s_x, + ze_x + kke_x + n_si_x + deha_o, + + gotosi_x + saseru_x + zaru_o + zu_o + zunba_o + seru_x + souda_o + youtai_o, + denbun_x + ta_o + tai_x + tagaru_x + taru_x + da1_x + da2_x + daxtu_x, + darou_x + de_x + desi_x + desho_x + desu_x + na2_x + nara_x + nai_o, + nu_o + ne2_o + nn2_x + fuuda_x + besi_x + mai_o + masu_o + masure_o, + mase_x + mitaida_x + you_x + youda_x + rasii_x + rareru_x + reru_x + site_x, + + yougen_x + aru_x + ara_x + ari1_x + ari2_x + ari3_x + are1_x + are2_x, + arou_x + ii_x + itasi_x + itadaku_x + iru_x + eru_x + kakeru_x + kaneru_x, + karazu_x + gatai_x + gatida_x + kudasaru_x + gozai_x + sa1_x + si1_x + siro_x, + jyau_x + jimau_x + sugiru_x + subesi_x + suru_x + sure_x + se_x + seyo_x, + tamau_x + tayu_o + timau_o + dekiru_x + naru_x + nasai_x + nasaru_x + nikui_x, + yasui_x + yoi_x + yaru_x + ttarasii_x}; + +static u_char meirei1[] = { + wo_x + ttatte_o + ttara_o + tte1_o + tte2_x + ppanasi_x + ppoi_x + ue_x, + uti_x + oite_x + okeru_x + ori_x + ka1_x + ka2_x + kai_x + kasira_x, + katagata_x + kadouka_x + kana_x + kane_x + kamo_x + kara1_x + kara2_x + ga1_x, + ga2_x + gatera_x + kiri_x + kuseni_x + kurai_x + gurumi_x + kedo_x + koso_x, + koto_x + sa2_x + sae_x + si2_x + sika_x + sura_x + zutu_x + zo_x, + tame_x + dake_x + dano_o + darake_x + tuite_x + tuki_x + tutu_x + tumori_x, + te1_x + te2_x + teru_x + dearou_x + deru_x + to1_x + to2_o + totte_x, + toiu_o + toori_x + toki_x + tokoro_x + tote_o + tohaie_o + tomo_x + do_x, + doori_x + dokoro_x + dokoroka_x + domo_x + na1_x + naa_x + nagara_x + nazo_o, + nado_o + nari_x + nanka_o + nanzo_o + nante_o + ni1_x + ni2_x + ni3_x, + nite_x + nimo_x + ne1_x + nee_x + no1_x + no2_x + node_x + noni_x, + nomi_x + nominrz_x + ha_x + hazu_x + ba_x + bakari_x + he_x + hou_x, + hoka_x + hodo_x + made_x + mama_x + mo1_x + mo2_x + motte_x + mono_x, + ya1_x + ya2_x + yara_x + yue_x + yo_o + yori_x + wa_x + wake_x, + wane_x + wayo_x + nn1_x + jya_x + tya_x + nagara2_x + wo_s_x, + ze_x + kke_x + n_si_x + deha_o, + + gotosi_x + saseru_x + zaru_x + zu_x + zunba_x + seru_x + souda_x + youtai_x, + denbun_x + ta_x + tai_x + tagaru_x + taru_x + da1_x + da2_x + daxtu_x, + darou_x + de_x + desi_x + desho_x + desu_x + na2_x + nara_x + nai_x, + nu_x + ne2_x + nn2_x + fuuda_x + besi_x + mai_x + masu_x + masure_x, + mase_x + mitaida_x + you_x + youda_x + rasii_x + rareru_x + reru_x + site_x, + + yougen_x + aru_x + ara_x + ari1_x + ari2_x + ari3_x + are1_x + are2_x, + arou_x + ii_x + itasi_x + itadaku_x + iru_x + eru_x + kakeru_x + kaneru_x, + karazu_x + gatai_x + gatida_x + kudasaru_x + gozai_x + sa1_x + si1_x + siro_x, + jyau_x + jimau_x + sugiru_x + subesi_x + suru_x + sure_x + se_x + seyo_x, + tamau_x + tayu_x + timau_x + dekiru_x + naru_x + nasai_x + nasaru_x + nikui_x, + yasui_x + yoi_x + yaru_x + ttarasii_x}; + +static u_char meirei2[] = { + wo_x + ttatte_o + ttara_o + tte1_o + tte2_x + ppanasi_x + ppoi_x + ue_x, + uti_x + oite_x + okeru_x + ori_x + ka1_x + ka2_x + kai_x + kasira_x, + katagata_x + kadouka_x + kana_x + kane_x + kamo_x + kara1_x + kara2_x + ga1_x, + ga2_x + gatera_x + kiri_x + kuseni_x + kurai_x + gurumi_x + kedo_x + koso_x, + koto_x + sa2_x + sae_x + si2_x + sika_x + sura_x + zutu_x + zo_x, + tame_x + dake_x + dano_o + darake_x + tuite_x + tuki_x + tutu_x + tumori_x, + te1_x + te2_x + teru_x + dearou_x + deru_x + to1_x + to2_o + totte_x, + toiu_o + toori_x + toki_x + tokoro_x + tote_o + tohaie_o + tomo_x + do_x, + doori_x + dokoro_x + dokoroka_x + domo_x + na1_x + naa_x + nagara_x + nazo_o, + nado_o + nari_x + nanka_o + nanzo_o + nante_o + ni1_x + ni2_x + ni3_x, + nite_x + nimo_x + ne1_x + nee_x + no1_x + no2_x + node_x + noni_x, + nomi_x + nominrz_x + ha_x + hazu_x + ba_x + bakari_x + he_x + hou_x, + hoka_x + hodo_x + made_x + mama_x + mo1_x + mo2_x + motte_x + mono_x, + ya1_x + ya2_x + yara_x + yue_x + yo_x + yori_x + wa_x + wake_x, + wane_x + wayo_x + nn1_x + jya_x + tya_x + nagara2_x + wo_s_x, + ze_x + kke_x + n_si_x + deha_o, + + gotosi_x + saseru_x + zaru_x + zu_x + zunba_x + seru_x + souda_x + youtai_x, + denbun_x + ta_x + tai_x + tagaru_x + taru_x + da1_x + da2_x + daxtu_x, + darou_x + de_x + desi_x + desho_x + desu_x + na2_x + nara_x + nai_x, + nu_x + ne2_x + nn2_x + fuuda_x + besi_x + mai_x + masu_x + masure_x, + mase_x + mitaida_x + you_x + youda_x + rasii_x + rareru_x + reru_x + site_x, + + yougen_x + aru_x + ara_x + ari1_x + ari2_x + ari3_x + are1_x + are2_x, + arou_x + ii_x + itasi_x + itadaku_x + iru_x + eru_x + kakeru_x + kaneru_x, + karazu_x + gatai_x + gatida_x + kudasaru_x + gozai_x + sa1_x + si1_x + siro_x, + jyau_x + jimau_x + sugiru_x + subesi_x + suru_x + sure_x + se_x + seyo_x, + tamau_x + tayu_x + timau_x + dekiru_x + naru_x + nasai_x + nasaru_x + nikui_x, + yasui_x + yoi_x + yaru_x + ttarasii_x}; + +static u_char dgokan[] = { + wo_x + ttatte_x + ttara_x + tte1_o + tte2_x + ppanasi_x + ppoi_o + ue_x, + uti_x + oite_x + okeru_x + ori_x + ka1_o + ka2_x + kai_x + kasira_o, + katagata_x + kadouka_o + kana_o + kane_o + kamo_o + kara1_x + kara2_x + ga1_x, + ga2_x + gatera_x + kiri_x + kuseni_x + kurai_x + gurumi_x + kedo_x + koso_x, + koto_x + sa2_o + sae_x + si2_x + sika_x + sura_x + zutu_x + zo_x, + tame_x + dake_x + dano_o + darake_x + tuite_x + tuki_x + tutu_x + tumori_x, + te1_x + te2_x + teru_x + dearou_x + deru_x + to1_o + to2_x + totte_x, + toiu_o + toori_x + toki_x + tokoro_x + tote_o + tohaie_o + tomo_x + do_x, + doori_x + dokoro_x + dokoroka_o + domo_x + na1_x + naa_x + nagara_x + nazo_o, + nado_o + nari_x + nanka_o + nanzo_o + nante_o + ni1_x + ni2_x + ni3_x, + nite_x + nimo_x + ne1_o + nee_o + no1_x + no2_x + node_x + noni_x, + nomi_x + nominrz_x + ha_x + hazu_x + ba_x + bakari_x + he_x + hou_x, + hoka_x + hodo_x + made_x + mama_x + mo1_x + mo2_x + motte_x + mono_x, + ya1_x + ya2_x + yara_o + yue_x + yo_o + yori_x + wa_x + wake_x, + wane_x + wayo_x + nn1_x + jya_o + tya_x + nagara2_o + wo_s_x, + ze_x + kke_x + n_si_x + deha_x, + + gotosi_x + saseru_x + zaru_x + zu_x + zunba_x + seru_x + souda_o + youtai_o, + denbun_x + ta_x + tai_x + tagaru_x + taru_x + da1_x + da2_x + daxtu_x, + darou_x + de_x + desi_o + desho_o + desu_o + na2_x + nara_x + nai_x, + nu_x + ne2_x + nn2_x + fuuda_x + besi_x + mai_x + masu_x + masure_x, + mase_x + mitaida_o + you_x + youda_x + rasii_o + rareru_x + reru_x + site_x, + + yougen_x + aru_x + ara_x + ari1_x + ari2_x + ari3_x + are1_x + are2_x, + arou_x + ii_x + itasi_x + itadaku_x + iru_x + eru_x + kakeru_x + kaneru_x, + karazu_x + gatai_x + gatida_x + kudasaru_x + gozai_x + sa1_x + si1_x + siro_x, + jyau_x + jimau_x + sugiru_o + subesi_x + suru_x + sure_x + se_x + seyo_x, + tamau_x + tayu_x + timau_x + dekiru_x + naru_x + nasai_x + nasaru_x + nikui_x, + yasui_x + yoi_x + yaru_x + ttarasii_o}; + +static u_char kgokan[] = { + wo_x + ttatte_x + ttara_x + tte1_x + tte2_x + ppanasi_x + ppoi_x + ue_x, + uti_x + oite_x + okeru_x + ori_x + ka1_x + ka2_x + kai_x + kasira_x, + katagata_x + kadouka_x + kana_x + kane_x + kamo_x + kara1_x + kara2_x + ga1_x, + ga2_x + gatera_x + kiri_x + kuseni_x + kurai_x + gurumi_x + kedo_x + koso_x, + koto_x + sa2_x + sae_x + si2_x + sika_x + sura_x + zutu_x + zo_x, + tame_x + dake_x + dano_x + darake_x + tuite_x + tuki_x + tutu_x + tumori_x, + te1_x + te2_x + teru_x + dearou_x + deru_x + to1_x + to2_x + totte_x, + toiu_x + toori_x + toki_x + tokoro_x + tote_x + tohaie_x + tomo_x + do_x, + doori_x + dokoro_x + dokoroka_x + domo_x + na1_x + naa_x + nagara_x + nazo_x, + nado_x + nari_x + nanka_x + nanzo_x + nante_x + ni1_x + ni2_x + ni3_x, + nite_x + nimo_x + ne1_x + nee_x + no1_x + no2_x + node_x + noni_x, + nomi_x + nominrz_x + ha_x + hazu_x + ba_x + bakari_x + he_x + hou_x, + hoka_x + hodo_x + made_x + mama_x + mo1_x + mo2_x + motte_x + mono_x, + ya1_x + ya2_x + yara_x + yue_x + yo_x + yori_x + wa_x + wake_x, + wane_x + wayo_x + nn1_x + jya_x + tya_x + nagara2_x + wo_s_x, + ze_x + kke_x + n_si_x + deha_x, + + gotosi_x + saseru_x + zaru_x + zu_x + zunba_x + seru_x + souda_o + youtai_o, + denbun_x + ta_x + tai_x + tagaru_x + taru_x + da1_x + da2_x + daxtu_x, + darou_x + de_x + desi_x + desho_x + desu_x + na2_x + nara_x + nai_x, + nu_x + ne2_x + nn2_x + fuuda_x + besi_x + mai_x + masu_x + masure_x, + mase_x + mitaida_x + you_x + youda_x + rasii_x + rareru_x + reru_x + site_x, + + yougen_x + aru_x + ara_x + ari1_x + ari2_x + ari3_x + are1_x + are2_x, + arou_x + ii_x + itasi_x + itadaku_x + iru_x + eru_x + kakeru_x + kaneru_x, + karazu_o + gatai_x + gatida_x + kudasaru_x + gozai_x + sa1_x + si1_x + siro_x, + jyau_x + jimau_x + sugiru_o + subesi_x + suru_x + sure_x + se_x + seyo_x, + tamau_x + tayu_x + timau_x + dekiru_x + naru_x + nasai_x + nasaru_x + nikui_x, + yasui_x + yoi_x + yaru_x + ttarasii_o}; + +static u_char sgokan[] = { + wo_x + ttatte_x + ttara_x + tte1_x + tte2_x + ppanasi_x + ppoi_x + ue_x, + uti_x + oite_x + okeru_x + ori_x + ka1_x + ka2_x + kai_x + kasira_x, + katagata_x + kadouka_x + kana_x + kane_x + kamo_x + kara1_x + kara2_x + ga1_x, + ga2_x + gatera_x + kiri_x + kuseni_x + kurai_x + gurumi_x + kedo_x + koso_x, + koto_x + sa2_x + sae_x + si2_x + sika_x + sura_x + zutu_x + zo_x, + tame_x + dake_x + dano_x + darake_x + tuite_x + tuki_x + tutu_x + tumori_x, + te1_x + te2_x + teru_x + dearou_x + deru_x + to1_x + to2_x + totte_x, + toiu_x + toori_x + toki_x + tokoro_x + tote_x + tohaie_x + tomo_x + do_x, + doori_x + dokoro_x + dokoroka_x + domo_x + na1_x + naa_x + nagara_x + nazo_x, + nado_x + nari_x + nanka_x + nanzo_x + nante_x + ni1_x + ni2_x + ni3_x, + nite_x + nimo_x + ne1_x + nee_x + no1_x + no2_x + node_x + noni_x, + nomi_x + nominrz_x + ha_x + hazu_x + ba_x + bakari_x + he_x + hou_x, + hoka_x + hodo_x + made_x + mama_x + mo1_x + mo2_x + motte_x + mono_x, + ya1_x + ya2_x + yara_x + yue_x + yo_x + yori_x + wa_x + wake_x, + wane_x + wayo_x + nn1_x + jya_x + tya_x + nagara2_x + wo_s_x, + ze_x + kke_x + n_si_x + deha_x, + + gotosi_x + saseru_x + zaru_x + zu_x + zunba_x + seru_x + souda_x + youtai_x, + denbun_x + ta_x + tai_x + tagaru_x + taru_x + da1_x + da2_x + daxtu_x, + darou_x + de_x + desi_x + desho_x + desu_x + na2_x + nara_x + nai_x, + nu_x + ne2_x + nn2_x + fuuda_x + besi_x + mai_x + masu_x + masure_x, + mase_x + mitaida_x + you_x + youda_x + rasii_x + rareru_x + reru_x + site_x, + + yougen_x + aru_x + ara_x + ari1_x + ari2_x + ari3_x + are1_x + are2_x, + arou_x + ii_x + itasi_x + itadaku_x + iru_x + eru_x + kakeru_x + kaneru_x, + karazu_x + gatai_x + gatida_x + kudasaru_x + gozai_x + sa1_x + si1_x + siro_x, + jyau_x + jimau_x + sugiru_x + subesi_o + suru_x + sure_x + se_x + seyo_x, + tamau_x + tayu_x + timau_x + dekiru_x + naru_x + nasai_x + nasaru_x + nikui_x, + yasui_x + yoi_x + yaru_x + ttarasii_x}; + +static u_char gati[] = { + wo_x + ttatte_x + ttara_x + tte1_x + tte2_x + ppanasi_x + ppoi_x + ue_x, + uti_x + oite_x + okeru_x + ori_x + ka1_x + ka2_x + kai_x + kasira_o, + katagata_x + kadouka_x + kana_o + kane_o + kamo_o + kara1_x + kara2_x + ga1_x, + ga2_x + gatera_x + kiri_x + kuseni_x + kurai_x + gurumi_x + kedo_x + koso_x, + koto_x + sa2_x + sae_x + si2_x + sika_x + sura_x + zutu_x + zo_x, + tame_x + dake_x + dano_o + darake_x + tuite_x + tuki_x + tutu_x + tumori_x, + te1_x + te2_x + teru_x + dearou_x + deru_x + to1_x + to2_x + totte_x, + toiu_x + toori_x + toki_x + tokoro_x + tote_x + tohaie_x + tomo_x + do_x, + doori_x + dokoro_x + dokoroka_x + domo_x + na1_x + naa_x + nagara_x + nazo_x, + nado_x + nari_x + nanka_x + nanzo_x + nante_x + ni1_x + ni2_x + ni3_x, + nite_x + nimo_x + ne1_o + nee_o + no1_x + no2_x + node_x + noni_x, + nomi_x + nominrz_x + ha_x + hazu_x + ba_x + bakari_x + he_x + hou_x, + hoka_x + hodo_x + made_x + mama_x + mo1_x + mo2_x + motte_x + mono_x, + ya1_x + ya2_x + yara_x + yue_x + yo_x + yori_x + wa_x + wake_x, + wane_x + wayo_x + nn1_x + jya_x + tya_x + nagara2_x + wo_s_x, + ze_x + kke_x + n_si_x + deha_x, + + gotosi_x + saseru_x + zaru_x + zu_x + zunba_x + seru_x + souda_x + youtai_x, + denbun_x + ta_x + tai_x + tagaru_x + taru_x + da1_x + da2_x + daxtu_x, + darou_x + de_x + desi_o + desho_o + desu_o + na2_x + nara_x + nai_x, + nu_x + ne2_x + nn2_x + fuuda_x + besi_x + mai_x + masu_x + masure_x, + mase_x + mitaida_x + you_x + youda_x + rasii_o + rareru_x + reru_x + site_x, + + yougen_x + aru_x + ara_x + ari1_x + ari2_x + ari3_x + are1_x + are2_x, + arou_x + ii_x + itasi_x + itadaku_x + iru_x + eru_x + kakeru_x + kaneru_x, + karazu_x + gatai_x + gatida_x + kudasaru_x + gozai_x + sa1_x + si1_x + siro_x, + jyau_x + jimau_x + sugiru_x + subesi_x + suru_x + sure_x + se_x + seyo_x, + tamau_x + tayu_x + timau_x + dekiru_x + naru_x + nasai_x + nasaru_x + nikui_x, + yasui_x + yoi_x + yaru_x + ttarasii_x}; + +static u_char jya[] = { + wo_x + ttatte_x + ttara_x + tte1_x + tte2_x + ppanasi_x + ppoi_x + ue_x, + uti_x + oite_x + okeru_x + ori_x + ka1_x + ka2_x + kai_x + kasira_x, + katagata_x + kadouka_x + kana_x + kane_x + kamo_x + kara1_x + kara2_x + ga1_x, + ga2_x + gatera_x + kiri_x + kuseni_x + kurai_x + gurumi_x + kedo_x + koso_x, + koto_x + sa2_x + sae_x + si2_x + sika_x + sura_x + zutu_x + zo_x, + tame_x + dake_x + dano_x + darake_x + tuite_x + tuki_x + tutu_x + tumori_x, + te1_x + te2_x + teru_x + dearou_x + deru_x + to1_x + to2_x + totte_x, + toiu_x + toori_x + toki_x + tokoro_x + tote_x + tohaie_x + tomo_x + do_x, + doori_x + dokoro_x + dokoroka_x + domo_x + na1_x + naa_x + nagara_x + nazo_x, + nado_x + nari_x + nanka_x + nanzo_x + nante_x + ni1_x + ni2_x + ni3_x, + nite_x + nimo_x + ne1_o + nee_o + no1_x + no2_x + node_x + noni_x, + nomi_x + nominrz_x + ha_x + hazu_x + ba_x + bakari_x + he_x + hou_x, + hoka_x + hodo_x + made_x + mama_x + mo1_x + mo2_x + motte_x + mono_x, + ya1_x + ya2_x + yara_x + yue_x + yo_x + yori_x + wa_x + wake_x, + wane_x + wayo_x + nn1_x + jya_x + tya_x + nagara2_x + wo_s_x, + ze_x + kke_x + n_si_x + deha_x, + + gotosi_x + saseru_x + zaru_x + zu_x + zunba_x + seru_x + souda_x + youtai_x, + denbun_x + ta_x + tai_x + tagaru_x + taru_x + da1_x + da2_x + daxtu_x, + darou_x + de_x + desi_x + desho_x + desu_x + na2_x + nara_x + nai_o, + nu_x + ne2_x + nn2_x + fuuda_x + besi_x + mai_x + masu_x + masure_x, + mase_x + mitaida_x + you_x + youda_x + rasii_x + rareru_x + reru_x + site_x, + + yougen_x + aru_x + ara_x + ari1_x + ari2_x + ari3_x + are1_x + are2_x, + arou_x + ii_x + itasi_x + itadaku_x + iru_x + eru_x + kakeru_x + kaneru_x, + karazu_x + gatai_x + gatida_x + kudasaru_x + gozai_x + sa1_x + si1_x + siro_x, + jyau_x + jimau_x + sugiru_x + subesi_x + suru_x + sure_x + se_x + seyo_x, + tamau_x + tayu_x + timau_x + dekiru_x + naru_x + nasai_x + nasaru_x + nikui_x, + yasui_x + yoi_x + yaru_x + ttarasii_x}; + +static u_char sou[] = { + wo_x + ttatte_x + ttara_x + tte1_o + tte2_x + ppanasi_x + ppoi_x + ue_x, + uti_x + oite_x + okeru_x + ori_x + ka1_x + ka2_o + kai_x + kasira_o, + katagata_x + kadouka_o + kana_o + kane_o + kamo_x + kara1_x + kara2_x + ga1_x, + ga2_x + gatera_x + kiri_x + kuseni_x + kurai_x + gurumi_x + kedo_x + koso_x, + koto_x + sa2_o + sae_x + si2_x + sika_x + sura_x + zutu_x + zo_x, + tame_x + dake_x + dano_x + darake_x + tuite_x + tuki_x + tutu_x + tumori_x, + te1_x + te2_x + teru_x + dearou_x + deru_x + to1_x + to2_o + totte_x, + toiu_o + toori_x + toki_x + tokoro_x + tote_x + tohaie_o + tomo_x + do_x, + doori_x + dokoro_x + dokoroka_o + domo_x + na1_x + naa_x + nagara_x + nazo_x, + nado_x + nari_x + nanka_x + nanzo_x + nante_x + ni1_x + ni2_x + ni3_x, + nite_x + nimo_x + ne1_o + nee_o + no1_x + no2_x + node_x + noni_x, + nomi_x + nominrz_x + ha_x + hazu_x + ba_x + bakari_x + he_x + hou_x, + hoka_x + hodo_x + made_x + mama_x + mo1_x + mo2_o + motte_x + mono_x, + ya1_x + ya2_x + yara_x + yue_x + yo_o + yori_x + wa_x + wake_x, + wane_x + wayo_x + nn1_x + jya_o + tya_x + nagara2_x + wo_s_x, + ze_x + kke_x + n_si_x + deha_o, + + gotosi_x + saseru_x + zaru_x + zu_x + zunba_x + seru_x + souda_x + youtai_x, + denbun_x + ta_x + tai_x + tagaru_x + taru_x + da1_x + da2_x + daxtu_x, + darou_x + de_x + desi_x + desho_x + desu_x + na2_x + nara_x + nai_x, + nu_x + ne2_x + nn2_x + fuuda_x + besi_x + mai_x + masu_x + masure_x, + mase_x + mitaida_x + you_x + youda_x + rasii_x + rareru_x + reru_x + site_x, + + yougen_x + aru_x + ara_x + ari1_x + ari2_x + ari3_x + are1_x + are2_x, + arou_x + ii_x + itasi_x + itadaku_x + iru_x + eru_x + kakeru_x + kaneru_x, + karazu_x + gatai_x + gatida_x + kudasaru_x + gozai_x + sa1_x + si1_x + siro_x, + jyau_x + jimau_x + sugiru_x + subesi_x + suru_x + sure_x + se_x + seyo_x, + tamau_x + tayu_x + timau_x + dekiru_x + naru_x + nasai_x + nasaru_x + nikui_x, + yasui_x + yoi_x + yaru_x + ttarasii_x}; + +static u_char mitai[] = { + wo_x + ttatte_x + ttara_x + tte1_o + tte2_x + ppanasi_x + ppoi_x + ue_x, + uti_x + oite_x + okeru_x + ori_x + ka1_x + ka2_x + kai_x + kasira_x, + katagata_x + kadouka_x + kana_x + kane_x + kamo_x + kara1_x + kara2_x + ga1_x, + ga2_x + gatera_x + kiri_x + kuseni_x + kurai_x + gurumi_x + kedo_x + koso_x, + koto_x + sa2_o + sae_x + si2_x + sika_x + sura_x + zutu_x + zo_x, + tame_x + dake_x + dano_x + darake_x + tuite_x + tuki_x + tutu_x + tumori_x, + te1_x + te2_x + teru_x + dearou_x + deru_x + to1_x + to2_o + totte_x, + toiu_o + toori_x + toki_x + tokoro_x + tote_x + tohaie_o + tomo_x + do_x, + doori_x + dokoro_x + dokoroka_x + domo_x + na1_x + naa_x + nagara_x + nazo_x, + nado_x + nari_x + nanka_x + nanzo_x + nante_x + ni1_x + ni2_x + ni3_x, + nite_x + nimo_x + ne1_o + nee_o + no1_x + no2_x + node_x + noni_x, + nomi_x + nominrz_x + ha_x + hazu_x + ba_x + bakari_x + he_x + hou_x, + hoka_x + hodo_x + made_x + mama_x + mo1_x + mo2_x + motte_x + mono_x, + ya1_x + ya2_x + yara_x + yue_x + yo_o + yori_x + wa_x + wake_x, + wane_x + wayo_x + nn1_x + jya_o + tya_x + nagara2_x + wo_s_x, + ze_x + kke_x + n_si_x + deha_o, + + gotosi_x + saseru_x + zaru_x + zu_x + zunba_x + seru_x + souda_x + youtai_x, + denbun_x + ta_x + tai_x + tagaru_x + taru_x + da1_x + da2_x + daxtu_x, + darou_x + de_x + desi_x + desho_x + desu_x + na2_x + nara_x + nai_x, + nu_x + ne2_x + nn2_x + fuuda_x + besi_x + mai_x + masu_x + masure_x, + mase_x + mitaida_x + you_x + youda_x + rasii_x + rareru_x + reru_x + site_x, + + yougen_x + aru_x + ara_x + ari1_x + ari2_x + ari3_x + are1_x + are2_x, + arou_x + ii_x + itasi_x + itadaku_x + iru_x + eru_x + kakeru_x + kaneru_x, + karazu_x + gatai_x + gatida_x + kudasaru_x + gozai_x + sa1_x + si1_x + siro_x, + jyau_x + jimau_x + sugiru_x + subesi_x + suru_x + sure_x + se_x + seyo_x, + tamau_x + tayu_x + timau_x + dekiru_x + naru_x + nasai_x + nasaru_x + nikui_x, + yasui_x + yoi_x + yaru_x + ttarasii_x}; + +static u_char yotte[] = { + wo_x + ttatte_x + ttara_x + tte1_x + tte2_x + ppanasi_x + ppoi_x + ue_x, + uti_x + oite_x + okeru_x + ori_x + ka1_x + ka2_x + kai_x + kasira_x, + katagata_x + kadouka_x + kana_x + kane_x + kamo_x + kara1_x + kara2_x + ga1_x, + ga2_x + gatera_x + kiri_x + kuseni_x + kurai_x + gurumi_x + kedo_x + koso_x, + koto_x + sa2_x + sae_x + si2_x + sika_x + sura_x + zutu_x + zo_x, + tame_x + dake_o + dano_x + darake_x + tuite_x + tuki_x + tutu_x + tumori_x, + te1_x + te2_x + teru_x + dearou_x + deru_x + to1_x + to2_x + totte_x, + toiu_x + toori_x + toki_x + tokoro_x + tote_x + tohaie_x + tomo_x + do_x, + doori_x + dokoro_x + dokoroka_x + domo_x + na1_x + naa_x + nagara_x + nazo_x, + nado_x + nari_x + nanka_x + nanzo_x + nante_x + ni1_x + ni2_x + ni3_x, + nite_x + nimo_x + ne1_x + nee_x + no1_x + no2_x + node_x + noni_x, + nomi_x + nominrz_x + ha_o + hazu_x + ba_x + bakari_x + he_x + hou_x, + hoka_x + hodo_x + made_x + mama_x + mo1_o + mo2_x + motte_x + mono_x, + ya1_x + ya2_x + yara_x + yue_x + yo_x + yori_x + wa_x + wake_x, + wane_x + wayo_x + nn1_x + jya_x + tya_x + nagara2_x + wo_s_x, + ze_x + kke_x + n_si_x + deha_x, + + gotosi_x + saseru_x + zaru_x + zu_x + zunba_x + seru_x + souda_x + youtai_x, + denbun_x + ta_x + tai_x + tagaru_x + taru_x + da1_x + da2_x + daxtu_x, + darou_x + de_x + desi_x + desho_x + desu_x + na2_x + nara_x + nai_x, + nu_x + ne2_x + nn2_x + fuuda_x + besi_x + mai_x + masu_x + masure_x, + mase_x + mitaida_x + you_x + youda_x + rasii_x + rareru_x + reru_x + site_x, + + yougen_x + aru_x + ara_x + ari1_x + ari2_x + ari3_x + are1_x + are2_x, + arou_x + ii_x + itasi_x + itadaku_x + iru_x + eru_x + kakeru_x + kaneru_x, + karazu_x + gatai_x + gatida_x + kudasaru_x + gozai_x + sa1_x + si1_x + siro_x, + jyau_x + jimau_x + sugiru_x + subesi_x + suru_x + sure_x + se_x + seyo_x, + tamau_x + tayu_x + timau_x + dekiru_x + naru_x + nasai_x + nasaru_x + nikui_x, + yasui_x + yoi_x + yaru_x + ttarasii_x}; + +static u_char you2[] = { + wo_x + ttatte_x + ttara_x + tte1_x + tte2_x + ppanasi_x + ppoi_x + ue_x, + uti_x + oite_x + okeru_x + ori_x + ka1_x + ka2_x + kai_x + kasira_x, + katagata_x + kadouka_x + kana_x + kane_x + kamo_x + kara1_x + kara2_x + ga1_x, + ga2_x + gatera_x + kiri_x + kuseni_x + kurai_x + gurumi_x + kedo_x + koso_x, + koto_x + sa2_x + sae_x + si2_x + sika_x + sura_x + zutu_x + zo_x, + tame_x + dake_x + dano_x + darake_x + tuite_x + tuki_x + tutu_x + tumori_x, + te1_x + te2_x + teru_x + dearou_x + deru_x + to1_x + to2_x + totte_x, + toiu_x + toori_x + toki_x + tokoro_x + tote_x + tohaie_x + tomo_x + do_x, + doori_x + dokoro_x + dokoroka_x + domo_x + na1_x + naa_x + nagara_x + nazo_x, + nado_x + nari_x + nanka_x + nanzo_x + nante_x + ni1_x + ni2_x + ni3_x, + nite_x + nimo_x + ne1_o + nee_o + no1_x + no2_x + node_x + noni_x, + nomi_x + nominrz_x + ha_x + hazu_x + ba_x + bakari_x + he_x + hou_x, + hoka_x + hodo_x + made_x + mama_x + mo1_x + mo2_x + motte_x + mono_x, + ya1_x + ya2_x + yara_x + yue_x + yo_o + yori_x + wa_x + wake_x, + wane_x + wayo_x + nn1_x + jya_o + tya_x + nagara2_x + wo_s_x, + ze_x + kke_x + n_si_x + deha_x, + + gotosi_x + saseru_x + zaru_x + zu_x + zunba_x + seru_x + souda_x + youtai_x, + denbun_x + ta_x + tai_x + tagaru_x + taru_x + da1_x + da2_x + daxtu_x, + darou_x + de_x + desi_x + desho_x + desu_x + na2_x + nara_x + nai_x, + nu_x + ne2_x + nn2_x + fuuda_x + besi_x + mai_x + masu_x + masure_x, + mase_x + mitaida_x + you_x + youda_x + rasii_x + rareru_x + reru_x + site_x, + + yougen_x + aru_x + ara_x + ari1_x + ari2_x + ari3_x + are1_x + are2_x, + arou_x + ii_x + itasi_x + itadaku_x + iru_x + eru_x + kakeru_x + kaneru_x, + karazu_x + gatai_x + gatida_x + kudasaru_x + gozai_x + sa1_x + si1_x + siro_x, + jyau_x + jimau_x + sugiru_x + subesi_x + suru_x + sure_x + se_x + seyo_x, + tamau_x + tayu_x + timau_x + dekiru_x + naru_x + nasai_x + nasaru_x + nikui_x, + yasui_x + yoi_x + yaru_x + ttarasii_x}; + +static u_char sho[] = { + wo_x + ttatte_o + ttara_o + tte1_o + tte2_x + ppanasi_x + ppoi_x + ue_x, + uti_x + oite_x + okeru_x + ori_x + ka1_x + ka2_x + kai_x + kasira_x, + katagata_x + kadouka_x + kana_x + kane_x + kamo_x + kara1_x + kara2_x + ga1_x, + ga2_x + gatera_x + kiri_x + kuseni_x + kurai_x + gurumi_x + kedo_x + koso_x, + koto_x + sa2_x + sae_x + si2_x + sika_x + sura_x + zutu_x + zo_x, + tame_x + dake_x + dano_x + darake_x + tuite_x + tuki_x + tutu_x + tumori_x, + te1_x + te2_x + teru_x + dearou_x + deru_x + to1_x + to2_o + totte_x, + toiu_o + toori_x + toki_x + tokoro_x + tote_x + tohaie_o + tomo_x + do_x, + doori_x + dokoro_x + dokoroka_x + domo_x + na1_x + naa_x + nagara_x + nazo_o, + nado_o + nari_x + nanka_o + nanzo_o + nante_o + ni1_x + ni2_x + ni3_x, + nite_x + nimo_x + ne1_x + nee_x + no1_x + no2_x + node_x + noni_x, + nomi_x + nominrz_x + ha_x + hazu_x + ba_x + bakari_x + he_x + hou_x, + hoka_x + hodo_x + made_x + mama_x + mo1_x + mo2_x + motte_x + mono_x, + ya1_x + ya2_x + yara_x + yue_x + yo_x + yori_x + wa_x + wake_x, + wane_x + wayo_x + nn1_x + jya_x + tya_x + nagara2_x + wo_s_x, + ze_x + kke_x + n_si_x + deha_o, + + gotosi_x + saseru_x + zaru_x + zu_x + zunba_x + seru_x + souda_x + youtai_x, + denbun_x + ta_x + tai_x + tagaru_x + taru_x + da1_x + da2_x + daxtu_x, + darou_x + de_x + desi_x + desho_x + desu_x + na2_x + nara_x + nai_x, + nu_x + ne2_x + nn2_x + fuuda_x + besi_x + mai_x + masu_x + masure_x, + mase_x + mitaida_x + you_x + youda_x + rasii_x + rareru_x + reru_x + site_x, + + yougen_x + aru_x + ara_x + ari1_x + ari2_x + ari3_x + are1_x + are2_x, + arou_x + ii_x + itasi_x + itadaku_x + iru_x + eru_x + kakeru_x + kaneru_x, + karazu_x + gatai_x + gatida_x + kudasaru_x + gozai_x + sa1_x + si1_x + siro_x, + jyau_x + jimau_x + sugiru_x + subesi_x + suru_x + sure_x + se_x + seyo_x, + tamau_x + tayu_x + timau_x + dekiru_x + naru_x + nasai_x + nasaru_x + nikui_x, + yasui_x + yoi_x + yaru_x + ttarasii_x}; + +static u_char meisi[] = { + wo_o + ttatte_x + ttara_o + tte1_o + tte2_x + ppanasi_x + ppoi_o + ue_x, + uti_x + oite_x + okeru_x + ori_x + ka1_o + ka2_x + kai_x + kasira_o, + katagata_x + kadouka_o + kana_o + kane_o + kamo_o + kara1_o + kara2_x + ga1_o, + ga2_x + gatera_x + kiri_o + kuseni_x + kurai_o + gurumi_o + kedo_x + koso_o, + koto_x + sa2_o + sae_o + si2_x + sika_o + sura_o + zutu_o + zo_o, + tame_x + dake_o + dano_o + darake_o + tuite_x + tuki_x + tutu_x + tumori_x, + te1_x + te2_x + teru_x + dearou_x + deru_x + to1_o + to2_x + totte_x, + toiu_o + toori_x + toki_x + tokoro_x + tote_o + tohaie_o + tomo_x + do_x, + doori_o + dokoro_o + dokoroka_o + domo_x + na1_x + naa_o + nagara_o + nazo_o, + nado_o + nari_o + nanka_o + nanzo_o + nante_o + ni1_o + ni2_x + ni3_x, + nite_o + nimo_x + ne1_o + nee_o + no1_o + no2_x + node_x + noni_x, + nomi_o + nominrz_o + ha_o + hazu_x + ba_x + bakari_o + he_o + hou_x, + hoka_x + hodo_o + made_o + mama_x + mo1_x + mo2_o + motte_x + mono_x, + ya1_o + ya2_x + yara_o + yue_x + yo_o + yori_o + wa_x + wake_x, + wane_o + wayo_x + nn1_x + jya_o + tya_x + nagara2_x + wo_s_x, + ze_x + kke_x + n_si_x + deha_x, + + gotosi_x + saseru_x + zaru_x + zu_x + zunba_x + seru_x + souda_x + youtai_x, + denbun_x + ta_x + tai_x + tagaru_x + taru_o + da1_x + da2_o + daxtu_o, + darou_o + de_o + desi_o + desho_o + desu_o + na2_o + nara_o + nai_x, + nu_x + ne2_x + nn2_x + fuuda_x + besi_x + mai_x + masu_x + masure_x, + mase_x + mitaida_o + you_x + youda_x + rasii_o + rareru_x + reru_x + site_x, + + yougen_x + aru_x + ara_x + ari1_x + ari2_x + ari3_x + are1_x + are2_x, + arou_x + ii_x + itasi_x + itadaku_x + iru_x + eru_x + kakeru_x + kaneru_x, + karazu_x + gatai_x + gatida_x + kudasaru_x + gozai_x + sa1_x + si1_x + siro_x, + jyau_x + jimau_x + sugiru_x + subesi_x + suru_x + sure_x + se_x + seyo_x, + tamau_x + tayu_x + timau_x + dekiru_x + naru_x + nasai_x + nasaru_x + nikui_x, + yasui_x + yoi_x + yaru_x + ttarasii_x}; + +static u_char wo_meisi[] = { + wo_x + ttatte_x + ttara_o + tte1_o + tte2_x + ppanasi_x + ppoi_o + ue_x, + uti_x + oite_x + okeru_x + ori_x + ka1_o + ka2_x + kai_x + kasira_o, + katagata_x + kadouka_o + kana_o + kane_o + kamo_o + kara1_o + kara2_x + ga1_o, + ga2_x + gatera_x + kiri_o + kuseni_x + kurai_o + gurumi_o + kedo_x + koso_o, + koto_x + sa2_o + sae_o + si2_x + sika_o + sura_o + zutu_o + zo_o, + tame_x + dake_o + dano_o + darake_o + tuite_x + tuki_x + tutu_x + tumori_x, + te1_x + te2_x + teru_x + dearou_x + deru_x + to1_o + to2_x + totte_x, + toiu_o + toori_x + toki_x + tokoro_x + tote_o + tohaie_o + tomo_x + do_x, + doori_o + dokoro_o + dokoroka_o + domo_x + na1_x + naa_o + nagara_o + nazo_o, + nado_o + nari_o + nanka_o + nanzo_o + nante_o + ni1_o + ni2_x + ni3_x, + nite_o + nimo_x + ne1_o + nee_o + no1_o + no2_x + node_x + noni_x, + nomi_o + nominrz_o + ha_o + hazu_x + ba_x + bakari_o + he_o + hou_x, + hoka_x + hodo_o + made_o + mama_x + mo1_x + mo2_o + motte_x + mono_x, + ya1_o + ya2_x + yara_o + yue_x + yo_o + yori_o + wa_x + wake_x, + wane_o + wayo_x + nn1_x + jya_o + tya_x + nagara2_x + wo_s_o, + ze_x + kke_x + n_si_x + deha_x, + + gotosi_x + saseru_x + zaru_x + zu_x + zunba_x + seru_x + souda_x + youtai_x, + denbun_x + ta_x + tai_x + tagaru_x + taru_o + da1_x + da2_o + daxtu_o, + darou_o + de_o + desi_o + desho_o + desu_o + na2_o + nara_o + nai_x, + nu_x + ne2_x + nn2_x + fuuda_x + besi_x + mai_x + masu_x + masure_x, + mase_x + mitaida_o + you_x + youda_x + rasii_o + rareru_x + reru_x + site_x, + + yougen_x + aru_x + ara_x + ari1_x + ari2_x + ari3_x + are1_x + are2_x, + arou_x + ii_x + itasi_x + itadaku_x + iru_x + eru_x + kakeru_x + kaneru_x, + karazu_x + gatai_x + gatida_x + kudasaru_x + gozai_x + sa1_x + si1_x + siro_x, + jyau_x + jimau_x + sugiru_x + subesi_x + suru_x + sure_x + se_x + seyo_x, + tamau_x + tayu_x + timau_x + dekiru_x + naru_x + nasai_x + nasaru_x + nikui_x, + yasui_x + yoi_x + yaru_x + ttarasii_x}; + +static u_char dmeisi[] = { + wo_o + ttatte_x + ttara_o + tte1_o + tte2_x + ppanasi_x + ppoi_o + ue_x, + uti_x + oite_x + okeru_x + ori_x + ka1_o + ka2_x + kai_x + kasira_o, + katagata_x + kadouka_o + kana_o + kane_o + kamo_o + kara1_o + kara2_x + ga1_o, + ga2_x + gatera_x + kiri_x + kuseni_x + kurai_o + gurumi_o + kedo_x + koso_o, + koto_x + sa2_o + sae_o + si2_x + sika_o + sura_o + zutu_o + zo_o, + tame_x + dake_o + dano_o + darake_o + tuite_x + tuki_x + tutu_x + tumori_x, + te1_x + te2_x + teru_x + dearou_x + deru_x + to1_o + to2_x + totte_x, + toiu_o + toori_x + toki_x + tokoro_x + tote_o + tohaie_o + tomo_x + do_x, + doori_x + dokoro_o + dokoroka_o + domo_x + na1_x + naa_o + nagara_o + nazo_o, + nado_o + nari_o + nanka_o + nanzo_o + nante_o + ni1_x + ni2_x + ni3_x, + nite_o + nimo_x + ne1_o + nee_o + no1_o + no2_x + node_x + noni_x, + nomi_o + nominrz_o + ha_o + hazu_x + ba_x + bakari_o + he_o + hou_x, + hoka_x + hodo_o + made_o + mama_x + mo1_x + mo2_o + motte_x + mono_x, + ya1_o + ya2_x + yara_o + yue_x + yo_o + yori_o + wa_x + wake_x, + wane_o + wayo_x + nn1_x + jya_o + tya_x + nagara2_x + wo_s_x, + ze_x + kke_x + n_si_x + deha_x, + + gotosi_x + saseru_x + zaru_x + zu_x + zunba_x + seru_x + souda_o + youtai_o, + denbun_x + ta_x + tai_x + tagaru_x + taru_o + da1_x + da2_x + daxtu_x, + darou_x + de_x + desi_o + desho_o + desu_o + na2_x + nara_x + nai_x, + nu_x + ne2_x + nn2_x + fuuda_x + besi_x + mai_x + masu_x + masure_x, + mase_x + mitaida_o + you_x + youda_x + rasii_o + rareru_x + reru_x + site_x, + + yougen_x + aru_x + ara_x + ari1_x + ari2_x + ari3_x + are1_x + are2_x, + arou_x + ii_x + itasi_x + itadaku_x + iru_x + eru_x + kakeru_x + kaneru_x, + karazu_x + gatai_x + gatida_x + kudasaru_x + gozai_x + sa1_x + si1_x + siro_x, + jyau_x + jimau_x + sugiru_x + subesi_x + suru_x + sure_x + se_x + seyo_x, + tamau_x + tayu_x + timau_x + dekiru_x + naru_x + nasai_x + nasaru_x + nikui_x, + yasui_x + yoi_x + yaru_x + ttarasii_o}; + +static u_char smeisi1[] = { + wo_x + ttatte_x + ttara_o + tte1_o + tte2_x + ppanasi_x + ppoi_o + ue_x, + uti_x + oite_x + okeru_x + ori_x + ka1_o + ka2_x + kai_x + kasira_o, + katagata_o + kadouka_o + kana_o + kane_o + kamo_o + kara1_o + kara2_x + ga1_o, + ga2_x + gatera_o + kiri_x + kuseni_x + kurai_o + gurumi_o + kedo_x + koso_o, + koto_x + sa2_o + sae_o + si2_x + sika_o + sura_o + zutu_o + zo_o, + tame_x + dake_o + dano_o + darake_o + tuite_x + tuki_x + tutu_x + tumori_x, + te1_x + te2_x + teru_x + dearou_x + deru_x + to1_o + to2_x + totte_x, + toiu_o + toori_x + toki_x + tokoro_x + tote_o + tohaie_o + tomo_x + do_x, + doori_o + dokoro_o + dokoroka_o + domo_x + na1_x + naa_o + nagara_x + nazo_o, + nado_o + nari_o + nanka_o + nanzo_o + nante_o + ni1_o + ni2_x + ni3_x, + nite_o + nimo_x + ne1_o + nee_o + no1_o + no2_x + node_x + noni_x, + nomi_o + nominrz_o + ha_o + hazu_x + ba_x + bakari_o + he_o + hou_x, + hoka_x + hodo_o + made_o + mama_x + mo1_x + mo2_o + motte_x + mono_x, + ya1_o + ya2_x + yara_o + yue_x + yo_o + yori_o + wa_x + wake_x, + wane_o + wayo_x + nn1_x + jya_o + tya_x + nagara2_x + wo_s_o, + ze_x + kke_x + n_si_x + deha_x, + + gotosi_x + saseru_x + zaru_x + zu_x + zunba_x + seru_x + souda_x + youtai_x, + denbun_x + ta_x + tai_x + tagaru_x + taru_o + da1_x + da2_o + daxtu_o, + darou_o + de_o + desi_o + desho_o + desu_o + na2_o + nara_o + nai_x, + nu_x + ne2_x + nn2_x + fuuda_x + besi_x + mai_x + masu_x + masure_x, + mase_x + mitaida_o + you_x + youda_x + rasii_o + rareru_x + reru_x + site_x, + + yougen_x + aru_x + ara_x + ari1_x + ari2_x + ari3_x + are1_x + are2_x, + arou_x + ii_x + itasi_o + itadaku_x + iru_x + eru_x + kakeru_x + kaneru_x, + karazu_x + gatai_x + gatida_x + kudasaru_x + gozai_x + sa1_x + si1_x + siro_x, + jyau_x + jimau_x + sugiru_x + subesi_o + suru_x + sure_x + se_x + seyo_x, + tamau_x + tayu_x + timau_x + dekiru_o + naru_x + nasai_x + nasaru_x + nikui_x, + yasui_x + yoi_x + yaru_x + ttarasii_x}; + +static u_char smeisi2[] = { + wo_x + ttatte_x + ttara_o + tte1_o + tte2_x + ppanasi_x + ppoi_x + ue_x, + uti_x + oite_x + okeru_x + ori_x + ka1_o + ka2_x + kai_x + kasira_o, + katagata_o + kadouka_o + kana_o + kane_o + kamo_o + kara1_o + kara2_x + ga1_o, + ga2_x + gatera_x + kiri_x + kuseni_x + kurai_o + gurumi_o + kedo_x + koso_o, + koto_x + sa2_o + sae_o + si2_x + sika_o + sura_o + zutu_o + zo_o, + tame_x + dake_o + dano_o + darake_o + tuite_x + tuki_x + tutu_x + tumori_x, + te1_x + te2_x + teru_x + dearou_x + deru_x + to1_o + to2_x + totte_x, + toiu_o + toori_x + toki_x + tokoro_x + tote_o + tohaie_o + tomo_x + do_x, + doori_o + dokoro_o + dokoroka_o + domo_x + na1_x + naa_o + nagara_x + nazo_o, + nado_o + nari_o + nanka_o + nanzo_o + nante_o + ni1_o + ni2_x + ni3_x, + nite_o + nimo_x + ne1_o + nee_o + no1_o + no2_x + node_x + noni_x, + nomi_o + nominrz_o + ha_o + hazu_x + ba_x + bakari_o + he_o + hou_x, + hoka_x + hodo_o + made_o + mama_x + mo1_x + mo2_o + motte_x + mono_x, + ya1_o + ya2_x + yara_o + yue_x + yo_o + yori_o + wa_x + wake_x, + wane_o + wayo_x + nn1_x + jya_o + tya_x + nagara2_x + wo_s_o, + ze_x + kke_x + n_si_x + deha_x, + + gotosi_x + saseru_x + zaru_x + zu_x + zunba_x + seru_x + souda_x + youtai_x, + denbun_x + ta_x + tai_x + tagaru_x + taru_o + da1_x + da2_o + daxtu_o, + darou_o + de_o + desi_o + desho_o + desu_o + na2_o + nara_o + nai_x, + nu_x + ne2_x + nn2_x + fuuda_x + besi_x + mai_x + masu_x + masure_x, + mase_x + mitaida_o + you_x + youda_x + rasii_o + rareru_x + reru_x + site_x, + + yougen_x + aru_x + ara_x + ari1_x + ari2_x + ari3_x + are1_x + are2_x, + arou_x + ii_x + itasi_o + itadaku_o + iru_x + eru_x + kakeru_x + kaneru_x, + karazu_x + gatai_x + gatida_x + kudasaru_o + gozai_x + sa1_x + si1_x + siro_x, + jyau_x + jimau_x + sugiru_x + subesi_o + suru_x + sure_x + se_x + seyo_x, + tamau_x + tayu_x + timau_x + dekiru_o + naru_x + nasai_x + nasaru_x + nikui_x, + yasui_x + yoi_x + yaru_x + ttarasii_x}; + +static u_char kstb[] = { + wo_x + ttatte_x + ttara_x + tte1_x + tte2_x + ppanasi_x + ppoi_x + ue_x, + uti_x + oite_x + okeru_x + ori_x + ka1_x + ka2_x + kai_x + kasira_x, + katagata_x + kadouka_x + kana_x + kane_x + kamo_x + kara1_x + kara2_x + ga1_x, + ga2_x + gatera_x + kiri_x + kuseni_x + kurai_x + gurumi_x + kedo_x + koso_x, + koto_x + sa2_x + sae_x + si2_x + sika_x + sura_x + zutu_x + zo_x, + tame_x + dake_x + dano_x + darake_x + tuite_x + tuki_x + tutu_x + tumori_x, + te1_x + te2_x + teru_x + dearou_x + deru_x + to1_x + to2_x + totte_x, + toiu_x + toori_x + toki_x + tokoro_x + tote_x + tohaie_x + tomo_x + do_x, + doori_x + dokoro_x + dokoroka_x + domo_x + na1_x + naa_x + nagara_x + nazo_x, + nado_x + nari_x + nanka_x + nanzo_x + nante_x + ni1_x + ni2_x + ni3_x, + nite_x + nimo_x + ne1_x + nee_x + no1_x + no2_x + node_x + noni_x, + nomi_x + nominrz_x + ha_x + hazu_x + ba_x + bakari_x + he_x + hou_x, + hoka_x + hodo_x + made_x + mama_x + mo1_x + mo2_x + motte_x + mono_x, + ya1_x + ya2_x + yara_x + yue_x + yo_x + yori_x + wa_x + wake_x, + wane_x + wayo_x + nn1_x + jya_x + tya_x + nagara2_x + wo_s_x, + ze_x + kke_x + n_si_x + deha_x, + + gotosi_x + saseru_x + zaru_x + zu_x + zunba_x + seru_x + souda_o + youtai_o, + denbun_x + ta_x + tai_x + tagaru_x + taru_x + da1_x + da2_x + daxtu_x, + darou_x + de_x + desi_x + desho_x + desu_x + na2_x + nara_x + nai_x, + nu_x + ne2_x + nn2_x + fuuda_x + besi_x + mai_x + masu_x + masure_x, + mase_x + mitaida_x + you_x + youda_x + rasii_x + rareru_x + reru_x + site_x, + + yougen_x + aru_x + ara_x + ari1_x + ari2_x + ari3_x + are1_x + are2_x, + arou_x + ii_x + itasi_x + itadaku_x + iru_x + eru_x + kakeru_x + kaneru_x, + karazu_o + gatai_x + gatida_x + kudasaru_x + gozai_x + sa1_x + si1_x + siro_x, + jyau_x + jimau_x + sugiru_o + subesi_x + suru_x + sure_x + se_x + seyo_x, + tamau_x + tayu_x + timau_x + dekiru_x + naru_x + nasai_x + nasaru_x + nikui_x, + yasui_x + yoi_x + yaru_x + ttarasii_x}; + +static u_char ichisetubi[] = { + wo_o + ttatte_x + ttara_o + tte1_o + tte2_x + ppanasi_o + ppoi_o + ue_x, + uti_x + oite_x + okeru_x + ori_x + ka1_o + ka2_x + kai_x + kasira_o, + katagata_x + kadouka_o + kana_o + kane_o + kamo_o + kara1_o + kara2_x + ga1_o, + ga2_x + gatera_x + kiri_x + kuseni_x + kurai_o + gurumi_x + kedo_x + koso_x, + koto_x + sa2_o + sae_o + si2_x + sika_x + sura_o + zutu_x + zo_x, + tame_x + dake_o + dano_o + darake_x + tuite_x + tuki_x + tutu_x + tumori_x, + te1_x + te2_o + teru_o + dearou_x + deru_x + to1_o + to2_x + totte_x, + toiu_o + toori_x + toki_x + tokoro_x + tote_o + tohaie_o + tomo_x + do_x, + doori_x + dokoro_o + dokoroka_o + domo_x + na1_x + naa_o + nagara_x + nazo_o, + nado_o + nari_o + nanka_o + nanzo_o + nante_o + ni1_o + ni2_o + ni3_x, + nite_x + nimo_x + ne1_o + nee_o + no1_o + no2_x + node_x + noni_x, + nomi_o + nominrz_o + ha_o + hazu_x + ba_x + bakari_o + he_o + hou_x, + hoka_x + hodo_o + made_o + mama_x + mo1_x + mo2_o + motte_x + mono_x, + ya1_o + ya2_x + yara_o + yue_o + yo_o + yori_o + wa_x + wake_x, + wane_x + wayo_x + nn1_x + jya_o + tya_o + nagara2_x + wo_s_x, + ze_x + kke_x + n_si_x + deha_x, + + gotosi_x + saseru_o + zaru_o + zu_o + zunba_o + seru_x + souda_o + youtai_o, + denbun_x + ta_o + tai_o + tagaru_o + taru_x + da1_x + da2_o + daxtu_o, + darou_o + de_o + desi_o + desho_o + desu_o + na2_o + nara_o + nai_o, + nu_o + ne2_o + nn2_o + fuuda_x + besi_x + mai_o + masu_o + masure_o, + mase_x + mitaida_o + you_o + youda_x + rasii_o + rareru_o + reru_x + site_x, + + yougen_x + aru_x + ara_x + ari1_x + ari2_x + ari3_x + are1_x + are2_x, + arou_x + ii_x + itasi_x + itadaku_x + iru_x + eru_x + kakeru_x + kaneru_x, + karazu_x + gatai_o + gatida_o + kudasaru_x + gozai_x + sa1_x + si1_x + siro_x, + jyau_x + jimau_x + sugiru_x + subesi_x + suru_x + sure_x + se_x + seyo_x, + tamau_x + tayu_o + timau_o + dekiru_x + naru_x + nasai_o + nasaru_o + nikui_o, + yasui_o + yoi_x + yaru_x + ttarasii_x}; + +static u_char josuusi[] = { + wo_o + ttatte_x + ttara_o + tte1_o + tte2_x + ppanasi_x + ppoi_x + ue_x, + uti_x + oite_x + okeru_x + ori_x + ka1_o + ka2_x + kai_x + kasira_o, + katagata_x + kadouka_o + kana_o + kane_o + kamo_o + kara1_o + kara2_x + ga1_o, + ga2_x + gatera_x + kiri_o + kuseni_x + kurai_o + gurumi_o + kedo_x + koso_o, + koto_x + sa2_o + sae_o + si2_x + sika_o + sura_o + zutu_o + zo_o, + tame_x + dake_o + dano_o + darake_o + tuite_x + tuki_x + tutu_x + tumori_x, + te1_x + te2_x + teru_x + dearou_x + deru_x + to1_o + to2_x + totte_x, + toiu_o + toori_x + toki_x + tokoro_x + tote_o + tohaie_o + tomo_x + do_x, + doori_x + dokoro_o + dokoroka_o + domo_x + na1_x + naa_o + nagara_x + nazo_o, + nado_o + nari_o + nanka_o + nanzo_o + nante_o + ni1_o + ni2_x + ni3_x, + nite_o + nimo_x + ne1_o + nee_o + no1_o + no2_x + node_x + noni_x, + nomi_o + nominrz_o + ha_o + hazu_x + ba_x + bakari_o + he_o + hou_x, + hoka_x + hodo_o + made_o + mama_x + mo1_x + mo2_o + motte_x + mono_o, + ya1_o + ya2_x + yara_o + yue_x + yo_o + yori_o + wa_x + wake_x, + wane_o + wayo_x + nn1_x + jya_o + tya_x + nagara2_x + wo_s_x, + ze_x + kke_x + n_si_x + deha_x, + + gotosi_x + saseru_x + zaru_x + zu_x + zunba_x + seru_x + souda_x + youtai_x, + denbun_x + ta_x + tai_x + tagaru_x + taru_o + da1_x + da2_o + daxtu_o, + darou_o + de_o + desi_o + desho_o + desu_o + na2_o + nara_o + nai_x, + nu_x + ne2_x + nn2_x + fuuda_x + besi_x + mai_x + masu_x + masure_x, + mase_x + mitaida_o + you_x + youda_x + rasii_o + rareru_x + reru_x + site_x, + + yougen_x + aru_x + ara_x + ari1_x + ari2_x + ari3_x + are1_x + are2_x, + arou_x + ii_x + itasi_x + itadaku_x + iru_x + eru_x + kakeru_x + kaneru_x, + karazu_x + gatai_x + gatida_x + kudasaru_x + gozai_x + sa1_x + si1_x + siro_x, + jyau_x + jimau_x + sugiru_x + subesi_x + suru_x + sure_x + se_x + seyo_x, + tamau_x + tayu_x + timau_x + dekiru_x + naru_x + nasai_x + nasaru_x + nikui_x, + yasui_x + yoi_x + yaru_x + ttarasii_x}; + +static u_char rentaisi[] = { + wo_x + ttatte_x + ttara_x + tte1_x + tte2_x + ppanasi_x + ppoi_x + ue_x, + uti_x + oite_x + okeru_x + ori_x + ka1_x + ka2_x + kai_x + kasira_x, + katagata_x + kadouka_x + kana_x + kane_x + kamo_x + kara1_x + kara2_x + ga1_x, + ga2_x + gatera_x + kiri_x + kuseni_x + kurai_x + gurumi_x + kedo_x + koso_x, + koto_o + sa2_x + sae_x + si2_x + sika_x + sura_x + zutu_x + zo_x, + tame_o + dake_x + dano_x + darake_x + tuite_x + tuki_x + tutu_x + tumori_x, + te1_x + te2_x + teru_x + dearou_x + deru_x + to1_x + to2_x + totte_x, + toiu_x + toori_x + toki_x + tokoro_x + tote_x + tohaie_x + tomo_x + do_x, + doori_x + dokoro_x + dokoroka_x + domo_x + na1_x + naa_x + nagara_x + nazo_x, + nado_x + nari_x + nanka_x + nanzo_x + nante_x + ni1_x + ni2_x + ni3_x, + nite_x + nimo_x + ne1_x + nee_x + no1_x + no2_x + node_x + noni_x, + nomi_x + nominrz_x + ha_x + hazu_x + ba_x + bakari_x + he_x + hou_x, + hoka_x + hodo_x + made_x + mama_x + mo1_x + mo2_x + motte_x + mono_o, + ya1_x + ya2_x + yara_x + yue_x + yo_x + yori_x + wa_x + wake_x, + wane_x + wayo_x + nn1_x + jya_x + tya_x + nagara2_x + wo_s_x, + ze_x + kke_x + n_si_x + deha_x, + + gotosi_x + saseru_x + zaru_x + zu_x + zunba_x + seru_x + souda_x + youtai_x, + denbun_x + ta_x + tai_x + tagaru_x + taru_x + da1_x + da2_x + daxtu_x, + darou_x + de_x + desi_x + desho_x + desu_x + na2_x + nara_x + nai_x, + nu_x + ne2_x + nn2_x + fuuda_o + besi_x + mai_x + masu_x + masure_x, + mase_x + mitaida_x + you_x + youda_o + rasii_x + rareru_x + reru_x + site_x, + + yougen_x + aru_x + ara_x + ari1_x + ari2_x + ari3_x + are1_x + are2_x, + arou_x + ii_x + itasi_x + itadaku_x + iru_x + eru_x + kakeru_x + kaneru_x, + karazu_x + gatai_x + gatida_x + kudasaru_x + gozai_x + sa1_x + si1_x + siro_x, + jyau_x + jimau_x + sugiru_x + subesi_x + suru_x + sure_x + se_x + seyo_x, + tamau_x + tayu_x + timau_x + dekiru_x + naru_x + nasai_x + nasaru_x + nikui_x, + yasui_x + yoi_x + yaru_x + ttarasii_x}; + +static u_char cut[] = { + wo_x + ttatte_x + ttara_x + tte1_x + tte2_x + ppanasi_x + ppoi_x + ue_x, + uti_x + oite_x + okeru_x + ori_x + ka1_x + ka2_x + kai_x + kasira_x, + katagata_x + kadouka_x + kana_x + kane_x + kamo_x + kara1_x + kara2_x + ga1_x, + ga2_x + gatera_x + kiri_x + kuseni_x + kurai_x + gurumi_x + kedo_x + koso_x, + koto_x + sa2_x + sae_x + si2_x + sika_x + sura_x + zutu_x + zo_x, + tame_x + dake_x + dano_x + darake_x + tuite_x + tuki_x + tutu_x + tumori_x, + te1_x + te2_x + teru_x + dearou_x + deru_x + to1_x + to2_x + totte_x, + toiu_x + toori_x + toki_x + tokoro_x + tote_x + tohaie_x + tomo_x + do_x, + doori_x + dokoro_x + dokoroka_x + domo_x + na1_x + naa_x + nagara_x + nazo_x, + nado_x + nari_x + nanka_x + nanzo_x + nante_x + ni1_x + ni2_x + ni3_x, + nite_x + nimo_x + ne1_x + nee_x + no1_x + no2_x + node_x + noni_x, + nomi_x + nominrz_x + ha_x + hazu_x + ba_x + bakari_x + he_x + hou_x, + hoka_x + hodo_x + made_x + mama_x + mo1_x + mo2_x + motte_x + mono_x, + ya1_x + ya2_x + yara_x + yue_x + yo_x + yori_x + wa_x + wake_x, + wane_x + wayo_x + nn1_x + jya_x + tya_x + nagara2_x + wo_s_x, + ze_x + kke_x + n_si_x + deha_x, + + gotosi_x + saseru_x + zaru_x + zu_x + zunba_x + seru_x + souda_x + youtai_x, + denbun_x + ta_x + tai_x + tagaru_x + taru_x + da1_x + da2_x + daxtu_x, + darou_x + de_x + desi_x + desho_x + desu_x + na2_x + nara_x + nai_x, + nu_x + ne2_x + nn2_x + fuuda_x + besi_x + mai_x + masu_x + masure_x, + mase_x + mitaida_x + you_x + youda_x + rasii_x + rareru_x + reru_x + site_x, + + yougen_x + aru_x + ara_x + ari1_x + ari2_x + ari3_x + are1_x + are2_x, + arou_x + ii_x + itasi_x + itadaku_x + iru_x + eru_x + kakeru_x + kaneru_x, + karazu_x + gatai_x + gatida_x + kudasaru_x + gozai_x + sa1_x + si1_x + siro_x, + jyau_x + jimau_x + sugiru_x + subesi_x + suru_x + sure_x + se_x + seyo_x, + tamau_x + tayu_x + timau_x + dekiru_x + naru_x + nasai_x + nasaru_x + nikui_x, + yasui_x + yoi_x + yaru_x + ttarasii_x}; + +static u_char shuujo[] = { + wo_x + ttatte_o + ttara_o + tte1_o + tte2_x + ppanasi_x + ppoi_x + ue_x, + uti_x + oite_x + okeru_x + ori_x + ka1_x + ka2_x + kai_x + kasira_x, + katagata_x + kadouka_x + kana_x + kane_x + kamo_x + kara1_x + kara2_x + ga1_x, + ga2_x + gatera_x + kiri_x + kuseni_x + kurai_x + gurumi_x + kedo_x + koso_x, + koto_x + sa2_x + sae_x + si2_x + sika_x + sura_x + zutu_x + zo_x, + tame_x + dake_x + dano_o + darake_x + tuite_x + tuki_x + tutu_x + tumori_x, + te1_x + te2_x + teru_x + dearou_x + deru_x + to1_x + to2_o + totte_x, + toiu_o + toori_x + toki_x + tokoro_x + tote_x + tohaie_o + tomo_x + do_x, + doori_x + dokoro_x + dokoroka_x + domo_x + na1_x + naa_x + nagara_x + nazo_o, + nado_o + nari_x + nanka_o + nanzo_o + nante_o + ni1_x + ni2_x + ni3_x, + nite_x + nimo_x + ne1_x + nee_x + no1_x + no2_x + node_x + noni_x, + nomi_x + nominrz_x + ha_x + hazu_x + ba_x + bakari_x + he_x + hou_x, + hoka_x + hodo_x + made_x + mama_x + mo1_x + mo2_x + motte_x + mono_x, + ya1_x + ya2_x + yara_x + yue_x + yo_x + yori_x + wa_x + wake_x, + wane_x + wayo_x + nn1_x + jya_x + tya_x + nagara2_x + wo_s_x, + ze_x + kke_x + n_si_x + deha_x, + + gotosi_x + saseru_x + zaru_x + zu_x + zunba_x + seru_x + souda_x + youtai_x, + denbun_x + ta_x + tai_x + tagaru_x + taru_x + da1_x + da2_x + daxtu_x, + darou_x + de_x + desi_x + desho_x + desu_x + na2_x + nara_x + nai_x, + nu_x + ne2_x + nn2_x + fuuda_x + besi_x + mai_x + masu_x + masure_x, + mase_x + mitaida_x + you_x + youda_x + rasii_x + rareru_x + reru_x + site_x, + + yougen_x + aru_x + ara_x + ari1_x + ari2_x + ari3_x + are1_x + are2_x, + arou_x + ii_x + itasi_x + itadaku_x + iru_x + eru_x + kakeru_x + kaneru_x, + karazu_x + gatai_x + gatida_x + kudasaru_x + gozai_x + sa1_x + si1_x + siro_x, + jyau_x + jimau_x + sugiru_x + subesi_x + suru_x + sure_x + se_x + seyo_x, + tamau_x + tayu_x + timau_x + dekiru_x + naru_x + nasai_x + nasaru_x + nikui_x, + yasui_x + yoi_x + yaru_x + ttarasii_x}; + +static u_char wo[] = { + wo_x + ttatte_x + ttara_x + tte1_x + tte2_x + ppanasi_x + ppoi_x + ue_x, + uti_x + oite_x + okeru_x + ori_x + ka1_x + ka2_o + kai_x + kasira_x, + katagata_x + kadouka_x + kana_o + kane_o + kamo_x + kara1_x + kara2_x + ga1_x, + ga2_x + gatera_x + kiri_x + kuseni_x + kurai_x + gurumi_x + kedo_x + koso_x, + koto_x + sa2_o + sae_x + si2_x + sika_x + sura_x + zutu_x + zo_x, + tame_x + dake_x + dano_x + darake_x + tuite_x + tuki_x + tutu_x + tumori_x, + te1_x + te2_x + teru_x + dearou_x + deru_x + to1_x + to2_x + totte_x, + toiu_o + toori_x + toki_x + tokoro_x + tote_x + tohaie_o + tomo_x + do_x, + doori_x + dokoro_x + dokoroka_x + domo_x + na1_o + naa_o + nagara_x + nazo_x, + nado_x + nari_x + nanka_x + nanzo_x + nante_x + ni1_x + ni2_x + ni3_x, + nite_x + nimo_x + ne1_o + nee_o + no1_x + no2_x + node_x + noni_x, + nomi_x + nominrz_x + ha_x + hazu_x + ba_x + bakari_x + he_x + hou_x, + hoka_x + hodo_x + made_x + mama_x + mo1_o + mo2_x + motte_o + mono_x, + ya1_x + ya2_x + yara_o + yue_x + yo_o + yori_x + wa_x + wake_x, + wane_x + wayo_x + nn1_x + jya_x + tya_x + nagara2_x + wo_s_x, + ze_x + kke_x + n_si_x + deha_x, + + gotosi_x + saseru_x + zaru_x + zu_x + zunba_x + seru_x + souda_x + youtai_x, + denbun_x + ta_x + tai_x + tagaru_x + taru_x + da1_x + da2_x + daxtu_x, + darou_x + de_x + desi_x + desho_x + desu_x + na2_x + nara_x + nai_x, + nu_x + ne2_x + nn2_x + fuuda_x + besi_x + mai_x + masu_x + masure_x, + mase_x + mitaida_x + you_x + youda_x + rasii_o + rareru_o + reru_x + site_x, + + yougen_x + aru_x + ara_x + ari1_x + ari2_x + ari3_x + are1_x + are2_x, + arou_x + ii_x + itasi_x + itadaku_x + iru_x + eru_x + kakeru_x + kaneru_x, + karazu_x + gatai_x + gatida_x + kudasaru_x + gozai_x + sa1_x + si1_x + siro_x, + jyau_x + jimau_x + sugiru_x + subesi_x + suru_x + sure_x + se_x + seyo_x, + tamau_x + tayu_x + timau_x + dekiru_x + naru_x + nasai_x + nasaru_x + nikui_x, + yasui_x + yoi_x + yaru_x + ttarasii_x}; + +static u_char wo_s[] = { + wo_x + ttatte_x + ttara_x + tte1_x + tte2_x + ppanasi_x + ppoi_x + ue_x, + uti_x + oite_x + okeru_x + ori_x + ka1_x + ka2_o + kai_x + kasira_x, + katagata_x + kadouka_x + kana_o + kane_o + kamo_x + kara1_x + kara2_x + ga1_x, + ga2_x + gatera_x + kiri_x + kuseni_x + kurai_x + gurumi_x + kedo_x + koso_x, + koto_x + sa2_o + sae_x + si2_x + sika_x + sura_x + zutu_x + zo_x, + tame_x + dake_x + dano_x + darake_x + tuite_x + tuki_x + tutu_x + tumori_x, + te1_x + te2_x + teru_x + dearou_x + deru_x + to1_x + to2_x + totte_x, + toiu_o + toori_x + toki_x + tokoro_x + tote_x + tohaie_o + tomo_x + do_x, + doori_x + dokoro_x + dokoroka_x + domo_x + na1_o + naa_o + nagara_x + nazo_x, + nado_x + nari_x + nanka_x + nanzo_x + nante_x + ni1_x + ni2_x + ni3_x, + nite_x + nimo_x + ne1_o + nee_o + no1_x + no2_x + node_x + noni_x, + nomi_x + nominrz_x + ha_x + hazu_x + ba_x + bakari_x + he_x + hou_x, + hoka_x + hodo_x + made_x + mama_x + mo1_o + mo2_x + motte_o + mono_x, + ya1_x + ya2_x + yara_o + yue_x + yo_o + yori_x + wa_x + wake_x, + wane_x + wayo_x + nn1_x + jya_x + tya_x + nagara2_x + wo_s_x, + ze_x + kke_x + n_si_x + deha_x, + + gotosi_x + saseru_x + zaru_x + zu_x + zunba_x + seru_x + souda_x + youtai_x, + denbun_x + ta_x + tai_x + tagaru_x + taru_x + da1_x + da2_x + daxtu_x, + darou_x + de_x + desi_x + desho_x + desu_x + na2_x + nara_x + nai_x, + nu_x + ne2_x + nn2_x + fuuda_x + besi_x + mai_x + masu_x + masure_x, + mase_x + mitaida_x + you_x + youda_x + rasii_o + rareru_o + reru_x + site_x, + + yougen_x + aru_x + ara_x + ari1_x + ari2_x + ari3_x + are1_x + are2_x, + arou_x + ii_x + itasi_x + itadaku_x + iru_x + eru_x + kakeru_x + kaneru_x, + karazu_x + gatai_x + gatida_x + kudasaru_x + gozai_x + sa1_o + si1_o + siro_o, + jyau_x + jimau_x + sugiru_x + subesi_o + suru_o + sure_o + se_o + seyo_o, + tamau_x + tayu_x + timau_x + dekiru_x + naru_x + nasai_x + nasaru_x + nikui_x, + yasui_x + yoi_x + yaru_x + ttarasii_x}; + +static u_char ttatte[] = { + wo_x + ttatte_x + ttara_x + tte1_x + tte2_x + ppanasi_x + ppoi_x + ue_x, + uti_x + oite_x + okeru_x + ori_x + ka1_x + ka2_x + kai_x + kasira_x, + katagata_x + kadouka_x + kana_x + kane_x + kamo_x + kara1_x + kara2_x + ga1_x, + ga2_x + gatera_x + kiri_x + kuseni_x + kurai_x + gurumi_x + kedo_x + koso_x, + koto_x + sa2_o + sae_x + si2_x + sika_x + sura_x + zutu_x + zo_x, + tame_x + dake_x + dano_x + darake_x + tuite_x + tuki_x + tutu_x + tumori_x, + te1_x + te2_x + teru_x + dearou_x + deru_x + to1_x + to2_x + totte_x, + toiu_x + toori_x + toki_x + tokoro_x + tote_x + tohaie_x + tomo_x + do_x, + doori_x + dokoro_x + dokoroka_x + domo_x + na1_o + naa_o + nagara_x + nazo_x, + nado_x + nari_x + nanka_x + nanzo_x + nante_x + ni1_x + ni2_x + ni3_x, + nite_x + nimo_x + ne1_o + nee_o + no1_x + no2_x + node_x + noni_x, + nomi_x + nominrz_x + ha_x + hazu_x + ba_x + bakari_x + he_x + hou_x, + hoka_x + hodo_x + made_x + mama_x + mo1_x + mo2_x + motte_x + mono_x, + ya1_x + ya2_x + yara_x + yue_x + yo_x + yori_x + wa_x + wake_x, + wane_x + wayo_x + nn1_x + jya_x + tya_x + nagara2_x + wo_s_x, + ze_x + kke_x + n_si_x + deha_x, + + gotosi_x + saseru_x + zaru_x + zu_x + zunba_x + seru_x + souda_x + youtai_x, + denbun_x + ta_x + tai_x + tagaru_x + taru_x + da1_x + da2_x + daxtu_x, + darou_x + de_x + desi_x + desho_x + desu_x + na2_x + nara_x + nai_x, + nu_x + ne2_x + nn2_x + fuuda_x + besi_x + mai_x + masu_x + masure_x, + mase_x + mitaida_x + you_x + youda_x + rasii_x + rareru_x + reru_x + site_x, + + yougen_x + aru_x + ara_x + ari1_x + ari2_x + ari3_x + are1_x + are2_x, + arou_x + ii_x + itasi_x + itadaku_x + iru_x + eru_x + kakeru_x + kaneru_x, + karazu_x + gatai_x + gatida_x + kudasaru_x + gozai_x + sa1_x + si1_x + siro_x, + jyau_x + jimau_x + sugiru_x + subesi_x + suru_x + sure_x + se_x + seyo_x, + tamau_x + tayu_x + timau_x + dekiru_x + naru_x + nasai_x + nasaru_x + nikui_x, + yasui_x + yoi_x + yaru_x + ttarasii_x}; + +static u_char ttara[] = { + wo_x + ttatte_x + ttara_x + tte1_x + tte2_x + ppanasi_x + ppoi_x + ue_x, + uti_x + oite_x + okeru_x + ori_x + ka1_x + ka2_x + kai_x + kasira_x, + katagata_x + kadouka_x + kana_x + kane_x + kamo_x + kara1_x + kara2_x + ga1_x, + ga2_x + gatera_x + kiri_x + kuseni_x + kurai_x + gurumi_x + kedo_x + koso_x, + koto_x + sa2_o + sae_x + si2_x + sika_x + sura_x + zutu_x + zo_x, + tame_x + dake_x + dano_x + darake_x + tuite_x + tuki_x + tutu_x + tumori_x, + te1_x + te2_x + teru_x + dearou_x + deru_x + to1_x + to2_x + totte_x, + toiu_x + toori_x + toki_x + tokoro_x + tote_x + tohaie_x + tomo_x + do_x, + doori_x + dokoro_x + dokoroka_x + domo_x + na1_o + naa_o + nagara_x + nazo_x, + nado_x + nari_x + nanka_x + nanzo_x + nante_x + ni1_x + ni2_x + ni3_x, + nite_x + nimo_x + ne1_o + nee_o + no1_x + no2_x + node_x + noni_x, + nomi_x + nominrz_x + ha_x + hazu_x + ba_x + bakari_x + he_x + hou_x, + hoka_x + hodo_x + made_x + mama_x + mo1_x + mo2_x + motte_x + mono_x, + ya1_x + ya2_x + yara_x + yue_x + yo_x + yori_x + wa_x + wake_x, + wane_x + wayo_x + nn1_x + jya_x + tya_x + nagara2_x + wo_s_x, + ze_x + kke_x + n_si_x + deha_x, + + gotosi_x + saseru_x + zaru_x + zu_x + zunba_x + seru_x + souda_x + youtai_x, + denbun_x + ta_x + tai_x + tagaru_x + taru_x + da1_x + da2_x + daxtu_x, + darou_x + de_x + desi_x + desho_x + desu_x + na2_x + nara_x + nai_x, + nu_x + ne2_x + nn2_x + fuuda_x + besi_x + mai_x + masu_x + masure_x, + mase_x + mitaida_x + you_x + youda_x + rasii_x + rareru_x + reru_x + site_x, + + yougen_x + aru_x + ara_x + ari1_x + ari2_x + ari3_x + are1_x + are2_x, + arou_x + ii_x + itasi_x + itadaku_x + iru_x + eru_x + kakeru_x + kaneru_x, + karazu_x + gatai_x + gatida_x + kudasaru_x + gozai_x + sa1_x + si1_x + siro_x, + jyau_x + jimau_x + sugiru_x + subesi_x + suru_x + sure_x + se_x + seyo_x, + tamau_x + tayu_x + timau_x + dekiru_x + naru_x + nasai_x + nasaru_x + nikui_x, + yasui_x + yoi_x + yaru_x + ttarasii_x}; + +static u_char tte1[] = { + wo_x + ttatte_x + ttara_x + tte1_x + tte2_x + ppanasi_x + ppoi_x + ue_x, + uti_x + oite_x + okeru_x + ori_x + ka1_x + ka2_x + kai_x + kasira_x, + katagata_x + kadouka_x + kana_x + kane_x + kamo_x + kara1_x + kara2_x + ga1_x, + ga2_x + gatera_x + kiri_x + kuseni_x + kurai_x + gurumi_x + kedo_x + koso_x, + koto_x + sa2_o + sae_x + si2_x + sika_x + sura_x + zutu_x + zo_x, + tame_x + dake_x + dano_x + darake_x + tuite_x + tuki_x + tutu_x + tumori_x, + te1_x + te2_x + teru_x + dearou_x + deru_x + to1_x + to2_x + totte_x, + toiu_x + toori_x + toki_x + tokoro_x + tote_x + tohaie_x + tomo_x + do_x, + doori_x + dokoro_x + dokoroka_x + domo_x + na1_o + naa_o + nagara_x + nazo_x, + nado_x + nari_x + nanka_x + nanzo_x + nante_x + ni1_x + ni2_x + ni3_x, + nite_x + nimo_x + ne1_o + nee_o + no1_x + no2_x + node_x + noni_x, + nomi_x + nominrz_x + ha_x + hazu_x + ba_x + bakari_x + he_x + hou_x, + hoka_x + hodo_x + made_x + mama_x + mo1_x + mo2_x + motte_x + mono_x, + ya1_x + ya2_x + yara_x + yue_x + yo_o + yori_x + wa_x + wake_x, + wane_x + wayo_x + nn1_x + jya_x + tya_x + nagara2_x + wo_s_x, + ze_x + kke_x + n_si_x + deha_x, + + gotosi_x + saseru_x + zaru_x + zu_x + zunba_x + seru_x + souda_x + youtai_x, + denbun_x + ta_x + tai_x + tagaru_x + taru_x + da1_x + da2_x + daxtu_x, + darou_x + de_x + desi_x + desho_x + desu_x + na2_x + nara_x + nai_x, + nu_x + ne2_x + nn2_x + fuuda_x + besi_x + mai_x + masu_x + masure_x, + mase_x + mitaida_x + you_x + youda_x + rasii_x + rareru_x + reru_x + site_x, + + yougen_x + aru_x + ara_x + ari1_x + ari2_x + ari3_x + are1_x + are2_x, + arou_x + ii_x + itasi_x + itadaku_x + iru_x + eru_x + kakeru_x + kaneru_x, + karazu_x + gatai_x + gatida_x + kudasaru_x + gozai_x + sa1_x + si1_x + siro_x, + jyau_x + jimau_x + sugiru_x + subesi_x + suru_x + sure_x + se_x + seyo_x, + tamau_x + tayu_x + timau_x + dekiru_x + naru_x + nasai_x + nasaru_x + nikui_x, + yasui_x + yoi_x + yaru_x + ttarasii_x}; + +static u_char tte2[] = { + wo_x + ttatte_x + ttara_x + tte1_x + tte2_x + ppanasi_x + ppoi_x + ue_x, + uti_x + oite_x + okeru_x + ori_x + ka1_x + ka2_x + kai_x + kasira_x, + katagata_x + kadouka_x + kana_x + kane_x + kamo_x + kara1_x + kara2_x + ga1_x, + ga2_x + gatera_x + kiri_x + kuseni_x + kurai_x + gurumi_x + kedo_x + koso_x, + koto_x + sa2_o + sae_x + si2_x + sika_x + sura_x + zutu_x + zo_x, + tame_x + dake_x + dano_x + darake_x + tuite_x + tuki_x + tutu_x + tumori_x, + te1_x + te2_x + teru_x + dearou_x + deru_x + to1_x + to2_x + totte_x, + toiu_x + toori_x + toki_x + tokoro_x + tote_x + tohaie_x + tomo_x + do_x, + doori_x + dokoro_x + dokoroka_x + domo_x + na1_o + naa_o + nagara_x + nazo_x, + nado_x + nari_x + nanka_x + nanzo_x + nante_x + ni1_x + ni2_x + ni3_x, + nite_x + nimo_x + ne1_o + nee_o + no1_x + no2_x + node_x + noni_x, + nomi_x + nominrz_x + ha_x + hazu_x + ba_x + bakari_x + he_x + hou_x, + hoka_x + hodo_x + made_x + mama_x + mo1_o + mo2_x + motte_x + mono_x, + ya1_x + ya2_x + yara_x + yue_x + yo_x + yori_x + wa_x + wake_x, + wane_x + wayo_x + nn1_x + jya_x + tya_x + nagara2_x + wo_s_x, + ze_x + kke_x + n_si_x + deha_x, + + gotosi_x + saseru_x + zaru_x + zu_x + zunba_x + seru_x + souda_x + youtai_x, + denbun_x + ta_x + tai_x + tagaru_x + taru_x + da1_x + da2_x + daxtu_x, + darou_x + de_x + desi_x + desho_x + desu_x + na2_x + nara_x + nai_x, + nu_x + ne2_x + nn2_x + fuuda_x + besi_x + mai_x + masu_x + masure_x, + mase_x + mitaida_x + you_x + youda_x + rasii_x + rareru_x + reru_x + site_x, + + yougen_x + aru_x + ara_x + ari1_x + ari2_x + ari3_x + are1_x + are2_x, + arou_x + ii_x + itasi_x + itadaku_x + iru_x + eru_x + kakeru_x + kaneru_x, + karazu_x + gatai_x + gatida_x + kudasaru_x + gozai_x + sa1_x + si1_x + siro_x, + jyau_x + jimau_x + sugiru_x + subesi_x + suru_x + sure_x + se_x + seyo_x, + tamau_x + tayu_x + timau_x + dekiru_x + naru_x + nasai_x + nasaru_x + nikui_x, + yasui_x + yoi_x + yaru_x + ttarasii_x}; + +static u_char ppanasi[] = { + wo_o + ttatte_o + ttara_o + tte1_o + tte2_x + ppanasi_x + ppoi_x + ue_x, + uti_x + oite_x + okeru_x + ori_x + ka1_o + ka2_x + kai_x + kasira_o, + katagata_x + kadouka_o + kana_o + kane_o + kamo_o + kara1_o + kara2_x + ga1_o, + ga2_x + gatera_x + kiri_x + kuseni_x + kurai_o + gurumi_x + kedo_x + koso_o, + koto_x + sa2_o + sae_o + si2_x + sika_o + sura_o + zutu_x + zo_x, + tame_x + dake_o + dano_o + darake_x + tuite_x + tuki_x + tutu_x + tumori_x, + te1_x + te2_x + teru_x + dearou_x + deru_x + to1_x + to2_o + totte_x, + toiu_o + toori_x + toki_x + tokoro_x + tote_o + tohaie_o + tomo_x + do_x, + doori_x + dokoro_o + dokoroka_o + domo_x + na1_x + naa_x + nagara_x + nazo_o, + nado_o + nari_o + nanka_o + nanzo_o + nante_o + ni1_o + ni2_x + ni3_x, + nite_x + nimo_x + ne1_o + nee_o + no1_o + no2_x + node_x + noni_x, + nomi_o + nominrz_o + ha_o + hazu_x + ba_x + bakari_o + he_o + hou_x, + hoka_x + hodo_o + made_o + mama_x + mo1_x + mo2_o + motte_x + mono_x, + ya1_o + ya2_x + yara_o + yue_x + yo_o + yori_o + wa_x + wake_x, + wane_o + wayo_x + nn1_x + jya_o + tya_x + nagara2_x + wo_s_x, + ze_x + kke_x + n_si_x + deha_o, + + gotosi_x + saseru_x + zaru_x + zu_x + zunba_x + seru_x + souda_x + youtai_x, + denbun_x + ta_x + tai_x + tagaru_x + taru_x + da1_x + da2_o + daxtu_o, + darou_o + de_o + desi_o + desho_o + desu_o + na2_o + nara_o + nai_x, + nu_x + ne2_x + nn2_x + fuuda_x + besi_x + mai_x + masu_x + masure_x, + mase_x + mitaida_o + you_x + youda_x + rasii_o + rareru_x + reru_x + site_x, + + yougen_x + aru_x + ara_x + ari1_x + ari2_x + ari3_x + are1_x + are2_x, + arou_x + ii_x + itasi_x + itadaku_x + iru_x + eru_x + kakeru_x + kaneru_x, + karazu_x + gatai_x + gatida_x + kudasaru_x + gozai_x + sa1_x + si1_x + siro_x, + jyau_x + jimau_x + sugiru_x + subesi_x + suru_x + sure_x + se_x + seyo_x, + tamau_x + tayu_x + timau_x + dekiru_x + naru_x + nasai_x + nasaru_x + nikui_x, + yasui_x + yoi_x + yaru_x + ttarasii_x}; + +static u_char ppoi[] = { + wo_x + ttatte_o + ttara_o + tte1_o + tte2_x + ppanasi_x + ppoi_x + ue_o, + uti_o + oite_x + okeru_x + ori_x + ka1_o + ka2_x + kai_x + kasira_o, + katagata_x + kadouka_o + kana_o + kane_o + kamo_o + kara1_x + kara2_o + ga1_x, + ga2_o + gatera_x + kiri_x + kuseni_o + kurai_o + gurumi_x + kedo_o + koso_x, + koto_o + sa2_o + sae_x + si2_o + sika_o + sura_x + zutu_x + zo_o, + tame_o + dake_o + dano_o + darake_x + tuite_x + tuki_x + tutu_x + tumori_o, + te1_x + te2_x + teru_x + dearou_o + deru_x + to1_x + to2_o + totte_x, + toiu_o + toori_x + toki_o + tokoro_o + tote_o + tohaie_o + tomo_x + do_x, + doori_x + dokoro_o + dokoroka_o + domo_x + na1_o + naa_o + nagara_x + nazo_o, + nado_o + nari_o + nanka_o + nanzo_o + nante_o + ni1_x + ni2_x + ni3_o, + nite_x + nimo_x + ne1_o + nee_o + no1_x + no2_o + node_o + noni_o, + nomi_o + nominrz_o + ha_x + hazu_o + ba_x + bakari_o + he_x + hou_o, + hoka_o + hodo_o + made_o + mama_x + mo1_o + mo2_x + motte_x + mono_o, + ya1_x + ya2_x + yara_o + yue_o + yo_o + yori_o + wa_o + wake_o, + wane_o + wayo_o + nn1_o + jya_o + tya_x + nagara2_x + wo_s_x, + ze_x + kke_x + n_si_x + deha_o, + + gotosi_x + saseru_x + zaru_x + zu_x + zunba_x + seru_x + souda_o + youtai_o, + denbun_x + ta_x + tai_x + tagaru_x + taru_x + da1_x + da2_x + daxtu_x, + darou_o + de_x + desi_o + desho_o + desu_o + na2_x + nara_x + nai_x, + nu_x + ne2_x + nn2_x + fuuda_x + besi_x + mai_x + masu_x + masure_x, + mase_x + mitaida_o + you_x + youda_o + rasii_o + rareru_x + reru_x + site_x, + + yougen_x + aru_x + ara_x + ari1_x + ari2_x + ari3_x + are1_x + are2_x, + arou_x + ii_x + itasi_x + itadaku_x + iru_x + eru_x + kakeru_x + kaneru_x, + karazu_x + gatai_x + gatida_x + kudasaru_x + gozai_x + sa1_x + si1_x + siro_x, + jyau_x + jimau_x + sugiru_x + subesi_x + suru_x + sure_x + se_x + seyo_x, + tamau_x + tayu_x + timau_x + dekiru_x + naru_x + nasai_x + nasaru_x + nikui_x, + yasui_x + yoi_x + yaru_x + ttarasii_x}; + +static u_char ue[] = { + wo_x + ttatte_x + ttara_x + tte1_o + tte2_x + ppanasi_x + ppoi_x + ue_x, + uti_x + oite_x + okeru_x + ori_x + ka1_x + ka2_x + kai_x + kasira_x, + katagata_x + kadouka_x + kana_x + kane_x + kamo_x + kara1_x + kara2_x + ga1_x, + ga2_x + gatera_x + kiri_x + kuseni_x + kurai_x + gurumi_x + kedo_x + koso_x, + koto_x + sa2_x + sae_x + si2_x + sika_x + sura_x + zutu_x + zo_x, + tame_x + dake_x + dano_x + darake_x + tuite_x + tuki_x + tutu_x + tumori_x, + te1_x + te2_x + teru_x + dearou_x + deru_x + to1_x + to2_x + totte_x, + toiu_x + toori_x + toki_x + tokoro_x + tote_x + tohaie_x + tomo_x + do_x, + doori_x + dokoro_x + dokoroka_x + domo_x + na1_x + naa_x + nagara_x + nazo_x, + nado_x + nari_x + nanka_x + nanzo_x + nante_x + ni1_o + ni2_x + ni3_x, + nite_x + nimo_x + ne1_x + nee_x + no1_x + no2_x + node_x + noni_x, + nomi_x + nominrz_x + ha_x + hazu_x + ba_x + bakari_x + he_x + hou_x, + hoka_x + hodo_x + made_x + mama_x + mo1_x + mo2_x + motte_x + mono_x, + ya1_x + ya2_x + yara_x + yue_x + yo_x + yori_x + wa_x + wake_x, + wane_x + wayo_x + nn1_x + jya_x + tya_x + nagara2_x + wo_s_x, + ze_x + kke_x + n_si_x + deha_x, + + gotosi_x + saseru_x + zaru_x + zu_x + zunba_x + seru_x + souda_x + youtai_x, + denbun_x + ta_x + tai_x + tagaru_x + taru_x + da1_x + da2_x + daxtu_x, + darou_x + de_o + desi_x + desho_x + desu_x + na2_x + nara_x + nai_x, + nu_x + ne2_x + nn2_x + fuuda_x + besi_x + mai_x + masu_x + masure_x, + mase_x + mitaida_x + you_x + youda_x + rasii_x + rareru_x + reru_x + site_x, + + yougen_x + aru_x + ara_x + ari1_x + ari2_x + ari3_x + are1_x + are2_x, + arou_x + ii_x + itasi_x + itadaku_x + iru_x + eru_x + kakeru_x + kaneru_x, + karazu_x + gatai_x + gatida_x + kudasaru_x + gozai_x + sa1_x + si1_x + siro_x, + jyau_x + jimau_x + sugiru_x + subesi_x + suru_x + sure_x + se_x + seyo_x, + tamau_x + tayu_x + timau_x + dekiru_x + naru_x + nasai_x + nasaru_x + nikui_x, + yasui_x + yoi_x + yaru_x + ttarasii_x}; + +static u_char uti[] = { + wo_x + ttatte_x + ttara_x + tte1_o + tte2_x + ppanasi_x + ppoi_x + ue_x, + uti_x + oite_x + okeru_x + ori_x + ka1_o + ka2_x + kai_x + kasira_o, + katagata_x + kadouka_o + kana_o + kane_o + kamo_o + kara1_o + kara2_x + ga1_o, + ga2_x + gatera_x + kiri_x + kuseni_x + kurai_x + gurumi_x + kedo_x + koso_x, + koto_x + sa2_o + sae_o + si2_x + sika_o + sura_o + zutu_x + zo_x, + tame_x + dake_o + dano_o + darake_x + tuite_x + tuki_x + tutu_x + tumori_x, + te1_x + te2_x + teru_x + dearou_x + deru_x + to1_x + to2_o + totte_x, + toiu_o + toori_x + toki_x + tokoro_x + tote_o + tohaie_o + tomo_x + do_x, + doori_x + dokoro_o + dokoroka_o + domo_x + na1_x + naa_x + nagara_x + nazo_o, + nado_o + nari_o + nanka_o + nanzo_o + nante_o + ni1_o + ni2_x + ni3_x, + nite_x + nimo_x + ne1_o + nee_o + no1_x + no2_x + node_x + noni_x, + nomi_x + nominrz_x + ha_o + hazu_x + ba_x + bakari_x + he_x + hou_x, + hoka_x + hodo_x + made_x + mama_x + mo1_o + mo2_x + motte_x + mono_x, + ya1_x + ya2_x + yara_o + yue_x + yo_o + yori_o + wa_x + wake_x, + wane_o + wayo_x + nn1_x + jya_o + tya_x + nagara2_x + wo_s_x, + ze_x + kke_x + n_si_x + deha_o, + + gotosi_x + saseru_x + zaru_x + zu_x + zunba_x + seru_x + souda_x + youtai_x, + denbun_x + ta_x + tai_x + tagaru_x + taru_x + da1_x + da2_o + daxtu_o, + darou_o + de_o + desi_o + desho_o + desu_o + na2_o + nara_o + nai_x, + nu_x + ne2_x + nn2_x + fuuda_x + besi_x + mai_x + masu_x + masure_x, + mase_x + mitaida_x + you_x + youda_x + rasii_o + rareru_x + reru_x + site_x, + + yougen_x + aru_x + ara_x + ari1_x + ari2_x + ari3_x + are1_x + are2_x, + arou_x + ii_x + itasi_x + itadaku_x + iru_x + eru_x + kakeru_x + kaneru_x, + karazu_x + gatai_x + gatida_x + kudasaru_x + gozai_x + sa1_x + si1_x + siro_x, + jyau_x + jimau_x + sugiru_x + subesi_x + suru_x + sure_x + se_x + seyo_x, + tamau_x + tayu_x + timau_x + dekiru_x + naru_x + nasai_x + nasaru_x + nikui_x, + yasui_x + yoi_x + yaru_x + ttarasii_x}; + +static u_char oite[] = { + wo_x + ttatte_x + ttara_x + tte1_x + tte2_x + ppanasi_x + ppoi_x + ue_x, + uti_x + oite_x + okeru_x + ori_x + ka1_x + ka2_x + kai_x + kasira_x, + katagata_x + kadouka_x + kana_x + kane_x + kamo_x + kara1_x + kara2_x + ga1_x, + ga2_x + gatera_x + kiri_x + kuseni_x + kurai_x + gurumi_x + kedo_x + koso_o, + koto_x + sa2_o + sae_o + si2_x + sika_o + sura_o + zutu_x + zo_x, + tame_x + dake_o + dano_x + darake_x + tuite_x + tuki_x + tutu_x + tumori_x, + te1_x + te2_x + teru_x + dearou_x + deru_x + to1_x + to2_x + totte_x, + toiu_x + toori_x + toki_x + tokoro_x + tote_x + tohaie_x + tomo_x + do_x, + doori_x + dokoro_x + dokoroka_x + domo_x + na1_x + naa_x + nagara_x + nazo_x, + nado_x + nari_x + nanka_x + nanzo_x + nante_x + ni1_x + ni2_x + ni3_x, + nite_x + nimo_x + ne1_x + nee_x + no1_x + no2_x + node_x + noni_x, + nomi_o + nominrz_o + ha_o + hazu_x + ba_x + bakari_x + he_x + hou_x, + hoka_x + hodo_x + made_x + mama_x + mo1_o + mo2_x + motte_x + mono_x, + ya1_x + ya2_x + yara_x + yue_x + yo_x + yori_x + wa_x + wake_x, + wane_x + wayo_x + nn1_x + jya_o + tya_x + nagara2_x + wo_s_x, + ze_x + kke_x + n_si_x + deha_x, + + gotosi_x + saseru_x + zaru_x + zu_x + zunba_x + seru_x + souda_x + youtai_x, + denbun_x + ta_x + tai_x + tagaru_x + taru_x + da1_x + da2_x + daxtu_x, + darou_x + de_x + desi_x + desho_x + desu_x + na2_x + nara_x + nai_x, + nu_x + ne2_x + nn2_x + fuuda_x + besi_x + mai_x + masu_x + masure_x, + mase_x + mitaida_x + you_x + youda_x + rasii_x + rareru_x + reru_x + site_x, + + yougen_x + aru_x + ara_x + ari1_x + ari2_x + ari3_x + are1_x + are2_x, + arou_x + ii_x + itasi_x + itadaku_x + iru_x + eru_x + kakeru_x + kaneru_x, + karazu_x + gatai_x + gatida_x + kudasaru_x + gozai_x + sa1_x + si1_x + siro_x, + jyau_x + jimau_x + sugiru_x + subesi_x + suru_x + sure_x + se_x + seyo_x, + tamau_x + tayu_x + timau_x + dekiru_x + naru_x + nasai_x + nasaru_x + nikui_x, + yasui_x + yoi_x + yaru_x + ttarasii_x}; + +static u_char okeru[] = { + wo_x + ttatte_x + ttara_x + tte1_x + tte2_x + ppanasi_x + ppoi_x + ue_x, + uti_x + oite_x + okeru_x + ori_x + ka1_x + ka2_x + kai_x + kasira_x, + katagata_x + kadouka_x + kana_x + kane_x + kamo_x + kara1_x + kara2_x + ga1_x, + ga2_x + gatera_x + kiri_x + kuseni_x + kurai_x + gurumi_x + kedo_x + koso_x, + koto_x + sa2_x + sae_x + si2_x + sika_x + sura_x + zutu_x + zo_x, + tame_x + dake_x + dano_x + darake_x + tuite_x + tuki_x + tutu_x + tumori_x, + te1_x + te2_x + teru_x + dearou_x + deru_x + to1_x + to2_x + totte_x, + toiu_x + toori_x + toki_x + tokoro_x + tote_x + tohaie_x + tomo_x + do_x, + doori_x + dokoro_x + dokoroka_x + domo_x + na1_x + naa_x + nagara_x + nazo_x, + nado_x + nari_x + nanka_x + nanzo_x + nante_x + ni1_x + ni2_x + ni3_x, + nite_x + nimo_x + ne1_x + nee_x + no1_x + no2_x + node_x + noni_x, + nomi_x + nominrz_x + ha_x + hazu_x + ba_x + bakari_x + he_x + hou_x, + hoka_x + hodo_x + made_x + mama_x + mo1_x + mo2_x + motte_x + mono_x, + ya1_x + ya2_x + yara_x + yue_x + yo_x + yori_x + wa_x + wake_x, + wane_x + wayo_x + nn1_x + jya_x + tya_x + nagara2_x + wo_s_x, + ze_x + kke_x + n_si_x + deha_x, + + gotosi_x + saseru_x + zaru_x + zu_x + zunba_x + seru_x + souda_x + youtai_x, + denbun_x + ta_x + tai_x + tagaru_x + taru_x + da1_x + da2_x + daxtu_x, + darou_x + de_x + desi_x + desho_x + desu_x + na2_x + nara_x + nai_x, + nu_x + ne2_x + nn2_x + fuuda_x + besi_x + mai_x + masu_x + masure_x, + mase_x + mitaida_x + you_x + youda_x + rasii_x + rareru_x + reru_x + site_x, + + yougen_x + aru_x + ara_x + ari1_x + ari2_x + ari3_x + are1_x + are2_x, + arou_x + ii_x + itasi_x + itadaku_x + iru_x + eru_x + kakeru_x + kaneru_x, + karazu_x + gatai_x + gatida_x + kudasaru_x + gozai_x + sa1_x + si1_x + siro_x, + jyau_x + jimau_x + sugiru_x + subesi_x + suru_x + sure_x + se_x + seyo_x, + tamau_x + tayu_x + timau_x + dekiru_x + naru_x + nasai_x + nasaru_x + nikui_x, + yasui_x + yoi_x + yaru_x + ttarasii_x}; + +static u_char ori[] = { + wo_x + ttatte_x + ttara_x + tte1_x + tte2_x + ppanasi_x + ppoi_x + ue_x, + uti_x + oite_x + okeru_x + ori_x + ka1_x + ka2_x + kai_x + kasira_x, + katagata_x + kadouka_x + kana_x + kane_x + kamo_x + kara1_x + kara2_x + ga1_x, + ga2_x + gatera_x + kiri_x + kuseni_x + kurai_x + gurumi_x + kedo_x + koso_o, + koto_x + sa2_x + sae_o + si2_x + sika_o + sura_o + zutu_x + zo_x, + tame_x + dake_o + dano_x + darake_x + tuite_x + tuki_x + tutu_x + tumori_x, + te1_x + te2_x + teru_x + dearou_x + deru_x + to1_o + to2_x + totte_x, + toiu_x + toori_x + toki_x + tokoro_x + tote_x + tohaie_x + tomo_x + do_x, + doori_x + dokoro_x + dokoroka_x + domo_x + na1_x + naa_x + nagara_x + nazo_x, + nado_x + nari_x + nanka_x + nanzo_x + nante_x + ni1_o + ni2_x + ni3_x, + nite_x + nimo_x + ne1_x + nee_x + no1_x + no2_x + node_x + noni_x, + nomi_x + nominrz_x + ha_o + hazu_x + ba_x + bakari_x + he_x + hou_x, + hoka_x + hodo_x + made_x + mama_x + mo1_o + mo2_x + motte_x + mono_x, + ya1_x + ya2_x + yara_x + yue_x + yo_x + yori_x + wa_x + wake_x, + wane_x + wayo_x + nn1_x + jya_x + tya_x + nagara2_x + wo_s_x, + ze_x + kke_x + n_si_x + deha_x, + + gotosi_x + saseru_x + zaru_x + zu_x + zunba_x + seru_x + souda_x + youtai_x, + denbun_x + ta_x + tai_x + tagaru_x + taru_x + da1_x + da2_o + daxtu_o, + darou_o + de_o + desi_o + desho_o + desu_o + na2_o + nara_o + nai_x, + nu_x + ne2_x + nn2_x + fuuda_x + besi_x + mai_x + masu_x + masure_x, + mase_x + mitaida_x + you_x + youda_x + rasii_x + rareru_x + reru_x + site_x, + + yougen_x + aru_x + ara_x + ari1_x + ari2_x + ari3_x + are1_x + are2_x, + arou_x + ii_x + itasi_x + itadaku_x + iru_x + eru_x + kakeru_x + kaneru_x, + karazu_x + gatai_x + gatida_x + kudasaru_x + gozai_x + sa1_x + si1_x + siro_x, + jyau_x + jimau_x + sugiru_x + subesi_x + suru_x + sure_x + se_x + seyo_x, + tamau_x + tayu_x + timau_x + dekiru_x + naru_x + nasai_x + nasaru_x + nikui_x, + yasui_x + yoi_x + yaru_x + ttarasii_x}; + +static u_char ka1[] = { + wo_o + ttatte_x + ttara_x + tte1_x + tte2_x + ppanasi_x + ppoi_x + ue_x, + uti_x + oite_x + okeru_x + ori_x + ka1_x + ka2_x + kai_x + kasira_x, + katagata_x + kadouka_x + kana_x + kane_x + kamo_x + kara1_x + kara2_x + ga1_o, + ga2_x + gatera_x + kiri_x + kuseni_x + kurai_x + gurumi_x + kedo_x + koso_x, + koto_x + sa2_x + sae_o + si2_x + sika_o + sura_o + zutu_x + zo_x, + tame_x + dake_o + dano_o + darake_x + tuite_x + tuki_x + tutu_x + tumori_x, + te1_x + te2_x + teru_x + dearou_x + deru_x + to1_x + to2_o + totte_x, + toiu_o + toori_x + toki_x + tokoro_x + tote_x + tohaie_x + tomo_x + do_x, + doori_x + dokoro_x + dokoroka_x + domo_x + na1_x + naa_o + nagara_x + nazo_o, + nado_o + nari_x + nanka_o + nanzo_o + nante_o + ni1_o + ni2_x + ni3_x, + nite_x + nimo_x + ne1_x + nee_x + no1_o + no2_x + node_x + noni_x, + nomi_o + nominrz_o + ha_o + hazu_x + ba_x + bakari_x + he_o + hou_x, + hoka_x + hodo_x + made_x + mama_x + mo1_x + mo2_x + motte_x + mono_x, + ya1_x + ya2_x + yara_x + yue_x + yo_x + yori_x + wa_x + wake_x, + wane_x + wayo_x + nn1_x + jya_o + tya_x + nagara2_x + wo_s_x, + ze_x + kke_x + n_si_x + deha_o, + + gotosi_x + saseru_x + zaru_x + zu_x + zunba_x + seru_x + souda_x + youtai_x, + denbun_x + ta_x + tai_x + tagaru_x + taru_x + da1_x + da2_o + daxtu_o, + darou_o + de_o + desi_o + desho_o + desu_o + na2_o + nara_o + nai_x, + nu_x + ne2_x + nn2_x + fuuda_x + besi_x + mai_x + masu_x + masure_x, + mase_x + mitaida_x + you_x + youda_x + rasii_o + rareru_x + reru_x + site_x, + + yougen_x + aru_x + ara_x + ari1_x + ari2_x + ari3_x + are1_x + are2_x, + arou_x + ii_x + itasi_x + itadaku_x + iru_x + eru_x + kakeru_x + kaneru_x, + karazu_x + gatai_x + gatida_x + kudasaru_x + gozai_x + sa1_x + si1_x + siro_x, + jyau_x + jimau_x + sugiru_x + subesi_x + suru_x + sure_x + se_x + seyo_x, + tamau_x + tayu_x + timau_x + dekiru_x + naru_x + nasai_x + nasaru_x + nikui_x, + yasui_x + yoi_x + yaru_x + ttarasii_x}; + +static u_char ka2[] = { + wo_o + ttatte_x + ttara_x + tte1_x + tte2_x + ppanasi_x + ppoi_x + ue_x, + uti_x + oite_x + okeru_x + ori_x + ka1_x + ka2_x + kai_x + kasira_x, + katagata_x + kadouka_x + kana_x + kane_x + kamo_x + kara1_x + kara2_x + ga1_x, + ga2_x + gatera_x + kiri_x + kuseni_x + kurai_x + gurumi_x + kedo_x + koso_x, + koto_x + sa2_x + sae_x + si2_x + sika_x + sura_x + zutu_x + zo_x, + tame_x + dake_x + dano_x + darake_x + tuite_x + tuki_x + tutu_x + tumori_x, + te1_x + te2_x + teru_x + dearou_x + deru_x + to1_x + to2_o + totte_x, + toiu_o + toori_x + toki_x + tokoro_x + tote_x + tohaie_o + tomo_x + do_x, + doori_x + dokoro_x + dokoroka_x + domo_x + na1_x + naa_o + nagara_x + nazo_o, + nado_o + nari_x + nanka_o + nanzo_o + nante_o + ni1_x + ni2_x + ni3_x, + nite_x + nimo_x + ne1_o + nee_o + no1_x + no2_x + node_x + noni_x, + nomi_x + nominrz_x + ha_x + hazu_x + ba_x + bakari_x + he_x + hou_x, + hoka_x + hodo_x + made_x + mama_x + mo1_x + mo2_x + motte_x + mono_x, + ya1_x + ya2_x + yara_x + yue_x + yo_x + yori_x + wa_x + wake_x, + wane_x + wayo_x + nn1_x + jya_o + tya_x + nagara2_x + wo_s_x, + ze_x + kke_x + n_si_x + deha_o, + + gotosi_x + saseru_x + zaru_x + zu_x + zunba_x + seru_x + souda_x + youtai_x, + denbun_x + ta_x + tai_x + tagaru_x + taru_x + da1_x + da2_x + daxtu_x, + darou_x + de_x + desi_x + desho_x + desu_x + na2_x + nara_x + nai_x, + nu_x + ne2_x + nn2_x + fuuda_x + besi_x + mai_x + masu_x + masure_x, + mase_x + mitaida_x + you_x + youda_x + rasii_x + rareru_x + reru_x + site_x, + + yougen_x + aru_x + ara_x + ari1_x + ari2_x + ari3_x + are1_x + are2_x, + arou_x + ii_x + itasi_x + itadaku_x + iru_x + eru_x + kakeru_x + kaneru_x, + karazu_x + gatai_x + gatida_x + kudasaru_x + gozai_x + sa1_x + si1_x + siro_x, + jyau_x + jimau_x + sugiru_x + subesi_x + suru_x + sure_x + se_x + seyo_x, + tamau_x + tayu_x + timau_x + dekiru_x + naru_x + nasai_x + nasaru_x + nikui_x, + yasui_x + yoi_x + yaru_x + ttarasii_x}; + +static u_char katagata[] = { + wo_x + ttatte_x + ttara_x + tte1_x + tte2_x + ppanasi_x + ppoi_x + ue_x, + uti_x + oite_x + okeru_x + ori_x + ka1_x + ka2_x + kai_x + kasira_x, + katagata_x + kadouka_x + kana_x + kane_x + kamo_x + kara1_x + kara2_x + ga1_x, + ga2_x + gatera_x + kiri_x + kuseni_x + kurai_x + gurumi_x + kedo_x + koso_x, + koto_x + sa2_x + sae_x + si2_x + sika_x + sura_x + zutu_x + zo_x, + tame_x + dake_x + dano_x + darake_x + tuite_x + tuki_x + tutu_x + tumori_x, + te1_x + te2_x + teru_x + dearou_x + deru_x + to1_x + to2_x + totte_x, + toiu_x + toori_x + toki_x + tokoro_x + tote_x + tohaie_x + tomo_x + do_x, + doori_x + dokoro_x + dokoroka_x + domo_x + na1_x + naa_x + nagara_x + nazo_x, + nado_x + nari_x + nanka_x + nanzo_x + nante_x + ni1_o + ni2_x + ni3_x, + nite_x + nimo_x + ne1_x + nee_x + no1_x + no2_x + node_x + noni_x, + nomi_x + nominrz_x + ha_x + hazu_x + ba_x + bakari_x + he_x + hou_x, + hoka_x + hodo_x + made_x + mama_x + mo1_x + mo2_x + motte_x + mono_x, + ya1_x + ya2_x + yara_x + yue_x + yo_x + yori_x + wa_x + wake_x, + wane_x + wayo_x + nn1_x + jya_x + tya_x + nagara2_x + wo_s_x, + ze_x + kke_x + n_si_x + deha_x, + + gotosi_x + saseru_x + zaru_x + zu_x + zunba_x + seru_x + souda_x + youtai_x, + denbun_x + ta_x + tai_x + tagaru_x + taru_x + da1_x + da2_x + daxtu_x, + darou_x + de_o + desi_x + desho_x + desu_x + na2_x + nara_x + nai_x, + nu_x + ne2_x + nn2_x + fuuda_x + besi_x + mai_x + masu_x + masure_x, + mase_x + mitaida_x + you_x + youda_x + rasii_x + rareru_x + reru_x + site_x, + + yougen_x + aru_x + ara_x + ari1_x + ari2_x + ari3_x + are1_x + are2_x, + arou_x + ii_x + itasi_x + itadaku_x + iru_x + eru_x + kakeru_x + kaneru_x, + karazu_x + gatai_x + gatida_x + kudasaru_x + gozai_x + sa1_x + si1_x + siro_x, + jyau_x + jimau_x + sugiru_x + subesi_x + suru_x + sure_x + se_x + seyo_x, + tamau_x + tayu_x + timau_x + dekiru_x + naru_x + nasai_x + nasaru_x + nikui_x, + yasui_x + yoi_x + yaru_x + ttarasii_x}; + +static u_char kadouka[] = { + wo_o + ttatte_o + ttara_x + tte1_o + tte2_x + ppanasi_x + ppoi_x + ue_x, + uti_x + oite_x + okeru_x + ori_x + ka1_x + ka2_x + kai_x + kasira_x, + katagata_x + kadouka_x + kana_x + kane_x + kamo_x + kara1_x + kara2_x + ga1_o, + ga2_x + gatera_x + kiri_x + kuseni_x + kurai_x + gurumi_x + kedo_x + koso_x, + koto_x + sa2_x + sae_o + si2_x + sika_o + sura_x + zutu_x + zo_x, + tame_x + dake_o + dano_o + darake_x + tuite_x + tuki_x + tutu_x + tumori_x, + te1_x + te2_x + teru_x + dearou_x + deru_x + to1_x + to2_o + totte_x, + toiu_x + toori_x + toki_x + tokoro_x + tote_x + tohaie_x + tomo_x + do_x, + doori_x + dokoro_x + dokoroka_x + domo_x + na1_x + naa_x + nagara_x + nazo_o, + nado_o + nari_x + nanka_o + nanzo_o + nante_o + ni1_x + ni2_x + ni3_o, + nite_x + nimo_x + ne1_x + nee_x + no1_o + no2_x + node_x + noni_x, + nomi_o + nominrz_o + ha_o + hazu_x + ba_x + bakari_x + he_x + hou_x, + hoka_x + hodo_x + made_o + mama_x + mo1_o + mo2_x + motte_x + mono_x, + ya1_x + ya2_x + yara_x + yue_x + yo_x + yori_o + wa_x + wake_x, + wane_x + wayo_x + nn1_x + jya_o + tya_x + nagara2_x + wo_s_x, + ze_x + kke_x + n_si_x + deha_o, + + gotosi_x + saseru_x + zaru_x + zu_x + zunba_x + seru_x + souda_x + youtai_x, + denbun_x + ta_x + tai_x + tagaru_x + taru_x + da1_x + da2_o + daxtu_o, + darou_o + de_o + desi_o + desho_o + desu_o + na2_o + nara_o + nai_x, + nu_x + ne2_x + nn2_x + fuuda_x + besi_x + mai_x + masu_x + masure_x, + mase_x + mitaida_x + you_x + youda_x + rasii_o + rareru_x + reru_x + site_x, + + yougen_x + aru_x + ara_x + ari1_x + ari2_x + ari3_x + are1_x + are2_x, + arou_x + ii_x + itasi_x + itadaku_x + iru_x + eru_x + kakeru_x + kaneru_x, + karazu_x + gatai_x + gatida_x + kudasaru_x + gozai_x + sa1_x + si1_x + siro_x, + jyau_x + jimau_x + sugiru_x + subesi_x + suru_x + sure_x + se_x + seyo_x, + tamau_x + tayu_x + timau_x + dekiru_x + naru_x + nasai_x + nasaru_x + nikui_x, + yasui_x + yoi_x + yaru_x + ttarasii_x}; + +static u_char kamo[] = { + wo_x + ttatte_x + ttara_x + tte1_x + tte2_x + ppanasi_x + ppoi_x + ue_x, + uti_x + oite_x + okeru_x + ori_x + ka1_x + ka2_x + kai_x + kasira_x, + katagata_x + kadouka_x + kana_x + kane_x + kamo_x + kara1_x + kara2_x + ga1_x, + ga2_x + gatera_x + kiri_x + kuseni_x + kurai_x + gurumi_x + kedo_x + koso_x, + koto_x + sa2_x + sae_x + si2_x + sika_x + sura_x + zutu_x + zo_x, + tame_x + dake_x + dano_x + darake_x + tuite_x + tuki_x + tutu_x + tumori_x, + te1_x + te2_x + teru_x + dearou_x + deru_x + to1_x + to2_x + totte_x, + toiu_x + toori_x + toki_x + tokoro_x + tote_x + tohaie_x + tomo_x + do_x, + doori_x + dokoro_x + dokoroka_x + domo_x + na1_x + naa_x + nagara_x + nazo_x, + nado_x + nari_x + nanka_x + nanzo_x + nante_x + ni1_x + ni2_x + ni3_x, + nite_x + nimo_x + ne1_x + nee_x + no1_x + no2_x + node_x + noni_x, + nomi_x + nominrz_x + ha_x + hazu_x + ba_x + bakari_x + he_x + hou_x, + hoka_x + hodo_x + made_x + mama_x + mo1_x + mo2_x + motte_x + mono_x, + ya1_x + ya2_x + yara_x + yue_x + yo_x + yori_x + wa_x + wake_x, + wane_x + wayo_x + nn1_x + jya_x + tya_x + nagara2_x + wo_s_x, + ze_x + kke_x + n_si_x + deha_x, + + gotosi_x + saseru_x + zaru_x + zu_x + zunba_x + seru_x + souda_x + youtai_x, + denbun_x + ta_x + tai_x + tagaru_x + taru_x + da1_x + da2_x + daxtu_x, + darou_x + de_x + desi_x + desho_x + desu_x + na2_x + nara_x + nai_x, + nu_x + ne2_x + nn2_x + fuuda_x + besi_x + mai_x + masu_x + masure_x, + mase_x + mitaida_x + you_x + youda_x + rasii_x + rareru_x + reru_x + site_x, + + yougen_x + aru_x + ara_x + ari1_x + ari2_x + ari3_x + are1_x + are2_x, + arou_x + ii_x + itasi_x + itadaku_x + iru_x + eru_x + kakeru_x + kaneru_x, + karazu_x + gatai_x + gatida_x + kudasaru_x + gozai_x + sa1_x + si1_x + siro_x, + jyau_x + jimau_x + sugiru_x + subesi_x + suru_x + sure_x + se_x + seyo_x, + tamau_x + tayu_x + timau_x + dekiru_x + naru_x + nasai_x + nasaru_x + nikui_x, + yasui_x + yoi_x + yaru_x + ttarasii_x}; + +static u_char kara1[] = { + wo_x + ttatte_x + ttara_x + tte1_o + tte2_x + ppanasi_x + ppoi_x + ue_x, + uti_x + oite_x + okeru_x + ori_x + ka1_o + ka2_x + kai_x + kasira_o, + katagata_x + kadouka_o + kana_o + kane_o + kamo_o + kara1_x + kara2_x + ga1_o, + ga2_x + gatera_x + kiri_x + kuseni_x + kurai_x + gurumi_x + kedo_x + koso_o, + koto_x + sa2_o + sae_o + si2_x + sika_o + sura_x + zutu_x + zo_x, + tame_x + dake_o + dano_o + darake_x + tuite_x + tuki_x + tutu_x + tumori_x, + te1_x + te2_x + teru_x + dearou_x + deru_x + to1_x + to2_o + totte_x, + toiu_o + toori_x + toki_x + tokoro_x + tote_o + tohaie_o + tomo_x + do_x, + doori_x + dokoro_x + dokoroka_o + domo_x + na1_x + naa_x + nagara_x + nazo_o, + nado_o + nari_o + nanka_o + nanzo_o + nante_o + ni1_o + ni2_x + ni3_x, + nite_x + nimo_x + ne1_o + nee_o + no1_o + no2_x + node_x + noni_x, + nomi_x + nominrz_x + ha_o + hazu_x + ba_x + bakari_o + he_x + hou_x, + hoka_x + hodo_x + made_x + mama_x + mo1_o + mo2_x + motte_x + mono_x, + ya1_o + ya2_x + yara_x + yue_x + yo_o + yori_o + wa_x + wake_x, + wane_o + wayo_x + nn1_x + jya_o + tya_x + nagara2_x + wo_s_x, + ze_x + kke_x + n_si_x + deha_o, + + gotosi_x + saseru_x + zaru_x + zu_x + zunba_x + seru_x + souda_x + youtai_x, + denbun_x + ta_x + tai_x + tagaru_x + taru_x + da1_x + da2_o + daxtu_o, + darou_o + de_o + desi_o + desho_o + desu_o + na2_o + nara_o + nai_x, + nu_x + ne2_x + nn2_x + fuuda_x + besi_x + mai_x + masu_x + masure_x, + mase_x + mitaida_x + you_x + youda_x + rasii_x + rareru_x + reru_x + site_x, + + yougen_x + aru_x + ara_x + ari1_x + ari2_x + ari3_x + are1_x + are2_x, + arou_x + ii_x + itasi_x + itadaku_x + iru_x + eru_x + kakeru_x + kaneru_x, + karazu_x + gatai_x + gatida_x + kudasaru_x + gozai_x + sa1_x + si1_x + siro_x, + jyau_x + jimau_x + sugiru_x + subesi_x + suru_x + sure_x + se_x + seyo_x, + tamau_x + tayu_x + timau_x + dekiru_x + naru_x + nasai_x + nasaru_x + nikui_x, + yasui_x + yoi_x + yaru_x + ttarasii_x}; + +static u_char kara2[] = { + wo_x + ttatte_o + ttara_x + tte1_o + tte2_x + ppanasi_x + ppoi_x + ue_x, + uti_x + oite_x + okeru_x + ori_x + ka1_o + ka2_x + kai_x + kasira_o, + katagata_x + kadouka_o + kana_o + kane_o + kamo_o + kara1_x + kara2_x + ga1_x, + ga2_x + gatera_x + kiri_x + kuseni_x + kurai_x + gurumi_x + kedo_x + koso_o, + koto_x + sa2_o + sae_x + si2_x + sika_x + sura_x + zutu_x + zo_x, + tame_x + dake_x + dano_o + darake_x + tuite_x + tuki_x + tutu_x + tumori_x, + te1_x + te2_x + teru_x + dearou_x + deru_x + to1_x + to2_o + totte_x, + toiu_o + toori_x + toki_x + tokoro_x + tote_o + tohaie_o + tomo_x + do_x, + doori_x + dokoro_x + dokoroka_x + domo_x + na1_o + naa_o + nagara_x + nazo_o, + nado_o + nari_x + nanka_o + nanzo_o + nante_o + ni1_x + ni2_x + ni3_o, + nite_x + nimo_x + ne1_o + nee_o + no1_x + no2_x + node_x + noni_x, + nomi_x + nominrz_x + ha_x + hazu_x + ba_x + bakari_x + he_x + hou_x, + hoka_x + hodo_x + made_x + mama_x + mo1_x + mo2_x + motte_x + mono_x, + ya1_x + ya2_x + yara_x + yue_x + yo_o + yori_o + wa_x + wake_x, + wane_x + wayo_x + nn1_x + jya_o + tya_x + nagara2_x + wo_s_x, + ze_x + kke_x + n_si_x + deha_o, + + gotosi_x + saseru_x + zaru_x + zu_x + zunba_x + seru_x + souda_x + youtai_x, + denbun_x + ta_x + tai_x + tagaru_x + taru_x + da1_x + da2_o + daxtu_o, + darou_o + de_o + desi_o + desho_o + desu_o + na2_o + nara_o + nai_x, + nu_x + ne2_x + nn2_x + fuuda_x + besi_x + mai_x + masu_x + masure_x, + mase_x + mitaida_o + you_x + youda_x + rasii_o + rareru_x + reru_x + site_x, + + yougen_x + aru_x + ara_x + ari1_x + ari2_x + ari3_x + are1_x + are2_x, + arou_x + ii_x + itasi_x + itadaku_x + iru_x + eru_x + kakeru_x + kaneru_x, + karazu_x + gatai_x + gatida_x + kudasaru_x + gozai_x + sa1_x + si1_x + siro_x, + jyau_x + jimau_x + sugiru_x + subesi_x + suru_x + sure_x + se_x + seyo_x, + tamau_x + tayu_x + timau_x + dekiru_x + naru_x + nasai_x + nasaru_x + nikui_x, + yasui_x + yoi_x + yaru_x + ttarasii_x}; + +static u_char ga1[] = { + wo_x + ttatte_x + ttara_x + tte1_x + tte2_x + ppanasi_x + ppoi_x + ue_x, + uti_x + oite_x + okeru_x + ori_x + ka1_x + ka2_x + kai_x + kasira_x, + katagata_x + kadouka_x + kana_x + kane_x + kamo_x + kara1_x + kara2_x + ga1_x, + ga2_x + gatera_x + kiri_x + kuseni_x + kurai_x + gurumi_x + kedo_x + koso_x, + koto_x + sa2_x + sae_x + si2_x + sika_x + sura_x + zutu_x + zo_x, + tame_x + dake_x + dano_x + darake_x + tuite_x + tuki_x + tutu_x + tumori_x, + te1_x + te2_x + teru_x + dearou_x + deru_x + to1_x + to2_x + totte_x, + toiu_x + toori_x + toki_x + tokoro_x + tote_x + tohaie_x + tomo_x + do_x, + doori_x + dokoro_x + dokoroka_x + domo_x + na1_x + naa_x + nagara_x + nazo_o, + nado_o + nari_x + nanka_x + nanzo_x + nante_x + ni1_x + ni2_x + ni3_x, + nite_x + nimo_x + ne1_o + nee_o + no1_x + no2_x + node_x + noni_x, + nomi_x + nominrz_x + ha_x + hazu_x + ba_x + bakari_x + he_x + hou_x, + hoka_x + hodo_x + made_x + mama_x + mo1_x + mo2_x + motte_x + mono_x, + ya1_x + ya2_x + yara_x + yue_x + yo_x + yori_x + wa_x + wake_x, + wane_x + wayo_x + nn1_x + jya_x + tya_x + nagara2_x + wo_s_x, + ze_x + kke_x + n_si_x + deha_x, + + gotosi_x + saseru_x + zaru_x + zu_x + zunba_x + seru_x + souda_x + youtai_x, + denbun_x + ta_x + tai_x + tagaru_x + taru_x + da1_x + da2_x + daxtu_x, + darou_x + de_x + desi_x + desho_x + desu_x + na2_x + nara_x + nai_o, + nu_x + ne2_x + nn2_x + fuuda_x + besi_x + mai_x + masu_x + masure_x, + mase_x + mitaida_x + you_x + youda_x + rasii_x + rareru_x + reru_x + site_x, + + yougen_x + aru_o + ara_o + ari1_x + ari2_o + ari3_x + are1_x + are2_o, + arou_x + ii_o + itasi_x + itadaku_x + iru_x + eru_x + kakeru_x + kaneru_x, + karazu_x + gatai_x + gatida_x + kudasaru_x + gozai_o + sa1_o + si1_o + siro_o, + jyau_x + jimau_x + sugiru_x + subesi_o + suru_o + sure_o + se_o + seyo_o, + tamau_x + tayu_x + timau_x + dekiru_x + naru_x + nasai_x + nasaru_x + nikui_x, + yasui_x + yoi_x + yaru_x + ttarasii_x}; + +static u_char ga2[] = { + wo_x + ttatte_x + ttara_x + tte1_x + tte2_x + ppanasi_x + ppoi_x + ue_x, + uti_x + oite_x + okeru_x + ori_x + ka1_x + ka2_x + kai_x + kasira_x, + katagata_x + kadouka_x + kana_x + kane_x + kamo_x + kara1_x + kara2_x + ga1_x, + ga2_x + gatera_x + kiri_x + kuseni_x + kurai_x + gurumi_x + kedo_x + koso_x, + koto_x + sa2_x + sae_x + si2_x + sika_x + sura_x + zutu_x + zo_x, + tame_x + dake_x + dano_x + darake_x + tuite_x + tuki_x + tutu_x + tumori_x, + te1_x + te2_x + teru_x + dearou_x + deru_x + to1_x + to2_x + totte_x, + toiu_x + toori_x + toki_x + tokoro_x + tote_x + tohaie_x + tomo_x + do_x, + doori_x + dokoro_x + dokoroka_x + domo_x + na1_x + naa_x + nagara_x + nazo_x, + nado_x + nari_x + nanka_x + nanzo_x + nante_x + ni1_x + ni2_x + ni3_x, + nite_x + nimo_x + ne1_o + nee_o + no1_x + no2_x + node_x + noni_x, + nomi_x + nominrz_x + ha_x + hazu_x + ba_x + bakari_x + he_x + hou_x, + hoka_x + hodo_x + made_x + mama_x + mo1_x + mo2_x + motte_x + mono_x, + ya1_x + ya2_x + yara_x + yue_o + yo_x + yori_x + wa_x + wake_x, + wane_x + wayo_x + nn1_x + jya_x + tya_x + nagara2_x + wo_s_x, + ze_x + kke_x + n_si_x + deha_x, + + gotosi_o + saseru_x + zaru_x + zu_x + zunba_x + seru_x + souda_x + youtai_x, + denbun_x + ta_x + tai_x + tagaru_x + taru_x + da1_x + da2_x + daxtu_x, + darou_x + de_x + desi_x + desho_x + desu_x + na2_x + nara_x + nai_x, + nu_x + ne2_x + nn2_x + fuuda_x + besi_x + mai_x + masu_x + masure_x, + mase_x + mitaida_x + you_x + youda_x + rasii_x + rareru_x + reru_x + site_x, + + yougen_x + aru_x + ara_x + ari1_x + ari2_x + ari3_x + are1_x + are2_x, + arou_x + ii_o + itasi_x + itadaku_x + iru_x + eru_x + kakeru_x + kaneru_x, + karazu_x + gatai_x + gatida_x + kudasaru_x + gozai_x + sa1_x + si1_x + siro_x, + jyau_x + jimau_x + sugiru_x + subesi_x + suru_x + sure_x + se_x + seyo_x, + tamau_x + tayu_x + timau_x + dekiru_x + naru_x + nasai_x + nasaru_x + nikui_x, + yasui_x + yoi_x + yaru_x + ttarasii_x}; + +static u_char gatera[] = { + wo_x + ttatte_x + ttara_x + tte1_x + tte2_x + ppanasi_x + ppoi_x + ue_x, + uti_x + oite_x + okeru_x + ori_x + ka1_x + ka2_x + kai_x + kasira_x, + katagata_x + kadouka_x + kana_x + kane_x + kamo_x + kara1_x + kara2_x + ga1_x, + ga2_x + gatera_x + kiri_x + kuseni_x + kurai_x + gurumi_x + kedo_x + koso_x, + koto_x + sa2_x + sae_x + si2_x + sika_x + sura_x + zutu_x + zo_x, + tame_x + dake_x + dano_x + darake_x + tuite_x + tuki_x + tutu_x + tumori_x, + te1_x + te2_x + teru_x + dearou_x + deru_x + to1_x + to2_x + totte_x, + toiu_x + toori_x + toki_x + tokoro_x + tote_x + tohaie_x + tomo_x + do_x, + doori_x + dokoro_x + dokoroka_x + domo_x + na1_x + naa_x + nagara_x + nazo_x, + nado_x + nari_x + nanka_x + nanzo_x + nante_x + ni1_x + ni2_x + ni3_o, + nite_x + nimo_x + ne1_x + nee_x + no1_o + no2_x + node_x + noni_x, + nomi_x + nominrz_x + ha_o + hazu_x + ba_x + bakari_x + he_x + hou_x, + hoka_x + hodo_x + made_x + mama_x + mo1_o + mo2_x + motte_x + mono_x, + ya1_x + ya2_x + yara_x + yue_x + yo_x + yori_x + wa_x + wake_x, + wane_x + wayo_x + nn1_x + jya_x + tya_x + nagara2_x + wo_s_x, + ze_x + kke_x + n_si_x + deha_x, + + gotosi_x + saseru_x + zaru_x + zu_x + zunba_x + seru_x + souda_x + youtai_x, + denbun_x + ta_x + tai_x + tagaru_x + taru_x + da1_x + da2_x + daxtu_x, + darou_x + de_o + desi_x + desho_x + desu_x + na2_x + nara_x + nai_x, + nu_x + ne2_x + nn2_x + fuuda_x + besi_x + mai_x + masu_x + masure_x, + mase_x + mitaida_x + you_x + youda_x + rasii_x + rareru_x + reru_x + site_x, + + yougen_x + aru_x + ara_x + ari1_x + ari2_x + ari3_x + are1_x + are2_x, + arou_x + ii_x + itasi_x + itadaku_x + iru_x + eru_x + kakeru_x + kaneru_x, + karazu_x + gatai_x + gatida_x + kudasaru_x + gozai_x + sa1_x + si1_x + siro_x, + jyau_x + jimau_x + sugiru_x + subesi_x + suru_x + sure_x + se_x + seyo_x, + tamau_x + tayu_x + timau_x + dekiru_x + naru_x + nasai_x + nasaru_x + nikui_x, + yasui_x + yoi_x + yaru_x + ttarasii_x}; + +static u_char kiri[] = { + wo_x + ttatte_x + ttara_x + tte1_x + tte2_x + ppanasi_x + ppoi_x + ue_x, + uti_x + oite_x + okeru_x + ori_x + ka1_x + ka2_x + kai_x + kasira_x, + katagata_x + kadouka_x + kana_x + kane_x + kamo_x + kara1_x + kara2_x + ga1_x, + ga2_x + gatera_x + kiri_x + kuseni_x + kurai_x + gurumi_x + kedo_x + koso_x, + koto_x + sa2_x + sae_x + si2_x + sika_x + sura_x + zutu_x + zo_x, + tame_x + dake_x + dano_x + darake_x + tuite_x + tuki_x + tutu_x + tumori_x, + te1_x + te2_x + teru_x + dearou_x + deru_x + to1_x + to2_x + totte_x, + toiu_x + toori_x + toki_x + tokoro_x + tote_x + tohaie_x + tomo_o + do_x, + doori_x + dokoro_x + dokoroka_x + domo_x + na1_x + naa_x + nagara_x + nazo_x, + nado_x + nari_x + nanka_x + nanzo_x + nante_x + ni1_x + ni2_x + ni3_x, + nite_x + nimo_x + ne1_x + nee_x + no1_o + no2_x + node_x + noni_x, + nomi_x + nominrz_x + ha_x + hazu_x + ba_x + bakari_x + he_x + hou_x, + hoka_x + hodo_x + made_x + mama_x + mo1_x + mo2_x + motte_x + mono_x, + ya1_x + ya2_x + yara_x + yue_x + yo_o + yori_x + wa_x + wake_x, + wane_x + wayo_x + nn1_x + jya_x + tya_x + nagara2_x + wo_s_x, + ze_x + kke_x + n_si_x + deha_x, + + gotosi_x + saseru_x + zaru_x + zu_x + zunba_x + seru_x + souda_x + youtai_x, + denbun_x + ta_x + tai_x + tagaru_x + taru_x + da1_x + da2_o + daxtu_o, + darou_o + de_o + desi_o + desho_o + desu_o + na2_o + nara_o + nai_x, + nu_x + ne2_x + nn2_x + fuuda_x + besi_x + mai_x + masu_x + masure_x, + mase_x + mitaida_o + you_x + youda_x + rasii_x + rareru_x + reru_x + site_x, + + yougen_x + aru_x + ara_x + ari1_x + ari2_x + ari3_x + are1_x + are2_x, + arou_x + ii_x + itasi_x + itadaku_x + iru_x + eru_x + kakeru_x + kaneru_x, + karazu_x + gatai_x + gatida_x + kudasaru_x + gozai_x + sa1_x + si1_x + siro_x, + jyau_x + jimau_x + sugiru_x + subesi_x + suru_x + sure_x + se_x + seyo_x, + tamau_x + tayu_x + timau_x + dekiru_x + naru_x + nasai_x + nasaru_x + nikui_x, + yasui_x + yoi_x + yaru_x + ttarasii_x}; + +static u_char kuseni[] = { + wo_x + ttatte_x + ttara_x + tte1_x + tte2_x + ppanasi_x + ppoi_x + ue_x, + uti_x + oite_x + okeru_x + ori_x + ka1_x + ka2_x + kai_x + kasira_x, + katagata_x + kadouka_x + kana_x + kane_x + kamo_x + kara1_x + kara2_x + ga1_x, + ga2_x + gatera_x + kiri_x + kuseni_x + kurai_x + gurumi_x + kedo_x + koso_x, + koto_x + sa2_o + sae_x + si2_x + sika_x + sura_x + zutu_x + zo_x, + tame_x + dake_x + dano_x + darake_x + tuite_x + tuki_x + tutu_x + tumori_x, + te1_x + te2_x + teru_x + dearou_x + deru_x + to1_x + to2_x + totte_x, + toiu_x + toori_x + toki_x + tokoro_x + tote_x + tohaie_x + tomo_x + do_x, + doori_x + dokoro_x + dokoroka_x + domo_x + na1_o + naa_o + nagara_x + nazo_x, + nado_x + nari_x + nanka_x + nanzo_x + nante_x + ni1_x + ni2_x + ni3_x, + nite_x + nimo_x + ne1_o + nee_o + no1_x + no2_x + node_x + noni_x, + nomi_x + nominrz_x + ha_x + hazu_x + ba_x + bakari_x + he_x + hou_x, + hoka_x + hodo_x + made_x + mama_x + mo1_x + mo2_x + motte_x + mono_x, + ya1_x + ya2_x + yara_x + yue_x + yo_o + yori_x + wa_x + wake_x, + wane_x + wayo_x + nn1_x + jya_x + tya_x + nagara2_x + wo_s_x, + ze_x + kke_x + n_si_x + deha_x, + + gotosi_x + saseru_x + zaru_x + zu_x + zunba_x + seru_x + souda_x + youtai_x, + denbun_x + ta_x + tai_x + tagaru_x + taru_x + da1_x + da2_x + daxtu_x, + darou_x + de_x + desi_x + desho_x + desu_x + na2_x + nara_x + nai_x, + nu_x + ne2_x + nn2_x + fuuda_x + besi_x + mai_x + masu_x + masure_x, + mase_x + mitaida_x + you_x + youda_x + rasii_x + rareru_x + reru_x + site_x, + + yougen_x + aru_x + ara_x + ari1_x + ari2_x + ari3_x + are1_x + are2_x, + arou_x + ii_x + itasi_x + itadaku_x + iru_x + eru_x + kakeru_x + kaneru_x, + karazu_x + gatai_x + gatida_x + kudasaru_x + gozai_x + sa1_x + si1_x + siro_x, + jyau_x + jimau_x + sugiru_x + subesi_x + suru_x + sure_x + se_x + seyo_x, + tamau_x + tayu_x + timau_x + dekiru_x + naru_x + nasai_x + nasaru_x + nikui_x, + yasui_x + yoi_x + yaru_x + ttarasii_x}; + +static u_char kurai[] = { + wo_o + ttatte_x + ttara_x + tte1_o + tte2_x + ppanasi_x + ppoi_x + ue_x, + uti_x + oite_x + okeru_x + ori_x + ka1_o + ka2_x + kai_x + kasira_o, + katagata_x + kadouka_o + kana_o + kane_o + kamo_o + kara1_o + kara2_x + ga1_o, + ga2_x + gatera_x + kiri_x + kuseni_x + kurai_x + gurumi_x + kedo_x + koso_o, + koto_x + sa2_o + sae_o + si2_x + sika_o + sura_x + zutu_x + zo_x, + tame_x + dake_o + dano_o + darake_x + tuite_x + tuki_x + tutu_x + tumori_x, + te1_x + te2_x + teru_x + dearou_x + deru_x + to1_o + to2_x + totte_x, + toiu_o + toori_x + toki_x + tokoro_x + tote_x + tohaie_o + tomo_o + do_x, + doori_x + dokoro_x + dokoroka_x + domo_x + na1_o + naa_o + nagara_x + nazo_x, + nado_x + nari_x + nanka_o + nanzo_o + nante_o + ni1_o + ni2_x + ni3_x, + nite_x + nimo_x + ne1_o + nee_o + no1_o + no2_x + node_x + noni_x, + nomi_x + nominrz_x + ha_o + hazu_x + ba_x + bakari_x + he_x + hou_x, + hoka_x + hodo_x + made_o + mama_x + mo1_o + mo2_x + motte_x + mono_x, + ya1_o + ya2_x + yara_o + yue_x + yo_o + yori_o + wa_x + wake_x, + wane_o + wayo_x + nn1_x + jya_o + tya_x + nagara2_x + wo_s_x, + ze_x + kke_x + n_si_x + deha_x, + + gotosi_x + saseru_x + zaru_x + zu_x + zunba_x + seru_x + souda_x + youtai_x, + denbun_x + ta_x + tai_x + tagaru_x + taru_x + da1_x + da2_o + daxtu_o, + darou_o + de_o + desi_o + desho_o + desu_o + na2_o + nara_o + nai_x, + nu_x + ne2_x + nn2_x + fuuda_x + besi_x + mai_x + masu_x + masure_x, + mase_x + mitaida_o + you_x + youda_x + rasii_o + rareru_x + reru_x + site_x, + + yougen_x + aru_x + ara_x + ari1_x + ari2_x + ari3_x + are1_x + are2_x, + arou_x + ii_x + itasi_x + itadaku_x + iru_x + eru_x + kakeru_x + kaneru_x, + karazu_x + gatai_x + gatida_x + kudasaru_x + gozai_x + sa1_x + si1_x + siro_x, + jyau_x + jimau_x + sugiru_x + subesi_x + suru_x + sure_x + se_x + seyo_x, + tamau_x + tayu_x + timau_x + dekiru_x + naru_x + nasai_x + nasaru_x + nikui_x, + yasui_x + yoi_x + yaru_x + ttarasii_x}; + +static u_char gurumi[] = { + wo_o + ttatte_x + ttara_x + tte1_x + tte2_x + ppanasi_x + ppoi_x + ue_x, + uti_x + oite_x + okeru_x + ori_x + ka1_o + ka2_x + kai_x + kasira_o, + katagata_x + kadouka_o + kana_o + kane_o + kamo_o + kara1_o + kara2_x + ga1_o, + ga2_x + gatera_x + kiri_x + kuseni_x + kurai_x + gurumi_x + kedo_x + koso_o, + koto_x + sa2_o + sae_o + si2_x + sika_o + sura_o + zutu_x + zo_x, + tame_x + dake_o + dano_o + darake_x + tuite_x + tuki_x + tutu_x + tumori_x, + te1_x + te2_x + teru_x + dearou_x + deru_x + to1_x + to2_o + totte_x, + toiu_o + toori_x + toki_x + tokoro_x + tote_x + tohaie_o + tomo_x + do_x, + doori_x + dokoro_o + dokoroka_o + domo_x + na1_x + naa_o + nagara_x + nazo_o, + nado_o + nari_o + nanka_o + nanzo_o + nante_x + ni1_o + ni2_x + ni3_x, + nite_x + nimo_x + ne1_o + nee_o + no1_x + no2_x + node_x + noni_x, + nomi_o + nominrz_o + ha_o + hazu_x + ba_x + bakari_x + he_x + hou_x, + hoka_x + hodo_o + made_o + mama_x + mo1_o + mo2_x + motte_x + mono_x, + ya1_o + ya2_x + yara_o + yue_o + yo_o + yori_o + wa_x + wake_x, + wane_o + wayo_x + nn1_x + jya_o + tya_x + nagara2_x + wo_s_x, + ze_x + kke_x + n_si_x + deha_o, + + gotosi_x + saseru_x + zaru_x + zu_x + zunba_x + seru_x + souda_x + youtai_x, + denbun_x + ta_x + tai_x + tagaru_x + taru_x + da1_x + da2_o + daxtu_o, + darou_o + de_o + desi_o + desho_o + desu_o + na2_o + nara_o + nai_x, + nu_x + ne2_x + nn2_x + fuuda_x + besi_x + mai_x + masu_x + masure_x, + mase_x + mitaida_o + you_x + youda_x + rasii_o + rareru_x + reru_x + site_x, + + yougen_x + aru_x + ara_x + ari1_x + ari2_x + ari3_x + are1_x + are2_x, + arou_x + ii_x + itasi_x + itadaku_x + iru_x + eru_x + kakeru_x + kaneru_x, + karazu_x + gatai_x + gatida_x + kudasaru_x + gozai_x + sa1_x + si1_x + siro_x, + jyau_x + jimau_x + sugiru_x + subesi_x + suru_x + sure_x + se_x + seyo_x, + tamau_x + tayu_x + timau_x + dekiru_x + naru_x + nasai_x + nasaru_x + nikui_x, + yasui_x + yoi_x + yaru_x + ttarasii_x}; + +static u_char kedo[] = { + wo_x + ttatte_x + ttara_x + tte1_x + tte2_x + ppanasi_x + ppoi_x + ue_x, + uti_x + oite_x + okeru_x + ori_x + ka1_x + ka2_x + kai_x + kasira_x, + katagata_x + kadouka_x + kana_x + kane_x + kamo_x + kara1_x + kara2_x + ga1_x, + ga2_x + gatera_x + kiri_x + kuseni_x + kurai_x + gurumi_x + kedo_x + koso_x, + koto_x + sa2_o + sae_x + si2_x + sika_x + sura_x + zutu_x + zo_x, + tame_x + dake_x + dano_x + darake_x + tuite_x + tuki_x + tutu_x + tumori_x, + te1_x + te2_x + teru_x + dearou_x + deru_x + to1_x + to2_x + totte_x, + toiu_o + toori_x + toki_x + tokoro_x + tote_x + tohaie_o + tomo_x + do_x, + doori_x + dokoro_x + dokoroka_x + domo_x + na1_o + naa_o + nagara_x + nazo_x, + nado_x + nari_x + nanka_x + nanzo_x + nante_x + ni1_x + ni2_x + ni3_x, + nite_x + nimo_x + ne1_o + nee_o + no1_x + no2_x + node_x + noni_x, + nomi_x + nominrz_x + ha_x + hazu_x + ba_x + bakari_x + he_x + hou_x, + hoka_x + hodo_x + made_x + mama_x + mo1_x + mo2_x + motte_x + mono_x, + ya1_x + ya2_x + yara_x + yue_x + yo_x + yori_x + wa_x + wake_x, + wane_x + wayo_x + nn1_x + jya_x + tya_x + nagara2_x + wo_s_x, + ze_x + kke_x + n_si_x + deha_x, + + gotosi_x + saseru_x + zaru_x + zu_x + zunba_x + seru_x + souda_x + youtai_x, + denbun_x + ta_x + tai_x + tagaru_x + taru_x + da1_x + da2_x + daxtu_x, + darou_x + de_x + desi_x + desho_x + desu_x + na2_x + nara_x + nai_x, + nu_x + ne2_x + nn2_x + fuuda_x + besi_x + mai_x + masu_x + masure_x, + mase_x + mitaida_x + you_x + youda_x + rasii_x + rareru_x + reru_x + site_x, + + yougen_x + aru_x + ara_x + ari1_x + ari2_x + ari3_x + are1_x + are2_x, + arou_x + ii_x + itasi_x + itadaku_x + iru_x + eru_x + kakeru_x + kaneru_x, + karazu_x + gatai_x + gatida_x + kudasaru_x + gozai_x + sa1_x + si1_x + siro_x, + jyau_x + jimau_x + sugiru_x + subesi_x + suru_x + sure_x + se_x + seyo_x, + tamau_x + tayu_x + timau_x + dekiru_x + naru_x + nasai_x + nasaru_x + nikui_x, + yasui_x + yoi_x + yaru_x + ttarasii_x}; + +static u_char koso[] = { + wo_o + ttatte_x + ttara_x + tte1_x + tte2_x + ppanasi_x + ppoi_x + ue_x, + uti_x + oite_x + okeru_x + ori_x + ka1_x + ka2_x + kai_x + kasira_x, + katagata_x + kadouka_x + kana_x + kane_x + kamo_x + kara1_x + kara2_x + ga1_o, + ga2_x + gatera_x + kiri_x + kuseni_x + kurai_x + gurumi_x + kedo_x + koso_x, + koto_x + sa2_x + sae_x + si2_x + sika_x + sura_x + zutu_x + zo_x, + tame_x + dake_x + dano_x + darake_x + tuite_x + tuki_x + tutu_x + tumori_x, + te1_x + te2_x + teru_x + dearou_x + deru_x + to1_o + to2_x + totte_x, + toiu_x + toori_x + toki_x + tokoro_x + tote_x + tohaie_x + tomo_x + do_x, + doori_x + dokoro_x + dokoroka_x + domo_x + na1_x + naa_x + nagara_x + nazo_x, + nado_x + nari_x + nanka_x + nanzo_x + nante_x + ni1_x + ni2_x + ni3_x, + nite_x + nimo_x + ne1_x + nee_x + no1_x + no2_x + node_x + noni_x, + nomi_x + nominrz_x + ha_o + hazu_x + ba_x + bakari_x + he_x + hou_x, + hoka_x + hodo_x + made_x + mama_x + mo1_x + mo2_x + motte_x + mono_x, + ya1_x + ya2_x + yara_x + yue_x + yo_x + yori_x + wa_x + wake_x, + wane_x + wayo_x + nn1_x + jya_x + tya_x + nagara2_x + wo_s_x, + ze_x + kke_x + n_si_x + deha_x, + + gotosi_x + saseru_x + zaru_x + zu_x + zunba_x + seru_x + souda_x + youtai_x, + denbun_x + ta_x + tai_x + tagaru_x + taru_x + da1_x + da2_x + daxtu_x, + darou_o + de_x + desi_x + desho_x + desu_x + na2_x + nara_x + nai_x, + nu_x + ne2_x + nn2_x + fuuda_x + besi_x + mai_x + masu_x + masure_x, + mase_x + mitaida_x + you_x + youda_x + rasii_x + rareru_x + reru_x + site_x, + + yougen_x + aru_x + ara_x + ari1_x + ari2_x + ari3_x + are1_x + are2_x, + arou_x + ii_x + itasi_x + itadaku_x + iru_x + eru_x + kakeru_x + kaneru_x, + karazu_x + gatai_x + gatida_x + kudasaru_x + gozai_x + sa1_x + si1_x + siro_x, + jyau_x + jimau_x + sugiru_x + subesi_x + suru_x + sure_x + se_x + seyo_x, + tamau_x + tayu_x + timau_x + dekiru_x + naru_x + nasai_x + nasaru_x + nikui_x, + yasui_x + yoi_x + yaru_x + ttarasii_x}; + +static u_char koto[] = { + wo_x + ttatte_x + ttara_x + tte1_o + tte2_x + ppanasi_x + ppoi_x + ue_x, + uti_x + oite_x + okeru_x + ori_x + ka1_o + ka2_x + kai_x + kasira_o, + katagata_x + kadouka_o + kana_o + kane_o + kamo_o + kara1_o + kara2_x + ga1_o, + ga2_x + gatera_x + kiri_x + kuseni_x + kurai_o + gurumi_x + kedo_x + koso_o, + koto_x + sa2_o + sae_o + si2_x + sika_o + sura_o + zutu_x + zo_o, + tame_x + dake_o + dano_o + darake_x + tuite_x + tuki_x + tutu_x + tumori_x, + te1_x + te2_x + teru_x + dearou_x + deru_x + to1_x + to2_o + totte_x, + toiu_o + toori_x + toki_x + tokoro_x + tote_x + tohaie_o + tomo_x + do_x, + doori_x + dokoro_o + dokoroka_o + domo_x + na1_x + naa_o + nagara_o + nazo_o, + nado_o + nari_o + nanka_o + nanzo_o + nante_o + ni1_o + ni2_x + ni3_x, + nite_x + nimo_x + ne1_o + nee_o + no1_o + no2_x + node_x + noni_x, + nomi_o + nominrz_o + ha_o + hazu_x + ba_x + bakari_o + he_o + hou_x, + hoka_x + hodo_o + made_o + mama_x + mo1_o + mo2_x + motte_x + mono_x, + ya1_o + ya2_x + yara_o + yue_x + yo_o + yori_o + wa_x + wake_x, + wane_o + wayo_x + nn1_x + jya_x + tya_x + nagara2_x + wo_s_o, + ze_x + kke_x + n_si_x + deha_o, + + gotosi_x + saseru_x + zaru_x + zu_x + zunba_x + seru_x + souda_x + youtai_x, + denbun_x + ta_x + tai_x + tagaru_x + taru_x + da1_x + da2_o + daxtu_o, + darou_o + de_o + desi_o + desho_o + desu_o + na2_o + nara_o + nai_o, + nu_x + ne2_x + nn2_x + fuuda_x + besi_x + mai_x + masu_x + masure_x, + mase_x + mitaida_o + you_x + youda_x + rasii_o + rareru_x + reru_x + site_x, + + yougen_x + aru_x + ara_x + ari1_x + ari2_x + ari3_x + are1_x + are2_x, + arou_x + ii_x + itasi_x + itadaku_x + iru_x + eru_x + kakeru_x + kaneru_x, + karazu_x + gatai_x + gatida_x + kudasaru_x + gozai_x + sa1_x + si1_x + siro_x, + jyau_x + jimau_x + sugiru_x + subesi_x + suru_x + sure_x + se_x + seyo_x, + tamau_x + tayu_x + timau_x + dekiru_x + naru_x + nasai_x + nasaru_x + nikui_x, + yasui_x + yoi_x + yaru_x + ttarasii_x}; + +static u_char sae[] = { + wo_x + ttatte_x + ttara_x + tte1_x + tte2_x + ppanasi_x + ppoi_x + ue_x, + uti_x + oite_x + okeru_x + ori_x + ka1_x + ka2_x + kai_x + kasira_x, + katagata_x + kadouka_x + kana_x + kane_x + kamo_x + kara1_x + kara2_x + ga1_x, + ga2_x + gatera_x + kiri_x + kuseni_x + kurai_x + gurumi_x + kedo_x + koso_x, + koto_x + sa2_x + sae_x + si2_x + sika_x + sura_x + zutu_x + zo_x, + tame_x + dake_x + dano_x + darake_x + tuite_x + tuki_x + tutu_x + tumori_x, + te1_x + te2_x + teru_x + dearou_x + deru_x + to1_x + to2_x + totte_x, + toiu_x + toori_x + toki_x + tokoro_x + tote_x + tohaie_x + tomo_x + do_x, + doori_x + dokoro_x + dokoroka_x + domo_x + na1_x + naa_x + nagara_x + nazo_x, + nado_x + nari_x + nanka_x + nanzo_x + nante_x + ni1_x + ni2_x + ni3_x, + nite_x + nimo_x + ne1_x + nee_x + no1_x + no2_x + node_x + noni_x, + nomi_x + nominrz_x + ha_x + hazu_x + ba_x + bakari_x + he_x + hou_x, + hoka_x + hodo_x + made_x + mama_x + mo1_o + mo2_x + motte_x + mono_x, + ya1_x + ya2_x + yara_x + yue_x + yo_x + yori_x + wa_x + wake_x, + wane_x + wayo_x + nn1_x + jya_x + tya_x + nagara2_x + wo_s_x, + ze_x + kke_x + n_si_x + deha_x, + + gotosi_x + saseru_x + zaru_x + zu_x + zunba_x + seru_x + souda_x + youtai_x, + denbun_x + ta_x + tai_x + tagaru_x + taru_x + da1_x + da2_x + daxtu_x, + darou_x + de_x + desi_x + desho_x + desu_x + na2_x + nara_x + nai_o, + nu_x + ne2_x + nn2_x + fuuda_x + besi_x + mai_x + masu_x + masure_x, + mase_x + mitaida_x + you_x + youda_x + rasii_x + rareru_x + reru_x + site_x, + + yougen_x + aru_o + ara_o + ari1_x + ari2_o + ari3_x + are1_x + are2_o, + arou_x + ii_x + itasi_x + itadaku_x + iru_x + eru_x + kakeru_x + kaneru_x, + karazu_x + gatai_x + gatida_x + kudasaru_x + gozai_x + sa1_o + si1_o + siro_o, + jyau_x + jimau_x + sugiru_x + subesi_x + suru_o + sure_o + se_o + seyo_o, + tamau_x + tayu_x + timau_x + dekiru_x + naru_x + nasai_x + nasaru_x + nikui_x, + yasui_x + yoi_x + yaru_x + ttarasii_x}; + +static u_char si2[] = { + wo_x + ttatte_x + ttara_x + tte1_x + tte2_x + ppanasi_x + ppoi_x + ue_x, + uti_x + oite_x + okeru_x + ori_x + ka1_x + ka2_x + kai_x + kasira_x, + katagata_x + kadouka_x + kana_x + kane_x + kamo_x + kara1_x + kara2_x + ga1_x, + ga2_x + gatera_x + kiri_x + kuseni_x + kurai_x + gurumi_x + kedo_x + koso_x, + koto_x + sa2_o + sae_x + si2_x + sika_x + sura_x + zutu_x + zo_x, + tame_x + dake_x + dano_x + darake_x + tuite_x + tuki_x + tutu_x + tumori_x, + te1_x + te2_x + teru_x + dearou_x + deru_x + to1_x + to2_x + totte_x, + toiu_x + toori_x + toki_x + tokoro_x + tote_x + tohaie_x + tomo_x + do_x, + doori_x + dokoro_x + dokoroka_x + domo_x + na1_x + naa_o + nagara_x + nazo_x, + nado_x + nari_x + nanka_x + nanzo_x + nante_x + ni1_x + ni2_x + ni3_x, + nite_x + nimo_x + ne1_o + nee_o + no1_x + no2_x + node_x + noni_x, + nomi_x + nominrz_x + ha_x + hazu_x + ba_x + bakari_x + he_x + hou_x, + hoka_x + hodo_x + made_x + mama_x + mo1_x + mo2_x + motte_x + mono_x, + ya1_x + ya2_x + yara_x + yue_x + yo_x + yori_x + wa_x + wake_x, + wane_x + wayo_x + nn1_x + jya_x + tya_x + nagara2_x + wo_s_x, + ze_x + kke_x + n_si_x + deha_x, + + gotosi_x + saseru_x + zaru_x + zu_x + zunba_x + seru_x + souda_x + youtai_x, + denbun_x + ta_x + tai_x + tagaru_x + taru_x + da1_x + da2_x + daxtu_x, + darou_x + de_x + desi_x + desho_x + desu_x + na2_x + nara_x + nai_x, + nu_x + ne2_x + nn2_x + fuuda_x + besi_x + mai_x + masu_x + masure_x, + mase_x + mitaida_x + you_x + youda_x + rasii_x + rareru_x + reru_x + site_x, + + yougen_x + aru_x + ara_x + ari1_x + ari2_x + ari3_x + are1_x + are2_x, + arou_x + ii_x + itasi_x + itadaku_x + iru_x + eru_x + kakeru_x + kaneru_x, + karazu_x + gatai_x + gatida_x + kudasaru_x + gozai_x + sa1_x + si1_x + siro_x, + jyau_x + jimau_x + sugiru_x + subesi_x + suru_x + sure_x + se_x + seyo_x, + tamau_x + tayu_x + timau_x + dekiru_x + naru_x + nasai_x + nasaru_x + nikui_x, + yasui_x + yoi_x + yaru_x + ttarasii_x}; + +static u_char sika[] = { + wo_x + ttatte_x + ttara_x + tte1_x + tte2_x + ppanasi_x + ppoi_x + ue_x, + uti_x + oite_x + okeru_x + ori_x + ka1_x + ka2_x + kai_x + kasira_x, + katagata_x + kadouka_x + kana_x + kane_x + kamo_x + kara1_x + kara2_x + ga1_x, + ga2_x + gatera_x + kiri_x + kuseni_x + kurai_x + gurumi_x + kedo_x + koso_x, + koto_x + sa2_o + sae_x + si2_x + sika_x + sura_x + zutu_x + zo_x, + tame_x + dake_x + dano_x + darake_x + tuite_x + tuki_x + tutu_x + tumori_x, + te1_x + te2_x + teru_x + dearou_x + deru_x + to1_x + to2_x + totte_x, + toiu_x + toori_x + toki_x + tokoro_x + tote_x + tohaie_x + tomo_x + do_x, + doori_x + dokoro_x + dokoroka_x + domo_x + na1_x + naa_x + nagara_x + nazo_x, + nado_x + nari_x + nanka_x + nanzo_x + nante_x + ni1_x + ni2_x + ni3_x, + nite_x + nimo_x + ne1_o + nee_o + no1_x + no2_x + node_x + noni_x, + nomi_x + nominrz_x + ha_x + hazu_x + ba_x + bakari_x + he_x + hou_x, + hoka_x + hodo_x + made_x + mama_x + mo1_x + mo2_x + motte_x + mono_x, + ya1_x + ya2_x + yara_x + yue_x + yo_x + yori_x + wa_x + wake_x, + wane_x + wayo_x + nn1_x + jya_x + tya_x + nagara2_x + wo_s_x, + ze_x + kke_x + n_si_x + deha_x, + + gotosi_x + saseru_x + zaru_x + zu_x + zunba_x + seru_x + souda_x + youtai_x, + denbun_x + ta_x + tai_x + tagaru_x + taru_x + da1_x + da2_x + daxtu_x, + darou_x + de_x + desi_x + desho_x + desu_x + na2_x + nara_x + nai_o, + nu_x + ne2_x + nn2_x + fuuda_x + besi_x + mai_x + masu_x + masure_x, + mase_x + mitaida_x + you_x + youda_x + rasii_x + rareru_x + reru_x + site_x, + + yougen_x + aru_x + ara_x + ari1_x + ari2_x + ari3_x + are1_x + are2_x, + arou_x + ii_x + itasi_x + itadaku_x + iru_x + eru_x + kakeru_x + kaneru_x, + karazu_x + gatai_x + gatida_x + kudasaru_x + gozai_x + sa1_x + si1_x + siro_x, + jyau_x + jimau_x + sugiru_x + subesi_x + suru_x + sure_x + se_x + seyo_x, + tamau_x + tayu_x + timau_x + dekiru_x + naru_x + nasai_x + nasaru_x + nikui_x, + yasui_x + yoi_x + yaru_x + ttarasii_x}; + +static u_char sura[] = { + wo_x + ttatte_x + ttara_x + tte1_x + tte2_x + ppanasi_x + ppoi_x + ue_x, + uti_x + oite_x + okeru_x + ori_x + ka1_x + ka2_x + kai_x + kasira_x, + katagata_x + kadouka_x + kana_x + kane_x + kamo_x + kara1_x + kara2_x + ga1_o, + ga2_x + gatera_x + kiri_x + kuseni_x + kurai_x + gurumi_x + kedo_x + koso_x, + koto_x + sa2_x + sae_x + si2_x + sika_x + sura_x + zutu_x + zo_x, + tame_x + dake_x + dano_x + darake_x + tuite_x + tuki_x + tutu_x + tumori_x, + te1_x + te2_x + teru_x + dearou_x + deru_x + to1_x + to2_x + totte_x, + toiu_x + toori_x + toki_x + tokoro_x + tote_x + tohaie_x + tomo_x + do_x, + doori_x + dokoro_x + dokoroka_x + domo_x + na1_x + naa_x + nagara_x + nazo_x, + nado_x + nari_x + nanka_x + nanzo_x + nante_x + ni1_x + ni2_x + ni3_x, + nite_x + nimo_x + ne1_x + nee_x + no1_x + no2_x + node_x + noni_x, + nomi_x + nominrz_x + ha_x + hazu_x + ba_x + bakari_x + he_x + hou_x, + hoka_x + hodo_x + made_x + mama_x + mo1_o + mo2_x + motte_x + mono_x, + ya1_x + ya2_x + yara_x + yue_x + yo_x + yori_x + wa_x + wake_x, + wane_x + wayo_x + nn1_x + jya_x + tya_x + nagara2_x + wo_s_x, + ze_x + kke_x + n_si_x + deha_x, + + gotosi_x + saseru_x + zaru_x + zu_x + zunba_x + seru_x + souda_x + youtai_x, + denbun_x + ta_x + tai_x + tagaru_x + taru_x + da1_x + da2_x + daxtu_x, + darou_x + de_x + desi_x + desho_x + desu_x + na2_x + nara_x + nai_o, + nu_x + ne2_x + nn2_x + fuuda_x + besi_x + mai_x + masu_x + masure_x, + mase_x + mitaida_x + you_x + youda_x + rasii_x + rareru_x + reru_x + site_x, + + yougen_x + aru_x + ara_x + ari1_x + ari2_x + ari3_x + are1_x + are2_x, + arou_x + ii_x + itasi_x + itadaku_x + iru_x + eru_x + kakeru_x + kaneru_x, + karazu_x + gatai_x + gatida_x + kudasaru_x + gozai_x + sa1_x + si1_x + siro_x, + jyau_x + jimau_x + sugiru_x + subesi_x + suru_x + sure_x + se_x + seyo_x, + tamau_x + tayu_x + timau_x + dekiru_x + naru_x + nasai_x + nasaru_x + nikui_x, + yasui_x + yoi_x + yaru_x + ttarasii_x}; + +static u_char zutu[] = { + wo_o + ttatte_x + ttara_x + tte1_o + tte2_x + ppanasi_x + ppoi_x + ue_x, + uti_x + oite_x + okeru_x + ori_x + ka1_o + ka2_x + kai_x + kasira_o, + katagata_x + kadouka_o + kana_o + kane_o + kamo_o + kara1_o + kara2_x + ga1_o, + ga2_x + gatera_x + kiri_x + kuseni_x + kurai_o + gurumi_x + kedo_x + koso_x, + koto_x + sa2_o + sae_o + si2_x + sika_o + sura_x + zutu_x + zo_x, + tame_x + dake_x + dano_o + darake_x + tuite_x + tuki_x + tutu_x + tumori_x, + te1_x + te2_x + teru_x + dearou_x + deru_x + to1_o + to2_x + totte_x, + toiu_o + toori_x + toki_x + tokoro_x + tote_x + tohaie_o + tomo_x + do_x, + doori_x + dokoro_o + dokoroka_o + domo_x + na1_x + naa_x + nagara_x + nazo_o, + nado_o + nari_o + nanka_o + nanzo_o + nante_o + ni1_o + ni2_x + ni3_x, + nite_x + nimo_x + ne1_o + nee_o + no1_o + no2_x + node_x + noni_x, + nomi_x + nominrz_x + ha_o + hazu_x + ba_x + bakari_x + he_x + hou_x, + hoka_x + hodo_x + made_x + mama_x + mo1_o + mo2_x + motte_x + mono_x, + ya1_o + ya2_x + yara_o + yue_o + yo_o + yori_o + wa_x + wake_x, + wane_o + wayo_x + nn1_x + jya_o + tya_x + nagara2_x + wo_s_x, + ze_x + kke_x + n_si_x + deha_x, + + gotosi_x + saseru_x + zaru_x + zu_x + zunba_x + seru_x + souda_x + youtai_x, + denbun_x + ta_x + tai_x + tagaru_x + taru_x + da1_x + da2_o + daxtu_o, + darou_o + de_o + desi_o + desho_o + desu_o + na2_o + nara_o + nai_o, + nu_x + ne2_x + nn2_x + fuuda_x + besi_x + mai_x + masu_x + masure_x, + mase_x + mitaida_o + you_x + youda_x + rasii_o + rareru_x + reru_x + site_x, + + yougen_x + aru_o + ara_o + ari1_x + ari2_o + ari3_x + are1_x + are2_o, + arou_o + ii_x + itasi_x + itadaku_x + iru_x + eru_x + kakeru_x + kaneru_x, + karazu_x + gatai_x + gatida_x + kudasaru_x + gozai_o + sa1_x + si1_x + siro_x, + jyau_x + jimau_x + sugiru_x + subesi_x + suru_x + sure_x + se_x + seyo_x, + tamau_x + tayu_x + timau_x + dekiru_x + naru_x + nasai_x + nasaru_x + nikui_x, + yasui_x + yoi_x + yaru_x + ttarasii_x}; + +static u_char tame[] = { + wo_o + ttatte_x + ttara_x + tte1_o + tte2_x + ppanasi_x + ppoi_x + ue_x, + uti_x + oite_x + okeru_x + ori_x + ka1_o + ka2_x + kai_x + kasira_o, + katagata_x + kadouka_o + kana_o + kane_o + kamo_o + kara1_x + kara2_x + ga1_x, + ga2_x + gatera_x + kiri_x + kuseni_x + kurai_o + gurumi_x + kedo_x + koso_o, + koto_x + sa2_o + sae_o + si2_x + sika_o + sura_o + zutu_x + zo_x, + tame_x + dake_o + dano_o + darake_x + tuite_x + tuki_x + tutu_x + tumori_x, + te1_x + te2_x + teru_x + dearou_x + deru_x + to1_x + to2_o + totte_x, + toiu_o + toori_x + toki_x + tokoro_x + tote_o + tohaie_o + tomo_x + do_x, + doori_x + dokoro_o + dokoroka_o + domo_x + na1_x + naa_o + nagara_x + nazo_o, + nado_o + nari_o + nanka_o + nanzo_o + nante_o + ni1_o + ni2_x + ni3_x, + nite_x + nimo_x + ne1_o + nee_o + no1_o + no2_x + node_x + noni_x, + nomi_o + nominrz_o + ha_x + hazu_x + ba_x + bakari_o + he_x + hou_x, + hoka_x + hodo_x + made_x + mama_x + mo1_x + mo2_x + motte_x + mono_x, + ya1_x + ya2_x + yara_o + yue_x + yo_x + yori_o + wa_x + wake_x, + wane_x + wayo_x + nn1_x + jya_o + tya_x + nagara2_x + wo_s_x, + ze_x + kke_x + n_si_x + deha_o, + + gotosi_x + saseru_x + zaru_x + zu_x + zunba_x + seru_x + souda_x + youtai_x, + denbun_x + ta_x + tai_x + tagaru_x + taru_x + da1_x + da2_o + daxtu_o, + darou_o + de_o + desi_o + desho_o + desu_o + na2_o + nara_o + nai_x, + nu_x + ne2_x + nn2_x + fuuda_x + besi_x + mai_x + masu_x + masure_x, + mase_x + mitaida_o + you_x + youda_x + rasii_o + rareru_x + reru_x + site_x, + + yougen_x + aru_x + ara_x + ari1_x + ari2_x + ari3_x + are1_x + are2_x, + arou_x + ii_x + itasi_x + itadaku_x + iru_x + eru_x + kakeru_x + kaneru_x, + karazu_x + gatai_x + gatida_x + kudasaru_x + gozai_x + sa1_x + si1_x + siro_x, + jyau_x + jimau_x + sugiru_x + subesi_x + suru_x + sure_x + se_x + seyo_x, + tamau_x + tayu_x + timau_x + dekiru_x + naru_x + nasai_x + nasaru_x + nikui_x, + yasui_x + yoi_x + yaru_x + ttarasii_x}; + +static u_char tari[] = { + wo_x + ttatte_x + ttara_x + tte1_x + tte2_x + ppanasi_x + ppoi_x + ue_x, + uti_x + oite_x + okeru_x + ori_x + ka1_x + ka2_x + kai_x + kasira_x, + katagata_x + kadouka_x + kana_x + kane_x + kamo_x + kara1_x + kara2_x + ga1_x, + ga2_x + gatera_x + kiri_x + kuseni_x + kurai_o + gurumi_x + kedo_x + koso_x, + koto_x + sa2_o + sae_o + si2_x + sika_o + sura_o + zutu_x + zo_x, + tame_x + dake_o + dano_o + darake_x + tuite_x + tuki_x + tutu_x + tumori_x, + te1_x + te2_x + teru_x + dearou_x + deru_x + to1_x + to2_x + totte_x, + toiu_o + toori_x + toki_x + tokoro_x + tote_x + tohaie_o + tomo_x + do_x, + doori_x + dokoro_o + dokoroka_o + domo_x + na1_x + naa_x + nagara_x + nazo_o, + nado_o + nari_o + nanka_o + nanzo_o + nante_o + ni1_x + ni2_x + ni3_x, + nite_x + nimo_x + ne1_x + nee_x + no1_x + no2_x + node_x + noni_x, + nomi_o + nominrz_o + ha_o + hazu_x + ba_x + bakari_o + he_x + hou_x, + hoka_x + hodo_x + made_x + mama_x + mo1_x + mo2_o + motte_x + mono_x, + ya1_x + ya2_x + yara_x + yue_x + yo_x + yori_o + wa_x + wake_x, + wane_x + wayo_x + nn1_x + jya_o + tya_x + nagara2_x + wo_s_x, + ze_x + kke_x + n_si_x + deha_x, + + gotosi_x + saseru_x + zaru_x + zu_x + zunba_x + seru_x + souda_x + youtai_x, + denbun_x + ta_x + tai_x + tagaru_x + taru_x + da1_x + da2_o + daxtu_o, + darou_o + de_o + desi_o + desho_o + desu_o + na2_o + nara_o + nai_x, + nu_x + ne2_x + nn2_x + fuuda_x + besi_x + mai_x + masu_x + masure_x, + mase_x + mitaida_x + you_x + youda_x + rasii_x + rareru_x + reru_x + site_x, + + yougen_x + aru_x + ara_x + ari1_x + ari2_x + ari3_x + are1_x + are2_x, + arou_x + ii_x + itasi_x + itadaku_x + iru_x + eru_x + kakeru_x + kaneru_x, + karazu_x + gatai_x + gatida_x + kudasaru_x + gozai_x + sa1_o + si1_o + siro_o, + jyau_x + jimau_x + sugiru_x + subesi_x + suru_o + sure_o + se_o + seyo_o, + tamau_x + tayu_x + timau_x + dekiru_o + naru_x + nasai_o + nasaru_o + nikui_x, + yasui_x + yoi_x + yaru_x + ttarasii_x}; + +static u_char dake[] = { + wo_o + ttatte_o + ttara_o + tte1_o + tte2_x + ppanasi_x + ppoi_x + ue_x, + uti_x + oite_x + okeru_x + ori_x + ka1_o + ka2_x + kai_x + kasira_o, + katagata_x + kadouka_o + kana_o + kane_o + kamo_o + kara1_o + kara2_x + ga1_o, + ga2_x + gatera_x + kiri_x + kuseni_x + kurai_x + gurumi_x + kedo_x + koso_x, + koto_x + sa2_o + sae_o + si2_x + sika_o + sura_x + zutu_x + zo_x, + tame_x + dake_x + dano_o + darake_x + tuite_x + tuki_x + tutu_x + tumori_x, + te1_x + te2_x + teru_x + dearou_x + deru_x + to1_o + to2_x + totte_x, + toiu_o + toori_x + toki_x + tokoro_x + tote_o + tohaie_o + tomo_x + do_x, + doori_x + dokoro_x + dokoroka_x + domo_x + na1_o + naa_o + nagara_x + nazo_o, + nado_o + nari_o + nanka_o + nanzo_o + nante_o + ni1_o + ni2_x + ni3_x, + nite_x + nimo_x + ne1_o + nee_o + no1_o + no2_x + node_x + noni_x, + nomi_x + nominrz_x + ha_o + hazu_x + ba_x + bakari_x + he_x + hou_x, + hoka_x + hodo_x + made_x + mama_x + mo1_x + mo2_x + motte_x + mono_x, + ya1_o + ya2_x + yara_o + yue_x + yo_o + yori_x + wa_x + wake_x, + wane_x + wayo_x + nn1_x + jya_o + tya_x + nagara2_x + wo_s_x, + ze_x + kke_x + n_si_x + deha_x, + + gotosi_x + saseru_x + zaru_x + zu_x + zunba_x + seru_x + souda_x + youtai_x, + denbun_x + ta_x + tai_x + tagaru_x + taru_x + da1_x + da2_o + daxtu_o, + darou_o + de_o + desi_o + desho_o + desu_o + na2_o + nara_o + nai_x, + nu_x + ne2_x + nn2_x + fuuda_x + besi_x + mai_x + masu_x + masure_x, + mase_x + mitaida_o + you_x + youda_x + rasii_o + rareru_x + reru_x + site_x, + + yougen_x + aru_o + ara_o + ari1_x + ari2_o + ari3_x + are1_x + are2_o, + arou_o + ii_x + itasi_x + itadaku_x + iru_x + eru_x + kakeru_x + kaneru_x, + karazu_x + gatai_x + gatida_x + kudasaru_x + gozai_x + sa1_x + si1_x + siro_x, + jyau_x + jimau_x + sugiru_x + subesi_x + suru_x + sure_x + se_x + seyo_x, + tamau_x + tayu_x + timau_x + dekiru_x + naru_x + nasai_x + nasaru_x + nikui_x, + yasui_x + yoi_x + yaru_x + ttarasii_x}; + +static u_char dano[] = { + wo_o + ttatte_x + ttara_x + tte1_x + tte2_x + ppanasi_x + ppoi_x + ue_x, + uti_x + oite_x + okeru_x + ori_x + ka1_x + ka2_x + kai_x + kasira_x, + katagata_x + kadouka_x + kana_x + kane_x + kamo_x + kara1_o + kara2_x + ga1_o, + ga2_x + gatera_x + kiri_x + kuseni_x + kurai_x + gurumi_x + kedo_x + koso_x, + koto_x + sa2_o + sae_o + si2_x + sika_o + sura_o + zutu_x + zo_x, + tame_x + dake_o + dano_x + darake_x + tuite_x + tuki_x + tutu_x + tumori_x, + te1_x + te2_x + teru_x + dearou_x + deru_x + to1_o + to2_x + totte_x, + toiu_x + toori_x + toki_x + tokoro_x + tote_x + tohaie_x + tomo_x + do_x, + doori_x + dokoro_x + dokoroka_x + domo_x + na1_x + naa_x + nagara_x + nazo_o, + nado_o + nari_x + nanka_o + nanzo_o + nante_o + ni1_o + ni2_x + ni3_x, + nite_x + nimo_x + ne1_o + nee_o + no1_x + no2_x + node_x + noni_x, + nomi_x + nominrz_x + ha_o + hazu_x + ba_x + bakari_o + he_x + hou_x, + hoka_x + hodo_x + made_o + mama_x + mo1_o + mo2_x + motte_x + mono_x, + ya1_x + ya2_x + yara_x + yue_x + yo_o + yori_o + wa_x + wake_x, + wane_x + wayo_x + nn1_x + jya_o + tya_x + nagara2_x + wo_s_x, + ze_x + kke_x + n_si_x + deha_x, + + gotosi_x + saseru_x + zaru_x + zu_x + zunba_x + seru_x + souda_x + youtai_x, + denbun_x + ta_x + tai_x + tagaru_x + taru_x + da1_x + da2_x + daxtu_x, + darou_o + de_o + desi_o + desho_o + desu_o + na2_x + nara_o + nai_x, + nu_x + ne2_x + nn2_x + fuuda_x + besi_x + mai_x + masu_x + masure_x, + mase_x + mitaida_x + you_x + youda_x + rasii_x + rareru_x + reru_x + site_x, + + yougen_x + aru_x + ara_x + ari1_x + ari2_x + ari3_x + are1_x + are2_x, + arou_x + ii_x + itasi_x + itadaku_x + iru_x + eru_x + kakeru_x + kaneru_x, + karazu_x + gatai_x + gatida_x + kudasaru_x + gozai_x + sa1_x + si1_x + siro_x, + jyau_x + jimau_x + sugiru_x + subesi_x + suru_x + sure_x + se_x + seyo_x, + tamau_x + tayu_x + timau_x + dekiru_x + naru_x + nasai_x + nasaru_x + nikui_x, + yasui_x + yoi_x + yaru_x + ttarasii_x}; + +static u_char darake[] = { + wo_o + ttatte_x + ttara_x + tte1_o + tte2_x + ppanasi_x + ppoi_x + ue_x, + uti_x + oite_x + okeru_x + ori_x + ka1_x + ka2_x + kai_x + kasira_o, + katagata_x + kadouka_o + kana_o + kane_o + kamo_o + kara1_o + kara2_x + ga1_o, + ga2_x + gatera_x + kiri_x + kuseni_x + kurai_x + gurumi_x + kedo_x + koso_x, + koto_x + sa2_o + sae_x + si2_x + sika_x + sura_x + zutu_x + zo_x, + tame_x + dake_x + dano_o + darake_x + tuite_x + tuki_x + tutu_x + tumori_x, + te1_x + te2_x + teru_x + dearou_x + deru_x + to1_x + to2_o + totte_x, + toiu_o + toori_x + toki_x + tokoro_x + tote_o + tohaie_o + tomo_x + do_x, + doori_x + dokoro_x + dokoroka_x + domo_x + na1_x + naa_x + nagara_x + nazo_o, + nado_o + nari_x + nanka_o + nanzo_o + nante_o + ni1_o + ni2_x + ni3_x, + nite_x + nimo_x + ne1_o + nee_o + no1_o + no2_x + node_x + noni_x, + nomi_x + nominrz_x + ha_o + hazu_x + ba_x + bakari_x + he_x + hou_x, + hoka_x + hodo_x + made_x + mama_x + mo1_o + mo2_x + motte_x + mono_x, + ya1_o + ya2_x + yara_o + yue_x + yo_o + yori_o + wa_x + wake_x, + wane_o + wayo_x + nn1_x + jya_o + tya_x + nagara2_x + wo_s_x, + ze_x + kke_x + n_si_x + deha_o, + + gotosi_x + saseru_x + zaru_x + zu_x + zunba_x + seru_x + souda_x + youtai_x, + denbun_x + ta_x + tai_x + tagaru_x + taru_x + da1_x + da2_o + daxtu_o, + darou_o + de_o + desi_o + desho_o + desu_o + na2_o + nara_o + nai_x, + nu_x + ne2_x + nn2_x + fuuda_x + besi_x + mai_x + masu_x + masure_x, + mase_x + mitaida_o + you_x + youda_x + rasii_o + rareru_x + reru_x + site_x, + + yougen_x + aru_x + ara_x + ari1_x + ari2_x + ari3_x + are1_x + are2_x, + arou_x + ii_x + itasi_x + itadaku_x + iru_x + eru_x + kakeru_x + kaneru_x, + karazu_x + gatai_x + gatida_x + kudasaru_x + gozai_x + sa1_x + si1_x + siro_x, + jyau_x + jimau_x + sugiru_x + subesi_x + suru_x + sure_x + se_x + seyo_x, + tamau_x + tayu_x + timau_x + dekiru_x + naru_x + nasai_x + nasaru_x + nikui_x, + yasui_x + yoi_x + yaru_x + ttarasii_x}; + +static u_char tuite[] = { + wo_x + ttatte_x + ttara_x + tte1_x + tte2_x + ppanasi_x + ppoi_x + ue_x, + uti_x + oite_x + okeru_x + ori_x + ka1_o + ka2_x + kai_x + kasira_o, + katagata_x + kadouka_x + kana_o + kane_o + kamo_o + kara1_x + kara2_x + ga1_x, + ga2_x + gatera_x + kiri_x + kuseni_x + kurai_o + gurumi_x + kedo_x + koso_x, + koto_x + sa2_o + sae_o + si2_x + sika_o + sura_x + zutu_x + zo_x, + tame_x + dake_o + dano_o + darake_x + tuite_x + tuki_x + tutu_x + tumori_x, + te1_x + te2_x + teru_x + dearou_x + deru_x + to1_o + to2_x + totte_x, + toiu_x + toori_x + toki_x + tokoro_x + tote_x + tohaie_x + tomo_x + do_x, + doori_x + dokoro_x + dokoroka_x + domo_x + na1_x + naa_x + nagara_x + nazo_o, + nado_o + nari_x + nanka_o + nanzo_o + nante_o + ni1_x + ni2_x + ni3_x, + nite_x + nimo_x + ne1_o + nee_o + no1_o + no2_x + node_x + noni_x, + nomi_o + nominrz_o + ha_o + hazu_x + ba_x + bakari_o + he_x + hou_x, + hoka_x + hodo_x + made_x + mama_x + mo1_o + mo2_x + motte_x + mono_x, + ya1_o + ya2_x + yara_o + yue_x + yo_o + yori_o + wa_x + wake_x, + wane_o + wayo_x + nn1_x + jya_o + tya_x + nagara2_x + wo_s_x, + ze_x + kke_x + n_si_x + deha_x, + + gotosi_x + saseru_x + zaru_x + zu_x + zunba_x + seru_x + souda_x + youtai_x, + denbun_x + ta_x + tai_x + tagaru_x + taru_x + da1_x + da2_o + daxtu_o, + darou_o + de_o + desi_o + desho_o + desu_o + na2_o + nara_o + nai_x, + nu_x + ne2_x + nn2_x + fuuda_x + besi_x + mai_x + masu_x + masure_x, + mase_x + mitaida_x + you_x + youda_x + rasii_x + rareru_x + reru_x + site_x, + + yougen_x + aru_x + ara_x + ari1_x + ari2_x + ari3_x + are1_x + are2_x, + arou_x + ii_x + itasi_x + itadaku_x + iru_x + eru_x + kakeru_x + kaneru_x, + karazu_x + gatai_x + gatida_x + kudasaru_x + gozai_x + sa1_x + si1_x + siro_x, + jyau_x + jimau_x + sugiru_x + subesi_x + suru_x + sure_x + se_x + seyo_x, + tamau_x + tayu_x + timau_x + dekiru_x + naru_x + nasai_x + nasaru_x + nikui_x, + yasui_x + yoi_x + yaru_x + ttarasii_x}; + +static u_char tuki[] = { + wo_x + ttatte_x + ttara_x + tte1_x + tte2_x + ppanasi_x + ppoi_x + ue_x, + uti_x + oite_x + okeru_x + ori_x + ka1_x + ka2_x + kai_x + kasira_x, + katagata_x + kadouka_x + kana_x + kane_x + kamo_x + kara1_x + kara2_x + ga1_x, + ga2_x + gatera_x + kiri_x + kuseni_x + kurai_x + gurumi_x + kedo_x + koso_x, + koto_x + sa2_x + sae_x + si2_x + sika_x + sura_x + zutu_x + zo_x, + tame_x + dake_x + dano_x + darake_x + tuite_x + tuki_x + tutu_x + tumori_x, + te1_x + te2_x + teru_x + dearou_x + deru_x + to1_x + to2_x + totte_x, + toiu_x + toori_x + toki_x + tokoro_x + tote_x + tohaie_x + tomo_x + do_x, + doori_x + dokoro_x + dokoroka_x + domo_x + na1_x + naa_x + nagara_x + nazo_x, + nado_x + nari_x + nanka_x + nanzo_x + nante_x + ni1_x + ni2_x + ni3_x, + nite_x + nimo_x + ne1_x + nee_x + no1_x + no2_x + node_x + noni_x, + nomi_x + nominrz_x + ha_x + hazu_x + ba_x + bakari_x + he_x + hou_x, + hoka_x + hodo_x + made_x + mama_x + mo1_x + mo2_x + motte_x + mono_x, + ya1_x + ya2_x + yara_x + yue_x + yo_x + yori_x + wa_x + wake_x, + wane_x + wayo_x + nn1_x + jya_x + tya_x + nagara2_x + wo_s_x, + ze_x + kke_x + n_si_x + deha_x, + + gotosi_x + saseru_x + zaru_x + zu_x + zunba_x + seru_x + souda_x + youtai_x, + denbun_x + ta_x + tai_x + tagaru_x + taru_x + da1_x + da2_x + daxtu_x, + darou_x + de_x + desi_x + desho_x + desu_x + na2_x + nara_x + nai_x, + nu_x + ne2_x + nn2_x + fuuda_x + besi_x + mai_x + masu_x + masure_x, + mase_x + mitaida_x + you_x + youda_x + rasii_x + rareru_x + reru_x + site_x, + + yougen_x + aru_x + ara_x + ari1_x + ari2_x + ari3_x + are1_x + are2_x, + arou_x + ii_x + itasi_x + itadaku_x + iru_x + eru_x + kakeru_x + kaneru_x, + karazu_x + gatai_x + gatida_x + kudasaru_x + gozai_x + sa1_x + si1_x + siro_x, + jyau_x + jimau_x + sugiru_x + subesi_x + suru_x + sure_x + se_x + seyo_x, + tamau_x + tayu_x + timau_x + dekiru_x + naru_x + nasai_x + nasaru_x + nikui_x, + yasui_x + yoi_x + yaru_x + ttarasii_x}; + +static u_char tutu[] = { + wo_x + ttatte_x + ttara_x + tte1_x + tte2_x + ppanasi_x + ppoi_x + ue_x, + uti_x + oite_x + okeru_x + ori_x + ka1_x + ka2_x + kai_x + kasira_x, + katagata_x + kadouka_x + kana_x + kane_x + kamo_x + kara1_x + kara2_x + ga1_x, + ga2_x + gatera_x + kiri_x + kuseni_x + kurai_x + gurumi_x + kedo_x + koso_x, + koto_x + sa2_o + sae_o + si2_x + sika_x + sura_x + zutu_x + zo_x, + tame_x + dake_x + dano_x + darake_x + tuite_x + tuki_x + tutu_x + tumori_x, + te1_x + te2_x + teru_x + dearou_x + deru_x + to1_x + to2_x + totte_x, + toiu_x + toori_x + toki_x + tokoro_x + tote_x + tohaie_x + tomo_x + do_x, + doori_x + dokoro_x + dokoroka_x + domo_x + na1_x + naa_x + nagara_x + nazo_x, + nado_x + nari_x + nanka_x + nanzo_x + nante_x + ni1_x + ni2_x + ni3_x, + nite_x + nimo_x + ne1_o + nee_o + no1_x + no2_x + node_x + noni_x, + nomi_x + nominrz_x + ha_x + hazu_x + ba_x + bakari_x + he_x + hou_x, + hoka_x + hodo_x + made_x + mama_x + mo1_x + mo2_o + motte_x + mono_x, + ya1_x + ya2_x + yara_x + yue_x + yo_o + yori_x + wa_x + wake_x, + wane_o + wayo_x + nn1_x + jya_o + tya_x + nagara2_x + wo_s_x, + ze_x + kke_x + n_si_x + deha_x, + + gotosi_x + saseru_x + zaru_x + zu_x + zunba_x + seru_x + souda_x + youtai_x, + denbun_x + ta_x + tai_x + tagaru_x + taru_x + da1_x + da2_x + daxtu_x, + darou_x + de_x + desi_x + desho_x + desu_x + na2_x + nara_o + nai_x, + nu_x + ne2_x + nn2_x + fuuda_x + besi_x + mai_x + masu_x + masure_x, + mase_x + mitaida_o + you_x + youda_x + rasii_o + rareru_x + reru_x + site_x, + + yougen_x + aru_o + ara_o + ari1_x + ari2_x + ari3_o + are1_x + are2_o, + arou_o + ii_x + itasi_x + itadaku_x + iru_x + eru_x + kakeru_x + kaneru_x, + karazu_x + gatai_x + gatida_x + kudasaru_x + gozai_x + sa1_x + si1_x + siro_x, + jyau_x + jimau_x + sugiru_x + subesi_x + suru_x + sure_x + se_x + seyo_x, + tamau_x + tayu_x + timau_x + dekiru_x + naru_x + nasai_x + nasaru_x + nikui_x, + yasui_x + yoi_x + yaru_x + ttarasii_x}; + +static u_char tumori[] = { + wo_x + ttatte_x + ttara_x + tte1_o + tte2_x + ppanasi_x + ppoi_x + ue_x, + uti_x + oite_x + okeru_x + ori_x + ka1_o + ka2_x + kai_x + kasira_o, + katagata_x + kadouka_o + kana_o + kane_o + kamo_o + kara1_x + kara2_x + ga1_o, + ga2_x + gatera_x + kiri_x + kuseni_x + kurai_o + gurumi_x + kedo_x + koso_o, + koto_x + sa2_o + sae_o + si2_x + sika_o + sura_o + zutu_x + zo_x, + tame_x + dake_o + dano_o + darake_x + tuite_x + tuki_x + tutu_x + tumori_x, + te1_x + te2_x + teru_x + dearou_x + deru_x + to1_o + to2_x + totte_x, + toiu_o + toori_x + toki_x + tokoro_x + tote_x + tohaie_o + tomo_x + do_x, + doori_x + dokoro_o + dokoroka_o + domo_x + na1_x + naa_x + nagara_x + nazo_o, + nado_o + nari_x + nanka_o + nanzo_o + nante_o + ni1_x + ni2_x + ni3_x, + nite_x + nimo_x + ne1_o + nee_o + no1_x + no2_x + node_x + noni_x, + nomi_x + nominrz_x + ha_o + hazu_x + ba_x + bakari_x + he_x + hou_x, + hoka_x + hodo_x + made_o + mama_x + mo1_o + mo2_x + motte_x + mono_x, + ya1_x + ya2_x + yara_x + yue_x + yo_o + yori_o + wa_x + wake_x, + wane_x + wayo_x + nn1_x + jya_o + tya_x + nagara2_x + wo_s_x, + ze_x + kke_x + n_si_x + deha_x, + + gotosi_x + saseru_x + zaru_x + zu_x + zunba_x + seru_x + souda_x + youtai_x, + denbun_x + ta_x + tai_x + tagaru_x + taru_x + da1_x + da2_o + daxtu_o, + darou_o + de_o + desi_o + desho_o + desu_o + na2_o + nara_o + nai_x, + nu_x + ne2_x + nn2_x + fuuda_x + besi_x + mai_x + masu_x + masure_x, + mase_x + mitaida_x + you_x + youda_x + rasii_o + rareru_x + reru_x + site_x, + + yougen_x + aru_x + ara_x + ari1_x + ari2_x + ari3_x + are1_x + are2_x, + arou_x + ii_x + itasi_x + itadaku_x + iru_x + eru_x + kakeru_x + kaneru_x, + karazu_x + gatai_x + gatida_x + kudasaru_x + gozai_x + sa1_x + si1_x + siro_x, + jyau_x + jimau_x + sugiru_x + subesi_x + suru_x + sure_x + se_x + seyo_x, + tamau_x + tayu_x + timau_x + dekiru_x + naru_x + nasai_x + nasaru_x + nikui_x, + yasui_x + yoi_x + yaru_x + ttarasii_x}; + +static u_char te1[] = { + wo_x + ttatte_x + ttara_x + tte1_x + tte2_x + ppanasi_x + ppoi_x + ue_x, + uti_x + oite_x + okeru_x + ori_x + ka1_x + ka2_x + kai_x + kasira_x, + katagata_x + kadouka_x + kana_x + kane_x + kamo_x + kara1_x + kara2_x + ga1_x, + ga2_x + gatera_x + kiri_x + kuseni_x + kurai_x + gurumi_x + kedo_x + koso_x, + koto_x + sa2_o + sae_x + si2_x + sika_x + sura_x + zutu_x + zo_x, + tame_x + dake_x + dano_x + darake_x + tuite_x + tuki_x + tutu_x + tumori_x, + te1_x + te2_x + teru_x + dearou_x + deru_x + to1_x + to2_x + totte_x, + toiu_x + toori_x + toki_x + tokoro_x + tote_x + tohaie_x + tomo_x + do_x, + doori_x + dokoro_x + dokoroka_x + domo_x + na1_x + naa_o + nagara_x + nazo_x, + nado_x + nari_x + nanka_x + nanzo_x + nante_x + ni1_x + ni2_x + ni3_x, + nite_x + nimo_x + ne1_o + nee_o + no1_x + no2_x + node_x + noni_x, + nomi_x + nominrz_x + ha_o + hazu_x + ba_x + bakari_x + he_x + hou_x, + hoka_x + hodo_x + made_x + mama_x + mo1_o + mo2_x + motte_x + mono_x, + ya1_x + ya2_x + yara_x + yue_x + yo_x + yori_x + wa_x + wake_x, + wane_x + wayo_x + nn1_x + jya_o + tya_x + nagara2_x + wo_s_x, + ze_x + kke_x + n_si_x + deha_x, + + gotosi_x + saseru_x + zaru_x + zu_x + zunba_x + seru_x + souda_x + youtai_x, + denbun_x + ta_x + tai_x + tagaru_x + taru_x + da1_x + da2_x + daxtu_x, + darou_x + de_x + desi_x + desho_x + desu_x + na2_x + nara_x + nai_x, + nu_x + ne2_x + nn2_x + fuuda_x + besi_x + mai_x + masu_x + masure_x, + mase_x + mitaida_x + you_x + youda_x + rasii_x + rareru_x + reru_x + site_x, + + yougen_x + aru_x + ara_x + ari1_x + ari2_x + ari3_x + are1_x + are2_x, + arou_x + ii_x + itasi_x + itadaku_x + iru_x + eru_x + kakeru_x + kaneru_x, + karazu_x + gatai_x + gatida_x + kudasaru_x + gozai_x + sa1_x + si1_x + siro_x, + jyau_x + jimau_x + sugiru_x + subesi_x + suru_x + sure_x + se_x + seyo_x, + tamau_x + tayu_x + timau_x + dekiru_x + naru_x + nasai_x + nasaru_x + nikui_x, + yasui_x + yoi_x + yaru_x + ttarasii_x}; + +static u_char te2[] = { + wo_x + ttatte_x + ttara_x + tte1_x + tte2_o + ppanasi_x + ppoi_x + ue_x, + uti_x + oite_x + okeru_x + ori_x + ka1_x + ka2_x + kai_x + kasira_x, + katagata_x + kadouka_x + kana_x + kane_x + kamo_x + kara1_o + kara2_x + ga1_x, + ga2_x + gatera_x + kiri_x + kuseni_x + kurai_x + gurumi_x + kedo_x + koso_o, + koto_x + sa2_o + sae_o + si2_x + sika_o + sura_o + zutu_x + zo_x, + tame_x + dake_x + dano_x + darake_x + tuite_x + tuki_x + tutu_x + tumori_x, + te1_x + te2_x + teru_x + dearou_x + deru_x + to1_x + to2_x + totte_x, + toiu_x + toori_x + toki_x + tokoro_x + tote_x + tohaie_x + tomo_x + do_x, + doori_x + dokoro_x + dokoroka_x + domo_x + na1_x + naa_x + nagara_x + nazo_x, + nado_x + nari_x + nanka_x + nanzo_x + nante_x + ni1_x + ni2_x + ni3_x, + nite_x + nimo_x + ne1_o + nee_x + no1_o + no2_x + node_x + noni_x, + nomi_x + nominrz_x + ha_o + hazu_x + ba_x + bakari_o + he_x + hou_x, + hoka_x + hodo_x + made_o + mama_x + mo1_x + mo2_o + motte_x + mono_x, + ya1_x + ya2_x + yara_x + yue_x + yo_o + yori_x + wa_x + wake_x, + wane_x + wayo_x + nn1_x + jya_x + tya_o + nagara2_x + wo_s_x, + ze_x + kke_x + n_si_x + deha_x, + + gotosi_x + saseru_x + zaru_x + zu_x + zunba_x + seru_x + souda_o + youtai_o, + denbun_x + ta_o + tai_x + tagaru_x + taru_x + da1_x + da2_x + daxtu_x, + darou_x + de_o + desi_x + desho_x + desu_x + na2_x + nara_x + nai_o, + nu_x + ne2_x + nn2_x + fuuda_x + besi_x + mai_o + masu_o + masure_o, + mase_x + mitaida_x + you_x + youda_x + rasii_x + rareru_x + reru_x + site_x, + + yougen_o + aru_o + ara_o + ari1_x + ari2_o + ari3_x + are1_x + are2_o, + arou_o + ii_o + itasi_x + itadaku_o + iru_o + eru_x + kakeru_x + kaneru_x, + karazu_x + gatai_x + gatida_x + kudasaru_o + gozai_x + sa1_x + si1_x + siro_x, + jyau_x + jimau_x + sugiru_x + subesi_x + suru_x + sure_x + se_x + seyo_x, + tamau_x + tayu_x + timau_x + dekiru_x + naru_x + nasai_o + nasaru_x + nikui_x, + yasui_x + yoi_x + yaru_x + ttarasii_x}; + +static u_char teru[] = { + wo_x + ttatte_x + ttara_x + tte1_o + tte2_x + ppanasi_x + ppoi_x + ue_o, + uti_o + oite_x + okeru_x + ori_x + ka1_o + ka2_x + kai_o + kasira_o, + katagata_x + kadouka_o + kana_o + kane_o + kamo_o + kara1_x + kara2_o + ga1_x, + ga2_o + gatera_x + kiri_x + kuseni_o + kurai_o + gurumi_x + kedo_o + koso_x, + koto_o + sa2_o + sae_x + si2_o + sika_o + sura_x + zutu_x + zo_x, + tame_x + dake_o + dano_o + darake_x + tuite_x + tuki_x + tutu_x + tumori_o, + te1_x + te2_x + teru_x + dearou_o + deru_x + to1_x + to2_o + totte_x, + toiu_o + toori_x + toki_x + tokoro_o + tote_x + tohaie_o + tomo_x + do_x, + doori_x + dokoro_o + dokoroka_o + domo_x + na1_o + naa_o + nagara_x + nazo_o, + nado_o + nari_x + nanka_o + nanzo_o + nante_o + ni1_x + ni2_x + ni3_x, + nite_x + nimo_x + ne1_o + nee_o + no1_x + no2_o + node_o + noni_o, + nomi_x + nominrz_x + ha_x + hazu_o + ba_x + bakari_o + he_x + hou_o, + hoka_o + hodo_o + made_x + mama_x + mo1_o + mo2_x + motte_x + mono_o, + ya1_x + ya2_x + yara_o + yue_x + yo_o + yori_o + wa_o + wake_o, + wane_o + wayo_o + nn1_o + jya_o + tya_x + nagara2_x + wo_s_x, + ze_x + kke_x + n_si_x + deha_o, + + gotosi_x + saseru_x + zaru_x + zu_x + zunba_x + seru_x + souda_o + youtai_x, + denbun_o + ta_x + tai_x + tagaru_x + taru_x + da1_x + da2_x + daxtu_x, + darou_o + de_x + desi_x + desho_o + desu_x + na2_x + nara_o + nai_x, + nu_x + ne2_x + nn2_x + fuuda_x + besi_x + mai_x + masu_x + masure_x, + mase_x + mitaida_o + you_x + youda_o + rasii_o + rareru_x + reru_x + site_x, + + yougen_x + aru_x + ara_x + ari1_x + ari2_x + ari3_x + are1_x + are2_x, + arou_x + ii_x + itasi_x + itadaku_x + iru_x + eru_x + kakeru_x + kaneru_x, + karazu_x + gatai_x + gatida_x + kudasaru_x + gozai_x + sa1_x + si1_x + siro_x, + jyau_x + jimau_x + sugiru_x + subesi_x + suru_x + sure_x + se_x + seyo_x, + tamau_x + tayu_x + timau_x + dekiru_x + naru_x + nasai_x + nasaru_x + nikui_x, + yasui_x + yoi_x + yaru_x + ttarasii_x}; + +static u_char to1[] = { + wo_o + ttatte_x + ttara_x + tte1_x + tte2_x + ppanasi_x + ppoi_x + ue_x, + uti_x + oite_x + okeru_x + ori_x + ka1_o + ka2_x + kai_x + kasira_o, + katagata_x + kadouka_o + kana_o + kane_o + kamo_o + kara1_x + kara2_x + ga1_o, + ga2_x + gatera_x + kiri_x + kuseni_x + kurai_x + gurumi_x + kedo_x + koso_x, + koto_x + sa2_x + sae_o + si2_x + sika_o + sura_x + zutu_x + zo_x, + tame_x + dake_o + dano_x + darake_x + tuite_x + tuki_x + tutu_x + tumori_x, + te1_x + te2_x + teru_x + dearou_x + deru_x + to1_x + to2_x + totte_x, + toiu_x + toori_x + toki_x + tokoro_x + tote_x + tohaie_x + tomo_x + do_x, + doori_x + dokoro_x + dokoroka_x + domo_x + na1_o + naa_o + nagara_x + nazo_o, + nado_o + nari_x + nanka_o + nanzo_o + nante_o + ni1_o + ni2_x + ni3_x, + nite_x + nimo_x + ne1_o + nee_o + no1_o + no2_x + node_x + noni_x, + nomi_o + nominrz_o + ha_o + hazu_x + ba_x + bakari_o + he_x + hou_x, + hoka_x + hodo_x + made_x + mama_x + mo1_o + mo2_x + motte_x + mono_x, + ya1_x + ya2_x + yara_o + yue_x + yo_o + yori_x + wa_x + wake_x, + wane_o + wayo_x + nn1_x + jya_x + tya_x + nagara2_x + wo_s_x, + ze_x + kke_x + n_si_x + deha_x, + + gotosi_x + saseru_x + zaru_x + zu_x + zunba_x + seru_x + souda_x + youtai_x, + denbun_x + ta_x + tai_x + tagaru_x + taru_x + da1_x + da2_o + daxtu_o, + darou_o + de_x + desi_o + desho_o + desu_o + na2_x + nara_o + nai_x, + nu_x + ne2_x + nn2_x + fuuda_x + besi_x + mai_x + masu_x + masure_x, + mase_x + mitaida_x + you_x + youda_x + rasii_x + rareru_x + reru_x + site_x, + + yougen_x + aru_x + ara_x + ari1_x + ari2_x + ari3_x + are1_x + are2_x, + arou_x + ii_x + itasi_x + itadaku_x + iru_x + eru_x + kakeru_x + kaneru_x, + karazu_x + gatai_x + gatida_x + kudasaru_x + gozai_x + sa1_x + si1_o + siro_o, + jyau_x + jimau_x + sugiru_x + subesi_x + suru_o + sure_o + se_o + seyo_o, + tamau_x + tayu_x + timau_x + dekiru_x + naru_o + nasai_x + nasaru_x + nikui_x, + yasui_x + yoi_x + yaru_x + ttarasii_x}; + +static u_char to2[] = { + wo_x + ttatte_x + ttara_x + tte1_x + tte2_x + ppanasi_x + ppoi_x + ue_x, + uti_x + oite_x + okeru_x + ori_x + ka1_o + ka2_x + kai_x + kasira_o, + katagata_x + kadouka_x + kana_o + kane_o + kamo_x + kara1_x + kara2_x + ga1_x, + ga2_x + gatera_x + kiri_x + kuseni_x + kurai_x + gurumi_x + kedo_x + koso_x, + koto_x + sa2_x + sae_o + si2_x + sika_o + sura_o + zutu_x + zo_x, + tame_x + dake_o + dano_x + darake_x + tuite_x + tuki_x + tutu_x + tumori_x, + te1_x + te2_x + teru_x + dearou_x + deru_x + to1_x + to2_x + totte_x, + toiu_x + toori_x + toki_x + tokoro_x + tote_x + tohaie_x + tomo_x + do_x, + doori_x + dokoro_x + dokoroka_x + domo_x + na1_o + naa_o + nagara_x + nazo_o, + nado_o + nari_x + nanka_o + nanzo_o + nante_o + ni1_x + ni2_x + ni3_x, + nite_x + nimo_x + ne1_o + nee_o + no1_o + no2_x + node_x + noni_x, + nomi_o + nominrz_o + ha_o + hazu_x + ba_x + bakari_o + he_x + hou_x, + hoka_x + hodo_x + made_o + mama_x + mo1_o + mo2_x + motte_x + mono_x, + ya1_x + ya2_x + yara_x + yue_x + yo_x + yori_x + wa_x + wake_x, + wane_o + wayo_x + nn1_x + jya_x + tya_x + nagara2_x + wo_s_x, + ze_x + kke_x + n_si_x + deha_x, + + gotosi_x + saseru_x + zaru_x + zu_x + zunba_x + seru_x + souda_x + youtai_x, + denbun_x + ta_x + tai_x + tagaru_x + taru_x + da1_x + da2_x + daxtu_x, + darou_x + de_x + desi_x + desho_x + desu_x + na2_x + nara_x + nai_x, + nu_x + ne2_x + nn2_x + fuuda_x + besi_x + mai_x + masu_x + masure_x, + mase_x + mitaida_x + you_x + youda_x + rasii_x + rareru_x + reru_x + site_x, + + yougen_x + aru_x + ara_x + ari1_x + ari2_x + ari3_x + are1_x + are2_x, + arou_x + ii_x + itasi_x + itadaku_x + iru_x + eru_x + kakeru_x + kaneru_x, + karazu_x + gatai_x + gatida_x + kudasaru_x + gozai_x + sa1_o + si1_o + siro_o, + jyau_x + jimau_x + sugiru_x + subesi_x + suru_o + sure_o + se_o + seyo_o, + tamau_x + tayu_x + timau_x + dekiru_x + naru_o + nasai_x + nasaru_x + nikui_x, + yasui_x + yoi_x + yaru_x + ttarasii_x}; + +static u_char totte[] = { + wo_x + ttatte_x + ttara_x + tte1_x + tte2_x + ppanasi_x + ppoi_x + ue_x, + uti_x + oite_x + okeru_x + ori_x + ka1_x + ka2_x + kai_x + kasira_x, + katagata_x + kadouka_x + kana_x + kane_x + kamo_x + kara1_x + kara2_x + ga1_x, + ga2_x + gatera_x + kiri_x + kuseni_x + kurai_x + gurumi_x + kedo_x + koso_x, + koto_x + sa2_x + sae_x + si2_x + sika_x + sura_x + zutu_x + zo_x, + tame_x + dake_x + dano_x + darake_x + tuite_x + tuki_x + tutu_x + tumori_x, + te1_x + te2_x + teru_x + dearou_x + deru_x + to1_x + to2_x + totte_x, + toiu_x + toori_x + toki_x + tokoro_x + tote_x + tohaie_x + tomo_x + do_x, + doori_x + dokoro_x + dokoroka_x + domo_x + na1_o + naa_o + nagara_x + nazo_x, + nado_x + nari_x + nanka_x + nanzo_x + nante_x + ni1_x + ni2_x + ni3_x, + nite_x + nimo_x + ne1_o + nee_o + no1_o + no2_x + node_x + noni_x, + nomi_x + nominrz_x + ha_o + hazu_x + ba_x + bakari_x + he_x + hou_x, + hoka_x + hodo_x + made_x + mama_x + mo1_o + mo2_x + motte_x + mono_x, + ya1_x + ya2_x + yara_x + yue_x + yo_o + yori_x + wa_x + wake_x, + wane_o + wayo_x + nn1_x + jya_o + tya_x + nagara2_x + wo_s_x, + ze_x + kke_x + n_si_x + deha_x, + + gotosi_x + saseru_x + zaru_x + zu_x + zunba_x + seru_x + souda_x + youtai_x, + denbun_x + ta_x + tai_x + tagaru_x + taru_x + da1_x + da2_x + daxtu_x, + darou_x + de_x + desi_x + desho_x + desu_x + na2_x + nara_x + nai_x, + nu_x + ne2_x + nn2_x + fuuda_x + besi_x + mai_x + masu_x + masure_x, + mase_x + mitaida_x + you_x + youda_x + rasii_x + rareru_x + reru_x + site_x, + + yougen_x + aru_x + ara_x + ari1_x + ari2_x + ari3_x + are1_x + are2_x, + arou_x + ii_x + itasi_x + itadaku_x + iru_x + eru_x + kakeru_x + kaneru_x, + karazu_x + gatai_x + gatida_x + kudasaru_x + gozai_x + sa1_x + si1_x + siro_x, + jyau_x + jimau_x + sugiru_x + subesi_x + suru_x + sure_x + se_x + seyo_x, + tamau_x + tayu_x + timau_x + dekiru_x + naru_x + nasai_x + nasaru_x + nikui_x, + yasui_x + yoi_x + yaru_x + ttarasii_x}; + +static u_char toiu[] = { + wo_x + ttatte_x + ttara_x + tte1_x + tte2_x + ppanasi_x + ppoi_x + ue_x, + uti_x + oite_x + okeru_x + ori_x + ka1_o + ka2_x + kai_x + kasira_x, + katagata_x + kadouka_o + kana_x + kane_x + kamo_x + kara1_x + kara2_o + ga1_x, + ga2_o + gatera_x + kiri_x + kuseni_o + kurai_o + gurumi_x + kedo_o + koso_x, + koto_o + sa2_x + sae_x + si2_o + sika_o + sura_x + zutu_x + zo_x, + tame_x + dake_o + dano_x + darake_x + tuite_x + tuki_x + tutu_x + tumori_o, + te1_x + te2_x + teru_x + dearou_x + deru_x + to1_x + to2_x + totte_x, + toiu_x + toori_x + toki_x + tokoro_x + tote_x + tohaie_x + tomo_x + do_x, + doori_x + dokoro_o + dokoroka_o + domo_x + na1_x + naa_x + nagara_x + nazo_x, + nado_x + nari_x + nanka_x + nanzo_x + nante_x + ni1_x + ni2_x + ni3_o, + nite_x + nimo_o + ne1_x + nee_x + no1_x + no2_o + node_o + noni_o, + nomi_x + nominrz_x + ha_x + hazu_x + ba_x + bakari_x + he_x + hou_x, + hoka_o + hodo_o + made_o + mama_x + mo1_x + mo2_x + motte_x + mono_o, + ya1_x + ya2_x + yara_x + yue_o + yo_x + yori_x + wa_x + wake_o, + wane_x + wayo_x + nn1_x + jya_x + tya_x + nagara2_x + wo_s_x, + ze_x + kke_x + n_si_x + deha_x, + + gotosi_x + saseru_x + zaru_x + zu_x + zunba_x + seru_x + souda_x + youtai_x, + denbun_x + ta_x + tai_x + tagaru_x + taru_x + da1_x + da2_x + daxtu_x, + darou_x + de_x + desi_x + desho_x + desu_x + na2_x + nara_x + nai_x, + nu_x + ne2_x + nn2_x + fuuda_x + besi_x + mai_x + masu_x + masure_x, + mase_x + mitaida_x + you_x + youda_x + rasii_x + rareru_x + reru_x + site_x, + + yougen_x + aru_x + ara_x + ari1_x + ari2_x + ari3_x + are1_x + are2_x, + arou_x + ii_x + itasi_x + itadaku_x + iru_x + eru_x + kakeru_x + kaneru_x, + karazu_x + gatai_x + gatida_x + kudasaru_x + gozai_x + sa1_x + si1_x + siro_x, + jyau_x + jimau_x + sugiru_x + subesi_x + suru_x + sure_x + se_x + seyo_x, + tamau_x + tayu_x + timau_x + dekiru_x + naru_x + nasai_x + nasaru_x + nikui_x, + yasui_x + yoi_x + yaru_x + ttarasii_x}; + +static u_char toori[] = { + wo_x + ttatte_x + ttara_x + tte1_o + tte2_x + ppanasi_x + ppoi_x + ue_x, + uti_x + oite_x + okeru_x + ori_x + ka1_o + ka2_x + kai_x + kasira_o, + katagata_x + kadouka_o + kana_o + kane_o + kamo_o + kara1_x + kara2_x + ga1_o, + ga2_x + gatera_x + kiri_x + kuseni_x + kurai_x + gurumi_x + kedo_x + koso_x, + koto_x + sa2_o + sae_x + si2_x + sika_o + sura_x + zutu_x + zo_x, + tame_x + dake_x + dano_x + darake_x + tuite_x + tuki_x + tutu_x + tumori_x, + te1_x + te2_x + teru_x + dearou_x + deru_x + to1_o + to2_x + totte_x, + toiu_o + toori_x + toki_x + tokoro_x + tote_x + tohaie_o + tomo_x + do_x, + doori_x + dokoro_o + dokoroka_o + domo_x + na1_x + naa_x + nagara_x + nazo_x, + nado_x + nari_x + nanka_x + nanzo_x + nante_o + ni1_o + ni2_x + ni3_x, + nite_x + nimo_x + ne1_o + nee_o + no1_o + no2_x + node_x + noni_x, + nomi_o + nominrz_x + ha_o + hazu_x + ba_x + bakari_x + he_x + hou_x, + hoka_x + hodo_x + made_x + mama_x + mo1_o + mo2_x + motte_x + mono_x, + ya1_o + ya2_x + yara_x + yue_x + yo_o + yori_x + wa_x + wake_x, + wane_x + wayo_x + nn1_x + jya_x + tya_x + nagara2_x + wo_s_x, + ze_x + kke_x + n_si_x + deha_x, + + gotosi_x + saseru_x + zaru_x + zu_x + zunba_x + seru_x + souda_x + youtai_x, + denbun_x + ta_x + tai_x + tagaru_x + taru_x + da1_x + da2_o + daxtu_o, + darou_o + de_o + desi_o + desho_o + desu_o + na2_o + nara_o + nai_x, + nu_x + ne2_x + nn2_x + fuuda_x + besi_x + mai_x + masu_x + masure_x, + mase_x + mitaida_o + you_x + youda_x + rasii_o + rareru_x + reru_x + site_x, + + yougen_x + aru_x + ara_x + ari1_x + ari2_x + ari3_x + are1_x + are2_x, + arou_x + ii_x + itasi_x + itadaku_x + iru_x + eru_x + kakeru_x + kaneru_x, + karazu_x + gatai_x + gatida_x + kudasaru_x + gozai_x + sa1_x + si1_x + siro_x, + jyau_x + jimau_x + sugiru_x + subesi_x + suru_x + sure_x + se_x + seyo_x, + tamau_x + tayu_x + timau_x + dekiru_x + naru_x + nasai_x + nasaru_x + nikui_x, + yasui_x + yoi_x + yaru_x + ttarasii_x}; + +static u_char toki[] = { + wo_o + ttatte_x + ttara_x + tte1_o + tte2_x + ppanasi_x + ppoi_x + ue_x, + uti_x + oite_x + okeru_x + ori_x + ka1_o + ka2_x + kai_x + kasira_o, + katagata_x + kadouka_o + kana_o + kane_o + kamo_o + kara1_o + kara2_x + ga1_o, + ga2_x + gatera_x + kiri_x + kuseni_x + kurai_o + gurumi_x + kedo_x + koso_x, + koto_x + sa2_o + sae_o + si2_x + sika_o + sura_o + zutu_x + zo_x, + tame_x + dake_o + dano_o + darake_x + tuite_x + tuki_x + tutu_x + tumori_x, + te1_x + te2_x + teru_x + dearou_x + deru_x + to1_o + to2_x + totte_x, + toiu_o + toori_x + toki_x + tokoro_x + tote_x + tohaie_o + tomo_x + do_x, + doori_x + dokoro_o + dokoroka_o + domo_x + na1_x + naa_x + nagara_x + nazo_o, + nado_o + nari_x + nanka_o + nanzo_o + nante_o + ni1_o + ni2_x + ni3_x, + nite_x + nimo_x + ne1_o + nee_o + no1_o + no2_x + node_x + noni_x, + nomi_o + nominrz_o + ha_o + hazu_x + ba_x + bakari_o + he_o + hou_x, + hoka_x + hodo_x + made_o + mama_x + mo1_x + mo2_o + motte_x + mono_x, + ya1_o + ya2_x + yara_o + yue_x + yo_o + yori_o + wa_x + wake_x, + wane_x + wayo_x + nn1_x + jya_o + tya_x + nagara2_x + wo_s_x, + ze_x + kke_x + n_si_x + deha_x, + + gotosi_x + saseru_x + zaru_x + zu_x + zunba_x + seru_x + souda_x + youtai_x, + denbun_x + ta_x + tai_x + tagaru_x + taru_x + da1_x + da2_o + daxtu_o, + darou_o + de_o + desi_o + desho_o + desu_o + na2_o + nara_o + nai_x, + nu_x + ne2_x + nn2_x + fuuda_x + besi_x + mai_x + masu_x + masure_x, + mase_x + mitaida_o + you_x + youda_x + rasii_o + rareru_x + reru_x + site_x, + + yougen_x + aru_x + ara_x + ari1_x + ari2_x + ari3_x + are1_x + are2_x, + arou_x + ii_x + itasi_x + itadaku_x + iru_x + eru_x + kakeru_x + kaneru_x, + karazu_x + gatai_x + gatida_x + kudasaru_x + gozai_x + sa1_x + si1_x + siro_x, + jyau_x + jimau_x + sugiru_x + subesi_x + suru_x + sure_x + se_x + seyo_x, + tamau_x + tayu_x + timau_x + dekiru_x + naru_x + nasai_x + nasaru_x + nikui_x, + yasui_x + yoi_x + yaru_x + ttarasii_x}; + +static u_char tokoro[] = { + wo_o + ttatte_x + ttara_x + tte1_o + tte2_x + ppanasi_x + ppoi_x + ue_x, + uti_x + oite_x + okeru_x + ori_x + ka1_o + ka2_x + kai_x + kasira_o, + katagata_x + kadouka_o + kana_o + kane_o + kamo_o + kara1_o + kara2_x + ga1_o, + ga2_x + gatera_x + kiri_x + kuseni_x + kurai_o + gurumi_x + kedo_x + koso_x, + koto_x + sa2_o + sae_o + si2_x + sika_o + sura_o + zutu_x + zo_x, + tame_x + dake_x + dano_x + darake_x + tuite_x + tuki_x + tutu_x + tumori_x, + te1_x + te2_x + teru_x + dearou_x + deru_x + to1_o + to2_x + totte_x, + toiu_o + toori_x + toki_x + tokoro_x + tote_x + tohaie_o + tomo_x + do_x, + doori_x + dokoro_o + dokoroka_o + domo_x + na1_x + naa_x + nagara_x + nazo_o, + nado_o + nari_x + nanka_o + nanzo_o + nante_o + ni1_o + ni2_x + ni3_x, + nite_x + nimo_x + ne1_o + nee_o + no1_o + no2_x + node_x + noni_x, + nomi_o + nominrz_x + ha_o + hazu_x + ba_x + bakari_o + he_o + hou_x, + hoka_x + hodo_x + made_o + mama_x + mo1_x + mo2_o + motte_x + mono_x, + ya1_o + ya2_x + yara_o + yue_x + yo_o + yori_o + wa_x + wake_x, + wane_x + wayo_x + nn1_x + jya_o + tya_x + nagara2_x + wo_s_x, + ze_x + kke_x + n_si_x + deha_x, + + gotosi_x + saseru_x + zaru_x + zu_x + zunba_x + seru_x + souda_x + youtai_x, + denbun_x + ta_x + tai_x + tagaru_x + taru_x + da1_x + da2_o + daxtu_o, + darou_o + de_o + desi_o + desho_o + desu_o + na2_o + nara_o + nai_x, + nu_x + ne2_x + nn2_x + fuuda_x + besi_x + mai_x + masu_x + masure_x, + mase_x + mitaida_o + you_x + youda_x + rasii_o + rareru_x + reru_x + site_x, + + yougen_x + aru_x + ara_x + ari1_x + ari2_x + ari3_x + are1_x + are2_x, + arou_x + ii_x + itasi_x + itadaku_x + iru_x + eru_x + kakeru_x + kaneru_x, + karazu_x + gatai_x + gatida_x + kudasaru_x + gozai_x + sa1_x + si1_x + siro_x, + jyau_x + jimau_x + sugiru_x + subesi_x + suru_x + sure_x + se_x + seyo_x, + tamau_x + tayu_x + timau_x + dekiru_x + naru_x + nasai_x + nasaru_x + nikui_x, + yasui_x + yoi_x + yaru_x + ttarasii_x}; + +static u_char tote[] = { + wo_x + ttatte_x + ttara_x + tte1_x + tte2_x + ppanasi_x + ppoi_x + ue_x, + uti_x + oite_x + okeru_x + ori_x + ka1_x + ka2_x + kai_x + kasira_x, + katagata_x + kadouka_x + kana_x + kane_x + kamo_x + kara1_x + kara2_x + ga1_x, + ga2_x + gatera_x + kiri_x + kuseni_x + kurai_x + gurumi_x + kedo_x + koso_x, + koto_x + sa2_x + sae_x + si2_x + sika_x + sura_x + zutu_x + zo_x, + tame_x + dake_x + dano_x + darake_x + tuite_x + tuki_x + tutu_x + tumori_x, + te1_x + te2_x + teru_x + dearou_x + deru_x + to1_x + to2_x + totte_x, + toiu_x + toori_x + toki_x + tokoro_x + tote_x + tohaie_x + tomo_x + do_x, + doori_x + dokoro_x + dokoroka_x + domo_x + na1_x + naa_x + nagara_x + nazo_x, + nado_x + nari_x + nanka_x + nanzo_x + nante_x + ni1_x + ni2_x + ni3_x, + nite_x + nimo_x + ne1_x + nee_x + no1_x + no2_x + node_x + noni_x, + nomi_x + nominrz_x + ha_x + hazu_x + ba_x + bakari_x + he_x + hou_x, + hoka_x + hodo_x + made_x + mama_x + mo1_x + mo2_x + motte_x + mono_x, + ya1_x + ya2_x + yara_x + yue_x + yo_x + yori_x + wa_x + wake_x, + wane_x + wayo_x + nn1_x + jya_x + tya_x + nagara2_x + wo_s_x, + ze_x + kke_x + n_si_x + deha_x, + + gotosi_x + saseru_x + zaru_x + zu_x + zunba_x + seru_x + souda_x + youtai_x, + denbun_x + ta_x + tai_x + tagaru_x + taru_x + da1_x + da2_x + daxtu_x, + darou_x + de_x + desi_x + desho_x + desu_x + na2_x + nara_x + nai_x, + nu_x + ne2_x + nn2_x + fuuda_x + besi_x + mai_x + masu_x + masure_x, + mase_x + mitaida_x + you_x + youda_x + rasii_x + rareru_x + reru_x + site_x, + + yougen_x + aru_x + ara_x + ari1_x + ari2_x + ari3_x + are1_x + are2_x, + arou_x + ii_x + itasi_x + itadaku_x + iru_x + eru_x + kakeru_x + kaneru_x, + karazu_x + gatai_x + gatida_x + kudasaru_x + gozai_x + sa1_x + si1_x + siro_x, + jyau_x + jimau_x + sugiru_x + subesi_x + suru_x + sure_x + se_x + seyo_x, + tamau_x + tayu_x + timau_x + dekiru_x + naru_x + nasai_x + nasaru_x + nikui_x, + yasui_x + yoi_x + yaru_x + ttarasii_x}; + +static u_char tohaie[] = { + wo_x + ttatte_x + ttara_x + tte1_x + tte2_x + ppanasi_x + ppoi_x + ue_x, + uti_x + oite_x + okeru_x + ori_x + ka1_x + ka2_x + kai_x + kasira_x, + katagata_x + kadouka_x + kana_x + kane_x + kamo_x + kara1_x + kara2_x + ga1_x, + ga2_x + gatera_x + kiri_x + kuseni_x + kurai_x + gurumi_x + kedo_x + koso_x, + koto_x + sa2_x + sae_x + si2_x + sika_x + sura_x + zutu_x + zo_x, + tame_x + dake_x + dano_x + darake_x + tuite_x + tuki_x + tutu_x + tumori_x, + te1_x + te2_x + teru_x + dearou_x + deru_x + to1_x + to2_x + totte_x, + toiu_x + toori_x + toki_x + tokoro_x + tote_x + tohaie_x + tomo_x + do_x, + doori_x + dokoro_x + dokoroka_x + domo_x + na1_x + naa_x + nagara_x + nazo_x, + nado_x + nari_x + nanka_x + nanzo_x + nante_x + ni1_x + ni2_x + ni3_x, + nite_x + nimo_x + ne1_x + nee_x + no1_x + no2_x + node_x + noni_x, + nomi_x + nominrz_x + ha_x + hazu_x + ba_x + bakari_x + he_x + hou_x, + hoka_x + hodo_x + made_x + mama_x + mo1_x + mo2_x + motte_x + mono_x, + ya1_x + ya2_x + yara_x + yue_x + yo_x + yori_x + wa_x + wake_x, + wane_x + wayo_x + nn1_x + jya_x + tya_x + nagara2_x + wo_s_x, + ze_x + kke_x + n_si_x + deha_x, + + gotosi_x + saseru_x + zaru_x + zu_x + zunba_x + seru_x + souda_x + youtai_x, + denbun_x + ta_x + tai_x + tagaru_x + taru_x + da1_x + da2_x + daxtu_x, + darou_x + de_x + desi_x + desho_x + desu_x + na2_x + nara_x + nai_x, + nu_x + ne2_x + nn2_x + fuuda_x + besi_x + mai_x + masu_x + masure_x, + mase_x + mitaida_x + you_x + youda_x + rasii_x + rareru_x + reru_x + site_x, + + yougen_x + aru_x + ara_x + ari1_x + ari2_x + ari3_x + are1_x + are2_x, + arou_x + ii_x + itasi_x + itadaku_x + iru_x + eru_x + kakeru_x + kaneru_x, + karazu_x + gatai_x + gatida_x + kudasaru_x + gozai_x + sa1_x + si1_x + siro_x, + jyau_x + jimau_x + sugiru_x + subesi_x + suru_x + sure_x + se_x + seyo_x, + tamau_x + tayu_x + timau_x + dekiru_x + naru_x + nasai_x + nasaru_x + nikui_x, + yasui_x + yoi_x + yaru_x + ttarasii_x}; + +static u_char tomo[] = { + wo_x + ttatte_x + ttara_x + tte1_x + tte2_x + ppanasi_x + ppoi_x + ue_x, + uti_x + oite_x + okeru_x + ori_x + ka1_x + ka2_x + kai_x + kasira_x, + katagata_x + kadouka_x + kana_x + kane_x + kamo_x + kara1_x + kara2_x + ga1_x, + ga2_x + gatera_x + kiri_x + kuseni_x + kurai_x + gurumi_x + kedo_x + koso_x, + koto_x + sa2_x + sae_x + si2_x + sika_x + sura_x + zutu_x + zo_x, + tame_x + dake_x + dano_x + darake_x + tuite_x + tuki_x + tutu_x + tumori_x, + te1_x + te2_x + teru_x + dearou_x + deru_x + to1_x + to2_x + totte_x, + toiu_x + toori_x + toki_x + tokoro_x + tote_x + tohaie_x + tomo_x + do_x, + doori_x + dokoro_x + dokoroka_x + domo_x + na1_x + naa_x + nagara_x + nazo_x, + nado_x + nari_x + nanka_x + nanzo_x + nante_x + ni1_x + ni2_x + ni3_x, + nite_x + nimo_x + ne1_x + nee_x + no1_x + no2_x + node_x + noni_x, + nomi_x + nominrz_x + ha_x + hazu_x + ba_x + bakari_x + he_x + hou_x, + hoka_x + hodo_x + made_x + mama_x + mo1_x + mo2_x + motte_x + mono_x, + ya1_x + ya2_x + yara_x + yue_x + yo_x + yori_x + wa_x + wake_x, + wane_x + wayo_x + nn1_x + jya_x + tya_x + nagara2_x + wo_s_x, + ze_x + kke_x + n_si_x + deha_x, + + gotosi_x + saseru_x + zaru_x + zu_x + zunba_x + seru_x + souda_x + youtai_x, + denbun_x + ta_x + tai_x + tagaru_x + taru_x + da1_x + da2_x + daxtu_x, + darou_x + de_x + desi_x + desho_x + desu_x + na2_x + nara_x + nai_x, + nu_x + ne2_x + nn2_x + fuuda_x + besi_x + mai_x + masu_x + masure_x, + mase_x + mitaida_x + you_x + youda_x + rasii_x + rareru_x + reru_x + site_x, + + yougen_x + aru_x + ara_x + ari1_x + ari2_x + ari3_x + are1_x + are2_x, + arou_x + ii_x + itasi_x + itadaku_x + iru_x + eru_x + kakeru_x + kaneru_x, + karazu_x + gatai_x + gatida_x + kudasaru_x + gozai_x + sa1_x + si1_x + siro_x, + jyau_x + jimau_x + sugiru_x + subesi_x + suru_x + sure_x + se_x + seyo_x, + tamau_x + tayu_x + timau_x + dekiru_x + naru_x + nasai_x + nasaru_x + nikui_x, + yasui_x + yoi_x + yaru_x + ttarasii_x}; + +static u_char fdo[] = { + wo_x + ttatte_x + ttara_x + tte1_x + tte2_x + ppanasi_x + ppoi_x + ue_x, + uti_x + oite_x + okeru_x + ori_x + ka1_x + ka2_x + kai_x + kasira_x, + katagata_x + kadouka_x + kana_x + kane_x + kamo_x + kara1_x + kara2_x + ga1_x, + ga2_x + gatera_x + kiri_x + kuseni_x + kurai_x + gurumi_x + kedo_x + koso_x, + koto_x + sa2_x + sae_x + si2_x + sika_x + sura_x + zutu_x + zo_x, + tame_x + dake_x + dano_x + darake_x + tuite_x + tuki_x + tutu_x + tumori_x, + te1_x + te2_x + teru_x + dearou_x + deru_x + to1_x + to2_x + totte_x, + toiu_x + toori_x + toki_x + tokoro_x + tote_x + tohaie_x + tomo_x + do_x, + doori_x + dokoro_x + dokoroka_x + domo_x + na1_x + naa_x + nagara_x + nazo_x, + nado_x + nari_x + nanka_x + nanzo_x + nante_x + ni1_x + ni2_x + ni3_x, + nite_x + nimo_x + ne1_o + nee_o + no1_x + no2_x + node_x + noni_x, + nomi_x + nominrz_x + ha_x + hazu_x + ba_x + bakari_x + he_x + hou_x, + hoka_x + hodo_x + made_x + mama_x + mo1_x + mo2_x + motte_x + mono_x, + ya1_x + ya2_x + yara_x + yue_x + yo_x + yori_x + wa_x + wake_x, + wane_x + wayo_x + nn1_x + jya_x + tya_x + nagara2_x + wo_s_x, + ze_x + kke_x + n_si_x + deha_x, + + gotosi_x + saseru_x + zaru_x + zu_x + zunba_x + seru_x + souda_x + youtai_x, + denbun_x + ta_x + tai_x + tagaru_x + taru_x + da1_x + da2_x + daxtu_x, + darou_x + de_x + desi_x + desho_x + desu_x + na2_x + nara_x + nai_x, + nu_x + ne2_x + nn2_x + fuuda_x + besi_x + mai_x + masu_x + masure_x, + mase_x + mitaida_x + you_x + youda_x + rasii_x + rareru_x + reru_x + site_x, + + yougen_x + aru_x + ara_x + ari1_x + ari2_x + ari3_x + are1_x + are2_x, + arou_x + ii_x + itasi_x + itadaku_x + iru_x + eru_x + kakeru_x + kaneru_x, + karazu_x + gatai_x + gatida_x + kudasaru_x + gozai_x + sa1_x + si1_x + siro_x, + jyau_x + jimau_x + sugiru_x + subesi_x + suru_x + sure_x + se_x + seyo_x, + tamau_x + tayu_x + timau_x + dekiru_x + naru_x + nasai_x + nasaru_x + nikui_x, + yasui_x + yoi_x + yaru_x + ttarasii_x}; + +static u_char doori[] = { + wo_o + ttatte_x + ttara_x + tte1_o + tte2_x + ppanasi_x + ppoi_x + ue_x, + uti_x + oite_x + okeru_x + ori_x + ka1_o + ka2_x + kai_x + kasira_o, + katagata_x + kadouka_o + kana_o + kane_o + kamo_o + kara1_o + kara2_x + ga1_o, + ga2_x + gatera_x + kiri_x + kuseni_x + kurai_x + gurumi_x + kedo_x + koso_x, + koto_x + sa2_o + sae_o + si2_x + sika_o + sura_o + zutu_x + zo_x, + tame_x + dake_x + dano_x + darake_x + tuite_x + tuki_x + tutu_x + tumori_x, + te1_x + te2_x + teru_x + dearou_x + deru_x + to1_o + to2_x + totte_x, + toiu_o + toori_x + toki_x + tokoro_x + tote_x + tohaie_o + tomo_x + do_x, + doori_x + dokoro_o + dokoroka_o + domo_x + na1_x + naa_x + nagara_x + nazo_x, + nado_x + nari_x + nanka_x + nanzo_x + nante_o + ni1_o + ni2_x + ni3_x, + nite_x + nimo_x + ne1_o + nee_o + no1_o + no2_x + node_x + noni_x, + nomi_x + nominrz_x + ha_o + hazu_x + ba_x + bakari_x + he_x + hou_x, + hoka_x + hodo_x + made_x + mama_x + mo1_o + mo2_x + motte_x + mono_x, + ya1_o + ya2_x + yara_o + yue_x + yo_o + yori_o + wa_x + wake_x, + wane_x + wayo_x + nn1_x + jya_o + tya_x + nagara2_x + wo_s_x, + ze_x + kke_x + n_si_x + deha_x, + + gotosi_x + saseru_x + zaru_x + zu_x + zunba_x + seru_x + souda_x + youtai_x, + denbun_x + ta_x + tai_x + tagaru_x + taru_x + da1_x + da2_o + daxtu_o, + darou_o + de_o + desi_o + desho_o + desu_o + na2_o + nara_o + nai_x, + nu_x + ne2_x + nn2_x + fuuda_x + besi_x + mai_x + masu_x + masure_x, + mase_x + mitaida_o + you_x + youda_x + rasii_o + rareru_x + reru_x + site_x, + + yougen_x + aru_x + ara_x + ari1_x + ari2_x + ari3_x + are1_x + are2_x, + arou_x + ii_x + itasi_x + itadaku_x + iru_x + eru_x + kakeru_x + kaneru_x, + karazu_x + gatai_x + gatida_x + kudasaru_x + gozai_x + sa1_x + si1_x + siro_x, + jyau_x + jimau_x + sugiru_x + subesi_x + suru_x + sure_x + se_x + seyo_x, + tamau_x + tayu_x + timau_x + dekiru_x + naru_x + nasai_x + nasaru_x + nikui_x, + yasui_x + yoi_x + yaru_x + ttarasii_x}; + +static u_char dokoro[] = { + wo_x + ttatte_x + ttara_x + tte1_x + tte2_x + ppanasi_x + ppoi_x + ue_x, + uti_x + oite_x + okeru_x + ori_x + ka1_x + ka2_x + kai_x + kasira_x, + katagata_x + kadouka_x + kana_x + kane_x + kamo_x + kara1_x + kara2_x + ga1_x, + ga2_x + gatera_x + kiri_x + kuseni_x + kurai_x + gurumi_x + kedo_x + koso_x, + koto_x + sa2_x + sae_x + si2_x + sika_x + sura_x + zutu_x + zo_x, + tame_x + dake_x + dano_x + darake_x + tuite_x + tuki_x + tutu_x + tumori_x, + te1_x + te2_x + teru_x + dearou_x + deru_x + to1_x + to2_x + totte_x, + toiu_x + toori_x + toki_x + tokoro_x + tote_x + tohaie_x + tomo_x + do_x, + doori_x + dokoro_x + dokoroka_x + domo_x + na1_x + naa_x + nagara_x + nazo_x, + nado_x + nari_x + nanka_x + nanzo_x + nante_x + ni1_x + ni2_x + ni3_x, + nite_x + nimo_x + ne1_x + nee_x + no1_o + no2_x + node_x + noni_x, + nomi_x + nominrz_x + ha_x + hazu_x + ba_x + bakari_x + he_x + hou_x, + hoka_x + hodo_x + made_x + mama_x + mo1_x + mo2_x + motte_x + mono_x, + ya1_x + ya2_x + yara_x + yue_x + yo_x + yori_x + wa_x + wake_x, + wane_x + wayo_x + nn1_x + jya_x + tya_x + nagara2_x + wo_s_x, + ze_x + kke_x + n_si_x + deha_x, + + gotosi_x + saseru_x + zaru_x + zu_x + zunba_x + seru_x + souda_x + youtai_x, + denbun_x + ta_x + tai_x + tagaru_x + taru_x + da1_x + da2_x + daxtu_x, + darou_x + de_o + desi_x + desho_x + desu_x + na2_x + nara_x + nai_x, + nu_x + ne2_x + nn2_x + fuuda_x + besi_x + mai_x + masu_x + masure_x, + mase_x + mitaida_x + you_x + youda_x + rasii_x + rareru_x + reru_x + site_x, + + yougen_x + aru_x + ara_x + ari1_x + ari2_x + ari3_x + are1_x + are2_x, + arou_x + ii_x + itasi_x + itadaku_x + iru_x + eru_x + kakeru_x + kaneru_x, + karazu_x + gatai_x + gatida_x + kudasaru_x + gozai_x + sa1_x + si1_x + siro_x, + jyau_x + jimau_x + sugiru_x + subesi_x + suru_x + sure_x + se_x + seyo_x, + tamau_x + tayu_x + timau_x + dekiru_x + naru_x + nasai_x + nasaru_x + nikui_x, + yasui_x + yoi_x + yaru_x + ttarasii_x}; + +static u_char dokoroka[] = { + wo_x + ttatte_x + ttara_x + tte1_x + tte2_x + ppanasi_x + ppoi_x + ue_x, + uti_x + oite_x + okeru_x + ori_x + ka1_x + ka2_x + kai_x + kasira_x, + katagata_x + kadouka_x + kana_x + kane_x + kamo_x + kara1_x + kara2_x + ga1_x, + ga2_x + gatera_x + kiri_x + kuseni_x + kurai_x + gurumi_x + kedo_x + koso_x, + koto_x + sa2_x + sae_x + si2_x + sika_x + sura_x + zutu_x + zo_x, + tame_x + dake_x + dano_x + darake_x + tuite_x + tuki_x + tutu_x + tumori_x, + te1_x + te2_x + teru_x + dearou_x + deru_x + to1_x + to2_x + totte_x, + toiu_x + toori_x + toki_x + tokoro_x + tote_x + tohaie_x + tomo_x + do_x, + doori_x + dokoro_x + dokoroka_x + domo_x + na1_x + naa_x + nagara_x + nazo_x, + nado_x + nari_x + nanka_x + nanzo_x + nante_x + ni1_x + ni2_x + ni3_x, + nite_x + nimo_x + ne1_o + nee_o + no1_x + no2_x + node_x + noni_x, + nomi_x + nominrz_x + ha_x + hazu_x + ba_x + bakari_x + he_x + hou_x, + hoka_x + hodo_x + made_x + mama_x + mo1_x + mo2_x + motte_x + mono_x, + ya1_x + ya2_x + yara_x + yue_x + yo_x + yori_x + wa_x + wake_x, + wane_x + wayo_x + nn1_x + jya_x + tya_x + nagara2_x + wo_s_x, + ze_x + kke_x + n_si_x + deha_x, + + gotosi_x + saseru_x + zaru_x + zu_x + zunba_x + seru_x + souda_x + youtai_x, + denbun_x + ta_x + tai_x + tagaru_x + taru_x + da1_x + da2_x + daxtu_x, + darou_x + de_x + desi_x + desho_x + desu_x + na2_x + nara_x + nai_x, + nu_x + ne2_x + nn2_x + fuuda_x + besi_x + mai_x + masu_x + masure_x, + mase_x + mitaida_x + you_x + youda_x + rasii_x + rareru_x + reru_x + site_x, + + yougen_x + aru_x + ara_x + ari1_x + ari2_x + ari3_x + are1_x + are2_x, + arou_x + ii_x + itasi_x + itadaku_x + iru_x + eru_x + kakeru_x + kaneru_x, + karazu_x + gatai_x + gatida_x + kudasaru_x + gozai_x + sa1_x + si1_x + siro_x, + jyau_x + jimau_x + sugiru_x + subesi_x + suru_x + sure_x + se_x + seyo_x, + tamau_x + tayu_x + timau_x + dekiru_x + naru_x + nasai_x + nasaru_x + nikui_x, + yasui_x + yoi_x + yaru_x + ttarasii_x}; + +static u_char domo[] = { + wo_x + ttatte_x + ttara_x + tte1_x + tte2_x + ppanasi_x + ppoi_x + ue_x, + uti_x + oite_x + okeru_x + ori_x + ka1_x + ka2_x + kai_x + kasira_x, + katagata_x + kadouka_x + kana_x + kane_x + kamo_x + kara1_x + kara2_x + ga1_x, + ga2_x + gatera_x + kiri_x + kuseni_x + kurai_x + gurumi_x + kedo_x + koso_x, + koto_x + sa2_x + sae_x + si2_x + sika_x + sura_x + zutu_x + zo_x, + tame_x + dake_x + dano_x + darake_x + tuite_x + tuki_x + tutu_x + tumori_x, + te1_x + te2_x + teru_x + dearou_x + deru_x + to1_x + to2_x + totte_x, + toiu_x + toori_x + toki_x + tokoro_x + tote_x + tohaie_x + tomo_x + do_x, + doori_x + dokoro_x + dokoroka_x + domo_x + na1_x + naa_x + nagara_x + nazo_x, + nado_x + nari_x + nanka_x + nanzo_x + nante_x + ni1_x + ni2_x + ni3_x, + nite_x + nimo_x + ne1_o + nee_o + no1_x + no2_x + node_x + noni_x, + nomi_x + nominrz_x + ha_x + hazu_x + ba_x + bakari_x + he_x + hou_x, + hoka_x + hodo_x + made_x + mama_x + mo1_x + mo2_x + motte_x + mono_x, + ya1_x + ya2_x + yara_x + yue_x + yo_x + yori_x + wa_x + wake_x, + wane_x + wayo_x + nn1_x + jya_x + tya_x + nagara2_x + wo_s_x, + ze_x + kke_x + n_si_x + deha_x, + + gotosi_x + saseru_x + zaru_x + zu_x + zunba_x + seru_x + souda_x + youtai_x, + denbun_x + ta_x + tai_x + tagaru_x + taru_x + da1_x + da2_x + daxtu_x, + darou_x + de_x + desi_x + desho_x + desu_x + na2_x + nara_x + nai_x, + nu_x + ne2_x + nn2_x + fuuda_x + besi_x + mai_x + masu_x + masure_x, + mase_x + mitaida_x + you_x + youda_x + rasii_x + rareru_x + reru_x + site_x, + + yougen_x + aru_x + ara_x + ari1_x + ari2_x + ari3_x + are1_x + are2_x, + arou_x + ii_x + itasi_x + itadaku_x + iru_x + eru_x + kakeru_x + kaneru_x, + karazu_x + gatai_x + gatida_x + kudasaru_x + gozai_x + sa1_x + si1_x + siro_x, + jyau_x + jimau_x + sugiru_x + subesi_x + suru_x + sure_x + se_x + seyo_x, + tamau_x + tayu_x + timau_x + dekiru_x + naru_x + nasai_x + nasaru_x + nikui_x, + yasui_x + yoi_x + yaru_x + ttarasii_x}; + +static u_char nagara[] = { + wo_x + ttatte_x + ttara_x + tte1_o + tte2_x + ppanasi_x + ppoi_x + ue_x, + uti_x + oite_x + okeru_x + ori_x + ka1_o + ka2_x + kai_x + kasira_o, + katagata_x + kadouka_o + kana_o + kane_o + kamo_o + kara1_x + kara2_x + ga1_x, + ga2_x + gatera_x + kiri_x + kuseni_x + kurai_o + gurumi_x + kedo_x + koso_x, + koto_x + sa2_o + sae_o + si2_x + sika_o + sura_x + zutu_x + zo_x, + tame_x + dake_o + dano_o + darake_x + tuite_x + tuki_x + tutu_x + tumori_x, + te1_x + te2_x + teru_x + dearou_x + deru_x + to1_x + to2_o + totte_x, + toiu_o + toori_x + toki_x + tokoro_x + tote_x + tohaie_o + tomo_x + do_x, + doori_x + dokoro_o + dokoroka_o + domo_x + na1_x + naa_x + nagara_x + nazo_o, + nado_o + nari_x + nanka_o + nanzo_o + nante_o + ni1_o + ni2_x + ni3_x, + nite_x + nimo_x + ne1_o + nee_o + no1_o + no2_x + node_x + noni_x, + nomi_o + nominrz_o + ha_o + hazu_x + ba_x + bakari_o + he_x + hou_x, + hoka_x + hodo_o + made_o + mama_x + mo1_o + mo2_x + motte_x + mono_x, + ya1_o + ya2_x + yara_x + yue_o + yo_o + yori_o + wa_x + wake_x, + wane_o + wayo_x + nn1_x + jya_o + tya_x + nagara2_x + wo_s_x, + ze_x + kke_x + n_si_x + deha_o, + + gotosi_x + saseru_x + zaru_x + zu_x + zunba_x + seru_x + souda_x + youtai_x, + denbun_x + ta_x + tai_x + tagaru_x + taru_x + da1_x + da2_o + daxtu_o, + darou_o + de_o + desi_o + desho_o + desu_o + na2_o + nara_o + nai_x, + nu_x + ne2_x + nn2_x + fuuda_x + besi_x + mai_x + masu_x + masure_x, + mase_x + mitaida_o + you_x + youda_x + rasii_o + rareru_x + reru_x + site_x, + + yougen_x + aru_x + ara_x + ari1_x + ari2_x + ari3_x + are1_x + are2_x, + arou_x + ii_x + itasi_x + itadaku_x + iru_x + eru_x + kakeru_x + kaneru_x, + karazu_x + gatai_x + gatida_x + kudasaru_x + gozai_x + sa1_x + si1_x + siro_x, + jyau_x + jimau_x + sugiru_x + subesi_x + suru_x + sure_x + se_x + seyo_x, + tamau_x + tayu_x + timau_x + dekiru_x + naru_x + nasai_x + nasaru_x + nikui_x, + yasui_x + yoi_x + yaru_x + ttarasii_x}; + +static u_char nagara2[] = { + wo_x + ttatte_x + ttara_x + tte1_o + tte2_x + ppanasi_x + ppoi_x + ue_x, + uti_x + oite_x + okeru_x + ori_x + ka1_o + ka2_x + kai_x + kasira_o, + katagata_x + kadouka_o + kana_o + kane_o + kamo_o + kara1_x + kara2_x + ga1_x, + ga2_x + gatera_x + kiri_x + kuseni_x + kurai_o + gurumi_x + kedo_x + koso_x, + koto_x + sa2_o + sae_o + si2_x + sika_o + sura_x + zutu_x + zo_x, + tame_x + dake_o + dano_o + darake_x + tuite_x + tuki_x + tutu_x + tumori_x, + te1_x + te2_x + teru_x + dearou_x + deru_x + to1_x + to2_o + totte_x, + toiu_o + toori_x + toki_x + tokoro_x + tote_x + tohaie_o + tomo_x + do_x, + doori_x + dokoro_o + dokoroka_o + domo_x + na1_x + naa_x + nagara_x + nazo_o, + nado_o + nari_x + nanka_o + nanzo_o + nante_o + ni1_o + ni2_x + ni3_x, + nite_x + nimo_x + ne1_o + nee_o + no1_o + no2_x + node_x + noni_x, + nomi_o + nominrz_o + ha_o + hazu_x + ba_x + bakari_o + he_x + hou_x, + hoka_x + hodo_o + made_o + mama_x + mo1_o + mo2_x + motte_x + mono_x, + ya1_o + ya2_x + yara_x + yue_o + yo_o + yori_o + wa_x + wake_x, + wane_o + wayo_x + nn1_x + jya_o + tya_x + nagara2_x + wo_s_x, + ze_x + kke_x + n_si_x + deha_o, + + gotosi_x + saseru_x + zaru_x + zu_x + zunba_x + seru_x + souda_x + youtai_x, + denbun_x + ta_x + tai_x + tagaru_x + taru_x + da1_x + da2_o + daxtu_o, + darou_o + de_o + desi_o + desho_o + desu_o + na2_o + nara_o + nai_x, + nu_x + ne2_x + nn2_x + fuuda_x + besi_x + mai_x + masu_x + masure_x, + mase_x + mitaida_o + you_x + youda_x + rasii_o + rareru_x + reru_x + site_x, + + yougen_x + aru_x + ara_x + ari1_x + ari2_x + ari3_x + are1_x + are2_x, + arou_x + ii_x + itasi_x + itadaku_x + iru_x + eru_x + kakeru_x + kaneru_x, + karazu_x + gatai_x + gatida_x + kudasaru_x + gozai_x + sa1_x + si1_x + siro_x, + jyau_x + jimau_x + sugiru_x + subesi_x + suru_x + sure_x + se_x + seyo_x, + tamau_x + tayu_x + timau_x + dekiru_x + naru_x + nasai_x + nasaru_x + nikui_x, + yasui_x + yoi_x + yaru_x + ttarasii_x}; + +static u_char nazo[] = { + wo_o + ttatte_x + ttara_x + tte1_o + tte2_x + ppanasi_x + ppoi_x + ue_x, + uti_x + oite_x + okeru_x + ori_x + ka1_x + ka2_x + kai_x + kasira_x, + katagata_x + kadouka_x + kana_x + kane_x + kamo_x + kara1_o + kara2_x + ga1_o, + ga2_x + gatera_x + kiri_x + kuseni_x + kurai_o + gurumi_x + kedo_x + koso_x, + koto_x + sa2_o + sae_o + si2_x + sika_o + sura_x + zutu_x + zo_x, + tame_x + dake_x + dano_x + darake_x + tuite_x + tuki_x + tutu_x + tumori_x, + te1_x + te2_x + teru_x + dearou_x + deru_x + to1_o + to2_x + totte_x, + toiu_o + toori_x + toki_x + tokoro_x + tote_x + tohaie_o + tomo_x + do_x, + doori_x + dokoro_x + dokoroka_x + domo_x + na1_x + naa_x + nagara_x + nazo_x, + nado_x + nari_x + nanka_x + nanzo_x + nante_x + ni1_o + ni2_x + ni3_x, + nite_x + nimo_x + ne1_o + nee_o + no1_o + no2_x + node_x + noni_x, + nomi_x + nominrz_x + ha_o + hazu_x + ba_x + bakari_x + he_o + hou_x, + hoka_x + hodo_x + made_o + mama_x + mo1_o + mo2_x + motte_x + mono_x, + ya1_x + ya2_x + yara_x + yue_x + yo_x + yori_x + wa_x + wake_x, + wane_o + wayo_x + nn1_x + jya_x + tya_x + nagara2_x + wo_s_x, + ze_x + kke_x + n_si_x + deha_x, + + gotosi_x + saseru_x + zaru_x + zu_x + zunba_x + seru_x + souda_x + youtai_x, + denbun_x + ta_x + tai_x + tagaru_x + taru_x + da1_x + da2_x + daxtu_x, + darou_x + de_o + desi_x + desho_x + desu_x + na2_x + nara_x + nai_x, + nu_x + ne2_x + nn2_x + fuuda_x + besi_x + mai_x + masu_x + masure_x, + mase_x + mitaida_x + you_x + youda_x + rasii_x + rareru_x + reru_x + site_x, + + yougen_x + aru_x + ara_x + ari1_x + ari2_x + ari3_x + are1_x + are2_x, + arou_x + ii_x + itasi_x + itadaku_x + iru_x + eru_x + kakeru_x + kaneru_x, + karazu_x + gatai_x + gatida_x + kudasaru_x + gozai_x + sa1_x + si1_x + siro_x, + jyau_x + jimau_x + sugiru_x + subesi_x + suru_x + sure_x + se_x + seyo_x, + tamau_x + tayu_x + timau_x + dekiru_x + naru_x + nasai_x + nasaru_x + nikui_x, + yasui_x + yoi_x + yaru_x + ttarasii_x}; + +static u_char nado[] = { + wo_o + ttatte_x + ttara_o + tte1_o + tte2_x + ppanasi_x + ppoi_x + ue_x, + uti_x + oite_x + okeru_x + ori_x + ka1_o + ka2_x + kai_x + kasira_o, + katagata_x + kadouka_o + kana_o + kane_o + kamo_o + kara1_o + kara2_x + ga1_o, + ga2_x + gatera_x + kiri_x + kuseni_x + kurai_o + gurumi_x + kedo_x + koso_o, + koto_x + sa2_o + sae_o + si2_x + sika_o + sura_o + zutu_x + zo_x, + tame_x + dake_o + dano_x + darake_x + tuite_x + tuki_x + tutu_x + tumori_x, + te1_x + te2_x + teru_x + dearou_x + deru_x + to1_o + to2_x + totte_x, + toiu_o + toori_x + toki_x + tokoro_x + tote_x + tohaie_o + tomo_x + do_x, + doori_x + dokoro_x + dokoroka_x + domo_x + na1_x + naa_x + nagara_x + nazo_x, + nado_x + nari_x + nanka_x + nanzo_x + nante_x + ni1_o + ni2_x + ni3_x, + nite_x + nimo_x + ne1_o + nee_o + no1_o + no2_x + node_x + noni_x, + nomi_x + nominrz_x + ha_o + hazu_x + ba_x + bakari_o + he_o + hou_x, + hoka_x + hodo_x + made_o + mama_x + mo1_o + mo2_x + motte_x + mono_x, + ya1_o + ya2_x + yara_o + yue_x + yo_o + yori_x + wa_x + wake_x, + wane_o + wayo_x + nn1_x + jya_o + tya_x + nagara2_x + wo_s_x, + ze_x + kke_x + n_si_x + deha_x, + + gotosi_x + saseru_x + zaru_x + zu_x + zunba_x + seru_x + souda_x + youtai_x, + denbun_x + ta_x + tai_x + tagaru_x + taru_x + da1_x + da2_o + daxtu_o, + darou_o + de_o + desi_o + desho_o + desu_o + na2_o + nara_o + nai_x, + nu_x + ne2_x + nn2_x + fuuda_x + besi_x + mai_x + masu_x + masure_x, + mase_x + mitaida_x + you_x + youda_x + rasii_o + rareru_x + reru_x + site_x, + + yougen_x + aru_x + ara_x + ari1_x + ari2_x + ari3_x + are1_x + are2_x, + arou_x + ii_x + itasi_x + itadaku_x + iru_x + eru_x + kakeru_x + kaneru_x, + karazu_x + gatai_x + gatida_x + kudasaru_x + gozai_x + sa1_x + si1_x + siro_x, + jyau_x + jimau_x + sugiru_x + subesi_x + suru_x + sure_x + se_x + seyo_x, + tamau_x + tayu_x + timau_x + dekiru_x + naru_x + nasai_x + nasaru_x + nikui_x, + yasui_x + yoi_x + yaru_x + ttarasii_x}; + +static u_char nari[] = { + wo_o + ttatte_x + ttara_x + tte1_x + tte2_x + ppanasi_x + ppoi_x + ue_x, + uti_x + oite_x + okeru_x + ori_x + ka1_x + ka2_x + kai_x + kasira_x, + katagata_x + kadouka_x + kana_x + kane_x + kamo_x + kara1_o + kara2_x + ga1_o, + ga2_x + gatera_x + kiri_x + kuseni_x + kurai_x + gurumi_x + kedo_x + koso_x, + koto_x + sa2_x + sae_o + si2_x + sika_o + sura_x + zutu_x + zo_x, + tame_x + dake_o + dano_o + darake_x + tuite_x + tuki_x + tutu_x + tumori_x, + te1_x + te2_x + teru_x + dearou_x + deru_x + to1_o + to2_x + totte_x, + toiu_x + toori_x + toki_x + tokoro_x + tote_x + tohaie_x + tomo_x + do_x, + doori_x + dokoro_x + dokoroka_x + domo_x + na1_x + naa_x + nagara_x + nazo_x, + nado_x + nari_x + nanka_x + nanzo_x + nante_x + ni1_o + ni2_x + ni3_x, + nite_x + nimo_x + ne1_x + nee_x + no1_o + no2_x + node_x + noni_x, + nomi_x + nominrz_x + ha_x + hazu_x + ba_x + bakari_x + he_o + hou_x, + hoka_x + hodo_x + made_x + mama_x + mo1_x + mo2_x + motte_x + mono_x, + ya1_x + ya2_x + yara_x + yue_x + yo_x + yori_x + wa_x + wake_x, + wane_x + wayo_x + nn1_x + jya_x + tya_x + nagara2_x + wo_s_x, + ze_x + kke_x + n_si_x + deha_x, + + gotosi_x + saseru_x + zaru_x + zu_x + zunba_x + seru_x + souda_x + youtai_x, + denbun_x + ta_x + tai_x + tagaru_x + taru_x + da1_x + da2_x + daxtu_x, + darou_x + de_o + desi_x + desho_x + desu_x + na2_x + nara_x + nai_x, + nu_x + ne2_x + nn2_x + fuuda_x + besi_x + mai_x + masu_x + masure_x, + mase_x + mitaida_x + you_x + youda_x + rasii_x + rareru_x + reru_x + site_x, + + yougen_x + aru_x + ara_x + ari1_x + ari2_x + ari3_x + are1_x + are2_x, + arou_x + ii_x + itasi_x + itadaku_x + iru_x + eru_x + kakeru_x + kaneru_x, + karazu_x + gatai_x + gatida_x + kudasaru_x + gozai_x + sa1_x + si1_x + siro_x, + jyau_x + jimau_x + sugiru_x + subesi_x + suru_x + sure_x + se_x + seyo_x, + tamau_x + tayu_x + timau_x + dekiru_x + naru_x + nasai_x + nasaru_x + nikui_x, + yasui_x + yoi_x + yaru_x + ttarasii_x}; + +static u_char nanka[] = { + wo_o + ttatte_x + ttara_x + tte1_x + tte2_x + ppanasi_x + ppoi_x + ue_x, + uti_x + oite_x + okeru_x + ori_x + ka1_x + ka2_x + kai_x + kasira_x, + katagata_x + kadouka_x + kana_x + kane_x + kamo_x + kara1_o + kara2_x + ga1_o, + ga2_x + gatera_x + kiri_x + kuseni_x + kurai_x + gurumi_x + kedo_x + koso_x, + koto_x + sa2_o + sae_o + si2_x + sika_o + sura_x + zutu_x + zo_x, + tame_x + dake_o + dano_x + darake_x + tuite_x + tuki_x + tutu_x + tumori_x, + te1_x + te2_x + teru_x + dearou_x + deru_x + to1_o + to2_x + totte_x, + toiu_x + toori_x + toki_x + tokoro_x + tote_x + tohaie_x + tomo_x + do_x, + doori_x + dokoro_x + dokoroka_x + domo_x + na1_o + naa_x + nagara_x + nazo_x, + nado_x + nari_x + nanka_x + nanzo_x + nante_x + ni1_x + ni2_x + ni3_o, + nite_x + nimo_x + ne1_o + nee_o + no1_o + no2_x + node_x + noni_x, + nomi_x + nominrz_x + ha_o + hazu_x + ba_x + bakari_x + he_o + hou_x, + hoka_x + hodo_x + made_x + mama_x + mo1_o + mo2_x + motte_x + mono_x, + ya1_o + ya2_x + yara_x + yue_x + yo_x + yori_x + wa_x + wake_x, + wane_x + wayo_x + nn1_x + jya_x + tya_x + nagara2_x + wo_s_x, + ze_x + kke_x + n_si_x + deha_x, + + gotosi_x + saseru_x + zaru_x + zu_x + zunba_x + seru_x + souda_x + youtai_x, + denbun_x + ta_x + tai_x + tagaru_x + taru_x + da1_x + da2_o + daxtu_x, + darou_x + de_o + desi_x + desho_x + desu_x + na2_x + nara_x + nai_o, + nu_x + ne2_x + nn2_x + fuuda_x + besi_x + mai_x + masu_x + masure_x, + mase_x + mitaida_x + you_x + youda_x + rasii_x + rareru_x + reru_x + site_x, + + yougen_x + aru_x + ara_x + ari1_x + ari2_x + ari3_x + are1_x + are2_x, + arou_x + ii_x + itasi_x + itadaku_x + iru_x + eru_x + kakeru_x + kaneru_x, + karazu_x + gatai_x + gatida_x + kudasaru_x + gozai_x + sa1_x + si1_x + siro_x, + jyau_x + jimau_x + sugiru_x + subesi_x + suru_x + sure_x + se_x + seyo_x, + tamau_x + tayu_x + timau_x + dekiru_x + naru_x + nasai_x + nasaru_x + nikui_x, + yasui_x + yoi_x + yaru_x + ttarasii_x}; + +static u_char nanzo[] = { + wo_o + ttatte_x + ttara_x + tte1_x + tte2_x + ppanasi_x + ppoi_x + ue_x, + uti_x + oite_x + okeru_x + ori_x + ka1_x + ka2_x + kai_x + kasira_x, + katagata_x + kadouka_x + kana_x + kane_x + kamo_x + kara1_o + kara2_x + ga1_o, + ga2_x + gatera_x + kiri_x + kuseni_x + kurai_x + gurumi_x + kedo_x + koso_x, + koto_x + sa2_x + sae_x + si2_x + sika_x + sura_x + zutu_x + zo_x, + tame_x + dake_x + dano_x + darake_x + tuite_x + tuki_x + tutu_x + tumori_x, + te1_x + te2_x + teru_x + dearou_x + deru_x + to1_o + to2_x + totte_x, + toiu_x + toori_x + toki_x + tokoro_x + tote_x + tohaie_x + tomo_x + do_x, + doori_x + dokoro_x + dokoroka_x + domo_x + na1_x + naa_x + nagara_x + nazo_x, + nado_x + nari_x + nanka_x + nanzo_x + nante_x + ni1_o + ni2_x + ni3_x, + nite_x + nimo_x + ne1_x + nee_x + no1_o + no2_x + node_x + noni_x, + nomi_x + nominrz_x + ha_o + hazu_x + ba_x + bakari_x + he_o + hou_x, + hoka_x + hodo_x + made_x + mama_x + mo1_x + mo2_x + motte_x + mono_x, + ya1_x + ya2_x + yara_x + yue_x + yo_x + yori_x + wa_x + wake_x, + wane_x + wayo_x + nn1_x + jya_x + tya_x + nagara2_x + wo_s_x, + ze_x + kke_x + n_si_x + deha_x, + + gotosi_x + saseru_x + zaru_x + zu_x + zunba_x + seru_x + souda_x + youtai_x, + denbun_x + ta_x + tai_x + tagaru_x + taru_x + da1_x + da2_x + daxtu_x, + darou_x + de_o + desi_x + desho_x + desu_x + na2_x + nara_x + nai_o, + nu_x + ne2_x + nn2_x + fuuda_x + besi_x + mai_x + masu_x + masure_x, + mase_x + mitaida_x + you_x + youda_x + rasii_x + rareru_x + reru_x + site_x, + + yougen_x + aru_x + ara_x + ari1_x + ari2_x + ari3_x + are1_x + are2_x, + arou_x + ii_x + itasi_x + itadaku_x + iru_x + eru_x + kakeru_x + kaneru_x, + karazu_x + gatai_x + gatida_x + kudasaru_x + gozai_x + sa1_x + si1_x + siro_x, + jyau_x + jimau_x + sugiru_x + subesi_x + suru_x + sure_x + se_x + seyo_x, + tamau_x + tayu_x + timau_x + dekiru_x + naru_x + nasai_x + nasaru_x + nikui_x, + yasui_x + yoi_x + yaru_x + ttarasii_x}; + +static u_char nante[] = { + wo_x + ttatte_x + ttara_x + tte1_x + tte2_x + ppanasi_x + ppoi_x + ue_x, + uti_x + oite_x + okeru_x + ori_x + ka1_x + ka2_x + kai_x + kasira_x, + katagata_x + kadouka_x + kana_x + kane_x + kamo_x + kara1_x + kara2_x + ga1_x, + ga2_x + gatera_x + kiri_x + kuseni_x + kurai_x + gurumi_x + kedo_x + koso_x, + koto_x + sa2_o + sae_x + si2_x + sika_x + sura_x + zutu_x + zo_x, + tame_x + dake_x + dano_x + darake_x + tuite_x + tuki_x + tutu_x + tumori_x, + te1_x + te2_x + teru_x + dearou_x + deru_x + to1_x + to2_x + totte_x, + toiu_x + toori_x + toki_x + tokoro_x + tote_x + tohaie_x + tomo_x + do_x, + doori_x + dokoro_x + dokoroka_x + domo_x + na1_o + naa_o + nagara_x + nazo_x, + nado_x + nari_x + nanka_x + nanzo_x + nante_x + ni1_x + ni2_x + ni3_x, + nite_x + nimo_x + ne1_o + nee_o + no1_x + no2_x + node_x + noni_x, + nomi_x + nominrz_x + ha_x + hazu_x + ba_x + bakari_x + he_x + hou_x, + hoka_x + hodo_x + made_x + mama_x + mo1_x + mo2_x + motte_x + mono_x, + ya1_x + ya2_x + yara_x + yue_x + yo_o + yori_x + wa_x + wake_x, + wane_x + wayo_x + nn1_x + jya_x + tya_x + nagara2_x + wo_s_x, + ze_x + kke_x + n_si_x + deha_x, + + gotosi_x + saseru_x + zaru_x + zu_x + zunba_x + seru_x + souda_x + youtai_x, + denbun_x + ta_x + tai_x + tagaru_x + taru_x + da1_x + da2_x + daxtu_x, + darou_x + de_x + desi_x + desho_x + desu_x + na2_x + nara_x + nai_o, + nu_x + ne2_x + nn2_x + fuuda_x + besi_x + mai_x + masu_x + masure_x, + mase_x + mitaida_x + you_x + youda_x + rasii_x + rareru_x + reru_x + site_x, + + yougen_x + aru_x + ara_x + ari1_x + ari2_x + ari3_x + are1_x + are2_x, + arou_x + ii_x + itasi_x + itadaku_x + iru_x + eru_x + kakeru_x + kaneru_x, + karazu_x + gatai_x + gatida_x + kudasaru_x + gozai_x + sa1_x + si1_x + siro_x, + jyau_x + jimau_x + sugiru_x + subesi_x + suru_x + sure_x + se_x + seyo_x, + tamau_x + tayu_x + timau_x + dekiru_x + naru_x + nasai_x + nasaru_x + nikui_x, + yasui_x + yoi_x + yaru_x + ttarasii_x}; + +static u_char ni1[] = { + wo_x + ttatte_x + ttara_x + tte1_x + tte2_x + ppanasi_x + ppoi_x + ue_x, + uti_x + oite_o + okeru_o + ori_x + ka1_x + ka2_x + kai_x + kasira_o, + katagata_x + kadouka_o + kana_o + kane_o + kamo_o + kara1_x + kara2_x + ga1_x, + ga2_x + gatera_x + kiri_x + kuseni_x + kurai_o + gurumi_x + kedo_x + koso_o, + koto_x + sa2_o + sae_o + si2_x + sika_o + sura_o + zutu_x + zo_x, + tame_x + dake_o + dano_o + darake_x + tuite_o + tuki_o + tutu_x + tumori_x, + te1_x + te2_x + teru_x + dearou_x + deru_x + to1_o + to2_x + totte_o, + toiu_x + toori_x + toki_x + tokoro_x + tote_x + tohaie_x + tomo_x + do_x, + doori_x + dokoro_x + dokoroka_x + domo_x + na1_o + naa_o + nagara_x + nazo_o, + nado_o + nari_o + nanka_o + nanzo_o + nante_o + ni1_x + ni2_x + ni3_x, + nite_x + nimo_x + ne1_o + nee_o + no1_x + no2_x + node_x + noni_x, + nomi_o + nominrz_o + ha_o + hazu_x + ba_x + bakari_o + he_x + hou_x, + hoka_x + hodo_x + made_o + mama_x + mo1_x + mo2_o + motte_x + mono_x, + ya1_x + ya2_x + yara_o + yue_x + yo_o + yori_x + wa_x + wake_x, + wane_o + wayo_x + nn1_x + jya_x + tya_x + nagara2_x + wo_s_x, + ze_x + kke_x + n_si_o + deha_o, + + gotosi_x + saseru_x + zaru_x + zu_x + zunba_x + seru_x + souda_x + youtai_x, + denbun_x + ta_x + tai_x + tagaru_x + taru_x + da1_x + da2_x + daxtu_x, + darou_x + de_x + desi_x + desho_x + desu_x + na2_x + nara_o + nai_o, + nu_x + ne2_x + nn2_x + fuuda_x + besi_x + mai_x + masu_x + masure_x, + mase_x + mitaida_x + you_x + youda_x + rasii_x + rareru_x + reru_x + site_x, + + yougen_x + aru_o + ara_o + ari1_x + ari2_o + ari3_x + are1_x + are2_o, + arou_o + ii_x + itasi_x + itadaku_x + iru_o + eru_x + kakeru_x + kaneru_x, + karazu_x + gatai_x + gatida_x + kudasaru_x + gozai_x + sa1_o + si1_x + siro_o, + jyau_x + jimau_x + sugiru_x + subesi_o + suru_o + sure_o + se_o + seyo_o, + tamau_x + tayu_x + timau_x + dekiru_x + naru_o + nasai_x + nasaru_x + nikui_x, + yasui_x + yoi_x + yaru_o}; + +static u_char ni2[] = { + wo_x + ttatte_x + ttara_x + tte1_x + tte2_x + ppanasi_x + ppoi_x + ue_x, + uti_x + oite_x + okeru_x + ori_x + ka1_x + ka2_x + kai_x + kasira_x, + katagata_x + kadouka_x + kana_x + kane_x + kamo_x + kara1_x + kara2_x + ga1_x, + ga2_x + gatera_x + kiri_x + kuseni_x + kurai_x + gurumi_x + kedo_x + koso_x, + koto_x + sa2_x + sae_o + si2_x + sika_o + sura_o + zutu_x + zo_x, + tame_x + dake_o + dano_x + darake_x + tuite_x + tuki_x + tutu_x + tumori_x, + te1_x + te2_x + teru_x + dearou_x + deru_x + to1_x + to2_o + totte_x, + toiu_x + toori_x + toki_x + tokoro_x + tote_x + tohaie_x + tomo_x + do_x, + doori_x + dokoro_x + dokoroka_x + domo_x + na1_x + naa_x + nagara_x + nazo_o, + nado_o + nari_x + nanka_o + nanzo_o + nante_o + ni1_x + ni2_x + ni3_x, + nite_x + nimo_x + ne1_x + nee_x + no1_x + no2_x + node_x + noni_x, + nomi_x + nominrz_x + ha_o + hazu_x + ba_x + bakari_o + he_x + hou_x, + hoka_x + hodo_x + made_o + mama_x + mo1_o + mo2_x + motte_x + mono_x, + ya1_x + ya2_x + yara_o + yue_x + yo_x + yori_x + wa_x + wake_x, + wane_x + wayo_x + nn1_x + jya_x + tya_x + nagara2_x + wo_s_x, + ze_x + kke_x + n_si_x + deha_o, + + gotosi_x + saseru_x + zaru_x + zu_x + zunba_x + seru_x + souda_x + youtai_x, + denbun_x + ta_x + tai_x + tagaru_x + taru_x + da1_x + da2_x + daxtu_x, + darou_x + de_x + desi_x + desho_x + desu_x + na2_x + nara_x + nai_x, + nu_x + ne2_x + nn2_x + fuuda_x + besi_x + mai_x + masu_x + masure_x, + mase_x + mitaida_x + you_x + youda_x + rasii_x + rareru_x + reru_x + site_x, + + yougen_x + aru_x + ara_x + ari1_x + ari2_x + ari3_x + are1_x + are2_x, + arou_x + ii_x + itasi_x + itadaku_x + iru_x + eru_x + kakeru_x + kaneru_x, + karazu_x + gatai_x + gatida_x + kudasaru_x + gozai_x + sa1_x + si1_x + siro_x, + jyau_x + jimau_x + sugiru_x + subesi_x + suru_x + sure_x + se_x + seyo_x, + tamau_x + tayu_x + timau_x + dekiru_x + naru_x + nasai_x + nasaru_x + nikui_x, + yasui_x + yoi_x + yaru_x + ttarasii_x}; + +static u_char ni3[] = { + wo_x + ttatte_x + ttara_x + tte1_x + tte2_x + ppanasi_x + ppoi_x + ue_x, + uti_x + oite_x + okeru_x + ori_x + ka1_x + ka2_x + kai_x + kasira_x, + katagata_x + kadouka_x + kana_x + kane_x + kamo_x + kara1_x + kara2_x + ga1_x, + ga2_x + gatera_x + kiri_x + kuseni_x + kurai_x + gurumi_x + kedo_x + koso_x, + koto_x + sa2_x + sae_x + si2_x + sika_x + sura_x + zutu_x + zo_x, + tame_x + dake_x + dano_x + darake_x + tuite_x + tuki_x + tutu_x + tumori_x, + te1_x + te2_x + teru_x + dearou_x + deru_x + to1_x + to2_x + totte_x, + toiu_x + toori_x + toki_x + tokoro_x + tote_x + tohaie_x + tomo_x + do_x, + doori_x + dokoro_x + dokoroka_x + domo_x + na1_x + naa_x + nagara_x + nazo_x, + nado_x + nari_x + nanka_x + nanzo_x + nante_x + ni1_x + ni2_x + ni3_x, + nite_x + nimo_x + ne1_x + nee_x + no1_x + no2_x + node_x + noni_x, + nomi_x + nominrz_x + ha_o + hazu_x + ba_x + bakari_x + he_x + hou_x, + hoka_x + hodo_x + made_x + mama_x + mo1_o + mo2_x + motte_x + mono_x, + ya1_x + ya2_x + yara_x + yue_x + yo_x + yori_x + wa_x + wake_x, + wane_x + wayo_x + nn1_x + jya_x + tya_x + nagara2_x + wo_s_x, + ze_x + kke_x + n_si_x + deha_x, + + gotosi_x + saseru_x + zaru_x + zu_x + zunba_x + seru_x + souda_x + youtai_x, + denbun_x + ta_x + tai_x + tagaru_x + taru_x + da1_x + da2_x + daxtu_x, + darou_x + de_x + desi_x + desho_x + desu_x + na2_x + nara_x + nai_x, + nu_x + ne2_x + nn2_x + fuuda_x + besi_x + mai_x + masu_x + masure_x, + mase_x + mitaida_x + you_x + youda_x + rasii_x + rareru_x + reru_x + site_o, + + yougen_x + aru_x + ara_x + ari1_x + ari2_x + ari3_x + are1_x + are2_x, + arou_x + ii_x + itasi_x + itadaku_x + iru_x + eru_x + kakeru_x + kaneru_x, + karazu_x + gatai_x + gatida_x + kudasaru_x + gozai_x + sa1_x + si1_x + siro_x, + jyau_x + jimau_x + sugiru_x + subesi_x + suru_x + sure_x + se_x + seyo_x, + tamau_x + tayu_x + timau_x + dekiru_x + naru_x + nasai_x + nasaru_x + nikui_x, + yasui_x + yoi_x + yaru_x + ttarasii_x}; + +static u_char nite[] = { + wo_x + ttatte_x + ttara_x + tte1_x + tte2_x + ppanasi_x + ppoi_x + ue_x, + uti_x + oite_x + okeru_x + ori_x + ka1_x + ka2_x + kai_x + kasira_x, + katagata_x + kadouka_x + kana_x + kane_x + kamo_x + kara1_x + kara2_x + ga1_x, + ga2_x + gatera_x + kiri_x + kuseni_x + kurai_x + gurumi_x + kedo_x + koso_x, + koto_x + sa2_x + sae_x + si2_x + sika_x + sura_x + zutu_x + zo_x, + tame_x + dake_x + dano_x + darake_x + tuite_x + tuki_x + tutu_x + tumori_x, + te1_x + te2_x + teru_x + dearou_x + deru_x + to1_x + to2_x + totte_x, + toiu_x + toori_x + toki_x + tokoro_x + tote_x + tohaie_x + tomo_x + do_x, + doori_x + dokoro_x + dokoroka_x + domo_x + na1_x + naa_x + nagara_x + nazo_x, + nado_x + nari_x + nanka_x + nanzo_x + nante_x + ni1_x + ni2_x + ni3_x, + nite_x + nimo_x + ne1_x + nee_x + no1_x + no2_x + node_x + noni_x, + nomi_x + nominrz_x + ha_x + hazu_x + ba_x + bakari_x + he_x + hou_x, + hoka_x + hodo_x + made_x + mama_x + mo1_x + mo2_x + motte_x + mono_x, + ya1_x + ya2_x + yara_x + yue_x + yo_x + yori_x + wa_x + wake_x, + wane_x + wayo_x + nn1_x + jya_x + tya_x + nagara2_x + wo_s_x, + ze_x + kke_x + n_si_x + deha_x, + + gotosi_x + saseru_x + zaru_x + zu_x + zunba_x + seru_x + souda_x + youtai_x, + denbun_x + ta_x + tai_x + tagaru_x + taru_x + da1_x + da2_x + daxtu_x, + darou_x + de_x + desi_x + desho_x + desu_x + na2_x + nara_x + nai_x, + nu_x + ne2_x + nn2_x + fuuda_x + besi_x + mai_x + masu_x + masure_x, + mase_x + mitaida_x + you_x + youda_x + rasii_x + rareru_x + reru_x + site_x, + + yougen_x + aru_x + ara_x + ari1_x + ari2_x + ari3_x + are1_x + are2_x, + arou_x + ii_x + itasi_x + itadaku_x + iru_x + eru_x + kakeru_x + kaneru_x, + karazu_x + gatai_x + gatida_x + kudasaru_x + gozai_x + sa1_x + si1_x + siro_x, + jyau_x + jimau_x + sugiru_x + subesi_x + suru_x + sure_x + se_x + seyo_x, + tamau_x + tayu_x + timau_x + dekiru_x + naru_x + nasai_x + nasaru_x + nikui_x, + yasui_x + yoi_x + yaru_x + ttarasii_x}; + +static u_char nimo[] = { + wo_x + ttatte_x + ttara_x + tte1_x + tte2_x + ppanasi_x + ppoi_x + ue_x, + uti_x + oite_x + okeru_x + ori_x + ka1_x + ka2_x + kai_x + kasira_x, + katagata_x + kadouka_x + kana_x + kane_x + kamo_x + kara1_x + kara2_x + ga1_x, + ga2_x + gatera_x + kiri_x + kuseni_x + kurai_x + gurumi_x + kedo_x + koso_x, + koto_x + sa2_o + sae_x + si2_x + sika_x + sura_x + zutu_x + zo_x, + tame_x + dake_x + dano_x + darake_x + tuite_x + tuki_x + tutu_x + tumori_x, + te1_x + te2_x + teru_x + dearou_x + deru_x + to1_x + to2_x + totte_x, + toiu_x + toori_x + toki_x + tokoro_x + tote_x + tohaie_x + tomo_x + do_x, + doori_x + dokoro_x + dokoroka_x + domo_x + na1_x + naa_x + nagara_x + nazo_x, + nado_x + nari_x + nanka_x + nanzo_x + nante_x + ni1_x + ni2_x + ni3_x, + nite_x + nimo_x + ne1_o + nee_o + no1_x + no2_x + node_x + noni_x, + nomi_x + nominrz_x + ha_x + hazu_x + ba_x + bakari_x + he_x + hou_x, + hoka_x + hodo_x + made_x + mama_x + mo1_x + mo2_x + motte_x + mono_x, + ya1_x + ya2_x + yara_x + yue_x + yo_x + yori_x + wa_x + wake_x, + wane_x + wayo_x + nn1_x + jya_x + tya_x + nagara2_x + wo_s_x, + ze_x + kke_x + n_si_x + deha_x, + + gotosi_x + saseru_x + zaru_x + zu_x + zunba_x + seru_x + souda_x + youtai_x, + denbun_x + ta_x + tai_x + tagaru_x + taru_x + da1_x + da2_x + daxtu_x, + darou_x + de_x + desi_x + desho_x + desu_x + na2_x + nara_x + nai_x, + nu_x + ne2_x + nn2_x + fuuda_x + besi_x + mai_x + masu_x + masure_x, + mase_x + mitaida_x + you_x + youda_x + rasii_x + rareru_x + reru_x + site_x, + + yougen_x + aru_x + ara_x + ari1_x + ari2_x + ari3_x + are1_x + are2_x, + arou_x + ii_x + itasi_x + itadaku_x + iru_x + eru_x + kakeru_x + kaneru_x, + karazu_x + gatai_x + gatida_x + kudasaru_x + gozai_x + sa1_x + si1_x + siro_x, + jyau_x + jimau_x + sugiru_x + subesi_x + suru_x + sure_x + se_x + seyo_x, + tamau_x + tayu_x + timau_x + dekiru_x + naru_x + nasai_x + nasaru_x + nikui_x, + yasui_x + yoi_x + yaru_x + ttarasii_x}; + +static u_char no1[] = { + wo_o + ttatte_x + ttara_x + tte1_x + tte2_x + ppanasi_x + ppoi_x + ue_x, + uti_o + oite_x + okeru_x + ori_x + ka1_o + ka2_x + kai_x + kasira_o, + katagata_x + kadouka_o + kana_o + kane_o + kamo_o + kara1_o + kara2_x + ga1_o, + ga2_x + gatera_x + kiri_x + kuseni_o + kurai_o + gurumi_x + kedo_x + koso_o, + koto_o + sa2_o + sae_o + si2_x + sika_o + sura_o + zutu_x + zo_x, + tame_o + dake_o + dano_o + darake_x + tuite_x + tuki_x + tutu_x + tumori_x, + te1_x + te2_x + teru_x + dearou_x + deru_x + to1_o + to2_x + totte_x, + toiu_o + toori_x + toki_o + tokoro_o + tote_x + tohaie_o + tomo_x + do_x, + doori_x + dokoro_o + dokoroka_o + domo_x + na1_x + naa_x + nagara_x + nazo_o, + nado_o + nari_o + nanka_o + nanzo_o + nante_o + ni1_o + ni2_x + ni3_x, + nite_x + nimo_x + ne1_o + nee_o + no1_x + no2_x + node_x + noni_x, + nomi_o + nominrz_o + ha_o + hazu_x + ba_x + bakari_o + he_o + hou_x, + hoka_x + hodo_o + made_o + mama_o + mo1_o + mo2_x + motte_x + mono_o, + ya1_o + ya2_x + yara_o + yue_x + yo_o + yori_o + wa_x + wake_x, + wane_o + wayo_x + nn1_x + jya_o + tya_x + nagara2_x + wo_s_x, + ze_x + kke_x + n_si_x + deha_x, + + gotosi_o + saseru_x + zaru_x + zu_x + zunba_x + seru_x + souda_x + youtai_x, + denbun_x + ta_x + tai_x + tagaru_x + taru_x + da1_x + da2_o + daxtu_o, + darou_o + de_o + desi_o + desho_o + desu_o + na2_o + nara_o + nai_x, + nu_x + ne2_x + nn2_x + fuuda_x + besi_x + mai_x + masu_x + masure_x, + mase_x + mitaida_o + you_x + youda_o + rasii_o + rareru_x + reru_x + site_x, + + yougen_x + aru_x + ara_x + ari1_x + ari2_x + ari3_x + are1_x + are2_x, + arou_x + ii_x + itasi_x + itadaku_x + iru_x + eru_x + kakeru_x + kaneru_x, + karazu_x + gatai_x + gatida_x + kudasaru_x + gozai_x + sa1_x + si1_x + siro_x, + jyau_x + jimau_x + sugiru_x + subesi_o + suru_x + sure_x + se_x + seyo_x, + tamau_x + tayu_x + timau_x + dekiru_x + naru_x + nasai_x + nasaru_x + nikui_x, + yasui_x + yoi_x + yaru_x + ttarasii_x}; + +static u_char no2[] = { + wo_o + ttatte_x + ttara_x + tte1_x + tte2_x + ppanasi_x + ppoi_x + ue_x, + uti_x + oite_x + okeru_x + ori_x + ka1_o + ka2_x + kai_x + kasira_o, + katagata_x + kadouka_o + kana_o + kane_o + kamo_o + kara1_o + kara2_x + ga1_o, + ga2_x + gatera_x + kiri_x + kuseni_x + kurai_x + gurumi_x + kedo_x + koso_o, + koto_x + sa2_o + sae_o + si2_x + sika_o + sura_o + zutu_x + zo_x, + tame_x + dake_o + dano_o + darake_x + tuite_x + tuki_x + tutu_x + tumori_x, + te1_x + te2_x + teru_x + dearou_x + deru_x + to1_o + to2_x + totte_x, + toiu_x + toori_x + toki_x + tokoro_x + tote_x + tohaie_x + tomo_x + do_x, + doori_x + dokoro_o + dokoroka_o + domo_x + na1_x + naa_x + nagara_x + nazo_o, + nado_o + nari_o + nanka_o + nanzo_o + nante_o + ni1_x + ni2_x + ni3_x, + nite_x + nimo_x + ne1_o + nee_o + no1_x + no2_x + node_x + noni_x, + nomi_x + nominrz_x + ha_o + hazu_x + ba_x + bakari_o + he_x + hou_x, + hoka_x + hodo_x + made_x + mama_x + mo1_o + mo2_x + motte_x + mono_x, + ya1_o + ya2_x + yara_o + yue_x + yo_o + yori_o + wa_x + wake_x, + wane_o + wayo_x + nn1_x + jya_o + tya_x + nagara2_x + wo_s_x, + ze_x + kke_x + n_si_x + deha_x, + + gotosi_x + saseru_x + zaru_x + zu_x + zunba_x + seru_x + souda_x + youtai_x, + denbun_x + ta_x + tai_x + tagaru_x + taru_x + da1_x + da2_o + daxtu_o, + darou_o + de_x + desi_o + desho_o + desu_o + na2_o + nara_o + nai_x, + nu_x + ne2_x + nn2_x + fuuda_x + besi_x + mai_x + masu_x + masure_x, + mase_x + mitaida_x + you_x + youda_x + rasii_x + rareru_x + reru_x + site_x, + + yougen_x + aru_x + ara_x + ari1_x + ari2_x + ari3_x + are1_x + are2_x, + arou_x + ii_x + itasi_x + itadaku_x + iru_x + eru_x + kakeru_x + kaneru_x, + karazu_x + gatai_x + gatida_x + kudasaru_x + gozai_x + sa1_x + si1_x + siro_x, + jyau_x + jimau_x + sugiru_x + subesi_x + suru_x + sure_x + se_x + seyo_x, + tamau_x + tayu_x + timau_x + dekiru_x + naru_x + nasai_x + nasaru_x + nikui_x, + yasui_x + yoi_x + yaru_x + ttarasii_x}; + +static u_char node[] = { + wo_x + ttatte_x + ttara_x + tte1_x + tte2_x + ppanasi_x + ppoi_x + ue_x, + uti_x + oite_x + okeru_x + ori_x + ka1_x + ka2_x + kai_x + kasira_x, + katagata_x + kadouka_x + kana_x + kane_x + kamo_x + kara1_x + kara2_x + ga1_x, + ga2_x + gatera_x + kiri_x + kuseni_x + kurai_x + gurumi_x + kedo_x + koso_x, + koto_x + sa2_x + sae_o + si2_x + sika_x + sura_x + zutu_x + zo_x, + tame_x + dake_x + dano_x + darake_x + tuite_x + tuki_x + tutu_x + tumori_x, + te1_x + te2_x + teru_x + dearou_x + deru_x + to1_x + to2_o + totte_x, + toiu_o + toori_x + toki_x + tokoro_x + tote_x + tohaie_o + tomo_x + do_x, + doori_x + dokoro_x + dokoroka_x + domo_x + na1_x + naa_x + nagara_x + nazo_x, + nado_x + nari_x + nanka_x + nanzo_x + nante_x + ni1_x + ni2_x + ni3_x, + nite_x + nimo_x + ne1_x + nee_x + no1_x + no2_x + node_x + noni_x, + nomi_x + nominrz_x + ha_o + hazu_x + ba_x + bakari_x + he_x + hou_x, + hoka_x + hodo_x + made_x + mama_x + mo1_x + mo2_o + motte_x + mono_x, + ya1_x + ya2_x + yara_x + yue_x + yo_x + yori_x + wa_x + wake_x, + wane_x + wayo_x + nn1_x + jya_x + tya_x + nagara2_x + wo_s_x, + ze_x + kke_x + n_si_x + deha_x, + + gotosi_x + saseru_x + zaru_x + zu_x + zunba_x + seru_x + souda_x + youtai_x, + denbun_x + ta_x + tai_x + tagaru_x + taru_x + da1_x + da2_x + daxtu_x, + darou_x + de_x + desi_x + desho_x + desu_x + na2_x + nara_x + nai_o, + nu_x + ne2_x + nn2_x + fuuda_x + besi_x + mai_x + masu_x + masure_x, + mase_x + mitaida_x + you_x + youda_x + rasii_x + rareru_x + reru_x + site_x, + + yougen_x + aru_o + ara_x + ari1_x + ari2_x + ari3_o + are1_x + are2_o, + arou_o + ii_x + itasi_x + itadaku_x + iru_x + eru_x + kakeru_x + kaneru_x, + karazu_x + gatai_x + gatida_x + kudasaru_x + gozai_x + sa1_x + si1_x + siro_x, + jyau_x + jimau_x + sugiru_x + subesi_x + suru_x + sure_x + se_x + seyo_x, + tamau_x + tayu_x + timau_x + dekiru_x + naru_x + nasai_x + nasaru_x + nikui_x, + yasui_x + yoi_x + yaru_x + ttarasii_x}; + +static u_char noni[] = { + wo_x + ttatte_x + ttara_x + tte1_x + tte2_x + ppanasi_x + ppoi_x + ue_x, + uti_x + oite_x + okeru_x + ori_x + ka1_x + ka2_x + kai_x + kasira_x, + katagata_x + kadouka_x + kana_x + kane_x + kamo_x + kara1_x + kara2_x + ga1_x, + ga2_x + gatera_x + kiri_x + kuseni_x + kurai_x + gurumi_x + kedo_x + koso_x, + koto_x + sa2_x + sae_x + si2_x + sika_x + sura_x + zutu_x + zo_x, + tame_x + dake_x + dano_x + darake_x + tuite_x + tuki_x + tutu_x + tumori_x, + te1_x + te2_x + teru_x + dearou_x + deru_x + to1_x + to2_o + totte_x, + toiu_o + toori_x + toki_x + tokoro_x + tote_x + tohaie_o + tomo_x + do_x, + doori_x + dokoro_x + dokoroka_x + domo_x + na1_x + naa_x + nagara_x + nazo_x, + nado_x + nari_x + nanka_x + nanzo_x + nante_x + ni1_x + ni2_x + ni3_x, + nite_x + nimo_x + ne1_x + nee_x + no1_x + no2_x + node_x + noni_x, + nomi_x + nominrz_x + ha_o + hazu_x + ba_x + bakari_x + he_x + hou_x, + hoka_x + hodo_x + made_x + mama_x + mo1_o + mo2_x + motte_x + mono_x, + ya1_x + ya2_x + yara_x + yue_x + yo_x + yori_x + wa_x + wake_x, + wane_x + wayo_x + nn1_x + jya_x + tya_x + nagara2_x + wo_s_x, + ze_x + kke_x + n_si_x + deha_x, + + gotosi_x + saseru_x + zaru_x + zu_x + zunba_x + seru_x + souda_x + youtai_x, + denbun_x + ta_x + tai_x + tagaru_x + taru_x + da1_x + da2_x + daxtu_x, + darou_x + de_x + desi_x + desho_x + desu_x + na2_x + nara_x + nai_x, + nu_x + ne2_x + nn2_x + fuuda_x + besi_x + mai_x + masu_x + masure_x, + mase_x + mitaida_x + you_x + youda_x + rasii_x + rareru_x + reru_x + site_x, + + yougen_x + aru_x + ara_x + ari1_x + ari2_x + ari3_x + are1_x + are2_x, + arou_x + ii_x + itasi_x + itadaku_x + iru_x + eru_x + kakeru_x + kaneru_x, + karazu_x + gatai_x + gatida_x + kudasaru_x + gozai_x + sa1_x + si1_x + siro_x, + jyau_x + jimau_x + sugiru_x + subesi_x + suru_x + sure_x + se_x + seyo_x, + tamau_x + tayu_x + timau_x + dekiru_x + naru_x + nasai_x + nasaru_x + nikui_x, + yasui_x + yoi_x + yaru_x + ttarasii_x}; + +static u_char nomi[] = { + wo_o + ttatte_x + ttara_o + tte1_o + tte2_x + ppanasi_x + ppoi_x + ue_x, + uti_x + oite_x + okeru_x + ori_x + ka1_x + ka2_x + kai_x + kasira_o, + katagata_x + kadouka_o + kana_o + kane_o + kamo_o + kara1_o + kara2_x + ga1_o, + ga2_x + gatera_x + kiri_x + kuseni_x + kurai_x + gurumi_x + kedo_x + koso_x, + koto_x + sa2_o + sae_x + si2_x + sika_o + sura_x + zutu_x + zo_x, + tame_x + dake_x + dano_o + darake_x + tuite_x + tuki_x + tutu_x + tumori_x, + te1_x + te2_x + teru_x + dearou_x + deru_x + to1_o + to2_x + totte_x, + toiu_o + toori_x + toki_x + tokoro_x + tote_x + tohaie_o + tomo_x + do_x, + doori_x + dokoro_o + dokoroka_o + domo_x + na1_x + naa_x + nagara_x + nazo_o, + nado_o + nari_x + nanka_o + nanzo_o + nante_o + ni1_o + ni2_x + ni3_x, + nite_x + nimo_x + ne1_o + nee_o + no1_o + no2_x + node_x + noni_x, + nomi_x + nominrz_x + ha_o + hazu_x + ba_x + bakari_o + he_o + hou_x, + hoka_x + hodo_x + made_o + mama_x + mo1_o + mo2_x + motte_x + mono_x, + ya1_o + ya2_x + yara_o + yue_o + yo_o + yori_x + wa_x + wake_x, + wane_o + wayo_x + nn1_x + jya_o + tya_x + nagara2_x + wo_s_x, + ze_x + kke_x + n_si_x + deha_x, + + gotosi_x + saseru_x + zaru_x + zu_x + zunba_x + seru_x + souda_x + youtai_x, + denbun_x + ta_x + tai_x + tagaru_x + taru_x + da1_x + da2_o + daxtu_o, + darou_o + de_o + desi_o + desho_o + desu_o + na2_o + nara_o + nai_x, + nu_x + ne2_x + nn2_x + fuuda_x + besi_x + mai_x + masu_x + masure_x, + mase_x + mitaida_o + you_x + youda_x + rasii_o + rareru_x + reru_x + site_x, + + yougen_x + aru_x + ara_x + ari1_x + ari2_x + ari3_x + are1_x + are2_x, + arou_x + ii_x + itasi_x + itadaku_x + iru_x + eru_x + kakeru_x + kaneru_x, + karazu_x + gatai_x + gatida_x + kudasaru_x + gozai_x + sa1_x + si1_x + siro_x, + jyau_x + jimau_x + sugiru_x + subesi_x + suru_x + sure_x + se_x + seyo_x, + tamau_x + tayu_x + timau_x + dekiru_x + naru_x + nasai_x + nasaru_x + nikui_x, + yasui_x + yoi_x + yaru_x + ttarasii_x}; + +static u_char nominrz[] = { + wo_x + ttatte_x + ttara_x + tte1_x + tte2_x + ppanasi_x + ppoi_x + ue_x, + uti_x + oite_x + okeru_x + ori_x + ka1_x + ka2_x + kai_x + kasira_x, + katagata_x + kadouka_x + kana_x + kane_x + kamo_x + kara1_x + kara2_x + ga1_x, + ga2_x + gatera_x + kiri_x + kuseni_x + kurai_x + gurumi_x + kedo_x + koso_x, + koto_x + sa2_x + sae_x + si2_x + sika_x + sura_x + zutu_x + zo_x, + tame_x + dake_x + dano_x + darake_x + tuite_x + tuki_x + tutu_x + tumori_x, + te1_x + te2_x + teru_x + dearou_x + deru_x + to1_x + to2_x + totte_x, + toiu_x + toori_x + toki_x + tokoro_x + tote_x + tohaie_x + tomo_x + do_x, + doori_x + dokoro_x + dokoroka_x + domo_x + na1_x + naa_x + nagara_x + nazo_x, + nado_x + nari_x + nanka_x + nanzo_x + nante_x + ni1_x + ni2_x + ni3_x, + nite_x + nimo_x + ne1_x + nee_x + no1_x + no2_x + node_x + noni_x, + nomi_x + nominrz_x + ha_x + hazu_x + ba_x + bakari_x + he_x + hou_x, + hoka_x + hodo_x + made_x + mama_x + mo1_x + mo2_x + motte_x + mono_x, + ya1_x + ya2_x + yara_x + yue_x + yo_x + yori_x + wa_x + wake_x, + wane_x + wayo_x + nn1_x + jya_x + tya_x + nagara2_x + wo_s_x, + ze_x + kke_x + n_si_x + deha_x, + + gotosi_x + saseru_x + zaru_x + zu_x + zunba_x + seru_x + souda_x + youtai_x, + denbun_x + ta_x + tai_x + tagaru_x + taru_x + da1_x + da2_x + daxtu_x, + darou_x + de_x + desi_x + desho_x + desu_x + na2_x + nara_x + nai_x, + nu_x + ne2_x + nn2_x + fuuda_x + besi_x + mai_x + masu_x + masure_x, + mase_x + mitaida_x + you_x + youda_x + rasii_x + rareru_x + reru_x + site_x, + + yougen_x + aru_x + ara_x + ari1_x + ari2_x + ari3_x + are1_x + are2_x, + arou_x + ii_x + itasi_x + itadaku_x + iru_x + eru_x + kakeru_x + kaneru_x, + karazu_x + gatai_x + gatida_x + kudasaru_x + gozai_x + sa1_x + si1_x + siro_x, + jyau_x + jimau_x + sugiru_x + subesi_x + suru_x + sure_x + se_x + seyo_x, + tamau_x + tayu_x + timau_x + dekiru_x + naru_x + nasai_x + nasaru_x + nikui_x, + yasui_x + yoi_x + yaru_x + ttarasii_x}; + +static u_char ha[] = { + wo_x + ttatte_x + ttara_x + tte1_x + tte2_x + ppanasi_x + ppoi_x + ue_x, + uti_x + oite_x + okeru_x + ori_x + ka1_x + ka2_x + kai_x + kasira_x, + katagata_x + kadouka_x + kana_x + kane_x + kamo_x + kara1_x + kara2_x + ga1_x, + ga2_x + gatera_x + kiri_x + kuseni_x + kurai_x + gurumi_x + kedo_x + koso_x, + koto_x + sa2_o + sae_x + si2_x + sika_x + sura_x + zutu_x + zo_x, + tame_x + dake_x + dano_x + darake_x + tuite_x + tuki_x + tutu_x + tumori_x, + te1_x + te2_x + teru_x + dearou_x + deru_x + to1_x + to2_x + totte_x, + toiu_x + toori_x + toki_x + tokoro_x + tote_x + tohaie_x + tomo_x + do_x, + doori_x + dokoro_x + dokoroka_x + domo_x + na1_x + naa_x + nagara_x + nazo_x, + nado_x + nari_x + nanka_x + nanzo_x + nante_x + ni1_x + ni2_x + ni3_x, + nite_x + nimo_x + ne1_o + nee_o + no1_x + no2_x + node_x + noni_x, + nomi_x + nominrz_x + ha_x + hazu_x + ba_x + bakari_x + he_x + hou_x, + hoka_x + hodo_x + made_x + mama_x + mo1_x + mo2_x + motte_x + mono_x, + ya1_x + ya2_x + yara_x + yue_x + yo_x + yori_x + wa_x + wake_x, + wane_x + wayo_x + nn1_x + jya_x + tya_x + nagara2_x + wo_s_x, + ze_x + kke_x + n_si_x + deha_x, + + gotosi_x + saseru_x + zaru_x + zu_x + zunba_x + seru_x + souda_x + youtai_x, + denbun_x + ta_x + tai_x + tagaru_x + taru_x + da1_x + da2_x + daxtu_x, + darou_x + de_x + desi_x + desho_x + desu_x + na2_x + nara_x + nai_o, + nu_x + ne2_x + nn2_x + fuuda_x + besi_x + mai_x + masu_x + masure_x, + mase_x + mitaida_x + you_x + youda_x + rasii_x + rareru_x + reru_x + site_x, + + yougen_x + aru_o + ara_o + ari1_x + ari2_o + ari3_x + are1_x + are2_o, + arou_o + ii_o + itasi_x + itadaku_x + iru_x + eru_x + kakeru_x + kaneru_x, + karazu_x + gatai_x + gatida_x + kudasaru_x + gozai_x + sa1_o + si1_x + siro_o, + jyau_x + jimau_x + sugiru_x + subesi_x + suru_o + sure_o + se_o + seyo_o, + tamau_x + tayu_x + timau_x + dekiru_x + naru_x + nasai_x + nasaru_x + nikui_x, + yasui_x + yoi_x + yaru_x + ttarasii_x}; + +static u_char hazu[] = { + wo_x + ttatte_x + ttara_x + tte1_o + tte2_x + ppanasi_x + ppoi_x + ue_x, + uti_x + oite_x + okeru_x + ori_x + ka1_x + ka2_x + kai_x + kasira_x, + katagata_x + kadouka_x + kana_o + kane_o + kamo_x + kara1_x + kara2_x + ga1_o, + ga2_x + gatera_x + kiri_x + kuseni_x + kurai_x + gurumi_x + kedo_x + koso_x, + koto_x + sa2_o + sae_x + si2_x + sika_x + sura_x + zutu_x + zo_x, + tame_x + dake_x + dano_x + darake_x + tuite_x + tuki_x + tutu_x + tumori_x, + te1_x + te2_x + teru_x + dearou_x + deru_x + to1_o + to2_x + totte_x, + toiu_o + toori_x + toki_x + tokoro_x + tote_x + tohaie_o + tomo_x + do_x, + doori_x + dokoro_o + dokoroka_o + domo_x + na1_x + naa_x + nagara_x + nazo_o, + nado_o + nari_x + nanka_o + nanzo_o + nante_o + ni1_x + ni2_x + ni3_x, + nite_x + nimo_x + ne1_o + nee_o + no1_o + no2_x + node_x + noni_x, + nomi_x + nominrz_x + ha_o + hazu_x + ba_x + bakari_x + he_x + hou_x, + hoka_x + hodo_x + made_x + mama_x + mo1_o + mo2_x + motte_x + mono_x, + ya1_x + ya2_x + yara_x + yue_x + yo_o + yori_x + wa_x + wake_x, + wane_x + wayo_x + nn1_x + jya_o + tya_x + nagara2_x + wo_s_x, + ze_x + kke_x + n_si_x + deha_x, + + gotosi_x + saseru_x + zaru_x + zu_x + zunba_x + seru_x + souda_x + youtai_x, + denbun_x + ta_x + tai_x + tagaru_x + taru_x + da1_x + da2_o + daxtu_o, + darou_o + de_o + desi_o + desho_o + desu_o + na2_o + nara_o + nai_x, + nu_x + ne2_x + nn2_x + fuuda_x + besi_x + mai_x + masu_x + masure_x, + mase_x + mitaida_x + you_x + youda_x + rasii_o + rareru_x + reru_x + site_x, + + yougen_x + aru_x + ara_x + ari1_x + ari2_x + ari3_x + are1_x + are2_x, + arou_x + ii_x + itasi_x + itadaku_x + iru_x + eru_x + kakeru_x + kaneru_x, + karazu_x + gatai_x + gatida_x + kudasaru_x + gozai_x + sa1_x + si1_x + siro_x, + jyau_x + jimau_x + sugiru_x + subesi_x + suru_x + sure_x + se_x + seyo_x, + tamau_x + tayu_x + timau_x + dekiru_x + naru_x + nasai_x + nasaru_x + nikui_x, + yasui_x + yoi_x + yaru_x + ttarasii_x}; + +static u_char ba[] = { + wo_x + ttatte_x + ttara_x + tte1_x + tte2_x + ppanasi_x + ppoi_x + ue_x, + uti_x + oite_x + okeru_x + ori_x + ka1_x + ka2_x + kai_x + kasira_x, + katagata_x + kadouka_x + kana_x + kane_x + kamo_x + kara1_x + kara2_x + ga1_x, + ga2_x + gatera_x + kiri_x + kuseni_x + kurai_x + gurumi_x + kedo_x + koso_x, + koto_x + sa2_o + sae_x + si2_x + sika_x + sura_x + zutu_x + zo_x, + tame_x + dake_x + dano_x + darake_x + tuite_x + tuki_x + tutu_x + tumori_x, + te1_x + te2_x + teru_x + dearou_x + deru_x + to1_o + to2_x + totte_x, + toiu_o + toori_x + toki_x + tokoro_x + tote_x + tohaie_o + tomo_x + do_x, + doori_x + dokoro_x + dokoroka_x + domo_x + na1_o + naa_o + nagara_x + nazo_x, + nado_x + nari_x + nanka_x + nanzo_x + nante_x + ni1_x + ni2_x + ni3_x, + nite_x + nimo_x + ne1_o + nee_o + no1_x + no2_x + node_x + noni_x, + nomi_x + nominrz_x + ha_x + hazu_x + ba_x + bakari_x + he_x + hou_x, + hoka_x + hodo_x + made_x + mama_x + mo1_x + mo2_x + motte_x + mono_x, + ya1_x + ya2_x + yara_x + yue_x + yo_x + yori_x + wa_x + wake_x, + wane_x + wayo_x + nn1_x + jya_x + tya_x + nagara2_x + wo_s_x, + ze_x + kke_x + n_si_x + deha_x, + + gotosi_x + saseru_x + zaru_x + zu_x + zunba_x + seru_x + souda_x + youtai_x, + denbun_x + ta_x + tai_x + tagaru_x + taru_x + da1_x + da2_x + daxtu_x, + darou_x + de_x + desi_x + desho_x + desu_x + na2_x + nara_x + nai_x, + nu_x + ne2_x + nn2_x + fuuda_x + besi_x + mai_x + masu_x + masure_x, + mase_x + mitaida_x + you_x + youda_x + rasii_x + rareru_x + reru_x + site_x, + + yougen_x + aru_x + ara_x + ari1_x + ari2_x + ari3_x + are1_x + are2_x, + arou_x + ii_x + itasi_x + itadaku_x + iru_x + eru_x + kakeru_x + kaneru_x, + karazu_x + gatai_x + gatida_x + kudasaru_x + gozai_x + sa1_x + si1_x + siro_x, + jyau_x + jimau_x + sugiru_x + subesi_x + suru_x + sure_x + se_x + seyo_x, + tamau_x + tayu_x + timau_x + dekiru_x + naru_x + nasai_x + nasaru_x + nikui_x, + yasui_x + yoi_x + yaru_x + ttarasii_x}; + +static u_char bakari[] = { + wo_o + ttatte_x + ttara_x + tte1_o + tte2_x + ppanasi_x + ppoi_x + ue_x, + uti_x + oite_x + okeru_x + ori_x + ka1_o + ka2_x + kai_x + kasira_o, + katagata_x + kadouka_o + kana_o + kane_o + kamo_o + kara1_o + kara2_x + ga1_o, + ga2_x + gatera_x + kiri_x + kuseni_x + kurai_x + gurumi_x + kedo_x + koso_x, + koto_x + sa2_o + sae_x + si2_x + sika_o + sura_x + zutu_x + zo_x, + tame_x + dake_x + dano_x + darake_x + tuite_x + tuki_x + tutu_x + tumori_x, + te1_x + te2_x + teru_x + dearou_x + deru_x + to1_o + to2_x + totte_x, + toiu_o + toori_x + toki_x + tokoro_x + tote_x + tohaie_o + tomo_x + do_x, + doori_x + dokoro_x + dokoroka_x + domo_x + na1_x + naa_x + nagara_x + nazo_x, + nado_x + nari_x + nanka_o + nanzo_o + nante_o + ni1_o + ni2_x + ni3_x, + nite_x + nimo_x + ne1_o + nee_o + no1_o + no2_x + node_x + noni_x, + nomi_x + nominrz_x + ha_o + hazu_x + ba_x + bakari_x + he_o + hou_x, + hoka_x + hodo_x + made_x + mama_x + mo1_o + mo2_x + motte_x + mono_x, + ya1_x + ya2_x + yara_x + yue_o + yo_o + yori_x + wa_x + wake_x, + wane_x + wayo_x + nn1_x + jya_o + tya_x + nagara2_x + wo_s_x, + ze_x + kke_x + n_si_x + deha_x, + + gotosi_x + saseru_x + zaru_x + zu_x + zunba_x + seru_x + souda_x + youtai_x, + denbun_x + ta_x + tai_x + tagaru_x + taru_x + da1_x + da2_o + daxtu_o, + darou_o + de_o + desi_o + desho_o + desu_o + na2_o + nara_o + nai_x, + nu_x + ne2_x + nn2_x + fuuda_x + besi_x + mai_x + masu_x + masure_x, + mase_x + mitaida_o + you_x + youda_x + rasii_o + rareru_x + reru_x + site_x, + + yougen_x + aru_o + ara_o + ari1_x + ari2_o + ari3_x + are1_x + are2_o, + arou_o + ii_x + itasi_x + itadaku_x + iru_o + eru_x + kakeru_x + kaneru_x, + karazu_x + gatai_x + gatida_x + kudasaru_x + gozai_x + sa1_x + si1_x + siro_x, + jyau_x + jimau_x + sugiru_x + subesi_x + suru_x + sure_x + se_x + seyo_x, + tamau_x + tayu_x + timau_x + dekiru_x + naru_x + nasai_x + nasaru_x + nikui_x, + yasui_x + yoi_x + yaru_x + ttarasii_x}; + +static u_char he[] = { + wo_x + ttatte_x + ttara_x + tte1_x + tte2_x + ppanasi_x + ppoi_x + ue_x, + uti_x + oite_x + okeru_x + ori_x + ka1_x + ka2_x + kai_x + kasira_o, + katagata_x + kadouka_o + kana_o + kane_o + kamo_x + kara1_x + kara2_x + ga1_x, + ga2_x + gatera_x + kiri_x + kuseni_x + kurai_x + gurumi_x + kedo_x + koso_x, + koto_x + sa2_o + sae_o + si2_x + sika_o + sura_o + zutu_x + zo_x, + tame_x + dake_o + dano_o + darake_x + tuite_x + tuki_x + tutu_x + tumori_x, + te1_x + te2_x + teru_x + dearou_x + deru_x + to1_o + to2_x + totte_x, + toiu_x + toori_x + toki_x + tokoro_x + tote_x + tohaie_x + tomo_x + do_x, + doori_x + dokoro_x + dokoroka_o + domo_x + na1_o + naa_o + nagara_x + nazo_o, + nado_o + nari_x + nanka_o + nanzo_o + nante_o + ni1_x + ni2_x + ni3_x, + nite_x + nimo_x + ne1_o + nee_o + no1_o + no2_x + node_x + noni_x, + nomi_x + nominrz_x + ha_o + hazu_x + ba_x + bakari_x + he_x + hou_x, + hoka_x + hodo_x + made_x + mama_x + mo1_o + mo2_x + motte_x + mono_x, + ya1_x + ya2_x + yara_o + yue_x + yo_o + yori_x + wa_x + wake_x, + wane_x + wayo_x + nn1_x + jya_x + tya_x + nagara2_x + wo_s_x, + ze_x + kke_x + n_si_x + deha_x, + + gotosi_x + saseru_x + zaru_x + zu_x + zunba_x + seru_x + souda_x + youtai_x, + denbun_x + ta_x + tai_x + tagaru_x + taru_x + da1_x + da2_x + daxtu_x, + darou_x + de_x + desi_x + desho_x + desu_x + na2_x + nara_o + nai_x, + nu_x + ne2_x + nn2_x + fuuda_x + besi_x + mai_x + masu_x + masure_x, + mase_x + mitaida_x + you_x + youda_x + rasii_x + rareru_x + reru_x + site_x, + + yougen_x + aru_x + ara_x + ari1_x + ari2_x + ari3_x + are1_x + are2_x, + arou_x + ii_x + itasi_x + itadaku_x + iru_x + eru_x + kakeru_x + kaneru_x, + karazu_x + gatai_x + gatida_x + kudasaru_x + gozai_x + sa1_x + si1_x + siro_x, + jyau_x + jimau_x + sugiru_x + subesi_x + suru_x + sure_x + se_x + seyo_x, + tamau_x + tayu_x + timau_x + dekiru_x + naru_x + nasai_x + nasaru_x + nikui_x, + yasui_x + yoi_x + yaru_x + ttarasii_x}; + +static u_char hou[] = { + wo_o + ttatte_x + ttara_x + tte1_o + tte2_x + ppanasi_x + ppoi_x + ue_x, + uti_x + oite_x + okeru_x + ori_x + ka1_o + ka2_x + kai_x + kasira_o, + katagata_x + kadouka_o + kana_o + kane_o + kamo_o + kara1_o + kara2_x + ga1_o, + ga2_x + gatera_x + kiri_x + kuseni_x + kurai_x + gurumi_x + kedo_x + koso_x, + koto_x + sa2_o + sae_o + si2_x + sika_o + sura_o + zutu_x + zo_x, + tame_x + dake_o + dano_o + darake_x + tuite_x + tuki_x + tutu_x + tumori_x, + te1_x + te2_x + teru_x + dearou_x + deru_x + to1_o + to2_x + totte_x, + toiu_o + toori_x + toki_x + tokoro_x + tote_x + tohaie_o + tomo_x + do_x, + doori_x + dokoro_o + dokoroka_o + domo_x + na1_x + naa_x + nagara_x + nazo_o, + nado_o + nari_o + nanka_o + nanzo_o + nante_o + ni1_o + ni2_x + ni3_x, + nite_x + nimo_x + ne1_o + nee_o + no1_o + no2_x + node_x + noni_x, + nomi_x + nominrz_x + ha_o + hazu_x + ba_x + bakari_o + he_o + hou_x, + hoka_x + hodo_x + made_o + mama_x + mo1_o + mo2_x + motte_x + mono_x, + ya1_o + ya2_x + yara_o + yue_x + yo_o + yori_o + wa_x + wake_x, + wane_x + wayo_x + nn1_x + jya_o + tya_x + nagara2_x + wo_s_x, + ze_x + kke_x + n_si_x + deha_x, + + gotosi_x + saseru_x + zaru_x + zu_x + zunba_x + seru_x + souda_x + youtai_x, + denbun_x + ta_x + tai_x + tagaru_x + taru_x + da1_x + da2_o + daxtu_o, + darou_o + de_o + desi_o + desho_o + desu_o + na2_o + nara_o + nai_x, + nu_x + ne2_x + nn2_x + fuuda_x + besi_x + mai_x + masu_x + masure_x, + mase_x + mitaida_o + you_x + youda_x + rasii_o + rareru_x + reru_x + site_x, + + yougen_x + aru_x + ara_x + ari1_x + ari2_x + ari3_x + are1_x + are2_x, + arou_x + ii_x + itasi_x + itadaku_x + iru_x + eru_x + kakeru_x + kaneru_x, + karazu_x + gatai_x + gatida_x + kudasaru_x + gozai_x + sa1_x + si1_x + siro_x, + jyau_x + jimau_x + sugiru_x + subesi_x + suru_x + sure_x + se_x + seyo_x, + tamau_x + tayu_x + timau_x + dekiru_x + naru_x + nasai_x + nasaru_x + nikui_x, + yasui_x + yoi_x + yaru_x + ttarasii_x}; + +static u_char hoka[] = { + wo_x + ttatte_x + ttara_x + tte1_x + tte2_x + ppanasi_x + ppoi_x + ue_x, + uti_x + oite_x + okeru_x + ori_x + ka1_x + ka2_x + kai_x + kasira_x, + katagata_x + kadouka_x + kana_x + kane_x + kamo_x + kara1_x + kara2_x + ga1_x, + ga2_x + gatera_x + kiri_x + kuseni_x + kurai_x + gurumi_x + kedo_x + koso_x, + koto_x + sa2_x + sae_x + si2_x + sika_x + sura_x + zutu_x + zo_x, + tame_x + dake_x + dano_x + darake_x + tuite_x + tuki_x + tutu_x + tumori_x, + te1_x + te2_x + teru_x + dearou_x + deru_x + to1_x + to2_x + totte_x, + toiu_x + toori_x + toki_x + tokoro_x + tote_x + tohaie_x + tomo_x + do_x, + doori_x + dokoro_x + dokoroka_x + domo_x + na1_x + naa_x + nagara_x + nazo_x, + nado_x + nari_x + nanka_x + nanzo_x + nante_x + ni1_o + ni2_x + ni3_x, + nite_x + nimo_x + ne1_x + nee_x + no1_x + no2_x + node_x + noni_x, + nomi_x + nominrz_x + ha_o + hazu_x + ba_x + bakari_x + he_x + hou_x, + hoka_x + hodo_x + made_x + mama_x + mo1_o + mo2_x + motte_x + mono_x, + ya1_o + ya2_x + yara_x + yue_x + yo_x + yori_x + wa_x + wake_x, + wane_x + wayo_x + nn1_x + jya_x + tya_x + nagara2_x + wo_s_x, + ze_x + kke_x + n_si_x + deha_x, + + gotosi_x + saseru_x + zaru_x + zu_x + zunba_x + seru_x + souda_x + youtai_x, + denbun_x + ta_x + tai_x + tagaru_x + taru_x + da1_x + da2_x + daxtu_x, + darou_x + de_x + desi_x + desho_x + desu_x + na2_x + nara_x + nai_x, + nu_x + ne2_x + nn2_x + fuuda_x + besi_x + mai_x + masu_x + masure_x, + mase_x + mitaida_x + you_x + youda_x + rasii_x + rareru_x + reru_x + site_x, + + yougen_x + aru_x + ara_x + ari1_x + ari2_x + ari3_x + are1_x + are2_x, + arou_x + ii_x + itasi_x + itadaku_x + iru_x + eru_x + kakeru_x + kaneru_x, + karazu_x + gatai_x + gatida_x + kudasaru_x + gozai_x + sa1_x + si1_x + siro_x, + jyau_x + jimau_x + sugiru_x + subesi_x + suru_x + sure_x + se_x + seyo_x, + tamau_x + tayu_x + timau_x + dekiru_x + naru_x + nasai_x + nasaru_x + nikui_x, + yasui_x + yoi_x + yaru_x + ttarasii_x}; + +static u_char hodo[] = { + wo_x + ttatte_x + ttara_x + tte1_x + tte2_x + ppanasi_x + ppoi_x + ue_x, + uti_x + oite_x + okeru_x + ori_x + ka1_o + ka2_x + kai_x + kasira_o, + katagata_x + kadouka_o + kana_o + kane_o + kamo_o + kara1_x + kara2_x + ga1_x, + ga2_x + gatera_x + kiri_x + kuseni_x + kurai_x + gurumi_x + kedo_x + koso_x, + koto_x + sa2_o + sae_x + si2_x + sika_o + sura_x + zutu_x + zo_x, + tame_x + dake_x + dano_x + darake_x + tuite_x + tuki_x + tutu_x + tumori_x, + te1_x + te2_x + teru_x + dearou_x + deru_x + to1_o + to2_x + totte_x, + toiu_o + toori_x + toki_x + tokoro_x + tote_x + tohaie_o + tomo_x + do_x, + doori_x + dokoro_x + dokoroka_x + domo_x + na1_x + naa_x + nagara_x + nazo_x, + nado_x + nari_x + nanka_x + nanzo_x + nante_x + ni1_o + ni2_x + ni3_x, + nite_x + nimo_x + ne1_o + nee_o + no1_o + no2_x + node_x + noni_x, + nomi_x + nominrz_x + ha_o + hazu_x + ba_x + bakari_x + he_x + hou_x, + hoka_x + hodo_x + made_o + mama_x + mo1_o + mo2_x + motte_x + mono_x, + ya1_x + ya2_x + yara_x + yue_x + yo_x + yori_x + wa_x + wake_x, + wane_x + wayo_x + nn1_x + jya_o + tya_x + nagara2_x + wo_s_x, + ze_x + kke_x + n_si_x + deha_x, + + gotosi_x + saseru_x + zaru_x + zu_x + zunba_x + seru_x + souda_x + youtai_x, + denbun_x + ta_x + tai_x + tagaru_x + taru_x + da1_x + da2_o + daxtu_o, + darou_o + de_o + desi_o + desho_o + desu_o + na2_o + nara_o + nai_x, + nu_x + ne2_x + nn2_x + fuuda_x + besi_x + mai_x + masu_x + masure_x, + mase_x + mitaida_x + you_x + youda_x + rasii_o + rareru_x + reru_x + site_x, + + yougen_x + aru_x + ara_x + ari1_x + ari2_x + ari3_x + are1_x + are2_x, + arou_x + ii_x + itasi_x + itadaku_x + iru_x + eru_x + kakeru_x + kaneru_x, + karazu_x + gatai_x + gatida_x + kudasaru_x + gozai_x + sa1_x + si1_x + siro_x, + jyau_x + jimau_x + sugiru_x + subesi_x + suru_x + sure_x + se_x + seyo_x, + tamau_x + tayu_x + timau_x + dekiru_x + naru_x + nasai_x + nasaru_x + nikui_x, + yasui_x + yoi_x + yaru_x + ttarasii_x}; + +static u_char made[] = { + wo_o + ttatte_x + ttara_o + tte1_o + tte2_x + ppanasi_x + ppoi_x + ue_x, + uti_x + oite_x + okeru_x + ori_x + ka1_o + ka2_x + kai_x + kasira_o, + katagata_x + kadouka_o + kana_o + kane_o + kamo_o + kara1_x + kara2_x + ga1_o, + ga2_x + gatera_x + kiri_x + kuseni_x + kurai_o + gurumi_x + kedo_x + koso_x, + koto_x + sa2_o + sae_o + si2_x + sika_o + sura_o + zutu_x + zo_o, + tame_x + dake_o + dano_o + darake_x + tuite_x + tuki_x + tutu_x + tumori_x, + te1_x + te2_x + teru_x + dearou_x + deru_x + to1_o + to2_x + totte_x, + toiu_o + toori_x + toki_x + tokoro_x + tote_x + tohaie_o + tomo_x + do_x, + doori_x + dokoro_o + dokoroka_o + domo_x + na1_o + naa_o + nagara_x + nazo_o, + nado_o + nari_o + nanka_o + nanzo_o + nante_o + ni1_o + ni2_x + ni3_x, + nite_x + nimo_x + ne1_o + nee_o + no1_o + no2_x + node_x + noni_x, + nomi_o + nominrz_o + ha_o + hazu_x + ba_x + bakari_o + he_x + hou_x, + hoka_x + hodo_x + made_x + mama_x + mo1_x + mo2_o + motte_x + mono_x, + ya1_o + ya2_x + yara_o + yue_x + yo_o + yori_x + wa_x + wake_x, + wane_o + wayo_x + nn1_x + jya_o + tya_x + nagara2_x + wo_s_x, + ze_x + kke_x + n_si_x + deha_x, + + gotosi_x + saseru_x + zaru_x + zu_x + zunba_x + seru_x + souda_x + youtai_x, + denbun_x + ta_x + tai_x + tagaru_x + taru_x + da1_x + da2_o + daxtu_o, + darou_o + de_o + desi_o + desho_o + desu_o + na2_o + nara_o + nai_x, + nu_x + ne2_x + nn2_x + fuuda_x + besi_x + mai_x + masu_x + masure_x, + mase_x + mitaida_o + you_x + youda_x + rasii_o + rareru_x + reru_x + site_x, + + yougen_x + aru_o + ara_x + ari1_x + ari2_o + ari3_x + are1_x + are2_o, + arou_o + ii_x + itasi_x + itadaku_x + iru_x + eru_x + kakeru_x + kaneru_x, + karazu_x + gatai_x + gatida_x + kudasaru_x + gozai_x + sa1_x + si1_x + siro_x, + jyau_x + jimau_x + sugiru_x + subesi_x + suru_x + sure_x + se_x + seyo_x, + tamau_x + tayu_x + timau_x + dekiru_x + naru_x + nasai_x + nasaru_x + nikui_x, + yasui_x + yoi_x + yaru_x + ttarasii_x}; + +static u_char mama[] = { + wo_o + ttatte_x + ttara_o + tte1_o + tte2_x + ppanasi_x + ppoi_x + ue_x, + uti_x + oite_x + okeru_x + ori_x + ka1_o + ka2_x + kai_x + kasira_o, + katagata_x + kadouka_o + kana_o + kane_o + kamo_o + kara1_o + kara2_x + ga1_o, + ga2_x + gatera_x + kiri_x + kuseni_x + kurai_x + gurumi_x + kedo_x + koso_o, + koto_x + sa2_o + sae_o + si2_x + sika_o + sura_o + zutu_x + zo_o, + tame_x + dake_o + dano_o + darake_x + tuite_x + tuki_x + tutu_x + tumori_x, + te1_x + te2_x + teru_x + dearou_x + deru_x + to1_o + to2_x + totte_x, + toiu_o + toori_x + toki_x + tokoro_x + tote_x + tohaie_o + tomo_x + do_x, + doori_x + dokoro_o + dokoroka_o + domo_x + na1_x + naa_x + nagara_x + nazo_o, + nado_o + nari_o + nanka_o + nanzo_o + nante_o + ni1_o + ni2_x + ni3_x, + nite_x + nimo_x + ne1_o + nee_o + no1_o + no2_x + node_x + noni_x, + nomi_o + nominrz_o + ha_o + hazu_x + ba_x + bakari_x + he_x + hou_x, + hoka_x + hodo_x + made_x + mama_x + mo1_o + mo2_x + motte_x + mono_x, + ya1_o + ya2_x + yara_o + yue_x + yo_o + yori_o + wa_x + wake_x, + wane_x + wayo_x + nn1_x + jya_o + tya_x + nagara2_x + wo_s_x, + ze_x + kke_x + n_si_x + deha_x, + + gotosi_x + saseru_x + zaru_x + zu_x + zunba_x + seru_x + souda_x + youtai_x, + denbun_x + ta_x + tai_x + tagaru_x + taru_x + da1_x + da2_o + daxtu_o, + darou_o + de_o + desi_o + desho_o + desu_o + na2_o + nara_o + nai_x, + nu_x + ne2_x + nn2_x + fuuda_x + besi_x + mai_x + masu_x + masure_x, + mase_x + mitaida_o + you_x + youda_x + rasii_o + rareru_x + reru_x + site_x, + + yougen_x + aru_x + ara_x + ari1_x + ari2_x + ari3_x + are1_x + are2_x, + arou_x + ii_x + itasi_x + itadaku_x + iru_x + eru_x + kakeru_x + kaneru_x, + karazu_x + gatai_x + gatida_x + kudasaru_x + gozai_x + sa1_x + si1_x + siro_x, + jyau_x + jimau_x + sugiru_x + subesi_x + suru_x + sure_x + se_x + seyo_x, + tamau_x + tayu_x + timau_x + dekiru_x + naru_x + nasai_x + nasaru_x + nikui_x, + yasui_x + yoi_x + yaru_x + ttarasii_x}; + +static u_char mo1[] = { + wo_x + ttatte_x + ttara_x + tte1_x + tte2_x + ppanasi_x + ppoi_x + ue_x, + uti_x + oite_x + okeru_x + ori_x + ka1_x + ka2_x + kai_x + kasira_x, + katagata_x + kadouka_x + kana_x + kane_x + kamo_x + kara1_x + kara2_x + ga1_x, + ga2_x + gatera_x + kiri_x + kuseni_x + kurai_x + gurumi_x + kedo_x + koso_x, + koto_x + sa2_x + sae_x + si2_x + sika_x + sura_x + zutu_x + zo_x, + tame_x + dake_x + dano_x + darake_x + tuite_x + tuki_x + tutu_x + tumori_x, + te1_x + te2_x + teru_x + dearou_x + deru_x + to1_x + to2_x + totte_x, + toiu_x + toori_x + toki_x + tokoro_x + tote_x + tohaie_x + tomo_x + do_x, + doori_x + dokoro_x + dokoroka_x + domo_x + na1_x + naa_x + nagara_x + nazo_x, + nado_x + nari_x + nanka_x + nanzo_x + nante_x + ni1_x + ni2_x + ni3_x, + nite_x + nimo_x + ne1_x + nee_x + no1_x + no2_x + node_x + noni_x, + nomi_x + nominrz_x + ha_x + hazu_x + ba_x + bakari_x + he_x + hou_x, + hoka_x + hodo_x + made_x + mama_x + mo1_x + mo2_x + motte_x + mono_x, + ya1_x + ya2_x + yara_x + yue_x + yo_x + yori_x + wa_x + wake_x, + wane_x + wayo_x + nn1_x + jya_x + tya_x + nagara2_x + wo_s_x, + ze_x + kke_x + n_si_x + deha_x, + + gotosi_x + saseru_x + zaru_x + zu_x + zunba_x + seru_x + souda_x + youtai_x, + denbun_x + ta_x + tai_x + tagaru_x + taru_x + da1_x + da2_x + daxtu_x, + darou_x + de_x + desi_x + desho_x + desu_x + na2_x + nara_x + nai_x, + nu_x + ne2_x + nn2_x + fuuda_x + besi_x + mai_x + masu_x + masure_x, + mase_x + mitaida_x + you_x + youda_x + rasii_x + rareru_x + reru_x + site_x, + + yougen_x + aru_x + ara_x + ari1_x + ari2_x + ari3_x + are1_x + are2_x, + arou_x + ii_x + itasi_x + itadaku_x + iru_x + eru_x + kakeru_x + kaneru_x, + karazu_x + gatai_x + gatida_x + kudasaru_x + gozai_x + sa1_x + si1_x + siro_x, + jyau_x + jimau_x + sugiru_x + subesi_x + suru_x + sure_x + se_x + seyo_x, + tamau_x + tayu_x + timau_x + dekiru_x + naru_x + nasai_x + nasaru_x + nikui_x, + yasui_x + yoi_x + yaru_x + ttarasii_x}; + +static u_char mo2[] = { + wo_x + ttatte_x + ttara_x + tte1_x + tte2_x + ppanasi_x + ppoi_x + ue_x, + uti_x + oite_x + okeru_x + ori_x + ka1_x + ka2_x + kai_x + kasira_x, + katagata_x + kadouka_x + kana_x + kane_x + kamo_x + kara1_x + kara2_x + ga1_o, + ga2_x + gatera_x + kiri_x + kuseni_x + kurai_x + gurumi_x + kedo_x + koso_x, + koto_x + sa2_x + sae_x + si2_x + sika_x + sura_x + zutu_x + zo_x, + tame_x + dake_x + dano_x + darake_x + tuite_x + tuki_x + tutu_x + tumori_x, + te1_x + te2_x + teru_x + dearou_x + deru_x + to1_x + to2_x + totte_x, + toiu_x + toori_x + toki_x + tokoro_x + tote_x + tohaie_x + tomo_x + do_x, + doori_x + dokoro_x + dokoroka_x + domo_x + na1_x + naa_x + nagara_x + nazo_x, + nado_x + nari_x + nanka_x + nanzo_x + nante_x + ni1_x + ni2_x + ni3_x, + nite_x + nimo_x + ne1_x + nee_x + no1_x + no2_x + node_x + noni_x, + nomi_x + nominrz_x + ha_x + hazu_x + ba_x + bakari_x + he_x + hou_x, + hoka_x + hodo_x + made_x + mama_x + mo1_x + mo2_x + motte_x + mono_x, + ya1_x + ya2_x + yara_x + yue_x + yo_x + yori_x + wa_x + wake_x, + wane_x + wayo_x + nn1_x + jya_x + tya_x + nagara2_x + wo_s_x, + ze_x + kke_x + n_si_x + deha_x, + + gotosi_x + saseru_x + zaru_x + zu_x + zunba_x + seru_x + souda_x + youtai_x, + denbun_x + ta_x + tai_x + tagaru_x + taru_x + da1_x + da2_x + daxtu_x, + darou_x + de_x + desi_x + desho_x + desu_x + na2_x + nara_x + nai_o, + nu_x + ne2_x + nn2_x + fuuda_x + besi_x + mai_x + masu_x + masure_x, + mase_x + mitaida_x + you_x + youda_x + rasii_x + rareru_x + reru_x + site_x, + + yougen_x + aru_x + ara_x + ari1_x + ari2_x + ari3_x + are1_x + are2_x, + arou_x + ii_x + itasi_x + itadaku_x + iru_x + eru_x + kakeru_x + kaneru_x, + karazu_x + gatai_x + gatida_x + kudasaru_x + gozai_x + sa1_x + si1_o + siro_x, + jyau_x + jimau_x + sugiru_x + subesi_x + suru_o + sure_x + se_o + seyo_x, + tamau_x + tayu_x + timau_x + dekiru_x + naru_o + nasai_x + nasaru_x + nikui_x, + yasui_x + yoi_x + yaru_x + ttarasii_x}; + +static u_char motte[] = { + wo_x + ttatte_x + ttara_x + tte1_x + tte2_x + ppanasi_x + ppoi_x + ue_x, + uti_x + oite_x + okeru_x + ori_x + ka1_x + ka2_x + kai_x + kasira_x, + katagata_x + kadouka_x + kana_x + kane_x + kamo_x + kara1_x + kara2_x + ga1_x, + ga2_x + gatera_x + kiri_x + kuseni_x + kurai_x + gurumi_x + kedo_x + koso_x, + koto_x + sa2_x + sae_x + si2_x + sika_x + sura_x + zutu_x + zo_x, + tame_x + dake_x + dano_x + darake_x + tuite_x + tuki_x + tutu_x + tumori_x, + te1_x + te2_x + teru_x + dearou_x + deru_x + to1_x + to2_x + totte_x, + toiu_x + toori_x + toki_x + tokoro_x + tote_x + tohaie_x + tomo_x + do_x, + doori_x + dokoro_x + dokoroka_x + domo_x + na1_x + naa_x + nagara_x + nazo_x, + nado_x + nari_x + nanka_x + nanzo_x + nante_x + ni1_x + ni2_x + ni3_x, + nite_x + nimo_x + ne1_x + nee_x + no1_x + no2_x + node_x + noni_x, + nomi_x + nominrz_x + ha_x + hazu_x + ba_x + bakari_x + he_x + hou_x, + hoka_x + hodo_x + made_x + mama_x + mo1_x + mo2_x + motte_x + mono_x, + ya1_x + ya2_x + yara_x + yue_x + yo_x + yori_x + wa_x + wake_x, + wane_x + wayo_x + nn1_x + jya_x + tya_x + nagara2_x + wo_s_x, + ze_x + kke_x + n_si_x + deha_x, + + gotosi_x + saseru_x + zaru_x + zu_x + zunba_x + seru_x + souda_x + youtai_x, + denbun_x + ta_x + tai_x + tagaru_x + taru_x + da1_x + da2_x + daxtu_x, + darou_x + de_x + desi_x + desho_x + desu_x + na2_x + nara_x + nai_x, + nu_x + ne2_x + nn2_x + fuuda_x + besi_x + mai_x + masu_x + masure_x, + mase_x + mitaida_x + you_x + youda_x + rasii_x + rareru_x + reru_x + site_x, + + yougen_x + aru_x + ara_x + ari1_x + ari2_x + ari3_x + are1_x + are2_x, + arou_x + ii_x + itasi_x + itadaku_x + iru_x + eru_x + kakeru_x + kaneru_x, + karazu_x + gatai_x + gatida_x + kudasaru_x + gozai_x + sa1_x + si1_x + siro_x, + jyau_x + jimau_x + sugiru_x + subesi_x + suru_x + sure_x + se_x + seyo_x, + tamau_x + tayu_x + timau_x + dekiru_x + naru_x + nasai_x + nasaru_x + nikui_x, + yasui_x + yoi_x + yaru_x + ttarasii_x}; + +static u_char mono[] = { + wo_o + ttatte_x + ttara_x + tte1_o + tte2_x + ppanasi_x + ppoi_x + ue_x, + uti_x + oite_x + okeru_x + ori_x + ka1_o + ka2_x + kai_x + kasira_o, + katagata_x + kadouka_o + kana_o + kane_o + kamo_o + kara1_o + kara2_x + ga1_o, + ga2_x + gatera_x + kiri_x + kuseni_x + kurai_o + gurumi_x + kedo_x + koso_o, + koto_x + sa2_o + sae_o + si2_x + sika_o + sura_o + zutu_x + zo_o, + tame_x + dake_o + dano_o + darake_o + tuite_x + tuki_x + tutu_x + tumori_x, + te1_x + te2_x + teru_x + dearou_x + deru_x + to1_o + to2_x + totte_x, + toiu_o + toori_x + toki_x + tokoro_x + tote_x + tohaie_o + tomo_x + do_x, + doori_x + dokoro_o + dokoroka_o + domo_x + na1_o + naa_o + nagara_o + nazo_o, + nado_o + nari_o + nanka_o + nanzo_o + nante_o + ni1_o + ni2_x + ni3_x, + nite_x + nimo_x + ne1_o + nee_o + no1_o + no2_x + node_x + noni_x, + nomi_o + nominrz_o + ha_o + hazu_x + ba_x + bakari_o + he_o + hou_x, + hoka_x + hodo_o + made_o + mama_x + mo1_o + mo2_x + motte_x + mono_x, + ya1_o + ya2_x + yara_o + yue_x + yo_o + yori_o + wa_x + wake_x, + wane_o + wayo_x + nn1_x + jya_o + tya_x + nagara2_x + wo_s_x, + ze_x + kke_x + n_si_x + deha_x, + + gotosi_x + saseru_x + zaru_x + zu_x + zunba_x + seru_x + souda_x + youtai_x, + denbun_x + ta_x + tai_x + tagaru_x + taru_x + da1_x + da2_o + daxtu_o, + darou_o + de_o + desi_o + desho_o + desu_o + na2_o + nara_o + nai_x, + nu_x + ne2_x + nn2_x + fuuda_x + besi_x + mai_x + masu_x + masure_x, + mase_x + mitaida_o + you_x + youda_x + rasii_o + rareru_x + reru_x + site_x, + + yougen_x + aru_x + ara_x + ari1_x + ari2_x + ari3_x + are1_x + are2_x, + arou_x + ii_x + itasi_x + itadaku_x + iru_x + eru_x + kakeru_x + kaneru_x, + karazu_x + gatai_x + gatida_x + kudasaru_x + gozai_x + sa1_x + si1_x + siro_x, + jyau_x + jimau_x + sugiru_x + subesi_x + suru_x + sure_x + se_x + seyo_x, + tamau_x + tayu_x + timau_x + dekiru_x + naru_x + nasai_x + nasaru_x + nikui_x, + yasui_x + yoi_x + yaru_x + ttarasii_x}; + +static u_char ya1[] = { + wo_x + ttatte_x + ttara_x + tte1_x + tte2_x + ppanasi_x + ppoi_x + ue_x, + uti_x + oite_x + okeru_x + ori_x + ka1_x + ka2_x + kai_x + kasira_x, + katagata_x + kadouka_x + kana_x + kane_x + kamo_x + kara1_x + kara2_x + ga1_x, + ga2_x + gatera_x + kiri_x + kuseni_x + kurai_x + gurumi_x + kedo_x + koso_x, + koto_x + sa2_o + sae_x + si2_x + sika_x + sura_x + zutu_x + zo_x, + tame_x + dake_x + dano_x + darake_x + tuite_x + tuki_x + tutu_x + tumori_x, + te1_x + te2_x + teru_x + dearou_x + deru_x + to1_x + to2_x + totte_x, + toiu_x + toori_x + toki_x + tokoro_x + tote_x + tohaie_x + tomo_x + do_x, + doori_x + dokoro_x + dokoroka_x + domo_x + na1_x + naa_x + nagara_x + nazo_x, + nado_x + nari_x + nanka_x + nanzo_x + nante_x + ni1_x + ni2_x + ni3_x, + nite_x + nimo_x + ne1_x + nee_o + no1_x + no2_x + node_x + noni_x, + nomi_x + nominrz_x + ha_x + hazu_x + ba_x + bakari_x + he_x + hou_x, + hoka_x + hodo_x + made_x + mama_x + mo1_x + mo2_x + motte_x + mono_x, + ya1_x + ya2_x + yara_x + yue_x + yo_x + yori_x + wa_x + wake_x, + wane_x + wayo_x + nn1_x + jya_x + tya_x + nagara2_x + wo_s_x, + ze_x + kke_x + n_si_x + deha_x, + + gotosi_x + saseru_x + zaru_x + zu_x + zunba_x + seru_x + souda_x + youtai_x, + denbun_x + ta_x + tai_x + tagaru_x + taru_x + da1_x + da2_x + daxtu_x, + darou_x + de_x + desi_x + desho_x + desu_x + na2_x + nara_x + nai_x, + nu_x + ne2_x + nn2_x + fuuda_x + besi_x + mai_x + masu_x + masure_x, + mase_x + mitaida_x + you_x + youda_x + rasii_x + rareru_x + reru_x + site_x, + + yougen_x + aru_x + ara_x + ari1_x + ari2_x + ari3_x + are1_x + are2_x, + arou_x + ii_x + itasi_x + itadaku_x + iru_x + eru_x + kakeru_x + kaneru_x, + karazu_x + gatai_x + gatida_x + kudasaru_x + gozai_x + sa1_x + si1_x + siro_x, + jyau_x + jimau_x + sugiru_x + subesi_x + suru_x + sure_x + se_x + seyo_x, + tamau_x + tayu_x + timau_x + dekiru_x + naru_x + nasai_x + nasaru_x + nikui_x, + yasui_x + yoi_x + yaru_x + ttarasii_x}; + +static u_char ya2[] = { + wo_x + ttatte_x + ttara_x + tte1_x + tte2_x + ppanasi_x + ppoi_x + ue_x, + uti_x + oite_x + okeru_x + ori_x + ka1_x + ka2_x + kai_x + kasira_x, + katagata_x + kadouka_x + kana_x + kane_x + kamo_x + kara1_x + kara2_x + ga1_x, + ga2_x + gatera_x + kiri_x + kuseni_x + kurai_x + gurumi_x + kedo_x + koso_x, + koto_x + sa2_x + sae_x + si2_x + sika_x + sura_x + zutu_x + zo_x, + tame_x + dake_x + dano_x + darake_x + tuite_x + tuki_x + tutu_x + tumori_x, + te1_x + te2_x + teru_x + dearou_x + deru_x + to1_x + to2_x + totte_x, + toiu_x + toori_x + toki_x + tokoro_x + tote_x + tohaie_x + tomo_x + do_x, + doori_x + dokoro_x + dokoroka_x + domo_x + na1_x + naa_x + nagara_x + nazo_x, + nado_x + nari_x + nanka_x + nanzo_x + nante_x + ni1_x + ni2_x + ni3_x, + nite_x + nimo_x + ne1_x + nee_x + no1_x + no2_x + node_x + noni_x, + nomi_x + nominrz_x + ha_x + hazu_x + ba_x + bakari_x + he_x + hou_x, + hoka_x + hodo_x + made_x + mama_x + mo1_x + mo2_x + motte_x + mono_x, + ya1_x + ya2_x + yara_x + yue_x + yo_x + yori_x + wa_x + wake_x, + wane_x + wayo_x + nn1_x + jya_x + tya_x + nagara2_x + wo_s_x, + ze_x + kke_x + n_si_x + deha_x, + + gotosi_x + saseru_x + zaru_x + zu_x + zunba_x + seru_x + souda_x + youtai_x, + denbun_x + ta_x + tai_x + tagaru_x + taru_x + da1_x + da2_x + daxtu_x, + darou_x + de_x + desi_x + desho_x + desu_x + na2_x + nara_x + nai_x, + nu_x + ne2_x + nn2_x + fuuda_x + besi_x + mai_x + masu_x + masure_x, + mase_x + mitaida_x + you_x + youda_x + rasii_x + rareru_x + reru_x + site_x, + + yougen_x + aru_x + ara_x + ari1_x + ari2_x + ari3_x + are1_x + are2_x, + arou_x + ii_x + itasi_x + itadaku_x + iru_x + eru_x + kakeru_x + kaneru_x, + karazu_x + gatai_x + gatida_x + kudasaru_x + gozai_x + sa1_x + si1_x + siro_x, + jyau_x + jimau_x + sugiru_x + subesi_x + suru_x + sure_x + se_x + seyo_x, + tamau_x + tayu_x + timau_x + dekiru_x + naru_x + nasai_x + nasaru_x + nikui_x, + yasui_x + yoi_x + yaru_x + ttarasii_x}; + +static u_char yara[] = { + wo_o + ttatte_x + ttara_x + tte1_x + tte2_x + ppanasi_x + ppoi_x + ue_x, + uti_x + oite_x + okeru_x + ori_x + ka1_x + ka2_x + kai_x + kasira_x, + katagata_x + kadouka_x + kana_x + kane_x + kamo_x + kara1_x + kara2_x + ga1_o, + ga2_x + gatera_x + kiri_x + kuseni_x + kurai_x + gurumi_x + kedo_x + koso_x, + koto_x + sa2_x + sae_o + si2_x + sika_o + sura_x + zutu_x + zo_x, + tame_x + dake_o + dano_x + darake_x + tuite_x + tuki_x + tutu_x + tumori_x, + te1_x + te2_x + teru_x + dearou_x + deru_x + to1_o + to2_x + totte_x, + toiu_x + toori_x + toki_x + tokoro_x + tote_x + tohaie_x + tomo_x + do_x, + doori_x + dokoro_x + dokoroka_x + domo_x + na1_x + naa_x + nagara_x + nazo_o, + nado_o + nari_x + nanka_o + nanzo_o + nante_o + ni1_o + ni2_x + ni3_x, + nite_x + nimo_x + ne1_o + nee_o + no1_o + no2_x + node_x + noni_x, + nomi_x + nominrz_x + ha_o + hazu_x + ba_x + bakari_x + he_o + hou_x, + hoka_x + hodo_x + made_o + mama_x + mo1_o + mo2_x + motte_x + mono_x, + ya1_x + ya2_x + yara_x + yue_x + yo_x + yori_x + wa_x + wake_x, + wane_x + wayo_x + nn1_x + jya_x + tya_x + nagara2_x + wo_s_x, + ze_x + kke_x + n_si_x + deha_x, + + gotosi_x + saseru_x + zaru_x + zu_x + zunba_x + seru_x + souda_x + youtai_x, + denbun_x + ta_x + tai_x + tagaru_x + taru_x + da1_x + da2_x + daxtu_x, + darou_x + de_o + desi_x + desho_x + desu_x + na2_x + nara_x + nai_x, + nu_x + ne2_x + nn2_x + fuuda_x + besi_x + mai_x + masu_x + masure_x, + mase_x + mitaida_x + you_x + youda_x + rasii_x + rareru_x + reru_x + site_x, + + yougen_x + aru_x + ara_x + ari1_x + ari2_x + ari3_x + are1_x + are2_x, + arou_x + ii_x + itasi_x + itadaku_x + iru_x + eru_x + kakeru_x + kaneru_x, + karazu_x + gatai_x + gatida_x + kudasaru_x + gozai_x + sa1_x + si1_x + siro_x, + jyau_x + jimau_x + sugiru_x + subesi_x + suru_x + sure_x + se_x + seyo_x, + tamau_x + tayu_x + timau_x + dekiru_x + naru_x + nasai_x + nasaru_x + nikui_x, + yasui_x + yoi_x + yaru_x + ttarasii_x}; + +static u_char yue[] = { + wo_x + ttatte_x + ttara_x + tte1_x + tte2_x + ppanasi_x + ppoi_x + ue_x, + uti_x + oite_x + okeru_x + ori_x + ka1_x + ka2_x + kai_x + kasira_x, + katagata_x + kadouka_x + kana_x + kane_x + kamo_x + kara1_x + kara2_x + ga1_x, + ga2_x + gatera_x + kiri_x + kuseni_x + kurai_x + gurumi_x + kedo_x + koso_x, + koto_x + sa2_o + sae_x + si2_x + sika_x + sura_x + zutu_x + zo_x, + tame_x + dake_x + dano_x + darake_x + tuite_x + tuki_x + tutu_x + tumori_x, + te1_x + te2_x + teru_x + dearou_x + deru_x + to1_x + to2_o + totte_x, + toiu_o + toori_x + toki_x + tokoro_x + tote_x + tohaie_o + tomo_x + do_x, + doori_x + dokoro_x + dokoroka_x + domo_x + na1_x + naa_x + nagara_x + nazo_x, + nado_x + nari_x + nanka_x + nanzo_x + nante_x + ni1_o + ni2_x + ni3_x, + nite_x + nimo_x + ne1_o + nee_o + no1_x + no2_x + node_x + noni_x, + nomi_x + nominrz_x + ha_x + hazu_x + ba_x + bakari_x + he_x + hou_x, + hoka_x + hodo_x + made_x + mama_x + mo1_x + mo2_x + motte_x + mono_x, + ya1_x + ya2_x + yara_x + yue_x + yo_x + yori_x + wa_x + wake_x, + wane_x + wayo_x + nn1_x + jya_x + tya_x + nagara2_x + wo_s_x, + ze_x + kke_x + n_si_x + deha_x, + + gotosi_x + saseru_x + zaru_x + zu_x + zunba_x + seru_x + souda_x + youtai_x, + denbun_x + ta_x + tai_x + tagaru_x + taru_x + da1_x + da2_o + daxtu_o, + darou_o + de_o + desi_o + desho_o + desu_o + na2_o + nara_o + nai_x, + nu_x + ne2_x + nn2_x + fuuda_x + besi_x + mai_x + masu_x + masure_x, + mase_x + mitaida_x + you_x + youda_x + rasii_o + rareru_x + reru_x + site_x, + + yougen_x + aru_x + ara_x + ari1_x + ari2_x + ari3_x + are1_x + are2_x, + arou_x + ii_x + itasi_x + itadaku_x + iru_x + eru_x + kakeru_x + kaneru_x, + karazu_x + gatai_x + gatida_x + kudasaru_x + gozai_x + sa1_x + si1_x + siro_x, + jyau_x + jimau_x + sugiru_x + subesi_x + suru_x + sure_x + se_x + seyo_x, + tamau_x + tayu_x + timau_x + dekiru_x + naru_x + nasai_x + nasaru_x + nikui_x, + yasui_x + yoi_x + yaru_x + ttarasii_x}; + +static u_char yori1[] = { + wo_x + ttatte_x + ttara_x + tte1_x + tte2_x + ppanasi_x + ppoi_x + ue_x, + uti_x + oite_x + okeru_x + ori_x + ka1_x + ka2_x + kai_x + kasira_x, + katagata_x + kadouka_x + kana_x + kane_x + kamo_x + kara1_x + kara2_x + ga1_x, + ga2_x + gatera_x + kiri_x + kuseni_x + kurai_x + gurumi_x + kedo_x + koso_x, + koto_x + sa2_o + sae_x + si2_x + sika_x + sura_x + zutu_x + zo_x, + tame_x + dake_x + dano_x + darake_x + tuite_x + tuki_x + tutu_x + tumori_x, + te1_x + te2_x + teru_x + dearou_x + deru_x + to1_x + to2_x + totte_x, + toiu_x + toori_x + toki_x + tokoro_x + tote_x + tohaie_x + tomo_x + do_x, + doori_x + dokoro_x + dokoroka_x + domo_x + na1_x + naa_x + nagara_x + nazo_x, + nado_x + nari_x + nanka_x + nanzo_x + nante_x + ni1_x + ni2_x + ni3_x, + nite_x + nimo_x + ne1_o + nee_o + no1_x + no2_x + node_x + noni_x, + nomi_x + nominrz_x + ha_o + hazu_x + ba_x + bakari_x + he_x + hou_x, + hoka_x + hodo_x + made_x + mama_x + mo1_o + mo2_x + motte_x + mono_x, + ya1_x + ya2_x + yara_x + yue_x + yo_x + yori_x + wa_x + wake_x, + wane_x + wayo_x + nn1_x + jya_x + tya_x + nagara2_x + wo_s_x, + ze_x + kke_x + n_si_x + deha_x, + + gotosi_x + saseru_x + zaru_x + zu_x + zunba_x + seru_x + souda_x + youtai_x, + denbun_x + ta_x + tai_x + tagaru_x + taru_x + da1_x + da2_x + daxtu_x, + darou_x + de_x + desi_x + desho_x + desu_x + na2_x + nara_x + nai_x, + nu_x + ne2_x + nn2_x + fuuda_x + besi_x + mai_x + masu_x + masure_x, + mase_x + mitaida_x + you_x + youda_x + rasii_x + rareru_x + reru_x + site_x, + + yougen_x + aru_x + ara_x + ari1_x + ari2_x + ari3_x + are1_x + are2_x, + arou_x + ii_x + itasi_x + itadaku_x + iru_x + eru_x + kakeru_x + kaneru_x, + karazu_x + gatai_x + gatida_x + kudasaru_x + gozai_x + sa1_x + si1_x + siro_x, + jyau_x + jimau_x + sugiru_x + subesi_x + suru_x + sure_x + se_x + seyo_x, + tamau_x + tayu_x + timau_x + dekiru_x + naru_x + nasai_x + nasaru_x + nikui_x, + yasui_x + yoi_x + yaru_x + ttarasii_x}; + +static u_char wake[] = { + wo_x + ttatte_x + ttara_x + tte1_x + tte2_x + ppanasi_x + ppoi_x + ue_x, + uti_x + oite_x + okeru_x + ori_x + ka1_x + ka2_o + kai_x + kasira_o, + katagata_x + kadouka_o + kana_o + kane_o + kamo_x + kara1_x + kara2_x + ga1_o, + ga2_x + gatera_x + kiri_x + kuseni_x + kurai_x + gurumi_x + kedo_x + koso_x, + koto_x + sa2_o + sae_x + si2_x + sika_x + sura_x + zutu_x + zo_x, + tame_x + dake_x + dano_x + darake_x + tuite_x + tuki_x + tutu_x + tumori_x, + te1_x + te2_x + teru_x + dearou_x + deru_x + to1_o + to2_x + totte_x, + toiu_o + toori_x + toki_x + tokoro_x + tote_x + tohaie_o + tomo_x + do_x, + doori_x + dokoro_x + dokoroka_x + domo_x + na1_x + naa_x + nagara_x + nazo_o, + nado_o + nari_x + nanka_o + nanzo_o + nante_o + ni1_o + ni2_x + ni3_x, + nite_x + nimo_x + ne1_o + nee_o + no1_x + no2_x + node_x + noni_x, + nomi_x + nominrz_x + ha_o + hazu_x + ba_x + bakari_x + he_x + hou_x, + hoka_x + hodo_x + made_x + mama_x + mo1_o + mo2_x + motte_x + mono_x, + ya1_x + ya2_x + yara_x + yue_x + yo_o + yori_x + wa_x + wake_x, + wane_x + wayo_x + nn1_x + jya_o + tya_x + nagara2_x + wo_s_x, + ze_x + kke_x + n_si_x + deha_x, + + gotosi_x + saseru_x + zaru_x + zu_x + zunba_x + seru_x + souda_x + youtai_x, + denbun_x + ta_x + tai_x + tagaru_x + taru_x + da1_x + da2_o + daxtu_o, + darou_o + de_o + desi_o + desho_o + desu_o + na2_o + nara_o + nai_x, + nu_x + ne2_x + nn2_x + fuuda_x + besi_x + mai_x + masu_x + masure_x, + mase_x + mitaida_x + you_x + youda_x + rasii_x + rareru_x + reru_x + site_x, + + yougen_x + aru_x + ara_x + ari1_x + ari2_x + ari3_x + are1_x + are2_x, + arou_x + ii_x + itasi_x + itadaku_x + iru_x + eru_x + kakeru_x + kaneru_x, + karazu_x + gatai_x + gatida_x + kudasaru_x + gozai_x + sa1_x + si1_x + siro_x, + jyau_x + jimau_x + sugiru_x + subesi_x + suru_x + sure_x + se_x + seyo_x, + tamau_x + tayu_x + timau_x + dekiru_x + naru_x + nasai_x + nasaru_x + nikui_x, + yasui_x + yoi_x + yaru_x + ttarasii_x}; + +static u_char nn1[] = { + wo_x + ttatte_x + ttara_x + tte1_x + tte2_x + ppanasi_x + ppoi_x + ue_x, + uti_x + oite_x + okeru_x + ori_x + ka1_x + ka2_x + kai_x + kasira_x, + katagata_x + kadouka_x + kana_x + kane_x + kamo_x + kara1_x + kara2_x + ga1_x, + ga2_x + gatera_x + kiri_x + kuseni_x + kurai_x + gurumi_x + kedo_x + koso_x, + koto_x + sa2_x + sae_x + si2_x + sika_x + sura_x + zutu_x + zo_x, + tame_x + dake_x + dano_x + darake_x + tuite_x + tuki_x + tutu_x + tumori_x, + te1_x + te2_x + teru_x + dearou_x + deru_x + to1_x + to2_x + totte_x, + toiu_x + toori_x + toki_x + tokoro_x + tote_x + tohaie_x + tomo_x + do_x, + doori_x + dokoro_x + dokoroka_x + domo_x + na1_x + naa_x + nagara_x + nazo_x, + nado_x + nari_x + nanka_x + nanzo_x + nante_x + ni1_x + ni2_x + ni3_x, + nite_x + nimo_x + ne1_x + nee_x + no1_x + no2_x + node_x + noni_x, + nomi_x + nominrz_x + ha_x + hazu_x + ba_x + bakari_x + he_x + hou_x, + hoka_x + hodo_x + made_x + mama_x + mo1_x + mo2_x + motte_x + mono_x, + ya1_x + ya2_x + yara_x + yue_x + yo_x + yori_x + wa_x + wake_x, + wane_x + wayo_x + nn1_x + jya_o + tya_x + nagara2_x + wo_s_x, + ze_x + kke_x + n_si_x + deha_x, + + gotosi_x + saseru_x + zaru_x + zu_x + zunba_x + seru_x + souda_x + youtai_x, + denbun_x + ta_x + tai_x + tagaru_x + taru_x + da1_x + da2_o + daxtu_o, + darou_o + de_o + desi_o + desho_o + desu_o + na2_x + nara_o + nai_x, + nu_x + ne2_x + nn2_x + fuuda_x + besi_x + mai_x + masu_x + masure_x, + mase_x + mitaida_x + you_x + youda_x + rasii_x + rareru_x + reru_x + site_x, + + yougen_x + aru_x + ara_x + ari1_x + ari2_x + ari3_x + are1_x + are2_x, + arou_x + ii_x + itasi_x + itadaku_x + iru_x + eru_x + kakeru_x + kaneru_x, + karazu_x + gatai_x + gatida_x + kudasaru_x + gozai_x + sa1_x + si1_x + siro_x, + jyau_x + jimau_x + sugiru_x + subesi_x + suru_x + sure_x + se_x + seyo_x, + tamau_x + tayu_x + timau_x + dekiru_x + naru_x + nasai_x + nasaru_x + nikui_x, + yasui_x + yoi_x + yaru_x + ttarasii_x}; + +static u_char aisatu[] = { + wo_o + ttatte_x + ttara_x + tte1_o + tte2_x + ppanasi_x + ppoi_x + ue_x, + uti_x + oite_x + okeru_x + ori_x + ka1_x + ka2_x + kai_x + kasira_x, + katagata_x + kadouka_x + kana_x + kane_x + kamo_x + kara1_x + kara2_x + ga1_x, + ga2_x + gatera_x + kiri_x + kuseni_x + kurai_x + gurumi_x + kedo_x + koso_x, + koto_x + sa2_x + sae_x + si2_x + sika_x + sura_x + zutu_x + zo_x, + tame_x + dake_x + dano_x + darake_x + tuite_x + tuki_x + tutu_x + tumori_x, + te1_x + te2_x + teru_x + dearou_x + deru_x + to1_x + to2_o + totte_x, + toiu_o + toori_x + toki_x + tokoro_x + tote_x + tohaie_x + tomo_x + do_x, + doori_x + dokoro_x + dokoroka_x + domo_x + na1_x + naa_x + nagara_x + nazo_x, + nado_x + nari_x + nanka_x + nanzo_x + nante_x + ni1_x + ni2_x + ni3_x, + nite_x + nimo_x + ne1_x + nee_x + no1_x + no2_x + node_x + noni_x, + nomi_x + nominrz_x + ha_x + hazu_x + ba_x + bakari_x + he_x + hou_x, + hoka_x + hodo_x + made_x + mama_x + mo1_x + mo2_x + motte_x + mono_x, + ya1_x + ya2_x + yara_x + yue_x + yo_x + yori_x + wa_x + wake_x, + wane_x + wayo_x + nn1_x + jya_x + tya_x + nagara2_x + wo_s_x, + ze_x + kke_x + n_si_x + deha_o, + + gotosi_x + saseru_x + zaru_x + zu_x + zunba_x + seru_x + souda_x + youtai_x, + denbun_x + ta_x + tai_x + tagaru_x + taru_x + da1_x + da2_x + daxtu_x, + darou_x + de_x + desi_x + desho_x + desu_x + na2_x + nara_x + nai_x, + nu_x + ne2_x + nn2_x + fuuda_x + besi_x + mai_x + masu_x + masure_x, + mase_x + mitaida_x + you_x + youda_x + rasii_x + rareru_x + reru_x + site_x, + + yougen_x + aru_x + ara_x + ari1_x + ari2_x + ari3_x + are1_x + are2_x, + arou_x + ii_x + itasi_x + itadaku_x + iru_x + eru_x + kakeru_x + kaneru_x, + karazu_x + gatai_x + gatida_x + kudasaru_x + gozai_o + sa1_x + si1_x + siro_x, + jyau_x + jimau_x + sugiru_x + subesi_x + suru_x + sure_x + se_x + seyo_x, + tamau_x + tayu_x + timau_x + dekiru_x + naru_x + nasai_x + nasaru_x + nikui_x, + yasui_x + yoi_x + yaru_x + ttarasii_x}; + +static u_char kosodo[] = { + wo_x + ttatte_x + ttara_x + tte1_x + tte2_x + ppanasi_x + ppoi_x + ue_x, + uti_x + oite_x + okeru_x + ori_x + ka1_o + ka2_x + kai_x + kasira_o, + katagata_x + kadouka_x + kana_o + kane_x + kamo_o + kara1_x + kara2_x + ga1_x, + ga2_x + gatera_x + kiri_x + kuseni_x + kurai_x + gurumi_x + kedo_x + koso_x, + koto_x + sa2_o + sae_o + si2_x + sika_o + sura_o + zutu_x + zo_x, + tame_x + dake_x + dano_x + darake_x + tuite_x + tuki_x + tutu_x + tumori_x, + te1_x + te2_x + teru_x + dearou_x + deru_x + to1_x + to2_x + totte_x, + toiu_x + toori_x + toki_x + tokoro_x + tote_x + tohaie_x + tomo_x + do_x, + doori_x + dokoro_x + dokoroka_x + domo_x + na1_x + naa_x + nagara_x + nazo_o, + nado_o + nari_x + nanka_o + nanzo_o + nante_o + ni1_x + ni2_x + ni3_x, + nite_x + nimo_o + ne1_o + nee_o + no1_x + no2_x + node_x + noni_x, + nomi_x + nominrz_x + ha_o + hazu_x + ba_x + bakari_x + he_x + hou_x, + hoka_x + hodo_x + made_x + mama_x + mo1_o + mo2_x + motte_x + mono_x, + ya1_x + ya2_x + yara_x + yue_x + yo_o + yori_x + wa_x + wake_x, + wane_x + wayo_x + nn1_x + jya_o + tya_x + nagara2_x + wo_s_x, + ze_x + kke_x + n_si_x + deha_x, + + gotosi_x + saseru_x + zaru_x + zu_x + zunba_x + seru_x + souda_x + youtai_x, + denbun_x + ta_x + tai_x + tagaru_x + taru_x + da1_x + da2_o + daxtu_o, + darou_o + de_o + desi_o + desho_o + desu_o + na2_o + nara_o + nai_x, + nu_x + ne2_x + nn2_x + fuuda_x + besi_x + mai_x + masu_x + masure_x, + mase_x + mitaida_x + you_x + youda_x + rasii_o + rareru_x + reru_x + site_x, + + yougen_x + aru_x + ara_x + ari1_x + ari2_x + ari3_x + are1_x + are2_x, + arou_x + ii_x + itasi_x + itadaku_x + iru_x + eru_x + kakeru_x + kaneru_x, + karazu_x + gatai_x + gatida_x + kudasaru_x + gozai_x + sa1_o + si1_o + siro_o, + jyau_x + jimau_x + sugiru_x + subesi_o + suru_o + sure_o + se_o + seyo_o, + tamau_x + tayu_x + timau_x + dekiru_o + naru_o + nasai_x + nasaru_x + nikui_x, + yasui_x + yoi_x + yaru_x + ttarasii_x}; + +static u_char site[] = { + wo_x + ttatte_x + ttara_x + tte1_x + tte2_x + ppanasi_x + ppoi_x + ue_x, + uti_x + oite_x + okeru_x + ori_x + ka1_x + ka2_x + kai_x + kasira_x, + katagata_x + kadouka_x + kana_x + kane_x + kamo_x + kara1_x + kara2_x + ga1_x, + ga2_x + gatera_x + kiri_x + kuseni_x + kurai_x + gurumi_x + kedo_x + koso_x, + koto_x + sa2_x + sae_x + si2_x + sika_x + sura_x + zutu_x + zo_x, + tame_x + dake_x + dano_x + darake_x + tuite_x + tuki_x + tutu_x + tumori_x, + te1_x + te2_x + teru_x + dearou_x + deru_x + to1_x + to2_x + totte_x, + toiu_x + toori_x + toki_x + tokoro_x + tote_x + tohaie_x + tomo_x + do_x, + doori_x + dokoro_x + dokoroka_x + domo_x + na1_x + naa_x + nagara_x + nazo_x, + nado_x + nari_x + nanka_x + nanzo_x + nante_x + ni1_x + ni2_x + ni3_x, + nite_x + nimo_x + ne1_x + nee_x + no1_x + no2_x + node_x + noni_x, + nomi_x + nominrz_x + ha_o + hazu_x + ba_x + bakari_x + he_x + hou_x, + hoka_x + hodo_x + made_x + mama_x + mo1_o + mo2_x + motte_x + mono_x, + ya1_x + ya2_x + yara_x + yue_x + yo_x + yori_x + wa_x + wake_x, + wane_x + wayo_x + nn1_x + jya_x + tya_x + nagara2_x + wo_s_x, + ze_x + kke_x + n_si_x + deha_x, + + gotosi_x + saseru_x + zaru_x + zu_x + zunba_x + seru_x + souda_x + youtai_x, + denbun_x + ta_x + tai_x + tagaru_x + taru_x + da1_x + da2_x + daxtu_x, + darou_x + de_x + desi_x + desho_x + desu_x + na2_x + nara_x + nai_x, + nu_x + ne2_x + nn2_x + fuuda_x + besi_x + mai_x + masu_x + masure_x, + mase_x + mitaida_x + you_x + youda_x + rasii_x + rareru_x + reru_x + site_x, + + yougen_x + aru_x + ara_x + ari1_x + ari2_x + ari3_x + are1_x + are2_x, + arou_x + ii_x + itasi_x + itadaku_x + iru_x + eru_x + kakeru_x + kaneru_x, + karazu_x + gatai_x + gatida_x + kudasaru_x + gozai_x + sa1_x + si1_x + siro_x, + jyau_x + jimau_x + sugiru_x + subesi_x + suru_x + sure_x + se_x + seyo_x, + tamau_x + tayu_x + timau_x + dekiru_x + naru_x + nasai_x + nasaru_x + nikui_x, + yasui_x + yoi_x + yaru_x + ttarasii_x}; + +static u_char n_si[] = { + wo_x + ttatte_x + ttara_x + tte1_x + tte2_x + ppanasi_o + ppoi_x + ue_x, + uti_x + oite_x + okeru_x + ori_x + ka1_x + ka2_x + kai_x + kasira_x, + katagata_x + kadouka_x + kana_x + kane_x + kamo_x + kara1_x + kara2_x + ga1_x, + ga2_x + gatera_o + kiri_x + kuseni_x + kurai_x + gurumi_x + kedo_x + koso_x, + koto_x + sa2_x + sae_o + si2_x + sika_x + sura_x + zutu_x + zo_x, + tame_x + dake_x + dano_x + darake_x + tuite_x + tuki_x + tutu_o + tumori_x, + te1_x + te2_o + teru_o + dearou_x + deru_x + to1_x + to2_x + totte_x, + toiu_x + toori_x + toki_x + tokoro_x + tote_x + tohaie_x + tomo_x + do_x, + doori_x + dokoro_x + dokoroka_x + domo_x + na1_o + naa_x + nagara_x + nazo_x, + nado_x + nari_x + nanka_x + nanzo_x + nante_x + ni1_x + ni2_o + ni3_x, + nite_x + nimo_x + ne1_x + nee_x + no1_x + no2_x + node_x + noni_x, + nomi_x + nominrz_x + ha_x + hazu_x + ba_x + bakari_x + he_x + hou_x, + hoka_x + hodo_x + made_x + mama_x + mo1_x + mo2_x + motte_x + mono_x, + ya1_x + ya2_x + yara_x + yue_x + yo_x + yori_x + wa_x + wake_x, + wane_x + wayo_x + nn1_x + jya_x + tya_o + nagara2_o + wo_s_x, + ze_x + kke_x + n_si_x + deha_x, + + gotosi_x + saseru_x + zaru_x + zu_x + zunba_x + seru_x + souda_o + youtai_o, + denbun_x + ta_o + tai_o + tagaru_x + taru_x + da1_x + da2_x + daxtu_x, + darou_x + de_x + desi_x + desho_x + desu_x + na2_x + nara_x + nai_o, + nu_x + ne2_x + nn2_x + fuuda_x + besi_x + mai_o + masu_o + masure_o, + mase_x + mitaida_x + you_o + youda_x + rasii_x + rareru_x + reru_x + site_x, + + yougen_x + aru_x + ara_x + ari1_x + ari2_x + ari3_x + are1_x + are2_x, + arou_x + ii_o + itasi_x + itadaku_x + iru_x + eru_x + kakeru_o + kaneru_o, + karazu_x + gatai_o + gatida_o + kudasaru_x + gozai_x + sa1_x + si1_x + siro_x, + jyau_x + jimau_x + sugiru_x + subesi_x + suru_x + sure_x + se_x + seyo_x, + tamau_x + tayu_o + timau_x + dekiru_x + naru_x + nasai_o + nasaru_o + nikui_o, + yasui_o + yoi_x + yaru_x + ttarasii_x}; + +u_char connadr[] = { + 0, + R_MEISI, + R_MEISI, + R_MEISI, + R_MEISI, + 0, + 0, + 0, + 0, + 0, + 0, + R_MEISI, + + R_DAIMEISI, + R_DAIMEISI, + R_WO_MEISI, + 0, + 0, + R_DAIMEISI6, + + 0, + 0, + 0, + + R_MEISI, + R_MEISI, + R_MEISI, + R_MEISI, + R_MEISI, + R_RENTAISI, + R_SETUZOKU, + R_KANDOU, + R_JOSUUSI, + R_SUUSI, + + R_SETTOU, + R_SETTOU, + R_SETTOU, + R_SETTOU, + R_SETTOU, + + R_MEISI, + R_MEISI, + R_MEISI, + R_MEISI, + 0, + 0, + 0, + 0, + R_MEISI, + + R_FUKUSI, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + R_JOSUUSI, + + 0, + 0, + 0, + 0, + 0, + + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + + 0, + 0, + + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + + 0, + 0, + + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + + 0, + 0, + + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + + R_MIZEN1, + R_MIZEN2, + R_SI1, + R_SHUUSI, + R_KATEI2, + R_MEIREI1, + R_MEIREI2, + R_KO, + R_KI, + R_SHUUSI, + R_KATEI2, + R_MEIREI1, + R_KUDASAI, + R_GOZAI, + R_ONBIN2, + R_KOSODO, + R_AISATU, + R_KSHUUSI, + R_TANKAN, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + R_MEISI}; + +u_char* rigtadr[] = { + 0, + de, + wo, + kara1, + ga1, + to1, + ni1, + no1, + ha, + he, + mo1, + ya1, + yori1, + sae, + sika, + dake, + i, + e, + kake, + kane2, + sugi, + deki, + mi, + sase, + rare, + itadake, + exp, + renyou1, + renyou5, + sa5renyou1, + renyou3, + renyou7, + sa5renyou3, + renyou4, + renyou8, + sa5renyou4, + 0, + 0, + 0, + krenyou, + drenyou1, + drenyou2, + drenyou3, + onbin1, + onbin2, + onbin3, + deshi, + axtu, + onbin6, + onbin8, + ari1, + ari2, + ari3, + iki, + itasi, + itadaki, + ori2, + gataku, + ki, + kudasai, + gozai, + gotoku, + beku, + soude, + souni, + tagari, + taku, + mizen1, + naide, + naku, + nasai, + fuuni, + yori2, + rashuu, + dshuusi1, + dshuusi2, + gotosi, + besi, + zu, + souda, + mai, + mitaida, + shuusi, + kshuusi, + zaru, + soudesu, + ta, + tai, + desu, + nai, + nu, + masu, + nn2, + rasii, + drentai1, + drentai2, + drentai3, + krentai, + gotoki, + beki, + souna1, + souna2, + na2, + katei1, + katei2, + katei3, + kamei, + ike, + kure, + meirei1, + meirei2, + dgokan, + kgokan, + sgokan, + gati, + jya, + sou, + mitai, + yotte, + you2, + sho, + meisi, + aisatu, + kosodo, + you1, + si1, + meisi, + meisi, + fzkki, + deha, + nagara2, + wo_s, + wo_meisi, + site, + n_si, + cut, + 0, + cut, + 0, 0, + mizen2, + mizen3, + mizen4, + si1, + ji, + age, + mizen5, + arou, + karou, + darou, + deshou, + ko, + bekara, + tagara, + shuujo, + ttatte, + ttara, + tte1, + tte2, + ppanasi, + ppoi, + ue, + uti, + oite, + okeru, + ori, + ka1, + ka2, + katagata, + kadouka, + kamo, + kara2, + ga2, + gatera, + kiri, + kuseni, + kurai, + gurumi, + kedo, + koso, + koto, + si2, + sura, + zutu, + tame, + tari, + dano, + darake, + tuite, + tuki, + tutu, + tumori, + te1, + te2, + teru, + to2, + totte, + toiu, + toori, + toki, + tokoro, + tote, + tohaie, + tomo, + fdo, + doori, + dokoro, + dokoroka, + domo, + nagara, + nazo, + nado, + nari, + nanka, + nanzo, + nante, + ni2, + ni3, + nite, + nimo, + no2, + node, + noni, + nomi, + nominrz, + hazu, + ba, + bakari, + hou, + hoka, + hodo, + made, + mama, + mo2, + motte, + mono, + ya2, + yara, + yue, + wake, + nn1, + josuusi, + cut, + cut, + cut, + cut, + cut, + meisi, + dmeisi, + smeisi1, + smeisi2, + kstb, + ichisetubi, + josuusi, + rentaisi, + cut}; diff --git a/lib/sj3core/cvtclknj.c b/lib/sj3core/cvtclknj.c index 74626ee..d22b1a7 100644 --- a/lib/sj3core/cvtclknj.c +++ b/lib/sj3core/cvtclknj.c @@ -1,6 +1,6 @@ /* * Copyright (c) 1991-1994 Sony Corporation - * + * * Permission is hereby granted, free of charge, to any person obtaining * a copy of this software and associated documentation files (the * "Software"), to deal in the Software without restriction, including @@ -8,10 +8,10 @@ * distribute, sublicense, and/or sell copies of the Software, and to * permit persons to whom the Software is furnished to do so, subject to * the following conditions: - * + * * The above copyright notice and this permission notice shall be * included in all copies or substantial portions of the Software. - * + * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. @@ -19,7 +19,7 @@ * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR * THE USE OR OTHER DEALINGS IN THE SOFTWARE. - * + * * Except as contained in this notice, the name of Sony Corporation * shall not be used in advertising or otherwise to promote the sale, use * or other dealings in this Software without prior written authorization @@ -28,41 +28,30 @@ */ /* - * $SonyRCSfile: cvtclknj.c,v $ - * $SonyRevision: 1.1 $ + * $SonyRCSfile: cvtclknj.c,v $ + * $SonyRevision: 1.1 $ * $SonyDate: 1994/06/03 08:01:38 $ */ - - - - #include "sj_kcnv.h" #include "sj_kanakan.h" -void -cvtclknj() -{ - KHREC *krec; - int i; +void cvtclknj() { + KHREC* krec; + int i; - + if(!selectid) selectid = khcount; - - if (!selectid) selectid = khcount; + i = khcount; + krec = kouhotbl; - i = khcount; - krec = kouhotbl; - - while (i--) { - if ((int)krec -> rank == (int)selectid) break; + while(i--) { + if((int)krec->rank == (int)selectid) break; krec++; } - setstyrec(krec); - cvtkouho(krec); } diff --git a/lib/sj3core/cvtdict.c b/lib/sj3core/cvtdict.c index 46224be..42720f8 100644 --- a/lib/sj3core/cvtdict.c +++ b/lib/sj3core/cvtdict.c @@ -1,6 +1,6 @@ /* * Copyright (c) 1991-1994 Sony Corporation - * + * * Permission is hereby granted, free of charge, to any person obtaining * a copy of this software and associated documentation files (the * "Software"), to deal in the Software without restriction, including @@ -8,10 +8,10 @@ * distribute, sublicense, and/or sell copies of the Software, and to * permit persons to whom the Software is furnished to do so, subject to * the following conditions: - * + * * The above copyright notice and this permission notice shall be * included in all copies or substantial portions of the Software. - * + * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. @@ -19,7 +19,7 @@ * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR * THE USE OR OTHER DEALINGS IN THE SOFTWARE. - * + * * Except as contained in this notice, the name of Sony Corporation * shall not be used in advertising or otherwise to promote the sale, use * or other dealings in this Software without prior written authorization @@ -28,79 +28,66 @@ */ /* - * $SonyRCSfile: cvtdict.c,v $ - * $SonyRevision: 1.1 $ + * $SonyRCSfile: cvtdict.c,v $ + * $SonyRevision: 1.1 $ * $SonyDate: 1994/06/03 08:01:40 $ */ - - - #include "sj_euc.h" #include "sj_kcnv.h" #include "sj_kanakan.h" -void -cvtdict(KHREC *krec, CLREC *clrec, int flg) -{ - TypeDicOfs ofs; - u_char *yptr; - int jlen; - int stblen; - int sttlen; - u_char *fptr; - int cllen; - JREC *jrec; - int i, j; +void cvtdict(KHREC* krec, CLREC* clrec, int flg) { + TypeDicOfs ofs; + u_char* yptr; + int jlen; + int stblen; + int sttlen; + u_char* fptr; + int cllen; + JREC* jrec; + int i, j; - - ofs = krec -> offs; - jrec = clrec -> jnode; - cllen = clrec -> cllen; + ofs = krec->offs; + jrec = clrec->jnode; + cllen = clrec->cllen; yptr = inputyomi; - - jlen = jrec -> jlen; + jlen = jrec->jlen; - - if (i = jrec -> sttofs) { - - if (i == SETTOU_KIGOU) { + if(i = jrec->sttofs) { + + if(i == SETTOU_KIGOU) { sttlen = 1; - fptr = yptr; + fptr = yptr; } - else { - fptr = Settou_ptr(i); + fptr = Settou_ptr(i); sttlen = SttYomiLen(fptr); - fptr++; - if (!krec -> sttkj) fptr += 2; + fptr++; + if(!krec->sttkj) fptr += 2; } *kanjitmp++ = *fptr++; *kanjitmp++ = *fptr++; jlen -= sttlen; - yptr += sttlen * 2; + yptr += sttlen * 2; } - else sttlen = 0; - - if (flg) { - + if(flg) { + (*Cvtnum_func[krec->mode - 1])(ystart + sttlen, yptr, jrec); - - yptr += (i = jrec -> numlen) * 2; + yptr += (i = jrec->numlen) * 2; jlen -= i; - - if (jrec -> stbofs) { + if(jrec->stbofs) { *kanjitmp++ = *yptr++; *kanjitmp++ = *yptr++; jlen--; @@ -109,71 +96,60 @@ cvtdict(KHREC *krec, CLREC *clrec, int flg) stblen = 0; } - - else if ((i = jrec -> stbofs) && (fptr = getstb(jrec -> hinsi))) { + else if((i = jrec->stbofs) && (fptr = getstb(jrec->hinsi))) { fptr += i - 1; stblen = StbYomiLen(fptr); jlen -= stblen; } - else { stblen = 0; } - - if (ofs) { - if (seldict(jrec -> dicid)) { - (*curdict->getdic)(curdict, jrec -> jseg); + if(ofs) { + if(seldict(jrec->dicid)) { + (*curdict->getdic)(curdict, jrec->jseg); get_askknj(); kanjitmp += - getkanji(yptr, jlen, dicbuf + ofs, kanjitmp); + getkanji(yptr, jlen, dicbuf + ofs, kanjitmp); yptr += jlen * 2; - } - else { - while (jlen-- > 0) { - for ( i = 0; i < euc_codesize(*yptr); i++) - *kanjitmp++ = yptr[i]; + } else { + while(jlen-- > 0) { + for(i = 0; i < euc_codesize(*yptr); i++) + *kanjitmp++ = yptr[i]; yptr += euc_codesize(*yptr); } } } - - if (stblen) { - i = StbKnjLen(fptr); + if(stblen) { + i = StbKnjLen(fptr); fptr += stblen + 2; - while (i-- > 0) *kanjitmp++ = *fptr++; + while(i-- > 0) *kanjitmp++ = *fptr++; yptr += stblen * 2; } - - i = cllen - (jrec -> jlen); - while (i-- > 0) { - for ( j = 0; j < euc_codesize(*yptr); j++) - *kanjitmp++ = yptr[j]; + i = cllen - (jrec->jlen); + while(i-- > 0) { + for(j = 0; j < euc_codesize(*yptr); j++) + *kanjitmp++ = yptr[j]; yptr += euc_codesize(*yptr); } } +void cvtminasi(int len) { + u_char* ptr; + ptr = inputyomi; -void -cvtminasi(int len) -{ - u_char *ptr; + while(len-- > 0) { - ptr = inputyomi; - - while (len-- > 0) { - - - if (isknj1(*ptr)) { + if(isknj1(*ptr)) { *kanjitmp++ = *ptr++; *kanjitmp++ = *ptr++; } - - else if (*ptr == SS3) { + + else if(*ptr == SS3) { *kanjitmp++ = *ptr++; *kanjitmp++ = *ptr++; *kanjitmp++ = *ptr++; @@ -183,40 +159,32 @@ cvtminasi(int len) } } - - -void -cvtwakachi(CLREC *clrec) -{ - int jlen; - u_char *ym; +void cvtwakachi(CLREC* clrec) { + int jlen; + u_char* ym; int cnt; u_char ch; - ym = inputyomi; + ym = inputyomi; - - cnt = jlen = clrec -> jnode -> jlen; - while (cnt-- > 0) { - if (isknj1(*ym)) { - - if (*ym == 0xa4) { + cnt = jlen = clrec->jnode->jlen; + while(cnt-- > 0) { + if(isknj1(*ym)) { + + if(*ym == 0xa4) { ch = *++ym; - if (0xa1 <= ch && ch <= 0xf3) { + if(0xa1 <= ch && ch <= 0xf3) { *kanjitmp++ = 0xa5; - } - else { + } else { *kanjitmp++ = 0xa4; } *kanjitmp++ = ch; ym++; - } - else { + } else { *kanjitmp++ = *ym++; *kanjitmp++ = *ym++; } - } - else if (*ym == SS3) { + } else if(*ym == SS3) { *kanjitmp++ = *ym++; *kanjitmp++ = *ym++; *kanjitmp++ = *ym++; @@ -225,20 +193,18 @@ cvtwakachi(CLREC *clrec) } } - - cnt = clrec -> cllen - jlen; - while (cnt-- > 0) { + cnt = clrec->cllen - jlen; + while(cnt-- > 0) { - - if (isknj1(*ym)) { + if(isknj1(*ym)) { *kanjitmp++ = *ym++; *kanjitmp++ = *ym++; } - - else if (*ym == SS3) { + + else if(*ym == SS3) { + *kanjitmp++ = *ym++; + *kanjitmp++ = *ym++; *kanjitmp++ = *ym++; - *kanjitmp++ = *ym++; - *kanjitmp++ = *ym++; } else { *kanjitmp++ = *ym++; } diff --git a/lib/sj3core/cvtkanji.c b/lib/sj3core/cvtkanji.c index 5317d99..e77c8f0 100644 --- a/lib/sj3core/cvtkanji.c +++ b/lib/sj3core/cvtkanji.c @@ -1,6 +1,6 @@ /* * Copyright (c) 1991-1994 Sony Corporation - * + * * Permission is hereby granted, free of charge, to any person obtaining * a copy of this software and associated documentation files (the * "Software"), to deal in the Software without restriction, including @@ -8,10 +8,10 @@ * distribute, sublicense, and/or sell copies of the Software, and to * permit persons to whom the Software is furnished to do so, subject to * the following conditions: - * + * * The above copyright notice and this permission notice shall be * included in all copies or substantial portions of the Software. - * + * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. @@ -19,7 +19,7 @@ * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR * THE USE OR OTHER DEALINGS IN THE SOFTWARE. - * + * * Except as contained in this notice, the name of Sony Corporation * shall not be used in advertising or otherwise to promote the sale, use * or other dealings in this Software without prior written authorization @@ -28,179 +28,148 @@ */ /* - * $SonyRCSfile: cvtkanji.c,v $ - * $SonyRevision: 1.1 $ + * $SonyRCSfile: cvtkanji.c,v $ + * $SonyRevision: 1.1 $ * $SonyDate: 1994/06/03 08:01:41 $ */ - - - - #include "sj_kcnv.h" #include "sj_kanakan.h" -void -cvtphknj() -{ - int i, j; - CLREC *clrec; - CLREC *clkp; +void cvtphknj() { + int i, j; + CLREC* clrec; + CLREC* clkp; - if (!kanjilen) goto not_enough_memory; + if(!kanjilen) goto not_enough_memory; khcount = 0; - clkp = NULL; + clkp = NULL; stdytop = NULL; - clrec = clt1st; - while (clrec) { - if (ph_khtbl(clrec)) clkp = clrec; - clrec = clrec -> clsort; - } + clrec = clt1st; + while(clrec) { + if(ph_khtbl(clrec)) clkp = clrec; + clrec = clrec->clsort; + } - - if (clkp && stdytop) { - - if (stdytop -> nmflg) - ph_setkouho(clkp, (TypeDicOfs)0, (STDYIN *)0); - } + if(clkp && stdytop) { + + if(stdytop->nmflg) + ph_setkouho(clkp, (TypeDicOfs)0, (STDYIN*)0); + } kouhotbl[0].rank = 1; - kanjitmp = kanjibuf + 1; - setstyrec(kouhotbl); - cvtkouho(kouhotbl); - i = kanjitmp - kanjibuf; - if (i < kanjilen) { - + if(i < kanjilen) { + kanjilen -= i; - - ystart += clt1st -> cllen; + ystart += clt1st->cllen; - j = hzstrlen(inputyomi, (int)clt1st -> cllen); + j = hzstrlen(inputyomi, (int)clt1st->cllen); kanjibuf[0] = (u_char)j; - inputyomi += j; - memcpy(kanjipos, kanjibuf, i); kanjipos += i; - } - else + } else kanjilen = 0; not_enough_memory: - free_clall(clt1st); - free_jall (jrt1st); + free_jall(jrt1st); } +void cvtkouho(KHREC* krec) { + CLREC* clrec; + clrec = krec->clrec; -void -cvtkouho(KHREC *krec) -{ - CLREC *clrec; - - clrec = krec -> clrec; - - - switch (clrec -> jnode -> class) { - case C_DICT: + switch(clrec->jnode->class) { + case C_DICT: cvtdict(krec, clrec, FALSE); break; - case C_N_ARABIA: - case C_N_ARACMA: - case C_N_KAZU: - case C_N_SUUJI: - case C_N_NANSUU: - case C_N_KANKURA: - case C_N_ARAKURA: - case C_N_KAZULONG: - case C_N_KAZULCMA: - case C_N_SUUJILONG: + case C_N_ARABIA: + case C_N_ARACMA: + case C_N_KAZU: + case C_N_SUUJI: + case C_N_NANSUU: + case C_N_KANKURA: + case C_N_ARAKURA: + case C_N_KAZULONG: + case C_N_KAZULCMA: + case C_N_SUUJILONG: cvtdict(krec, clrec, TRUE); break; - case C_BUNSETU : - case C_MINASI : - cvtminasi((int)clrec -> cllen); + case C_BUNSETU: + case C_MINASI: + cvtminasi((int)clrec->cllen); break; - case C_WAKACHI : + case C_WAKACHI: cvtwakachi(clrec); break; } - *kanjitmp++ = 0; } - - -void -setstyrec(KHREC *krec) -{ - JREC *jrec; - KHREC *kptr; +void setstyrec(KHREC* krec) { + JREC* jrec; + KHREC* kptr; int ii; - u_char *fptr; - STDYOUT stdy; + u_char* fptr; + STDYOUT stdy; - jrec = krec -> clrec -> jnode; + jrec = krec->clrec->jnode; - - if (krec -> mode && !krec -> offs) { - - for (ii = khcount, kptr = kouhotbl ; ii--; kptr++) - if (kptr -> rank == 1) break; + if(krec->mode && !krec->offs) { - - stdy.stdy1.offset = kptr -> offs; - stdy.stdy1.seg = kptr -> clrec -> jnode -> jseg; - stdy.stdy1.styno = kptr -> styno; - stdy.stdy1.dicid = kptr -> clrec -> jnode -> dicid; + for(ii = khcount, kptr = kouhotbl; ii--; kptr++) + if(kptr->rank == 1) break; + + stdy.stdy1.offset = kptr->offs; + stdy.stdy1.seg = kptr->clrec->jnode->jseg; + stdy.stdy1.styno = kptr->styno; + stdy.stdy1.dicid = kptr->clrec->jnode->dicid; stdy.stdy1.nmflg = 1; } - + else { - stdy.stdy1.offset = krec -> offs; - stdy.stdy1.seg = jrec -> jseg; - stdy.stdy1.styno = krec -> styno; - stdy.stdy1.dicid = jrec -> dicid; + stdy.stdy1.offset = krec->offs; + stdy.stdy1.seg = jrec->jseg; + stdy.stdy1.styno = krec->styno; + stdy.stdy1.dicid = jrec->dicid; stdy.stdy1.nmflg = 0; } - stdy.stdy1.sttkj = krec -> sttkj; - stdy.stdy1.ka_kj = krec -> ka_kj; - stdy.hinshi = jrec -> hinsi; - stdy.len = jrec -> jlen; - stdy.sttfg = krec -> sttfg; - stdy.ka_fg = krec -> ka_fg; + stdy.stdy1.sttkj = krec->sttkj; + stdy.stdy1.ka_kj = krec->ka_kj; + stdy.hinshi = jrec->hinsi; + stdy.len = jrec->jlen; + stdy.sttfg = krec->sttfg; + stdy.ka_fg = krec->ka_fg; - - if (jrec -> stbofs && (fptr = getstb(jrec -> hinsi))) - stdy.len -= StbYomiLen(fptr + jrec -> stbofs - 1); + if(jrec->stbofs && (fptr = getstb(jrec->hinsi))) + stdy.len -= StbYomiLen(fptr + jrec->stbofs - 1); - - if (fptr = Settou_ptr(jrec -> sttofs)) + if(fptr = Settou_ptr(jrec->sttofs)) stdy.sttlen = SttYomiLen(fptr); else stdy.sttlen = 0; - - memcpy(kanjitmp, (u_char *)&stdy, sizeof(STDYOUT)); + memcpy(kanjitmp, (u_char*)&stdy, sizeof(STDYOUT)); kanjitmp += sizeof(STDYOUT); } diff --git a/lib/sj3core/deldic.c b/lib/sj3core/deldic.c index 3cc6403..0fcc21b 100644 --- a/lib/sj3core/deldic.c +++ b/lib/sj3core/deldic.c @@ -1,6 +1,6 @@ /* * Copyright (c) 1991-1994 Sony Corporation - * + * * Permission is hereby granted, free of charge, to any person obtaining * a copy of this software and associated documentation files (the * "Software"), to deal in the Software without restriction, including @@ -8,10 +8,10 @@ * distribute, sublicense, and/or sell copies of the Software, and to * permit persons to whom the Software is furnished to do so, subject to * the following conditions: - * + * * The above copyright notice and this permission notice shall be * included in all copies or substantial portions of the Software. - * + * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. @@ -19,7 +19,7 @@ * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR * THE USE OR OTHER DEALINGS IN THE SOFTWARE. - * + * * Except as contained in this notice, the name of Sony Corporation * shall not be used in advertising or otherwise to promote the sale, use * or other dealings in this Software without prior written authorization @@ -28,81 +28,72 @@ */ /* - * $SonyRCSfile: deldic.c,v $ - * $SonyRevision: 1.1 $ + * $SonyRCSfile: deldic.c,v $ + * $SonyRevision: 1.1 $ * $SonyDate: 1994/06/03 08:01:42 $ */ - - - #include #include "sj_kcnv.h" #include "sj_kanakan.h" -static int del_douon(TypeDicSeg, u_char *, TypeDicOfs); -static int del_segment(TypeDicSeg); +static int del_douon(TypeDicSeg, u_char*, TypeDicOfs); +static int del_segment(TypeDicSeg); static void del_uidx(TypeDicSeg); static void del_stdy(TypeDicSeg, TypeDicOfs, int); +u_int deldic(u_char* yomi, u_char* kanji, TypeGram hinsi) { + u_char yptr[MAXWDYOMILEN + 1]; + u_char kptr[MAXWDKANJILEN + 1]; + u_short err; + int knjlen; + TypeDicSeg useg; + TypeDicOfs ofs; + u_char * p1, *p2, *p3; + int dblknum; + int hblknum; + int kblknum; + int samlen; + u_char * stp, *edp; + int size, len; -u_int -deldic(u_char *yomi, u_char *kanji, TypeGram hinsi) -{ - u_char yptr[MAXWDYOMILEN + 1]; - u_char kptr[MAXWDKANJILEN + 1]; - u_short err; - int knjlen; - TypeDicSeg useg; - TypeDicOfs ofs; - u_char *p1, *p2, *p3; - int dblknum; - int hblknum; - int kblknum; - int samlen; - u_char *stp, *edp; - int size, len; - - if (err = addel_arg(yomi, kanji, hinsi, yptr, sizeof(yptr))) + if(err = addel_arg(yomi, kanji, hinsi, yptr, sizeof(yptr))) return err; - if (!curdict -> maxunit) return AD_NOTUSERDICT; + if(!curdict->maxunit) return AD_NOTUSERDICT; knjlen = cvtknj(yomi, kanji, kptr); cnvstart = yptr; - cnvlen = sstrlen(yptr); + cnvlen = sstrlen(yptr); useg = srchidx((TypeDicSeg)DICSEGBASE, cnvlen); (*curdict->getdic)(curdict, useg); - if (!(dblknum = srchkana(&p1, &samlen))) return AD_NOMIDASI; + if(!(dblknum = srchkana(&p1, &samlen))) return AD_NOMIDASI; - if (!(hblknum = srchgram(p1, &p2, hinsi))) return AD_NOHINSI; + if(!(hblknum = srchgram(p1, &p2, hinsi))) return AD_NOHINSI; - p3 = p2; + p3 = p2; kblknum = srchkanji(&p3, kptr, knjlen); - if (*p3 == HINSIBLKTERM) return AD_NOKANJI; + if(*p3 == HINSIBLKTERM) return AD_NOKANJI; ofs = p3 - dicbuf; edp = skipkstr(p3); - if (kblknum == 1) { - if (hblknum == 1) { - if (dblknum == 1) { + if(kblknum == 1) { + if(hblknum == 1) { + if(dblknum == 1) { return del_segment(useg); - } - else { + } else { return del_douon(useg, p1, ofs); } - } - else { + } else { stp = p2; edp++; } - } - else { + } else { stp = p3; } @@ -115,7 +106,7 @@ deldic(u_char *yomi, u_char *kanji, TypeGram hinsi) memset(edp, DICSEGTERM, dicbuf + curdict->seglen - edp); set_size(p1, (int)(getsize(p1) - size), - (int)getplen(p1), (int)getnlen(p1)); + (int)getplen(p1), (int)getnlen(p1)); (*curdict->putdic)(curdict, useg); @@ -124,30 +115,25 @@ deldic(u_char *yomi, u_char *kanji, TypeGram hinsi) return AD_DONE; } - - static int -del_douon(TypeDicSeg seg, u_char *ptr, TypeDicOfs ofs) -{ - u_char *nxt, *p1, *p2; +del_douon(TypeDicSeg seg, u_char* ptr, TypeDicOfs ofs) { + u_char *nxt, *p1, *p2; int size; int nlen, plen, len; nxt = getntag(ptr); - if (segend(nxt)) { + if(segend(nxt)) { size = nxt - ptr; memset(ptr, DICSEGTERM, dicbuf + curdict->seglen - nxt); - } - else { + } else { size = getsize(nxt); nlen = getnlen(nxt); plen = getplen(nxt); - if (ptr == segtop()) { - if (nlen + plen > (unsigned int) count_uidx() - + sstrlen(get_idxptr(seg))) + if(ptr == segtop()) { + if(nlen + plen > (unsigned int)count_uidx() + sstrlen(get_idxptr(seg))) return AD_OVFLWINDEX; } @@ -163,7 +149,7 @@ del_douon(TypeDicSeg seg, u_char *ptr, TypeDicOfs ofs) size = p1 - p2; memset(dicbuf + curdict->seglen - size, DICSEGTERM, size); - if (ptr == segtop()) { + if(ptr == segtop()) { chg_uidx(seg, ptr + DOUONBLKSIZENUMBER, nlen + len); } } @@ -175,25 +161,21 @@ del_douon(TypeDicSeg seg, u_char *ptr, TypeDicOfs ofs) return AD_DONE; } - - static int -del_segment(TypeDicSeg seg) -{ - int i; - STDYIN *styp; - TypeDicID dicid; - TypeStyNum stdynum; - TypeDicSeg sg; +del_segment(TypeDicSeg seg) { + int i; + STDYIN* styp; + TypeDicID dicid; + TypeStyNum stdynum; + TypeDicSeg sg; - if (curdict->segunit > 1) { - for (sg = seg + 1 ; sg < curdict->segunit ; sg++) { + if(curdict->segunit > 1) { + for(sg = seg + 1; sg < curdict->segunit; sg++) { (*curdict->getdic)(curdict, sg); (*curdict->putdic)(curdict, sg - 1); } curdict->segunit--; - } - else { + } else { memset(dicbuf, DICSEGTERM, (int)curdict->seglen); dicbuf[0] = 0; (*curdict->putdic)(curdict, DICSEGBASE); @@ -203,28 +185,28 @@ del_segment(TypeDicSeg seg) del_uidx(seg); - if (StudyExist()) { + if(StudyExist()) { dicid = curdict->dicid; - for (i = 0, styp = STUDYDICT ; i < STUDYCOUNT ; ) { - if (styp -> dicid != dicid) + for(i = 0, styp = STUDYDICT; i < STUDYCOUNT;) { + if(styp->dicid != dicid) ; - else if (styp -> seg > seg) - styp -> seg -= 1; - else if (styp -> seg < seg) + else if(styp->seg > seg) + styp->seg -= 1; + else if(styp->seg < seg) ; else { - stdynum = styp -> styno; + stdynum = styp->styno; STUDYCOUNT--; - mvmemi((u_char *)(styp + 1), (u_char *)styp, - sizeof(*styp) * (STUDYCOUNT - i)); + mvmemi((u_char*)(styp + 1), (u_char*)styp, + sizeof(*styp) * (STUDYCOUNT - i)); continue; } i++; styp++; } - for (i = 0, styp = STUDYDICT ; i < STUDYCOUNT ; i++, styp++) - if (styp -> styno > stdynum) styp -> styno -= 1; + for(i = 0, styp = STUDYDICT; i < STUDYCOUNT; i++, styp++) + if(styp->styno > stdynum) styp->styno -= 1; putstydic(); } @@ -232,17 +214,13 @@ del_segment(TypeDicSeg seg) return AD_DONE; } - - static void -del_uidx(TypeDicSeg seg) -{ - u_char *p, *q; +del_uidx(TypeDicSeg seg) { + u_char *p, *q; int len; p = get_idxptr(seg); - for (q = p ; *q++; ) - ; + for(q = p; *q++;); mvmemi(q, p, idxbuf + curdict->idxlen - q); @@ -254,41 +232,38 @@ del_uidx(TypeDicSeg seg) mkidxtbl(curdict); } - - static void -del_stdy(TypeDicSeg seg, TypeDicOfs ofs, int size) -{ - int i; - TypeStyNum stdynum; - STDYIN *stdy; - TypeDicID dicid; +del_stdy(TypeDicSeg seg, TypeDicOfs ofs, int size) { + int i; + TypeStyNum stdynum; + STDYIN* stdy; + TypeDicID dicid; - if (StudyExist()) { + if(StudyExist()) { stdynum = 0; - dicid = curdict->dicid; - for (i = 0, stdy = STUDYDICT ; i < STUDYCOUNT ; ) { - if (stdy -> dicid != dicid) + dicid = curdict->dicid; + for(i = 0, stdy = STUDYDICT; i < STUDYCOUNT;) { + if(stdy->dicid != dicid) ; - else if (stdy -> seg != seg) + else if(stdy->seg != seg) ; - else if (stdy -> offset > ofs) - stdy -> offset -= size; + else if(stdy->offset > ofs) + stdy->offset -= size; - else if (stdy -> offset == ofs) { - stdynum = stdy -> styno; + else if(stdy->offset == ofs) { + stdynum = stdy->styno; STUDYCOUNT--; - mvmemi((u_char *)(stdy + 1), (u_char *)stdy, - sizeof(*stdy) * (STUDYCOUNT - i)); + mvmemi((u_char*)(stdy + 1), (u_char*)stdy, + sizeof(*stdy) * (STUDYCOUNT - i)); continue; } i++; stdy++; } - for (i = 0, stdy = STUDYDICT ; i < STUDYCOUNT ; i++, stdy++) - if (stdy -> styno > stdynum) (stdy -> styno)--; + for(i = 0, stdy = STUDYDICT; i < STUDYCOUNT; i++, stdy++) + if(stdy->styno > stdynum) (stdy->styno)--; putstydic(); } diff --git a/lib/sj3core/dict.c b/lib/sj3core/dict.c index b273a38..cee6011 100644 --- a/lib/sj3core/dict.c +++ b/lib/sj3core/dict.c @@ -1,6 +1,6 @@ /* * Copyright (c) 1991-1994 Sony Corporation - * + * * Permission is hereby granted, free of charge, to any person obtaining * a copy of this software and associated documentation files (the * "Software"), to deal in the Software without restriction, including @@ -8,10 +8,10 @@ * distribute, sublicense, and/or sell copies of the Software, and to * permit persons to whom the Software is furnished to do so, subject to * the following conditions: - * + * * The above copyright notice and this permission notice shall be * included in all copies or substantial portions of the Software. - * + * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. @@ -19,7 +19,7 @@ * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR * THE USE OR OTHER DEALINGS IN THE SOFTWARE. - * + * * Except as contained in this notice, the name of Sony Corporation * shall not be used in advertising or otherwise to promote the sale, use * or other dealings in this Software without prior written authorization @@ -28,26 +28,20 @@ */ /* - * $SonyRCSfile: dict.c,v $ - * $SonyRevision: 1.1 $ + * $SonyRCSfile: dict.c,v $ + * $SonyRevision: 1.1 $ * $SonyDate: 1994/06/03 08:01:45 $ */ - - - #include "sj_euc.h" #include "sj_kcnv.h" #include "sj_kanakan.h" - -void -get_askknj() -{ - u_char *p; - u_char *q; - u_char *r; +void get_askknj() { + u_char* p; + u_char* q; + u_char* r; int i = 0, csize; int flg; @@ -55,34 +49,30 @@ get_askknj() q += *p++; - while (p < q) { + while(p < q) { askknj[i] = p; - r = NULL; + r = NULL; flg = TRUE; do { csize = codesize(*p); - if (p[csize] == KANJISTREND) flg = FALSE; + if(p[csize] == KANJISTREND) flg = FALSE; - if (!r && (*p != AIATTRIBUTE)) + if(!r && (*p != AIATTRIBUTE)) r = p; p += csize; - } while (flg); + } while(flg); p++; askknj_k[i++] = r; } } +int seldict(TypeDicID id) { + DICTL* dp; - -int -seldict(TypeDicID id) -{ - DICTL *dp; - - for (dp = dictlist ; dp ; dp = dp -> next) { - if ((curdict = dp -> dict) -> dicid == id) + for(dp = dictlist; dp; dp = dp->next) { + if((curdict = dp->dict)->dicid == id) return TRUE; } curdict = NULL; @@ -90,11 +80,8 @@ seldict(TypeDicID id) return FALSE; } - - -u_char * -get_idxptr(TypeDicSeg seg) -{ +u_char* +get_idxptr(TypeDicSeg seg) { (*curdict->getofs)(curdict); (*curdict->getidx)(curdict); diff --git a/lib/sj3core/functbl.c b/lib/sj3core/functbl.c index 58e8919..4877541 100644 --- a/lib/sj3core/functbl.c +++ b/lib/sj3core/functbl.c @@ -1,6 +1,6 @@ /* * Copyright (c) 1991-1994 Sony Corporation - * + * * Permission is hereby granted, free of charge, to any person obtaining * a copy of this software and associated documentation files (the * "Software"), to deal in the Software without restriction, including @@ -8,10 +8,10 @@ * distribute, sublicense, and/or sell copies of the Software, and to * permit persons to whom the Software is furnished to do so, subject to * the following conditions: - * + * * The above copyright notice and this permission notice shall be * included in all copies or substantial portions of the Software. - * + * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. @@ -19,7 +19,7 @@ * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR * THE USE OR OTHER DEALINGS IN THE SOFTWARE. - * + * * Except as contained in this notice, the name of Sony Corporation * shall not be used in advertising or otherwise to promote the sale, use * or other dealings in this Software without prior written authorization @@ -28,54 +28,44 @@ */ /* - * $SonyRCSfile: functbl.c,v $ - * $SonyRevision: 1.1 $ + * $SonyRCSfile: functbl.c,v $ + * $SonyRevision: 1.1 $ * $SonyDate: 1994/06/03 08:01:46 $ */ - - - #include "sj_rename.h" #include "sj_typedef.h" #include "sj_kanakan.h" -VFunc cvtnum_func[] = { - num_type00, num_type01, num_type02, num_type03, - num_type04, num_type05, num_type06, num_type07, - num_type08, num_type09, num_type10, num_type11, - num_type12, num_type13, num_type14 -}; +VFunc cvtnum_func[] = { + num_type00, num_type01, num_type02, num_type03, + num_type04, num_type05, num_type06, num_type07, + num_type08, num_type09, num_type10, num_type11, + num_type12, num_type13, num_type14}; -UCPFunc getkan_func[] = { - getkan_norm, getkan_norm, getkan_hira, getkan_kata, - getkan_knj, getkan_ofs, getkan_norm, getkan_none, - getkan_norm, getkan_norm, getkan_hira, getkan_kata, - getkan_knj, getkan_ofs, getkan_norm, getkan_none -}; +UCPFunc getkan_func[] = { + getkan_norm, getkan_norm, getkan_hira, getkan_kata, + getkan_knj, getkan_ofs, getkan_norm, getkan_none, + getkan_norm, getkan_norm, getkan_hira, getkan_kata, + getkan_knj, getkan_ofs, getkan_norm, getkan_none}; -IFunc setjrec_func[] = { - setj_norm2, setj_norm2, setj_norm1, setj_norm1, - setj_knj, setj_ofs, setj_norm2, setj_atrb, - setj_norm2, setj_norm2, setj_norm1, setj_norm1, - setj_knj, setj_ofs, setj_norm2, setj_atrb -}; +IFunc setjrec_func[] = { + setj_norm2, setj_norm2, setj_norm1, setj_norm1, + setj_knj, setj_ofs, setj_norm2, setj_atrb, + setj_norm2, setj_norm2, setj_norm1, setj_norm1, + setj_knj, setj_ofs, setj_norm2, setj_atrb}; -IFunc hiraknj_func[] = { - hiraknj_hira, hiraknj_norm, hiraknj_hask, hiraknj_kask, - hiraknj_knj, hiraknj_ofs, hiraknj_norm, hiraknj_atrb, - hiraknj_hira, hiraknj_norm, hiraknj_hask, hiraknj_kask, - hiraknj_knj, hiraknj_ofs, hiraknj_norm, hiraknj_atrb -}; +IFunc hiraknj_func[] = { + hiraknj_hira, hiraknj_norm, hiraknj_hask, hiraknj_kask, + hiraknj_knj, hiraknj_ofs, hiraknj_norm, hiraknj_atrb, + hiraknj_hira, hiraknj_norm, hiraknj_hask, hiraknj_kask, + hiraknj_knj, hiraknj_ofs, hiraknj_norm, hiraknj_atrb}; - - -u_char *makekan_1byte(), *makekan_knj(), *makekan_ofs(); -u_char *makekan_norm(), *makekan_none(); -UCPFunc makekan_func[] = { - makekan_norm, makekan_norm, makekan_1byte, makekan_1byte, - makekan_knj, makekan_ofs, makekan_norm, makekan_none, - makekan_norm, makekan_norm, makekan_1byte, makekan_1byte, - makekan_knj, makekan_ofs, makekan_norm, makekan_none -}; +u_char *makekan_1byte(), *makekan_knj(), *makekan_ofs(); +u_char *makekan_norm(), *makekan_none(); +UCPFunc makekan_func[] = { + makekan_norm, makekan_norm, makekan_1byte, makekan_1byte, + makekan_knj, makekan_ofs, makekan_norm, makekan_none, + makekan_norm, makekan_norm, makekan_1byte, makekan_1byte, + makekan_knj, makekan_ofs, makekan_norm, makekan_none}; diff --git a/lib/sj3core/fuzoku.c b/lib/sj3core/fuzoku.c index 0c3425b..5e114bc 100644 --- a/lib/sj3core/fuzoku.c +++ b/lib/sj3core/fuzoku.c @@ -1,6 +1,6 @@ /* * Copyright (c) 1991-1994 Sony Corporation - * + * * Permission is hereby granted, free of charge, to any person obtaining * a copy of this software and associated documentation files (the * "Software"), to deal in the Software without restriction, including @@ -8,10 +8,10 @@ * distribute, sublicense, and/or sell copies of the Software, and to * permit persons to whom the Software is furnished to do so, subject to * the following conditions: - * + * * The above copyright notice and this permission notice shall be * included in all copies or substantial portions of the Software. - * + * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. @@ -19,7 +19,7 @@ * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR * THE USE OR OTHER DEALINGS IN THE SOFTWARE. - * + * * Except as contained in this notice, the name of Sony Corporation * shall not be used in advertising or otherwise to promote the sale, use * or other dealings in this Software without prior written authorization @@ -28,15 +28,11 @@ */ /* - * $SonyRCSfile: fuzoku.c,v $ - * $SonyRevision: 1.1 $ + * $SonyRCSfile: fuzoku.c,v $ + * $SonyRevision: 1.1 $ * $SonyDate: 1994/06/03 08:01:47 $ */ - - - - #include "sj_kcnv.h" #include "sj_hinsi.h" #include "sj_right.h" @@ -45,31 +41,30 @@ #include "sj_kanakan.h" static int -fzkstrcmp(u_char *yptr, u_char *fzkp, int *saml) -{ - int asklen, nkrlen; +fzkstrcmp(u_char* yptr, u_char* fzkp, int* saml) { + int asklen, nkrlen; asklen = FzkAskLen(fzkp); - if (*saml < asklen) return CONT; + if(*saml < asklen) return CONT; - if (*saml > asklen) return OVER; + if(*saml > asklen) return OVER; nkrlen = FzkNkrLen(fzkp); yptr += asklen; - fzkp ++; + fzkp++; - while (nkrlen--) { - if (*yptr > *fzkp) + while(nkrlen--) { + if(*yptr > *fzkp) return CONT; - else if (*yptr < *fzkp) { - if (!*yptr) return PARTLY; + else if(*yptr < *fzkp) { + if(!*yptr) return PARTLY; return OVER; } - else{ + else { yptr++; fzkp++; (*saml)++; @@ -79,98 +74,90 @@ fzkstrcmp(u_char *yptr, u_char *fzkp, int *saml) return MATCH; } +void setclrec(JREC* jrec, u_char* yptr, TypeCnct right) { + CLREC* new; + TypeGram hinsi; + int len; + if(!(len = yptr - cnvstart)) return; -void -setclrec(JREC *jrec, u_char *yptr, TypeCnct right) -{ - CLREC *new; - TypeGram hinsi; - int len; + if(len > MAXCLINPUTLEN) return; - if (!(len = yptr - cnvstart)) return; + if(!(new = argclrec(len))) return; - if (len > MAXCLINPUTLEN) return; + new->jnode = jrec; + new->gobiln = gobilen; + new->right = right; + new->fzk_ka = fzk_ka_flg; + (jrec->count)++; - if (!(new = argclrec(len))) return; + hinsi = jrec->hinsi; - new -> jnode = jrec; - new -> gobiln = gobilen; - new -> right = right; - new -> fzk_ka = fzk_ka_flg; - (jrec -> count)++; + if(hinsi >= DO_SAHEN && hinsi <= SP_KA_ONB) + new->kubun = K_DOUSHI; - hinsi = jrec -> hinsi; - - if (hinsi >= DO_SAHEN && hinsi <= SP_KA_ONB) - new -> kubun = K_DOUSHI; - - else if ((hinsi >= KEIYOUSI_1 && hinsi <= KE_DOUSI_9) || - (hinsi == SP_KEIYOUSI)){ + else if((hinsi >= KEIYOUSI_1 && hinsi <= KE_DOUSI_9) || + (hinsi == SP_KEIYOUSI)) { if(right == R_FZKMEISI) - new -> kubun = K_TAIGEN; + new->kubun = K_TAIGEN; else - new -> kubun = K_YOUGEN; + new->kubun = K_YOUGEN; } - else if (hinsi == RENTAISI) - new -> kubun = K_RENTAISI; + else if(hinsi == RENTAISI) + new->kubun = K_RENTAISI; - else if ((hinsi >= FUKUSI_1 && hinsi <= FUKUSI_9) || - (hinsi == SP_FUKUSI)) - new -> kubun = K_FUKUSI; + else if((hinsi >= FUKUSI_1 && hinsi <= FUKUSI_9) || + (hinsi == SP_FUKUSI)) + new->kubun = K_FUKUSI; - else if (hinsi == SETUZOKU || hinsi==KANDOUSI || - hinsi == TANKANJI || hinsi==AISATU) - new -> kubun = K_SONOTA; + else if(hinsi == SETUZOKU || hinsi == KANDOUSI || + hinsi == TANKANJI || hinsi == AISATU) + new->kubun = K_SONOTA; - else if (gobilen) { - if (hinsi >= MEISI_5 && hinsi <= MEISI_7) - new -> kubun = K_DOUSHI; + else if(gobilen) { + if(hinsi >= MEISI_5 && hinsi <= MEISI_7) + new->kubun = K_DOUSHI; - else if (hinsi == D_MEISI_4) - new -> kubun = K_DOUSHI; + else if(hinsi == D_MEISI_4) + new->kubun = K_DOUSHI; - else if (hinsi == SETUBI_7 || hinsi == SETUBI_8) - new -> kubun = K_DOUSHI; + else if(hinsi == SETUBI_7 || hinsi == SETUBI_8) + new->kubun = K_DOUSHI; + else if(hinsi == D_MEISI_5) + new->kubun = K_YOUGEN; - else if (hinsi == D_MEISI_5) - new -> kubun = K_YOUGEN; - - else if (hinsi == SETUBI_5 || hinsi == SETUBI_6) - new -> kubun = K_YOUGEN; + else if(hinsi == SETUBI_5 || hinsi == SETUBI_6) + new->kubun = K_YOUGEN; else - new -> kubun = K_TAIGEN; - } - else if (hinsi >= MEISI_5 && hinsi <= MEISI_7) { - if (right >= R_I && right <= R_ITADAKE) - new -> kubun = K_DOUSHI; + new->kubun = K_TAIGEN; + } else if(hinsi >= MEISI_5 && hinsi <= MEISI_7) { + if(right >= R_I && right <= R_ITADAKE) + new->kubun = K_DOUSHI; - else if (right >= R_DESHI && right <= R_TAI) - new -> kubun = K_DOUSHI; + else if(right >= R_DESHI && right <= R_TAI) + new->kubun = K_DOUSHI; - else if (right >= R_NAI && right <= R_MEIREI2) - new -> kubun = K_DOUSHI; + else if(right >= R_NAI && right <= R_MEIREI2) + new->kubun = K_DOUSHI; - else if (right == R_TE2 || right == R_TERU) - new -> kubun = K_DOUSHI; + else if(right == R_TE2 || right == R_TERU) + new->kubun = K_DOUSHI; else - new -> kubun = K_TAIGEN; - } - else - new -> kubun = K_TAIGEN; + new->kubun = K_TAIGEN; + } else + new->kubun = K_TAIGEN; } static int -fzkcnct(TypeCnct right, TypeCnct left) -{ - u_char *cncttbl; +fzkcnct(TypeCnct right, TypeCnct left) { + u_char* cncttbl; - if (right && left) { + if(right && left) { cncttbl = Rigtadr(right); left--; - if (cncttbl[left >> 3] << (left & 0x07) & 0x80) + if(cncttbl[left >> 3] << (left & 0x07) & 0x80) return TRUE; } @@ -178,95 +165,91 @@ fzkcnct(TypeCnct right, TypeCnct left) } RECURS -void -srchfzk(JREC *jrec, u_char *yptr, TypeCnct right, int level) -{ - u_char *fzk; - int len = 0; - int cmp; - u_char *next; - FREC *fzkrec; - int i; - int nlen; - TypeCnct rt; +void srchfzk(JREC* jrec, u_char* yptr, TypeCnct right, int level) { + u_char* fzk; + int len = 0; + int cmp; + u_char* next; + FREC* fzkrec; + int i; + int nlen; + TypeCnct rt; - if ((level >= MAXFLVL) && !(Chrtbl[*yptr] & FZK_KGU)) return; - - if (terminate(right, yptr) && Chrtbl[*yptr] & FZK_KGU){ - if (!level) fzk_ka_flg = 0; + if((level >= MAXFLVL) && !(Chrtbl[*yptr] & FZK_KGU)) return; + + if(terminate(right, yptr) && Chrtbl[*yptr] & FZK_KGU) { + if(!level) fzk_ka_flg = 0; yptr++; - while (Chrtbl[*yptr] & FZK_KGU) yptr++; + while(Chrtbl[*yptr] & FZK_KGU) yptr++; setclrec(jrec, yptr, (TypeCnct)R_FZKKGU); return; } - if (right == R_CUT) return; - - if (!*yptr) return; - - if (!(*yptr >= _XA && *yptr <= _NN)) return; - + if(right == R_CUT) return; + + if(!*yptr) return; + + if(!(*yptr >= _XA && *yptr <= _NN)) return; + fzkrec = fzktbl; - - for (i = fzkcount ; i ; i--, fzkrec++) { - - if (yptr != fzkrec -> yomip) continue; - - fzk = fzkrec -> fzkp; - + + for(i = fzkcount; i; i--, fzkrec++) { + + if(yptr != fzkrec->yomip) continue; + + fzk = fzkrec->fzkp; + len = FzkAskLen(fzk) + (nlen = FzkNkrLen(fzk)) + 1; - - if (!fzkcnct(right, (TypeCnct)FzkLeft(fzk))) continue; - - if (!level) fzk_ka_flg = FzkStrKa(fzk); - + + if(!fzkcnct(right, (TypeCnct)FzkLeft(fzk))) continue; + + if(!level) fzk_ka_flg = FzkStrKa(fzk); + next = yptr + len; - - if (terminate(rt = FzkRight(fzk), next)) { + + if(terminate(rt = FzkRight(fzk), next)) { setclrec(jrec, next, rt); } - + srchfzk(jrec, next, rt, level + 1); } - if (len) return; + if(len) return; + + if(!(fzk = Fzkadr(*yptr - _XA))) return; - - if (!(fzk = Fzkadr(*yptr - _XA))) return; - yptr++; - - for ( ; *fzk != FZKEND ; fzk += nlen + (i ? 4 : 3)) { - nlen = FzkNkrLen(fzk); - i = FzkHasCode(fzk); + for(; *fzk != FZKEND; fzk += nlen + (i ? 4 : 3)) { + + nlen = FzkNkrLen(fzk); + i = FzkHasCode(fzk); cmp = fzkstrcmp(yptr, fzk, &len); - if (cmp == OVER) + if(cmp == OVER) break; - else if (cmp == PARTLY) + else if(cmp == PARTLY) break; - else if ((cmp != MATCH) || isdpnd(*(yptr + len))) + else if((cmp != MATCH) || isdpnd(*(yptr + len))) continue; - - fzktbl[fzkcount].yomip = yptr - 1; - fzktbl[fzkcount].fzkp = fzk; + fzktbl[fzkcount].yomip = yptr - 1; + fzktbl[fzkcount].fzkp = fzk; fzkcount++; - if (!fzkcnct(right, (TypeCnct)FzkLeft(fzk))) continue; + if(!fzkcnct(right, (TypeCnct)FzkLeft(fzk))) continue; + + if(!level) fzk_ka_flg = FzkStrKa(fzk); - if (!level) fzk_ka_flg = FzkStrKa(fzk); - next = yptr + len; - - if (terminate(rt = FzkRight(fzk), next)) { + + if(terminate(rt = FzkRight(fzk), next)) { setclrec(jrec, next, rt); } - + srchfzk(jrec, next, rt, level + 1); } } diff --git a/lib/sj3core/fzkyomi.c b/lib/sj3core/fzkyomi.c index fd4d660..d66d00c 100644 --- a/lib/sj3core/fzkyomi.c +++ b/lib/sj3core/fzkyomi.c @@ -1,6 +1,6 @@ /* * Copyright (c) 1991-1994 Sony Corporation - * + * * Permission is hereby granted, free of charge, to any person obtaining * a copy of this software and associated documentation files (the * "Software"), to deal in the Software without restriction, including @@ -8,10 +8,10 @@ * distribute, sublicense, and/or sell copies of the Software, and to * permit persons to whom the Software is furnished to do so, subject to * the following conditions: - * + * * The above copyright notice and this permission notice shall be * included in all copies or substantial portions of the Software. - * + * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. @@ -19,7 +19,7 @@ * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR * THE USE OR OTHER DEALINGS IN THE SOFTWARE. - * + * * Except as contained in this notice, the name of Sony Corporation * shall not be used in advertising or otherwise to promote the sale, use * or other dealings in this Software without prior written authorization @@ -28,13 +28,11 @@ */ /* - * $SonyRCSfile: fzkyomi.c,v $ - * $SonyRevision: 1.1 $ + * $SonyRCSfile: fzkyomi.c,v $ + * $SonyRevision: 1.1 $ * $SonyDate: 1994/06/03 08:01:48 $ */ - - #include "sj_const.h" #include "sj_rename.h" #include "sj_typedef.h" @@ -44,733 +42,675 @@ #include "sj_kanakan.h" -static u_char fzk_wo[] = { -(0<<5)+0, L_WO, R_WO, -(0<<5)+0, L_WO_S, R_WO_S, -0xff -}; +static u_char fzk_wo[] = { + (0 << 5) + 0, L_WO, R_WO, + (0 << 5) + 0, L_WO_S, R_WO_S, + 0xff}; -static u_char fzk_xtu[] = { -(0<<5) + 1, _KE, L_KKE, R_SHUUJO, -(0<<5) + 3, _TA,_XTU,_TE, L_TTATTE, R_TTATTE, -(1<<5) + 1, _RA, L_TTARA, R_TTARA, -(2<<5) + 2, _SI, _I, L_TTARASII, R_KSHUUSI, -(3<<5) + 2, _KA, _XTU, L_TTARASII, R_ONBIN1, -(4<<5) + 2, _RO, _U, L_TTARASII, R_KAROU, -(3<<5) + 1, _KU, L_TTARASII, R_KRENYOU, -(3<<5) + 2, _KE, _RE, L_TTARASII, R_KATEI1, -(3<<5) + 1, _SA, L_TTARASII, R_FZKMEISI, -(0<<5) + 1, _TE, L_TTE1, R_TTE1, -(1<<5) + 0, L_TTE2, R_TTE2, -(0<<5) + 3, _PA,_NA,_SI, L_PPANASI, R_PPANASI, -(0<<5) + 2, _PO,_I, L_PPOI, R_PPOI, -(1<<5) + 2, _KA,_XTU, L_PPOI, R_ONBIN1, -(2<<5) + 2, _RO,_U, L_PPOI, R_KAROU, -(1<<5) + 1, _KU, L_PPOI, R_KRENYOU, -(1<<5) + 2, _KE,_RE, L_PPOI, R_KATEI1, -0xff -}; +static u_char fzk_xtu[] = { + (0 << 5) + 1, _KE, L_KKE, R_SHUUJO, + (0 << 5) + 3, _TA, _XTU, _TE, L_TTATTE, R_TTATTE, + (1 << 5) + 1, _RA, L_TTARA, R_TTARA, + (2 << 5) + 2, _SI, _I, L_TTARASII, R_KSHUUSI, + (3 << 5) + 2, _KA, _XTU, L_TTARASII, R_ONBIN1, + (4 << 5) + 2, _RO, _U, L_TTARASII, R_KAROU, + (3 << 5) + 1, _KU, L_TTARASII, R_KRENYOU, + (3 << 5) + 2, _KE, _RE, L_TTARASII, R_KATEI1, + (3 << 5) + 1, _SA, L_TTARASII, R_FZKMEISI, + (0 << 5) + 1, _TE, L_TTE1, R_TTE1, + (1 << 5) + 0, L_TTE2, R_TTE2, + (0 << 5) + 3, _PA, _NA, _SI, L_PPANASI, R_PPANASI, + (0 << 5) + 2, _PO, _I, L_PPOI, R_PPOI, + (1 << 5) + 2, _KA, _XTU, L_PPOI, R_ONBIN1, + (2 << 5) + 2, _RO, _U, L_PPOI, R_KAROU, + (1 << 5) + 1, _KU, L_PPOI, R_KRENYOU, + (1 << 5) + 2, _KE, _RE, L_PPOI, R_KATEI1, + 0xff}; -static u_char fzk_a[] = { -(0<<5) + 1, _GE, L_YOUGEN, R_AGE, -(1<<5) + 1, _YO, L_YOUGEN, R_MEIREI2, -(1<<5) + 1, _RU, L_YOUGEN, R_SHUUSI, -(1<<5) + 1, _RE, L_YOUGEN, R_KATEI3, -(1<<5) + 1, _RO, L_YOUGEN, R_MEIREI1, -(0<<5) + 1, _XTU, L_ARU, R_AXTU, -(0<<5) + 1, _RA, L_ARA, R_MIZEN2, -(0<<5) + 1, _RI, L_ARI1, R_ARI1, -(1<<5) + 0, L_ARI2, R_ARI2, -(1<<5) + 0, L_ARI3, R_ARI3, -(0<<5) + 1, _RU, L_ARU, R_SHUUSI, -(0<<5) + 1, _RE, L_ARE1, R_KAMEI, -(1<<5) + 0, L_ARE2, R_KATEI2, -(1<<5) + 3, _BA,_KO,_SO, L_ARE1, R_CUT, -(0<<5) + 2, _RO,_U, L_AROU, R_AROU, -0xff -}; +static u_char fzk_a[] = { + (0 << 5) + 1, _GE, L_YOUGEN, R_AGE, + (1 << 5) + 1, _YO, L_YOUGEN, R_MEIREI2, + (1 << 5) + 1, _RU, L_YOUGEN, R_SHUUSI, + (1 << 5) + 1, _RE, L_YOUGEN, R_KATEI3, + (1 << 5) + 1, _RO, L_YOUGEN, R_MEIREI1, + (0 << 5) + 1, _XTU, L_ARU, R_AXTU, + (0 << 5) + 1, _RA, L_ARA, R_MIZEN2, + (0 << 5) + 1, _RI, L_ARI1, R_ARI1, + (1 << 5) + 0, L_ARI2, R_ARI2, + (1 << 5) + 0, L_ARI3, R_ARI3, + (0 << 5) + 1, _RU, L_ARU, R_SHUUSI, + (0 << 5) + 1, _RE, L_ARE1, R_KAMEI, + (1 << 5) + 0, L_ARE2, R_KATEI2, + (1 << 5) + 3, _BA, _KO, _SO, L_ARE1, R_CUT, + (0 << 5) + 2, _RO, _U, L_AROU, R_AROU, + 0xff}; -static u_char fzk_i[] = { -(0<<5) + 0, L_IRU, R_I, -(0<<5) + 1, _I, L_II, R_SHUUSI, -(0<<5) + 1, _KA, L_YOUGEN, R_MIZEN5, -(0<<5) + 1, _KI, L_YOUGEN, R_IKI, -(0<<5) + 1, _KU, L_YOUGEN, R_SHUUSI, -(0<<5) + 1, _KE, L_YOUGEN, R_IKE, -(0<<5) + 2, _KO,_U, L_YOUGEN, R_AROU, -(0<<5) + 2, _TA,_SI, L_ITASI, R_ITASI, -(1<<5) + 2, _DA,_I, L_ITADAKU, R_ONBIN2, -(2<<5) + 1, _KA, L_ITADAKU, R_MIZEN4, -(2<<5) + 1, _KI, L_ITADAKU, R_ITADAKI, -(2<<5) + 1, _KU, L_ITADAKU, R_SHUUSI, -(2<<5) + 1, _KE, L_ITADAKU, R_ITADAKE, -(2<<5) + 2, _KO,_U, L_ITADAKU, R_AROU, -(0<<5) + 1, _XTU, L_YOUGEN, R_ONBIN8, -(0<<5) + 1, _YO, L_IRU, R_MEIREI2, -(0<<5) + 1, _RU, L_IRU, R_SHUUSI, -(0<<5) + 1, _RE, L_IRU, R_KATEI2, -(0<<5) + 1, _RO, L_IRU, R_MEIREI1, -0xff -}; +static u_char fzk_i[] = { + (0 << 5) + 0, L_IRU, R_I, + (0 << 5) + 1, _I, L_II, R_SHUUSI, + (0 << 5) + 1, _KA, L_YOUGEN, R_MIZEN5, + (0 << 5) + 1, _KI, L_YOUGEN, R_IKI, + (0 << 5) + 1, _KU, L_YOUGEN, R_SHUUSI, + (0 << 5) + 1, _KE, L_YOUGEN, R_IKE, + (0 << 5) + 2, _KO, _U, L_YOUGEN, R_AROU, + (0 << 5) + 2, _TA, _SI, L_ITASI, R_ITASI, + (1 << 5) + 2, _DA, _I, L_ITADAKU, R_ONBIN2, + (2 << 5) + 1, _KA, L_ITADAKU, R_MIZEN4, + (2 << 5) + 1, _KI, L_ITADAKU, R_ITADAKI, + (2 << 5) + 1, _KU, L_ITADAKU, R_SHUUSI, + (2 << 5) + 1, _KE, L_ITADAKU, R_ITADAKE, + (2 << 5) + 2, _KO, _U, L_ITADAKU, R_AROU, + (0 << 5) + 1, _XTU, L_YOUGEN, R_ONBIN8, + (0 << 5) + 1, _YO, L_IRU, R_MEIREI2, + (0 << 5) + 1, _RU, L_IRU, R_SHUUSI, + (0 << 5) + 1, _RE, L_IRU, R_KATEI2, + (0 << 5) + 1, _RO, L_IRU, R_MEIREI1, + 0xff}; -static u_char fzk_u[] = { -(0<<5) + 1, _E, L_UE, R_UE, -(0<<5) + 1, _TI, L_UTI, R_UTI, -(0<<5) + 1, _RU, L_ERU, R_SHUUSI, -0xff -}; +static u_char fzk_u[] = { + (0 << 5) + 1, _E, L_UE, R_UE, + (0 << 5) + 1, _TI, L_UTI, R_UTI, + (0 << 5) + 1, _RU, L_ERU, R_SHUUSI, + 0xff}; -static u_char fzk_e[] = { -(0<<5) + 0, L_ERU, R_E, -(0<<5) + 1, _RU, L_ERU, R_SHUUSI, -(0<<5) + 1, _RE, L_ERU, R_KATEI3, -0xff -}; +static u_char fzk_e[] = { + (0 << 5) + 0, L_ERU, R_E, + (0 << 5) + 1, _RU, L_ERU, R_SHUUSI, + (0 << 5) + 1, _RE, L_ERU, R_KATEI3, + 0xff}; -static u_char fzk_o[] = { -(0<<5) + 1, _I, L_YOUGEN, R_ONBIN8, -(1<<5) + 1, _TE, L_OITE, R_OITE, -(0<<5) + 1, _KA, L_YOUGEN, R_MIZEN5, -(0<<5) + 1, _KI, L_YOUGEN, R_IKI, -(0<<5) + 1, _KU, L_YOUGEN, R_SHUUSI, -(0<<5) + 1, _KE, L_YOUGEN, R_IKE, -(1<<5) + 1, _RU, L_OKERU, R_OKERU, -(0<<5) + 2, _KO,_U, L_YOUGEN, R_AROU, -(0<<5) + 1, _RA, L_YOUGEN, R_MIZEN2, -(0<<5) + 1, _RI, L_ORI, R_ORI1, -(1<<5) + 0, L_YOUGEN, R_ORI2, -(0<<5) + 1, _RE, L_YOUGEN, R_KAMEI, -0xff -}; +static u_char fzk_o[] = { + (0 << 5) + 1, _I, L_YOUGEN, R_ONBIN8, + (1 << 5) + 1, _TE, L_OITE, R_OITE, + (0 << 5) + 1, _KA, L_YOUGEN, R_MIZEN5, + (0 << 5) + 1, _KI, L_YOUGEN, R_IKI, + (0 << 5) + 1, _KU, L_YOUGEN, R_SHUUSI, + (0 << 5) + 1, _KE, L_YOUGEN, R_IKE, + (1 << 5) + 1, _RU, L_OKERU, R_OKERU, + (0 << 5) + 2, _KO, _U, L_YOUGEN, R_AROU, + (0 << 5) + 1, _RA, L_YOUGEN, R_MIZEN2, + (0 << 5) + 1, _RI, L_ORI, R_ORI1, + (1 << 5) + 0, L_YOUGEN, R_ORI2, + (0 << 5) + 1, _RE, L_YOUGEN, R_KAMEI, + 0xff}; -static u_char fzk_ka[] = { -(0<<5) + 0 + 8, L_KA1, R_KA1, -(0<<5) + 0 + 8, L_KA2, R_KA2, -(0<<5) + 1, _I, L_KAI, R_SHUUJO, -(0<<5) + 1, _KE, L_KAKERU, R_KAKE, -(1<<5) + 1, _RU, L_KAKERU, R_SHUUSI, -(1<<5) + 1, _RE, L_KAKERU, R_KATEI3, -(0<<5) + 2, _SI,_RA, L_KASIRA, R_SHUUJO, -(2<<5) + 1, _NE, L_KASIRA, R_SHUUJO, -(0<<5) + 3, _TA,_GA,_TA, L_KATAGATA,R_KATAGATA, -(0<<5) + 3, _DO,_U,_KA, L_KADOUKA, R_KADOUKA, -(0<<5) + 1, _NA, L_KANA, R_SHUUJO, -(0<<5) + 1, _NE, L_KANE, R_SHUUJO, -(1<<5) + 0, L_KANERU, R_KANE2, -(1<<5) + 1, _RU, L_KANERU, R_SHUUSI, -(1<<5) + 1, _RE, L_KANERU, R_KATEI3, -(0<<5) + 3, _MA,_TA,_HA, L_KA1, R_CUT, -(0<<5) + 1, _MO, L_KAMO, R_KAMO, -(0<<5) + 1, _RA, L_KARA1, R_KARA1, -(1<<5) + 0, L_KARA2, R_KARA2, -(1<<5) + 1, _ZU, L_KARAZU, R_ZU, -(1<<5) + 1, _NU, L_KARAZU, R_NU, -0xff -}; +static u_char fzk_ka[] = { + (0 << 5) + 0 + 8, L_KA1, R_KA1, + (0 << 5) + 0 + 8, L_KA2, R_KA2, + (0 << 5) + 1, _I, L_KAI, R_SHUUJO, + (0 << 5) + 1, _KE, L_KAKERU, R_KAKE, + (1 << 5) + 1, _RU, L_KAKERU, R_SHUUSI, + (1 << 5) + 1, _RE, L_KAKERU, R_KATEI3, + (0 << 5) + 2, _SI, _RA, L_KASIRA, R_SHUUJO, + (2 << 5) + 1, _NE, L_KASIRA, R_SHUUJO, + (0 << 5) + 3, _TA, _GA, _TA, L_KATAGATA, R_KATAGATA, + (0 << 5) + 3, _DO, _U, _KA, L_KADOUKA, R_KADOUKA, + (0 << 5) + 1, _NA, L_KANA, R_SHUUJO, + (0 << 5) + 1, _NE, L_KANE, R_SHUUJO, + (1 << 5) + 0, L_KANERU, R_KANE2, + (1 << 5) + 1, _RU, L_KANERU, R_SHUUSI, + (1 << 5) + 1, _RE, L_KANERU, R_KATEI3, + (0 << 5) + 3, _MA, _TA, _HA, L_KA1, R_CUT, + (0 << 5) + 1, _MO, L_KAMO, R_KAMO, + (0 << 5) + 1, _RA, L_KARA1, R_KARA1, + (1 << 5) + 0, L_KARA2, R_KARA2, + (1 << 5) + 1, _ZU, L_KARAZU, R_ZU, + (1 << 5) + 1, _NU, L_KARAZU, R_NU, + 0xff}; -static u_char fzk_ga[] = { -(0<<5) + 0, L_GA1, R_GA1, -(0<<5) + 0, L_GA2, R_GA2, -(0<<5) + 2, _TA,_I, L_GATAI, R_KSHUUSI, -(1<<5) + 2, _KA,_XTU, L_GATAI, R_ONBIN1, -(2<<5) + 2, _RO,_U, L_GATAI, R_KAROU, -(1<<5) + 1, _KU, L_GATAI, R_GATAKU, -(1<<5) + 2, _KE,_RE, L_GATAI, R_KATEI2, -(0<<5) + 1, _TI, L_GATIDA, R_GATI, -(1<<5) + 1, _DA, L_GATIDA, R_DSHUUSI1, -(2<<5) + 1, _XTU, L_GATIDA, R_ONBIN1, -(2<<5) + 2, _RO,_U, L_GATIDA, R_DAROU, -(1<<5) + 1, _DE, L_GATIDA, R_DRENYOU1, -(1<<5) + 1, _NA, L_GATIDA, R_DRENTAI1, -(2<<5) + 1, _RA, L_GATIDA, R_KATEI1, -(1<<5) + 1, _NI, L_GATIDA, R_DRENYOU2, -(0<<5) + 2, _TE,_RA, L_GATERA, R_GATERA, -0xff -}; +static u_char fzk_ga[] = { + (0 << 5) + 0, L_GA1, R_GA1, + (0 << 5) + 0, L_GA2, R_GA2, + (0 << 5) + 2, _TA, _I, L_GATAI, R_KSHUUSI, + (1 << 5) + 2, _KA, _XTU, L_GATAI, R_ONBIN1, + (2 << 5) + 2, _RO, _U, L_GATAI, R_KAROU, + (1 << 5) + 1, _KU, L_GATAI, R_GATAKU, + (1 << 5) + 2, _KE, _RE, L_GATAI, R_KATEI2, + (0 << 5) + 1, _TI, L_GATIDA, R_GATI, + (1 << 5) + 1, _DA, L_GATIDA, R_DSHUUSI1, + (2 << 5) + 1, _XTU, L_GATIDA, R_ONBIN1, + (2 << 5) + 2, _RO, _U, L_GATIDA, R_DAROU, + (1 << 5) + 1, _DE, L_GATIDA, R_DRENYOU1, + (1 << 5) + 1, _NA, L_GATIDA, R_DRENTAI1, + (2 << 5) + 1, _RA, L_GATIDA, R_KATEI1, + (1 << 5) + 1, _NI, L_GATIDA, R_DRENYOU2, + (0 << 5) + 2, _TE, _RA, L_GATERA, R_GATERA, + 0xff}; -static u_char fzk_ki[] = { -(0<<5) + 0, L_YOUGEN, R_FZKKI, -(0<<5) + 1, _RI, L_KIRI, R_KIRI, -0xff -}; +static u_char fzk_ki[] = { + (0 << 5) + 0, L_YOUGEN, R_FZKKI, + (0 << 5) + 1, _RI, L_KIRI, R_KIRI, + 0xff}; -static u_char fzk_ku[] = { -(0<<5) + 2, _SE,_NI, L_KUSENI, R_KUSENI, -(0<<5) + 3, _DA,_SA,_I, L_KUDASARU, R_KUDASAI, -(2<<5) + 1, _XTU, L_KUDASARU, R_ONBIN6, -(2<<5) + 1, _RA, L_KUDASARU, R_MIZEN4, -(2<<5) + 1, _RI, L_KUDASARU, R_ITADAKI, -(2<<5) + 1, _RU, L_KUDASARU, R_SHUUSI, -(2<<5) + 1, _RE, L_KUDASARU, R_KATEI3, -(0<<5) + 2, _RA,_I, L_KURAI, R_KURAI, -(0<<5) + 1, _RU, L_YOUGEN, R_SHUUSI, -(0<<5) + 1, _RE, L_YOUGEN, R_KURE, -(1<<5) + 1, _RU, L_YOUGEN, R_SHUUSI, -(1<<5) + 1, _RE, L_YOUGEN, R_KATEI3, -0xff -}; +static u_char fzk_ku[] = { + (0 << 5) + 2, _SE, _NI, L_KUSENI, R_KUSENI, + (0 << 5) + 3, _DA, _SA, _I, L_KUDASARU, R_KUDASAI, + (2 << 5) + 1, _XTU, L_KUDASARU, R_ONBIN6, + (2 << 5) + 1, _RA, L_KUDASARU, R_MIZEN4, + (2 << 5) + 1, _RI, L_KUDASARU, R_ITADAKI, + (2 << 5) + 1, _RU, L_KUDASARU, R_SHUUSI, + (2 << 5) + 1, _RE, L_KUDASARU, R_KATEI3, + (0 << 5) + 2, _RA, _I, L_KURAI, R_KURAI, + (0 << 5) + 1, _RU, L_YOUGEN, R_SHUUSI, + (0 << 5) + 1, _RE, L_YOUGEN, R_KURE, + (1 << 5) + 1, _RU, L_YOUGEN, R_SHUUSI, + (1 << 5) + 1, _RE, L_YOUGEN, R_KATEI3, + 0xff}; -static u_char fzk_gu[] = { -(0<<5) + 2, _RA,_I, L_KURAI, R_KURAI, -(0<<5) + 2, _RU,_MI, L_GURUMI, R_GURUMI, -0xff -}; +static u_char fzk_gu[] = { + (0 << 5) + 2, _RA, _I, L_KURAI, R_KURAI, + (0 << 5) + 2, _RU, _MI, L_GURUMI, R_GURUMI, + 0xff}; -static u_char fzk_ke[] = { -(0<<5) + 1, _DO, L_KEDO, R_KEDO, -(1<<5) + 1, _MO, L_KEDO, R_KEDO, -(0<<5) + 2, _RE,_DO, L_KEDO, R_KEDO, -(2<<5) + 1, _MO, L_KEDO, R_KEDO, -0xff -}; +static u_char fzk_ke[] = { + (0 << 5) + 1, _DO, L_KEDO, R_KEDO, + (1 << 5) + 1, _MO, L_KEDO, R_KEDO, + (0 << 5) + 2, _RE, _DO, L_KEDO, R_KEDO, + (2 << 5) + 1, _MO, L_KEDO, R_KEDO, + 0xff}; -static u_char fzk_ko[] = { -(0<<5) + 0, L_YOUGEN, R_KO, -(0<<5) + 1, _I, L_YOUGEN, R_MEIREI1, -(0<<5) + 1, _SO, L_KOSO, R_KOSO, -(0<<5) + 1, _TO, L_KOTO, R_KOTO, -0xff -}; +static u_char fzk_ko[] = { + (0 << 5) + 0, L_YOUGEN, R_KO, + (0 << 5) + 1, _I, L_YOUGEN, R_MEIREI1, + (0 << 5) + 1, _SO, L_KOSO, R_KOSO, + (0 << 5) + 1, _TO, L_KOTO, R_KOTO, + 0xff}; -static u_char fzk_go[] = { -(0<<5) + 2, _ZA,_I, L_GOZAI, R_GOZAI, -(0<<5) + 2, _TO,_KI, L_GOTOSI, R_GOTOKI, -(1<<5) + 1, _KU, L_GOTOSI, R_GOTOKU, -(1<<5) + 1, _SI, L_GOTOSI, R_GOTOSI, -0xff -}; +static u_char fzk_go[] = { + (0 << 5) + 2, _ZA, _I, L_GOZAI, R_GOZAI, + (0 << 5) + 2, _TO, _KI, L_GOTOSI, R_GOTOKI, + (1 << 5) + 1, _KU, L_GOTOSI, R_GOTOKU, + (1 << 5) + 1, _SI, L_GOTOSI, R_GOTOSI, + 0xff}; -static u_char fzk_sa[] = { -(0<<5) + 0, L_SA1, R_MIZEN1, -(0<<5) + 0, L_SA2, R_SHUUJO, -(0<<5) + 1, _E, L_SAE, R_SAE, -(0<<5) + 1, _SE, L_SASERU, R_SASE, -(1<<5) + 1, _YO, L_SASERU, R_MEIREI2, -(1<<5) + 1, _RU, L_SASERU, R_SHUUSI, -(1<<5) + 1, _RE, L_SASERU, R_KATEI2, -(1<<5) + 1, _RO, L_SASERU, R_MEIREI1, -0xff -}; +static u_char fzk_sa[] = { + (0 << 5) + 0, L_SA1, R_MIZEN1, + (0 << 5) + 0, L_SA2, R_SHUUJO, + (0 << 5) + 1, _E, L_SAE, R_SAE, + (0 << 5) + 1, _SE, L_SASERU, R_SASE, + (1 << 5) + 1, _YO, L_SASERU, R_MEIREI2, + (1 << 5) + 1, _RU, L_SASERU, R_SHUUSI, + (1 << 5) + 1, _RE, L_SASERU, R_KATEI2, + (1 << 5) + 1, _RO, L_SASERU, R_MEIREI1, + 0xff}; -static u_char fzk_za[] = { -(0<<5) + 1, _RU, L_ZARU, R_ZARU, -(0<<5) + 1, _RE, L_ZARU, R_KATEI2, -0xff -}; +static u_char fzk_za[] = { + (0 << 5) + 1, _RU, L_ZARU, R_ZARU, + (0 << 5) + 1, _RE, L_ZARU, R_KATEI2, + 0xff}; -static u_char fzk_si[] = { -(0<<5) + 0, L_SI1, R_SI1, -(0<<5) + 0, L_SI2, R_SI2, -(0<<5) + 0, L_N_SI, R_N_SI, -(0<<5) + 1, _KA, L_SIKA, R_SIKA, -(0<<5) + 1, _TE, L_SITE, R_SITE, -(0<<5) + 2, _MA,_I, L_YOUGEN, R_IKI, -(1<<5) + 1, _U, L_YOUGEN, R_SHUUSI, -(1<<5) + 1, _E, L_YOUGEN, R_IKE, -(1<<5) + 2, _O,_U, L_YOUGEN, R_AROU, -(1<<5) + 1, _XTU, L_YOUGEN, R_ONBIN6, -(1<<5) + 1, _WA, L_YOUGEN, R_MIZEN5, -(0<<5) + 1, _RO, L_SIRO, R_MEIREI1, -0xff -}; +static u_char fzk_si[] = { + (0 << 5) + 0, L_SI1, R_SI1, + (0 << 5) + 0, L_SI2, R_SI2, + (0 << 5) + 0, L_N_SI, R_N_SI, + (0 << 5) + 1, _KA, L_SIKA, R_SIKA, + (0 << 5) + 1, _TE, L_SITE, R_SITE, + (0 << 5) + 2, _MA, _I, L_YOUGEN, R_IKI, + (1 << 5) + 1, _U, L_YOUGEN, R_SHUUSI, + (1 << 5) + 1, _E, L_YOUGEN, R_IKE, + (1 << 5) + 2, _O, _U, L_YOUGEN, R_AROU, + (1 << 5) + 1, _XTU, L_YOUGEN, R_ONBIN6, + (1 << 5) + 1, _WA, L_YOUGEN, R_MIZEN5, + (0 << 5) + 1, _RO, L_SIRO, R_MEIREI1, + 0xff}; -static u_char fzk_ji[] = { -(0<<5) + 2, _MA,_I, L_JIMAU, R_IKI, -(1<<5) + 1, _U, L_JIMAU, R_SHUUSI, -(1<<5) + 1, _E, L_JIMAU, R_IKE, -(1<<5) + 2, _O,_U, L_JIMAU, R_AROU, -(1<<5) + 1, _XTU, L_JIMAU, R_ONBIN6, -(1<<5) + 1, _WA, L_JIMAU, R_MIZEN5, -(0<<5) + 1, _XYA, L_JYA, R_JYA, -(1<<5) + 1, _I, L_JYAU, R_IKI, -(1<<5) + 1, _U, L_JYAU, R_SHUUSI, -(1<<5) + 1, _E, L_JYAU, R_IKE, -(1<<5) + 2, _O,_U, L_JYAU, R_AROU, -(1<<5) + 1, _XTU, L_JYAU, R_ONBIN6, -(1<<5) + 1, _WA, L_JYAU, R_MIZEN5, -0xff -}; +static u_char fzk_ji[] = { + (0 << 5) + 2, _MA, _I, L_JIMAU, R_IKI, + (1 << 5) + 1, _U, L_JIMAU, R_SHUUSI, + (1 << 5) + 1, _E, L_JIMAU, R_IKE, + (1 << 5) + 2, _O, _U, L_JIMAU, R_AROU, + (1 << 5) + 1, _XTU, L_JIMAU, R_ONBIN6, + (1 << 5) + 1, _WA, L_JIMAU, R_MIZEN5, + (0 << 5) + 1, _XYA, L_JYA, R_JYA, + (1 << 5) + 1, _I, L_JYAU, R_IKI, + (1 << 5) + 1, _U, L_JYAU, R_SHUUSI, + (1 << 5) + 1, _E, L_JYAU, R_IKE, + (1 << 5) + 2, _O, _U, L_JYAU, R_AROU, + (1 << 5) + 1, _XTU, L_JYAU, R_ONBIN6, + (1 << 5) + 1, _WA, L_JYAU, R_MIZEN5, + 0xff}; -static u_char fzk_su[] = { -(0<<5) + 1, _GI, L_SUGIRU, R_SUGI, -(1<<5) + 1, _RU, L_SUGIRU, R_SHUUSI, -(1<<5) + 1, _RE, L_SUGIRU, R_KATEI2, -(0<<5) + 3, _BE,_KA,_RA, L_SUBESI, R_BEKARA, -(1<<5) + 1, _KI, L_SUBESI, R_BEKI, -(1<<5) + 1, _KU, L_SUBESI, R_BEKU, -(1<<5) + 1, _SI, L_SUBESI, R_BESI, -(0<<5) + 1, _RA, L_SURA, R_SURA, -(0<<5) + 1, _RU, L_SURU, R_SHUUSI, -(0<<5) + 1, _RE, L_SURE, R_KATEI2, -0xff -}; +static u_char fzk_su[] = { + (0 << 5) + 1, _GI, L_SUGIRU, R_SUGI, + (1 << 5) + 1, _RU, L_SUGIRU, R_SHUUSI, + (1 << 5) + 1, _RE, L_SUGIRU, R_KATEI2, + (0 << 5) + 3, _BE, _KA, _RA, L_SUBESI, R_BEKARA, + (1 << 5) + 1, _KI, L_SUBESI, R_BEKI, + (1 << 5) + 1, _KU, L_SUBESI, R_BEKU, + (1 << 5) + 1, _SI, L_SUBESI, R_BESI, + (0 << 5) + 1, _RA, L_SURA, R_SURA, + (0 << 5) + 1, _RU, L_SURU, R_SHUUSI, + (0 << 5) + 1, _RE, L_SURE, R_KATEI2, + 0xff}; -static u_char fzk_zu[] = { -(0<<5) + 0, L_ZU, R_ZU, -(0<<5) + 1, _TU, L_ZUTU, R_ZUTU, -(0<<5) + 2, _NI,_I, L_ZU, R_I, -(2<<5) + 1, _RU, L_ZU, R_SHUUSI, -(0<<5) + 2, _NN,_BA, L_ZUNBA, R_CUT, -0xff - }; +static u_char fzk_zu[] = { + (0 << 5) + 0, L_ZU, R_ZU, + (0 << 5) + 1, _TU, L_ZUTU, R_ZUTU, + (0 << 5) + 2, _NI, _I, L_ZU, R_I, + (2 << 5) + 1, _RU, L_ZU, R_SHUUSI, + (0 << 5) + 2, _NN, _BA, L_ZUNBA, R_CUT, + 0xff}; -static u_char fzk_se[] = { -(0<<5) + 0, L_SE, R_MIZEN2, -(0<<5) + 0, L_SERU, R_SASE, -(0<<5) + 1, _YO, L_SEYO, R_MEIREI2, -(1<<5) + 0, L_SERU, R_MEIREI2, -(0<<5) + 1, _RU, L_SERU, R_SHUUSI, -(0<<5) + 1, _RE, L_SERU, R_KATEI2, -(0<<5) + 1, _RO, L_SERU, R_MEIREI1, -0xff -}; +static u_char fzk_se[] = { + (0 << 5) + 0, L_SE, R_MIZEN2, + (0 << 5) + 0, L_SERU, R_SASE, + (0 << 5) + 1, _YO, L_SEYO, R_MEIREI2, + (1 << 5) + 0, L_SERU, R_MEIREI2, + (0 << 5) + 1, _RU, L_SERU, R_SHUUSI, + (0 << 5) + 1, _RE, L_SERU, R_KATEI2, + (0 << 5) + 1, _RO, L_SERU, R_MEIREI1, + 0xff}; -static u_char fzk_ze[] = { -(0<<5) + 0, L_ZE, R_SHUUJO, -0xff -}; +static u_char fzk_ze[] = { + (0 << 5) + 0, L_ZE, R_SHUUJO, + 0xff}; -static u_char fzk_so[] = { -(0<<5) + 1, _U, L_SOUDA, R_SOU, -(1<<5) + 1, _DA, L_SOUDA, R_SOUDA, -(2<<5) + 1, _XTU, L_YOUTAI, R_ONBIN1, -(2<<5) + 2, _RO,_U, L_YOUTAI, R_DAROU, -(1<<5) + 1, _DE, L_SOUDA, R_SOUDE, -(2<<5) + 1, _SI, L_SOUDA, R_DESHI, -(3<<5) + 1, _XYO, L_YOUTAI, R_SHO, -(4<<5) + 1, _U, L_YOUTAI, R_DESHOU, -(2<<5) + 1, _SU, L_SOUDA, R_SOUDESU, -(1<<5) + 1, _NA, L_DENBUN, R_SOUNA1, -(2<<5) + 0, L_YOUTAI, R_SOUNA2, -(2<<5) + 1, _RA, L_SOUDA, R_KATEI1, -(1<<5) + 1, _NI, L_YOUTAI, R_SOUNI, -0xff -}; +static u_char fzk_so[] = { + (0 << 5) + 1, _U, L_SOUDA, R_SOU, + (1 << 5) + 1, _DA, L_SOUDA, R_SOUDA, + (2 << 5) + 1, _XTU, L_YOUTAI, R_ONBIN1, + (2 << 5) + 2, _RO, _U, L_YOUTAI, R_DAROU, + (1 << 5) + 1, _DE, L_SOUDA, R_SOUDE, + (2 << 5) + 1, _SI, L_SOUDA, R_DESHI, + (3 << 5) + 1, _XYO, L_YOUTAI, R_SHO, + (4 << 5) + 1, _U, L_YOUTAI, R_DESHOU, + (2 << 5) + 1, _SU, L_SOUDA, R_SOUDESU, + (1 << 5) + 1, _NA, L_DENBUN, R_SOUNA1, + (2 << 5) + 0, L_YOUTAI, R_SOUNA2, + (2 << 5) + 1, _RA, L_SOUDA, R_KATEI1, + (1 << 5) + 1, _NI, L_YOUTAI, R_SOUNI, + 0xff}; -static u_char fzk_zo[] = { -(0<<5) + 0, L_ZO, R_SHUUJO, -0xff -}; +static u_char fzk_zo[] = { + (0 << 5) + 0, L_ZO, R_SHUUJO, + 0xff}; -static u_char fzk_ta[] = { -(0<<5) + 0, L_TA, R_TA, -(0<<5) + 1, _I, L_TAI, R_TAI, -(0<<5) + 2, _KA,_XTU, L_TAI, R_ONBIN1, -(1<<5) + 2, _RO,_U, L_TAI, R_KAROU, -(0<<5) + 2, _GA,_XTU, L_TAGARU, R_ONBIN6, -(1<<5) + 1, _RA, L_TAGARU, R_TAGARA, -(1<<5) + 1, _RI, L_TAGARU, R_TAGARI, -(1<<5) + 1, _RU, L_TAGARU, R_SHUUSI, -(1<<5) + 1, _RE, L_TAGARU, R_KATEI3, -(1<<5) + 2, _RO,_U, L_TAGARU, R_KAROU, -(0<<5) + 1, _KU, L_TAI, R_TAKU, -(0<<5) + 2, _KE,_RE, L_TAI, R_KATEI3, -(0<<5) + 2, _MA,_I, L_TAMAU, R_IKI, -(1<<5) + 1, _U, L_TAMAU, R_SHUUSI, -(1<<5) + 1, _E, L_TAMAU, R_KAMEI, -(1<<5) + 1, _XTU, L_TAMAU, R_ONBIN6, -(1<<5) + 1, _WA, L_TAMAU, R_MIZEN5, -(0<<5) + 1, _ME, L_TAME, R_TAME, -(0<<5) + 1, _RA, L_TA, R_KATEI1, -(0<<5) + 1, _RI, L_TA, R_TARI, -(0<<5) + 1, _RU, L_TARU, R_CUT, -(0<<5) + 2, _RO,_U, L_TA, R_KAROU, -0xff -}; +static u_char fzk_ta[] = { + (0 << 5) + 0, L_TA, R_TA, + (0 << 5) + 1, _I, L_TAI, R_TAI, + (0 << 5) + 2, _KA, _XTU, L_TAI, R_ONBIN1, + (1 << 5) + 2, _RO, _U, L_TAI, R_KAROU, + (0 << 5) + 2, _GA, _XTU, L_TAGARU, R_ONBIN6, + (1 << 5) + 1, _RA, L_TAGARU, R_TAGARA, + (1 << 5) + 1, _RI, L_TAGARU, R_TAGARI, + (1 << 5) + 1, _RU, L_TAGARU, R_SHUUSI, + (1 << 5) + 1, _RE, L_TAGARU, R_KATEI3, + (1 << 5) + 2, _RO, _U, L_TAGARU, R_KAROU, + (0 << 5) + 1, _KU, L_TAI, R_TAKU, + (0 << 5) + 2, _KE, _RE, L_TAI, R_KATEI3, + (0 << 5) + 2, _MA, _I, L_TAMAU, R_IKI, + (1 << 5) + 1, _U, L_TAMAU, R_SHUUSI, + (1 << 5) + 1, _E, L_TAMAU, R_KAMEI, + (1 << 5) + 1, _XTU, L_TAMAU, R_ONBIN6, + (1 << 5) + 1, _WA, L_TAMAU, R_MIZEN5, + (0 << 5) + 1, _ME, L_TAME, R_TAME, + (0 << 5) + 1, _RA, L_TA, R_KATEI1, + (0 << 5) + 1, _RI, L_TA, R_TARI, + (0 << 5) + 1, _RU, L_TARU, R_CUT, + (0 << 5) + 2, _RO, _U, L_TA, R_KAROU, + 0xff}; -static u_char fzk_da[] = { -(0<<5) + 0, L_DA1, R_TA, -(0<<5) + 0, L_DA2, R_DSHUUSI1, -(0<<5) + 1, _KE, L_DAKE, R_DAKE, -(0<<5) + 1, _XTU, L_DAXTU, R_ONBIN1, -(0<<5) + 1, _NO, L_DANO, R_DANO, -(0<<5) + 1, _RA, L_DA1, R_KATEI1, -(1<<5) + 1, _KE, L_DARAKE, R_DARAKE, -(0<<5) + 1, _RI, L_DA1, R_TARI, -(0<<5) + 2, _RO,_U, L_DAROU, R_DAROU, -0xff -}; +static u_char fzk_da[] = { + (0 << 5) + 0, L_DA1, R_TA, + (0 << 5) + 0, L_DA2, R_DSHUUSI1, + (0 << 5) + 1, _KE, L_DAKE, R_DAKE, + (0 << 5) + 1, _XTU, L_DAXTU, R_ONBIN1, + (0 << 5) + 1, _NO, L_DANO, R_DANO, + (0 << 5) + 1, _RA, L_DA1, R_KATEI1, + (1 << 5) + 1, _KE, L_DARAKE, R_DARAKE, + (0 << 5) + 1, _RI, L_DA1, R_TARI, + (0 << 5) + 2, _RO, _U, L_DAROU, R_DAROU, + 0xff}; -static u_char fzk_ti[] = { -(0<<5) + 2, _MA,_I, L_TIMAU, R_IKI, -(1<<5) + 1, _U, L_TIMAU, R_SHUUSI, -(1<<5) + 1, _E, L_TIMAU, R_IKE, -(1<<5) + 2, _O,_U, L_TIMAU, R_AROU, -(1<<5) + 1, _XTU, L_TIMAU, R_ONBIN6, -(1<<5) + 1, _WA, L_TIMAU, R_MIZEN5, -(0<<5) + 1, _XYA, L_TYA, R_CUT, -(1<<5) + 1, _I, L_TYAU, R_IKI, -(1<<5) + 1, _U, L_TYAU, R_SHUUSI, -(1<<5) + 1, _E, L_TYAU, R_IKE, -(1<<5) + 2, _O,_U, L_TYAU, R_AROU, -(1<<5) + 1, _XTU, L_TYAU, R_ONBIN6, -(1<<5) + 1, _WA, L_TYAU, R_MIZEN5, -0xff -}; +static u_char fzk_ti[] = { + (0 << 5) + 2, _MA, _I, L_TIMAU, R_IKI, + (1 << 5) + 1, _U, L_TIMAU, R_SHUUSI, + (1 << 5) + 1, _E, L_TIMAU, R_IKE, + (1 << 5) + 2, _O, _U, L_TIMAU, R_AROU, + (1 << 5) + 1, _XTU, L_TIMAU, R_ONBIN6, + (1 << 5) + 1, _WA, L_TIMAU, R_MIZEN5, + (0 << 5) + 1, _XYA, L_TYA, R_CUT, + (1 << 5) + 1, _I, L_TYAU, R_IKI, + (1 << 5) + 1, _U, L_TYAU, R_SHUUSI, + (1 << 5) + 1, _E, L_TYAU, R_IKE, + (1 << 5) + 2, _O, _U, L_TYAU, R_AROU, + (1 << 5) + 1, _XTU, L_TYAU, R_ONBIN6, + (1 << 5) + 1, _WA, L_TYAU, R_MIZEN5, + 0xff}; -static u_char fzk_di[] = { -(0<<5) + 1, _XYA, L_JYA, R_JYA, -0xff -}; +static u_char fzk_di[] = { + (0 << 5) + 1, _XYA, L_JYA, R_JYA, + 0xff}; -static u_char fzk_tu[] = { -(0<<5) + 2, _I,_TE, L_TUITE, R_TUITE, -(0<<5) + 1, _KI, L_TUKI, R_TUKI, -(0<<5) + 1, _TU, L_TUTU, R_TUTU, -(0<<5) + 2, _MO,_RI, L_TUMORI, R_TUMORI, -0xff -}; +static u_char fzk_tu[] = { + (0 << 5) + 2, _I, _TE, L_TUITE, R_TUITE, + (0 << 5) + 1, _KI, L_TUKI, R_TUKI, + (0 << 5) + 1, _TU, L_TUTU, R_TUTU, + (0 << 5) + 2, _MO, _RI, L_TUMORI, R_TUMORI, + 0xff}; -static u_char fzk_te[] = { -(0<<5) + 0, L_TE1, R_TE1, -(0<<5) + 0, L_TE2, R_TE2, -(0<<5) + 1, _RU, L_TERU, R_TERU, -0xff -}; +static u_char fzk_te[] = { + (0 << 5) + 0, L_TE1, R_TE1, + (0 << 5) + 0, L_TE2, R_TE2, + (0 << 5) + 1, _RU, L_TERU, R_TERU, + 0xff}; -static u_char fzk_de[] = { -(0<<5) + 0, L_DE, R_DE, -(0<<5) + 0, L_DA1, R_TE2, -(0<<5) + 3, _A,_RO,_U, L_DEAROU, R_AROU, -(0<<5) + 1, _KI, L_DEKIRU, R_DEKI, -(1<<5) + 1, _RU, L_DEKIRU, R_SHUUSI, -(1<<5) + 1, _RE, L_DEKIRU, R_KATEI3, -(0<<5) + 1, _SI, L_DESI, R_DESHI, -(1<<5) + 1, _XYO, L_DESHO, R_SHO, -(2<<5) + 1, _U, L_DESHO, R_DESHOU, -(0<<5) + 1, _SU, L_DESU, R_DESU, -(0<<5) + 1, _HA, L_DEHA, R_DEHA, -(0<<5) + 1, _RU, L_DERU, R_TERU, -0xff -}; +static u_char fzk_de[] = { + (0 << 5) + 0, L_DE, R_DE, + (0 << 5) + 0, L_DA1, R_TE2, + (0 << 5) + 3, _A, _RO, _U, L_DEAROU, R_AROU, + (0 << 5) + 1, _KI, L_DEKIRU, R_DEKI, + (1 << 5) + 1, _RU, L_DEKIRU, R_SHUUSI, + (1 << 5) + 1, _RE, L_DEKIRU, R_KATEI3, + (0 << 5) + 1, _SI, L_DESI, R_DESHI, + (1 << 5) + 1, _XYO, L_DESHO, R_SHO, + (2 << 5) + 1, _U, L_DESHO, R_DESHOU, + (0 << 5) + 1, _SU, L_DESU, R_DESU, + (0 << 5) + 1, _HA, L_DEHA, R_DEHA, + (0 << 5) + 1, _RU, L_DERU, R_TERU, + 0xff}; -static u_char fzk_to[] = { -(0<<5) + 0, L_TO1, R_TO1, -(0<<5) + 0, L_TO2, R_TO2, -(0<<5) + 1, _I, L_TE2, R_ONBIN8, -(1<<5) + 1, _U, L_TOIU, R_TOIU, -(0<<5) + 2, _O,_RI, L_TOORI, R_TOORI, -(0<<5) + 1, _KA, L_TE2, R_MIZEN5, -(0<<5) + 1, _KI, L_TOKI, R_TOKI, -(1<<5) + 0, L_TE2, R_IKI, -(0<<5) + 1, _KU, L_TE2, R_SHUUSI, -(0<<5) + 1, _KE, L_TE2, R_IKE, -(0<<5) + 1, _KO, L_TOKORO, R_TOKORO, -(1<<5) + 1, _U, L_TE2, R_AROU, -(1<<5) + 1, _RO, L_TOKORO, R_TOKORO, -(0<<5) + 2, _XTU,_TE, L_TOTTE, R_TOTTE, -(0<<5) + 1, _TE, L_TOTE, R_TOTE, -(0<<5) + 3, _HA,_I,_E, L_TOHAIE, R_TOHAIE, -(0<<5) + 1, _MO, L_TOMO, R_TOMO, -0xff -}; +static u_char fzk_to[] = { + (0 << 5) + 0, L_TO1, R_TO1, + (0 << 5) + 0, L_TO2, R_TO2, + (0 << 5) + 1, _I, L_TE2, R_ONBIN8, + (1 << 5) + 1, _U, L_TOIU, R_TOIU, + (0 << 5) + 2, _O, _RI, L_TOORI, R_TOORI, + (0 << 5) + 1, _KA, L_TE2, R_MIZEN5, + (0 << 5) + 1, _KI, L_TOKI, R_TOKI, + (1 << 5) + 0, L_TE2, R_IKI, + (0 << 5) + 1, _KU, L_TE2, R_SHUUSI, + (0 << 5) + 1, _KE, L_TE2, R_IKE, + (0 << 5) + 1, _KO, L_TOKORO, R_TOKORO, + (1 << 5) + 1, _U, L_TE2, R_AROU, + (1 << 5) + 1, _RO, L_TOKORO, R_TOKORO, + (0 << 5) + 2, _XTU, _TE, L_TOTTE, R_TOTTE, + (0 << 5) + 1, _TE, L_TOTE, R_TOTE, + (0 << 5) + 3, _HA, _I, _E, L_TOHAIE, R_TOHAIE, + (0 << 5) + 1, _MO, L_TOMO, R_TOMO, + 0xff}; -static u_char fzk_do[] = { -(0<<5) + 0, L_DO, R_DO, -(0<<5) + 1, _I, L_DA1, R_ONBIN8, -(0<<5) + 2, _O,_RI, L_DOORI, R_DOORI, -(0<<5) + 1, _KA, L_DA1, R_MIZEN5, -(0<<5) + 1, _KI, L_DA1, R_IKI, -(0<<5) + 1, _KU, L_DA1, R_SHUUSI, -(0<<5) + 1, _KE, L_DA1, R_IKE, -(0<<5) + 2, _KO,_U, L_DA1, R_AROU, -(1<<5) + 1, _RO, L_DOKORO, R_DOKORO, -(2<<5) + 1, _KA, L_DOKOROKA, R_DOKOROKA, -(0<<5) + 1, _MO, L_DOMO, R_DOMO, -0xff -}; +static u_char fzk_do[] = { + (0 << 5) + 0, L_DO, R_DO, + (0 << 5) + 1, _I, L_DA1, R_ONBIN8, + (0 << 5) + 2, _O, _RI, L_DOORI, R_DOORI, + (0 << 5) + 1, _KA, L_DA1, R_MIZEN5, + (0 << 5) + 1, _KI, L_DA1, R_IKI, + (0 << 5) + 1, _KU, L_DA1, R_SHUUSI, + (0 << 5) + 1, _KE, L_DA1, R_IKE, + (0 << 5) + 2, _KO, _U, L_DA1, R_AROU, + (1 << 5) + 1, _RO, L_DOKORO, R_DOKORO, + (2 << 5) + 1, _KA, L_DOKOROKA, R_DOKOROKA, + (0 << 5) + 1, _MO, L_DOMO, R_DOMO, + 0xff}; -static u_char fzk_na[] = { -(0<<5) + 0, L_NA1, R_SHUUJO, -(0<<5) + 0, L_NA2, R_NA2, -(0<<5) + 1, _XA, L_NAA, R_SHUUJO, -(0<<5) + 1, _A, L_NAA, R_SHUUJO, -(0<<5) + 1, _I, L_NAI, R_NAI, -(1<<5) + 1, _DE, L_NAI, R_NAIDE, -(0<<5) + 2, _KA,_XTU, L_NAI, R_ONBIN1, -(1<<5) + 2, _RO,_U, L_NAI, R_KAROU, -(0<<5) + 2, _GA,_RA, L_NAGARA, R_NAGARA, -(2<<5) + 0, L_NAGARA2, R_NAGARA2, -(0<<5) + 2, _KI,_XYA, L_NAI, R_CUT, -(0<<5) + 1, _KU, L_NAI, R_NAKU, -(0<<5) + 2, _KE,_RE, L_NAI, R_KATEI3, -(0<<5) + 2, _SA,_I, L_NASAI, R_NASAI, -(1<<5) + 1, _RA, L_NASARU, R_MIZEN4, -(1<<5) + 1, _RI, L_NASARU, R_ITADAKI, -(1<<5) + 1, _RU, L_NASARU, R_SHUUSI, -(1<<5) + 1, _RE, L_NASARU, R_KATEI3, -(2<<5) + 1, _RU, L_NASARU, R_SHUUSI, -(0<<5) + 1, _ZO, L_NAZO, R_NAZO, -(0<<5) + 1, _XTU, L_NARU, R_ONBIN2, -(0<<5) + 1, _DO, L_NADO, R_NADO, -(0<<5) + 1, _YO, L_NA1, R_SHUUJO, -(0<<5) + 1, _RA, L_NARA, R_KATEI1, -(1<<5) + 0, L_NARU, R_MIZEN5, -(0<<5) + 1, _RI, L_NARI, R_NARI, -(1<<5) + 0, L_NARU, R_IKI, -(0<<5) + 1, _RU, L_NARU, R_SHUUSI, -(0<<5) + 1, _RE, L_NARU, R_IKE, -(0<<5) + 2, _RO,_U, L_NARU, R_AROU, -(0<<5) + 2, _NN,_KA, L_NANKA, R_NANKA, -(1<<5) + 1, _ZO, L_NANZO, R_NANZO, -(1<<5) + 1, _TE, L_NANTE, R_NANTE, -0xff -}; +static u_char fzk_na[] = { + (0 << 5) + 0, L_NA1, R_SHUUJO, + (0 << 5) + 0, L_NA2, R_NA2, + (0 << 5) + 1, _XA, L_NAA, R_SHUUJO, + (0 << 5) + 1, _A, L_NAA, R_SHUUJO, + (0 << 5) + 1, _I, L_NAI, R_NAI, + (1 << 5) + 1, _DE, L_NAI, R_NAIDE, + (0 << 5) + 2, _KA, _XTU, L_NAI, R_ONBIN1, + (1 << 5) + 2, _RO, _U, L_NAI, R_KAROU, + (0 << 5) + 2, _GA, _RA, L_NAGARA, R_NAGARA, + (2 << 5) + 0, L_NAGARA2, R_NAGARA2, + (0 << 5) + 2, _KI, _XYA, L_NAI, R_CUT, + (0 << 5) + 1, _KU, L_NAI, R_NAKU, + (0 << 5) + 2, _KE, _RE, L_NAI, R_KATEI3, + (0 << 5) + 2, _SA, _I, L_NASAI, R_NASAI, + (1 << 5) + 1, _RA, L_NASARU, R_MIZEN4, + (1 << 5) + 1, _RI, L_NASARU, R_ITADAKI, + (1 << 5) + 1, _RU, L_NASARU, R_SHUUSI, + (1 << 5) + 1, _RE, L_NASARU, R_KATEI3, + (2 << 5) + 1, _RU, L_NASARU, R_SHUUSI, + (0 << 5) + 1, _ZO, L_NAZO, R_NAZO, + (0 << 5) + 1, _XTU, L_NARU, R_ONBIN2, + (0 << 5) + 1, _DO, L_NADO, R_NADO, + (0 << 5) + 1, _YO, L_NA1, R_SHUUJO, + (0 << 5) + 1, _RA, L_NARA, R_KATEI1, + (1 << 5) + 0, L_NARU, R_MIZEN5, + (0 << 5) + 1, _RI, L_NARI, R_NARI, + (1 << 5) + 0, L_NARU, R_IKI, + (0 << 5) + 1, _RU, L_NARU, R_SHUUSI, + (0 << 5) + 1, _RE, L_NARU, R_IKE, + (0 << 5) + 2, _RO, _U, L_NARU, R_AROU, + (0 << 5) + 2, _NN, _KA, L_NANKA, R_NANKA, + (1 << 5) + 1, _ZO, L_NANZO, R_NANZO, + (1 << 5) + 1, _TE, L_NANTE, R_NANTE, + 0xff}; -static u_char fzk_ni[] = { -(0<<5) + 0, L_NI1, R_NI1, -(0<<5) + 0, L_NI2, R_NI2, -(0<<5) + 0, L_NI3, R_NI3, -(0<<5) + 2, _KU,_I, L_NIKUI, R_KSHUUSI, -(1<<5) + 2, _KA,_XTU, L_NIKUI, R_ONBIN1, -(2<<5) + 2, _RO,_U, L_NIKUI, R_KAROU, -(1<<5) + 1, _KU, L_NIKUI, R_TAKU, -(1<<5) + 2, _KE,_RE, L_NIKUI, R_KATEI3, -(1<<5) + 1, _SA, L_NIKUI, R_FZKMEISI, -(0<<5) + 1, _TE, L_NITE, R_NITE, -(0<<5) + 2, _DE,_MO, L_NI1, R_MO1, -(0<<5) + 1, _MO, L_NIMO, R_NIMO, -0xff -}; +static u_char fzk_ni[] = { + (0 << 5) + 0, L_NI1, R_NI1, + (0 << 5) + 0, L_NI2, R_NI2, + (0 << 5) + 0, L_NI3, R_NI3, + (0 << 5) + 2, _KU, _I, L_NIKUI, R_KSHUUSI, + (1 << 5) + 2, _KA, _XTU, L_NIKUI, R_ONBIN1, + (2 << 5) + 2, _RO, _U, L_NIKUI, R_KAROU, + (1 << 5) + 1, _KU, L_NIKUI, R_TAKU, + (1 << 5) + 2, _KE, _RE, L_NIKUI, R_KATEI3, + (1 << 5) + 1, _SA, L_NIKUI, R_FZKMEISI, + (0 << 5) + 1, _TE, L_NITE, R_NITE, + (0 << 5) + 2, _DE, _MO, L_NI1, R_MO1, + (0 << 5) + 1, _MO, L_NIMO, R_NIMO, + 0xff}; -static u_char fzk_nu[] = { -(0<<5) + 0, L_NU, R_NU, -0xff -}; +static u_char fzk_nu[] = { + (0 << 5) + 0, L_NU, R_NU, + 0xff}; -static u_char fzk_ne[] = { -(0<<5) + 0, L_NE1, R_SHUUJO, -(0<<5) + 0, L_NE2, R_KATEI2, -(0<<5) + 1, _E, L_NEE, R_SHUUJO, -0xff -}; +static u_char fzk_ne[] = { + (0 << 5) + 0, L_NE1, R_SHUUJO, + (0 << 5) + 0, L_NE2, R_KATEI2, + (0 << 5) + 1, _E, L_NEE, R_SHUUJO, + 0xff}; -static u_char fzk_no[] = { -(0<<5) + 0, L_NO1, R_NO1, -(0<<5) + 0, L_NO2, R_NO2, -(0<<5) + 1, _DE, L_NODE, R_NODE, -(0<<5) + 1, _NI, L_NONI, R_NONI, -(0<<5) + 1, _MI, L_NOMI, R_NOMI, -(1<<5) + 3, _NA,_RA,_ZU, L_NOMINRZ, R_NOMINRZ, -0xff -}; +static u_char fzk_no[] = { + (0 << 5) + 0, L_NO1, R_NO1, + (0 << 5) + 0, L_NO2, R_NO2, + (0 << 5) + 1, _DE, L_NODE, R_NODE, + (0 << 5) + 1, _NI, L_NONI, R_NONI, + (0 << 5) + 1, _MI, L_NOMI, R_NOMI, + (1 << 5) + 3, _NA, _RA, _ZU, L_NOMINRZ, R_NOMINRZ, + 0xff}; -static u_char fzk_ha[] = { -(0<<5) + 0, L_HA, R_HA, -(0<<5) + 1, _SI, L_HA, R_HASI, -(0<<5) + 1, _ZU, L_HAZU, R_HAZU, -0xff -}; +static u_char fzk_ha[] = { + (0 << 5) + 0, L_HA, R_HA, + (0 << 5) + 1, _SI, L_HA, R_HASI, + (0 << 5) + 1, _ZU, L_HAZU, R_HAZU, + 0xff}; -static u_char fzk_ba[] = { -(0<<5) + 0, L_BA, R_BA, -(0<<5) + 2, _KA,_SI, L_BAKARI, R_BAKARI, -(1<<5) + 1, _RI, L_BAKARI, R_BAKARI, -(0<<5) + 3, _XTU,_KA,_SI, L_BAKARI, R_BAKARI, -(2<<5) + 1, _RI, L_BAKARI, R_BAKARI, -0xff -}; +static u_char fzk_ba[] = { + (0 << 5) + 0, L_BA, R_BA, + (0 << 5) + 2, _KA, _SI, L_BAKARI, R_BAKARI, + (1 << 5) + 1, _RI, L_BAKARI, R_BAKARI, + (0 << 5) + 3, _XTU, _KA, _SI, L_BAKARI, R_BAKARI, + (2 << 5) + 1, _RI, L_BAKARI, R_BAKARI, + 0xff}; -static u_char fzk_hu[] = { -(0<<5) + 2, _U,_DA, L_FUUDA, R_SOUDA, -(2<<5) + 1, _XTU, L_FUUDA, R_ONBIN1, -(2<<5) + 2, _RO,_U, L_FUUDA, R_DAROU, -(1<<5) + 1, _DE, L_FUUDA, R_SOUDE, -(2<<5) + 1, _SI, L_FUUDA, R_DESHI, -(3<<5) + 1, _XYO, L_FUUDA, R_SHO, -(4<<5) + 1, _U, L_FUUDA, R_DESHOU, -(2<<5) + 1, _SU, L_FUUDA, R_SOUDESU, -(1<<5) + 1, _NA, L_FUUDA, R_SOUNA2, -(2<<5) + 1, _RA, L_FUUDA, R_KATEI1, -(1<<5) + 1, _NI, L_FUUDA, R_FUUNI, -0xff -}; +static u_char fzk_hu[] = { + (0 << 5) + 2, _U, _DA, L_FUUDA, R_SOUDA, + (2 << 5) + 1, _XTU, L_FUUDA, R_ONBIN1, + (2 << 5) + 2, _RO, _U, L_FUUDA, R_DAROU, + (1 << 5) + 1, _DE, L_FUUDA, R_SOUDE, + (2 << 5) + 1, _SI, L_FUUDA, R_DESHI, + (3 << 5) + 1, _XYO, L_FUUDA, R_SHO, + (4 << 5) + 1, _U, L_FUUDA, R_DESHOU, + (2 << 5) + 1, _SU, L_FUUDA, R_SOUDESU, + (1 << 5) + 1, _NA, L_FUUDA, R_SOUNA2, + (2 << 5) + 1, _RA, L_FUUDA, R_KATEI1, + (1 << 5) + 1, _NI, L_FUUDA, R_FUUNI, + 0xff}; -static u_char fzk_he[] = { -(0<<5)+0, L_HE, R_HE, -0xff -}; +static u_char fzk_he[] = { + (0 << 5) + 0, L_HE, R_HE, + 0xff}; -static u_char fzk_be[] = { -(0<<5) + 2, _KA,_RA, L_BESI, R_BEKARA, -(0<<5) + 1, _KI, L_BESI, R_BEKI, -(0<<5) + 1, _KU, L_BESI, R_BEKU, -(0<<5) + 1, _SI, L_BESI, R_BESI, -0xff -}; +static u_char fzk_be[] = { + (0 << 5) + 2, _KA, _RA, L_BESI, R_BEKARA, + (0 << 5) + 1, _KI, L_BESI, R_BEKI, + (0 << 5) + 1, _KU, L_BESI, R_BEKU, + (0 << 5) + 1, _SI, L_BESI, R_BESI, + 0xff}; -static u_char fzk_ho[] = { -(0<<5) + 1, _U, L_HOU, R_HOU, -(0<<5) + 1, _KA, L_HOKA, R_HOKA, -(0<<5) + 1, _DO, L_HODO, R_HODO, -0xff -}; +static u_char fzk_ho[] = { + (0 << 5) + 1, _U, L_HOU, R_HOU, + (0 << 5) + 1, _KA, L_HOKA, R_HOKA, + (0 << 5) + 1, _DO, L_HODO, R_HODO, + 0xff}; -static u_char fzk_ma[] = { -(0<<5) + 1, _I, L_MAI, R_MAI, -(0<<5) + 1, _SI, L_MASU, R_DESHI, -(1<<5) + 0, L_MASU, R_MEIREI2, -(1<<5) + 1, _XYO, L_MASU, R_SHO, -(2<<5) + 1, _U, L_MASU, R_DESHOU, -(0<<5) + 1, _SU, L_MASU, R_MASU, -(1<<5) + 1, _RE, L_MASURE, R_KATEI2, -(0<<5) + 1, _SE, L_MASE, R_MEIREI1, -(1<<5) + 1, _NU, L_MASU, R_NU, -(1<<5) + 1, _NN, L_MASU, R_NN2, -(0<<5) + 1, _DE, L_MADE, R_MADE, -(0<<5) + 1, _MA, L_MAMA, R_MAMA, -0xff -}; +static u_char fzk_ma[] = { + (0 << 5) + 1, _I, L_MAI, R_MAI, + (0 << 5) + 1, _SI, L_MASU, R_DESHI, + (1 << 5) + 0, L_MASU, R_MEIREI2, + (1 << 5) + 1, _XYO, L_MASU, R_SHO, + (2 << 5) + 1, _U, L_MASU, R_DESHOU, + (0 << 5) + 1, _SU, L_MASU, R_MASU, + (1 << 5) + 1, _RE, L_MASURE, R_KATEI2, + (0 << 5) + 1, _SE, L_MASE, R_MEIREI1, + (1 << 5) + 1, _NU, L_MASU, R_NU, + (1 << 5) + 1, _NN, L_MASU, R_NN2, + (0 << 5) + 1, _DE, L_MADE, R_MADE, + (0 << 5) + 1, _MA, L_MAMA, R_MAMA, + 0xff}; -static u_char fzk_mi[] = { -(0<<5) + 0, L_YOUGEN, R_MI, -(0<<5) + 2, _TA,_I, L_MITAIDA, R_MITAI, -(2<<5) + 1, _DA, L_MITAIDA, R_MITAIDA, -(3<<5) + 1, _XTU, L_MITAIDA, R_ONBIN1, -(3<<5) + 2, _RO,_U, L_MITAIDA, R_DAROU, -(2<<5) + 1, _DE, L_MITAIDA, R_SOUDE, -(3<<5) + 1, _SI, L_MITAIDA, R_DESHI, -(4<<5) + 1, _XYO, L_MITAIDA, R_SHO, -(5<<5) + 1, _U, L_MITAIDA, R_DESHOU, -(3<<5) + 1, _SU, L_MITAIDA, R_SOUDESU, -(2<<5) + 1, _NA, L_MITAIDA, R_SOUNA2, -(3<<5) + 1, _RA, L_MITAIDA, R_KATEI1, -(2<<5) + 1, _NI, L_MITAIDA, R_FUUNI, -(0<<5) + 1, _YO, L_YOUGEN, R_MEIREI2, -(0<<5) + 1, _RU, L_YOUGEN, R_SHUUSI, -(0<<5) + 1, _RE, L_YOUGEN, R_KATEI2, -(0<<5) + 1, _RO, L_YOUGEN, R_MEIREI1, -0xff -}; +static u_char fzk_mi[] = { + (0 << 5) + 0, L_YOUGEN, R_MI, + (0 << 5) + 2, _TA, _I, L_MITAIDA, R_MITAI, + (2 << 5) + 1, _DA, L_MITAIDA, R_MITAIDA, + (3 << 5) + 1, _XTU, L_MITAIDA, R_ONBIN1, + (3 << 5) + 2, _RO, _U, L_MITAIDA, R_DAROU, + (2 << 5) + 1, _DE, L_MITAIDA, R_SOUDE, + (3 << 5) + 1, _SI, L_MITAIDA, R_DESHI, + (4 << 5) + 1, _XYO, L_MITAIDA, R_SHO, + (5 << 5) + 1, _U, L_MITAIDA, R_DESHOU, + (3 << 5) + 1, _SU, L_MITAIDA, R_SOUDESU, + (2 << 5) + 1, _NA, L_MITAIDA, R_SOUNA2, + (3 << 5) + 1, _RA, L_MITAIDA, R_KATEI1, + (2 << 5) + 1, _NI, L_MITAIDA, R_FUUNI, + (0 << 5) + 1, _YO, L_YOUGEN, R_MEIREI2, + (0 << 5) + 1, _RU, L_YOUGEN, R_SHUUSI, + (0 << 5) + 1, _RE, L_YOUGEN, R_KATEI2, + (0 << 5) + 1, _RO, L_YOUGEN, R_MEIREI1, + 0xff}; -static u_char fzk_mo[] = { -(0<<5) + 0, L_MO1, R_MO1, -(0<<5) + 0, L_MO2, R_MO2, -(0<<5) + 2, _XTU,_TE, L_MOTTE, R_MOTTE, -(0<<5) + 1, _NO, L_MONO, R_MONO, -(0<<5) + 2, _RA,_I, L_YOUGEN, R_IKI, -(1<<5) + 1, _U, L_YOUGEN, R_SHUUSI, -(1<<5) + 1, _E, L_YOUGEN, R_IKE, -(1<<5) + 2, _O,_U, L_YOUGEN, R_AROU, -(1<<5) + 1, _XTU, L_YOUGEN, R_ONBIN2, -(1<<5) + 1, _WA, L_YOUGEN, R_MIZEN5, -(0<<5) + 1, _NN, L_WAYO, R_SHUUJO, -(1<<5) + 1, _KA, L_WAYO, R_SHUUJO, -0xff -}; +static u_char fzk_mo[] = { + (0 << 5) + 0, L_MO1, R_MO1, + (0 << 5) + 0, L_MO2, R_MO2, + (0 << 5) + 2, _XTU, _TE, L_MOTTE, R_MOTTE, + (0 << 5) + 1, _NO, L_MONO, R_MONO, + (0 << 5) + 2, _RA, _I, L_YOUGEN, R_IKI, + (1 << 5) + 1, _U, L_YOUGEN, R_SHUUSI, + (1 << 5) + 1, _E, L_YOUGEN, R_IKE, + (1 << 5) + 2, _O, _U, L_YOUGEN, R_AROU, + (1 << 5) + 1, _XTU, L_YOUGEN, R_ONBIN2, + (1 << 5) + 1, _WA, L_YOUGEN, R_MIZEN5, + (0 << 5) + 1, _NN, L_WAYO, R_SHUUJO, + (1 << 5) + 1, _KA, L_WAYO, R_SHUUJO, + 0xff}; -static u_char fzk_ya[] = { -(0<<5) + 0, L_YA1, R_YA1, -(0<<5) + 0, L_YA2, R_YA2, -(0<<5) + 2, _SU,_I, L_YASUI, R_KSHUUSI, -(1<<5) + 2, _KA,_XTU, L_YASUI, R_ONBIN1, -(2<<5) + 2, _RO,_U, L_YASUI, R_KAROU, -(1<<5) + 1, _KU, L_YASUI, R_TAKU, -(1<<5) + 2, _KE,_RE, L_YASUI, R_KATEI3, -(1<<5) + 1, _SA, L_YASUI, R_FZKMEISI, -(0<<5) + 1, _XTU, L_YOUGEN, R_ONBIN2, -(0<<5) + 1, _RA, L_YARA, R_YARA, -(1<<5) + 0, L_YOUGEN, R_MIZEN5, -(0<<5) + 1, _RI, L_YOUGEN, R_IKI, -(0<<5) + 1, _RU, L_YOUGEN, R_SHUUSI, -(0<<5) + 1, _RE, L_YOUGEN, R_KATEI2, -(0<<5) + 2, _RO,_U, L_YOUGEN, R_AROU, -0xff -}; +static u_char fzk_ya[] = { + (0 << 5) + 0, L_YA1, R_YA1, + (0 << 5) + 0, L_YA2, R_YA2, + (0 << 5) + 2, _SU, _I, L_YASUI, R_KSHUUSI, + (1 << 5) + 2, _KA, _XTU, L_YASUI, R_ONBIN1, + (2 << 5) + 2, _RO, _U, L_YASUI, R_KAROU, + (1 << 5) + 1, _KU, L_YASUI, R_TAKU, + (1 << 5) + 2, _KE, _RE, L_YASUI, R_KATEI3, + (1 << 5) + 1, _SA, L_YASUI, R_FZKMEISI, + (0 << 5) + 1, _XTU, L_YOUGEN, R_ONBIN2, + (0 << 5) + 1, _RA, L_YARA, R_YARA, + (1 << 5) + 0, L_YOUGEN, R_MIZEN5, + (0 << 5) + 1, _RI, L_YOUGEN, R_IKI, + (0 << 5) + 1, _RU, L_YOUGEN, R_SHUUSI, + (0 << 5) + 1, _RE, L_YOUGEN, R_KATEI2, + (0 << 5) + 2, _RO, _U, L_YOUGEN, R_AROU, + 0xff}; -static u_char fzk_yu[] = { -(0<<5) + 1, _E, L_YUE, R_YUE, -0xff -}; +static u_char fzk_yu[] = { + (0 << 5) + 1, _E, L_YUE, R_YUE, + 0xff}; -static u_char fzk_yo[] = { -(0<<5) + 0, L_YO, R_SHUUJO, -(0<<5) + 1, _I, L_YOI, R_KSHUUSI, -(0<<5) + 1, _U, L_YOU, R_YOU1, -(1<<5) + 0, L_YOUDA, R_YOU2, -(1<<5) + 1, _DA, L_YOUDA, R_SOUDA, -(2<<5) + 1, _XTU, L_YOUDA, R_ONBIN1, -(2<<5) + 2, _RO,_U, L_YOUDA, R_DAROU, -(1<<5) + 1, _DE, L_YOUDA, R_SOUDE, -(2<<5) + 1, _SI, L_YOUDA, R_DESHI, -(3<<5) + 1, _XYO, L_YOUDA, R_SHO, -(4<<5) + 1, _U, L_YOUDA, R_DESHOU, -(2<<5) + 1, _SU, L_YOUDA, R_SOUDESU, -(1<<5) + 1, _NA, L_YOUDA, R_SOUNA2, -(2<<5) + 1, _RA, L_YOUDA, R_KATEI1, -(1<<5) + 1, _NI, L_YOUDA, R_FUUNI, -(0<<5) + 2, _KA,_XTU, L_YOI, R_ONBIN1, -(1<<5) + 2, _RO,_U, L_YOI, R_KAROU, -(0<<5) + 1, _KU, L_YOI, R_TAKU, -(0<<5) + 2, _KE,_RE, L_YOI, R_KATEI3, -(0<<5) + 1, _SA, L_YOI, R_FZKMEISI, -(0<<5) + 2, _XTU,_TE, L_YORU, R_YOTTE, -(0<<5) + 2, _NA,_XA, L_YO, R_SHUUJO, -(1<<5) + 1, _A, L_YO, R_SHUUJO, -(0<<5) + 1, _NE, L_YO, R_SHUUJO, -(0<<5) + 1, _RA, L_YORU, R_MIZEN4, -(0<<5) + 1, _RI, L_YORI, R_YORI1, -(1<<5) + 0, L_YORU, R_YORI2, -(0<<5) + 1, _RU, L_YORU, R_SHUUSI, -(0<<5) + 1, _RE, L_YORU, R_KATEI3, -0xff -}; +static u_char fzk_yo[] = { + (0 << 5) + 0, L_YO, R_SHUUJO, + (0 << 5) + 1, _I, L_YOI, R_KSHUUSI, + (0 << 5) + 1, _U, L_YOU, R_YOU1, + (1 << 5) + 0, L_YOUDA, R_YOU2, + (1 << 5) + 1, _DA, L_YOUDA, R_SOUDA, + (2 << 5) + 1, _XTU, L_YOUDA, R_ONBIN1, + (2 << 5) + 2, _RO, _U, L_YOUDA, R_DAROU, + (1 << 5) + 1, _DE, L_YOUDA, R_SOUDE, + (2 << 5) + 1, _SI, L_YOUDA, R_DESHI, + (3 << 5) + 1, _XYO, L_YOUDA, R_SHO, + (4 << 5) + 1, _U, L_YOUDA, R_DESHOU, + (2 << 5) + 1, _SU, L_YOUDA, R_SOUDESU, + (1 << 5) + 1, _NA, L_YOUDA, R_SOUNA2, + (2 << 5) + 1, _RA, L_YOUDA, R_KATEI1, + (1 << 5) + 1, _NI, L_YOUDA, R_FUUNI, + (0 << 5) + 2, _KA, _XTU, L_YOI, R_ONBIN1, + (1 << 5) + 2, _RO, _U, L_YOI, R_KAROU, + (0 << 5) + 1, _KU, L_YOI, R_TAKU, + (0 << 5) + 2, _KE, _RE, L_YOI, R_KATEI3, + (0 << 5) + 1, _SA, L_YOI, R_FZKMEISI, + (0 << 5) + 2, _XTU, _TE, L_YORU, R_YOTTE, + (0 << 5) + 2, _NA, _XA, L_YO, R_SHUUJO, + (1 << 5) + 1, _A, L_YO, R_SHUUJO, + (0 << 5) + 1, _NE, L_YO, R_SHUUJO, + (0 << 5) + 1, _RA, L_YORU, R_MIZEN4, + (0 << 5) + 1, _RI, L_YORI, R_YORI1, + (1 << 5) + 0, L_YORU, R_YORI2, + (0 << 5) + 1, _RU, L_YORU, R_SHUUSI, + (0 << 5) + 1, _RE, L_YORU, R_KATEI3, + 0xff}; -static u_char fzk_ra[] = { -(0<<5) + 2, _SI,_I, L_RASII, R_RASII, -(1<<5) + 2, _KA,_XTU, L_RASII, R_ONBIN1, -(1<<5) + 1, _KI, L_RASII, R_GOTOKI, -(1<<5) + 1, _KU, L_RASII, R_TAKU, -(1<<5) + 2, _XYU,_U, L_RASII, R_RASHUU, -(0<<5) + 1, _RE, L_RARERU, R_RARE, -(1<<5) + 1, _YO, L_RARERU, R_MEIREI2, -(1<<5) + 1, _RU, L_RARERU, R_SHUUSI, -(1<<5) + 1, _RE, L_RARERU, R_KATEI2, -(1<<5) + 1, _RO, L_RARERU, R_MEIREI1, -0xff -}; +static u_char fzk_ra[] = { + (0 << 5) + 2, _SI, _I, L_RASII, R_RASII, + (1 << 5) + 2, _KA, _XTU, L_RASII, R_ONBIN1, + (1 << 5) + 1, _KI, L_RASII, R_GOTOKI, + (1 << 5) + 1, _KU, L_RASII, R_TAKU, + (1 << 5) + 2, _XYU, _U, L_RASII, R_RASHUU, + (0 << 5) + 1, _RE, L_RARERU, R_RARE, + (1 << 5) + 1, _YO, L_RARERU, R_MEIREI2, + (1 << 5) + 1, _RU, L_RARERU, R_SHUUSI, + (1 << 5) + 1, _RE, L_RARERU, R_KATEI2, + (1 << 5) + 1, _RO, L_RARERU, R_MEIREI1, + 0xff}; -static u_char fzk_re[] = { -(0<<5) + 0, L_RERU, R_RARE, -(0<<5) + 1, _YO, L_RERU, R_MEIREI2, -(0<<5) + 1, _RU, L_RERU, R_SHUUSI, -(0<<5) + 1, _RE, L_RERU, R_KATEI2, -(0<<5) + 1, _RO, L_RERU, R_MEIREI1, -0xff -}; +static u_char fzk_re[] = { + (0 << 5) + 0, L_RERU, R_RARE, + (0 << 5) + 1, _YO, L_RERU, R_MEIREI2, + (0 << 5) + 1, _RU, L_RERU, R_SHUUSI, + (0 << 5) + 1, _RE, L_RERU, R_KATEI2, + (0 << 5) + 1, _RO, L_RERU, R_MEIREI1, + 0xff}; -static u_char fzk_wa[] = { -(0<<5) + 0, L_WA, R_SHUUJO, -(0<<5) + 1, _KE, L_WAKE, R_WAKE, -(0<<5) + 1, _NE, L_WANE, R_SHUUJO, -(0<<5) + 1, _YO, L_WAYO, R_SHUUJO, -0xff -}; +static u_char fzk_wa[] = { + (0 << 5) + 0, L_WA, R_SHUUJO, + (0 << 5) + 1, _KE, L_WAKE, R_WAKE, + (0 << 5) + 1, _NE, L_WANE, R_SHUUJO, + (0 << 5) + 1, _YO, L_WAYO, R_SHUUJO, + 0xff}; -static u_char fzk_nn[] = { -(0<<5) + 0, L_NN1, R_NN1, -(0<<5) + 0, L_NN2, R_NN2, -0xff -}; +static u_char fzk_nn[] = { + (0 << 5) + 0, L_NN1, R_NN1, + (0 << 5) + 0, L_NN2, R_NN2, + 0xff}; - - -u_char *fzkadr[] = { - 0, fzk_a, 0, fzk_i, 0, - fzk_u, 0, fzk_e, 0, fzk_o, - fzk_ka, fzk_ga, fzk_ki, 0, fzk_ku, - fzk_gu, fzk_ke, 0, fzk_ko, fzk_go, - fzk_sa, fzk_za, fzk_si, fzk_ji, fzk_su, - fzk_zu, fzk_se, fzk_ze, fzk_so, fzk_zo, - fzk_ta, fzk_da, fzk_ti, fzk_di, fzk_xtu, - fzk_tu, 0, fzk_te, fzk_de, fzk_to, - fzk_do, fzk_na, fzk_ni, fzk_nu, fzk_ne, - fzk_no, fzk_ha, fzk_ba, 0, 0, - 0, 0, fzk_hu, 0, 0, - fzk_he, fzk_be, 0, fzk_ho, 0, - 0, fzk_ma, fzk_mi, 0, 0, - fzk_mo, 0, fzk_ya, 0, fzk_yu, - 0, fzk_yo, fzk_ra, 0, 0, - fzk_re, 0, 0, fzk_wa, 0, - 0, fzk_wo, fzk_nn -}; +u_char* fzkadr[] = { + 0, fzk_a, 0, fzk_i, 0, + fzk_u, 0, fzk_e, 0, fzk_o, + fzk_ka, fzk_ga, fzk_ki, 0, fzk_ku, + fzk_gu, fzk_ke, 0, fzk_ko, fzk_go, + fzk_sa, fzk_za, fzk_si, fzk_ji, fzk_su, + fzk_zu, fzk_se, fzk_ze, fzk_so, fzk_zo, + fzk_ta, fzk_da, fzk_ti, fzk_di, fzk_xtu, + fzk_tu, 0, fzk_te, fzk_de, fzk_to, + fzk_do, fzk_na, fzk_ni, fzk_nu, fzk_ne, + fzk_no, fzk_ha, fzk_ba, 0, 0, + 0, 0, fzk_hu, 0, 0, + fzk_he, fzk_be, 0, fzk_ho, 0, + 0, fzk_ma, fzk_mi, 0, 0, + fzk_mo, 0, fzk_ya, 0, fzk_yu, + 0, fzk_yo, fzk_ra, 0, 0, + fzk_re, 0, 0, fzk_wa, 0, + 0, fzk_wo, fzk_nn}; diff --git a/lib/sj3core/getkanji.c b/lib/sj3core/getkanji.c index 590e03e..a1cce5c 100644 --- a/lib/sj3core/getkanji.c +++ b/lib/sj3core/getkanji.c @@ -1,6 +1,6 @@ /* * Copyright (c) 1991-1994 Sony Corporation - * + * * Permission is hereby granted, free of charge, to any person obtaining * a copy of this software and associated documentation files (the * "Software"), to deal in the Software without restriction, including @@ -8,10 +8,10 @@ * distribute, sublicense, and/or sell copies of the Software, and to * permit persons to whom the Software is furnished to do so, subject to * the following conditions: - * + * * The above copyright notice and this permission notice shall be * included in all copies or substantial portions of the Software. - * + * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. @@ -19,7 +19,7 @@ * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR * THE USE OR OTHER DEALINGS IN THE SOFTWARE. - * + * * Except as contained in this notice, the name of Sony Corporation * shall not be used in advertising or otherwise to promote the sale, use * or other dealings in this Software without prior written authorization @@ -28,69 +28,61 @@ */ /* - * $SonyRCSfile: getkanji.c,v $ - * $SonyRevision: 1.1 $ + * $SonyRCSfile: getkanji.c,v $ + * $SonyRevision: 1.1 $ * $SonyDate: 1994/06/03 08:01:49 $ */ - - - #include "sj_euc.h" #include "sj_kcnv.h" #include "sj_kanakan.h" -static u_char *code2kanji(); +static u_char* code2kanji(); -u_char * -getkan_none(u_char *s, u_char *d, u_char *ym, int yl, int flg) -{ +u_char* +getkan_none(u_char* s, u_char* d, u_char* ym, int yl, int flg) { return d; } -u_char * -getkan_hira(u_char *s, u_char *d, u_char *ym, int yl, int flg) -{ - int cnt, csize; +u_char* +getkan_hira(u_char* s, u_char* d, u_char* ym, int yl, int flg) { + int cnt, csize; csize = codesize(*s); - cnt = (*s & KANJICODEMASK) + 1; + cnt = (*s & KANJICODEMASK) + 1; - if (flg && (s[csize] == KANJISTREND)) ym += (yl - cnt) * 2; + if(flg && (s[csize] == KANJISTREND)) ym += (yl - cnt) * 2; cnt *= 2; - while (cnt-- > 0) *d++ = *ym++; + while(cnt-- > 0) *d++ = *ym++; return d; } -u_char * -getkan_kata(u_char *s, u_char *d, u_char *ym, int yl, int flg) -{ - int cnt, csize; - u_char ch; +u_char* +getkan_kata(u_char* s, u_char* d, u_char* ym, int yl, int flg) { + int cnt, csize; + u_char ch; csize = codesize(*s); - cnt = (*s & KANJICODEMASK) + 1; + cnt = (*s & KANJICODEMASK) + 1; - if (flg && (s[csize] == KANJISTREND)) ym += (yl - cnt) * 2; + if(flg && (s[csize] == KANJISTREND)) ym += (yl - cnt) * 2; - while (cnt-- > 0) { - if (*ym == 0xa4) { + while(cnt-- > 0) { + if(*ym == 0xa4) { ch = *++ym; - if (0xa1 <= ch && ch <= 0xf3) { + if(0xa1 <= ch && ch <= 0xf3) { *d++ = 0xa5; - } - else { + } else { *d++ = 0xa4; } *d++ = ch; ym++; - } - else { + } else { *d++ = *ym++; *d++ = *ym++; } @@ -99,104 +91,108 @@ getkan_kata(u_char *s, u_char *d, u_char *ym, int yl, int flg) return d; } -u_char * -getkan_knj(u_char *s, u_char *d, u_char *ym, int yl, int flg) -{ +u_char* +getkan_knj(u_char* s, u_char* d, u_char* ym, int yl, int flg) { return code2kanji(askknj[*s & KNJASSYUKUMASK], d, ym, yl, flg); } - - -u_char * -getkan_ofs(u_char *s, u_char *d, u_char *ym, int yl, int flg) -{ - return code2kanji(dicbuf + ((*s & KANJICODEMASK) << 8) + *(s + 1), - d, ym, yl, flg); +u_char* +getkan_ofs(u_char* s, u_char* d, u_char* ym, int yl, int flg) { + return code2kanji(dicbuf + ((*s & KANJICODEMASK) << 8) + *(s + 1), + d, ym, yl, flg); } -u_char * -getkan_norm(u_char *s, u_char *d, u_char *ym, int yl, int flg) -{ +u_char* +getkan_norm(u_char* s, u_char* d, u_char* ym, int yl, int flg) { u_char c; - if (*s != 0) { + if(*s != 0) { c = s[1]; - if (c & 0x80) - *d++ = SS3; + if(c & 0x80) + *d++ = SS3; *d++ = *s | 0x80; - *d++ = c | 0x80; + *d++ = c | 0x80; } else { *d++ = *s; } return d; } -u_char * -getkan_ascii(u_char *s, u_char *d, u_char *ym, int yl, int flg) -{ +u_char* +getkan_ascii(u_char* s, u_char* d, u_char* ym, int yl, int flg) { u_char c; c = s[1]; - if (c & 0x80) - *d++ = SS2; + if(c & 0x80) + *d++ = SS2; *d++ = c; return d; } -static u_char * -code2kanji(u_char *s, u_char *d, u_char *ym, int yl, int flg) -{ +static u_char* +code2kanji(u_char* s, u_char* d, u_char* ym, int yl, int flg) { int csize; - for ( ; ; ) { + for(;;) { csize = codesize(*s); - if (s[csize] == KANJISTREND) { + if(s[csize] == KANJISTREND) { switch(*s & KANJIMODEMASK) { - case ZENHIRAASSYUKU: - d = getkan_hira(s, d, ym, yl, flg); break; + case ZENHIRAASSYUKU: + d = getkan_hira(s, d, ym, yl, flg); + break; - case ZENKATAASSYUKU: - d = getkan_kata(s, d, ym, yl, flg); break; + case ZENKATAASSYUKU: + d = getkan_kata(s, d, ym, yl, flg); + break; - case OFFSETASSYUKU: - d = getkan_ofs(s, d, ym, yl, flg); break; + case OFFSETASSYUKU: + d = getkan_ofs(s, d, ym, yl, flg); + break; - case AIATTRIBUTE: - d = getkan_none(s, d, ym, yl, flg); break; + case AIATTRIBUTE: + d = getkan_none(s, d, ym, yl, flg); + break; - case LEADINGHANKAKU: - d = getkan_ascii(s, d, ym, yl, flg); break; + case LEADINGHANKAKU: + d = getkan_ascii(s, d, ym, yl, flg); + break; - case KANJIASSYUKU: - d = getkan_knj(s, d, ym, yl, flg); break; + case KANJIASSYUKU: + d = getkan_knj(s, d, ym, yl, flg); + break; - default: - d = getkan_norm(s, d, ym, yl, flg); + default: + d = getkan_norm(s, d, ym, yl, flg); } break; - } - else + } else switch(*s & KANJIMODEMASK) { - case ZENHIRAASSYUKU: - d = getkan_hira(s, d, ym, yl, FALSE); break; + case ZENHIRAASSYUKU: + d = getkan_hira(s, d, ym, yl, FALSE); + break; - case ZENKATAASSYUKU: - d = getkan_kata(s, d, ym, yl, FALSE); break; + case ZENKATAASSYUKU: + d = getkan_kata(s, d, ym, yl, FALSE); + break; - case OFFSETASSYUKU: - d = getkan_ofs(s, d, ym, yl, FALSE); break; + case OFFSETASSYUKU: + d = getkan_ofs(s, d, ym, yl, FALSE); + break; - case AIATTRIBUTE: - d = getkan_none(s, d, ym, yl, FALSE); break; + case AIATTRIBUTE: + d = getkan_none(s, d, ym, yl, FALSE); + break; - case LEADINGHANKAKU: - d = getkan_ascii(s, d, ym, yl, FALSE); break; + case LEADINGHANKAKU: + d = getkan_ascii(s, d, ym, yl, FALSE); + break; - case KANJIASSYUKU: - d = getkan_knj(s, d, ym, yl, FALSE); break; + case KANJIASSYUKU: + d = getkan_knj(s, d, ym, yl, FALSE); + break; - default: + default: d = getkan_norm(s, d, ym, yl, FALSE); } @@ -206,15 +202,10 @@ code2kanji(u_char *s, u_char *d, u_char *ym, int yl, int flg) return d; } - - -int -getkanji(u_char *ym, int yl, u_char *ptr, u_char *buf) -{ - u_char *q; +int getkanji(u_char* ym, int yl, u_char* ptr, u_char* buf) { + u_char* q; q = code2kanji(ptr, buf, ym, yl, TRUE); return q - buf; } - diff --git a/lib/sj3core/getrank.c b/lib/sj3core/getrank.c index e4ae9b8..3e4a509 100644 --- a/lib/sj3core/getrank.c +++ b/lib/sj3core/getrank.c @@ -1,6 +1,6 @@ /* * Copyright (c) 1991-1994 Sony Corporation - * + * * Permission is hereby granted, free of charge, to any person obtaining * a copy of this software and associated documentation files (the * "Software"), to deal in the Software without restriction, including @@ -8,10 +8,10 @@ * distribute, sublicense, and/or sell copies of the Software, and to * permit persons to whom the Software is furnished to do so, subject to * the following conditions: - * + * * The above copyright notice and this permission notice shall be * included in all copies or substantial portions of the Software. - * + * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. @@ -19,7 +19,7 @@ * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR * THE USE OR OTHER DEALINGS IN THE SOFTWARE. - * + * * Except as contained in this notice, the name of Sony Corporation * shall not be used in advertising or otherwise to promote the sale, use * or other dealings in this Software without prior written authorization @@ -28,164 +28,126 @@ */ /* - * $SonyRCSfile: getrank.c,v $ - * $SonyRevision: 1.1 $ + * $SonyRCSfile: getrank.c,v $ + * $SonyRevision: 1.1 $ * $SonyDate: 1994/06/03 08:01:50 $ */ - - - - #include "sj_kcnv.h" #include "sj_kanakan.h" -static void setstynum(), setnspr(), regetrank(); +static void setstynum(), setnspr(), regetrank(); + +void getrank() { -void -getrank() -{ - trank = nrank = 1; - setstynum(); - regetrank(); } - - static void -setstynum() -{ - KHREC *kptr; - STDYIN *sptr; +setstynum() { + KHREC* kptr; + STDYIN* sptr; int count; - - for (kptr = kouhotbl, count = khcount ; count-- ; kptr++) { - - sptr = srchstdy(kptr -> clrec -> jnode -> jseg, kptr -> offs, - kptr -> clrec -> jnode -> dicid); + for(kptr = kouhotbl, count = khcount; count--; kptr++) { - - if (!sptr) continue; + sptr = srchstdy(kptr->clrec->jnode->jseg, kptr->offs, + kptr->clrec->jnode->dicid); - - setnspr(kptr, sptr); + if(!sptr) continue; + + setnspr(kptr, sptr); } } - - static void -setnspr(KHREC *kptr, STDYIN *sptr) -{ - KHREC *ptr; - int keepnm; - TypeStyNum styno; +setnspr(KHREC* kptr, STDYIN* sptr) { + KHREC* ptr; + int keepnm; + TypeStyNum styno; - - styno = kptr -> styno = sptr -> styno; + styno = kptr->styno = sptr->styno; - keepnm = trank; - - for (ptr = kouhotbl ; ptr < kptr ; ptr++) { + for(ptr = kouhotbl; ptr < kptr; ptr++) { - - if (styno < ptr -> styno) { - - ptr -> rank++; + if(styno < ptr->styno) { + + ptr->rank++; - keepnm--; } - - else if (styno == ptr -> styno) { + else if(styno == ptr->styno) { - - if (kptr -> sttfg && kptr -> ka_fg) { - - - if ((sptr -> sttkj == kptr -> sttkj) && - (sptr -> ka_kj == kptr -> ka_kj)) { - ptr -> rank++; + if(kptr->sttfg && kptr->ka_fg) { + + if((sptr->sttkj == kptr->sttkj) && + (sptr->ka_kj == kptr->ka_kj)) { + ptr->rank++; keepnm--; } } - - else if (kptr -> sttfg) { - - - if (sptr -> sttkj == kptr -> sttkj) { - ptr -> rank++; + + else if(kptr->sttfg) { + + if(sptr->sttkj == kptr->sttkj) { + ptr->rank++; keepnm--; } } - - else if (kptr -> ka_fg) { - - - if (sptr -> ka_kj == kptr -> ka_kj) { - ptr -> rank++; + + else if(kptr->ka_fg) { + + if(sptr->ka_kj == kptr->ka_kj) { + ptr->rank++; keepnm--; } } } } - - kptr -> rank = (u_char)keepnm; + kptr->rank = (u_char)keepnm; trank++; - - if (keepnm <= nrank) nrank++; + if(keepnm <= nrank) nrank++; - - if (sptr -> nmflg && (nrank > keepnm)) nrank = keepnm; + if(sptr->nmflg && (nrank > keepnm)) nrank = keepnm; } - - static void -regetrank() -{ - KHREC *kptr; - int count; - int tmp; +regetrank() { + KHREC* kptr; + int count; + int tmp; + + if(nrank < trank) { - - if (nrank < trank) { - tmp = nrank; - trank += nkhcount; } - + else { nkhcount = tmp = 0; } - - for (count = khcount, kptr = kouhotbl ; count-- ; kptr++) { - - if (!(kptr -> rank)) { - if (tmp && kptr -> mode && !(kptr -> offs)) { - kptr -> rank = (u_char)tmp++; - } - else - kptr -> rank = (u_char)trank++; + for(count = khcount, kptr = kouhotbl; count--; kptr++) { + + if(!(kptr->rank)) { + if(tmp && kptr->mode && !(kptr->offs)) { + kptr->rank = (u_char)tmp++; + } else + kptr->rank = (u_char)trank++; } - - else if ((short)kptr -> rank >= nrank) - kptr -> rank += (u_char)nkhcount; + else if((short)kptr->rank >= nrank) + kptr->rank += (u_char)nkhcount; } } diff --git a/lib/sj3core/global.c b/lib/sj3core/global.c index 112c389..4f6ae59 100644 --- a/lib/sj3core/global.c +++ b/lib/sj3core/global.c @@ -1,6 +1,6 @@ /* * Copyright (c) 1991-1994 Sony Corporation - * + * * Permission is hereby granted, free of charge, to any person obtaining * a copy of this software and associated documentation files (the * "Software"), to deal in the Software without restriction, including @@ -8,10 +8,10 @@ * distribute, sublicense, and/or sell copies of the Software, and to * permit persons to whom the Software is furnished to do so, subject to * the following conditions: - * + * * The above copyright notice and this permission notice shall be * included in all copies or substantial portions of the Software. - * + * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. @@ -19,7 +19,7 @@ * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR * THE USE OR OTHER DEALINGS IN THE SOFTWARE. - * + * * Except as contained in this notice, the name of Sony Corporation * shall not be used in advertising or otherwise to promote the sale, use * or other dealings in this Software without prior written authorization @@ -28,13 +28,11 @@ */ /* - * $SonyRCSfile: global.c,v $ - * $SonyRevision: 1.2 $ + * $SonyRCSfile: global.c,v $ + * $SonyRevision: 1.2 $ * $SonyDate: 1994/12/09 11:27:06 $ */ - - #include #include #include "sj_rename.h" @@ -48,11 +46,10 @@ #include "sj_kanakan.h" -Global *global_work_base; +Global* global_work_base; -Global *work_base; +Global* work_base; -STDY *stdy_base; - -int serv_errno; +STDY* stdy_base; +int serv_errno; diff --git a/lib/sj3core/hzstrlen.c b/lib/sj3core/hzstrlen.c index e954ced..192b43a 100644 --- a/lib/sj3core/hzstrlen.c +++ b/lib/sj3core/hzstrlen.c @@ -1,6 +1,6 @@ /* * Copyright (c) 1991-1994 Sony Corporation - * + * * Permission is hereby granted, free of charge, to any person obtaining * a copy of this software and associated documentation files (the * "Software"), to deal in the Software without restriction, including @@ -8,10 +8,10 @@ * distribute, sublicense, and/or sell copies of the Software, and to * permit persons to whom the Software is furnished to do so, subject to * the following conditions: - * + * * The above copyright notice and this permission notice shall be * included in all copies or substantial portions of the Software. - * + * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. @@ -19,7 +19,7 @@ * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR * THE USE OR OTHER DEALINGS IN THE SOFTWARE. - * + * * Except as contained in this notice, the name of Sony Corporation * shall not be used in advertising or otherwise to promote the sale, use * or other dealings in this Software without prior written authorization @@ -28,8 +28,8 @@ */ /* - * $SonyRCSfile: hzstrlen.c,v $ - * $SonyRevision: 1.1 $ + * $SonyRCSfile: hzstrlen.c,v $ + * $SonyRevision: 1.1 $ * $SonyDate: 1994/06/03 08:01:52 $ */ @@ -41,28 +41,24 @@ #include "sj_kanakan.h" -int -euc_codesize(u_char c) -{ - if ((c & KANJIMODEMASK) == 0x90) { +int euc_codesize(u_char c) { + if((c & KANJIMODEMASK) == 0x90) { return 1; - } else if (isknj1(c)) { + } else if(isknj1(c)) { return 2; - } else if (c == SS3) { + } else if(c == SS3) { return 3; } else { return 1; } } -int -hzstrlen(u_char *ptr, int len) -{ - u_char *head; +int hzstrlen(u_char* ptr, int len) { + u_char* head; head = ptr; - while (len-- > 0) ptr += euc_codesize(*ptr); + while(len-- > 0) ptr += euc_codesize(*ptr); return (ptr - head); } diff --git a/lib/sj3core/init.c b/lib/sj3core/init.c index a4d6963..e0f29b3 100644 --- a/lib/sj3core/init.c +++ b/lib/sj3core/init.c @@ -1,6 +1,6 @@ /* * Copyright (c) 1991-1994 Sony Corporation - * + * * Permission is hereby granted, free of charge, to any person obtaining * a copy of this software and associated documentation files (the * "Software"), to deal in the Software without restriction, including @@ -8,10 +8,10 @@ * distribute, sublicense, and/or sell copies of the Software, and to * permit persons to whom the Software is furnished to do so, subject to * the following conditions: - * + * * The above copyright notice and this permission notice shall be * included in all copies or substantial portions of the Software. - * + * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. @@ -19,7 +19,7 @@ * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR * THE USE OR OTHER DEALINGS IN THE SOFTWARE. - * + * * Except as contained in this notice, the name of Sony Corporation * shall not be used in advertising or otherwise to promote the sale, use * or other dealings in this Software without prior written authorization @@ -28,45 +28,39 @@ */ /* - * $SonyRCSfile: init.c,v $ - * $SonyRevision: 1.1 $ + * $SonyRCSfile: init.c,v $ + * $SonyRevision: 1.1 $ * $SonyDate: 1994/06/03 08:01:54 $ */ - - #include "sj_kcnv.h" #include "sj_kanakan.h" -void -seg_count(DICT *dict) -{ - u_char *p; - u_char *q; - TypeDicSeg segcnt = 0; +void seg_count(DICT* dict) { + u_char* p; + u_char* q; + TypeDicSeg segcnt = 0; - if (dict-> getidx) { + if(dict->getidx) { (*dict->getidx)(dict); p = idxbuf; q = p + dict->idxlen; - while (p < q && *p) { + while(p < q && *p) { segcnt++; - while (*p++) ; + while(*p++); } } dict->segunit = (segcnt == 0) ? 1 : segcnt; } -void -mkidxtbl(DICT *dict) -{ - u_char *p; - TypeDicSeg seg; +void mkidxtbl(DICT* dict) { + u_char* p; + TypeDicSeg seg; - if (!dict->getidx || !dict->getofs) return; + if(!dict->getidx || !dict->getofs) return; seg = 0; @@ -74,16 +68,13 @@ mkidxtbl(DICT *dict) (*dict->getofs)(dict); idxofs[0] = 0; - for (p = idxbuf ; p < idxbuf + dict->idxlen && seg < dict->segunit ; ) { + for(p = idxbuf; p < idxbuf + dict->idxlen && seg < dict->segunit;) { idxofs[seg++] = p - idxbuf; - while (*p++) ; + while(*p++); } } -void -initwork() -{ - jrt1st = jrt2nd = maxjptr = (JREC *)0; - clt1st = clt2nd = maxclptr = (CLREC *)0; +void initwork() { + jrt1st = jrt2nd = maxjptr = (JREC*)0; + clt1st = clt2nd = maxclptr = (CLREC*)0; } - diff --git a/lib/sj3core/istrcmp.c b/lib/sj3core/istrcmp.c index 4806412..61571bb 100644 --- a/lib/sj3core/istrcmp.c +++ b/lib/sj3core/istrcmp.c @@ -1,6 +1,6 @@ /* * Copyright (c) 1991-1994 Sony Corporation - * + * * Permission is hereby granted, free of charge, to any person obtaining * a copy of this software and associated documentation files (the * "Software"), to deal in the Software without restriction, including @@ -8,10 +8,10 @@ * distribute, sublicense, and/or sell copies of the Software, and to * permit persons to whom the Software is furnished to do so, subject to * the following conditions: - * + * * The above copyright notice and this permission notice shall be * included in all copies or substantial portions of the Software. - * + * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. @@ -19,7 +19,7 @@ * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR * THE USE OR OTHER DEALINGS IN THE SOFTWARE. - * + * * Except as contained in this notice, the name of Sony Corporation * shall not be used in advertising or otherwise to promote the sale, use * or other dealings in this Software without prior written authorization @@ -28,31 +28,27 @@ */ /* - * $SonyRCSfile: istrcmp.c,v $ - * $SonyRevision: 1.1 $ + * $SonyRCSfile: istrcmp.c,v $ + * $SonyRevision: 1.1 $ * $SonyDate: 1994/06/03 08:01:55 $ */ - - #include "sj_rename.h" #include "sj_typedef.h" #include "sj_const.h" #include "sj_kanakan.h" -int -istrcmp(u_char *yomip, u_char *idxp, int ylen, int ilen) -{ - for (;;) { +int istrcmp(u_char* yomip, u_char* idxp, int ylen, int ilen) { + for(;;) { - if ((ilen | ylen) == 0) return MATCH; + if((ilen | ylen) == 0) return MATCH; - if (ilen == 0) return UNDER; + if(ilen == 0) return UNDER; - if ((ylen == 0) || (*yomip < *idxp)) return OVER; + if((ylen == 0) || (*yomip < *idxp)) return OVER; - if (*yomip > *idxp) return UNDER; + if(*yomip > *idxp) return UNDER; yomip++; idxp++; @@ -60,4 +56,3 @@ istrcmp(u_char *yomip, u_char *idxp, int ylen, int ilen) ilen--; } } - diff --git a/lib/sj3core/memory.c b/lib/sj3core/memory.c index e92d9aa..ea999e0 100644 --- a/lib/sj3core/memory.c +++ b/lib/sj3core/memory.c @@ -1,6 +1,6 @@ /* * Copyright (c) 1991-1994 Sony Corporation - * + * * Permission is hereby granted, free of charge, to any person obtaining * a copy of this software and associated documentation files (the * "Software"), to deal in the Software without restriction, including @@ -8,10 +8,10 @@ * distribute, sublicense, and/or sell copies of the Software, and to * permit persons to whom the Software is furnished to do so, subject to * the following conditions: - * + * * The above copyright notice and this permission notice shall be * included in all copies or substantial portions of the Software. - * + * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. @@ -19,7 +19,7 @@ * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR * THE USE OR OTHER DEALINGS IN THE SOFTWARE. - * + * * Except as contained in this notice, the name of Sony Corporation * shall not be used in advertising or otherwise to promote the sale, use * or other dealings in this Software without prior written authorization @@ -28,33 +28,29 @@ */ /* - * $SonyRCSfile: memory.c,v $ - * $SonyRevision: 1.1 $ + * $SonyRCSfile: memory.c,v $ + * $SonyRevision: 1.1 $ * $SonyDate: 1994/06/03 08:01:58 $ */ - - #include "sj_kcnv.h" #include "sj_kanakan.h" -JREC * -free_jlst(JREC *p) -{ - JREC *jpk; - JREC *jp; - JREC *jn; +JREC* free_jlst(JREC* p) { + JREC* jpk; + JREC* jp; + JREC* jn; jp = NULL; - for ( ; p ; p = jn) { + for(; p; p = jn) { - jn = p -> jsort; + jn = p->jsort; - if (p -> count) { - if (jp) - jp -> jsort = p; + if(p->count) { + if(jp) + jp->jsort = p; else jpk = p; jp = p; @@ -65,36 +61,33 @@ free_jlst(JREC *p) } } - if (jp) jp -> jsort = NULL; + if(jp) jp->jsort = NULL; return jpk; } -CLREC * -free_clst(CLREC *p, int l) -{ - CLREC *cpk; - CLREC *cp; - CLREC *cn; +CLREC* +free_clst(CLREC* p, int l) { + CLREC* cpk; + CLREC* cp; + CLREC* cn; cp = cpk = NULL; - for ( ; p ; p = cn) { + for(; p; p = cn) { - cn = p -> clsort; + cn = p->clsort; - if ((int)p -> cllen == l) { - if (p == selcl) { - if (cp) { - p -> clsort = cpk; - cpk = p; - } - else + if((int)p->cllen == l) { + if(p == selcl) { + if(cp) { + p->clsort = cpk; + cpk = p; + } else cpk = cp = p; - } - else { - if (cp) - cp -> clsort = p; + } else { + if(cp) + cp->clsort = p; else cpk = p; cp = p; @@ -102,49 +95,42 @@ free_clst(CLREC *p, int l) } else { - (p -> jnode -> count)--; + (p->jnode->count)--; free_clrec(p); } } - if (cp) cp -> clsort = NULL; + if(cp) cp->clsort = NULL; return cpk; } -void -free_clall(CLREC *p) -{ - CLREC *next; +void free_clall(CLREC* p) { + CLREC* next; - while (p) { - (p -> jnode -> count)--; - next = p -> clsort; + while(p) { + (p->jnode->count)--; + next = p->clsort; free_clrec(p); p = next; } } -void -free_jall(JREC *p) -{ - JREC *next; +void free_jall(JREC* p) { + JREC* next; - while (p) { - next = p -> jsort; + while(p) { + next = p->jsort; free_jrec(p); p = next; } } -void -freework() -{ +void freework() { free_clall(maxclptr); clt1st = maxclptr = NULL; free_jall(maxjptr); jrt1st = maxjptr = NULL; } - diff --git a/lib/sj3core/mk2claus.c b/lib/sj3core/mk2claus.c index fbafc3d..916380b 100644 --- a/lib/sj3core/mk2claus.c +++ b/lib/sj3core/mk2claus.c @@ -1,6 +1,6 @@ /* * Copyright (c) 1991-1994 Sony Corporation - * + * * Permission is hereby granted, free of charge, to any person obtaining * a copy of this software and associated documentation files (the * "Software"), to deal in the Software without restriction, including @@ -8,10 +8,10 @@ * distribute, sublicense, and/or sell copies of the Software, and to * permit persons to whom the Software is furnished to do so, subject to * the following conditions: - * + * * The above copyright notice and this permission notice shall be * included in all copies or substantial portions of the Software. - * + * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. @@ -19,7 +19,7 @@ * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR * THE USE OR OTHER DEALINGS IN THE SOFTWARE. - * + * * Except as contained in this notice, the name of Sony Corporation * shall not be used in advertising or otherwise to promote the sale, use * or other dealings in this Software without prior written authorization @@ -28,47 +28,42 @@ */ /* - * $SonyRCSfile: mk2claus.c,v $ - * $SonyRevision: 1.1 $ + * $SonyRCSfile: mk2claus.c,v $ + * $SonyRevision: 1.1 $ * $SonyDate: 1994/06/03 08:02:00 $ */ - - #include "sj_kcnv.h" #include "sj_right.h" #include "sj_kanakan.h" static int -set2nd(CLREC *clrec) -{ +set2nd(CLREC* clrec) { - CLREC *rec2; + CLREC* rec2; mkjiritu(DO_IKKATU | DO_CLSTUDY); mkbunsetu(); - if (!maxclptr) { + if(!maxclptr) { wakachi(); - return clrec -> cllen; + return clrec->cllen; } - for (rec2 = maxclptr ; rec2 ; rec2 = rec2 -> clsort) { - if (terminate(rec2->right, cnvstart+rec2->cllen) != SHU) + for(rec2 = maxclptr; rec2; rec2 = rec2->clsort) { + if(terminate(rec2->right, cnvstart + rec2->cllen) != SHU) break; } - return rec2 ? (clrec -> cllen + rec2 -> cllen) : (clrec -> cllen); + return rec2 ? (clrec->cllen + rec2->cllen) : (clrec->cllen); } -void -mk2claus() -{ - u_char *keepptr; +void mk2claus() { + u_char* keepptr; int keeplen; - CLREC *clrec; + CLREC* clrec; int len; int save2ln; int prty; @@ -79,16 +74,16 @@ mk2claus() prty = maxprty = prty2 = 0; clt2nd = maxclptr = NULL; - jrt2nd = maxjptr = NULL; + jrt2nd = maxjptr = NULL; selcl = clt1st; - if (selcl -> right == R_FZKKGU) { + if(selcl->right == R_FZKKGU) { pritiny(); return; } - if (cnvlen == selcl -> cllen) { + if(cnvlen == selcl->cllen) { pritiny(); return; } @@ -97,13 +92,13 @@ mk2claus() keeplen = cnvlen; len = count = 0; - for (clrec = selcl ; clrec && count < 5 ; clrec = clrec -> clsort) { + for(clrec = selcl; clrec && count < 5; clrec = clrec->clsort) { - cnvstart = keepptr + clrec -> cllen; - cnvlen = keeplen - clrec -> cllen; + cnvstart = keepptr + clrec->cllen; + cnvlen = keeplen - clrec->cllen; - if (len != clrec -> cllen) { - if (clt2nd != maxclptr) { + if(len != clrec->cllen) { + if(clt2nd != maxclptr) { free_clall(maxclptr); free_jall(maxjptr); } @@ -111,37 +106,37 @@ mk2claus() save2ln = set2nd(clrec); count++; - len = clrec -> cllen; + len = clrec->cllen; prty2 = 0; } - if (Termtbl[clrec -> right] & T_SHUUJO) - clrec -> cl2len = (u_char)len; + if(Termtbl[clrec->right] & T_SHUUJO) + clrec->cl2len = (u_char)len; else - clrec -> cl2len = (u_char)save2ln; + clrec->cl2len = (u_char)save2ln; - if (selcl -> cl2len > clrec -> cl2len) continue; + if(selcl->cl2len > clrec->cl2len) continue; prty = priority(clrec) - prty2; prty2++; - if (selcl -> cl2len == clrec -> cl2len) { - if (clrec -> cllen == nextcllen) { - if (selcl -> cllen != nextcllen) + if(selcl->cl2len == clrec->cl2len) { + if(clrec->cllen == nextcllen) { + if(selcl->cllen != nextcllen) ; - else if (prty <= maxprty) + else if(prty <= maxprty) continue; } - else if (prty <= maxprty) + else if(prty <= maxprty) continue; } - selcl = clrec; + selcl = clrec; maxprty = prty; - if (clt2nd == maxclptr) continue; + if(clt2nd == maxclptr) continue; free_clall(clt2nd); free_jall(jrt2nd); @@ -149,14 +144,13 @@ mk2claus() clt2nd = maxclptr; } - if (clt2nd != maxclptr) { + if(clt2nd != maxclptr) { free_clall(maxclptr); - maxclptr = NULL; + maxclptr = NULL; free_jall(maxjptr); - maxjptr = NULL; + maxjptr = NULL; } cnvstart = keepptr; - cnvlen = keeplen; + cnvlen = keeplen; } - diff --git a/lib/sj3core/mkbunset.c b/lib/sj3core/mkbunset.c index b8e5b1a..07c2bbd 100644 --- a/lib/sj3core/mkbunset.c +++ b/lib/sj3core/mkbunset.c @@ -1,6 +1,6 @@ /* * Copyright (c) 1991-1994 Sony Corporation - * + * * Permission is hereby granted, free of charge, to any person obtaining * a copy of this software and associated documentation files (the * "Software"), to deal in the Software without restriction, including @@ -8,10 +8,10 @@ * distribute, sublicense, and/or sell copies of the Software, and to * permit persons to whom the Software is furnished to do so, subject to * the following conditions: - * + * * The above copyright notice and this permission notice shall be * included in all copies or substantial portions of the Software. - * + * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. @@ -19,7 +19,7 @@ * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR * THE USE OR OTHER DEALINGS IN THE SOFTWARE. - * + * * Except as contained in this notice, the name of Sony Corporation * shall not be used in advertising or otherwise to promote the sale, use * or other dealings in this Software without prior written authorization @@ -28,29 +28,25 @@ */ /* - * $SonyRCSfile: mkbunset.c,v $ - * $SonyRevision: 1.1 $ + * $SonyRCSfile: mkbunset.c,v $ + * $SonyRevision: 1.1 $ * $SonyDate: 1994/06/03 08:02:02 $ */ - - #include "sj_kcnv.h" #include "sj_hinsi.h" #include "sj_kanakan.h" -void -mkbunsetu() -{ - JREC *jrec; - TypeGram hinsi; - u_char *cnj; - CREC crec[4]; - int count; - TypeCnct right; - u_char *next; - int i; +void mkbunsetu() { + JREC* jrec; + TypeGram hinsi; + u_char* cnj; + CREC crec[4]; + int count; + TypeCnct right; + u_char* next; + int i; fzkcount = 0; @@ -58,18 +54,18 @@ mkbunsetu() jrec = maxjptr; - while (jrec) { + while(jrec) { - if (jrec -> stbofs && (cnj = getstb(jrec -> hinsi))) - hinsi = StbHinsi(cnj + jrec -> stbofs - 1); + if(jrec->stbofs && (cnj = getstb(jrec->hinsi))) + hinsi = StbHinsi(cnj + jrec->stbofs - 1); else - hinsi = jrec -> hinsi; + hinsi = jrec->hinsi; - if (right = Connadr[hinsi]) { + if(right = Connadr[hinsi]) { gobilen = 0; - next = cnvstart + jrec->jlen; + next = cnvstart + jrec->jlen; - if (terminate(right, next)) { + if(terminate(right, next)) { fzk_ka_flg = 0; setclrec(jrec, next, right); } @@ -77,15 +73,15 @@ mkbunsetu() srchfzk(jrec, next, right, 0); } - else if (count = setconj(hinsi, jrec, crec)) { + else if(count = setconj(hinsi, jrec, crec)) { - for (i = count ; i-- > 0 ; ) { + for(i = count; i-- > 0;) { - right = crec[i].right; + right = crec[i].right; gobilen = crec[i].len; - next = cnvstart + jrec->jlen + gobilen; + next = cnvstart + jrec->jlen + gobilen; - if (terminate(right, next)) { + if(terminate(right, next)) { fzk_ka_flg = 0; setclrec(jrec, next, right); } @@ -94,73 +90,68 @@ mkbunsetu() } } - jrec = jrec -> jsort; + jrec = jrec->jsort; } } - -CLREC * -argclrec(int len) -{ - CLREC *ptr; - CLREC *rec; - CLREC *child; +CLREC* +argclrec(int len) { + CLREC* ptr; + CLREC* rec; + CLREC* child; rec = alloc_clrec(); - if (!rec) { - if (!maxclptr) + if(!rec) { + if(!maxclptr) return NULL; ptr = NULL; rec = maxclptr; - while (child = rec -> clsort) { + while(child = rec->clsort) { ptr = rec; rec = child; } - if (len <= (int) rec -> cllen) + if(len <= (int)rec->cllen) return NULL; - if (ptr) - ptr -> clsort = NULL; + if(ptr) + ptr->clsort = NULL; else maxclptr = NULL; - if (rec -> jnode) (rec -> jnode)--; + if(rec->jnode) (rec->jnode)--; } - memset((u_char *)rec, 0, sizeof(*rec)); - rec -> cllen = rec -> cl2len = (u_char)len; + memset((u_char*)rec, 0, sizeof(*rec)); + rec->cllen = rec->cl2len = (u_char)len; - if (!maxclptr) { + if(!maxclptr) { maxclptr = rec; return rec; } ptr = maxclptr; - if (((int)ptr -> cllen < len) || - (((int)ptr -> cllen == len) && - (ptr -> jnode -> hinsi == TANKANJI))) { - rec -> clsort = maxclptr; - maxclptr = rec; + if(((int)ptr->cllen < len) || + (((int)ptr->cllen == len) && + (ptr->jnode->hinsi == TANKANJI))) { + rec->clsort = maxclptr; + maxclptr = rec; return rec; } - while (child = ptr -> clsort) { - if ((int)child -> cllen < len || - ((int)child -> cllen == len && - child->jnode->hinsi == TANKANJI)){ - ptr -> clsort = rec; - rec -> clsort = child; + while(child = ptr->clsort) { + if((int)child->cllen < len || + ((int)child->cllen == len && + child->jnode->hinsi == TANKANJI)) { + ptr->clsort = rec; + rec->clsort = child; return rec; - } - else + } else ptr = child; } - - ptr -> clsort = rec; + ptr->clsort = rec; return rec; } - diff --git a/lib/sj3core/mkjiritu.c b/lib/sj3core/mkjiritu.c index 2186829..af738f4 100644 --- a/lib/sj3core/mkjiritu.c +++ b/lib/sj3core/mkjiritu.c @@ -1,6 +1,6 @@ /* * Copyright (c) 1991-1994 Sony Corporation - * + * * Permission is hereby granted, free of charge, to any person obtaining * a copy of this software and associated documentation files (the * "Software"), to deal in the Software without restriction, including @@ -8,10 +8,10 @@ * distribute, sublicense, and/or sell copies of the Software, and to * permit persons to whom the Software is furnished to do so, subject to * the following conditions: - * + * * The above copyright notice and this permission notice shall be * included in all copies or substantial portions of the Software. - * + * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. @@ -19,7 +19,7 @@ * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR * THE USE OR OTHER DEALINGS IN THE SOFTWARE. - * + * * Except as contained in this notice, the name of Sony Corporation * shall not be used in advertising or otherwise to promote the sale, use * or other dealings in this Software without prior written authorization @@ -28,26 +28,23 @@ */ /* - * $SonyRCSfile: mkjiritu.c,v $ - * $SonyRevision: 1.1 $ + * $SonyRCSfile: mkjiritu.c,v $ + * $SonyRevision: 1.1 $ * $SonyDate: 1994/06/03 08:02:03 $ */ - #include #include "sj_kcnv.h" #include "sj_kanakan.h" -static void dic_mu(), dic_cl(); +static void dic_mu(), dic_cl(); -void -mkjiritu(int mode) -{ +void mkjiritu(int mode) { u_char chkind1; u_char chkind2; - JREC *jrec; - u_char *stb; + JREC* jrec; + u_char* stb; headcode = headlen = 0; @@ -55,25 +52,25 @@ mkjiritu(int mode) chkind1 = Chrtbl[*cnvstart]; - if (chkind1 & DICTOP) { + if(chkind1 & DICTOP) { dic_mu(mode); } - if (mode & DO_CLSTUDY) dic_cl(); + if(mode & DO_CLSTUDY) dic_cl(); srchnum(); - if (srchhead() && cnvlen != headlen) { + if(srchhead() && cnvlen != headlen) { cnvstart += headlen; cnvlen -= headlen; chkind2 = Chrtbl[*cnvstart]; - if (chkind2 & DICTOP) { + if(chkind2 & DICTOP) { dic_mu(mode); } - if (headcode == SETTOU_DAI) { + if(headcode == SETTOU_DAI) { srchnum(); } @@ -81,109 +78,105 @@ mkjiritu(int mode) cnvlen += headlen; } - for (jrec = maxjptr ; jrec ; jrec = jrec -> jsort) { - if (stb = getstb(jrec -> hinsi)) + for(jrec = maxjptr; jrec; jrec = jrec->jsort) { + if(stb = getstb(jrec->hinsi)) setubi(jrec, stb); } } static void -dic_mu(int mode) -{ - u_char *tagp; - DICTL *dp; +dic_mu(int mode) { + u_char* tagp; + DICTL* dp; - for (dp = dictlist ; dp ; dp = dp -> next) { - curdict = dp -> dict; - dicinl = 1; + for(dp = dictlist; dp; dp = dp->next) { + curdict = dp->dict; + dicinl = 1; dicsaml = 0; prevseg = -1; - while (tagp = srchdict(tagp)) setjrec(tagp, mode); + while(tagp = srchdict(tagp)) setjrec(tagp, mode); } } -JREC * -argjrec(int len, JREC *rec) -{ - JREC *ptr; - JREC *jrec; - JREC *child; +JREC* argjrec(int len, JREC* rec) { + JREC* ptr; + JREC* jrec; + JREC* child; jrec = alloc_jrec(); - if (!jrec) { - if (!maxjptr) return NULL; + if(!jrec) { + if(!maxjptr) return NULL; - ptr = NULL; + ptr = NULL; jrec = maxjptr; - while (child = jrec -> jsort) { + while(child = jrec->jsort) { ptr = jrec; jrec = child; } - if (len <= (int) jrec -> jlen) return NULL; + if(len <= (int)jrec->jlen) return NULL; - if (ptr) - ptr -> jsort = NULL; + if(ptr) + ptr->jsort = NULL; else maxjptr = NULL; } - if (rec) - memcpy((u_char *)jrec, (u_char *)rec, sizeof(JREC)); + if(rec) + memcpy((u_char*)jrec, (u_char*)rec, sizeof(JREC)); else - memset((u_char *)jrec, 0, sizeof(*jrec)); - jrec -> jlen = (u_char)len; + memset((u_char*)jrec, 0, sizeof(*jrec)); + jrec->jlen = (u_char)len; - if (!maxjptr) { - maxjptr = jrec; - jrec -> jsort = NULL; + if(!maxjptr) { + maxjptr = jrec; + jrec->jsort = NULL; return jrec; } ptr = maxjptr; - if ((int)ptr -> jlen < len) { - jrec -> jsort = maxjptr; - maxjptr = jrec; + if((int)ptr->jlen < len) { + jrec->jsort = maxjptr; + maxjptr = jrec; return jrec; } - while (child = ptr -> jsort) { - if ((int)child -> jlen < len) break; + while(child = ptr->jsort) { + if((int)child->jlen < len) break; ptr = child; } - ptr -> jsort = jrec; - jrec -> jsort = child; + ptr->jsort = jrec; + jrec->jsort = child; return jrec; } static void -dic_cl() -{ - u_char *p; - u_short pos; +dic_cl() { + u_char* p; + u_short pos; int len; int cmp; - if (!StudyExist()) return; + if(!StudyExist()) return; - if ((pos = CLSTUDYIDX[(short) *cnvstart / CLSTUDYSTEP]) != (u_short)-1) { + if((pos = CLSTUDYIDX[(short)*cnvstart / CLSTUDYSTEP]) != (u_short)-1) { - for (p = CLSTUDYDICT + pos ; !iseocl(p) ; p = ClNextTag(p)) { - cmp = sstrncmp(cnvstart, (u_char *)ClYomiPos(p), - len = ClYomiLen(p)); + for(p = CLSTUDYDICT + pos; !iseocl(p); p = ClNextTag(p)) { + cmp = sstrncmp(cnvstart, (u_char*)ClYomiPos(p), + len = ClYomiLen(p)); - if (cmp == MATCH) { - if (!isdpnd(*(cnvstart + len))) { + if(cmp == MATCH) { + if(!isdpnd(*(cnvstart + len))) { setcrec(p); } } - else if (cmp == OVER) + else if(cmp == OVER) break; } } diff --git a/lib/sj3core/mkkouho.c b/lib/sj3core/mkkouho.c index f588d2a..d119bd7 100644 --- a/lib/sj3core/mkkouho.c +++ b/lib/sj3core/mkkouho.c @@ -1,6 +1,6 @@ /* * Copyright (c) 1991-1994 Sony Corporation - * + * * Permission is hereby granted, free of charge, to any person obtaining * a copy of this software and associated documentation files (the * "Software"), to deal in the Software without restriction, including @@ -8,10 +8,10 @@ * distribute, sublicense, and/or sell copies of the Software, and to * permit persons to whom the Software is furnished to do so, subject to * the following conditions: - * + * * The above copyright notice and this permission notice shall be * included in all copies or substantial portions of the Software. - * + * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. @@ -19,7 +19,7 @@ * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR * THE USE OR OTHER DEALINGS IN THE SOFTWARE. - * + * * Except as contained in this notice, the name of Sony Corporation * shall not be used in advertising or otherwise to promote the sale, use * or other dealings in this Software without prior written authorization @@ -28,14 +28,11 @@ */ /* - * $SonyRCSfile: mkkouho.c,v $ - * $SonyRevision: 1.1 $ + * $SonyRCSfile: mkkouho.c,v $ + * $SonyRevision: 1.1 $ * $SonyDate: 1994/06/03 08:02:04 $ */ - - - #include "sj_euc.h" #include "sj_kcnv.h" #include "sj_hinsi.h" @@ -44,39 +41,34 @@ #include "sj_kanakan.h" -static void getkhtbl(), cl_kanji(); -static int diffknj(); -static void cl_numcmn(); -static u_char *makekan(); +static void getkhtbl(), cl_kanji(); +static int diffknj(); +static void cl_numcmn(); +static u_char* makekan(); -void -mkkouho() -{ - CLREC *clrec; - int keeplen; +void mkkouho() { + CLREC* clrec; + int keeplen; khcount = nkhcount = 0; - keeplen = clt1st -> cllen; + keeplen = clt1st->cllen; clrec = clt1st; do { getkhtbl(clrec); - clrec = clrec -> clsort; - } while (clrec && (keeplen == clrec -> cllen)); + clrec = clrec->clsort; + } while(clrec && (keeplen == clrec->cllen)); } - - static void -getkhtbl(CLREC *clrec) -{ - JREC *jrec; +getkhtbl(CLREC* clrec) { + JREC* jrec; - jrec = clrec -> jnode; + jrec = clrec->jnode; - switch (jrec -> class) { + switch(jrec->class) { case C_DICT: cl_kanji(jrec, clrec); break; @@ -101,162 +93,148 @@ getkhtbl(CLREC *clrec) } } - - static void -cl_kanji(JREC *jrec, CLREC *clrec) -{ - u_char *ptr; +cl_kanji(JREC* jrec, CLREC* clrec) { + u_char* ptr; int kcount = khcount; - if (seldict(jrec -> dicid)) { - (*curdict->getdic)(curdict, jrec -> jseg); + if(seldict(jrec->dicid)) { + (*curdict->getdic)(curdict, jrec->jseg); ptr = dicbuf + jrec->jofsst + 1; get_askknj(); - while (*ptr != HINSIBLKTERM) { - if (diffknj(jrec, ptr, kcount)) { + while(*ptr != HINSIBLKTERM) { + if(diffknj(jrec, ptr, kcount)) { setkouho(clrec, (TypeDicOfs)(ptr - dicbuf), 0); } ptr = skipkstr(ptr); } - } - else { + } else { setkouho(clrec, (TypeDicOfs)1, 0); } } - - -u_char * -makekan_none(u_char *s, u_char *d, int flg) -{ +u_char* +makekan_none(u_char* s, u_char* d, int flg) { return d; } - - -u_char * -makekan_1byte(u_char *s, u_char *d, int flg) -{ - if ((*s & KANJIMODEMASK) == ZENHIRAASSYUKU) - *d++ = 0x10 | (*s & KNJASSYUKUMASK); +u_char* +makekan_1byte(u_char* s, u_char* d, int flg) { + if((*s & KANJIMODEMASK) == ZENHIRAASSYUKU) + *d++ = 0x10 | (*s & KNJASSYUKUMASK); else - *d++ = 0x90 | (*s & KNJASSYUKUMASK); + *d++ = 0x90 | (*s & KNJASSYUKUMASK); - if (flg) *d++ = KANJISTREND; + if(flg) *d++ = KANJISTREND; return d; } - - -u_char * -makekan_knj(u_char *s, u_char *d, int flg) -{ +u_char* +makekan_knj(u_char* s, u_char* d, int flg) { return makekan(askknj[*s & KNJASSYUKUMASK], d, flg); } - - -u_char *makekan_ofs(u_char *s, u_char *d, int flg) -{ - return makekan(dicbuf + ((*s & KANJICODEMASK) << 8) + *(s + 1), - d, flg); +u_char* makekan_ofs(u_char* s, u_char* d, int flg) { + return makekan(dicbuf + ((*s & KANJICODEMASK) << 8) + *(s + 1), + d, flg); } - - -u_char * -makekan_norm(u_char *s, u_char *d, int flg) -{ +u_char* +makekan_norm(u_char* s, u_char* d, int flg) { u_char c; - if (*s != 0) { + if(*s != 0) { c = s[1]; - if (c & 0x80) - *d++ = SS3; + if(c & 0x80) + *d++ = SS3; *d++ = *s | 0x80; - *d++ = c | 0x80; + *d++ = c | 0x80; } else { *d++ = *s; } - if (flg) *d++ = KANJISTREND; + if(flg) *d++ = KANJISTREND; return d; } - - -u_char * -makekan_ascii(u_char *s, u_char *d, int flg) -{ +u_char* +makekan_ascii(u_char* s, u_char* d, int flg) { u_char c; c = s[1]; - if (c & 0x80) - *d++ = SS2; + if(c & 0x80) + *d++ = SS2; *d++ = c; - if (flg) *d++ = KANJISTREND; + if(flg) *d++ = KANJISTREND; return d; } - - -static u_char * -makekan(u_char *s, u_char *d, int flg) -{ +static u_char* +makekan(u_char* s, u_char* d, int flg) { int csize; - for ( ; ; ) { + for(;;) { csize = codesize(*s); - if (s[csize] == KANJISTREND) { + if(s[csize] == KANJISTREND) { switch(*s & KANJIMODEMASK) { - case ZENHIRAASSYUKU: - d = makekan_1byte(s, d, flg); break; + case ZENHIRAASSYUKU: + d = makekan_1byte(s, d, flg); + break; - case ZENKATAASSYUKU: - d = makekan_1byte(s, d, flg); break; + case ZENKATAASSYUKU: + d = makekan_1byte(s, d, flg); + break; - case OFFSETASSYUKU: - d = makekan_ofs(s, d, flg); break; + case OFFSETASSYUKU: + d = makekan_ofs(s, d, flg); + break; - case AIATTRIBUTE: - d = makekan_none(s, d, flg); break; + case AIATTRIBUTE: + d = makekan_none(s, d, flg); + break; - case LEADINGHANKAKU: - d = makekan_ascii(s, d, flg); break; + case LEADINGHANKAKU: + d = makekan_ascii(s, d, flg); + break; - case KANJIASSYUKU: - d = makekan_knj(s, d, flg); break; + case KANJIASSYUKU: + d = makekan_knj(s, d, flg); + break; - default: + default: d = makekan_norm(s, d, flg); } break; - } - else + } else switch(*s & KANJIMODEMASK) { - case ZENHIRAASSYUKU: - d = makekan_1byte(s, d, FALSE); break; + case ZENHIRAASSYUKU: + d = makekan_1byte(s, d, FALSE); + break; - case ZENKATAASSYUKU: - d = makekan_1byte(s, d, FALSE); break; + case ZENKATAASSYUKU: + d = makekan_1byte(s, d, FALSE); + break; - case OFFSETASSYUKU: - d = makekan_ofs(s, d, FALSE); break; + case OFFSETASSYUKU: + d = makekan_ofs(s, d, FALSE); + break; - case AIATTRIBUTE: - d = makekan_none(s, d, FALSE); break; + case AIATTRIBUTE: + d = makekan_none(s, d, FALSE); + break; - case LEADINGHANKAKU: - d = makekan_ascii(s, d, FALSE); break; + case LEADINGHANKAKU: + d = makekan_ascii(s, d, FALSE); + break; - case KANJIASSYUKU: - d = makekan_knj(s, d, FALSE); break; + case KANJIASSYUKU: + d = makekan_knj(s, d, FALSE); + break; - default: + default: d = makekan_norm(s, d, FALSE); } s += codesize(*s); @@ -265,138 +243,124 @@ makekan(u_char *s, u_char *d, int flg) return d; } - - -#define PEND 2 -#define QEND 1 +#define PEND 2 +#define QEND 1 static int -sameknj(u_char *p, u_char plen, u_char *q, u_char qlen) -{ - int i; - int j; - int endf = 0; - int brkf; +sameknj(u_char* p, u_char plen, u_char* q, u_char qlen) { + int i; + int j; + int endf = 0; + int brkf; do { - if ((i = euc_codesize(*p)) != euc_codesize(*q)) return FALSE; + if((i = euc_codesize(*p)) != euc_codesize(*q)) return FALSE; brkf = 0; - for (j = 0; j < i; j++) { - if (p[j] != q[j] ) { + for(j = 0; j < i; j++) { + if(p[j] != q[j]) { brkf = 1; break; } } - if (brkf) break; + if(brkf) break; - if (p[i] == KANJISTREND) endf += PEND; - if (q[i] == KANJISTREND) endf += QEND; + if(p[i] == KANJISTREND) endf += PEND; + if(q[i] == KANJISTREND) endf += QEND; p += i; q += i; - } while (!endf); + } while(!endf); - switch (endf) { - case (PEND | QEND): - if (plen == qlen) return TRUE; + switch(endf) { + case(PEND | QEND): + if(plen == qlen) return TRUE; break; case PEND: - i = plen; + i = plen; plen = qlen; qlen = i; - p = q; + p = q; case QEND: - if (p[euc_codesize(*p)] != KANJISTREND) break; - if ((*p & KANJIMODEMASK) != 0x10 ) break; - if (qlen != plen - (*p & KANJICODEMASK) - 1) break; + if(p[euc_codesize(*p)] != KANJISTREND) break; + if((*p & KANJIMODEMASK) != 0x10) break; + if(qlen != plen - (*p & KANJICODEMASK) - 1) break; return TRUE; default: - if (q[euc_codesize(*q)] != KANJISTREND) break; - if (p[euc_codesize(*p)] != KANJISTREND) break; - if ((*q & KANJIMODEMASK) != 0x10 ) break; - if ((*p & KANJIMODEMASK) != 0x10 ) break; - if (plen - (*p & KANJICODEMASK) != qlen - (*q & KANJICODEMASK)) + if(q[euc_codesize(*q)] != KANJISTREND) break; + if(p[euc_codesize(*p)] != KANJISTREND) break; + if((*q & KANJIMODEMASK) != 0x10) break; + if((*p & KANJIMODEMASK) != 0x10) break; + if(plen - (*p & KANJICODEMASK) != qlen - (*q & KANJICODEMASK)) break; return TRUE; } return FALSE; } -#undef PEND -#undef QEND - - +#undef PEND +#undef QEND static int -diffknj(JREC *jrec, u_char *ptr, int num) -{ - KHREC *kptr; - JREC *jptr; - int i; - u_char kbuf1[MAXWDKANJILEN]; - u_char kbuf2[MAXWDKANJILEN]; +diffknj(JREC* jrec, u_char* ptr, int num) { + KHREC* kptr; + JREC* jptr; + int i; + u_char kbuf1[MAXWDKANJILEN]; + u_char kbuf2[MAXWDKANJILEN]; - if (jrec -> hinsi == TANKANJI) return TRUE; + if(jrec->hinsi == TANKANJI) return TRUE; makekan(ptr, kbuf1, TRUE); - for (i = 0, kptr = kouhotbl ; i < num ; i++, kptr++) { - if ((jptr = kptr -> clrec -> jnode) == jrec) + for(i = 0, kptr = kouhotbl; i < num; i++, kptr++) { + if((jptr = kptr->clrec->jnode) == jrec) return FALSE; - if (jptr -> hinsi == TANKANJI) continue; + if(jptr->hinsi == TANKANJI) continue; - if (jptr -> class != jrec -> class) continue; + if(jptr->class != jrec->class) continue; - if (jptr -> dicid != jrec -> dicid) continue; + if(jptr->dicid != jrec->dicid) continue; - if (jptr -> jseg != jrec -> jseg) continue; + if(jptr->jseg != jrec->jseg) continue; - if (jptr -> sttofs != jrec -> sttofs) continue; + if(jptr->sttofs != jrec->sttofs) continue; - if (jptr -> stbofs != jrec -> stbofs) continue; + if(jptr->stbofs != jrec->stbofs) continue; - makekan(dicbuf + kptr -> offs, kbuf2, TRUE); + makekan(dicbuf + kptr->offs, kbuf2, TRUE); - if (sameknj(kbuf1, jrec -> jlen, kbuf2, jptr -> jlen)) + if(sameknj(kbuf1, jrec->jlen, kbuf2, jptr->jlen)) return FALSE; } return TRUE; } - - - static int -chrck_numtbl(u_short flg, u_short cond) -{ - u_short must; +chrck_numtbl(u_short flg, u_short cond) { + u_short must; - if (cond = SelNumCond(cond)) { - if (must = (cond & SELNUMMUST)) { - if ((flg & must) != must) return FALSE; + if(cond = SelNumCond(cond)) { + if(must = (cond & SELNUMMUST)) { + if((flg & must) != must) return FALSE; cond &= ~must; } - if (cond && !(cond & flg)) return FALSE; + if(cond && !(cond & flg)) return FALSE; } return TRUE; } +int sel_sjmode(JREC* jrec) { + u_short i; + u_short* p; + u_short* q; - -int -sel_sjmode(JREC *jrec) -{ - u_short i; - u_short *p; - u_short *q; - - switch (jrec -> class) { + switch(jrec->class) { case C_N_ARABIA: case C_N_ARACMA: case C_N_KAZU: @@ -414,52 +378,47 @@ sel_sjmode(JREC *jrec) return SELARB; } - while ((i = *p++) != SELNUMTERM) { - if (chrck_numtbl(jrec -> flags, i)) break; + while((i = *p++) != SELNUMTERM) { + if(chrck_numtbl(jrec->flags, i)) break; } - if (i == SELNUMTERM) i = *q; + if(i == SELNUMTERM) i = *q; return SelNumFunc(i); } - - static void -cl_numcmn(JREC *jrec, CLREC *clrec) -{ - u_char *p; - int i; - u_short j; - u_short *tbl; +cl_numcmn(JREC* jrec, CLREC* clrec) { + u_char* p; + int i; + u_short j; + u_short* tbl; p = cnvstart; - if ((i = jrec -> sttofs) == SETTOU_DAI) + if((i = jrec->sttofs) == SETTOU_DAI) p += SttYomiLen(Settou_ptr(i)); - else if (i == SETTOU_KIGOU) + else if(i == SETTOU_KIGOU) p++; - if (jrec -> jofsst) { + if(jrec->jofsst) { i = sel_sjmode(jrec); - if (seldict(jrec -> dicid)) { - (*curdict->getdic)(curdict, jrec -> jseg); + if(seldict(jrec->dicid)) { + (*curdict->getdic)(curdict, jrec->jseg); p = dicbuf + jrec->jofsst + 1; - while (*p != HINSIBLKTERM) { + while(*p != HINSIBLKTERM) { setkouho(clrec, (TypeDicOfs)(p - dicbuf), i); p = skipkstr(p); } - } - else { + } else { setkouho(clrec, (TypeDicOfs)1, i); } - } - else { + } else { tbl = Selsjadrs(jrec->class - C_N_ARABIA); - while ((j = *tbl++) != SELNUMTERM) { - if (!chrck_numtbl(jrec -> flags, j)) continue; + while((j = *tbl++) != SELNUMTERM) { + if(!chrck_numtbl(jrec->flags, j)) continue; setkouho(clrec, (TypeDicOfs)0, (int)SelNumFunc(j)); } diff --git a/lib/sj3core/mknumber.c b/lib/sj3core/mknumber.c index 677318e..6e8d0dd 100644 --- a/lib/sj3core/mknumber.c +++ b/lib/sj3core/mknumber.c @@ -1,6 +1,6 @@ /* * Copyright (c) 1991-1994 Sony Corporation - * + * * Permission is hereby granted, free of charge, to any person obtaining * a copy of this software and associated documentation files (the * "Software"), to deal in the Software without restriction, including @@ -8,10 +8,10 @@ * distribute, sublicense, and/or sell copies of the Software, and to * permit persons to whom the Software is furnished to do so, subject to * the following conditions: - * + * * The above copyright notice and this permission notice shall be * included in all copies or substantial portions of the Software. - * + * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. @@ -19,7 +19,7 @@ * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR * THE USE OR OTHER DEALINGS IN THE SOFTWARE. - * + * * Except as contained in this notice, the name of Sony Corporation * shall not be used in advertising or otherwise to promote the sale, use * or other dealings in this Software without prior written authorization @@ -28,15 +28,11 @@ */ /* - * $SonyRCSfile: mknumber.c,v $ - * $SonyRevision: 1.1 $ + * $SonyRCSfile: mknumber.c,v $ + * $SonyRevision: 1.1 $ * $SonyDate: 1994/06/03 08:02:05 $ */ - - - - #include "sj_kcnv.h" #include "sj_yomi.h" #include "sj_suuji.h" @@ -44,32 +40,31 @@ #include "sj_kanakan.h" static int -word2char(u_short wd, u_char *tbl, int keta, int flg) -{ +word2char(u_short wd, u_char* tbl, int keta, int flg) { int mask; int num; - u_char *src; + u_char* src; - for (mask = 0x1000 ; mask ; mask >>= 4) { - switch (num = (unsigned int)wd / mask) { + for(mask = 0x1000; mask; mask >>= 4) { + switch(num = (unsigned int)wd / mask) { case 0: break; case _NUM0: - if (!flg) break; + if(!flg) break; default: - src = tbl + (num - _NUM0) * 2; + src = tbl + (num - _NUM0) * 2; *kanjitmp++ = *src++; *kanjitmp++ = *src; - flg = TRUE; + flg = TRUE; - if (keta && !(keta % 3)) { + if(keta && !(keta % 3)) { *kanjitmp++ = COMMAHIGH; *kanjitmp++ = COMMALOW; } } - if (keta) keta--; + if(keta) keta--; wd &= (mask - 1); } @@ -77,300 +72,250 @@ word2char(u_short wd, u_char *tbl, int keta, int flg) } static void -words2num(u_short *wd, u_char *tbl, int flgc) -{ +words2num(u_short* wd, u_char* tbl, int flgc) { int i; int keta; int flg; - u_char *kp = kanjitmp; + u_char* kp = kanjitmp; - if (flgc) { + if(flgc) { keta = NUMKETALENGTH - 1; - flg = FALSE; - } - else { + flg = FALSE; + } else { keta = 0; - flg = TRUE; + flg = TRUE; } - for (i = NUMWORDBUF ; i-- > 0 ; ) { + for(i = NUMWORDBUF; i-- > 0;) { flg = word2char(*(wd + i), tbl, keta, flg); - if (keta) keta -= 4; + if(keta) keta -= 4; } - if (kp == kanjitmp) { + if(kp == kanjitmp) { *kanjitmp++ = *tbl++; *kanjitmp++ = *tbl; } } -void -num_type00(u_char *s1, u_char *s2, JREC *jrec) -{ - u_short num[NUMWORDBUF]; +void num_type00(u_char* s1, u_char* s2, JREC* jrec) { + u_short num[NUMWORDBUF]; - setwdnum(s1, (int)jrec -> numlen, num); + setwdnum(s1, (int)jrec->numlen, num); words2num(num, Num1tbl, FALSE); } -void -num_type01(u_char *s1, u_char *s2, JREC *jrec) -{ - u_short num[NUMWORDBUF]; +void num_type01(u_char* s1, u_char* s2, JREC* jrec) { + u_short num[NUMWORDBUF]; - setwdnum(s1, (int)jrec -> numlen, num); + setwdnum(s1, (int)jrec->numlen, num); words2num(num, Num1tbl, FALSE); } -void -num_type02(u_char *s1, u_char *s2, JREC *jrec) -{ - u_short num[NUMWORDBUF]; +void num_type02(u_char* s1, u_char* s2, JREC* jrec) { + u_short num[NUMWORDBUF]; - setwdnum(s1, (int)jrec -> numlen, num); + setwdnum(s1, (int)jrec->numlen, num); words2num(num, Num1tbl, TRUE); } -void -num_type03(u_char *s1, u_char *s2, JREC *jrec) -{ - u_short num[NUMWORDBUF]; +void num_type03(u_char* s1, u_char* s2, JREC* jrec) { + u_short num[NUMWORDBUF]; - setwdnum(s1, (int)jrec -> numlen, num); + setwdnum(s1, (int)jrec->numlen, num); words2num(num, Num2tbl, FALSE); } -void -num_type04(u_char *s1, u_char *s2, JREC *jrec) -{ - u_short num[NUMWORDBUF]; +void num_type04(u_char* s1, u_char* s2, JREC* jrec) { + u_short num[NUMWORDBUF]; - setwdnum(s1, (int)jrec -> numlen, num); + setwdnum(s1, (int)jrec->numlen, num); words2num(num, Num2tbl, FALSE); } -void -num_type05(u_char *s1, u_char *s2, JREC *jrec) -{ - u_short num[NUMWORDBUF]; +void num_type05(u_char* s1, u_char* s2, JREC* jrec) { + u_short num[NUMWORDBUF]; - setwdnum(s1, (int)jrec -> numlen, num); + setwdnum(s1, (int)jrec->numlen, num); words2num(num, Num2tbl, TRUE); } -void -num_type06(u_char *s1, u_char *s2, JREC *jrec) -{ - u_short num[NUMWORDBUF]; +void num_type06(u_char* s1, u_char* s2, JREC* jrec) { + u_short num[NUMWORDBUF]; - setwdnum(s1, (int)jrec -> numlen, num); + setwdnum(s1, (int)jrec->numlen, num); words2num(num, Num3tbl, FALSE); } -void -num_type07(u_char *s1, u_char *s2, JREC *jrec) -{ - u_short num[NUMWORDBUF]; +void num_type07(u_char* s1, u_char* s2, JREC* jrec) { + u_short num[NUMWORDBUF]; - setwdnum(s1, (int)jrec -> numlen, num); + setwdnum(s1, (int)jrec->numlen, num); words2num(num, Num3tbl, FALSE); } static void -kan_num(u_short *wd, u_char *tbl1, u_char *tbl2) -{ +kan_num(u_short* wd, u_char* tbl1, u_char* tbl2) { int ii; - u_short tmp; + u_short tmp; int mask; int num; int flg; - u_char *kurai1; - u_char *kurai2; - u_char *src; - u_char *keep = kanjitmp; + u_char* kurai1; + u_char* kurai2; + u_char* src; + u_char* keep = kanjitmp; kurai2 = Num6tbl - 2; - mask = 0; + mask = 0; wd += NUMWORDBUF - 1; flg = FALSE; - for (ii = NUMKETALENGTH ; ii-- > 0 ; ) { - if (!mask) { - if (flg) { + for(ii = NUMKETALENGTH; ii-- > 0;) { + if(!mask) { + if(flg) { *kanjitmp++ = *kurai2++; *kanjitmp++ = *kurai2++; - } - else + } else kurai2 += 2; - mask = 0x1000; - tmp = *wd--; - flg = FALSE; + mask = 0x1000; + tmp = *wd--; + flg = FALSE; kurai1 = tbl2; } - if ((num = (unsigned int)tmp / mask) > _NUM0) { - if ((num != _NUM1) || !*kurai1) { - src = tbl1 + (num - _NUM0) * 2; + if((num = (unsigned int)tmp / mask) > _NUM0) { + if((num != _NUM1) || !*kurai1) { + src = tbl1 + (num - _NUM0) * 2; *kanjitmp++ = *src++; *kanjitmp++ = *src; } - if (*kurai1) { + if(*kurai1) { *kanjitmp++ = *kurai1++; *kanjitmp++ = *kurai1++; } flg = TRUE; - } - else + } else kurai1 += 2; tmp &= (mask - 1); mask >>= 4; } - if (kanjitmp == keep) { + if(kanjitmp == keep) { *kanjitmp++ = *tbl1++; *kanjitmp++ = *tbl1; } } -void -num_type08(u_char *s1, u_char *s2, JREC *jrec) -{ - u_short num[NUMWORDBUF]; +void num_type08(u_char* s1, u_char* s2, JREC* jrec) { + u_short num[NUMWORDBUF]; - setwdnum(s1, (int)jrec -> numlen, num); + setwdnum(s1, (int)jrec->numlen, num); kan_num(num, Num2tbl, Num4tbl); } -void -num_type09(u_char *s1, u_char *s2, JREC *jrec) -{ - u_short num[NUMWORDBUF]; +void num_type09(u_char* s1, u_char* s2, JREC* jrec) { + u_short num[NUMWORDBUF]; - setwdnum(s1, (int)jrec -> numlen, num); + setwdnum(s1, (int)jrec->numlen, num); kan_num(num, Num3tbl, Num5tbl); } +void num_type10(u_char* s1, u_char* s2, JREC* jrec) { + int i; - -void -num_type10(u_char *s1, u_char *s2, JREC *jrec) -{ - int i; - - for (i = jrec -> numlen ; i > 0 ; i--) { - if (Chrtbl[*s1++] & NUMBER) { + for(i = jrec->numlen; i > 0; i--) { + if(Chrtbl[*s1++] & NUMBER) { *kanjitmp++ = *s2++; *kanjitmp++ = *s2++; - } - else + } else s2 += euc_codesize(*s2); } } +void num_type11(u_char* s1, u_char* s2, JREC* jrec) { + int i; + int j; + i = j = jrec->numlen; + if(!(Chrtbl[*(s1 + j - 4)] & NUMBER)) j -= (j - 1) / 4; -void -num_type11(u_char *s1, u_char *s2, JREC *jrec) -{ - int i; - int j; - - i = j = jrec -> numlen; - if (!(Chrtbl[*(s1 + j - 4)] & NUMBER)) j -= (j - 1) / 4; - - for ( ; i > 0 ; i--) { - if (Chrtbl[*s1++] & NUMBER) { + for(; i > 0; i--) { + if(Chrtbl[*s1++] & NUMBER) { *kanjitmp++ = *s2++; *kanjitmp++ = *s2++; - if (--j > 0) { - if ((j % 3) == 0) { + if(--j > 0) { + if((j % 3) == 0) { *kanjitmp++ = COMMAHIGH; *kanjitmp++ = COMMALOW; } } - } - else + } else s2 += euc_codesize(*s2); } } +void num_type12(u_char* s1, u_char* s2, JREC* jrec) { + int i; + int j; - -void -num_type12(u_char *s1, u_char *s2, JREC *jrec) -{ - int i; - int j; - - for (i = jrec -> numlen ; i > 0 ; i--) { - if (Chrtbl[j = *s1++] & NUMBER) { - j = (j - N_0) * 2; + for(i = jrec->numlen; i > 0; i--) { + if(Chrtbl[j = *s1++] & NUMBER) { + j = (j - N_0) * 2; *kanjitmp++ = Num2tbl[j]; *kanjitmp++ = Num2tbl[j + 1]; } } } - - static void -num_kurai(u_char *p, int len, u_char *tbl) -{ - int i; - int j; - u_char tmp; +num_kurai(u_char* p, int len, u_char* tbl) { + int i; + int j; + u_char tmp; - for (i = 0 ; i < len ; i++) { + for(i = 0; i < len; i++) { tmp = *p++; *kanjitmp++ = tbl[j = ((tmp & 0x0f) - _NUM0) * 2]; *kanjitmp++ = tbl[j + 1]; - if (j = ((tmp >> 4) & 3)) { + if(j = ((tmp >> 4) & 3)) { *kanjitmp++ = Num4tbl[j = (3 - j) * 2]; *kanjitmp++ = Num4tbl[j + 1]; } - if (j = ((tmp >> 6) & 3)) { + if(j = ((tmp >> 6) & 3)) { *kanjitmp++ = Num6tbl[j = (3 - j) * 2]; *kanjitmp++ = Num6tbl[j + 1]; } } } +void num_type13(u_char* s1, u_char* s2, JREC* jrec) { + u_char num[NUMKETALENGTH]; + int len; - -void -num_type13(u_char *s1, u_char *s2, JREC *jrec) -{ - u_char num[NUMKETALENGTH]; - int len; - - len = setucnum(s1, (int)jrec -> numlen, num); + len = setucnum(s1, (int)jrec->numlen, num); num_kurai(num, len, Num1tbl); } +void num_type14(u_char* s1, u_char* s2, JREC* jrec) { + u_char num[NUMKETALENGTH]; + int len; - -void -num_type14(u_char *s1, u_char *s2, JREC *jrec) -{ - u_char num[NUMKETALENGTH]; - int len; - - len = setucnum(s1, (int)jrec -> numlen, num); + len = setucnum(s1, (int)jrec->numlen, num); num_kurai(num, len, Num2tbl); } diff --git a/lib/sj3core/mvmemd.c b/lib/sj3core/mvmemd.c index 1a96b29..177c861 100644 --- a/lib/sj3core/mvmemd.c +++ b/lib/sj3core/mvmemd.c @@ -1,6 +1,6 @@ /* * Copyright (c) 1991-1994 Sony Corporation - * + * * Permission is hereby granted, free of charge, to any person obtaining * a copy of this software and associated documentation files (the * "Software"), to deal in the Software without restriction, including @@ -8,10 +8,10 @@ * distribute, sublicense, and/or sell copies of the Software, and to * permit persons to whom the Software is furnished to do so, subject to * the following conditions: - * + * * The above copyright notice and this permission notice shall be * included in all copies or substantial portions of the Software. - * + * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. @@ -19,7 +19,7 @@ * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR * THE USE OR OTHER DEALINGS IN THE SOFTWARE. - * + * * Except as contained in this notice, the name of Sony Corporation * shall not be used in advertising or otherwise to promote the sale, use * or other dealings in this Software without prior written authorization @@ -28,21 +28,16 @@ */ /* - * $SonyRCSfile: mvmemd.c,v $ - * $SonyRevision: 1.1 $ + * $SonyRCSfile: mvmemd.c,v $ + * $SonyRevision: 1.1 $ * $SonyDate: 1994/06/03 08:02:05 $ */ - - #include "sj_rename.h" #include "sj_typedef.h" #include "sj_kanakan.h" -void -mvmemd(u_char *src, u_char *dest, int len) -{ - while (len-- > 0) *(--dest) = *(--src); +void mvmemd(u_char* src, u_char* dest, int len) { + while(len-- > 0) *(--dest) = *(--src); } - diff --git a/lib/sj3core/mvmemi.c b/lib/sj3core/mvmemi.c index 89ff227..9c271d5 100644 --- a/lib/sj3core/mvmemi.c +++ b/lib/sj3core/mvmemi.c @@ -1,6 +1,6 @@ /* * Copyright (c) 1991-1994 Sony Corporation - * + * * Permission is hereby granted, free of charge, to any person obtaining * a copy of this software and associated documentation files (the * "Software"), to deal in the Software without restriction, including @@ -8,10 +8,10 @@ * distribute, sublicense, and/or sell copies of the Software, and to * permit persons to whom the Software is furnished to do so, subject to * the following conditions: - * + * * The above copyright notice and this permission notice shall be * included in all copies or substantial portions of the Software. - * + * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. @@ -19,7 +19,7 @@ * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR * THE USE OR OTHER DEALINGS IN THE SOFTWARE. - * + * * Except as contained in this notice, the name of Sony Corporation * shall not be used in advertising or otherwise to promote the sale, use * or other dealings in this Software without prior written authorization @@ -28,21 +28,16 @@ */ /* - * $SonyRCSfile: mvmemi.c,v $ - * $SonyRevision: 1.1 $ + * $SonyRCSfile: mvmemi.c,v $ + * $SonyRevision: 1.1 $ * $SonyDate: 1994/06/03 08:02:06 $ */ - - #include "sj_rename.h" #include "sj_typedef.h" #include "sj_kanakan.h" -void -mvmemi(u_char *src, u_char *dest, int len) -{ - while (len-- > 0) *dest++ = *src++; +void mvmemi(u_char* src, u_char* dest, int len) { + while(len-- > 0) *dest++ = *src++; } - diff --git a/lib/sj3core/peepdic.c b/lib/sj3core/peepdic.c index 4d92d8c..636379e 100644 --- a/lib/sj3core/peepdic.c +++ b/lib/sj3core/peepdic.c @@ -1,6 +1,6 @@ /* * Copyright (c) 1991-1994 Sony Corporation - * + * * Permission is hereby granted, free of charge, to any person obtaining * a copy of this software and associated documentation files (the * "Software"), to deal in the Software without restriction, including @@ -8,10 +8,10 @@ * distribute, sublicense, and/or sell copies of the Software, and to * permit persons to whom the Software is furnished to do so, subject to * the following conditions: - * + * * The above copyright notice and this permission notice shall be * included in all copies or substantial portions of the Software. - * + * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. @@ -19,7 +19,7 @@ * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR * THE USE OR OTHER DEALINGS IN THE SOFTWARE. - * + * * Except as contained in this notice, the name of Sony Corporation * shall not be used in advertising or otherwise to promote the sale, use * or other dealings in this Software without prior written authorization @@ -28,29 +28,24 @@ */ /* - * $SonyRCSfile: peepdic.c,v $ - * $SonyRevision: 1.2 $ + * $SonyRCSfile: peepdic.c,v $ + * $SonyRevision: 1.2 $ * $SonyDate: 1995/07/21 05:22:51 $ */ - - - #include "sj_kcnv.h" #include "sj_yomi.h" #include "sj_kanakan.h" -static int prev_kanji(), prev_hinsi(), prev_douon(); -static int next_kanji(), next_hinsi(), next_douon(); -static void set_kanji(), set_buf(), add_yomi(); -static void set_idxyomi(); +static int prev_kanji(), prev_hinsi(), prev_douon(); +static int next_kanji(), next_hinsi(), next_douon(); +static void set_kanji(), set_buf(), add_yomi(); +static void set_idxyomi(); -static void cd2sjh_chr(u_char ch, u_char *dst); +static void cd2sjh_chr(u_char ch, u_char* dst); -int -getusr(u_char *buf) -{ +int getusr(u_char* buf) { int nlen; peepyomi[0] = peepknj[0] = peepgrm = 0; @@ -60,12 +55,12 @@ getusr(u_char *buf) peepdptr = segtop(); - if (segend(peepdptr)) return 0; + if(segend(peepdptr)) return 0; add_yomi(); - nlen = getnlen(peepdptr); - peephptr = peepdptr + DOUONBLKSIZENUMBER + nlen; + nlen = getnlen(peepdptr); + peephptr = peepdptr + DOUONBLKSIZENUMBER + nlen; peepgrm = *peephptr; @@ -78,13 +73,11 @@ getusr(u_char *buf) return -1; } -int -nextusr(u_char *buf) -{ +int nextusr(u_char* buf) { (*curdict->getdic)(curdict, peepidx); get_askknj(); - if (next_kanji()) { + if(next_kanji()) { set_kanji(); set_buf(buf); @@ -95,13 +88,11 @@ nextusr(u_char *buf) return 0; } -int -prevusr(u_char *buf) -{ +int prevusr(u_char* buf) { (*curdict->getdic)(curdict, peepidx); get_askknj(); - if (prev_kanji()) { + if(prev_kanji()) { set_kanji(); set_buf(buf); @@ -113,27 +104,25 @@ prevusr(u_char *buf) } static void -set_kanji() -{ - int len; +set_kanji() { + int len; - len = getkanji(peepyomi, getnlen(peepdptr) + getplen(peepdptr), - peepkptr, peepknj); + len = getkanji(peepyomi, getnlen(peepdptr) + getplen(peepdptr), + peepkptr, peepknj); *(peepknj + len) = 0; } static void -set_buf(u_char *buf) -{ - u_char *p; - int i, csize; +set_buf(u_char* buf) { + u_char* p; + int i, csize; - for (p = peepyomi ; *p ; ) *buf++ = *p++; + for(p = peepyomi; *p;) *buf++ = *p++; *buf++ = 0; - for (p = peepknj ; *p ; ) { + for(p = peepknj; *p;) { csize = euc_codesize(*p); - for (i = 0; i < csize; i++ ) *buf++ = *p++; + for(i = 0; i < csize; i++) *buf++ = *p++; } *buf++ = 0; @@ -142,45 +131,43 @@ set_buf(u_char *buf) } static int -prev_kanji() -{ - u_char *p1; - u_char *p2; +prev_kanji() { + u_char* p1; + u_char* p2; p1 = peephptr + 1; - if (peepkptr <= p1) return prev_hinsi(); + if(peepkptr <= p1) return prev_hinsi(); p2 = peepkptr; - while (p1 < p2) { + while(p1 < p2) { peepkptr = p1; - p1 = skipkstr(p1); + p1 = skipkstr(p1); } return -1; } static int -prev_hinsi() -{ - u_char *p1; - u_char *p2; - int nlen; +prev_hinsi() { + u_char* p1; + u_char* p2; + int nlen; nlen = getnlen(peepdptr); - p1 = peepdptr + DOUONBLKSIZENUMBER + nlen; + p1 = peepdptr + DOUONBLKSIZENUMBER + nlen; - if (peephptr <= p1) return prev_douon(); + if(peephptr <= p1) return prev_douon(); p2 = peephptr; - while (p1 < p2) { + while(p1 < p2) { peephptr = p1; - p1 = skiphblk(p1); + p1 = skiphblk(p1); } peepgrm = *peephptr; p1 = peephptr + 1; - while (*p1 != HINSIBLKTERM) { + while(*p1 != HINSIBLKTERM) { peepkptr = p1; p1 = skipkstr(p1); @@ -190,14 +177,13 @@ prev_hinsi() } static int -prev_douon() -{ - u_char *p1; - u_char *p2; - int nlen; +prev_douon() { + u_char* p1; + u_char* p2; + int nlen; - if (peepdptr <= segtop()) { - if (peepidx <= DICSEGBASE) return 0; + if(peepdptr <= segtop()) { + if(peepidx <= DICSEGBASE) return 0; (*curdict->getdic)(curdict, --peepidx); get_askknj(); @@ -211,9 +197,8 @@ prev_douon() add_yomi(); p1 = getntag(p1); - } while (!segend(p1)); - } - else { + } while(!segend(p1)); + } else { set_idxyomi(); p1 = segtop(); @@ -224,17 +209,17 @@ prev_douon() add_yomi(); p1 = getntag(p1); - } while (p1 < p2); + } while(p1 < p2); } nlen = getnlen(peepdptr); - p1 = peepdptr + DOUONBLKSIZENUMBER + nlen; + p1 = peepdptr + DOUONBLKSIZENUMBER + nlen; p2 = getntag(peepdptr); do { peephptr = p1; - p1 = skiphblk(p1); - } while (p1 < p2); + p1 = skiphblk(p1); + } while(p1 < p2); peepgrm = *peephptr; @@ -243,19 +228,18 @@ prev_douon() peepkptr = p1; p1 = skipkstr(p1); - } while (*p1 != HINSIBLKTERM); + } while(*p1 != HINSIBLKTERM); return -1; } static int -next_kanji() -{ - u_char *p1; +next_kanji() { + u_char* p1; p1 = skipkstr(peepkptr); - if (*p1 == HINSIBLKTERM) return next_hinsi(); + if(*p1 == HINSIBLKTERM) return next_hinsi(); peepkptr = p1; @@ -263,13 +247,12 @@ next_kanji() } static int -next_hinsi() -{ - u_char *p1; +next_hinsi() { + u_char* p1; p1 = skiphblk(peephptr); - if (p1 >= getntag(peepdptr)) return next_douon(); + if(p1 >= getntag(peepdptr)) return next_douon(); peephptr = p1; @@ -281,32 +264,29 @@ next_hinsi() } static int -next_douon() -{ - u_char *p1; - int nlen; +next_douon() { + u_char* p1; + int nlen; p1 = getntag(peepdptr); - if (segend(p1)) { - if (peepidx + 1 < curdict->segunit) { + if(segend(p1)) { + if(peepidx + 1 < curdict->segunit) { (*curdict->getdic)(curdict, ++peepidx); get_askknj(); peepdptr = segtop(); set_idxyomi(); - } - else - return 0; - } - else { + } else + return 0; + } else { peepdptr = p1; } add_yomi(); - nlen = getnlen(peepdptr); - peephptr = peepdptr + DOUONBLKSIZENUMBER + nlen; + nlen = getnlen(peepdptr); + peephptr = peepdptr + DOUONBLKSIZENUMBER + nlen; peepgrm = *peephptr; @@ -316,13 +296,12 @@ next_douon() } static void -set_idxyomi() -{ - u_char *p1, *p2; +set_idxyomi() { + u_char *p1, *p2; - if (p2 = get_idxptr(peepidx)) { + if(p2 = get_idxptr(peepidx)) { p1 = peepyomi; - while (*p2) { + while(*p2) { cd2sjh_chr(*p2++, p1); p1 += 2; } @@ -331,10 +310,9 @@ set_idxyomi() } static void -add_yomi() -{ +add_yomi() { int nlen; - u_char *p1, *p2; + u_char *p1, *p2; nlen = getnlen(peepdptr); @@ -342,7 +320,7 @@ add_yomi() p2 = peepdptr + DOUONBLKSIZENUMBER; - while (nlen--) { + while(nlen--) { cd2sjh_chr(*p2++, p1); p1 += 2; } @@ -351,46 +329,35 @@ add_yomi() } static void -cd2sjh_chr(u_char ch, u_char *dst) -{ - if (ch == _TYOUON) { +cd2sjh_chr(u_char ch, u_char* dst) { + if(ch == _TYOUON) { *dst++ = 0xa1; *dst++ = 0xbc; - } - else if (ch == _IGETA) { + } else if(ch == _IGETA) { *dst++ = 0xa1; *dst++ = 0xf4; - } - else if (ch == _ATTO) { + } else if(ch == _ATTO) { *dst++ = 0xa1; *dst++ = 0xf7; - } - else if (ch == _YUUBIN) { + } else if(ch == _YUUBIN) { *dst++ = 0xa2; *dst++ = 0xa9; - } - else if (ch < N_0) { - } - else if (ch <= N_9) { + } else if(ch < N_0) { + } else if(ch <= N_9) { *dst++ = 0xa3; *dst++ = ch + 0xa0; - } - else if (ch <= A_Z) { + } else if(ch <= A_Z) { *dst++ = 0xa3; *dst++ = ch + 0xa7; - } - else if (ch <= A_z) { + } else if(ch <= A_z) { *dst++ = 0xa3; *dst++ = ch + 0xad; - } - else if (ch <= _NN) { + } else if(ch <= _NN) { *dst++ = 0xa4; *dst++ = ch + 0x53; - } - else if (ch <= _XKE) { + } else if(ch <= _XKE) { *dst++ = 0xa5; *dst++ = ch + 0x53; - } - else { + } else { } } diff --git a/lib/sj3core/ph2knj.c b/lib/sj3core/ph2knj.c index 435b163..bbfe068 100644 --- a/lib/sj3core/ph2knj.c +++ b/lib/sj3core/ph2knj.c @@ -1,6 +1,6 @@ /* * Copyright (c) 1991-1994 Sony Corporation - * + * * Permission is hereby granted, free of charge, to any person obtaining * a copy of this software and associated documentation files (the * "Software"), to deal in the Software without restriction, including @@ -8,10 +8,10 @@ * distribute, sublicense, and/or sell copies of the Software, and to * permit persons to whom the Software is furnished to do so, subject to * the following conditions: - * + * * The above copyright notice and this permission notice shall be * included in all copies or substantial portions of the Software. - * + * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. @@ -19,7 +19,7 @@ * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR * THE USE OR OTHER DEALINGS IN THE SOFTWARE. - * + * * Except as contained in this notice, the name of Sony Corporation * shall not be used in advertising or otherwise to promote the sale, use * or other dealings in this Software without prior written authorization @@ -28,29 +28,26 @@ */ /* - * $SonyRCSfile: ph2knj.c,v $ - * $SonyRevision: 1.1 $ + * $SonyRCSfile: ph2knj.c,v $ + * $SonyRevision: 1.1 $ * $SonyDate: 1994/06/03 08:02:09 $ */ - - - - #include "sj_kcnv.h" #include "sj_yomi.h" #include "sj_kanakan.h" -int -ph2knj(u_char *zyomi, u_char *kanji, int knjlen) -{ - u_char *ptr; - u_char *dst; +int ph2knj(u_char* zyomi, u_char* kanji, int knjlen) { + u_char* ptr; + u_char* dst; int i; - for (ptr = zyomi, dst = hyomi, i = 0 ; *ptr ; ) { - if (i++ >= MAXPHINPUTLEN) { *kanji = 0; return 0; } + for(ptr = zyomi, dst = hyomi, i = 0; *ptr;) { + if(i++ >= MAXPHINPUTLEN) { + *kanji = 0; + return 0; + } ptr += sj2cd_chr(ptr, dst++); } *dst = 0; @@ -59,23 +56,23 @@ ph2knj(u_char *zyomi, u_char *kanji, int knjlen) prevclgrm = 0; prevclrow = 0; - khcount = 0; + khcount = 0; nextcllen = 0; inputyomi = zyomi; cnvstart = ystart = hyomi; - cnvlen = sstrlen(hyomi); + cnvlen = sstrlen(hyomi); kanjipos = kanji; kanjilen = knjlen; - while (cnvlen && kanjilen) { - if (!clt1st) { + while(cnvlen && kanjilen) { + if(!clt1st) { mkjiritu(DO_CLSTUDY | DO_IKKATU); mkbunsetu(); - if (!maxclptr) wakachi(); + if(!maxclptr) wakachi(); jrt1st = maxjptr; clt1st = maxclptr; @@ -85,29 +82,27 @@ ph2knj(u_char *zyomi, u_char *kanji, int knjlen) selclrec(); - prevclgrm = selcl -> jnode -> hinsi; - prevclrow = selcl -> right; + prevclgrm = selcl->jnode->hinsi; + prevclrow = selcl->right; - clt1st = free_clst(clt1st, (int)selcl -> cllen); - jrt1st = free_jlst(jrt1st); + clt1st = free_clst(clt1st, (int)selcl->cllen); + jrt1st = free_jlst(jrt1st); - cnvstart += selcl -> cllen; - cnvlen -= selcl -> cllen; + cnvstart += selcl->cllen; + cnvlen -= selcl->cllen; - cvtphknj(); + cvtphknj(); - clt1st = clt2nd; - jrt1st = jrt2nd; + clt1st = clt2nd; + jrt1st = jrt2nd; } - if (!kanjilen) { - free_clall(clt1st); - free_jall (jrt1st); - } + if(!kanjilen) { + free_clall(clt1st); + free_jall(jrt1st); + } *kanjipos = 0; - return(inputyomi - zyomi); + return (inputyomi - zyomi); } - - diff --git a/lib/sj3core/ph_khtbl.c b/lib/sj3core/ph_khtbl.c index fdda01d..2f7347f 100644 --- a/lib/sj3core/ph_khtbl.c +++ b/lib/sj3core/ph_khtbl.c @@ -1,6 +1,6 @@ /* * Copyright (c) 1991-1994 Sony Corporation - * + * * Permission is hereby granted, free of charge, to any person obtaining * a copy of this software and associated documentation files (the * "Software"), to deal in the Software without restriction, including @@ -8,10 +8,10 @@ * distribute, sublicense, and/or sell copies of the Software, and to * permit persons to whom the Software is furnished to do so, subject to * the following conditions: - * + * * The above copyright notice and this permission notice shall be * included in all copies or substantial portions of the Software. - * + * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. @@ -19,7 +19,7 @@ * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR * THE USE OR OTHER DEALINGS IN THE SOFTWARE. - * + * * Except as contained in this notice, the name of Sony Corporation * shall not be used in advertising or otherwise to promote the sale, use * or other dealings in this Software without prior written authorization @@ -28,8 +28,8 @@ */ /* - * $SonyRCSfile: ph_khtbl.c,v $ - * $SonyRevision: 1.1 $ + * $SonyRCSfile: ph_khtbl.c,v $ + * $SonyRevision: 1.1 $ * $SonyDate: 1994/06/03 08:02:09 $ */ @@ -38,55 +38,52 @@ #include "sj_kanakan.h" static void -ph_setsty(CLREC *clrec) -{ - JREC *jrec; - TypeDicOfs offset; - u_char *ptr; - STDYIN *sptr; +ph_setsty(CLREC* clrec) { + JREC* jrec; + TypeDicOfs offset; + u_char* ptr; + STDYIN* sptr; - if (!seldict((jrec = clrec -> jnode) -> dicid)) { - if (!khcount) - ph_setkouho(clrec, (TypeDicOfs)1, (STDYIN *)NULL); + if(!seldict((jrec = clrec->jnode)->dicid)) { + if(!khcount) + ph_setkouho(clrec, (TypeDicOfs)1, (STDYIN*)NULL); return; } - (*curdict->getdic)(curdict, jrec -> jseg); + (*curdict->getdic)(curdict, jrec->jseg); ptr = dicbuf + jrec->jofsst + 1; - for ( ; *ptr != HINSIBLKTERM ; ptr = skipkstr(ptr)) { + for(; *ptr != HINSIBLKTERM; ptr = skipkstr(ptr)) { offset = ptr - dicbuf; - sptr = srchstdy(jrec -> jseg, offset, jrec -> dicid); + sptr = srchstdy(jrec->jseg, offset, jrec->dicid); - if (!khcount){ + if(!khcount) { ph_setkouho(clrec, offset, sptr); continue; } - if (!sptr) continue; + if(!sptr) continue; - if (sptr -> styno < kouhotbl[0].styno) { + if(sptr->styno < kouhotbl[0].styno) { ph_setkouho(clrec, offset, sptr); } - else if (sptr -> styno == kouhotbl -> styno) { - if (!(kouhotbl[0].ka_fg && - sptr -> ka_kj == kouhotbl[0].ka_kj)) { + else if(sptr->styno == kouhotbl->styno) { + if(!(kouhotbl[0].ka_fg && + sptr->ka_kj == kouhotbl[0].ka_kj)) { ph_setkouho(clrec, offset, sptr); } } } } -int -ph_khtbl(CLREC *clrec) -{ - JREC *jrec; - int flg = FALSE; +int ph_khtbl(CLREC* clrec) { + JREC* jrec; + int flg = FALSE; - switch((jrec = clrec -> jnode) -> class) { + switch((jrec = clrec->jnode)->class) { case C_DICT: ph_setsty(clrec); break; @@ -101,19 +98,17 @@ ph_khtbl(CLREC *clrec) case C_N_KAZULONG: case C_N_KAZULCMA: case C_N_SUUJILONG: - if (jrec -> jofsst) { + if(jrec->jofsst) { ph_setsty(clrec); break; - } - else + } else flg = TRUE; case C_BUNSETU: case C_MINASI: case C_WAKACHI: - if (!khcount) ph_setkouho(clrec, (TypeDicOfs)0, (STDYIN *)0); + if(!khcount) ph_setkouho(clrec, (TypeDicOfs)0, (STDYIN*)0); break; } return flg; } - diff --git a/lib/sj3core/priority.c b/lib/sj3core/priority.c index 68b8b3e..0d87823 100644 --- a/lib/sj3core/priority.c +++ b/lib/sj3core/priority.c @@ -1,6 +1,6 @@ /* * Copyright (c) 1991-1994 Sony Corporation - * + * * Permission is hereby granted, free of charge, to any person obtaining * a copy of this software and associated documentation files (the * "Software"), to deal in the Software without restriction, including @@ -8,10 +8,10 @@ * distribute, sublicense, and/or sell copies of the Software, and to * permit persons to whom the Software is furnished to do so, subject to * the following conditions: - * + * * The above copyright notice and this permission notice shall be * included in all copies or substantial portions of the Software. - * + * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. @@ -19,7 +19,7 @@ * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR * THE USE OR OTHER DEALINGS IN THE SOFTWARE. - * + * * Except as contained in this notice, the name of Sony Corporation * shall not be used in advertising or otherwise to promote the sale, use * or other dealings in this Software without prior written authorization @@ -28,13 +28,11 @@ */ /* - * $SonyRCSfile: priority.c,v $ - * $SonyRevision: 1.1 $ + * $SonyRCSfile: priority.c,v $ + * $SonyRevision: 1.1 $ * $SonyDate: 1994/06/03 08:02:10 $ */ - - #include "sj_kcnv.h" #include "sj_hinsi.h" #include "sj_right.h" @@ -43,49 +41,44 @@ #include "sj_kanakan.h" static int -isfukusi(TypeGram hinsi) -{ - if (FUKUSI_1 <= hinsi && hinsi <= FUKUSI_7) +isfukusi(TypeGram hinsi) { + if(FUKUSI_1 <= hinsi && hinsi <= FUKUSI_7) return TRUE; - else if (hinsi == MEISI_11 || hinsi == D_MEISI_6) + else if(hinsi == MEISI_11 || hinsi == D_MEISI_6) return TRUE; return FALSE; } static int -istaigen(TypeCnct right) -{ - if (right == R_MEISI || right == R_DMEISI || right == R_SMEISI1) +istaigen(TypeCnct right) { + if(right == R_MEISI || right == R_DMEISI || right == R_SMEISI1) return TRUE; - if (right == R_WO_MEISI || right == R_DAIMEISI || right == R_JOSUUSI) + if(right == R_WO_MEISI || right == R_DAIMEISI || right == R_JOSUUSI) return TRUE; - if (right == R_RENYOU1 || (R_RENYOU3 <= right && right <= R_SA5RENYOU4)) + if(right == R_RENYOU1 || (R_RENYOU3 <= right && right <= R_SA5RENYOU4)) return TRUE; return FALSE; } static int -taicnt(TypeGram hinsi1, TypeGram hinsi2) -{ - if (hinsi2 == TANKANJI) return 0; +taicnt(TypeGram hinsi1, TypeGram hinsi2) { + if(hinsi2 == TANKANJI) return 0; - if (MYOUJI <= hinsi1 && hinsi1 <= KEN_KU) { - if (MEISI_1 <= hinsi2 && hinsi2 <= SETUBI_9) + if(MYOUJI <= hinsi1 && hinsi1 <= KEN_KU) { + if(MEISI_1 <= hinsi2 && hinsi2 <= SETUBI_9) return Taipri(hinsi1 - MYOUJI, hinsi2); else return 3; - } - else if ((MEISI_1 <= hinsi1 && hinsi1 <= MEISI_11) || - hinsi1 == D_MEISI_2) { - if (MEISI_1 <= hinsi2 && hinsi2 <= SETUBI_9) { + } else if((MEISI_1 <= hinsi1 && hinsi1 <= MEISI_11) || + hinsi1 == D_MEISI_2) { + if(MEISI_1 <= hinsi2 && hinsi2 <= SETUBI_9) { return Taipri(5, hinsi2); - } - else + } else return 5; } else { - if (MEISI_1 <= hinsi2 && hinsi2 <= SETUBI_9) + if(MEISI_1 <= hinsi2 && hinsi2 <= SETUBI_9) return Taipri(6, hinsi2); else return 4; @@ -93,70 +86,65 @@ taicnt(TypeGram hinsi1, TypeGram hinsi2) } static int -sttcnt(TypeGram hinsi1, TypeGram hinsi2) -{ - if (SETTOU_1 <= hinsi1 && hinsi1 <= SETTOU_5) { - if (MEISI_1 <= hinsi2 && hinsi2 <= SUUSI) +sttcnt(TypeGram hinsi1, TypeGram hinsi2) { + if(SETTOU_1 <= hinsi1 && hinsi1 <= SETTOU_5) { + if(MEISI_1 <= hinsi2 && hinsi2 <= SUUSI) return Sttpri(hinsi1 - SETTOU_1, hinsi2); } return 4; } -int -priority(CLREC *clrec) -{ - int prty; - CLREC *cl2rec; - int keeplen; - TypeGram hinsi1; - int i; - int prev = 0; +int priority(CLREC* clrec) { + int prty; + CLREC* cl2rec; + int keeplen; + TypeGram hinsi1; + int i; + int prev = 0; - if (clrec->cllen == clrec->cl2len) return 0xff; + if(clrec->cllen == clrec->cl2len) return 0xff; - if (clrec->jnode->class == C_BUNSETU) { + if(clrec->jnode->class == C_BUNSETU) { prty = Termtbl[clrec->right] & GETPRI; - return(0xf0 + prty); + return (0xf0 + prty); } - hinsi1 = clrec->jnode->hinsi; - if (prevclrow == R_WO || prevclrow == R_WO_S || - prevclrow == R_NI1 || prevclrow == R_DRENYOU2) { - if (clrec -> kubun == K_DOUSHI || isfukusi(hinsi1)) + if(prevclrow == R_WO || prevclrow == R_WO_S || + prevclrow == R_NI1 || prevclrow == R_DRENYOU2) { + if(clrec->kubun == K_DOUSHI || isfukusi(hinsi1)) prev = 5; } - else if (istaigen(prevclrow)) { + else if(istaigen(prevclrow)) { - if (clrec -> kubun == K_TAIGEN) + if(clrec->kubun == K_TAIGEN) prev = taicnt(prevclgrm, hinsi1); else prev = 0; } - else if (prevclrow == R_SETTOU) { - if (clrec -> jnode -> sttofs) + else if(prevclrow == R_SETTOU) { + if(clrec->jnode->sttofs) prty = 2; else prty = sttcnt(prevclgrm, hinsi1); } - - if (hinsi1 >= SETUBI_1 && hinsi1 <= SETUBI_9 && (!prev)) { + if(hinsi1 >= SETUBI_1 && hinsi1 <= SETUBI_9 && (!prev)) { prty = 1; goto finish; } - cl2rec = maxclptr; - keeplen = cl2rec -> cllen; + cl2rec = maxclptr; + keeplen = cl2rec->cllen; - if (clrec->right == R_WO || clrec->right == R_WO_S || - clrec->right == R_NI1 || clrec->right == R_DRENYOU2) { - while (cl2rec && (int)cl2rec->cllen == keeplen) { - if (cl2rec->kubun == K_DOUSHI) { + if(clrec->right == R_WO || clrec->right == R_WO_S || + clrec->right == R_NI1 || clrec->right == R_DRENYOU2) { + while(cl2rec && (int)cl2rec->cllen == keeplen) { + if(cl2rec->kubun == K_DOUSHI) { prty = 14; goto finish; } @@ -164,42 +152,40 @@ priority(CLREC *clrec) } } - else if (clrec->right == R_SETTOU) { + else if(clrec->right == R_SETTOU) { prty = 0; - while (cl2rec && (int)cl2rec -> cllen == keeplen) { - if (cl2rec -> jnode -> sttofs ) + while(cl2rec && (int)cl2rec->cllen == keeplen) { + if(cl2rec->jnode->sttofs) i = 2; else i = sttcnt(hinsi1, cl2rec->jnode->hinsi); - if (i > prty) + if(i > prty) prty = i; - cl2rec = cl2rec -> clsort; + cl2rec = cl2rec->clsort; } goto finish; } - else if (istaigen(clrec->right)) { + else if(istaigen(clrec->right)) { prty = 0; - while (cl2rec && (int)cl2rec->cllen == keeplen) { + while(cl2rec && (int)cl2rec->cllen == keeplen) { i = taicnt(hinsi1, cl2rec->jnode->hinsi); - if (i > prty) + if(i > prty) prty = i; cl2rec = cl2rec->clsort; } - if (clrec->jnode->stbofs) { + if(clrec->jnode->stbofs) { prty -= 3; } goto finish; } - prty = Termtbl[clrec->right]; - - if (prty & RENTAI) { - while (cl2rec && (int)cl2rec->cllen == keeplen) { - if (cl2rec -> kubun == K_TAIGEN) { + if(prty & RENTAI) { + while(cl2rec && (int)cl2rec->cllen == keeplen) { + if(cl2rec->kubun == K_TAIGEN) { prty &= GETPRI; goto finish; } @@ -211,15 +197,14 @@ priority(CLREC *clrec) else { prty &= GETPRI; - if (prty == P_RENYOU_J || prty == P_RENYOU_M ) { - while (clrec->cllen != 1 && cl2rec && - (int)cl2rec->cllen == keeplen ) { - if (cl2rec->kubun == K_DOUSHI) { + if(prty == P_RENYOU_J || prty == P_RENYOU_M) { + while(clrec->cllen != 1 && cl2rec && + (int)cl2rec->cllen == keeplen) { + if(cl2rec->kubun == K_DOUSHI) { prty = 6; goto finish; - } - else if (cl2rec->jnode->hinsi == SETUBI_1 || - cl2rec->jnode->hinsi == SETUBI_2) { + } else if(cl2rec->jnode->hinsi == SETUBI_1 || + cl2rec->jnode->hinsi == SETUBI_2) { prty = 7; goto finish; } @@ -229,57 +214,53 @@ priority(CLREC *clrec) } } - finish: cl2rec = maxclptr; - if (hinsi1 == SUUSI) prty -= 4; + if(hinsi1 == SUUSI) prty -= 4; - if (cl2rec -> jnode -> hinsi == SUUSI) prty -= 3; + if(cl2rec->jnode->hinsi == SUUSI) prty -= 3; - if (cl2rec->jnode->class == C_DICT && - cl2rec->jnode->jlen == 1 && (cl2rec->kubun != K_DOUSHI)) { + if(cl2rec->jnode->class == C_DICT && + cl2rec->jnode->jlen == 1 && (cl2rec->kubun != K_DOUSHI)) { prty -= 2; } - if ((!istaigen(clrec->right)) && (cl2rec->jnode->hinsi == SETUBI_2)) { + if((!istaigen(clrec->right)) && (cl2rec->jnode->hinsi == SETUBI_2)) { prty -= 4; } prty += 20 - clrec->cllen + clrec->jnode->jlen + clrec->gobiln; - return(prty + prev); + return (prty + prev); } +void pritiny() { + CLREC* clrec; + int keeplen; + int i, prty = 0; -void -pritiny() -{ - CLREC *clrec; - int keeplen; - int i, prty = 0; + clrec = selcl; + keeplen = clrec->cllen; - clrec = selcl; - keeplen = clrec -> cllen; - - if (istaigen(prevclrow)) { - while (clrec && (int)clrec -> cllen == keeplen) { - i = taicnt(prevclgrm, clrec -> jnode -> hinsi); - if (i > prty) { + if(istaigen(prevclrow)) { + while(clrec && (int)clrec->cllen == keeplen) { + i = taicnt(prevclgrm, clrec->jnode->hinsi); + if(i > prty) { selcl = clrec; - prty = i; + prty = i; } - clrec = clrec -> clsort; + clrec = clrec->clsort; } } else { - while (clrec && (int)clrec -> cllen == keeplen) { - if (clrec -> jnode -> hinsi >= MYOUJI && - clrec -> jnode -> hinsi <= KEN_KU) - clrec = clrec -> clsort; + while(clrec && (int)clrec->cllen == keeplen) { + if(clrec->jnode->hinsi >= MYOUJI && + clrec->jnode->hinsi <= KEN_KU) + clrec = clrec->clsort; - else if (clrec -> jnode -> hinsi == TANKANJI) + else if(clrec->jnode->hinsi == TANKANJI) return; else { selcl = clrec; @@ -288,4 +269,3 @@ pritiny() } } } - diff --git a/lib/sj3core/prtytbl.c b/lib/sj3core/prtytbl.c index 1ac0e5e..3cbadde 100644 --- a/lib/sj3core/prtytbl.c +++ b/lib/sj3core/prtytbl.c @@ -1,6 +1,6 @@ /* * Copyright (c) 1991-1994 Sony Corporation - * + * * Permission is hereby granted, free of charge, to any person obtaining * a copy of this software and associated documentation files (the * "Software"), to deal in the Software without restriction, including @@ -8,10 +8,10 @@ * distribute, sublicense, and/or sell copies of the Software, and to * permit persons to whom the Software is furnished to do so, subject to * the following conditions: - * + * * The above copyright notice and this permission notice shall be * included in all copies or substantial portions of the Software. - * + * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. @@ -19,7 +19,7 @@ * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR * THE USE OR OTHER DEALINGS IN THE SOFTWARE. - * + * * Except as contained in this notice, the name of Sony Corporation * shall not be used in advertising or otherwise to promote the sale, use * or other dealings in this Software without prior written authorization @@ -28,77 +28,221 @@ */ /* - * $SonyRCSfile: prtytbl.c,v $ - * $SonyRevision: 1.1 $ + * $SonyRCSfile: prtytbl.c,v $ + * $SonyRevision: 1.1 $ * $SonyDate: 1994/06/03 08:02:11 $ */ - - #include "sj_rename.h" #include "sj_typedef.h" #include "sj_kanakan.h" -u_char taipri[7][45] = { +u_char taipri[7][45] = { - { 0, 4, 4, 4, 4, 4, 4, 4, 4, 4, - 4, 4, 3, 3, 3, 3, 3, 3, 0, 0, - 0, 3, 20, 4, 3, 3, 4, 4, 4, 4, - 4, 4, 4, 20, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4}, + {0, 4, 4, 4, 4, 4, 4, 4, 4, 4, + 4, 4, 3, 3, 3, 3, 3, 3, 0, 0, + 0, 3, 20, 4, 3, 3, 4, 4, 4, 4, + 4, 4, 4, 20, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4}, - { 0, 4, 4, 4, 4, 4, 4, 4, 4, 4, - 4, 4, 3, 3, 3, 3, 3, 3, 0, 0, - 0, 4, 4, 4, 4, 4, 4, 4, 4, 4, - 4, 4, 4, 20, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4}, + {0, 4, 4, 4, 4, 4, 4, 4, 4, 4, + 4, 4, 3, 3, 3, 3, 3, 3, 0, 0, + 0, 4, 4, 4, 4, 4, 4, 4, 4, 4, + 4, 4, 4, 20, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4}, - { 0, 4, 4, 4, 4, 4, 4, 4, 4, 4, - 4, 4, 3, 3, 3, 3, 3, 3, 0, 0, - 0, 4, 4, 4, 4, 4, 4, 4, 4, 4, - 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 6}, + {0, 4, 4, 4, 4, 4, 4, 4, 4, 4, + 4, 4, 3, 3, 3, 3, 3, 3, 0, 0, + 0, 4, 4, 4, 4, 4, 4, 4, 4, 4, + 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 6}, - { 0, 5, 5, 5, 5, 5, 5, 5, 5, 5, - 5, 5, 3, 3, 3, 3, 3, 3, 0, 0, - 0, 3, 3, 3, 4, 5, 4, 4, 4, 4, - 4, 4, 4, 4, 4, 4, 6, 6, 6, 8, 4, 4, 4, 4, 6}, + {0, 5, 5, 5, 5, 5, 5, 5, 5, 5, + 5, 5, 3, 3, 3, 3, 3, 3, 0, 0, + 0, 3, 3, 3, 4, 5, 4, 4, 4, 4, + 4, 4, 4, 4, 4, 4, 6, 6, 6, 8, 4, 4, 4, 4, 6}, - { 0, 7, 7, 7, 7, 7, 7, 7, 7, 7, - 7, 7, 4, 4, 4, 4, 4, 4, 0, 0, - 0, 4, 4, 4, 20, 20, 4, 4, 4, 4, - 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 6}, + {0, 7, 7, 7, 7, 7, 7, 7, 7, 7, + 7, 7, 4, 4, 4, 4, 4, 4, 0, 0, + 0, 4, 4, 4, 20, 20, 4, 4, 4, 4, + 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 6}, - { 0, 8, 8, 8, 8, 8, 7, 8, 8, 8, - 8, 8, 3, 6, 7, 3, 3, 5, 0, 0, - 0, 3, 3, 3, 3, 3, 5, 5, 5, 5, - 5, 5, 5, 5, 5, 5, 8, 8, 11, 5, 7, 7, 7, 7, 7}, + {0, 8, 8, 8, 8, 8, 7, 8, 8, 8, + 8, 8, 3, 6, 7, 3, 3, 5, 0, 0, + 0, 3, 3, 3, 3, 3, 5, 5, 5, 5, + 5, 5, 5, 5, 5, 5, 8, 8, 11, 5, 7, 7, 7, 7, 7}, - { 0, 5, 6, 6, 6, 6, 5, 6, 6, 6, - 6, 6, 3, 3, 3, 3, 3, 5, 0, 0, - 0, 3, 3, 3, 3, 3, 5, 5, 5, 5, - 4, 5, 5, 5, 5, 5, 5, 6, 6, 5, 5, 5, 5, 5, 5} - }; + {0, 5, 6, 6, 6, 6, 5, 6, 6, 6, + 6, 6, 3, 3, 3, 3, 3, 5, 0, 0, + 0, 3, 3, 3, 3, 3, 5, 5, 5, 5, + 4, 5, 5, 5, 5, 5, 5, 6, 6, 5, 5, 5, 5, 5, 5}}; +u_char sttpri[5][31] = { + { + 0, + 7, + 7, + 7, + 7, + 7, + 7, + 7, + 7, + 7, + 7, + 7, + 2, + 4, + 4, + 4, + 4, + 4, + 0, + 0, + 0, + 4, + 4, + 4, + 4, + 4, + 4, + 4, + 4, + 4, + 4, + }, -u_char sttpri[5][31] = { + { + 4, + 4, + 4, + 4, + 4, + 4, + 4, + 4, + 4, + 4, + 4, + 4, + 4, + 4, + 4, + 4, + 4, + 4, + 0, + 0, + 0, + 4, + 4, + 4, + 10, + 10, + 4, + 4, + 4, + 4, + 4, + }, - { 0, 7, 7, 7, 7, 7, 7, 7, 7, 7, - 7, 7, 2, 4, 4, 4, 4, 4, 0, 0, - 0, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, }, + { + 4, + 4, + 4, + 4, + 4, + 4, + 4, + 4, + 4, + 4, + 4, + 4, + 4, + 4, + 4, + 4, + 4, + 4, + 0, + 0, + 0, + 10, + 10, + 4, + 4, + 4, + 4, + 4, + 4, + 4, + 4, + }, - { 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, - 4, 4, 4, 4, 4, 4, 4, 4, 0, 0, - 0, 4, 4, 4, 10, 10, 4, 4, 4, 4, 4, }, + { + 0, + 4, + 4, + 4, + 4, + 4, + 4, + 4, + 4, + 4, + 4, + 4, + 4, + 4, + 4, + 4, + 4, + 4, + 0, + 0, + 0, + 4, + 4, + 4, + 4, + 4, + 4, + 4, + 4, + 4, + 15, + }, - { 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, - 4, 4, 4, 4, 4, 4, 4, 4, 0, 0, - 0, 10, 10, 4, 4, 4, 4, 4, 4, 4, 4, }, - - { 0, 4, 4, 4, 4, 4, 4, 4, 4, 4, - 4, 4, 4, 4, 4, 4, 4, 4, 0, 0, - 0, 4, 4, 4, 4, 4, 4, 4, 4, 4, 15, }, - - { 0, 12, 12, 12, 12, 12, 12, 12, 12, 12, - 12, 12, 9, 9, 9, 9, 9, 9, 0, 0, - 0, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, } - }; + { + 0, + 12, + 12, + 12, + 12, + 12, + 12, + 12, + 12, + 12, + 12, + 12, + 9, + 9, + 9, + 9, + 9, + 9, + 0, + 0, + 0, + 4, + 4, + 4, + 4, + 4, + 4, + 4, + 4, + 4, + 4, + }}; diff --git a/lib/sj3core/s2ctbl.c b/lib/sj3core/s2ctbl.c index ef0523e..f6f2372 100644 --- a/lib/sj3core/s2ctbl.c +++ b/lib/sj3core/s2ctbl.c @@ -1,6 +1,6 @@ /* * Copyright (c) 1991-1994 Sony Corporation - * + * * Permission is hereby granted, free of charge, to any person obtaining * a copy of this software and associated documentation files (the * "Software"), to deal in the Software without restriction, including @@ -8,10 +8,10 @@ * distribute, sublicense, and/or sell copies of the Software, and to * permit persons to whom the Software is furnished to do so, subject to * the following conditions: - * + * * The above copyright notice and this permission notice shall be * included in all copies or substantial portions of the Software. - * + * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. @@ -19,7 +19,7 @@ * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR * THE USE OR OTHER DEALINGS IN THE SOFTWARE. - * + * * Except as contained in this notice, the name of Sony Corporation * shall not be used in advertising or otherwise to promote the sale, use * or other dealings in this Software without prior written authorization @@ -28,126 +28,123 @@ */ /* - * $SonyRCSfile: s2ctbl.c,v $ - * $SonyRevision: 1.2 $ + * $SonyRCSfile: s2ctbl.c,v $ + * $SonyRevision: 1.2 $ * $SonyDate: 1995/07/21 05:22:51 $ */ - - #include "sj_rename.h" #include "sj_typedef.h" #include "sj_yomi.h" #include "sj_kanakan.h" -u_char kigou[] = { - Y_L_KAKKO, - Y_KUTEN, - Y_TOUTEN, - Y_COMMA, - Y_PERIOD, - Y_L_KAKKO, - Y_L_KAKKO, - Y_L_KAKKO, - Y_BIKKURI, - Y_BIKKURI, - Y_KIGOU, - Y_KIGOU, - Y_KIGOU, - Y_KIGOU, - Y_KIGOU, - Y_KIGOU, - Y_KIGOU, - Y_KIGOU, - Y_KIGOU, - Y_KIGOU, - Y_KIGOU, - Y_KIGOU, - Y_KIGOU, - Y_KIGOU, - Y_KIGOU, - Y_KIGOU, - Y_KIGOU, - _TYOUON, - Y_KIGOU, - Y_KIGOU, - Y_KIGOU, - Y_KIGOU, - Y_KIGOU, - Y_KIGOU, - Y_KIGOU, - Y_KIGOU, - Y_KIGOU, - Y_L_KAKKO, - Y_QUOTA, - Y_L_KAKKO, - Y_QUOTA, - Y_L_KAKKO, - Y_R_KAKKO, - Y_L_KAKKO, - Y_R_KAKKO, - Y_L_KAKKO, - Y_R_KAKKO, - Y_L_KAKKO, - Y_R_KAKKO, - Y_L_KAKKO, - Y_R_KAKKO, - Y_L_KAKKO, - Y_R_KAKKO, - Y_L_KAKKO, - Y_R_KAKKO, - Y_L_KAKKO, - Y_R_KAKKO, - Y_L_KAKKO, - Y_R_KAKKO, - Y_KIGOU, - Y_KIGOU, - Y_KIGOU, - Y_KIGOU, - Y_KIGOU, - Y_KIGOU, - Y_KIGOU, - Y_KIGOU, - Y_KIGOU, - Y_KIGOU, - Y_KIGOU, - Y_KIGOU, - Y_KIGOU, - Y_KIGOU, - Y_KIGOU, - Y_KIGOU, - Y_KIGOU, - Y_KIGOU, - Y_S_KIGOU2, - Y_S_KIGOU1, - Y_S_KIGOU1, - Y_S_KIGOU2, - Y_S_KIGOU1, - Y_S_KIGOU2, - _IGETA, - Y_KIGOU, - Y_KIGOU, - _ATTO, - Y_KIGOU, - Y_KIGOU, - Y_KIGOU, - Y_KIGOU, - Y_KIGOU, - Y_KIGOU, - Y_KIGOU, - Y_KIGOU, - Y_KIGOU, - Y_KIGOU, - Y_KIGOU, - Y_KIGOU, - Y_KIGOU, - Y_KIGOU, - Y_KIGOU, - _YUUBIN, - Y_KIGOU, - Y_KIGOU, - Y_KIGOU, - Y_KIGOU, - Y_KIGOU - }; +u_char kigou[] = { + Y_L_KAKKO, + Y_KUTEN, + Y_TOUTEN, + Y_COMMA, + Y_PERIOD, + Y_L_KAKKO, + Y_L_KAKKO, + Y_L_KAKKO, + Y_BIKKURI, + Y_BIKKURI, + Y_KIGOU, + Y_KIGOU, + Y_KIGOU, + Y_KIGOU, + Y_KIGOU, + Y_KIGOU, + Y_KIGOU, + Y_KIGOU, + Y_KIGOU, + Y_KIGOU, + Y_KIGOU, + Y_KIGOU, + Y_KIGOU, + Y_KIGOU, + Y_KIGOU, + Y_KIGOU, + Y_KIGOU, + _TYOUON, + Y_KIGOU, + Y_KIGOU, + Y_KIGOU, + Y_KIGOU, + Y_KIGOU, + Y_KIGOU, + Y_KIGOU, + Y_KIGOU, + Y_KIGOU, + Y_L_KAKKO, + Y_QUOTA, + Y_L_KAKKO, + Y_QUOTA, + Y_L_KAKKO, + Y_R_KAKKO, + Y_L_KAKKO, + Y_R_KAKKO, + Y_L_KAKKO, + Y_R_KAKKO, + Y_L_KAKKO, + Y_R_KAKKO, + Y_L_KAKKO, + Y_R_KAKKO, + Y_L_KAKKO, + Y_R_KAKKO, + Y_L_KAKKO, + Y_R_KAKKO, + Y_L_KAKKO, + Y_R_KAKKO, + Y_L_KAKKO, + Y_R_KAKKO, + Y_KIGOU, + Y_KIGOU, + Y_KIGOU, + Y_KIGOU, + Y_KIGOU, + Y_KIGOU, + Y_KIGOU, + Y_KIGOU, + Y_KIGOU, + Y_KIGOU, + Y_KIGOU, + Y_KIGOU, + Y_KIGOU, + Y_KIGOU, + Y_KIGOU, + Y_KIGOU, + Y_KIGOU, + Y_KIGOU, + Y_S_KIGOU2, + Y_S_KIGOU1, + Y_S_KIGOU1, + Y_S_KIGOU2, + Y_S_KIGOU1, + Y_S_KIGOU2, + _IGETA, + Y_KIGOU, + Y_KIGOU, + _ATTO, + Y_KIGOU, + Y_KIGOU, + Y_KIGOU, + Y_KIGOU, + Y_KIGOU, + Y_KIGOU, + Y_KIGOU, + Y_KIGOU, + Y_KIGOU, + Y_KIGOU, + Y_KIGOU, + Y_KIGOU, + Y_KIGOU, + Y_KIGOU, + Y_KIGOU, + _YUUBIN, + Y_KIGOU, + Y_KIGOU, + Y_KIGOU, + Y_KIGOU, + Y_KIGOU}; diff --git a/lib/sj3core/sdepend.c b/lib/sj3core/sdepend.c index aefbca1..f5e4dd0 100644 --- a/lib/sj3core/sdepend.c +++ b/lib/sj3core/sdepend.c @@ -1,6 +1,6 @@ /* * Copyright (c) 1991-1994 Sony Corporation - * + * * Permission is hereby granted, free of charge, to any person obtaining * a copy of this software and associated documentation files (the * "Software"), to deal in the Software without restriction, including @@ -8,10 +8,10 @@ * distribute, sublicense, and/or sell copies of the Software, and to * permit persons to whom the Software is furnished to do so, subject to * the following conditions: - * + * * The above copyright notice and this permission notice shall be * included in all copies or substantial portions of the Software. - * + * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. @@ -19,7 +19,7 @@ * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR * THE USE OR OTHER DEALINGS IN THE SOFTWARE. - * + * * Except as contained in this notice, the name of Sony Corporation * shall not be used in advertising or otherwise to promote the sale, use * or other dealings in this Software without prior written authorization @@ -28,8 +28,8 @@ */ /* - * $SonyRCSfile: depend.c,v $ - * $SonyRevision: 1.4 $ + * $SonyRCSfile: depend.c,v $ + * $SonyRevision: 1.4 $ * $SonyDate: 1997/10/07 07:39:45 $ */ @@ -40,8 +40,8 @@ #include "sj_kanakan.h" #if defined(__FD_SET) && !defined(FD_SET) -# define FD_SET __FD_SET -# define FD_CLR __FD_CLR +#define FD_SET __FD_SET +#define FD_CLR __FD_CLR #endif #ifndef L_SET @@ -60,13 +60,12 @@ #define ftruncate chsize #endif -DictFile *dictlink = NULL; -StdyFile *stdylink = NULL; +DictFile* dictlink = NULL; +StdyFile* stdylink = NULL; static long -get4byte(u_char *p) -{ - long i; +get4byte(u_char* p) { + long i; i = *p; i = (i << 8) + *++p; @@ -74,548 +73,536 @@ get4byte(u_char *p) return ((i << 8) + *++p); } static void -Put4byte(u_char *p, long n) -{ +Put4byte(u_char* p, long n) { p += 3; - *p-- = n; n >>= 8; - *p-- = n; n >>= 8; - *p-- = n; n >>= 8; + *p-- = n; + n >>= 8; + *p-- = n; + n >>= 8; + *p-- = n; + n >>= 8; *p = n; } -#define put4byte(p, n) Put4byte((p), (long)(n)) - - +#define put4byte(p, n) Put4byte((p), (long)(n)) static int -fgetfile(FILE *fp, long pos, long len, u_char *p) -{ - if (fseek(fp, pos, 0) == ERROR) { - serv_errno = SJ3_FileSeekError; return ERROR; +fgetfile(FILE* fp, long pos, long len, u_char* p) { + if(fseek(fp, pos, 0) == ERROR) { + serv_errno = SJ3_FileSeekError; + return ERROR; } - if (fread(p, len, 1, fp) != 1) { - serv_errno = SJ3_FileReadError; return ERROR; + if(fread(p, len, 1, fp) != 1) { + serv_errno = SJ3_FileReadError; + return ERROR; } return SJ3_NormalEnd; } static int -fputfile(FILE *fp, long pos, int len, u_char *p) -{ - if (fseek(fp, pos, 0) == ERROR) { - serv_errno = SJ3_FileSeekError; return ERROR; +fputfile(FILE* fp, long pos, int len, u_char* p) { + if(fseek(fp, pos, 0) == ERROR) { + serv_errno = SJ3_FileSeekError; + return ERROR; } - if (fwrite(p, len, 1, fp) != 1) { - serv_errno = SJ3_FileWriteError; return ERROR; + if(fwrite(p, len, 1, fp) != 1) { + serv_errno = SJ3_FileWriteError; + return ERROR; } return SJ3_NormalEnd; } static int -getfile(int fd, int pos, int len, u_char *p) -{ - if (lseek(fd, pos, L_SET) == ERROR) { - serv_errno = SJ3_FileSeekError; return ERROR; +getfile(int fd, int pos, int len, u_char* p) { + if(lseek(fd, pos, L_SET) == ERROR) { + serv_errno = SJ3_FileSeekError; + return ERROR; } - if (read(fd, p, len) != len) { - serv_errno = SJ3_FileReadError; return ERROR; + if(read(fd, p, len) != len) { + serv_errno = SJ3_FileReadError; + return ERROR; } return SJ3_NormalEnd; } static int -putfile(int fd, int pos, int len, u_char *p) -{ - if (lseek(fd, pos, L_SET) == ERROR) { - serv_errno = SJ3_FileSeekError; return ERROR; +putfile(int fd, int pos, int len, u_char* p) { + if(lseek(fd, pos, L_SET) == ERROR) { + serv_errno = SJ3_FileSeekError; + return ERROR; } - if (write(fd, p, len) != len) { - serv_errno = SJ3_FileWriteError; return ERROR; + if(write(fd, p, len) != len) { + serv_errno = SJ3_FileWriteError; + return ERROR; } return SJ3_NormalEnd; } - - static int -check_passwd(u_char *buf, char *passwd) -{ +check_passwd(u_char* buf, char* passwd) { buf += PASSWDPOS; return (*buf && strncmp(passwd, buf, PASSWDLEN)) ? FALSE : TRUE; } static void -set_passwd(u_char *buf, char *passwd) -{ +set_passwd(u_char* buf, char* passwd) { strncpy(buf + PASSWDPOS, passwd, PASSWDLEN); } - - static int -check_dictfile(u_char *buf) -{ +check_dictfile(u_char* buf) { return (DICTVERSION != get4byte(buf + VERSIONPOS)) ? FALSE : TRUE; } +static DictFile* +search_same_dict(ino_t ino) { + DictFile* p; - -static DictFile * -search_same_dict(ino_t ino) -{ - DictFile *p; - - for (p = dictlink ; p != NULL ; p = p -> link) - if (p->dict.dicid == ino) return p; + for(p = dictlink; p != NULL; p = p->link) + if(p->dict.dicid == ino) return p; return NULL; } - - static int -getofs(DictFile *dp) -{ - idxofs = dp -> ofsptr; +getofs(DictFile* dp) { + idxofs = dp->ofsptr; return 0; } static int -getidx(DictFile *dp) -{ - idxbuf = dp -> buffer + dp -> idxstrt; +getidx(DictFile* dp) { + idxbuf = dp->buffer + dp->idxstrt; return 0; } /* XXX: not IFunc */ static int -getdic(DictFile *dp, TypeDicSeg seg) -{ - if (seg >= dp->dict.segunit) return -1; +getdic(DictFile* dp, TypeDicSeg seg) { + if(seg >= dp->dict.segunit) return -1; dicbuf = dp->buffer + dp->segstrt + dp->dict.seglen * seg; return 0; } static int -putidx(DictFile *dp) -{ +putidx(DictFile* dp) { return putfile(dp->fd, dp->idxstrt, dp->dict.idxlen, idxbuf); } /* XXX: not IFunc */ static int -putdic(DictFile *dp, TypeDicSeg seg) -{ - u_char *p; +putdic(DictFile* dp, TypeDicSeg seg) { + u_char* p; long i, j; - if (seg >= dp->dict.maxunit) return -1; + if(seg >= dp->dict.maxunit) return -1; i = dp->segstrt + dp->dict.seglen * (seg + 1); - if (i > dp->bufsiz) { - if (!(p = (u_char *)malloc(i))) return -1; + if(i > dp->bufsiz) { + if(!(p = (u_char*)malloc(i))) return -1; memcpy(p, dp->buffer, dp->bufsiz); - if (idxbuf - dp->buffer == dp->idxstrt) + if(idxbuf - dp->buffer == dp->idxstrt) idxbuf = p + dp->idxstrt; - if ((dicbuf >= dp->buffer) && - ((j = dicbuf - dp->buffer) < dp->bufsiz)) + if((dicbuf >= dp->buffer) && + ((j = dicbuf - dp->buffer) < dp->bufsiz)) dicbuf = p + j; - free((char *)(dp -> buffer)); - dp -> buffer = p; - dp -> bufsiz = i; + free((char*)(dp->buffer)); + dp->buffer = p; + dp->bufsiz = i; } i = dp->segstrt + dp->dict.seglen * seg; - if ((p = dp->buffer + i) != dicbuf) memcpy(p, dicbuf, dp->dict.seglen); + if((p = dp->buffer + i) != dicbuf) memcpy(p, dicbuf, dp->dict.seglen); return putfile(dp->fd, i, dp->dict.seglen, p); } /* XXX: not IFunc */ static int -rszdic(DictFile *dp, TypeDicSeg seg) -{ +rszdic(DictFile* dp, TypeDicSeg seg) { long i; - u_char *p; + u_char* p; i = dp->segstrt + dp->dict.seglen * seg; - if (dp->bufsiz != i) { - if (!(p = (u_char *)malloc(i))) return -1; + if(dp->bufsiz != i) { + if(!(p = (u_char*)malloc(i))) return -1; memcpy(p, dp->buffer, ((i > dp->bufsiz) ? dp->bufsiz : i)); - if (idxbuf - dp->buffer == dp->idxstrt) + if(idxbuf - dp->buffer == dp->idxstrt) idxbuf = p + dp->idxstrt; - if ((dicbuf >= dp->buffer) && - ((i = dicbuf - dp->buffer) < dp->bufsiz)) + if((dicbuf >= dp->buffer) && + ((i = dicbuf - dp->buffer) < dp->bufsiz)) dicbuf = p + i; - free((char *)(dp -> buffer)); - dp -> buffer = p; - dp -> bufsiz = i; - if (ftruncate(dp->fd, i) == -1) return -1; + free((char*)(dp->buffer)); + dp->buffer = p; + dp->bufsiz = i; + if(ftruncate(dp->fd, i) == -1) return -1; } put4byte(dp->buffer + DICTSEGNUM, seg); return putfile(dp->fd, 0, HEADERLENGTH, dp->buffer); } +DictFile* +opendict(char* name, char* passwd) { + FILE* fp; + struct stat sbuf; + DictFile* dfp; + u_char tmp[HEADERLENGTH]; + int i; + u_char* dp; - -DictFile * -opendict(char *name, char *passwd) -{ - FILE *fp; - struct stat sbuf; - DictFile *dfp; - u_char tmp[HEADERLENGTH]; - int i; - u_char *dp; - - if (stat(name, &sbuf) == ERROR) { - if (errno == ENOENT) + if(stat(name, &sbuf) == ERROR) { + if(errno == ENOENT) serv_errno = SJ3_FileNotExist; else serv_errno = SJ3_CannotAccessFile; return NULL; } - if ((dfp = search_same_dict(sbuf.st_ino)) != NULL) { - dfp -> refcnt++; return dfp; + if((dfp = search_same_dict(sbuf.st_ino)) != NULL) { + dfp->refcnt++; + return dfp; } - if ((fp = fopen(name, "r+")) == NULL) { - if ((fp = fopen(name, "r")) == NULL) { - serv_errno = SJ3_CannotOpenFile; return NULL; + if((fp = fopen(name, "r+")) == NULL) { + if((fp = fopen(name, "r")) == NULL) { + serv_errno = SJ3_CannotOpenFile; + return NULL; } i = FALSE; - } - else + } else i = TRUE; - if (fgetfile(fp, 0L, sizeof(tmp), tmp) == ERROR) goto error1; + if(fgetfile(fp, 0L, sizeof(tmp), tmp) == ERROR) goto error1; - if (!check_dictfile(tmp)) { - serv_errno = SJ3_IllegalDictFile; goto error1; + if(!check_dictfile(tmp)) { + serv_errno = SJ3_IllegalDictFile; + goto error1; } - if (!check_passwd(tmp, passwd)) { - serv_errno = SJ3_IncorrectPasswd; goto error1; + if(!check_passwd(tmp, passwd)) { + serv_errno = SJ3_IncorrectPasswd; + goto error1; } - if ((dp = (u_char *)malloc((long)sbuf.st_size)) == NULL) { - serv_errno = SJ3_NotEnoughMemory; goto error1; + if((dp = (u_char*)malloc((long)sbuf.st_size)) == NULL) { + serv_errno = SJ3_NotEnoughMemory; + goto error1; } - if ((dfp = (DictFile *)malloc(sizeof(*dfp))) == NULL) { - serv_errno = SJ3_NotEnoughMemory; goto error2; + if((dfp = (DictFile*)malloc(sizeof(*dfp))) == NULL) { + serv_errno = SJ3_NotEnoughMemory; + goto error2; } memset(dfp, '\0', sizeof(*dfp)); - if (fgetfile(fp, 0L, (long)sbuf.st_size, dp) == ERROR) goto error3; + if(fgetfile(fp, 0L, (long)sbuf.st_size, dp) == ERROR) goto error3; - dfp -> dict.dicid = sbuf.st_ino; - dfp -> dict.idxlen = get4byte(dp + DICTIDXLEN); - dfp -> dict.seglen = get4byte(dp + DICTSEGLEN); - dfp -> dict.segunit = get4byte(dp + DICTSEGNUM); - dfp -> dict.maxunit = i ? get4byte(dp + DICTSEGMAX) : 0 ; - dfp -> dict.getofs = getofs; - dfp -> dict.getidx = getidx; - dfp -> dict.getdic = (IFunc)getdic; - dfp -> dict.putidx = putidx; - dfp -> dict.putdic = (IFunc)putdic; - dfp -> dict.rszdic = (IFunc)rszdic; - dfp -> refcnt = 1; - dfp -> fp = fp; - dfp -> fd = fileno(fp); - dfp -> buffer = dp; - dfp -> bufsiz = sbuf.st_size; - dfp -> idxstrt = get4byte(dp + DICTIDXPOS); - dfp -> segstrt = get4byte(dp + DICTSEGPOS); + dfp->dict.dicid = sbuf.st_ino; + dfp->dict.idxlen = get4byte(dp + DICTIDXLEN); + dfp->dict.seglen = get4byte(dp + DICTSEGLEN); + dfp->dict.segunit = get4byte(dp + DICTSEGNUM); + dfp->dict.maxunit = i ? get4byte(dp + DICTSEGMAX) : 0; + dfp->dict.getofs = getofs; + dfp->dict.getidx = getidx; + dfp->dict.getdic = (IFunc)getdic; + dfp->dict.putidx = putidx; + dfp->dict.putdic = (IFunc)putdic; + dfp->dict.rszdic = (IFunc)rszdic; + dfp->refcnt = 1; + dfp->fp = fp; + dfp->fd = fileno(fp); + dfp->buffer = dp; + dfp->bufsiz = sbuf.st_size; + dfp->idxstrt = get4byte(dp + DICTIDXPOS); + dfp->segstrt = get4byte(dp + DICTSEGPOS); - i = dfp -> dict.segunit; - if (i < dfp -> dict.maxunit) i = dfp -> dict.maxunit; + i = dfp->dict.segunit; + if(i < dfp->dict.maxunit) i = dfp->dict.maxunit; i *= sizeof(TypeIdxOfs); - if ((dfp -> ofsptr = (TypeIdxOfs *)malloc(i)) == NULL) { - serv_errno = SJ3_NotEnoughMemory; goto error3; + if((dfp->ofsptr = (TypeIdxOfs*)malloc(i)) == NULL) { + serv_errno = SJ3_NotEnoughMemory; + goto error3; } - mkidxtbl(&(dfp -> dict)); + mkidxtbl(&(dfp->dict)); - dfp -> link = dictlink; - dictlink = dfp; + dfp->link = dictlink; + dictlink = dfp; return dfp; - -error3: free((char *)dfp); -error2: free((char *)dp); -error1: fclose(fp); +error3: + free((char*)dfp); +error2: + free((char*)dp); +error1: + fclose(fp); return NULL; } +int closedict(DictFile* dfp) { + DictFile* df; + if(--dfp->refcnt > 0) return 0; -int -closedict(DictFile *dfp) -{ - DictFile *df; - - if (--dfp->refcnt > 0) return 0; - - if (dictlink == dfp) - dictlink = dfp -> link; + if(dictlink == dfp) + dictlink = dfp->link; else { - for (df = dictlink ; df ; df = df -> link) - if (df -> link == dfp) { - df -> link = dfp -> link; + for(df = dictlink; df; df = df->link) + if(df->link == dfp) { + df->link = dfp->link; break; } } - if (dfp -> fp) fclose(dfp ->fp); + if(dfp->fp) fclose(dfp->fp); - free((char *)(dfp -> ofsptr)); - free((char *)(dfp -> buffer)); - free((char *)dfp); + free((char*)(dfp->ofsptr)); + free((char*)(dfp->buffer)); + free((char*)dfp); return 0; } #ifdef SJ3_LOCK -static fd_set zero_fd_set; /* XXX */ +static fd_set zero_fd_set; /* XXX */ #endif -void -lock_dict(DictFile *p, int fd) -{ +void lock_dict(DictFile* p, int fd) { #ifdef SJ3_LOCK - FD_SET(fd, &(p -> lock)); + FD_SET(fd, &(p->lock)); #endif } -void -unlock_dict(DictFile *p, int fd) -{ +void unlock_dict(DictFile* p, int fd) { #ifdef SJ3_LOCK - FD_CLR(fd, &(p -> lock)); + FD_CLR(fd, &(p->lock)); #endif } -int is_dict_locked(DictFile *p) -{ +int is_dict_locked(DictFile* p) { #ifdef SJ3_LOCK - return memcmp(&(p -> lock), &zero_fd_set, sizeof(zero_fd_set)); + return memcmp(&(p->lock), &zero_fd_set, sizeof(zero_fd_set)); #else return 0; #endif } static int -check_stdyfile(u_char *buf) -{ +check_stdyfile(u_char* buf) { return (STDYVERSION != get4byte(buf + VERSIONPOS)) ? FALSE : TRUE; } -static StdyFile * -search_same_stdy(ino_t ino) -{ - StdyFile *p; +static StdyFile* +search_same_stdy(ino_t ino) { + StdyFile* p; - for (p = stdylink ; p != NULL ; p = p -> link) - if (p -> inode == ino) return p; + for(p = stdylink; p != NULL; p = p->link) + if(p->inode == ino) return p; return NULL; } -StdyFile * -openstdy(char *name, char *passwd) -{ - FILE *fp; - struct stat sbuf; - StdyFile *sfp; - u_char *hd; - STDYIN *sp; - u_short *cip; - u_char *clp; - long stdycnt, stdypos, stdylen, stdymax; - long clidxpos, clidxlen; - long clstdypos, clstdylen, clstdystep; - long len; +StdyFile* +openstdy(char* name, char* passwd) { + FILE* fp; + struct stat sbuf; + StdyFile* sfp; + u_char* hd; + STDYIN* sp; + u_short* cip; + u_char* clp; + long stdycnt, stdypos, stdylen, stdymax; + long clidxpos, clidxlen; + long clstdypos, clstdylen, clstdystep; + long len; - if (stat(name, &sbuf) == ERROR) { - if (errno == ENOENT) + if(stat(name, &sbuf) == ERROR) { + if(errno == ENOENT) serv_errno = SJ3_FileNotExist; else serv_errno = SJ3_CannotAccessFile; return NULL; } - if ((sfp = search_same_stdy(sbuf.st_ino)) != NULL) { - sfp -> refcnt++; return sfp; + if((sfp = search_same_stdy(sbuf.st_ino)) != NULL) { + sfp->refcnt++; + return sfp; } - if ((hd = (u_char *)malloc(HEADERLENGTH + COMMENTLENGTH)) == NULL) { - serv_errno = SJ3_NotEnoughMemory; return NULL; + if((hd = (u_char*)malloc(HEADERLENGTH + COMMENTLENGTH)) == NULL) { + serv_errno = SJ3_NotEnoughMemory; + return NULL; } - if ((fp = fopen(name, "r+")) == NULL) { - serv_errno = SJ3_CannotOpenFile; goto error0; + if((fp = fopen(name, "r+")) == NULL) { + serv_errno = SJ3_CannotOpenFile; + goto error0; } - if (fgetfile(fp, 0L, HEADERLENGTH + COMMENTLENGTH, hd) == ERROR) + if(fgetfile(fp, 0L, HEADERLENGTH + COMMENTLENGTH, hd) == ERROR) goto error1; - if (!check_stdyfile(hd)) { - serv_errno = SJ3_IllegalStdyFile; goto error1; + if(!check_stdyfile(hd)) { + serv_errno = SJ3_IllegalStdyFile; + goto error1; } - if (!check_passwd(hd, passwd)) { - serv_errno = SJ3_IncorrectPasswd; goto error1; + if(!check_passwd(hd, passwd)) { + serv_errno = SJ3_IncorrectPasswd; + goto error1; } - stdycnt = get4byte(hd + STDYNORMCNT); - stdypos = get4byte(hd + STDYNORMPOS); - stdylen = get4byte(hd + STDYNORMLEN); - stdymax = get4byte(hd + STDYNORMNUM); + stdycnt = get4byte(hd + STDYNORMCNT); + stdypos = get4byte(hd + STDYNORMPOS); + stdylen = get4byte(hd + STDYNORMLEN); + stdymax = get4byte(hd + STDYNORMNUM); clidxpos = get4byte(hd + STDYCLIDXPOS); clidxlen = get4byte(hd + STDYCLIDXLEN); clstdypos = get4byte(hd + STDYCLSEGPOS); clstdylen = get4byte(hd + STDYCLSEGLEN); clstdystep = get4byte(hd + STDYCLIDXSTEP); - len = sizeof(STDYIN) * stdymax; + len = sizeof(STDYIN) * stdymax; - if ((sfp = (StdyFile *)malloc(sizeof(*sfp))) == NULL) { - serv_errno = SJ3_NotEnoughMemory; goto error1; + if((sfp = (StdyFile*)malloc(sizeof(*sfp))) == NULL) { + serv_errno = SJ3_NotEnoughMemory; + goto error1; } memset(sfp, '\0', sizeof(*sfp)); - if ((sp = (STDYIN *)malloc(len)) == NULL) { - serv_errno = SJ3_NotEnoughMemory; goto error2; + if((sp = (STDYIN*)malloc(len)) == NULL) { + serv_errno = SJ3_NotEnoughMemory; + goto error2; } - if ((cip = (u_short *)malloc(clidxlen)) == NULL) { - serv_errno = SJ3_NotEnoughMemory; goto error3; + if((cip = (u_short*)malloc(clidxlen)) == NULL) { + serv_errno = SJ3_NotEnoughMemory; + goto error3; } - if ((clp = (u_char *)malloc(clstdylen)) == NULL) { - serv_errno = SJ3_NotEnoughMemory; goto error4; + if((clp = (u_char*)malloc(clstdylen)) == NULL) { + serv_errno = SJ3_NotEnoughMemory; + goto error4; } - if (fgetfile(fp, clidxpos, clidxlen, (u_char *)cip) == ERROR) goto error5; /* XXX */ - if (fgetfile(fp, clstdypos, clstdylen, (u_char *)clp) == ERROR) goto error5; /* XXX */ - if (fgetfile(fp, stdypos, len, (u_char *)sp) == ERROR) stdycnt = 0; /* XXX */ + if(fgetfile(fp, clidxpos, clidxlen, (u_char*)cip) == ERROR) goto error5; /* XXX */ + if(fgetfile(fp, clstdypos, clstdylen, (u_char*)clp) == ERROR) goto error5; /* XXX */ + if(fgetfile(fp, stdypos, len, (u_char*)sp) == ERROR) stdycnt = 0; /* XXX */ - sfp -> stdy.stdycnt = stdycnt; - sfp -> stdy.stdymax = stdymax; - sfp -> stdy.stdydic = sp; - sfp -> stdy.clstdystep = clstdystep; - sfp -> stdy.clstdyidx = cip; - sfp -> stdy.clstdylen = clstdylen; - sfp -> stdy.clstdydic = clp; - sfp -> refcnt = 1; - sfp -> inode = sbuf.st_ino; - sfp -> fp = fp; - sfp -> fd = fileno(fp); - sfp -> header = hd; + sfp->stdy.stdycnt = stdycnt; + sfp->stdy.stdymax = stdymax; + sfp->stdy.stdydic = sp; + sfp->stdy.clstdystep = clstdystep; + sfp->stdy.clstdyidx = cip; + sfp->stdy.clstdylen = clstdylen; + sfp->stdy.clstdydic = clp; + sfp->refcnt = 1; + sfp->inode = sbuf.st_ino; + sfp->fp = fp; + sfp->fd = fileno(fp); + sfp->header = hd; - sfp -> link = stdylink; - stdylink = sfp; + sfp->link = stdylink; + stdylink = sfp; return sfp; -error5: free((char *)clp); -error4: free((char *)cip); -error3: free((char *)sp); -error2: free((char *)sfp); -error1: fclose(fp); -error0: free((char *)hd); +error5: + free((char*)clp); +error4: + free((char*)cip); +error3: + free((char*)sp); +error2: + free((char*)sfp); +error1: + fclose(fp); +error0: + free((char*)hd); return NULL; } -int -closestdy(StdyFile *sfp) -{ - StdyFile *sf; +int closestdy(StdyFile* sfp) { + StdyFile* sf; - if (--sfp->refcnt > 0) return 0; + if(--sfp->refcnt > 0) return 0; - if (stdylink == sfp) - stdylink = sfp -> link; + if(stdylink == sfp) + stdylink = sfp->link; else { - for (sf = stdylink ; sf ; sf = sf -> link) - if (sf -> link == sfp) { - sf -> link = sfp -> link; + for(sf = stdylink; sf; sf = sf->link) + if(sf->link == sfp) { + sf->link = sfp->link; break; } } - if (sfp -> fp) fclose(sfp ->fp); + if(sfp->fp) fclose(sfp->fp); - free((char *)sfp -> stdy.stdydic); - free((char *)sfp -> stdy.clstdyidx); - free((char *)sfp -> stdy.clstdydic); - free((char *)sfp -> header); - free((char *)sfp); + free((char*)sfp->stdy.stdydic); + free((char*)sfp->stdy.clstdyidx); + free((char*)sfp->stdy.clstdydic); + free((char*)sfp->header); + free((char*)sfp); return 0; } +int putstydic() { + int fd; + u_char* hd; + StdyFile* sf; + long len; + sf = (StdyFile*)stdy_base; + fd = sf->fd; + hd = sf->header; -int -putstydic() -{ - int fd; - u_char *hd; - StdyFile *sf; - long len; + put4byte(hd + STDYNORMCNT, sf->stdy.stdycnt); - sf = (StdyFile *)stdy_base; - fd = sf -> fd; - hd = sf -> header; - - put4byte(hd + STDYNORMCNT, sf -> stdy.stdycnt); - - len = sizeof(STDYIN) * sf -> stdy.stdymax; + len = sizeof(STDYIN) * sf->stdy.stdymax; put4byte(hd + STDYNORMLEN, len); - if (putfile(fd, 0, HEADERLENGTH + COMMENTLENGTH, hd)) return ERROR; + if(putfile(fd, 0, HEADERLENGTH + COMMENTLENGTH, hd)) return ERROR; - return putfile(fd, get4byte(hd + STDYNORMPOS), len, (u_char *)sf -> stdy.stdydic); + return putfile(fd, get4byte(hd + STDYNORMPOS), len, (u_char*)sf->stdy.stdydic); } -int -putcldic() -{ - int fd; - u_char *hd; - StdyFile *sf; +int putcldic() { + int fd; + u_char* hd; + StdyFile* sf; - sf = (StdyFile *)stdy_base; - fd = sf -> fd; - hd = sf -> header; + sf = (StdyFile*)stdy_base; + fd = sf->fd; + hd = sf->header; - if (putfile(fd, get4byte(hd + STDYCLIDXPOS), - get4byte(hd + STDYCLIDXLEN), (u_char *)sf -> stdy.clstdyidx)) /* XXX */ + if(putfile(fd, get4byte(hd + STDYCLIDXPOS), + get4byte(hd + STDYCLIDXLEN), (u_char*)sf->stdy.clstdyidx)) /* XXX */ return ERROR; return putfile(fd, get4byte(hd + STDYCLSEGPOS), - get4byte(hd + STDYCLSEGLEN), sf -> stdy.clstdydic); + get4byte(hd + STDYCLSEGLEN), sf->stdy.clstdydic); } -int -makedict(char *path, int idxlen, int seglen, int segnum) -{ - FILE *fp; - u_char tmp[HEADERLENGTH + COMMENTLENGTH]; - long pos = HEADERLENGTH + COMMENTLENGTH; - int ret = ERROR; - int i; +int makedict(char* path, int idxlen, int seglen, int segnum) { + FILE* fp; + u_char tmp[HEADERLENGTH + COMMENTLENGTH]; + long pos = HEADERLENGTH + COMMENTLENGTH; + int ret = ERROR; + int i; - if (idxlen < MINIDXLEN || seglen < MINSEGLEN || segnum < MINSEGNUM) { - serv_errno = SJ3_IllegalParameter; return ret; + if(idxlen < MINIDXLEN || seglen < MINSEGLEN || segnum < MINSEGNUM) { + serv_errno = SJ3_IllegalParameter; + return ret; } - if (!(fp = fopen(path, "w"))) { - serv_errno = SJ3_CannotCreateFile; return ret; + if(!(fp = fopen(path, "w"))) { + serv_errno = SJ3_CannotCreateFile; + return ret; } memset(tmp, '\0', sizeof(tmp)); put4byte(tmp + VERSIONPOS, DICTVERSION); put4byte(tmp + DICTIDXPOS, pos); put4byte(tmp + DICTIDXLEN, idxlen); - if (fseek(fp, pos, 0) == ERROR) { - serv_errno = SJ3_FileSeekError; goto error; + if(fseek(fp, pos, 0) == ERROR) { + serv_errno = SJ3_FileSeekError; + goto error; } - for (i = 0 ; i < idxlen ; i++) - if (putc(0, fp)) { - serv_errno = SJ3_FileWriteError; goto error; + for(i = 0; i < idxlen; i++) + if(putc(0, fp)) { + serv_errno = SJ3_FileWriteError; + goto error; } pos += idxlen; @@ -623,47 +610,51 @@ makedict(char *path, int idxlen, int seglen, int segnum) put4byte(tmp + DICTSEGLEN, seglen); put4byte(tmp + DICTSEGNUM, 1); put4byte(tmp + DICTSEGMAX, segnum); - if (fseek(fp, pos, 0) == ERROR) { - serv_errno = SJ3_FileSeekError; goto error; + if(fseek(fp, pos, 0) == ERROR) { + serv_errno = SJ3_FileSeekError; + goto error; } - if (putc(0, fp)) { - serv_errno = SJ3_FileWriteError; goto error; + if(putc(0, fp)) { + serv_errno = SJ3_FileWriteError; + goto error; } - for (i = 1 ; i < seglen ; i++) - if (putc(0xff, fp) != 0xff) { - serv_errno = SJ3_FileWriteError; goto error; + for(i = 1; i < seglen; i++) + if(putc(0xff, fp) != 0xff) { + serv_errno = SJ3_FileWriteError; + goto error; } - if (fputfile(fp, 0L, sizeof(tmp), tmp) == SJ3_NormalEnd) + if(fputfile(fp, 0L, sizeof(tmp), tmp) == SJ3_NormalEnd) ret = SJ3_NormalEnd; error: fclose(fp); - if (ret != SJ3_NormalEnd) unlink(path); + if(ret != SJ3_NormalEnd) unlink(path); return ret; } -int -makestdy(char *path, int stynum, int clstep, int cllen) -{ - FILE *fp; - u_char tmp[HEADERLENGTH + COMMENTLENGTH]; - long pos = HEADERLENGTH + COMMENTLENGTH; - int ret = ERROR; - int i, j; +int makestdy(char* path, int stynum, int clstep, int cllen) { + FILE* fp; + u_char tmp[HEADERLENGTH + COMMENTLENGTH]; + long pos = HEADERLENGTH + COMMENTLENGTH; + int ret = ERROR; + int i, j; - if (stynum == 0) stynum = MINSTYNUM; - if (clstep == 0) clstep = MINCLSTEP; - if (cllen == 0) cllen = MINCLLEN; + if(stynum == 0) stynum = MINSTYNUM; + if(clstep == 0) clstep = MINCLSTEP; + if(cllen == 0) cllen = MINCLLEN; - if (stynum < MINSTYNUM || clstep < MINCLSTEP || cllen < MINCLLEN) { - serv_errno = SJ3_IllegalParameter; return ret; + if(stynum < MINSTYNUM || clstep < MINCLSTEP || cllen < MINCLLEN) { + serv_errno = SJ3_IllegalParameter; + return ret; } - if (stynum > MAXSTYNUM || clstep > MAXCLSTEP || cllen > MAXCLLEN) { - serv_errno = SJ3_IllegalParameter; return ret; + if(stynum > MAXSTYNUM || clstep > MAXCLSTEP || cllen > MAXCLLEN) { + serv_errno = SJ3_IllegalParameter; + return ret; } - if (!(fp = fopen(path, "w"))) { - serv_errno = SJ3_CannotCreateFile; return ret; + if(!(fp = fopen(path, "w"))) { + serv_errno = SJ3_CannotCreateFile; + return ret; } memset(tmp, '\0', sizeof(tmp)); put4byte(tmp + VERSIONPOS, STDYVERSION); @@ -672,23 +663,27 @@ makestdy(char *path, int stynum, int clstep, int cllen) put4byte(tmp + STDYCLIDXPOS, pos); put4byte(tmp + STDYCLIDXLEN, j); put4byte(tmp + STDYCLIDXSTEP, clstep); - if (fseek(fp, pos, 0) == ERROR) { - serv_errno = SJ3_FileSeekError; goto error; + if(fseek(fp, pos, 0) == ERROR) { + serv_errno = SJ3_FileSeekError; + goto error; } - for (i = 0 ; i < j ; i++) - if (putc(0, fp)) { - serv_errno = SJ3_FileWriteError; goto error; + for(i = 0; i < j; i++) + if(putc(0, fp)) { + serv_errno = SJ3_FileWriteError; + goto error; } pos += j; put4byte(tmp + STDYCLSEGPOS, pos); put4byte(tmp + STDYCLSEGLEN, cllen); - if (fseek(fp, pos, 0) == ERROR) { - serv_errno = SJ3_FileSeekError; goto error; + if(fseek(fp, pos, 0) == ERROR) { + serv_errno = SJ3_FileSeekError; + goto error; } - for (i = 0 ; i < cllen ; i++) - if (putc(0, fp)) { - serv_errno = SJ3_FileWriteError; goto error; + for(i = 0; i < cllen; i++) + if(putc(0, fp)) { + serv_errno = SJ3_FileWriteError; + goto error; } pos += cllen; @@ -697,77 +692,65 @@ makestdy(char *path, int stynum, int clstep, int cllen) put4byte(tmp + STDYNORMLEN, j); put4byte(tmp + STDYNORMNUM, stynum); put4byte(tmp + STDYNORMCNT, 0); - if (fseek(fp, pos, 0) == ERROR) { - serv_errno = SJ3_FileSeekError; goto error; + if(fseek(fp, pos, 0) == ERROR) { + serv_errno = SJ3_FileSeekError; + goto error; } - for (i = 0 ; i < j ; i++) { - if (putc(0, fp)) { - serv_errno = SJ3_FileWriteError; goto error; + for(i = 0; i < j; i++) { + if(putc(0, fp)) { + serv_errno = SJ3_FileWriteError; + goto error; } } pos += j; - if (fputfile(fp, 0L, sizeof(tmp), tmp) == SJ3_NormalEnd) + if(fputfile(fp, 0L, sizeof(tmp), tmp) == SJ3_NormalEnd) ret = SJ3_NormalEnd; error: fclose(fp); - if (ret != SJ3_NormalEnd) unlink(path); + if(ret != SJ3_NormalEnd) unlink(path); return ret; } -void -sj_closeall() -{ - while (dictlink) closedict(dictlink); - while (stdylink) closestdy(stdylink); +void sj_closeall() { + while(dictlink) closedict(dictlink); + while(stdylink) closestdy(stdylink); } -int -set_dictpass(DictFile *dp, char *pass) -{ - set_passwd(dp -> buffer, pass); +int set_dictpass(DictFile* dp, char* pass) { + set_passwd(dp->buffer, pass); return putfile(dp->fd, 0, HEADERLENGTH + COMMENTLENGTH, dp->buffer); } -int -set_stdypass(char *pass) -{ - StdyFile *sp; +int set_stdypass(char* pass) { + StdyFile* sp; - sp = (StdyFile *)stdy_base; - set_passwd(sp -> header, pass); + sp = (StdyFile*)stdy_base; + set_passwd(sp->header, pass); return putfile(sp->fd, 0, HEADERLENGTH + COMMENTLENGTH, sp->header); } -static -void -set_comment(u_char *buf, char *comment) -{ +static void +set_comment(u_char* buf, char* comment) { strlcpy(buf + HEADERLENGTH, comment, COMMENTLENGTH); } -int -set_dictcmnt(DictFile *dp, char *cmnt) -{ - set_comment(dp -> buffer, cmnt); +int set_dictcmnt(DictFile* dp, char* cmnt) { + set_comment(dp->buffer, cmnt); return putfile(dp->fd, 0, HEADERLENGTH + COMMENTLENGTH, dp->buffer); } -int -set_stdycmnt(char *cmnt) -{ - StdyFile *sp; +int set_stdycmnt(char* cmnt) { + StdyFile* sp; - sp = (StdyFile *)stdy_base; - set_comment(sp -> header, cmnt); + sp = (StdyFile*)stdy_base; + set_comment(sp->header, cmnt); return putfile(sp->fd, 0, HEADERLENGTH + COMMENTLENGTH, sp->header); } -int -get_stdysize(int *stynum, int *clstep, int *cllen) -{ +int get_stdysize(int* stynum, int* clstep, int* cllen) { *stynum = STUDYMAX; *clstep = CLSTUDYSTEP; - *cllen = CLSTUDYLEN; + *cllen = CLSTUDYLEN; return 1; } diff --git a/lib/sj3core/selclrec.c b/lib/sj3core/selclrec.c index ca06c3c..a49865d 100644 --- a/lib/sj3core/selclrec.c +++ b/lib/sj3core/selclrec.c @@ -1,6 +1,6 @@ /* * Copyright (c) 1991-1994 Sony Corporation - * + * * Permission is hereby granted, free of charge, to any person obtaining * a copy of this software and associated documentation files (the * "Software"), to deal in the Software without restriction, including @@ -8,10 +8,10 @@ * distribute, sublicense, and/or sell copies of the Software, and to * permit persons to whom the Software is furnished to do so, subject to * the following conditions: - * + * * The above copyright notice and this permission notice shall be * included in all copies or substantial portions of the Software. - * + * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. @@ -19,7 +19,7 @@ * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR * THE USE OR OTHER DEALINGS IN THE SOFTWARE. - * + * * Except as contained in this notice, the name of Sony Corporation * shall not be used in advertising or otherwise to promote the sale, use * or other dealings in this Software without prior written authorization @@ -28,77 +28,77 @@ */ /* - * $SonyRCSfile: selclrec.c,v $ - * $SonyRevision: 1.1 $ + * $SonyRCSfile: selclrec.c,v $ + * $SonyRevision: 1.1 $ * $SonyDate: 1994/06/03 08:02:14 $ */ #include "sj_kcnv.h" #include "sj_kanakan.h" -void -selclrec() -{ - int len; - CLREC *rec; +void selclrec() { + int len; + CLREC* rec; nextcllen = 0; - len = selcl -> cllen; + len = selcl->cllen; rec = clt1st; - while (rec) { - if (len >= (unsigned int) rec -> cllen) break; - rec = rec -> clsort; + while(rec) { + if(len >= (unsigned int)rec->cllen) break; + rec = rec->clsort; } - while (rec) { - if (len > (unsigned int) rec -> cllen) return; - if (rec -> jnode -> class == C_BUNSETU) break; - rec = rec -> clsort; + while(rec) { + if(len > (unsigned int)rec->cllen) return; + if(rec->jnode->class == C_BUNSETU) break; + rec = rec->clsort; } - if (!rec) return; + if(!rec) return; len = ClYomi1Len(CLSTUDYDICT + rec->jnode->jofsst); - nextcllen = rec -> cllen - len; + nextcllen = rec->cllen - len; - while (rec) { - if (len == rec -> cllen) { + while(rec) { + if(len == rec->cllen) { selcl = rec; break; } - else if (len > (unsigned int) rec -> cllen) { + else if(len > (unsigned int)rec->cllen) { rec = NULL; break; } - rec = rec -> clsort; + rec = rec->clsort; } - if (rec == NULL) { - int klen; - u_char ch; + if(rec == NULL) { + int klen; + u_char ch; free_clall(clt1st); free_jall(jrt1st); - klen = cnvlen; - cnvlen = len; - ch = *(cnvstart + len); + klen = cnvlen; + cnvlen = len; + ch = *(cnvstart + len); *(cnvstart + len) = 0; mkjiritu(DO_IKKATU); mkbunsetu(); - if (!maxclptr) wakachi(); + if(!maxclptr) wakachi(); jrt1st = maxjptr; selcl = clt1st = maxclptr; - cnvlen = klen; + cnvlen = klen; *(cnvstart + len) = ch; } - free_clall(clt2nd); clt2nd = NULL; - free_jall(jrt2nd); jrt2nd = NULL; + free_clall(clt2nd); + clt2nd = NULL; + free_jall(jrt2nd); + jrt2nd = NULL; } diff --git a/lib/sj3core/selsuuji.c b/lib/sj3core/selsuuji.c index 72f913f..c8a6f2e 100644 --- a/lib/sj3core/selsuuji.c +++ b/lib/sj3core/selsuuji.c @@ -1,6 +1,6 @@ /* * Copyright (c) 1991-1994 Sony Corporation - * + * * Permission is hereby granted, free of charge, to any person obtaining * a copy of this software and associated documentation files (the * "Software"), to deal in the Software without restriction, including @@ -8,10 +8,10 @@ * distribute, sublicense, and/or sell copies of the Software, and to * permit persons to whom the Software is furnished to do so, subject to * the following conditions: - * + * * The above copyright notice and this permission notice shall be * included in all copies or substantial portions of the Software. - * + * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. @@ -19,7 +19,7 @@ * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR * THE USE OR OTHER DEALINGS IN THE SOFTWARE. - * + * * Except as contained in this notice, the name of Sony Corporation * shall not be used in advertising or otherwise to promote the sale, use * or other dealings in this Software without prior written authorization @@ -28,8 +28,8 @@ */ /* - * $SonyRCSfile: selsuuji.c,v $ - * $SonyRevision: 1.1 $ + * $SonyRCSfile: selsuuji.c,v $ + * $SonyRevision: 1.1 $ * $SonyDate: 1994/06/03 08:02:15 $ */ @@ -40,84 +40,72 @@ #include "sj_kanakan.h" -static u_short selsjAR[] = { - SELARB0, - SELARBCMA | JFLAG_NK4 | JFLAG_NN0, - SELKANSJYM | JFLAG_NN0, - SELKANSJYM2 | SELNUM1_23_10_1 | JFLAG_NN0, - SELKANSJ0 | JFLAG_NK2, - SELNUMTERM -}; +static u_short selsjAR[] = { + SELARB0, + SELARBCMA | JFLAG_NK4 | JFLAG_NN0, + SELKANSJYM | JFLAG_NN0, + SELKANSJYM2 | SELNUM1_23_10_1 | JFLAG_NN0, + SELKANSJ0 | JFLAG_NK2, + SELNUMTERM}; -static u_short selsjARCM[] = { - SELARBCMA | JFLAG_NK4 | JFLAG_NN0, - SELARB0, - SELKANSJYM | JFLAG_NN0, - SELKANSJYM2 | SELNUM1_23_10_1 | JFLAG_NN0, - SELKANSJ0 | JFLAG_NK2, - SELNUMTERM -}; +static u_short selsjARCM[] = { + SELARBCMA | JFLAG_NK4 | JFLAG_NN0, + SELARB0, + SELKANSJYM | JFLAG_NN0, + SELKANSJYM2 | SELNUM1_23_10_1 | JFLAG_NN0, + SELKANSJ0 | JFLAG_NK2, + SELNUMTERM}; -static u_short selsjKAZU[] = { - SELKANSJYM | JFLAG_NN0, - SELKANSJYM2 | SELNUM1_23_10_1 | JFLAG_NN0, - SELKANSJ0 | JFLAG_NK2, - SELARB0, - SELARBCMA | JFLAG_NK4 | JFLAG_NN0, - SELNUMTERM -}; +static u_short selsjKAZU[] = { + SELKANSJYM | JFLAG_NN0, + SELKANSJYM2 | SELNUM1_23_10_1 | JFLAG_NN0, + SELKANSJ0 | JFLAG_NK2, + SELARB0, + SELARBCMA | JFLAG_NK4 | JFLAG_NN0, + SELNUMTERM}; -static u_short selsjSUUJI[] = { - SELKANSJ0, - SELARB0, - SELNUMTERM -}; +static u_short selsjSUUJI[] = { + SELKANSJ0, + SELARB0, + SELNUMTERM}; -static u_short selsjNANSUU[] = { - SELKANSJYM, - SELNUMTERM -}; +static u_short selsjNANSUU[] = { + SELKANSJYM, + SELNUMTERM}; -static u_short selsjAR17[] = { - SELLONGARB, - SELLONGARBCMA, - SELNUMTERM -}; +static u_short selsjAR17[] = { + SELLONGARB, + SELLONGARBCMA, + SELNUMTERM}; -static u_short selsjAR17CM[] = { - SELLONGARBCMA, - SELLONGARB, - SELNUMTERM -}; +static u_short selsjAR17CM[] = { + SELLONGARBCMA, + SELLONGARB, + SELNUMTERM}; -static u_short selsjAR17SJ[] = { - SELLONGARB, - SELLONGSJ, - SELNUMTERM -}; +static u_short selsjAR17SJ[] = { + SELLONGARB, + SELLONGSJ, + SELNUMTERM}; -static u_short selsjKANKURA[] = { - SELKANSJKR, - SELARBKR, - SELNUMTERM -}; +static u_short selsjKANKURA[] = { + SELKANSJKR, + SELARBKR, + SELNUMTERM}; -static u_short selsjARAKURA[] = { - SELARBKR, - SELKANSJKR | JFLAG_NSN, - SELNUMTERM -}; +static u_short selsjARAKURA[] = { + SELARBKR, + SELKANSJKR | JFLAG_NSN, + SELNUMTERM}; - -u_short *selsjadrs[] = { - selsjAR, - selsjARCM, - selsjKAZU, - selsjSUUJI, - selsjNANSUU, - selsjKANKURA, - selsjARAKURA, - selsjAR17, - selsjAR17CM, - selsjAR17SJ -}; +u_short* selsjadrs[] = { + selsjAR, + selsjARCM, + selsjKAZU, + selsjSUUJI, + selsjNANSUU, + selsjKANKURA, + selsjARAKURA, + selsjAR17, + selsjAR17CM, + selsjAR17SJ}; diff --git a/lib/sj3core/setconj.c b/lib/sj3core/setconj.c index f4154dd..de3b15e 100644 --- a/lib/sj3core/setconj.c +++ b/lib/sj3core/setconj.c @@ -1,6 +1,6 @@ /* * Copyright (c) 1991-1994 Sony Corporation - * + * * Permission is hereby granted, free of charge, to any person obtaining * a copy of this software and associated documentation files (the * "Software"), to deal in the Software without restriction, including @@ -8,10 +8,10 @@ * distribute, sublicense, and/or sell copies of the Software, and to * permit persons to whom the Software is furnished to do so, subject to * the following conditions: - * + * * The above copyright notice and this permission notice shall be * included in all copies or substantial portions of the Software. - * + * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. @@ -19,7 +19,7 @@ * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR * THE USE OR OTHER DEALINGS IN THE SOFTWARE. - * + * * Except as contained in this notice, the name of Sony Corporation * shall not be used in advertising or otherwise to promote the sale, use * or other dealings in this Software without prior written authorization @@ -28,13 +28,11 @@ */ /* - * $SonyRCSfile: setconj.c,v $ - * $SonyRevision: 1.1 $ + * $SonyRCSfile: setconj.c,v $ + * $SonyRevision: 1.1 $ * $SonyDate: 1994/06/03 08:02:16 $ */ - - #include "sj_kcnv.h" #include "sj_right.h" #include "sj_hinsi.h" @@ -43,32 +41,31 @@ #include "sj_kanakan.h" static int -cnjstrcmp(u_char *yptr, u_char *cnjp, int *saml) -{ - int asklen; - int nkrlen; +cnjstrcmp(u_char* yptr, u_char* cnjp, int* saml) { + int asklen; + int nkrlen; asklen = CnjAskLen(cnjp); - if (*saml < asklen) return CONT; + if(*saml < asklen) return CONT; - if (*saml > asklen) return OVER; + if(*saml > asklen) return OVER; nkrlen = CnjNkrLen(cnjp); yptr += asklen; - cnjp ++; + cnjp++; - while (nkrlen--) { - if (*yptr > *cnjp) + while(nkrlen--) { + if(*yptr > *cnjp) return CONT; - else if (*yptr < *cnjp) { - if (!*yptr) return PARTLY; + else if(*yptr < *cnjp) { + if(!*yptr) return PARTLY; return OVER; } - else{ + else { yptr++; cnjp++; (*saml)++; @@ -79,22 +76,21 @@ cnjstrcmp(u_char *yptr, u_char *cnjp, int *saml) } static TypeCnct -cnvrow(JREC *rec, TypeCnct row) -{ - TypeGram hinsi; - int stt; +cnvrow(JREC* rec, TypeCnct row) { + TypeGram hinsi; + int stt; - hinsi = rec -> hinsi; + hinsi = rec->hinsi; - if ((stt = rec -> sttofs) == SETTOU_O) { + if((stt = rec->sttofs) == SETTOU_O) { - if (R_RENYOU1 <= row && row <= R_SA5RENYOU1) + if(R_RENYOU1 <= row && row <= R_SA5RENYOU1) row += 6; - else if (R_RENYOU3 <= row && row <= R_SA5RENYOU3) + else if(R_RENYOU3 <= row && row <= R_SA5RENYOU3) row += 3; - else if((hinsi>=KEIYOUSI_1 && hinsi<=KE_DOUSI_9)|| + else if((hinsi >= KEIYOUSI_1 && hinsi <= KE_DOUSI_9) || (hinsi == MEISI_5) || (hinsi == MEISI_9)) ; @@ -102,52 +98,50 @@ cnvrow(JREC *rec, TypeCnct row) row = 0; } - else if (stt == SETTOU_GO) { + else if(stt == SETTOU_GO) { - if (hinsi == MEISI_7 && row == R_SMEISI1) + if(hinsi == MEISI_7 && row == R_SMEISI1) row++; } return row; } -int -setconj(TypeGram hinsi, JREC *jrec, CREC *crec) -{ - u_char *yptr; - int cmp; - TypeCnct right; - int saml; - int ofslen; - int count = 0; - u_char *cnj; +int setconj(TypeGram hinsi, JREC* jrec, CREC* crec) { + u_char* yptr; + int cmp; + TypeCnct right; + int saml; + int ofslen; + int count = 0; + u_char* cnj; - if (cnj = Conjadr(hinsi)) { + if(cnj = Conjadr(hinsi)) { saml = ofslen = 0; - yptr = cnvstart + jrec -> jlen; + yptr = cnvstart + jrec->jlen; - if ((*cnj) & TYOUONFLG) { - while (*yptr == _TYOUON) { + if((*cnj) & TYOUONFLG) { + while(*yptr == _TYOUON) { yptr++; ofslen++; } } - for ( ; *cnj != CNJEND ; cnj += CnjRecLen(cnj)) { + for(; *cnj != CNJEND; cnj += CnjRecLen(cnj)) { cmp = cnjstrcmp(yptr, cnj, &saml); - if (cmp == OVER) break; + if(cmp == OVER) break; - if (cmp == PARTLY) break; + if(cmp == PARTLY) break; - if (cmp != MATCH) continue; + if(cmp != MATCH) continue; - if (isdpnd(*(yptr + saml))) continue; + if(isdpnd(*(yptr + saml))) continue; - if (right = cnvrow(jrec, (TypeCnct)CnjRight(cnj))) { - crec -> len = (u_char)(ofslen + saml); - crec -> right = right; + if(right = cnvrow(jrec, (TypeCnct)CnjRight(cnj))) { + crec->len = (u_char)(ofslen + saml); + crec->right = right; count++; crec++; } @@ -156,4 +150,3 @@ setconj(TypeGram hinsi, JREC *jrec, CREC *crec) return count; } - diff --git a/lib/sj3core/setjrec.c b/lib/sj3core/setjrec.c index f27308d..82aab33 100644 --- a/lib/sj3core/setjrec.c +++ b/lib/sj3core/setjrec.c @@ -1,6 +1,6 @@ /* * Copyright (c) 1991-1994 Sony Corporation - * + * * Permission is hereby granted, free of charge, to any person obtaining * a copy of this software and associated documentation files (the * "Software"), to deal in the Software without restriction, including @@ -8,10 +8,10 @@ * distribute, sublicense, and/or sell copies of the Software, and to * permit persons to whom the Software is furnished to do so, subject to * the following conditions: - * + * * The above copyright notice and this permission notice shall be * included in all copies or substantial portions of the Software. - * + * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. @@ -19,7 +19,7 @@ * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR * THE USE OR OTHER DEALINGS IN THE SOFTWARE. - * + * * Except as contained in this notice, the name of Sony Corporation * shall not be used in advertising or otherwise to promote the sale, use * or other dealings in this Software without prior written authorization @@ -28,8 +28,8 @@ */ /* - * $SonyRCSfile: setjrec.c,v $ - * $SonyRevision: 1.1 $ + * $SonyRCSfile: setjrec.c,v $ + * $SonyRevision: 1.1 $ * $SonyDate: 1994/06/03 08:02:17 $ */ @@ -39,127 +39,122 @@ #include "sj_kanakan.h" -int -setj_atrb(u_char *p) -{ +int setj_atrb(u_char* p) { return 2; } -int -setj_ofs(u_char *p) -{ - int contf = TRUE; +int setj_ofs(u_char* p) { + int contf = TRUE; - p = dicbuf + ((*p & KANJICODEMASK) << 8) + *(p + 1); + p = dicbuf + ((*p & KANJICODEMASK) << 8) + *(p + 1); do { - if (p[codesize(*p)] == KANJISTREND) contf = FALSE; + if(p[codesize(*p)] == KANJISTREND) contf = FALSE; switch(*p & KANJIMODEMASK) { - case ZENHIRAASSYUKU: - p += setj_norm1(p); break; + case ZENHIRAASSYUKU: + p += setj_norm1(p); + break; - case ZENKATAASSYUKU: - p += setj_norm1(p); break; + case ZENKATAASSYUKU: + p += setj_norm1(p); + break; - case OFFSETASSYUKU: - p += setj_ofs(p); break; + case OFFSETASSYUKU: + p += setj_ofs(p); + break; - case AIATTRIBUTE: - p += setj_atrb(p); break; + case AIATTRIBUTE: + p += setj_atrb(p); + break; - case LEADINGHANKAKU: - p += setj_norm2(p); break; + case LEADINGHANKAKU: + p += setj_norm2(p); + break; - case KANJIASSYUKU: - p += setj_knj(p); break; + case KANJIASSYUKU: + p += setj_knj(p); + break; - case KANJISTREND: - contf = FALSE; break; + case KANJISTREND: + contf = FALSE; + break; - default: + default: p += setj_norm2(p); } - } while (contf); + } while(contf); return 2; } -int -setj_knj(u_char *p) -{ - int contf = TRUE; +int setj_knj(u_char* p) { + int contf = TRUE; p = askknj[*p & KNJASSYUKUMASK]; do { - if (p[codesize(*p)]== KANJISTREND) contf = FALSE; + if(p[codesize(*p)] == KANJISTREND) contf = FALSE; switch(*p & KANJIMODEMASK) { - case ZENHIRAASSYUKU: - p += setj_norm1(p); break; + case ZENHIRAASSYUKU: + p += setj_norm1(p); + break; - case ZENKATAASSYUKU: - p += setj_norm1(p); break; + case ZENKATAASSYUKU: + p += setj_norm1(p); + break; - case OFFSETASSYUKU: - p += setj_ofs(p); break; + case OFFSETASSYUKU: + p += setj_ofs(p); + break; - case AIATTRIBUTE: - p += setj_atrb(p); break; + case AIATTRIBUTE: + p += setj_atrb(p); + break; - case LEADINGHANKAKU: - p += setj_norm2(p); break; + case LEADINGHANKAKU: + p += setj_norm2(p); + break; - case KANJIASSYUKU: - p += setj_knj(p); break; + case KANJIASSYUKU: + p += setj_knj(p); + break; - case KANJISTREND: - contf = FALSE; break; + case KANJISTREND: + contf = FALSE; + break; - default: + default: p += setj_norm2(p); } - } while (contf); + } while(contf); return 1; } - - -int -setj_norm1(u_char *p) -{ +int setj_norm1(u_char* p) { return 1; } - - -int -setj_norm2(u_char *p) -{ +int setj_norm2(u_char* p) { return 2; } -int -setj_norm3(u_char *p) -{ +int setj_norm3(u_char* p) { return 3; } - - static u_char -chkhead(TypeGram gram) -{ - if (!headcode) return TRUE; +chkhead(TypeGram gram) { + if(!headcode) return TRUE; - if (headcode == SETTOU_DAI) { + if(headcode == SETTOU_DAI) { - if (gram == SUUSI) return TRUE; + if(gram == SUUSI) return TRUE; } else { gram--; - if ((Scncttbl(headcode-1, gram >> 3) << (gram & 0x07)) & 0x80) { + if((Scncttbl(headcode - 1, gram >> 3) << (gram & 0x07)) & 0x80) { return TRUE; } } @@ -167,146 +162,148 @@ chkhead(TypeGram gram) return FALSE; } - - -void -setjrec(u_char *tagp, int mode) -{ - TypeGram gram; - u_char *ptr; - u_char *endp; - u_char *tmp; - JREC *rec; - int plen; - int nlen; - int len; +void setjrec(u_char* tagp, int mode) { + TypeGram gram; + u_char* ptr; + u_char* endp; + u_char* tmp; + JREC* rec; + int plen; + int nlen; + int len; plen = getplen(tagp); nlen = getnlen(tagp); len = plen + nlen; - if (headcode) len += headlen; + if(headcode) len += headlen; - ptr = tagp + DOUONBLKSIZENUMBER + nlen; + ptr = tagp + DOUONBLKSIZENUMBER + nlen; endp = tagp + getsize(tagp); - for ( ; ptr < endp ; ptr = tmp + 1) { - for (tmp = ptr + 1; *tmp != HINSIBLKTERM ; ) { + for(; ptr < endp; ptr = tmp + 1) { + for(tmp = ptr + 1; *tmp != HINSIBLKTERM;) { switch(*tmp & KANJIMODEMASK) { - case ZENHIRAASSYUKU: - tmp += setj_norm1(tmp); break; + case ZENHIRAASSYUKU: + tmp += setj_norm1(tmp); + break; - case ZENKATAASSYUKU: - tmp += setj_norm1(tmp); break; + case ZENKATAASSYUKU: + tmp += setj_norm1(tmp); + break; - case OFFSETASSYUKU: - tmp += setj_ofs(tmp); break; + case OFFSETASSYUKU: + tmp += setj_ofs(tmp); + break; - case AIATTRIBUTE: - tmp += setj_atrb(tmp); break; + case AIATTRIBUTE: + tmp += setj_atrb(tmp); + break; - case LEADINGHANKAKU: - tmp += setj_norm2(tmp); break; + case LEADINGHANKAKU: + tmp += setj_norm2(tmp); + break; - case KANJIASSYUKU: - tmp += setj_knj(tmp); break; + case KANJIASSYUKU: + tmp += setj_knj(tmp); + break; - case KANJISTREND: - tmp++; break; + case KANJISTREND: + tmp++; + break; - default: + default: tmp += setj_norm2(tmp); } } - if ((gram = *ptr) == IKKATU && !(mode & DO_IKKATU)) continue; + if((gram = *ptr) == IKKATU && !(mode & DO_IKKATU)) continue; - if (!chkhead(gram)) continue; + if(!chkhead(gram)) continue; - if (!(rec = argjrec(len, (JREC *)NULL))) continue; + if(!(rec = argjrec(len, (JREC*)NULL))) continue; - rec -> jseg = prevseg; - rec -> jofsst = ptr - dicbuf; - rec -> jofsed = tmp - dicbuf; - rec -> class = C_DICT; - rec -> dicid = curdict->dicid; - rec -> hinsi = gram; - rec -> sttofs = headcode; + rec->jseg = prevseg; + rec->jofsst = ptr - dicbuf; + rec->jofsed = tmp - dicbuf; + rec->class = C_DICT; + rec->dicid = curdict->dicid; + rec->hinsi = gram; + rec->sttofs = headcode; } } - - -void -setnumrec(u_char *tagp, JREC *rec, TypeGram gram) -{ - u_char *ptr; - u_char *endp; - u_char *tmp; - int plen, nlen, len; - JREC *jrec; +void setnumrec(u_char* tagp, JREC* rec, TypeGram gram) { + u_char* ptr; + u_char* endp; + u_char* tmp; + int plen, nlen, len; + JREC* jrec; plen = getplen(tagp); nlen = getnlen(tagp); len = plen + nlen; - ptr = tagp + DOUONBLKSIZENUMBER + nlen; + ptr = tagp + DOUONBLKSIZENUMBER + nlen; endp = tagp + getsize(tagp); - for ( ; ptr < endp ; ptr = tmp + 1) { - for (tmp = ptr + 1; *tmp != HINSIBLKTERM ; ) { + for(; ptr < endp; ptr = tmp + 1) { + for(tmp = ptr + 1; *tmp != HINSIBLKTERM;) { switch(*tmp & KANJIMODEMASK) { - case ZENHIRAASSYUKU: - tmp += setj_norm1(tmp); break; + case ZENHIRAASSYUKU: + tmp += setj_norm1(tmp); + break; - case ZENKATAASSYUKU: - tmp += setj_norm1(tmp); break; + case ZENKATAASSYUKU: + tmp += setj_norm1(tmp); + break; - case OFFSETASSYUKU: - tmp += setj_ofs(tmp); break; + case OFFSETASSYUKU: + tmp += setj_ofs(tmp); + break; - case AIATTRIBUTE: - tmp += setj_atrb(tmp); break; + case AIATTRIBUTE: + tmp += setj_atrb(tmp); + break; - case LEADINGHANKAKU: - tmp += setj_norm2(tmp); break; + case LEADINGHANKAKU: + tmp += setj_norm2(tmp); + break; - case KANJIASSYUKU: - tmp += setj_knj(tmp); break; + case KANJIASSYUKU: + tmp += setj_knj(tmp); + break; - case KANJISTREND: - tmp++; break; + case KANJISTREND: + tmp++; + break; - default: + default: tmp += setj_norm2(tmp); } } - if (gram != *ptr) continue; + if(gram != *ptr) continue; - if (!(jrec = argjrec((int)(rec -> jlen + len), rec))) continue; + if(!(jrec = argjrec((int)(rec->jlen + len), rec))) continue; - jrec -> jseg = prevseg; - jrec -> jofsst = ptr - dicbuf; - jrec -> jofsed = tmp - dicbuf; - jrec -> dicid = curdict->dicid; + jrec->jseg = prevseg; + jrec->jofsst = ptr - dicbuf; + jrec->jofsed = tmp - dicbuf; + jrec->dicid = curdict->dicid; } } +void setcrec(u_char* tagp) { + JREC* rec; + if(!(rec = argjrec((int)ClYomiLen(tagp), (JREC*)NULL))) return; -void -setcrec(u_char *tagp) -{ - JREC *rec; - - if (!(rec = argjrec((int)ClYomiLen(tagp), (JREC *)NULL))) return; - - rec -> jofsst = tagp - CLSTUDYDICT; - rec -> class = C_BUNSETU; - rec -> hinsi = ClGramCode(tagp); + rec->jofsst = tagp - CLSTUDYDICT; + rec->class = C_BUNSETU; + rec->hinsi = ClGramCode(tagp); } diff --git a/lib/sj3core/setkouho.c b/lib/sj3core/setkouho.c index bda9799..500ac5e 100644 --- a/lib/sj3core/setkouho.c +++ b/lib/sj3core/setkouho.c @@ -1,6 +1,6 @@ /* * Copyright (c) 1991-1994 Sony Corporation - * + * * Permission is hereby granted, free of charge, to any person obtaining * a copy of this software and associated documentation files (the * "Software"), to deal in the Software without restriction, including @@ -8,10 +8,10 @@ * distribute, sublicense, and/or sell copies of the Software, and to * permit persons to whom the Software is furnished to do so, subject to * the following conditions: - * + * * The above copyright notice and this permission notice shall be * included in all copies or substantial portions of the Software. - * + * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. @@ -19,7 +19,7 @@ * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR * THE USE OR OTHER DEALINGS IN THE SOFTWARE. - * + * * Except as contained in this notice, the name of Sony Corporation * shall not be used in advertising or otherwise to promote the sale, use * or other dealings in this Software without prior written authorization @@ -28,8 +28,8 @@ */ /* - * $SonyRCSfile: setkouho.c,v $ - * $SonyRevision: 1.1 $ + * $SonyRCSfile: setkouho.c,v $ + * $SonyRevision: 1.1 $ * $SonyDate: 1994/06/03 08:02:20 $ */ @@ -39,96 +39,94 @@ #include "sj_kanakan.h" -static int hiraknj(); +static int hiraknj(); -void -setkouho(CLREC *clrec, TypeDicOfs offs, int mode) -{ - JREC *jrec; - KHREC *kptr; - u_char *fptr; +void setkouho(CLREC* clrec, TypeDicOfs offs, int mode) { + JREC* jrec; + KHREC* kptr; + u_char* fptr; int flg; int i; - if (khcount >= MAXKOUHONUMBER) return; + if(khcount >= MAXKOUHONUMBER) return; - jrec = clrec -> jnode; + jrec = clrec->jnode; kptr = &kouhotbl[khcount++]; - if (mode && !offs) nkhcount++; + if(mode && !offs) nkhcount++; - kptr -> clrec = clrec; - kptr -> offs = offs; - kptr -> rank = 0; - kptr -> styno = 0; - kptr -> mode = (u_char)mode; + kptr->clrec = clrec; + kptr->offs = offs; + kptr->rank = 0; + kptr->styno = 0; + kptr->mode = (u_char)mode; - if (jrec -> flags & JFLAG_KA) { - kptr -> ka_fg = 1; - kptr -> ka_kj = 1; - flg = 1; - } - else if (clrec -> fzk_ka) { - kptr -> ka_fg = 1; - kptr -> ka_kj = 0; - flg = 2; - } - else { - kptr -> ka_fg = 0; - kptr -> ka_kj = 0; - flg = 0; + if(jrec->flags & JFLAG_KA) { + kptr->ka_fg = 1; + kptr->ka_kj = 1; + flg = 1; + } else if(clrec->fzk_ka) { + kptr->ka_fg = 1; + kptr->ka_kj = 0; + flg = 2; + } else { + kptr->ka_fg = 0; + kptr->ka_kj = 0; + flg = 0; } - kptr -> sttfg = kptr -> sttkj = 0; + kptr->sttfg = kptr->sttkj = 0; - if (!(fptr = Settou_ptr(jrec -> sttofs))) return; + if(!(fptr = Settou_ptr(jrec->sttofs))) return; - if (!SttHiraKnj(fptr)) return; + if(!SttHiraKnj(fptr)) return; - kptr -> sttfg = 1; - kptr -> sttkj = 0; + kptr->sttfg = 1; + kptr->sttkj = 0; i = hiraknj(dicbuf + offs); - if (offs > 1 && (i == 2 || i == 3)) return; + if(offs > 1 && (i == 2 || i == 3)) return; - if (khcount >= MAXKOUHONUMBER) return; + if(khcount >= MAXKOUHONUMBER) return; kptr++; khcount++; - if (mode && !offs) nkhcount++; + if(mode && !offs) nkhcount++; - kptr -> clrec = clrec; - kptr -> offs = offs; - kptr -> rank = 0; - kptr -> styno = 0; - kptr -> mode = (u_char)mode; + kptr->clrec = clrec; + kptr->offs = offs; + kptr->rank = 0; + kptr->styno = 0; + kptr->mode = (u_char)mode; - kptr -> sttfg = 1; - kptr -> sttkj = 1; + kptr->sttfg = 1; + kptr->sttkj = 1; - switch (flg) { - case 1: kptr -> ka_fg = kptr -> ka_kj = 1; break; - case 2: kptr -> ka_fg = 1; kptr -> ka_kj = 0; break; - default: kptr -> ka_fg = kptr -> ka_kj = 0; break; + switch(flg) { + case 1: + kptr->ka_fg = kptr->ka_kj = 1; + break; + case 2: + kptr->ka_fg = 1; + kptr->ka_kj = 0; + break; + default: + kptr->ka_fg = kptr->ka_kj = 0; + break; } } +void ph_setkouho(CLREC* clrec, TypeDicOfs offs, STDYIN* sptr) { + JREC* jrec; + u_char* p; - -void -ph_setkouho(CLREC *clrec, TypeDicOfs offs, STDYIN *sptr) -{ - JREC *jrec; - u_char *p; - - if (sptr) { - stdytop = sptr; - kouhotbl[0].styno = sptr -> styno; - kouhotbl[0].sttkj = sptr -> sttkj; - } - else { + if(sptr) { + stdytop = sptr; + kouhotbl[0].styno = sptr->styno; + kouhotbl[0].sttkj = sptr->sttkj; + } else { kouhotbl[0].styno = -1; kouhotbl[0].sttkj = 0; } @@ -137,139 +135,112 @@ ph_setkouho(CLREC *clrec, TypeDicOfs offs, STDYIN *sptr) kouhotbl[0].offs = offs; kouhotbl[0].rank = 0; - kouhotbl[0].mode = sel_sjmode(jrec = clrec -> jnode); + kouhotbl[0].mode = sel_sjmode(jrec = clrec->jnode); - kouhotbl[0].sttfg = (u_char) - ((p = Settou_ptr(jrec->sttofs)) ? (SttHiraKnj(p)?1:0) : 0); + kouhotbl[0].sttfg = (u_char)((p = Settou_ptr(jrec->sttofs)) ? (SttHiraKnj(p) ? 1 : 0) : 0); - if (jrec -> flags & JFLAG_KA) { + if(jrec->flags & JFLAG_KA) { kouhotbl[0].ka_fg = - kouhotbl[0].ka_kj = 1; - } - else if (clrec -> fzk_ka) { + kouhotbl[0].ka_kj = 1; + } else if(clrec->fzk_ka) { kouhotbl[0].ka_fg = 1; kouhotbl[0].ka_kj = 0; - } - else { + } else { kouhotbl[0].ka_fg = - kouhotbl[0].ka_kj = 0; + kouhotbl[0].ka_kj = 0; } khcount = 1; } - - static int -hiraknj(u_char *p) -{ - char flg = TRUE; - int i; - int result; +hiraknj(u_char* p) { + char flg = TRUE; + int i; + int result; do { - if (p[codesize(*p)] == KANJISTREND) flg = FALSE; + if(p[codesize(*p)] == KANJISTREND) flg = FALSE; switch(*p & KANJIMODEMASK) { - case ZENHIRAASSYUKU: - result = hiraknj_hask(p, &i); break; + case ZENHIRAASSYUKU: + result = hiraknj_hask(p, &i); + break; - case ZENKATAASSYUKU: - result = hiraknj_kask(p, &i); break; + case ZENKATAASSYUKU: + result = hiraknj_kask(p, &i); + break; - case OFFSETASSYUKU: - result = hiraknj_ofs(p, &i); break; + case OFFSETASSYUKU: + result = hiraknj_ofs(p, &i); + break; - case AIATTRIBUTE: - result = hiraknj_atrb(p, &i); break; + case AIATTRIBUTE: + result = hiraknj_atrb(p, &i); + break; - case LEADINGHANKAKU: - result = hiraknj_norm(p, &i); break; + case LEADINGHANKAKU: + result = hiraknj_norm(p, &i); + break; - case KANJIASSYUKU: - result = hiraknj_knj(p, &i); break; + case KANJIASSYUKU: + result = hiraknj_knj(p, &i); + break; - default: + default: result = hiraknj_hira(p, &i); } - if (result) return result; + if(result) return result; p += i; - } while (flg); + } while(flg); return 0; } - - -int -hiraknj_atrb(u_char *p, int *len) -{ +int hiraknj_atrb(u_char* p, int* len) { *len = 2; return 0; } - - -int -hiraknj_ofs(u_char *p, int *len) -{ +int hiraknj_ofs(u_char* p, int* len) { *len = 2; - return hiraknj(dicbuf + ((*p & KANJICODEMASK) << 8) + *(p + 1)); + return hiraknj(dicbuf + ((*p & KANJICODEMASK) << 8) + *(p + 1)); } - - -int -hiraknj_knj(u_char *p, int *len) -{ +int hiraknj_knj(u_char* p, int* len) { *len = 1; return hiraknj(askknj[*p & KNJASSYUKUMASK]); } - - -int -hiraknj_hask(u_char *p, int *len) -{ +int hiraknj_hask(u_char* p, int* len) { *len = 1; return 2; } - - -int -hiraknj_kask(u_char *p, int *len) -{ +int hiraknj_kask(u_char* p, int* len) { *len = 1; return 3; } - - -int hiraknj_norm(u_char *p, int *len) -{ +int hiraknj_norm(u_char* p, int* len) { *len = codesize(*p); return 1; } - - -int -hiraknj_hira(u_char *p, int *len) -{ - u_char ch; +int hiraknj_hira(u_char* p, int* len) { + u_char ch; *len = codesize(*p); - ch = *(p + 1); + ch = *(p + 1); - switch (*p) { + switch(*p) { case 0x24: - if (ch >= 0x21 && ch <= 0x73) return 2; + if(ch >= 0x21 && ch <= 0x73) return 2; return 1; case 0x25: - if (ch >= 0x21 && ch <= 0x76) return 3; + if(ch >= 0x21 && ch <= 0x76) return 3; return 1; default: diff --git a/lib/sj3core/setubi.c b/lib/sj3core/setubi.c index 202ed63..47a4d7d 100644 --- a/lib/sj3core/setubi.c +++ b/lib/sj3core/setubi.c @@ -1,6 +1,6 @@ /* * Copyright (c) 1991-1994 Sony Corporation - * + * * Permission is hereby granted, free of charge, to any person obtaining * a copy of this software and associated documentation files (the * "Software"), to deal in the Software without restriction, including @@ -8,10 +8,10 @@ * distribute, sublicense, and/or sell copies of the Software, and to * permit persons to whom the Software is furnished to do so, subject to * the following conditions: - * + * * The above copyright notice and this permission notice shall be * included in all copies or substantial portions of the Software. - * + * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. @@ -19,7 +19,7 @@ * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR * THE USE OR OTHER DEALINGS IN THE SOFTWARE. - * + * * Except as contained in this notice, the name of Sony Corporation * shall not be used in advertising or otherwise to promote the sale, use * or other dealings in this Software without prior written authorization @@ -28,56 +28,49 @@ */ /* - * $SonyRCSfile: setubi.c,v $ - * $SonyRevision: 1.1 $ + * $SonyRCSfile: setubi.c,v $ + * $SonyRevision: 1.1 $ * $SonyDate: 1994/06/03 08:02:22 $ */ - - #include "sj_kcnv.h" #include "sj_hinsi.h" #include "sj_kanakan.h" u_char* -getstb(TypeGram hinsi) -{ - if (hinsi < MEISI_1 || hinsi > TIMEI) return NULL; +getstb(TypeGram hinsi) { + if(hinsi < MEISI_1 || hinsi > TIMEI) return NULL; return Stbadr(hinsi); } - -void -setubi(JREC *rec, u_char *stbtbl) -{ - u_char *stb; - u_char *yptr; - u_char *sptr; +void setubi(JREC* rec, u_char* stbtbl) { + u_char* stb; + u_char* yptr; + u_char* sptr; int slen; - JREC *new; - int cmp; + JREC* new; + int cmp; stb = stbtbl--; - yptr = cnvstart + rec -> jlen; + yptr = cnvstart + rec->jlen; - for ( ; *stb ; stb = sptr + slen + StbKnjLen(stb)) { + for(; *stb; stb = sptr + slen + StbKnjLen(stb)) { slen = StbYomiLen(stb); sptr = StbYomiTop(stb); cmp = sstrncmp(yptr, sptr, slen); - if (cmp == OVER || cmp == PARTLY) break; + if(cmp == OVER || cmp == PARTLY) break; - if ((cmp != MATCH) || isdpnd(*(yptr + slen))) continue; + if((cmp != MATCH) || isdpnd(*(yptr + slen))) continue; - if (!(new = argjrec((int)(rec -> jlen + slen), rec))) continue; + if(!(new = argjrec((int)(rec->jlen + slen), rec))) continue; - new -> stbofs = (u_char)(stb - stbtbl); - new -> flags |= StbBakeru(stb) ? JFLAG_KA : 0; + new->stbofs = (u_char)(stb - stbtbl); + new->flags |= StbBakeru(stb) ? JFLAG_KA : 0; } } - diff --git a/lib/sj3core/sj2code.c b/lib/sj3core/sj2code.c index e11e232..0256b66 100644 --- a/lib/sj3core/sj2code.c +++ b/lib/sj3core/sj2code.c @@ -1,6 +1,6 @@ /* * Copyright (c) 1991-1994 Sony Corporation - * + * * Permission is hereby granted, free of charge, to any person obtaining * a copy of this software and associated documentation files (the * "Software"), to deal in the Software without restriction, including @@ -8,10 +8,10 @@ * distribute, sublicense, and/or sell copies of the Software, and to * permit persons to whom the Software is furnished to do so, subject to * the following conditions: - * + * * The above copyright notice and this permission notice shall be * included in all copies or substantial portions of the Software. - * + * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. @@ -19,7 +19,7 @@ * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR * THE USE OR OTHER DEALINGS IN THE SOFTWARE. - * + * * Except as contained in this notice, the name of Sony Corporation * shall not be used in advertising or otherwise to promote the sale, use * or other dealings in this Software without prior written authorization @@ -28,104 +28,93 @@ */ /* - * $SonyRCSfile: sj2code.c,v $ - * $SonyRevision: 1.2 $ + * $SonyRCSfile: sj2code.c,v $ + * $SonyRevision: 1.2 $ * $SonyDate: 1995/07/21 05:22:51 $ */ - - - #include "sj_euc.h" #include "sj_kcnv.h" #include "sj_yomi.h" #include "sj_kanakan.h" -int -sj2cd_chr(u_char *euc, u_char *yomi) -{ - u_char chr; +int sj2cd_chr(u_char* euc, u_char* yomi) { + u_char chr; - if ((chr = *euc++) == EUC_a1) { + if((chr = *euc++) == EUC_a1) { chr = *euc; - if (chr < EUC_START) + if(chr < EUC_START) *yomi = Y_ZENKAKU; - else if (chr <= EUC_END) + else if(chr <= EUC_END) *yomi = Kigou[chr - EUC_START]; else *yomi = Y_ZENKAKU; - } else if (chr == EUC_a2) { + } else if(chr == EUC_a2) { chr = *euc; - if (chr < EUC_START) + if(chr < EUC_START) *yomi = Y_ZENKAKU; - else if (chr <= EUC_END_KIGOU) + else if(chr <= EUC_END_KIGOU) *yomi = Kigou[chr - EUC_START + 94]; else *yomi = Y_ZENKAKU; - } else if (chr == EUC_a3) { + } else if(chr == EUC_a3) { chr = *euc; - if (chr < EUC_0) - *yomi = Y_ZENKAKU; - else if (chr <= EUC_END_0) - *yomi = chr - EUC_0 + N_0; - else if (chr < EUC_A) - *yomi = Y_ZENKAKU; - else if (chr <= EUC_END_A) - *yomi = chr - EUC_A + A_A; - else if (chr < EUC_a) - *yomi = Y_ZENKAKU; - else if (chr <= EUC_END_a) - *yomi = chr - EUC_a + A_a; - else - *yomi = Y_ZENKAKU; - } else if (chr == EUC_a4) { - chr = *euc; - if (chr < EUC_START) + if(chr < EUC_0) *yomi = Y_ZENKAKU; - else if (chr <= EUC_END_HIRA) - *yomi = chr - EUC_START + _XA; + else if(chr <= EUC_END_0) + *yomi = chr - EUC_0 + N_0; + else if(chr < EUC_A) + *yomi = Y_ZENKAKU; + else if(chr <= EUC_END_A) + *yomi = chr - EUC_A + A_A; + else if(chr < EUC_a) + *yomi = Y_ZENKAKU; + else if(chr <= EUC_END_a) + *yomi = chr - EUC_a + A_a; else *yomi = Y_ZENKAKU; - } else if (chr == EUC_a5) { + } else if(chr == EUC_a4) { chr = *euc; - if (chr == EUC_VU) + if(chr < EUC_START) + *yomi = Y_ZENKAKU; + else if(chr <= EUC_END_HIRA) + *yomi = chr - EUC_START + _XA; + else + *yomi = Y_ZENKAKU; + } else if(chr == EUC_a5) { + chr = *euc; + if(chr == EUC_VU) *yomi = _VU; - else if (chr == EUC_XKA) + else if(chr == EUC_XKA) *yomi = _XKA; - else if (chr == EUC_XKE) + else if(chr == EUC_XKE) *yomi = _XKE; else *yomi = Y_ZENKAKU; - } - else { - - if (!(chr & 0x80)) { + } else { + + if(!(chr & 0x80)) { *yomi = Y_HANKAKU; return 1; - } else if (chr == SS2) { + } else if(chr == SS2) { *yomi = Y_HANKAKU; - } else if (chr == SS3) { + } else if(chr == SS3) { *yomi = Y_ZENKAKU; return 3; - } else - *yomi = Y_ZENKAKU; + } else + *yomi = Y_ZENKAKU; } return 2; } +int sj2cd_str(u_char* euc, u_char* yomi, int len) { + if(!len--) return FALSE; -int -sj2cd_str(u_char *euc, u_char *yomi, int len) -{ - - if (!len--) return FALSE; - - - while (*euc && len--) euc += sj2cd_chr(euc, yomi++); + while(*euc && len--) euc += sj2cd_chr(euc, yomi++); *yomi = 0; return *euc ? FALSE : TRUE; diff --git a/lib/sj3core/skiphblk.c b/lib/sj3core/skiphblk.c index 0073dab..6a61a2c 100644 --- a/lib/sj3core/skiphblk.c +++ b/lib/sj3core/skiphblk.c @@ -1,6 +1,6 @@ /* * Copyright (c) 1991-1994 Sony Corporation - * + * * Permission is hereby granted, free of charge, to any person obtaining * a copy of this software and associated documentation files (the * "Software"), to deal in the Software without restriction, including @@ -8,10 +8,10 @@ * distribute, sublicense, and/or sell copies of the Software, and to * permit persons to whom the Software is furnished to do so, subject to * the following conditions: - * + * * The above copyright notice and this permission notice shall be * included in all copies or substantial portions of the Software. - * + * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. @@ -19,7 +19,7 @@ * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR * THE USE OR OTHER DEALINGS IN THE SOFTWARE. - * + * * Except as contained in this notice, the name of Sony Corporation * shall not be used in advertising or otherwise to promote the sale, use * or other dealings in this Software without prior written authorization @@ -28,8 +28,8 @@ */ /* - * $SonyRCSfile: skiphblk.c,v $ - * $SonyRevision: 1.1 $ + * $SonyRCSfile: skiphblk.c,v $ + * $SonyRevision: 1.1 $ * $SonyDate: 1994/06/03 08:02:24 $ */ @@ -39,15 +39,13 @@ #include "sj_kanakan.h" -u_char * -skiphblk(u_char *ptr) -{ +u_char* +skiphblk(u_char* ptr) { ptr++; - while (*ptr != HINSIBLKTERM) ptr = skipkstr(ptr); + while(*ptr != HINSIBLKTERM) ptr = skipkstr(ptr); ptr++; return ptr; } - diff --git a/lib/sj3core/skipkstr.c b/lib/sj3core/skipkstr.c index a762774..bff2820 100644 --- a/lib/sj3core/skipkstr.c +++ b/lib/sj3core/skipkstr.c @@ -1,6 +1,6 @@ /* * Copyright (c) 1991-1994 Sony Corporation - * + * * Permission is hereby granted, free of charge, to any person obtaining * a copy of this software and associated documentation files (the * "Software"), to deal in the Software without restriction, including @@ -8,10 +8,10 @@ * distribute, sublicense, and/or sell copies of the Software, and to * permit persons to whom the Software is furnished to do so, subject to * the following conditions: - * + * * The above copyright notice and this permission notice shall be * included in all copies or substantial portions of the Software. - * + * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. @@ -19,7 +19,7 @@ * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR * THE USE OR OTHER DEALINGS IN THE SOFTWARE. - * + * * Except as contained in this notice, the name of Sony Corporation * shall not be used in advertising or otherwise to promote the sale, use * or other dealings in this Software without prior written authorization @@ -28,8 +28,8 @@ */ /* - * $SonyRCSfile: skipkstr.c,v $ - * $SonyRevision: 1.1 $ + * $SonyRCSfile: skipkstr.c,v $ + * $SonyRevision: 1.1 $ * $SonyDate: 1994/06/03 08:02:25 $ */ @@ -42,20 +42,19 @@ #include "sj_kanakan.h" -u_char * -skipkstr(u_char *ptr) -{ - int contf = TRUE, csize; +u_char* +skipkstr(u_char* ptr) { + int contf = TRUE, csize; do { csize = codesize(*ptr); - if (ptr[csize] == KANJISTREND) contf = FALSE; + if(ptr[csize] == KANJISTREND) contf = FALSE; ptr += csize; - } while (contf); + } while(contf); - ptr++; + ptr++; return ptr; } diff --git a/lib/sj3core/srchdict.c b/lib/sj3core/srchdict.c index 6ebdbba..1e4cd50 100644 --- a/lib/sj3core/srchdict.c +++ b/lib/sj3core/srchdict.c @@ -1,6 +1,6 @@ /* * Copyright (c) 1991-1994 Sony Corporation - * + * * Permission is hereby granted, free of charge, to any person obtaining * a copy of this software and associated documentation files (the * "Software"), to deal in the Software without restriction, including @@ -8,10 +8,10 @@ * distribute, sublicense, and/or sell copies of the Software, and to * permit persons to whom the Software is furnished to do so, subject to * the following conditions: - * + * * The above copyright notice and this permission notice shall be * included in all copies or substantial portions of the Software. - * + * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. @@ -19,7 +19,7 @@ * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR * THE USE OR OTHER DEALINGS IN THE SOFTWARE. - * + * * Except as contained in this notice, the name of Sony Corporation * shall not be used in advertising or otherwise to promote the sale, use * or other dealings in this Software without prior written authorization @@ -28,8 +28,8 @@ */ /* - * $SonyRCSfile: srchdict.c,v $ - * $SonyRevision: 1.1 $ + * $SonyRCSfile: srchdict.c,v $ + * $SonyRevision: 1.1 $ * $SonyDate: 1994/06/03 08:02:26 $ */ @@ -37,41 +37,38 @@ #include "sj_kanakan.h" -int -yomicmp(u_char *ptr1, u_char *ptr2, u_char *saml) -{ - int i, j; - int same; +int yomicmp(u_char* ptr1, u_char* ptr2, u_char* saml) { + int i, j; + int same; same = *saml; i = getplen(ptr2); j = getnlen(ptr2); - if (j == 0) { + if(j == 0) { ptr2 = get_idxptr(prevseg); - for (i = same ; i ; i--) - if (*ptr1++ != *ptr2++) return OVER; + for(i = same; i; i--) + if(*ptr1++ != *ptr2++) return OVER; j = sstrlen(ptr2); } - else if (i > same) + else if(i > same) return CONT; else { - if (i < same) same = i; + if(i < same) same = i; ptr1 += same; ptr2 += DOUONBLKSIZENUMBER; } - while (j-- > 0) { - if (*ptr1 > *ptr2) { + while(j-- > 0) { + if(*ptr1 > *ptr2) { *saml = same; return CONT; - } - else if (*ptr1++ < *ptr2++) { + } else if(*ptr1++ < *ptr2++) { return OVER; } same++; @@ -81,24 +78,21 @@ yomicmp(u_char *ptr1, u_char *ptr2, u_char *saml) return MATCH; } - -u_char * -srchdict(u_char *tagp) -{ - TypeDicSeg segno; - int cmp; - int maxlen; +u_char* +srchdict(u_char* tagp) { + TypeDicSeg segno; + int cmp; + int maxlen; maxlen = (cnvlen > MAXWDYOMILEN) ? MAXWDYOMILEN : cnvlen; - while ((int)dicinl <= maxlen) { - + while((int)dicinl <= maxlen) { segno = srchidx(prevseg, (int)dicinl); (*curdict->getdic)(curdict, segno); - if (prevseg != segno) { + if(prevseg != segno) { prevseg = segno; @@ -109,11 +103,11 @@ srchdict(u_char *tagp) tagp = getntag(tagp); - if (segend(tagp)) { + if(segend(tagp)) { prevseg = ++segno; - if (segno >= curdict->segunit) return NULL; + if(segno >= curdict->segunit) return NULL; (*curdict->getdic)(curdict, segno); @@ -121,23 +115,23 @@ srchdict(u_char *tagp) } } - if (tagp == dicbuf) { + if(tagp == dicbuf) { get_askknj(); tagp += *tagp + 1; } - while (!segend(tagp)) { + while(!segend(tagp)) { cmp = yomicmp(cnvstart, tagp, &dicsaml); - if ((int)dicsaml > maxlen) return NULL; + if((int)dicsaml > maxlen) return NULL; - if (cmp == OVER) + if(cmp == OVER) return NULL; - else if (cmp == MATCH) { + else if(cmp == MATCH) { - if (isdpnd(*(cnvstart + dicsaml))) { + if(isdpnd(*(cnvstart + dicsaml))) { break; } @@ -153,4 +147,3 @@ srchdict(u_char *tagp) return NULL; } - diff --git a/lib/sj3core/srchhead.c b/lib/sj3core/srchhead.c index 7053ac7..cf73ef6 100644 --- a/lib/sj3core/srchhead.c +++ b/lib/sj3core/srchhead.c @@ -1,6 +1,6 @@ /* * Copyright (c) 1991-1994 Sony Corporation - * + * * Permission is hereby granted, free of charge, to any person obtaining * a copy of this software and associated documentation files (the * "Software"), to deal in the Software without restriction, including @@ -8,10 +8,10 @@ * distribute, sublicense, and/or sell copies of the Software, and to * permit persons to whom the Software is furnished to do so, subject to * the following conditions: - * + * * The above copyright notice and this permission notice shall be * included in all copies or substantial portions of the Software. - * + * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. @@ -19,7 +19,7 @@ * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR * THE USE OR OTHER DEALINGS IN THE SOFTWARE. - * + * * Except as contained in this notice, the name of Sony Corporation * shall not be used in advertising or otherwise to promote the sale, use * or other dealings in this Software without prior written authorization @@ -28,40 +28,35 @@ */ /* - * $SonyRCSfile: srchhead.c,v $ - * $SonyRevision: 1.1 $ + * $SonyRCSfile: srchhead.c,v $ + * $SonyRevision: 1.1 $ * $SonyDate: 1994/06/03 08:02:28 $ */ - - #include "sj_kcnv.h" #include "sj_yomi.h" #include "sj_kanakan.h" -int -srchhead() -{ - if (*cnvstart == _O) { +int srchhead() { + if(*cnvstart == _O) { headcode = SETTOU_O; - headlen = 1; + headlen = 1; return TRUE; } - else if (*cnvstart == _GO) { + else if(*cnvstart == _GO) { headcode = SETTOU_GO; - headlen = 1; + headlen = 1; return TRUE; } - else if ((*cnvstart == _DA) && (*(cnvstart + 1) == _I)) { + else if((*cnvstart == _DA) && (*(cnvstart + 1) == _I)) { headcode = SETTOU_DAI; - headlen = 2; + headlen = 2; return TRUE; } headcode = headlen = 0; return FALSE; } - diff --git a/lib/sj3core/srchidx.c b/lib/sj3core/srchidx.c index 6d2e0bc..5818201 100644 --- a/lib/sj3core/srchidx.c +++ b/lib/sj3core/srchidx.c @@ -1,6 +1,6 @@ /* * Copyright (c) 1991-1994 Sony Corporation - * + * * Permission is hereby granted, free of charge, to any person obtaining * a copy of this software and associated documentation files (the * "Software"), to deal in the Software without restriction, including @@ -8,10 +8,10 @@ * distribute, sublicense, and/or sell copies of the Software, and to * permit persons to whom the Software is furnished to do so, subject to * the following conditions: - * + * * The above copyright notice and this permission notice shall be * included in all copies or substantial portions of the Software. - * + * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. @@ -19,7 +19,7 @@ * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR * THE USE OR OTHER DEALINGS IN THE SOFTWARE. - * + * * Except as contained in this notice, the name of Sony Corporation * shall not be used in advertising or otherwise to promote the sale, use * or other dealings in this Software without prior written authorization @@ -28,8 +28,8 @@ */ /* - * $SonyRCSfile: srchidx.c,v $ - * $SonyRevision: 1.1 $ + * $SonyRCSfile: srchidx.c,v $ + * $SonyRevision: 1.1 $ * $SonyDate: 1994/06/03 08:02:29 $ */ @@ -38,18 +38,17 @@ #include "sj_kanakan.h" TypeDicSeg -srchidx(TypeDicSeg low, int len) -{ - TypeDicSeg high; - TypeDicSeg mid; - int cmp; - u_char *target; +srchidx(TypeDicSeg low, int len) { + TypeDicSeg high; + TypeDicSeg mid; + int cmp; + u_char* target; - if ((high = curdict->segunit - 1) < 1) return 0; + if((high = curdict->segunit - 1) < 1) return 0; - if (low == (TypeDicSeg)-1) low = 0; + if(low == (TypeDicSeg)-1) low = 0; - while (low <= high) { + while(low <= high) { mid = (low + high) >> 1; @@ -57,11 +56,11 @@ srchidx(TypeDicSeg low, int len) cmp = istrcmp(cnvstart, target, len, sstrlen(target)); - if (cmp == OVER) { + if(cmp == OVER) { high = mid - 1; } - else if(cmp != MATCH){ + else if(cmp != MATCH) { low = mid + 1; } @@ -72,4 +71,3 @@ srchidx(TypeDicSeg low, int len) return (cmp == OVER && mid != DICSEGBASE) ? mid - 1 : mid; } - diff --git a/lib/sj3core/srchnum.c b/lib/sj3core/srchnum.c index f52b756..65028b6 100644 --- a/lib/sj3core/srchnum.c +++ b/lib/sj3core/srchnum.c @@ -1,6 +1,6 @@ /* * Copyright (c) 1991-1994 Sony Corporation - * + * * Permission is hereby granted, free of charge, to any person obtaining * a copy of this software and associated documentation files (the * "Software"), to deal in the Software without restriction, including @@ -8,10 +8,10 @@ * distribute, sublicense, and/or sell copies of the Software, and to * permit persons to whom the Software is furnished to do so, subject to * the following conditions: - * + * * The above copyright notice and this permission notice shall be * included in all copies or substantial portions of the Software. - * + * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. @@ -19,7 +19,7 @@ * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR * THE USE OR OTHER DEALINGS IN THE SOFTWARE. - * + * * Except as contained in this notice, the name of Sony Corporation * shall not be used in advertising or otherwise to promote the sale, use * or other dealings in this Software without prior written authorization @@ -28,8 +28,8 @@ */ /* - * $SonyRCSfile: srchnum.c,v $ - * $SonyRevision: 1.1 $ + * $SonyRCSfile: srchnum.c,v $ + * $SonyRevision: 1.1 $ * $SonyDate: 1994/06/03 08:02:30 $ */ @@ -41,138 +41,131 @@ #include "sj_kanakan.h" -static void srch_kurai1(), srch_kurai2(); +static void srch_kurai1(), srch_kurai2(); static void -srch_josuu_sub(JREC *jrec, TypeGram gram) -{ - u_char *tagp; - DICTL *dp; +srch_josuu_sub(JREC* jrec, TypeGram gram) { + u_char* tagp; + DICTL* dp; - for (dp = dictlist ; dp ; dp = dp -> next) { - curdict = dp -> dict; - dicinl = 1; + for(dp = dictlist; dp; dp = dp->next) { + curdict = dp->dict; + dicinl = 1; dicsaml = 0; prevseg = -1; - while (tagp = srchdict(tagp)) setnumrec(tagp, jrec, gram); + while(tagp = srchdict(tagp)) setnumrec(tagp, jrec, gram); } } static void -srch_josuu(JREC *jrec) -{ - u_char *kp; +srch_josuu(JREC* jrec) { + u_char* kp; int klen; int len; - if (headcode && headcode != SETTOU_DAI) return; + if(headcode && headcode != SETTOU_DAI) return; kp = cnvstart; klen = cnvlen; - cnvstart += (len = jrec -> numlen); - cnvlen -= len; + cnvstart += (len = jrec->numlen); + cnvlen -= len; srch_josuu_sub(jrec, JOSUUSI); - if (!headcode) srch_josuu_sub(jrec, JOSUUSI2); + if(!headcode) srch_josuu_sub(jrec, JOSUUSI2); cnvstart = kp; - cnvlen = klen; + cnvlen = klen; } static void -setnrec_sub(u_char *p, u_short flag, int stb) -{ - JREC *rec; - int len1; - int len2; +setnrec_sub(u_char* p, u_short flag, int stb) { + JREC* rec; + int len1; + int len2; len1 = len2 = p - suuji_yptr; - if (headcode) len1 += headlen; - if (stb) len2--; + if(headcode) len1 += headlen; + if(stb) len2--; - if ((int)suuji_len == len2) { - if (suuji_wkeep) { - memcpy((u_char *)suuji_wkeep, (u_char *)suuji_wbuf, - sizeof(suuji_wbuf[0]) * NUMWORDBUF); + if((int)suuji_len == len2) { + if(suuji_wkeep) { + memcpy((u_char*)suuji_wkeep, (u_char*)suuji_wbuf, + sizeof(suuji_wbuf[0]) * NUMWORDBUF); } - if (suuji_ukeep) { + if(suuji_ukeep) { memcpy(suuji_ukeep, suuji_ubuf, NUMKETALENGTH); } suuji_exit = suuji_keta; return; } - if (rec = argjrec(len1, (JREC *)NULL)) { - rec -> class = suuji_class; - rec -> hinsi = SUUSI; - rec -> sttofs = headcode; - rec -> stbofs = (u_char)stb; - rec -> flags = flag; - rec -> numlen = (u_char)len2; + if(rec = argjrec(len1, (JREC*)NULL)) { + rec->class = suuji_class; + rec->hinsi = SUUSI; + rec->sttofs = headcode; + rec->stbofs = (u_char)stb; + rec->flags = flag; + rec->numlen = (u_char)len2; - if (!stb) srch_josuu(rec); + if(!stb) srch_josuu(rec); } } static void -setnrec(u_char *p, u_short flag) -{ +setnrec(u_char* p, u_short flag) { setnrec_sub(p, flag, 0); - if (!headcode && (*p == Y_S_KIGOU2)) { + if(!headcode && (*p == Y_S_KIGOU2)) { setnrec_sub(p + 1, flag, -1); } } static u_char* -srchtbl(u_char ch, u_char *tbl, int rec, int n) -{ +srchtbl(u_char ch, u_char* tbl, int rec, int n) { int high, low, mid; - u_char *p; + u_char* p; - if (!ch) return NULL; + if(!ch) return NULL; - low = 0; + low = 0; high = n - 1; - while (low <= high) { + while(low <= high) { mid = (low + high) / 2; - p = tbl + mid * rec; + p = tbl + mid * rec; - if (ch == *p) + if(ch == *p) break; - else if (ch < *p) + else if(ch < *p) high = mid - 1; else low = mid + 1; } - if (low > high) return NULL; + if(low > high) return NULL; - while (mid-- > 0 && ch == *(p - rec)) p -= rec; + while(mid-- > 0 && ch == *(p - rec)) p -= rec; return p; } static int -isconnect(u_char *cnct, int num) -{ +isconnect(u_char* cnct, int num) { return (cnct[num / 8] & (0x80 >> (num % 8))); } static int -string_cmp(u_char *s, int l, u_char *d) -{ - u_char *p; +string_cmp(u_char* s, int l, u_char* d) { + u_char* p; p = s; - while (*s && l-- > 0) { - if (*s != *d) return 0; + while(*s && l-- > 0) { + if(*s != *d) return 0; s++; d++; } @@ -181,8 +174,7 @@ string_cmp(u_char *s, int l, u_char *d) } static int -check_num(u_char *ptr) -{ +check_num(u_char* ptr) { int i; int j; int k; @@ -191,37 +183,37 @@ check_num(u_char *ptr) int lketa; int flg = FALSE; int cnt; - u_short flag; + u_short flag; - memset((u_char *)suuji_wbuf, 0, sizeof(u_short) * NUMWORDBUF); + memset((u_char*)suuji_wbuf, 0, sizeof(u_short) * NUMWORDBUF); flag = 0; hketa = lketa = cnt = 0; - for (i = suuji_keta ; --i >= 0 ;) { - if (hketa >= 4) return FALSE; + for(i = suuji_keta; --i >= 0;) { + if(hketa >= 4) return FALSE; tmp = suuji_ubuf[i]; - if (j = ((tmp >> 6) & 3)) { - if (j < hketa) return FALSE; - if (j > hketa) { + if(j = ((tmp >> 6) & 3)) { + if(j < hketa) return FALSE; + if(j > hketa) { flag |= JFLAG_N01; do { - suuji_wbuf[hketa] |= (_NUM0<<(lketa*4)); - if (++lketa >= 4) { + suuji_wbuf[hketa] |= (_NUM0 << (lketa * 4)); + if(++lketa >= 4) { lketa = 0; hketa++; } - } while (j > hketa); + } while(j > hketa); } } k = ((tmp >> 4) & 3); - if (j || k) { - if (k < lketa) return FALSE; - if (k > lketa) { + if(j || k) { + if(k < lketa) return FALSE; + if(k > lketa) { flag |= JFLAG_N01; do { - suuji_wbuf[hketa] |= (_NUM0<<(lketa*4)); + suuji_wbuf[hketa] |= (_NUM0 << (lketa * 4)); lketa++; - } while (k > lketa); + } while(k > lketa); } flg = TRUE; } @@ -230,16 +222,16 @@ check_num(u_char *ptr) cnt++; j = (1 << tmp); - if (j & NUMBERS1) flag |= JFLAG_NS1; - if (j & NUMBER01) flag |= JFLAG_N01; - if (j & NUMBER23) flag |= JFLAG_N23; + if(j & NUMBERS1) flag |= JFLAG_NS1; + if(j & NUMBER01) flag |= JFLAG_N01; + if(j & NUMBER23) flag |= JFLAG_N23; - if (tmp != _NUM0) { + if(tmp != _NUM0) { flg = FALSE; - switch (lketa) { + switch(lketa) { case 0: - if (tmp == _NUM1) flag |= JFLAG_N_1; + if(tmp == _NUM1) flag |= JFLAG_N_1; break; case 1: @@ -247,22 +239,22 @@ check_num(u_char *ptr) break; } } - if (++lketa >= 4) { + if(++lketa >= 4) { lketa = 0; hketa++; } } - if (flg) return FALSE; + if(flg) return FALSE; - if (suuji_keta == 1 || tmp != _NUM0) flag |= JFLAG_NN0; + if(suuji_keta == 1 || tmp != _NUM0) flag |= JFLAG_NN0; - if (hketa) + if(hketa) flag |= (JFLAG_NK4 | JFLAG_NK2); - else if (lketa > 1) + else if(lketa > 1) flag |= JFLAG_NK2; - if (cnt > 1) flag |= JFLAG_NSN; + if(cnt > 1) flag |= JFLAG_NSN; setnrec(ptr, flag); @@ -270,57 +262,56 @@ check_num(u_char *ptr) } static void -srch_number1(u_char *ptr) -{ - u_char ch; - u_char mode; - u_char *p; - int l; - TypeClass cls; - int len; - u_char *tptr; +srch_number1(u_char* ptr) { + u_char ch; + u_char mode; + u_char* p; + int l; + TypeClass cls; + int len; + u_char* tptr; - if (suuji_keta >= NUMKETALENGTH) return; + if(suuji_keta >= NUMKETALENGTH) return; - if (!(p = srchtbl((ch = *ptr), Suuji_tbl, SJTBLRECLEN, SJTBLRECNUM))) + if(!(p = srchtbl((ch = *ptr), Suuji_tbl, SJTBLRECLEN, SJTBLRECNUM))) return; len = suuji_yptr + MAXCLINPUTLEN - ptr; - for ( ; *SjTblYPos(p) == ch ; p += SJTBLRECLEN) { - if (!(l = string_cmp(SjTblYPos(p), SJTBLYLEN, ptr))) continue; + for(; *SjTblYPos(p) == ch; p += SJTBLRECLEN) { + if(!(l = string_cmp(SjTblYPos(p), SJTBLYLEN, ptr))) continue; - if (l > len) continue; + if(l > len) continue; - mode = *SjTblModeP(p); + mode = *SjTblModeP(p); suuji_ubuf[suuji_keta++] = SjTblNumber(mode); - tptr = ptr + l; + tptr = ptr + l; - switch (suuji_class) { + switch(suuji_class) { case C_N_ARABIA: - if (!(mode & SJTBLNARABIAF)) break; + if(!(mode & SJTBLNARABIAF)) break; check_num(tptr); srch_number1(tptr); - srch_kurai2(tptr, (u_char *)NULL); + srch_kurai2(tptr, (u_char*)NULL); break; case C_N_SUUJI: - if (mode & (SJTBLNARABIAF | SJTBLNYOMIF)) break; + if(mode & (SJTBLNARABIAF | SJTBLNYOMIF)) break; check_num(tptr); srch_number1(tptr); - srch_kurai1(tptr, (u_char *)NULL); - srch_kurai2(tptr, (u_char *)NULL); + srch_kurai1(tptr, (u_char*)NULL); + srch_kurai2(tptr, (u_char*)NULL); break; case C_N_KAZU: case C_N_NANSUU: - if (mode & SJTBLNNARABIF) break; - if (mode & SJTBLNNANSUUF) { - cls = suuji_class; + if(mode & SJTBLNNARABIF) break; + if(mode & SJTBLNNANSUUF) { + cls = suuji_class; suuji_class = C_N_NANSUU; } @@ -328,32 +319,29 @@ srch_number1(u_char *ptr) srch_kurai1(tptr, SjTblCnctP(p)); srch_kurai2(tptr, SjTblCnctP(p)); - if (mode & SJTBLNNANSUUF) suuji_class = cls; + if(mode & SJTBLNNANSUUF) suuji_class = cls; break; default: - if (mode & SJTBLNARABIAF) { + if(mode & SJTBLNARABIAF) { suuji_class = C_N_ARABIA; check_num(tptr); srch_number1(tptr); - srch_kurai2(tptr, (u_char *)NULL); + srch_kurai2(tptr, (u_char*)NULL); suuji_class = C_N_KAZU; - } - else if (mode & SJTBLNYOMIF) { - if (mode & SJTBLNNANSUUF) + } else if(mode & SJTBLNYOMIF) { + if(mode & SJTBLNNANSUUF) suuji_class = C_N_NANSUU; else suuji_class = C_N_KAZU; check_num(tptr); - } - else if (mode & SJTBLNNARABIF) { + } else if(mode & SJTBLNNARABIF) { suuji_class = C_N_SUUJI; check_num(tptr); srch_number1(tptr); break; - } - else { + } else { suuji_class = C_N_SUUJI; srch_number1(tptr); @@ -370,35 +358,33 @@ srch_number1(u_char *ptr) } static void -srch_kurai1(u_char *ptr, u_char *cnct) -{ - u_char ch; - u_char *p; - int l; - int keta; - int mode; - TypeClass cls; - int len; - u_char *tptr; +srch_kurai1(u_char* ptr, u_char* cnct) { + u_char ch; + u_char* p; + int l; + int keta; + int mode; + TypeClass cls; + int len; + u_char* tptr; - if (!(p = srchtbl((ch = *ptr), Kurai1_tbl, KR1TBLRECLEN, KR1TBLRECNUM))) + if(!(p = srchtbl((ch = *ptr), Kurai1_tbl, KR1TBLRECLEN, KR1TBLRECNUM))) return; len = suuji_yptr + MAXCLINPUTLEN - ptr; - for ( ; *Kr1TblYPos(p) == ch ; p += KR1TBLRECLEN) { - if (!(l = string_cmp(Kr1TblYPos(p), KR1TBLYLEN, ptr))) continue; + for(; *Kr1TblYPos(p) == ch; p += KR1TBLRECLEN) { + if(!(l = string_cmp(Kr1TblYPos(p), KR1TBLYLEN, ptr))) continue; - if (l > len) continue; + if(l > len) continue; mode = *Kr1TblModeP(p); keta = Kr1TblKeta(mode); tptr = ptr + l; - if (suuji_class != C_N_KAZU && suuji_class != C_N_NANSUU) { - cls = suuji_class; - suuji_class = (suuji_class == C_N_ARABIA) ? - C_N_ARAKURA : C_N_KANKURA; + if(suuji_class != C_N_KAZU && suuji_class != C_N_NANSUU) { + cls = suuji_class; + suuji_class = (suuji_class == C_N_ARABIA) ? C_N_ARAKURA : C_N_KANKURA; suuji_ubuf[suuji_keta - 1] |= (keta << 4); check_num(tptr); suuji_class = cls; @@ -406,23 +392,22 @@ srch_kurai1(u_char *ptr, u_char *cnct) continue; } - if (cnct) { - if (!isconnect(cnct, (int)Kr1TblCnct(mode))) continue; + if(cnct) { + if(!isconnect(cnct, (int)Kr1TblCnct(mode))) continue; suuji_ubuf[suuji_keta - 1] |= (keta << 4); - } - else { - if (!Kr1TblTop(mode)) continue; - if (suuji_keta >= NUMKETALENGTH) continue; + } else { + if(!Kr1TblTop(mode)) continue; + if(suuji_keta >= NUMKETALENGTH) continue; suuji_ubuf[suuji_keta++] = (_NUM1 | (keta << 4)); } check_num(tptr); srch_number1(tptr); - srch_kurai1(tptr, (u_char *)NULL); + srch_kurai1(tptr, (u_char*)NULL); srch_kurai2(tptr, Kr1TblCnctP(p)); - if (cnct) + if(cnct) suuji_ubuf[suuji_keta - 1] &= 0xcf; else suuji_keta--; @@ -430,59 +415,56 @@ srch_kurai1(u_char *ptr, u_char *cnct) } static void -srch_kurai2(u_char *ptr, u_char *cnct) -{ - u_char ch; - u_char *p; - int l; - int keta; - int mode; - TypeClass cls; - int len; - u_char *tptr; +srch_kurai2(u_char* ptr, u_char* cnct) { + u_char ch; + u_char* p; + int l; + int keta; + int mode; + TypeClass cls; + int len; + u_char* tptr; - if ((suuji_ubuf[0] & 0x0f) == _NUM0) return; + if((suuji_ubuf[0] & 0x0f) == _NUM0) return; - if (!(p = srchtbl((ch = *ptr), Kurai2_tbl, KR2TBLRECLEN, KR2TBLRECNUM))) + if(!(p = srchtbl((ch = *ptr), Kurai2_tbl, KR2TBLRECLEN, KR2TBLRECNUM))) return; len = suuji_yptr + MAXCLINPUTLEN - ptr; - for ( ; *Kr2TblYPos(p) == ch ; p += KR2TBLRECLEN) { - if (!(l = string_cmp(Kr2TblYPos(p), KR2TBLYLEN, ptr))) continue; + for(; *Kr2TblYPos(p) == ch; p += KR2TBLRECLEN) { + if(!(l = string_cmp(Kr2TblYPos(p), KR2TBLYLEN, ptr))) continue; - if (l > len) continue; + if(l > len) continue; mode = *Kr2TblModeP(p); keta = Kr2TblKeta(mode); tptr = ptr + l; - if (suuji_class != C_N_KAZU && suuji_class != C_N_NANSUU) { + if(suuji_class != C_N_KAZU && suuji_class != C_N_NANSUU) { suuji_ubuf[suuji_keta - 1] |= (keta << 6); - cls = suuji_class; - suuji_class = (suuji_class == C_N_ARABIA) ? - C_N_ARAKURA : C_N_KANKURA; + cls = suuji_class; + suuji_class = (suuji_class == C_N_ARABIA) ? C_N_ARAKURA : C_N_KANKURA; check_num(tptr); suuji_class = cls; suuji_ubuf[suuji_keta - 1] &= 0x3f; continue; } - if (cnct) { - if (!isconnect(cnct, (int)Kr2TblCnct(mode))) continue; + if(cnct) { + if(!isconnect(cnct, (int)Kr2TblCnct(mode))) continue; suuji_ubuf[suuji_keta - 1] |= (keta << 6); - } - else { - if (suuji_keta >= NUMKETALENGTH) continue; + } else { + if(suuji_keta >= NUMKETALENGTH) continue; suuji_ubuf[suuji_keta++] = (_NUM1 | (keta << 6)); } check_num(tptr); srch_number1(tptr); - srch_kurai1(tptr, (u_char *)NULL); + srch_kurai1(tptr, (u_char*)NULL); - if (cnct) + if(cnct) suuji_ubuf[suuji_keta - 1] &= 0x3f; else suuji_keta--; @@ -490,53 +472,47 @@ srch_kurai2(u_char *ptr, u_char *cnct) } static void -srch_number2(u_char *p) -{ - u_char ch; - int i; +srch_number2(u_char* p) { + u_char ch; + int i; suuji_class = (*p == N_0) ? C_N_SUUJILONG : C_N_KAZULONG; suuji_keta = suuji_comma = 0; - for (i = 0 ; i < MAXCLINPUTLEN ; i++) { - if ((ch = *p++) == Y_COMMA) { - if (suuji_keta) { - if (suuji_comma) { - if (suuji_comma != 3) break; + for(i = 0; i < MAXCLINPUTLEN; i++) { + if((ch = *p++) == Y_COMMA) { + if(suuji_keta) { + if(suuji_comma) { + if(suuji_comma != 3) break; + } else { + if(suuji_keta >= 4) break; + if(*suuji_yptr == N_0) break; } - else { - if (suuji_keta >= 4) break; - if (*suuji_yptr == N_0) break; - } - } - else + } else break; suuji_comma = 1; - ch = *p++; - } - else if (suuji_comma) { + ch = *p++; + } else if(suuji_comma) { suuji_comma++; } - if (suuji_comma > 3) break; + if(suuji_comma > 3) break; - if (!(Chrtbl[ch] & NUMBER)) break; + if(!(Chrtbl[ch] & NUMBER)) break; - if (suuji_keta < NUMKETALENGTH) { + if(suuji_keta < NUMKETALENGTH) { suuji_ubuf[suuji_keta] = ch - N_0 + _NUM0; } suuji_keta++; - if (!suuji_comma && suuji_keta > NUMKETALENGTH) { + if(!suuji_comma && suuji_keta > NUMKETALENGTH) { setnrec(p, 0); - } - else if (suuji_comma == 3) { - if (suuji_keta <= NUMKETALENGTH) { + } else if(suuji_comma == 3) { + if(suuji_keta <= NUMKETALENGTH) { suuji_class = C_N_ARACMA; check_num(p); - } - else { + } else { suuji_class = C_N_KAZULCMA; setnrec(p, 0); } @@ -545,32 +521,29 @@ srch_number2(u_char *p) } static void -srchnum_sub(u_char *p) -{ +srchnum_sub(u_char* p) { suuji_yptr = p; suuji_comma = suuji_keta = 0; - suuji_class = 0; + suuji_class = 0; srch_number1(p); - suuji_keta = 0; + suuji_keta = 0; suuji_class = C_N_KAZU; - srch_kurai1(p, (u_char *)NULL); - if (suuji_exit) return; + srch_kurai1(p, (u_char*)NULL); + if(suuji_exit) return; srch_number2(p); } -void -srchnum() -{ +void srchnum() { suuji_len = suuji_exit = 0; srchnum_sub(cnvstart); - if (!headcode && (*cnvstart == Y_S_KIGOU1)) { + if(!headcode && (*cnvstart == Y_S_KIGOU1)) { headcode = SETTOU_KIGOU; - headlen = 1; + headlen = 1; srchnum_sub(cnvstart + 1); @@ -578,29 +551,24 @@ srchnum() } } -void -setwdnum(u_char *p, int len, u_short *wd) -{ +void setwdnum(u_char* p, int len, u_short* wd) { suuji_len = (u_char)len; suuji_wkeep = wd; suuji_ukeep = NULL; headcode = headlen = 0; - suuji_exit = 0; + suuji_exit = 0; srchnum_sub(p); } -int -setucnum(u_char *p, int len, u_char *ud) -{ +int setucnum(u_char* p, int len, u_char* ud) { suuji_len = (u_char)len; suuji_wkeep = NULL; suuji_ukeep = ud; headcode = headlen = 0; - suuji_exit = 0; + suuji_exit = 0; srchnum_sub(p); return (int)suuji_exit; } - diff --git a/lib/sj3core/sstrcmp.c b/lib/sj3core/sstrcmp.c index ef8a5c2..a84c61f 100644 --- a/lib/sj3core/sstrcmp.c +++ b/lib/sj3core/sstrcmp.c @@ -1,6 +1,6 @@ /* * Copyright (c) 1991-1994 Sony Corporation - * + * * Permission is hereby granted, free of charge, to any person obtaining * a copy of this software and associated documentation files (the * "Software"), to deal in the Software without restriction, including @@ -8,10 +8,10 @@ * distribute, sublicense, and/or sell copies of the Software, and to * permit persons to whom the Software is furnished to do so, subject to * the following conditions: - * + * * The above copyright notice and this permission notice shall be * included in all copies or substantial portions of the Software. - * + * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. @@ -19,7 +19,7 @@ * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR * THE USE OR OTHER DEALINGS IN THE SOFTWARE. - * + * * Except as contained in this notice, the name of Sony Corporation * shall not be used in advertising or otherwise to promote the sale, use * or other dealings in this Software without prior written authorization @@ -28,23 +28,19 @@ */ /* - * $SonyRCSfile: sstrcmp.c,v $ - * $SonyRevision: 1.1 $ + * $SonyRCSfile: sstrcmp.c,v $ + * $SonyRevision: 1.1 $ * $SonyDate: 1994/06/03 08:02:31 $ */ - - #include "sj_rename.h" #include "sj_typedef.h" #include "sj_kanakan.h" -int -sstrcmp(u_char *src, u_char *dst) -{ - for ( ; *src ; src++, dst++) - if (*src != *dst) break; +int sstrcmp(u_char* src, u_char* dst) { + for(; *src; src++, dst++) + if(*src != *dst) break; return (*src - *dst); } diff --git a/lib/sj3core/sstrlen.c b/lib/sj3core/sstrlen.c index 335838b..d5972df 100644 --- a/lib/sj3core/sstrlen.c +++ b/lib/sj3core/sstrlen.c @@ -1,6 +1,6 @@ /* * Copyright (c) 1991-1994 Sony Corporation - * + * * Permission is hereby granted, free of charge, to any person obtaining * a copy of this software and associated documentation files (the * "Software"), to deal in the Software without restriction, including @@ -8,10 +8,10 @@ * distribute, sublicense, and/or sell copies of the Software, and to * permit persons to whom the Software is furnished to do so, subject to * the following conditions: - * + * * The above copyright notice and this permission notice shall be * included in all copies or substantial portions of the Software. - * + * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. @@ -19,7 +19,7 @@ * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR * THE USE OR OTHER DEALINGS IN THE SOFTWARE. - * + * * Except as contained in this notice, the name of Sony Corporation * shall not be used in advertising or otherwise to promote the sale, use * or other dealings in this Software without prior written authorization @@ -28,27 +28,22 @@ */ /* - * $SonyRCSfile: sstrlen.c,v $ - * $SonyRevision: 1.1 $ + * $SonyRCSfile: sstrlen.c,v $ + * $SonyRevision: 1.1 $ * $SonyDate: 1994/06/03 08:02:32 $ */ - - #include "sj_rename.h" #include "sj_typedef.h" #include "sj_kanakan.h" -int -sstrlen(u_char *ptr) -{ - u_char *head; +int sstrlen(u_char* ptr) { + u_char* head; head = ptr; - while (*ptr) ptr++; + while(*ptr) ptr++; return (ptr - head); } - diff --git a/lib/sj3core/sstrncmp.c b/lib/sj3core/sstrncmp.c index 906bb96..4f46d43 100644 --- a/lib/sj3core/sstrncmp.c +++ b/lib/sj3core/sstrncmp.c @@ -1,6 +1,6 @@ /* * Copyright (c) 1991-1994 Sony Corporation - * + * * Permission is hereby granted, free of charge, to any person obtaining * a copy of this software and associated documentation files (the * "Software"), to deal in the Software without restriction, including @@ -8,10 +8,10 @@ * distribute, sublicense, and/or sell copies of the Software, and to * permit persons to whom the Software is furnished to do so, subject to * the following conditions: - * + * * The above copyright notice and this permission notice shall be * included in all copies or substantial portions of the Software. - * + * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. @@ -19,7 +19,7 @@ * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR * THE USE OR OTHER DEALINGS IN THE SOFTWARE. - * + * * Except as contained in this notice, the name of Sony Corporation * shall not be used in advertising or otherwise to promote the sale, use * or other dealings in this Software without prior written authorization @@ -28,30 +28,26 @@ */ /* - * $SonyRCSfile: sstrncmp.c,v $ - * $SonyRevision: 1.1 $ + * $SonyRCSfile: sstrncmp.c,v $ + * $SonyRevision: 1.1 $ * $SonyDate: 1994/06/03 08:02:33 $ */ - - #include "sj_rename.h" #include "sj_typedef.h" #include "sj_const.h" #include "sj_kanakan.h" -int -sstrncmp(u_char *src, u_char *dst, int len) -{ +int sstrncmp(u_char* src, u_char* dst, int len) { - while (len-- > 0) { + while(len-- > 0) { - if (*src > *dst) + if(*src > *dst) return CONT; - if (*src < *dst) { - if (!*src) return PARTLY; + if(*src < *dst) { + if(!*src) return PARTLY; return OVER; } src++; @@ -60,4 +56,3 @@ sstrncmp(u_char *src, u_char *dst, int len) return MATCH; } - diff --git a/lib/sj3core/stbtbl.c b/lib/sj3core/stbtbl.c index bc06415..211ff03 100644 --- a/lib/sj3core/stbtbl.c +++ b/lib/sj3core/stbtbl.c @@ -1,6 +1,6 @@ /* * Copyright (c) 1991-1994 Sony Corporation - * + * * Permission is hereby granted, free of charge, to any person obtaining * a copy of this software and associated documentation files (the * "Software"), to deal in the Software without restriction, including @@ -8,10 +8,10 @@ * distribute, sublicense, and/or sell copies of the Software, and to * permit persons to whom the Software is furnished to do so, subject to * the following conditions: - * + * * The above copyright notice and this permission notice shall be * included in all copies or substantial portions of the Software. - * + * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. @@ -19,7 +19,7 @@ * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR * THE USE OR OTHER DEALINGS IN THE SOFTWARE. - * + * * Except as contained in this notice, the name of Sony Corporation * shall not be used in advertising or otherwise to promote the sale, use * or other dealings in this Software without prior written authorization @@ -28,14 +28,11 @@ */ /* - * $SonyRCSfile: stbtbl.c,v $ - * $SonyRevision: 1.1 $ + * $SonyRCSfile: stbtbl.c,v $ + * $SonyRevision: 1.1 $ * $SonyDate: 1994/06/03 08:02:34 $ */ - - - #include "sj_rename.h" #include "sj_typedef.h" #include "sj_yomi.h" @@ -43,105 +40,118 @@ #include "sj_kanakan.h" -static u_char name_stb[] = { - 0x22, MEISI_1, _KU, _NN, - 0xb7, 0xaf, - 0x22, MEISI_1, _SA, _MA, - 0xcd, 0xcd, - 0x24, MEISI_1, _SA, _NN, - 0xa4, 0xb5, 0xa4, 0xf3, - 0x12, MEISI_1, _SI, - 0xbb, 0xe1, - 0x36, MEISI_1, _TI, _XYA, _NN, - 0xa4, 0xc1, 0xa4, 0xe3, 0xa4, 0xf3, - 0x22, MEISI_1, _DO, _NO, - 0xc5, 0xc2, - 0x00 -}; +static u_char name_stb[] = { + 0x22, MEISI_1, _KU, _NN, + 0xb7, 0xaf, + 0x22, MEISI_1, _SA, _MA, + 0xcd, 0xcd, + 0x24, MEISI_1, _SA, _NN, + 0xa4, 0xb5, 0xa4, 0xf3, + 0x12, MEISI_1, _SI, + 0xbb, 0xe1, + 0x36, MEISI_1, _TI, _XYA, _NN, + 0xa4, 0xc1, 0xa4, 0xe3, 0xa4, 0xf3, + 0x22, MEISI_1, _DO, _NO, + 0xc5, 0xc2, + 0x00}; -static u_char timei_stb[] = { - 0x22, MEISI_1, _E, _KI, - 0xb1, 0xd8, - 0x44, MEISI_1, _E, _KI, _HA, _TU, - 0xb1, 0xd8, 0xc8, 0xaf, - 0x44, MEISI_1, _E, _KI, _YU, _KI, - 0xb1, 0xd8, 0xb9, 0xd4, - 0x22, MEISI_1, _GU, _NN, - 0xb7, 0xb4, - 0x12, MEISI_1, _SI, - 0xbb, 0xd4, - 0x32, MEISI_1, _TI, _XYO, _U, - 0xc4, 0xae, - 0x22, MEISI_1, _HA, _TU, - 0xc8, 0xaf, - 0x22, MEISI_1, _MA, _TI, - 0xc4, 0xae, - 0x22, MEISI_1, _MU, _RA, - 0xc2, 0xbc, - 0x00 -}; +static u_char timei_stb[] = { + 0x22, MEISI_1, _E, _KI, + 0xb1, 0xd8, + 0x44, MEISI_1, _E, _KI, _HA, _TU, + 0xb1, 0xd8, 0xc8, 0xaf, + 0x44, MEISI_1, _E, _KI, _YU, _KI, + 0xb1, 0xd8, 0xb9, 0xd4, + 0x22, MEISI_1, _GU, _NN, + 0xb7, 0xb4, + 0x12, MEISI_1, _SI, + 0xbb, 0xd4, + 0x32, MEISI_1, _TI, _XYO, _U, + 0xc4, 0xae, + 0x22, MEISI_1, _HA, _TU, + 0xc8, 0xaf, + 0x22, MEISI_1, _MA, _TI, + 0xc4, 0xae, + 0x22, MEISI_1, _MU, _RA, + 0xc2, 0xbc, + 0x00}; -static u_char meisi_stb[] = { - 0x44, MEISI_6, _A, _TU, _KA, _I, - 0xb0, 0xb7, 0xa4, 0xa4, - 0x1a, MEISI_6, _KA, - 0xb2, 0xbd, - 0x22, MEISI_8, _TE, _KI, - 0xc5, 0xaa, - 0x56, FUKUSI_1, _NI, _TO, _MO, _NA, _I, - 0xa4, 0xcb, 0xc8, 0xbc, 0xa4, 0xa4, - 0x56, FUKUSI_1, _NI, _TO, _MO, _NA, _U, - 0xa4, 0xcb, 0xc8, 0xbc, 0xa4, 0xa6, - 0x22, MEISI_8, _HU, _U, - 0xc9, 0xf7, - 0x00 -}; +static u_char meisi_stb[] = { + 0x44, MEISI_6, _A, _TU, _KA, _I, + 0xb0, 0xb7, 0xa4, 0xa4, + 0x1a, MEISI_6, _KA, + 0xb2, 0xbd, + 0x22, MEISI_8, _TE, _KI, + 0xc5, 0xaa, + 0x56, FUKUSI_1, _NI, _TO, _MO, _NA, _I, + 0xa4, 0xcb, 0xc8, 0xbc, 0xa4, 0xa4, + 0x56, FUKUSI_1, _NI, _TO, _MO, _NA, _U, + 0xa4, 0xcb, 0xc8, 0xbc, 0xa4, 0xa6, + 0x22, MEISI_8, _HU, _U, + 0xc9, 0xf7, + 0x00}; -static u_char sahen_stb[] = { - 0x44, MEISI_6, _A, _TU, _KA, _I, - 0xb0, 0xb7, 0xa4, 0xa4, - 0x1a, MEISI_6, _KA, - 0xb2, 0xbd, - 0x12, MEISI_11, _GO, - 0xb8, 0xe5, - 0x22, MEISI_11, _GO, _TO, - 0xcb, 0xe8, - 0x32, MEISI_11, _ZI, _XYO, _U, - 0xbe, 0xe5, - 0x32, MEISI_11, _TI, _XYU, _U, - 0xc3, 0xe6, - 0x22, MEISI_8, _TE, _KI, - 0xc5, 0xaa, - 0x56, FUKUSI_1, _NI, _TO, _MO, _NA, _I, - 0xa4, 0xcb, 0xc8, 0xbc, 0xa4, 0xa4, - 0x56, FUKUSI_1, _NI, _TO, _MO, _NA, _U, - 0xa4, 0xcb, 0xc8, 0xbc, 0xa4, 0xa6, - 0x22, MEISI_8, _HU, _U, - 0xc9, 0xf7, - 0x22, MEISI_11, _MA, _E, - 0xc1, 0xb0, - 0x00 -}; +static u_char sahen_stb[] = { + 0x44, MEISI_6, _A, _TU, _KA, _I, + 0xb0, 0xb7, 0xa4, 0xa4, + 0x1a, MEISI_6, _KA, + 0xb2, 0xbd, + 0x12, MEISI_11, _GO, + 0xb8, 0xe5, + 0x22, MEISI_11, _GO, _TO, + 0xcb, 0xe8, + 0x32, MEISI_11, _ZI, _XYO, _U, + 0xbe, 0xe5, + 0x32, MEISI_11, _TI, _XYU, _U, + 0xc3, 0xe6, + 0x22, MEISI_8, _TE, _KI, + 0xc5, 0xaa, + 0x56, FUKUSI_1, _NI, _TO, _MO, _NA, _I, + 0xa4, 0xcb, 0xc8, 0xbc, 0xa4, 0xa4, + 0x56, FUKUSI_1, _NI, _TO, _MO, _NA, _U, + 0xa4, 0xcb, 0xc8, 0xbc, 0xa4, 0xa6, + 0x22, MEISI_8, _HU, _U, + 0xc9, 0xf7, + 0x22, MEISI_11, _MA, _E, + 0xc1, 0xb0, + 0x00}; -static u_char human_stb[] = { - 0x24, MEISI_1, _SA, _NN, - 0xa4, 0xb5, 0xa4, 0xf3, - 0x00 -}; +static u_char human_stb[] = { + 0x24, MEISI_1, _SA, _NN, + 0xa4, 0xb5, 0xa4, 0xf3, + 0x00}; -static u_char ippan_stb[] = { - 0x56, FUKUSI_1, _NI, _TO, _MO, _NA, _I, - 0xa4, 0xcb, 0xc8, 0xbc, 0xa4, 0xa4, - 0x56, FUKUSI_1, _NI, _TO, _MO, _NA, _U, - 0xa4, 0xcb, 0xc8, 0xbc, 0xa4, 0xa6, - 0x00 -}; +static u_char ippan_stb[] = { + 0x56, FUKUSI_1, _NI, _TO, _MO, _NA, _I, + 0xa4, 0xcb, 0xc8, 0xbc, 0xa4, 0xa4, + 0x56, FUKUSI_1, _NI, _TO, _MO, _NA, _U, + 0xa4, 0xcb, 0xc8, 0xbc, 0xa4, 0xa6, + 0x00}; -u_char *stbadr[] = { - 0, - ippan_stb, ippan_stb, ippan_stb, meisi_stb, sahen_stb, - sahen_stb, sahen_stb, meisi_stb, meisi_stb, meisi_stb, - ippan_stb, ippan_stb, human_stb, ippan_stb, ippan_stb, - ippan_stb, ippan_stb, ippan_stb, 0, 0, - name_stb, name_stb, 0, timei_stb, +u_char* stbadr[] = { + 0, + ippan_stb, + ippan_stb, + ippan_stb, + meisi_stb, + sahen_stb, + sahen_stb, + sahen_stb, + meisi_stb, + meisi_stb, + meisi_stb, + ippan_stb, + ippan_stb, + human_stb, + ippan_stb, + ippan_stb, + ippan_stb, + ippan_stb, + ippan_stb, + 0, + 0, + name_stb, + name_stb, + 0, + timei_stb, }; diff --git a/lib/sj3core/stttbl.c b/lib/sj3core/stttbl.c index 2ed5182..9781af0 100644 --- a/lib/sj3core/stttbl.c +++ b/lib/sj3core/stttbl.c @@ -1,6 +1,6 @@ /* * Copyright (c) 1991-1994 Sony Corporation - * + * * Permission is hereby granted, free of charge, to any person obtaining * a copy of this software and associated documentation files (the * "Software"), to deal in the Software without restriction, including @@ -8,10 +8,10 @@ * distribute, sublicense, and/or sell copies of the Software, and to * permit persons to whom the Software is furnished to do so, subject to * the following conditions: - * + * * The above copyright notice and this permission notice shall be * included in all copies or substantial portions of the Software. - * + * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. @@ -19,7 +19,7 @@ * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR * THE USE OR OTHER DEALINGS IN THE SOFTWARE. - * + * * Except as contained in this notice, the name of Sony Corporation * shall not be used in advertising or otherwise to promote the sale, use * or other dealings in this Software without prior written authorization @@ -28,63 +28,44 @@ */ /* - * $SonyRCSfile: stttbl.c,v $ - * $SonyRevision: 1.1 $ + * $SonyRCSfile: stttbl.c,v $ + * $SonyRevision: 1.1 $ * $SonyDate: 1994/06/03 08:02:37 $ */ - - - #include "sj_rename.h" #include "sj_typedef.h" #include "sj_kanakan.h" -static u_char o_settou[] = { - 0xA1, 0xb8, 0xe6, 0xa4, 0xaa -}; +static u_char o_settou[] = { + 0xA1, 0xb8, 0xe6, 0xa4, 0xaa}; -static u_char go_settou[] = { - 0xA1, 0xb8, 0xe6, 0xa4, 0xb4 -}; +static u_char go_settou[] = { + 0xA1, 0xb8, 0xe6, 0xa4, 0xb4}; -static u_char dai_settou[] = { - 0x22, 0xc2, 0xe8, 0xc2, 0xe8 -}; +static u_char dai_settou[] = { + 0x22, 0xc2, 0xe8, 0xc2, 0xe8}; -static u_char kigou_settou[] = { - 0x01 -}; +static u_char kigou_settou[] = { + 0x01}; +u_char* settou_ptr[] = { + NULL, o_settou, go_settou, dai_settou, kigou_settou}; +u_char scncttbl[2][24] = { + { -u_char *settou_ptr[] = { - NULL, o_settou, go_settou, dai_settou, kigou_settou -}; + 0x48, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x18, 0x18, 0x00, 0x00, 0x1f, 0xf0, 0x00, 0xff, + 0x00, 0x1f, 0xf0, 0x00, 0xff, 0x00, 0x00, 0x00}, -u_char scncttbl[2][24] = { - { - - 0x48, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + { - - 0x18, 0x18, 0x00, 0x00, 0x1f, 0xf0, 0x00, 0xff, + 0x22, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - - 0x00, 0x1f, 0xf0, 0x00, 0xff, 0x00, 0x00, 0x00 - }, + 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - { - - 0x22, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - - - 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - - - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 - } -}; + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}}; diff --git a/lib/sj3core/study.c b/lib/sj3core/study.c index f116deb..6ae5bcc 100644 --- a/lib/sj3core/study.c +++ b/lib/sj3core/study.c @@ -1,6 +1,6 @@ /* * Copyright (c) 1991-1994 Sony Corporation - * + * * Permission is hereby granted, free of charge, to any person obtaining * a copy of this software and associated documentation files (the * "Software"), to deal in the Software without restriction, including @@ -8,10 +8,10 @@ * distribute, sublicense, and/or sell copies of the Software, and to * permit persons to whom the Software is furnished to do so, subject to * the following conditions: - * + * * The above copyright notice and this permission notice shall be * included in all copies or substantial portions of the Software. - * + * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. @@ -19,7 +19,7 @@ * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR * THE USE OR OTHER DEALINGS IN THE SOFTWARE. - * + * * Except as contained in this notice, the name of Sony Corporation * shall not be used in advertising or otherwise to promote the sale, use * or other dealings in this Software without prior written authorization @@ -28,8 +28,8 @@ */ /* - * $SonyRCSfile: study.c,v $ - * $SonyRevision: 1.1 $ + * $SonyRCSfile: study.c,v $ + * $SonyRevision: 1.1 $ * $SonyDate: 1994/06/03 08:02:38 $ */ @@ -37,96 +37,94 @@ #include "sj_kanakan.h" -int -study(STDYOUT *stdy) -{ - STDYOUT outp; - STDYIN *p1; - STDYIN *p2; - int wcnt; - int ret; - TypeDicSeg seg; - TypeDicOfs ofs; - TypeStyNum nm; - TypeStyNum wi; +int study(STDYOUT* stdy) { + STDYOUT outp; + STDYIN* p1; + STDYIN* p2; + int wcnt; + int ret; + TypeDicSeg seg; + TypeDicOfs ofs; + TypeStyNum nm; + TypeStyNum wi; - if (!StudyExist()) return STUDYNODICT; + if(!StudyExist()) return STUDYNODICT; - memcpy((u_char *)&outp, (u_char *)stdy, sizeof(outp)); + memcpy((u_char*)&outp, (u_char*)stdy, sizeof(outp)); - if (outp.stdy1.offset == 0) return STUDYNOTSTUDY; + if(outp.stdy1.offset == 0) return STUDYNOTSTUDY; p1 = srchstdy(outp.stdy1.seg, outp.stdy1.offset, outp.stdy1.dicid); - if (p1) { - nm = p1 -> styno; + if(p1) { + nm = p1->styno; - for (wcnt = STUDYCOUNT, p2 = STUDYDICT ; wcnt-- ; p2++) { - if (p2 -> styno < nm) p2 -> styno++; + for(wcnt = STUDYCOUNT, p2 = STUDYDICT; wcnt--; p2++) { + if(p2->styno < nm) p2->styno++; } - p1 -> styno = 1; + p1->styno = 1; - if (outp.sttfg) p1 -> sttkj = outp.stdy1.sttkj; - if (outp.ka_fg) p1 -> ka_kj = outp.stdy1.ka_kj; + if(outp.sttfg) p1->sttkj = outp.stdy1.sttkj; + if(outp.ka_fg) p1->ka_kj = outp.stdy1.ka_kj; - p1 -> nmflg = outp.stdy1.nmflg; + p1->nmflg = outp.stdy1.nmflg; putstydic(); return STUDYNORMEND; } + if(STUDYCOUNT >= STUDYMAX) { - if (STUDYCOUNT >= STUDYMAX) { - - p1 = STUDYDICT; p2 = NULL; wi = 0; - for (wcnt = STUDYMAX ; wcnt-- ; p1++) { - if ((nm = p1 -> styno + 1) > wi) { + p1 = STUDYDICT; + p2 = NULL; + wi = 0; + for(wcnt = STUDYMAX; wcnt--; p1++) { + if((nm = p1->styno + 1) > wi) { wi = nm; p2 = p1; } - p1 -> styno = nm; + p1->styno = nm; } - if (p2) { - mvmemi((u_char *)(p2 + 1), (u_char *)p2, - (STUDYTAIL - p2) * STUDYRECSIZE); + if(p2) { + mvmemi((u_char*)(p2 + 1), (u_char*)p2, + (STUDYTAIL - p2) * STUDYRECSIZE); STUDYCOUNT -= 1; - } - else + } else return STUDYERROR; ret = STUDYFULLAREA; - } - else { + } else { p1 = STUDYDICT; - for (wcnt = STUDYCOUNT ; wcnt-- ; p1++) p1 -> styno++; + for(wcnt = STUDYCOUNT; wcnt--; p1++) p1->styno++; ret = STUDYNORMEND; } - p1 = STUDYDICT; + p1 = STUDYDICT; seg = outp.stdy1.seg; - for (wcnt = STUDYCOUNT ; wcnt && (p1 -> seg < seg) ; ) { - wcnt--; p1++; - } - - ofs = outp.stdy1.offset; - while (wcnt-- && (p1 -> seg == seg)) { - if (p1 -> offset > ofs) break; + for(wcnt = STUDYCOUNT; wcnt && (p1->seg < seg);) { + wcnt--; p1++; } - mvmemd((u_char *)(STUDYTAIL - 1), (u_char *)STUDYTAIL, - (u_char *)(STUDYTAIL - 1) - (u_char *)p1); - p1 -> offset = outp.stdy1.offset; - p1 -> seg = outp.stdy1.seg; - p1 -> dicid = outp.stdy1.dicid; - p1 -> styno = 1; - p1 -> sttkj = (outp.sttfg) ? outp.stdy1.sttkj : 0; - p1 -> ka_kj = (outp.ka_fg) ? outp.stdy1.ka_kj : 0; - p1 -> nmflg = outp.stdy1.nmflg; + ofs = outp.stdy1.offset; + while(wcnt-- && (p1->seg == seg)) { + if(p1->offset > ofs) break; + p1++; + } + + mvmemd((u_char*)(STUDYTAIL - 1), (u_char*)STUDYTAIL, + (u_char*)(STUDYTAIL - 1) - (u_char*)p1); + p1->offset = outp.stdy1.offset; + p1->seg = outp.stdy1.seg; + p1->dicid = outp.stdy1.dicid; + p1->styno = 1; + p1->sttkj = (outp.sttfg) ? outp.stdy1.sttkj : 0; + p1->ka_kj = (outp.ka_fg) ? outp.stdy1.ka_kj : 0; + p1->nmflg = outp.stdy1.nmflg; STUDYCOUNT += 1; putstydic(); @@ -134,54 +132,51 @@ study(STDYOUT *stdy) return ret; } -STDYIN * -srchstdy(TypeDicSeg seg, TypeDicOfs ofs, TypeDicID dicid) -{ +STDYIN* +srchstdy(TypeDicSeg seg, TypeDicOfs ofs, TypeDicID dicid) { int high; int mid; int low; - STDYIN *ptr; + STDYIN* ptr; + if(!StudyExist()) return NULL; - if (!StudyExist()) return NULL; + if(!STUDYCOUNT || !ofs) return NULL; - if (!STUDYCOUNT || !ofs) return NULL; - - low = 0; + low = 0; high = STUDYCOUNT - 1; - for ( ; ; ) { + for(;;) { mid = ((low + high) >> 1); - if (STUDYDICT[mid].seg > seg) + if(STUDYDICT[mid].seg > seg) high = mid - 1; - else if (STUDYDICT[mid].seg < seg) + else if(STUDYDICT[mid].seg < seg) low = mid + 1; else break; - if (low > high) return NULL; + if(low > high) return NULL; } low = mid + 1; ptr = &STUDYDICT[mid]; - while (ptr -> seg == seg) { - if (ptr -> offset < ofs) break; - if (ptr -> dicid == dicid && ptr -> offset == ofs) return ptr; - if (!mid--) break; + while(ptr->seg == seg) { + if(ptr->offset < ofs) break; + if(ptr->dicid == dicid && ptr->offset == ofs) return ptr; + if(!mid--) break; ptr--; } ptr = &STUDYDICT[low]; mid = STUDYCOUNT - low; - while (mid-- && ptr -> seg == seg) { - if (ptr -> offset > ofs) break; - if (ptr -> dicid == dicid && ptr -> offset == ofs) return ptr; + while(mid-- && ptr->seg == seg) { + if(ptr->offset > ofs) break; + if(ptr->dicid == dicid && ptr->offset == ofs) return ptr; ptr++; } return NULL; } - diff --git a/lib/sj3core/suujitbl.c b/lib/sj3core/suujitbl.c index c032d7a..daedcf5 100644 --- a/lib/sj3core/suujitbl.c +++ b/lib/sj3core/suujitbl.c @@ -1,6 +1,6 @@ /* * Copyright (c) 1991-1994 Sony Corporation - * + * * Permission is hereby granted, free of charge, to any person obtaining * a copy of this software and associated documentation files (the * "Software"), to deal in the Software without restriction, including @@ -8,10 +8,10 @@ * distribute, sublicense, and/or sell copies of the Software, and to * permit persons to whom the Software is furnished to do so, subject to * the following conditions: - * + * * The above copyright notice and this permission notice shall be * included in all copies or substantial portions of the Software. - * + * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. @@ -19,7 +19,7 @@ * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR * THE USE OR OTHER DEALINGS IN THE SOFTWARE. - * + * * Except as contained in this notice, the name of Sony Corporation * shall not be used in advertising or otherwise to promote the sale, use * or other dealings in this Software without prior written authorization @@ -28,14 +28,11 @@ */ /* - * $SonyRCSfile: suujitbl.c,v $ - * $SonyRevision: 1.1 $ + * $SonyRCSfile: suujitbl.c,v $ + * $SonyRevision: 1.1 $ * $SonyDate: 1994/06/03 08:02:39 $ */ - - - #include "sj_const.h" #include "sj_rename.h" #include "sj_typedef.h" @@ -44,153 +41,126 @@ #include "sj_kanakan.h" -#define NA SJTBLNARABIAF -#define NY SJTBLNYOMIF -#define NN SJTBLNNARABIF -#define NS SJTBLNNANSUUF +#define NA SJTBLNARABIAF +#define NY SJTBLNYOMIF +#define NN SJTBLNNARABIF +#define NS SJTBLNNANSUUF +u_char suuji_tbl[] = { + N_0, _NIL, _NIL, _NUM0 | NA, 0x00, 0x00, + N_1, _NIL, _NIL, _NUM1 | NA, 0xec, 0x07, + N_2, _NIL, _NIL, _NUM2 | NA, 0xec, 0x07, + N_3, _NIL, _NIL, _NUM3 | NA, 0xff, 0x07, + N_4, _NIL, _NIL, _NUM4 | NA, 0xec, 0x07, + N_5, _NIL, _NIL, _NUM5 | NA, 0xec, 0x07, + N_6, _NIL, _NIL, _NUM6 | NA, 0xec, 0xc7, + N_7, _NIL, _NIL, _NUM7 | NA, 0xec, 0x07, + N_8, _NIL, _NIL, _NUM8 | NA, 0xec, 0xc7, + N_9, _NIL, _NIL, _NUM9 | NA, 0xec, 0x07, + _I, _TI, _NIL, _NUM1, 0x00, 0x05, + _I, _XTU, _NIL, _NUM1S | NY, 0x20, 0x02, + _KI, _XYU, _U, _NUM9, 0xec, 0x07, + _KU, _NIL, _NIL, _NUM9 | NY, 0x00, 0x00, + _GO, _NIL, _NIL, _NUM5, 0xec, 0x07, + _GO, _U, _NIL, _NUM5 | NN, 0x00, 0x00, + _SA, _NN, _NIL, _NUM3, 0xd3, 0x07, + _SI, _NIL, _NIL, _NUM4 | NY, 0x80, 0x00, + _SI, _I, _NIL, _NUM4 | NN, 0x00, 0x00, + _SI, _TI, _NIL, _NUM7, 0xec, 0x07, + _SU, _U, _NIL, _NUMS | NY | NS, 0xec, 0x07, + _ZE, _RO, _NIL, _NUM0 | NN, 0x00, 0x00, + _NA, _NA, _NIL, _NUM7, 0xec, 0x07, + _NA, _NN, _NIL, _NUMN | NY | NS, 0xf3, 0x07, + _NI, _NIL, _NIL, _NUM2, 0xec, 0x07, + _NI, _I, _NIL, _NUM2 | NN, 0x00, 0x00, + _HA, _TI, _NIL, _NUM8, 0xc0, 0x05, + _HA, _XTU, _NIL, _NUM8 | NY, 0x20, 0xc2, + _MA, _RU, _NIL, _NUM0 | NN, 0x00, 0x00, + _YO, _NIL, _NIL, _NUM4 | NY, 0x00, 0x00, + _YO, _NN, _NIL, _NUM4, 0xec, 0x07, + _RE, _I, _NIL, _NUM0 | NN, 0xec, 0x00, + _RO, _KU, _NIL, _NUM6, 0xe0, 0x07, + _RO, _XTU, _NIL, _NUM6 | NY, 0x00, 0xc2, + 0}; +u_char kurai1_tbl[] = { + _ZI, _XYU, _U, (1 << 4) + 0 + KR1TBLTOPF, 0x05, + _ZI, _XYU, _XTU, (1 << 4) + 1 + KR1TBLTOPF, 0x02, + _SE, _NN, _NIL, (3 << 4) + 2 + KR1TBLTOPF, 0x07, + _ZE, _NN, _NIL, (3 << 4) + 3, 0x05, + _HI, _XYA, _KU, (2 << 4) + 4 + KR1TBLTOPF, 0x07, + _HI, _XYA, _XTU, (2 << 4) + 5 + KR1TBLTOPF, 0x02, + _BI, _XYA, _KU, (2 << 4) + 6, 0x07, + _BI, _XYA, _XTU, (2 << 4) + 7, 0x00, + _PI, _XYA, _KU, (2 << 4) + 8, 0x07, + _PI, _XYA, _XTU, (2 << 4) + 9, 0x00, + 0}; -u_char suuji_tbl[] = { - N_0,_NIL,_NIL, _NUM0 | NA, 0x00, 0x00, - N_1,_NIL,_NIL, _NUM1 | NA, 0xec, 0x07, - N_2,_NIL,_NIL, _NUM2 | NA, 0xec, 0x07, - N_3,_NIL,_NIL, _NUM3 | NA, 0xff, 0x07, - N_4,_NIL,_NIL, _NUM4 | NA, 0xec, 0x07, - N_5,_NIL,_NIL, _NUM5 | NA, 0xec, 0x07, - N_6,_NIL,_NIL, _NUM6 | NA, 0xec, 0xc7, - N_7,_NIL,_NIL, _NUM7 | NA, 0xec, 0x07, - N_8,_NIL,_NIL, _NUM8 | NA, 0xec, 0xc7, - N_9,_NIL,_NIL, _NUM9 | NA, 0xec, 0x07, - _I, _TI, _NIL, _NUM1, 0x00, 0x05, - _I, _XTU,_NIL, _NUM1S | NY, 0x20, 0x02, - _KI,_XYU,_U, _NUM9, 0xec, 0x07, - _KU,_NIL,_NIL, _NUM9 | NY, 0x00, 0x00, - _GO,_NIL,_NIL, _NUM5, 0xec, 0x07, - _GO,_U, _NIL, _NUM5 | NN, 0x00, 0x00, - _SA,_NN, _NIL, _NUM3, 0xd3, 0x07, - _SI,_NIL,_NIL, _NUM4 | NY, 0x80, 0x00, - _SI,_I, _NIL, _NUM4 | NN, 0x00, 0x00, - _SI,_TI, _NIL, _NUM7, 0xec, 0x07, - _SU,_U, _NIL, _NUMS | NY | NS, 0xec, 0x07, - _ZE,_RO, _NIL, _NUM0 | NN, 0x00, 0x00, - _NA,_NA, _NIL, _NUM7, 0xec, 0x07, - _NA,_NN, _NIL, _NUMN | NY | NS, 0xf3, 0x07, - _NI,_NIL,_NIL, _NUM2, 0xec, 0x07, - _NI,_I, _NIL, _NUM2 | NN, 0x00, 0x00, - _HA,_TI, _NIL, _NUM8, 0xc0, 0x05, - _HA,_XTU,_NIL, _NUM8 | NY, 0x20, 0xc2, - _MA,_RU, _NIL, _NUM0 | NN, 0x00, 0x00, - _YO,_NIL,_NIL, _NUM4 | NY, 0x00, 0x00, - _YO,_NN, _NIL, _NUM4, 0xec, 0x07, - _RE,_I, _NIL, _NUM0 | NN, 0xec, 0x00, - _RO,_KU, _NIL, _NUM6, 0xe0, 0x07, - _RO,_XTU,_NIL, _NUM6 | NY, 0x00, 0xc2, - 0 -}; +u_char kurai2_tbl[] = { + _O, _KU, _NIL, (2 << 4) + 13, + _TI, _XYO, _U, (3 << 4) + 14, + _MA, _NN, _NIL, (1 << 4) + 15, + 0}; +u_char num1tbl[] = { + 0xa3, 0xb0, + 0xa3, 0xb1, + 0xa3, 0xb2, + 0xa3, 0xb3, + 0xa3, 0xb4, + 0xa3, 0xb5, + 0xa3, 0xb6, + 0xa3, 0xb7, + 0xa3, 0xb8, + 0xa3, 0xb9, + 0xa3, 0xb1, + 0xbf, 0xf4, + 0xb2, 0xbf}; +u_char num2tbl[] = { + 0xa1, 0xbb, + 0xb0, 0xec, + 0xc6, 0xf3, + 0xbb, 0xb0, + 0xbb, 0xcd, + 0xb8, 0xde, + 0xcf, 0xbb, + 0xbc, 0xb7, + 0xc8, 0xac, + 0xb6, 0xe5, + 0xb0, 0xec, + 0xbf, 0xf4, + 0xb2, 0xbf}; -u_char kurai1_tbl[] = { - _ZI,_XYU,_U, (1<<4)+0+KR1TBLTOPF, 0x05, - _ZI,_XYU,_XTU, (1<<4)+1+KR1TBLTOPF, 0x02, - _SE,_NN, _NIL, (3<<4)+2+KR1TBLTOPF, 0x07, - _ZE,_NN, _NIL, (3<<4)+3, 0x05, - _HI,_XYA,_KU, (2<<4)+4+KR1TBLTOPF, 0x07, - _HI,_XYA,_XTU, (2<<4)+5+KR1TBLTOPF, 0x02, - _BI,_XYA,_KU, (2<<4)+6, 0x07, - _BI,_XYA,_XTU, (2<<4)+7, 0x00, - _PI,_XYA,_KU, (2<<4)+8, 0x07, - _PI,_XYA,_XTU, (2<<4)+9, 0x00, - 0 -}; +u_char num3tbl[] = { + 0xce, 0xed, + 0xb0, 0xed, + 0xc6, 0xf5, + 0xbb, 0xb2, + 0xbb, 0xcd, + 0xb8, 0xde, + 0xcf, 0xbb, + 0xbc, 0xb7, + 0xc8, 0xac, + 0xb6, 0xe5, + 0xb0, 0xed, + 0xbf, 0xf4, + 0xb2, 0xbf}; +u_char num4tbl[] = { + 0xc0, 0xe9, + 0xc9, 0xb4, + 0xbd, 0xbd, + 0}; +u_char num5tbl[] = { + 0xc0, 0xe9, + 0xc9, 0xb4, + 0xbd, 0xa6, + 0}; -u_char kurai2_tbl[] = { - _O, _KU, _NIL, (2<<4)+13, - _TI,_XYO,_U, (3<<4)+14, - _MA,_NN, _NIL, (1<<4)+15, - 0 -}; - - - -u_char num1tbl[] = { - 0xa3, 0xb0, - 0xa3, 0xb1, - 0xa3, 0xb2, - 0xa3, 0xb3, - 0xa3, 0xb4, - 0xa3, 0xb5, - 0xa3, 0xb6, - 0xa3, 0xb7, - 0xa3, 0xb8, - 0xa3, 0xb9, - 0xa3, 0xb1, - 0xbf, 0xf4, - 0xb2, 0xbf -}; - - - -u_char num2tbl[] = { - 0xa1, 0xbb, - 0xb0, 0xec, - 0xc6, 0xf3, - 0xbb, 0xb0, - 0xbb, 0xcd, - 0xb8, 0xde, - 0xcf, 0xbb, - 0xbc, 0xb7, - 0xc8, 0xac, - 0xb6, 0xe5, - 0xb0, 0xec, - 0xbf, 0xf4, - 0xb2, 0xbf -}; - - - -u_char num3tbl[] = { - 0xce, 0xed, - 0xb0, 0xed, - 0xc6, 0xf5, - 0xbb, 0xb2, - 0xbb, 0xcd, - 0xb8, 0xde, - 0xcf, 0xbb, - 0xbc, 0xb7, - 0xc8, 0xac, - 0xb6, 0xe5, - 0xb0, 0xed, - 0xbf, 0xf4, - 0xb2, 0xbf -}; - - - -u_char num4tbl[] = { - 0xc0, 0xe9, - 0xc9, 0xb4, - 0xbd, 0xbd, - 0 -}; - - - -u_char num5tbl[] = { - 0xc0, 0xe9, - 0xc9, 0xb4, - 0xbd, 0xa6, - 0 -}; - - - -u_char num6tbl[] = { - 0xc3, 0xfb, - 0xb2, 0xaf, - 0xcb, 0xfc, - 0 -}; +u_char num6tbl[] = { + 0xc3, 0xfb, + 0xb2, 0xaf, + 0xcb, 0xfc, + 0}; diff --git a/lib/sj3core/terminat.c b/lib/sj3core/terminat.c index cfe8219..20d9df8 100644 --- a/lib/sj3core/terminat.c +++ b/lib/sj3core/terminat.c @@ -1,6 +1,6 @@ /* * Copyright (c) 1991-1994 Sony Corporation - * + * * Permission is hereby granted, free of charge, to any person obtaining * a copy of this software and associated documentation files (the * "Software"), to deal in the Software without restriction, including @@ -8,10 +8,10 @@ * distribute, sublicense, and/or sell copies of the Software, and to * permit persons to whom the Software is furnished to do so, subject to * the following conditions: - * + * * The above copyright notice and this permission notice shall be * included in all copies or substantial portions of the Software. - * + * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. @@ -19,7 +19,7 @@ * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR * THE USE OR OTHER DEALINGS IN THE SOFTWARE. - * + * * Except as contained in this notice, the name of Sony Corporation * shall not be used in advertising or otherwise to promote the sale, use * or other dealings in this Software without prior written authorization @@ -28,45 +28,38 @@ */ /* - * $SonyRCSfile: terminat.c,v $ - * $SonyRevision: 1.1 $ + * $SonyRCSfile: terminat.c,v $ + * $SonyRevision: 1.1 $ * $SonyDate: 1994/06/03 08:02:40 $ */ - - #include "sj_kcnv.h" #include "sj_right.h" #include "sj_kanakan.h" -int -terminate(TypeCnct right, u_char *yomi) -{ - u_char ch; +int terminate(TypeCnct right, u_char* yomi) { + u_char ch; - - if ((yomi > cnvstart) && (Chrtbl[*(yomi - 1)] & NUMBER)) + if((yomi > cnvstart) && (Chrtbl[*(yomi - 1)] & NUMBER)) return TRUE; ch = *yomi; - if (Termtbl[right] & T_SHUUJO) { + if(Termtbl[right] & T_SHUUJO) { - if (!ch) return TRUE; + if(!ch) return TRUE; - if (Chrtbl[ch] & FZKTOP) return FALSE; + if(Chrtbl[ch] & FZKTOP) return FALSE; - if (!isdpnd(ch)) return SHU; + if(!isdpnd(ch)) return SHU; } - if (Termtbl[right] & T_KANOU) { + if(Termtbl[right] & T_KANOU) { - if (ch && (Chrtbl[ch] & FZKTOP)) return FALSE; + if(ch && (Chrtbl[ch] & FZKTOP)) return FALSE; - if (!isdpnd(ch)) return TRUE; + if(!isdpnd(ch)) return TRUE; } - return FALSE; } - diff --git a/lib/sj3core/termtbl.c b/lib/sj3core/termtbl.c index 0df8d61..836464e 100644 --- a/lib/sj3core/termtbl.c +++ b/lib/sj3core/termtbl.c @@ -1,6 +1,6 @@ /* * Copyright (c) 1991-1994 Sony Corporation - * + * * Permission is hereby granted, free of charge, to any person obtaining * a copy of this software and associated documentation files (the * "Software"), to deal in the Software without restriction, including @@ -8,10 +8,10 @@ * distribute, sublicense, and/or sell copies of the Software, and to * permit persons to whom the Software is furnished to do so, subject to * the following conditions: - * + * * The above copyright notice and this permission notice shall be * included in all copies or substantial portions of the Software. - * + * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. @@ -19,7 +19,7 @@ * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR * THE USE OR OTHER DEALINGS IN THE SOFTWARE. - * + * * Except as contained in this notice, the name of Sony Corporation * shall not be used in advertising or otherwise to promote the sale, use * or other dealings in this Software without prior written authorization @@ -28,13 +28,11 @@ */ /* - * $SonyRCSfile: termtbl.c,v $ - * $SonyRevision: 1.1 $ + * $SonyRCSfile: termtbl.c,v $ + * $SonyRevision: 1.1 $ * $SonyDate: 1994/06/03 08:02:42 $ */ - - #include "sj_rename.h" #include "sj_typedef.h" #include "sj_const.h" @@ -42,286 +40,285 @@ #include "sj_kanakan.h" -u_char termtbl[] = { - 0, - T_KANOU + P_JOSHI_B, - T_KANOU + P_JOSHI_A, - T_KANOU + P_JOSHI_C, - T_KANOU + P_JOSHI_B, - T_KANOU + P_JOSHI_C, - T_KANOU + P_JOSHI_C, - T_KANOU + P_JOSHI_B, - T_KANOU + 8, - T_KANOU + P_JOSHI_B, +u_char termtbl[] = { + 0, + T_KANOU + P_JOSHI_B, + T_KANOU + P_JOSHI_A, + T_KANOU + P_JOSHI_C, + T_KANOU + P_JOSHI_B, + T_KANOU + P_JOSHI_C, + T_KANOU + P_JOSHI_C, + T_KANOU + P_JOSHI_B, + T_KANOU + 8, + T_KANOU + P_JOSHI_B, - T_KANOU + P_JOSHI_C, - T_KANOU + P_JOSHI_C, - T_KANOU + P_JOSHI_B, - T_KANOU + P_JOSHI_C, - T_KANOU + P_JOSHI_E, - T_KANOU + P_JOSHI_B, - 0 + P_FUKA, - 0 + P_FUKA, - T_KANOU + P_RENYOU_F, - T_KANOU + P_RENYOU_F, + T_KANOU + P_JOSHI_C, + T_KANOU + P_JOSHI_C, + T_KANOU + P_JOSHI_B, + T_KANOU + P_JOSHI_C, + T_KANOU + P_JOSHI_E, + T_KANOU + P_JOSHI_B, + 0 + P_FUKA, + 0 + P_FUKA, + T_KANOU + P_RENYOU_F, + T_KANOU + P_RENYOU_F, - T_KANOU + P_RENYOU_F, - T_KANOU + P_RENYOU_F, - T_KANOU + P_RENYOU_F, - T_KANOU + P_RENYOU_F, - T_KANOU + P_RENYOU_F, - 0 + P_FUKA, - T_KANOU + P_RENYOU_J, - T_KANOU + P_RENYOU_J, - T_KANOU + P_RENYOU_J, - T_KANOU + P_RENYOU_J, + T_KANOU + P_RENYOU_F, + T_KANOU + P_RENYOU_F, + T_KANOU + P_RENYOU_F, + T_KANOU + P_RENYOU_F, + T_KANOU + P_RENYOU_F, + 0 + P_FUKA, + T_KANOU + P_RENYOU_J, + T_KANOU + P_RENYOU_J, + T_KANOU + P_RENYOU_J, + T_KANOU + P_RENYOU_J, - T_KANOU + P_RENYOU_M, - T_KANOU + P_RENYOU_M, - T_KANOU + P_RENYOU_M, - T_KANOU + P_RENYOU_M, - T_KANOU + P_RENYOU_M, - T_KANOU + P_RENYOU_M, - 0, - 0, - 0, - T_KANOU + P_RENYOU_J, + T_KANOU + P_RENYOU_M, + T_KANOU + P_RENYOU_M, + T_KANOU + P_RENYOU_M, + T_KANOU + P_RENYOU_M, + T_KANOU + P_RENYOU_M, + T_KANOU + P_RENYOU_M, + 0, + 0, + 0, + T_KANOU + P_RENYOU_J, - T_KANOU + P_JOSHI_B, - T_KANOU + P_JOSHI_C, - T_KANOU + P_RENYOU_J, - 0 + P_FUKA, - 0 + P_FUKA, - 0 + P_FUKA, - 0 + P_FUKA, - 0 + P_FUKA, - 0 + P_FUKA, - 0 + P_FUKA, + T_KANOU + P_JOSHI_B, + T_KANOU + P_JOSHI_C, + T_KANOU + P_RENYOU_J, + 0 + P_FUKA, + 0 + P_FUKA, + 0 + P_FUKA, + 0 + P_FUKA, + 0 + P_FUKA, + 0 + P_FUKA, + 0 + P_FUKA, - T_KANOU + P_RENYOU_F, - T_KANOU + P_RENYOU_F, - T_KANOU + P_RENYOU_F, - T_KANOU + P_RENYOU_F, - T_KANOU + P_RENYOU_F, - T_KANOU + P_RENYOU_F, - T_KANOU + P_RENYOU_F, - T_KANOU + P_RENYOU_F, - T_KANOU + P_RENYOU_F, - T_KANOU + P_RENYOU_F, + T_KANOU + P_RENYOU_F, + T_KANOU + P_RENYOU_F, + T_KANOU + P_RENYOU_F, + T_KANOU + P_RENYOU_F, + T_KANOU + P_RENYOU_F, + T_KANOU + P_RENYOU_F, + T_KANOU + P_RENYOU_F, + T_KANOU + P_RENYOU_F, + T_KANOU + P_RENYOU_F, + T_KANOU + P_RENYOU_F, - T_KANOU + P_RENYOU_F, - T_KANOU + P_RENYOU_F, - T_KANOU + P_RENYOU_F, - T_KANOU + P_RENYOU_F, - T_KANOU + P_RENYOU_F, - T_KANOU + P_RENYOU_F, - T_KANOU + P_RENYOU_F, - 0 + P_FUKA, - T_KANOU + P_JOSHI_C, - T_KANOU + P_RENYOU_F, + T_KANOU + P_RENYOU_F, + T_KANOU + P_RENYOU_F, + T_KANOU + P_RENYOU_F, + T_KANOU + P_RENYOU_F, + T_KANOU + P_RENYOU_F, + T_KANOU + P_RENYOU_F, + T_KANOU + P_RENYOU_F, + 0 + P_FUKA, + T_KANOU + P_JOSHI_C, + T_KANOU + P_RENYOU_F, - T_KANOU + P_RENYOU_F, - T_KANOU + P_RENYOU_F, - T_KANOU + P_RENYOU_F, - T_KANOU + P_RENYOU_F, - T_SHUUJO+ P_SHUUSI, - T_KANOU + P_SHUUSI, - T_KANOU + P_SHUUSI, - T_KANOU + P_SHUUSI, - T_KANOU + P_SHUUSI, - T_KANOU + P_SHUUSI, + T_KANOU + P_RENYOU_F, + T_KANOU + P_RENYOU_F, + T_KANOU + P_RENYOU_F, + T_KANOU + P_RENYOU_F, + T_SHUUJO + P_SHUUSI, + T_KANOU + P_SHUUSI, + T_KANOU + P_SHUUSI, + T_KANOU + P_SHUUSI, + T_KANOU + P_SHUUSI, + T_KANOU + P_SHUUSI, - T_KANOU + P_SHUUSI, - T_KANOU + P_SHUUSI, - T_KANOU + RENTAI + 8, - T_KANOU + RENTAI + 10, - T_KANOU + RENTAI + 7, - T_KANOU + P_SHUUSI, - T_KANOU + RENTAI + 7, - T_KANOU + RENTAI + 6, - T_KANOU + P_SHUUSI, - T_KANOU + RENTAI + 7, + T_KANOU + P_SHUUSI, + T_KANOU + P_SHUUSI, + T_KANOU + RENTAI + 8, + T_KANOU + RENTAI + 10, + T_KANOU + RENTAI + 7, + T_KANOU + P_SHUUSI, + T_KANOU + RENTAI + 7, + T_KANOU + RENTAI + 6, + T_KANOU + P_SHUUSI, + T_KANOU + RENTAI + 7, - T_KANOU + RENTAI + 6, - T_KANOU + RENTAI + 6, - T_SHUUJO+ RENTAI + 6, - T_KANOU + RENTAI + 6, - T_KANOU + RENTAI + 7, - T_KANOU + RENTAI + 6, - T_KANOU + RENTAI + 6, - T_KANOU + RENTAI + 6, - T_KANOU + RENTAI + 6, - T_KANOU + RENTAI + 6, + T_KANOU + RENTAI + 6, + T_KANOU + RENTAI + 6, + T_SHUUJO + RENTAI + 6, + T_KANOU + RENTAI + 6, + T_KANOU + RENTAI + 7, + T_KANOU + RENTAI + 6, + T_KANOU + RENTAI + 6, + T_KANOU + RENTAI + 6, + T_KANOU + RENTAI + 6, + T_KANOU + RENTAI + 6, - 0 + P_FUKA, - T_KANOU + RENTAI + 6, - 0 + P_FUKA, - T_KANOU + 3, - 0 + P_FUKA, - 0 + P_FUKA, - T_KANOU + P_KAMEI, - T_KANOU + P_MEIREI, - T_KANOU + P_MEIREI, - T_SHUUJO+ P_MEIREI, - T_SHUUJO+ P_MEIREI, + 0 + P_FUKA, + T_KANOU + RENTAI + 6, + 0 + P_FUKA, + T_KANOU + 3, + 0 + P_FUKA, + 0 + P_FUKA, + T_KANOU + P_KAMEI, + T_KANOU + P_MEIREI, + T_KANOU + P_MEIREI, + T_SHUUJO + P_MEIREI, + T_SHUUJO + P_MEIREI, - T_KANOU + P_MEISI, - 0 + P_FUKA, - T_KANOU + P_FUKA, - T_KANOU + P_MEISI, - T_KANOU + P_DAIMEISI, - T_KANOU + P_DAIMEISI, - T_KANOU + P_MEISI, - T_KANOU + P_JOSHI_D, - T_KANOU + P_JOSHI_E, + T_KANOU + P_MEISI, + 0 + P_FUKA, + T_KANOU + P_FUKA, + T_KANOU + P_MEISI, + T_KANOU + P_DAIMEISI, + T_KANOU + P_DAIMEISI, + T_KANOU + P_MEISI, + T_KANOU + P_JOSHI_D, + T_KANOU + P_JOSHI_E, - T_KANOU + P_SHUUSI, - T_KANOU + P_DAIMEISI, - T_KANOU + P_FUKUSI, - T_KANOU + P_FUKUSI, - T_KANOU + P_SHUUSI, - 0 + P_FUKA, - T_KANOU + P_DAIMEISI, - T_KANOU + 7, - 0 + P_FUKA, - T_SHUUJO+ P_JOSHI_E, + T_KANOU + P_SHUUSI, + T_KANOU + P_DAIMEISI, + T_KANOU + P_FUKUSI, + T_KANOU + P_FUKUSI, + T_KANOU + P_SHUUSI, + 0 + P_FUKA, + T_KANOU + P_DAIMEISI, + T_KANOU + 7, + 0 + P_FUKA, + T_SHUUJO + P_JOSHI_E, - T_KANOU + P_JOSHI_B, - T_KANOU + P_JOSHI_A, - T_KANOU + P_MEISI, - T_KANOU + P_JOSHI_B, - T_KANOU + P_RENYOU_F, - T_KANOU + P_F_FUKUSI, - 0, - T_KANOU + P_JOSHI_F, - 0, - 0, + T_KANOU + P_JOSHI_B, + T_KANOU + P_JOSHI_A, + T_KANOU + P_MEISI, + T_KANOU + P_JOSHI_B, + T_KANOU + P_RENYOU_F, + T_KANOU + P_F_FUKUSI, + 0, + T_KANOU + P_JOSHI_F, + 0, + 0, - 0 + P_FUKA, - 0 + P_FUKA, - 0 + P_FUKA, - T_KANOU + P_RENYOU_F, - T_KANOU + P_RENYOU_J, - T_KANOU + P_RENYOU_F, - 0 + P_FUKA, - T_KANOU + P_SHUUSI, - T_KANOU + P_SHUUSI, - T_KANOU + P_SHUUSI, + 0 + P_FUKA, + 0 + P_FUKA, + 0 + P_FUKA, + T_KANOU + P_RENYOU_F, + T_KANOU + P_RENYOU_J, + T_KANOU + P_RENYOU_F, + 0 + P_FUKA, + T_KANOU + P_SHUUSI, + T_KANOU + P_SHUUSI, + T_KANOU + P_SHUUSI, - T_KANOU + P_SHUUSI, - 0 + P_FUKA, - 0 + P_FUKA, - 0 + P_FUKA, - T_SHUUJO+ P_SHUUSI, - T_KANOU + P_JOSHI_C, - T_KANOU + 1, - T_KANOU + P_JOSHI_F, - T_KANOU + P_JOSHI_F, - T_KANOU + P_JOSHI_C, + T_KANOU + P_SHUUSI, + 0 + P_FUKA, + 0 + P_FUKA, + 0 + P_FUKA, + T_SHUUJO + P_SHUUSI, + T_KANOU + P_JOSHI_C, + T_KANOU + 1, + T_KANOU + P_JOSHI_F, + T_KANOU + P_JOSHI_F, + T_KANOU + P_JOSHI_C, - T_KANOU + P_JOSHI_C, - T_KANOU + P_KEISIKI, - T_KANOU + P_KEISIKI, - T_KANOU + P_KEISIKI, - T_KANOU + P_KEISIKI, - T_KANOU + P_KEISIKI, - T_KANOU + P_JOSHI_F, - T_KANOU + P_SHUUSI, - T_KANOU + P_JOSHI_C, - T_KANOU + P_JOSHI_C, + T_KANOU + P_JOSHI_C, + T_KANOU + P_KEISIKI, + T_KANOU + P_KEISIKI, + T_KANOU + P_KEISIKI, + T_KANOU + P_KEISIKI, + T_KANOU + P_KEISIKI, + T_KANOU + P_JOSHI_F, + T_KANOU + P_SHUUSI, + T_KANOU + P_JOSHI_C, + T_KANOU + P_JOSHI_C, - T_KANOU + P_JOSHI_C, - T_KANOU + P_JOSHI_B, - T_KANOU + P_JOSHI_D, - T_KANOU + P_KEISIKI, - T_KANOU + P_JOSHI_C, - T_KANOU + P_JOSHI_C, - T_KANOU + P_JOSHI_C, - T_KANOU + P_KEISIKI, - T_KANOU + P_JOSHI_C, - T_KANOU + P_JOSHI_C, + T_KANOU + P_JOSHI_C, + T_KANOU + P_JOSHI_B, + T_KANOU + P_JOSHI_D, + T_KANOU + P_KEISIKI, + T_KANOU + P_JOSHI_C, + T_KANOU + P_JOSHI_C, + T_KANOU + P_JOSHI_C, + T_KANOU + P_KEISIKI, + T_KANOU + P_JOSHI_C, + T_KANOU + P_JOSHI_C, - T_KANOU + P_KEISIKI, - T_KANOU + P_JOSHI_D, - T_KANOU + P_JOSHI_C, - T_KANOU + P_JOSHI_B, - T_KANOU + P_KEISIKI, - T_KANOU + P_JOSHI_D, - T_KANOU + P_JOSHI_C, - T_KANOU + P_KEISIKI, - T_KANOU + P_KEISIKI, - T_KANOU + P_KEISIKI, + T_KANOU + P_KEISIKI, + T_KANOU + P_JOSHI_D, + T_KANOU + P_JOSHI_C, + T_KANOU + P_JOSHI_B, + T_KANOU + P_KEISIKI, + T_KANOU + P_JOSHI_D, + T_KANOU + P_JOSHI_C, + T_KANOU + P_KEISIKI, + T_KANOU + P_KEISIKI, + T_KANOU + P_KEISIKI, - T_KANOU + P_JOSHI_C, - T_KANOU + P_KEISIKI, - T_KANOU + P_JOSHI_C, - T_KANOU + P_JOSHI_B, - T_KANOU + P_JOSHI_C, - T_KANOU + P_JOSHI_D, - T_KANOU + P_KEISIKI, - T_KANOU + P_JOSHI_C, - T_KANOU + P_KEISIKI, - T_KANOU + P_KEISIKI, + T_KANOU + P_JOSHI_C, + T_KANOU + P_KEISIKI, + T_KANOU + P_JOSHI_C, + T_KANOU + P_JOSHI_B, + T_KANOU + P_JOSHI_C, + T_KANOU + P_JOSHI_D, + T_KANOU + P_KEISIKI, + T_KANOU + P_JOSHI_C, + T_KANOU + P_KEISIKI, + T_KANOU + P_KEISIKI, - T_KANOU + P_KEISIKI, - T_KANOU + P_JOSHI_C, - T_KANOU + P_JOSHI_C, - T_KANOU + P_JOSHI_C, - T_KANOU + P_JOSHI_C, - T_KANOU + P_KEISIKI, - T_KANOU + P_KEISIKI, - T_KANOU + P_KEISIKI, - T_KANOU + P_JOSHI_C, - T_KANOU + P_JOSHI_C, + T_KANOU + P_KEISIKI, + T_KANOU + P_JOSHI_C, + T_KANOU + P_JOSHI_C, + T_KANOU + P_JOSHI_C, + T_KANOU + P_JOSHI_C, + T_KANOU + P_KEISIKI, + T_KANOU + P_KEISIKI, + T_KANOU + P_KEISIKI, + T_KANOU + P_JOSHI_C, + T_KANOU + P_JOSHI_C, - T_KANOU + P_JOSHI_C, - T_KANOU + P_JOSHI_C, - T_KANOU + P_JOSHI_C, - T_KANOU + P_JOSHI_C, - T_KANOU + P_JOSHI_C, - T_KANOU + P_JOSHI_C, - T_KANOU + P_JOSHI_D, - T_KANOU + P_JOSHI_D, - T_KANOU + P_JOSHI_C, - T_KANOU + P_JOSHI_C, + T_KANOU + P_JOSHI_C, + T_KANOU + P_JOSHI_C, + T_KANOU + P_JOSHI_C, + T_KANOU + P_JOSHI_C, + T_KANOU + P_JOSHI_C, + T_KANOU + P_JOSHI_C, + T_KANOU + P_JOSHI_D, + T_KANOU + P_JOSHI_D, + T_KANOU + P_JOSHI_C, + T_KANOU + P_JOSHI_C, - T_SHUUJO+ P_SHUUSI, - T_KANOU + P_JOSHI_C, - T_KANOU + P_JOSHI_C, - T_KANOU + P_JOSHI_C, - T_KANOU + P_JOSHI_C, - T_KANOU + P_KEISIKI, - T_KANOU + P_JOSHI_C, - T_KANOU + P_JOSHI_C, - T_KANOU + P_KEISIKI, - T_KANOU + P_KEISIKI, + T_SHUUJO + P_SHUUSI, + T_KANOU + P_JOSHI_C, + T_KANOU + P_JOSHI_C, + T_KANOU + P_JOSHI_C, + T_KANOU + P_JOSHI_C, + T_KANOU + P_KEISIKI, + T_KANOU + P_JOSHI_C, + T_KANOU + P_JOSHI_C, + T_KANOU + P_KEISIKI, + T_KANOU + P_KEISIKI, - T_KANOU + P_JOSHI_C, - T_KANOU + P_JOSHI_B, - T_KANOU + P_KEISIKI, - T_KANOU + P_JOSHI_B, - T_KANOU + P_KEISIKI, - T_KANOU + P_KEISIKI, - T_KANOU + P_JOSHI_C, - T_KANOU + P_JOSHI_C, - T_KANOU + P_KEISIKI, - T_KANOU + P_KEISIKI, + T_KANOU + P_JOSHI_C, + T_KANOU + P_JOSHI_B, + T_KANOU + P_KEISIKI, + T_KANOU + P_JOSHI_B, + T_KANOU + P_KEISIKI, + T_KANOU + P_KEISIKI, + T_KANOU + P_JOSHI_C, + T_KANOU + P_JOSHI_C, + T_KANOU + P_KEISIKI, + T_KANOU + P_KEISIKI, - 0 + P_JOSHI_C, - T_KANOU + P_SUUSI, - T_KANOU + P_SETUZOKU, - T_KANOU + P_KANDOU, - T_KANOU + P_SETTOU, - T_KANOU + P_FUKUSI, - T_KANOU + P_FZKKGU, - T_KANOU + P_MEISI, - T_KANOU + P_MEISI, - T_KANOU + P_MEISI, + 0 + P_JOSHI_C, + T_KANOU + P_SUUSI, + T_KANOU + P_SETUZOKU, + T_KANOU + P_KANDOU, + T_KANOU + P_SETTOU, + T_KANOU + P_FUKUSI, + T_KANOU + P_FZKKGU, + T_KANOU + P_MEISI, + T_KANOU + P_MEISI, + T_KANOU + P_MEISI, - T_KANOU + P_MEISI, - 0 + P_SETUBI, - T_KANOU + P_SETUBI, - T_KANOU + P_JOSUUSI, - T_KANOU + P_RENTAISI, - T_KANOU + P_TANKAN -}; + T_KANOU + P_MEISI, + 0 + P_SETUBI, + T_KANOU + P_SETUBI, + T_KANOU + P_JOSUUSI, + T_KANOU + P_RENTAISI, + T_KANOU + P_TANKAN}; diff --git a/lib/sj3core/wakachi.c b/lib/sj3core/wakachi.c index 00eafe5..3b86c4b 100644 --- a/lib/sj3core/wakachi.c +++ b/lib/sj3core/wakachi.c @@ -1,6 +1,6 @@ /* * Copyright (c) 1991-1994 Sony Corporation - * + * * Permission is hereby granted, free of charge, to any person obtaining * a copy of this software and associated documentation files (the * "Software"), to deal in the Software without restriction, including @@ -8,10 +8,10 @@ * distribute, sublicense, and/or sell copies of the Software, and to * permit persons to whom the Software is furnished to do so, subject to * the following conditions: - * + * * The above copyright notice and this permission notice shall be * included in all copies or substantial portions of the Software. - * + * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. @@ -19,7 +19,7 @@ * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR * THE USE OR OTHER DEALINGS IN THE SOFTWARE. - * + * * Except as contained in this notice, the name of Sony Corporation * shall not be used in advertising or otherwise to promote the sale, use * or other dealings in this Software without prior written authorization @@ -28,8 +28,8 @@ */ /* - * $SonyRCSfile: wakachi.c,v $ - * $SonyRevision: 1.1 $ + * $SonyRCSfile: wakachi.c,v $ + * $SonyRevision: 1.1 $ * $SonyDate: 1994/06/03 08:02:43 $ */ @@ -39,18 +39,16 @@ #include "sj_kanakan.h" -void -wakachi() -{ - JREC *jrec; - CLREC *clrec; +void wakachi() { + JREC* jrec; + CLREC* clrec; - CREC crec[4]; - int count; - u_char *next; - TypeCnct right; - int i; - int maxlen; + CREC crec[4]; + int count; + u_char* next; + TypeCnct right; + int i; + int maxlen; free_jall(maxjptr); maxjptr = NULL; @@ -58,49 +56,47 @@ wakachi() maxlen = (cnvlen > MAXCLINPUTLEN) ? MAXCLINPUTLEN : cnvlen; next = cnvstart; - if (Chrtbl[*next] & (TAI_KGU | FZK_KGU)) { + if(Chrtbl[*next] & (TAI_KGU | FZK_KGU)) { - while (*next && (Chrtbl[*next] & (TAI_KGU | FZK_KGU))) + while(*next && (Chrtbl[*next] & (TAI_KGU | FZK_KGU))) next++; - if ((i = next - cnvstart) > maxlen) { + if((i = next - cnvstart) > maxlen) { next = cnvstart + maxlen; - i = maxlen; + i = maxlen; } - if (!(jrec = argjrec(i, (JREC *)NULL))) return; + if(!(jrec = argjrec(i, (JREC*)NULL))) return; - jrec -> class = C_WAKACHI; - jrec -> hinsi = D_MEISI_1; + jrec->class = C_WAKACHI; + jrec->hinsi = D_MEISI_1; - if (Chrtbl[*(next - 1)] & TAI_KGU) + if(Chrtbl[*(next - 1)] & TAI_KGU) srchfzk(jrec, next, R_DAIMEISI, 0); } else { - if (!(jrec = argjrec(0, (JREC *)NULL))) return; - jrec -> class = C_WAKACHI; - jrec -> hinsi = MEISI_6; + if(!(jrec = argjrec(0, (JREC*)NULL))) return; + jrec->class = C_WAKACHI; + jrec->hinsi = MEISI_6; - while ((int)jrec -> jlen < maxlen) { + while((int)jrec->jlen < maxlen) { count = setconj((TypeGram)MEISI_6, jrec, crec); - for (i = count ; i-- > 0 ; ) { + for(i = count; i-- > 0;) { - right = crec[i].right; + right = crec[i].right; gobilen = crec[i].len; - next = cnvstart + jrec->jlen + gobilen; + next = cnvstart + jrec->jlen + gobilen; - if (gobilen) { - if (terminate(right, next)) { + if(gobilen) { + if(terminate(right, next)) { fzk_ka_flg = 0; setclrec(jrec, next, right); } - } - else if ((Chrtbl[*next] & NUMBER) - && (jrec -> jlen)) { + } else if((Chrtbl[*next] & NUMBER) && (jrec->jlen)) { fzk_ka_flg = 0; setclrec(jrec, next, right); return; @@ -109,22 +105,21 @@ wakachi() srchfzk(jrec, next, right, 0); } - if (maxclptr) break; + if(maxclptr) break; - (jrec -> jlen)++; + (jrec->jlen)++; } } - if ((maxclptr) && (Chrtbl[*(cnvstart + jrec -> jlen)] & FZKTOP)) + if((maxclptr) && (Chrtbl[*(cnvstart + jrec->jlen)] & FZKTOP)) return; - if (jrec -> jlen) { - if (clrec = argclrec((int)jrec -> jlen)) { - clrec -> jnode = jrec; - clrec -> right = R_MEISI; - clrec -> kubun = K_TAIGEN; - (jrec -> count)++; + if(jrec->jlen) { + if(clrec = argclrec((int)jrec->jlen)) { + clrec->jnode = jrec; + clrec->right = R_MEISI; + clrec->kubun = K_TAIGEN; + (jrec->count)++; } } } - diff --git a/lib/sj3rkcv/rk_conv.c b/lib/sj3rkcv/rk_conv.c index cee0a7a..d555a60 100644 --- a/lib/sj3rkcv/rk_conv.c +++ b/lib/sj3rkcv/rk_conv.c @@ -1,6 +1,6 @@ /* * Copyright (c) 1994 Sony Corporation - * + * * Permission is hereby granted, free of charge, to any person obtaining * a copy of this software and associated documentation files (the * "Software"), to deal in the Software without restriction, including @@ -8,10 +8,10 @@ * distribute, sublicense, and/or sell copies of the Software, and to * permit persons to whom the Software is furnished to do so, subject to * the following conditions: - * + * * The above copyright notice and this permission notice shall be * included in all copies or substantial portions of the Software. - * + * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. @@ -19,7 +19,7 @@ * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR * THE USE OR OTHER DEALINGS IN THE SOFTWARE. - * + * * Except as contained in this notice, the name of Sony Corporation * shall not be used in advertising or otherwise to promote the sale, use * or other dealings in this Software without prior written authorization @@ -28,12 +28,11 @@ */ /* - * $SonyRCSfile: rk_conv.c,v $ - * $SonyRevision: 1.1 $ + * $SonyRCSfile: rk_conv.c,v $ + * $SonyRevision: 1.1 $ * $SonyDate: 1994/06/03 08:03:59 $ */ - #ifndef lint static char rcsid[] = "$Header: /export/work/contrib/sj3/sj3rkcv/RCS/rk_conv.c,v 1.14 1994/06/03 07:42:16 notanaka Exp $"; #endif @@ -66,134 +65,122 @@ static char rcsid[] = "$Header: /export/work/contrib/sj3/sj3rkcv/RCS/rk_conv.c,v #define wcstombs sj3_wcstombs16 #endif -#define ENDMARK(c) (c == SPACE || c == TAB) -#define SKLINE(c) (c == EOL || c == NSTR) -#define TOUPPER(c) (islower(c) ? toupper(c) : (c)) +#define ENDMARK(c) (c == SPACE || c == TAB) +#define SKLINE(c) (c == EOL || c == NSTR) +#define TOUPPER(c) (islower(c) ? toupper(c) : (c)) -#define WTOUPPER(c) ((wchar16_t) (islower(((c) & 0xff)) ? toupper(((c) & 0xff)) : ((c) & 0xff))) +#define WTOUPPER(c) ((wchar16_t)(islower(((c) & 0xff)) ? toupper(((c) & 0xff)) : ((c) & 0xff))) -#define SJ3_NO -1 -#define SJ3_SJIS 0 -#define SJ3_EUC 1 +#define SJ3_NO -1 +#define SJ3_SJIS 0 +#define SJ3_EUC 1 -RkTabl *sj3_rcode[MAXCODE]; -RkTablW16 *sj3_rcode_w16[MAXCODE]; -RkTablW16 *rktblp; -wchar16_t rline[MAXLLEN]; -wchar16_t lstr[MAXLLEN]; +RkTabl* sj3_rcode[MAXCODE]; +RkTablW16* sj3_rcode_w16[MAXCODE]; +RkTablW16* rktblp; +wchar16_t rline[MAXLLEN]; +wchar16_t lstr[MAXLLEN]; static wchar16_t intmp[MAXLLEN]; static wchar16_t outtmp[MAXLLEN]; -static u_char mtmp[MAXLLEN]; -static int rk_erase; -static int rk_errin = 0; -static int rk_cflag; -static int rk_klen; -static int file_code = SJ3_NO; +static u_char mtmp[MAXLLEN]; +static int rk_erase; +static int rk_errin = 0; +static int rk_cflag; +static int rk_klen; +static int file_code = SJ3_NO; +static RkbufRec rkpbuf, *rkpp = NULL; +static RkTablW16* rkhp; +static StrbufRec strpbuf, *strpp; +static wchar16_t* shp; +static YmibufRec ymipbuf, *ymipp; +static u_short* yhp; -static RkbufRec rkpbuf, *rkpp = NULL; -static RkTablW16 *rkhp; -static StrbufRec strpbuf, *strpp; -static wchar16_t *shp; -static YmibufRec ymipbuf, *ymipp; -static u_short *yhp; - - -void -sj3_rkcode(int code) -{ - if (code) +void sj3_rkcode(int code) { + if(code) file_code = SJ3_NO; } - - - -int -sj3_rkinit2(char *rkfile, int erase) -{ +int sj3_rkinit2(char* rkfile, int erase) { rk_erase = erase; - return(sj3_rkinit_mb(rkfile)); + return (sj3_rkinit_mb(rkfile)); } -int -rcode_sjis_init() -{ - int i, rkeylen = 0, ryomilen = 0, rstrlen = 0; - int klen, ylen, slen, tablnum = 0, tablsize; - u_char *mbstr, *mptr, mtmp[BUFSIZ], mtmp2[BUFSIZ]; - u_short *wcstr, *wcptr; - RkTabl *tabl, *tabl_next, *tabl_prev; - RkTablW16 *tabl_w16; +int rcode_sjis_init() { + int i, rkeylen = 0, ryomilen = 0, rstrlen = 0; + int klen, ylen, slen, tablnum = 0, tablsize; + u_char * mbstr, *mptr, mtmp[BUFSIZ], mtmp2[BUFSIZ]; + u_short * wcstr, *wcptr; + RkTabl * tabl, *tabl_next, *tabl_prev; + RkTablW16* tabl_w16; tablsize = sizeof(RkTabl); - - for (i = 0; i < MAXCODE; i++) { - if (sj3_rcode_w16[i]) { + for(i = 0; i < MAXCODE; i++) { + if(sj3_rcode_w16[i]) { tabl_w16 = sj3_rcode_w16[i]; - while (tabl_w16) { + while(tabl_w16) { tablnum++; - if (tabl_w16->r_key) - rkeylen += wslen(tabl_w16->r_key) + 1; - if (tabl_w16->r_str) - rstrlen += wslen(tabl_w16->r_str) + 1; - if (tabl_w16->k_yomi) - ryomilen += wslen(tabl_w16->k_yomi) + 1; + if(tabl_w16->r_key) + rkeylen += wslen(tabl_w16->r_key) + 1; + if(tabl_w16->r_str) + rstrlen += wslen(tabl_w16->r_str) + 1; + if(tabl_w16->k_yomi) + ryomilen += wslen(tabl_w16->k_yomi) + 1; tabl_w16 = tabl_w16->next; } } } - if (!tablnum) - return 1; - tabl = (RkTabl *) malloc(tablnum * tablsize); - if (!tabl) { + if(!tablnum) + return 1; + tabl = (RkTabl*)malloc(tablnum * tablsize); + if(!tabl) { return 0; } memset(tabl, '\0', tablnum * tablsize); - mbstr = (u_char *) malloc(rkeylen + rstrlen); - if (!mbstr) { + mbstr = (u_char*)malloc(rkeylen + rstrlen); + if(!mbstr) { free(tabl); return 0; } memset(mbstr, '\0', rkeylen + rstrlen); - wcptr = wcstr = (u_short *) malloc(ryomilen * sizeof(u_short)); - if (!wcstr) { + wcptr = wcstr = (u_short*)malloc(ryomilen * sizeof(u_short)); + if(!wcstr) { free(tabl); free(mbstr); return 0; } - memset(wcptr, '\0', ryomilen * sizeof(u_short)); + memset(wcptr, '\0', ryomilen * sizeof(u_short)); rkeylen *= 2; rstrlen *= 2; - for (i = 0; i < MAXCODE; i++) { - if (sj3_rcode_w16[i]) { - tabl_w16 = sj3_rcode_w16[i]; + for(i = 0; i < MAXCODE; i++) { + if(sj3_rcode_w16[i]) { + tabl_w16 = sj3_rcode_w16[i]; tabl_next = sj3_rcode[i] = tabl; - while (tabl_w16) { + while(tabl_w16) { tabl += 1; - if (tabl_w16->r_key) { - if (current_locale == LC_CTYPE_EUC) { + if(tabl_w16->r_key) { + if(current_locale == LC_CTYPE_EUC) { mptr = mtmp; } else { mptr = mbstr; } - if (wcstombs((char *)mptr, tabl_w16->r_key, BUFSIZ) == -1) { + if(wcstombs((char*)mptr, tabl_w16->r_key, BUFSIZ) == -1) { free(tabl); free(mbstr); free(wcstr); return 0; } - if (current_locale == LC_CTYPE_EUC) { - if ((klen = euctosjis(mbstr, rkeylen, mtmp, sizeof(mtmp))) < 0) { + if(current_locale == LC_CTYPE_EUC) { + if((klen = euctosjis(mbstr, rkeylen, mtmp, sizeof(mtmp))) < 0) { free(tabl); free(mbstr); free(wcstr); return 0; } } else { - klen = strlen((char *)mbstr); + klen = strlen((char*)mbstr); } tabl_next->r_key = mbstr; mbstr += klen + 1; @@ -201,27 +188,27 @@ rcode_sjis_init() } else { tabl_next->r_key = NULL; } - if (tabl_w16->r_str) { - if (current_locale == LC_CTYPE_EUC) { + if(tabl_w16->r_str) { + if(current_locale == LC_CTYPE_EUC) { mptr = mtmp; } else { mptr = mbstr; } - if (wcstombs((char *)mptr, tabl_w16->r_str, BUFSIZ) == -1) { + if(wcstombs((char*)mptr, tabl_w16->r_str, BUFSIZ) == -1) { free(tabl); free(mbstr); free(wcstr); return 0; } - if (current_locale == LC_CTYPE_EUC) { - if ((slen = euctosjis(mbstr, rstrlen, mtmp, sizeof(mtmp))) < 0) { + if(current_locale == LC_CTYPE_EUC) { + if((slen = euctosjis(mbstr, rstrlen, mtmp, sizeof(mtmp))) < 0) { free(tabl); free(mbstr); free(wcstr); return 0; } } else { - slen = strlen((char *)mbstr); + slen = strlen((char*)mbstr); } tabl_next->r_str = mbstr; mbstr += slen + 1; @@ -229,16 +216,16 @@ rcode_sjis_init() } else { tabl_next->r_str = NULL; } - if (tabl_w16->k_yomi) { + if(tabl_w16->k_yomi) { mptr = mtmp; - if (wcstombs((char *)mptr, tabl_w16->k_yomi, BUFSIZ) == -1) { + if(wcstombs((char*)mptr, tabl_w16->k_yomi, BUFSIZ) == -1) { free(tabl); free(mbstr); free(wcstr); return 0; } - if (current_locale == LC_CTYPE_EUC) { - if (euctosjis(mtmp2, sizeof(mtmp2), mtmp, sizeof(mtmp)) < 0) { + if(current_locale == LC_CTYPE_EUC) { + if(euctosjis(mtmp2, sizeof(mtmp2), mtmp, sizeof(mtmp)) < 0) { free(tabl); free(mbstr); free(wcstr); @@ -249,9 +236,9 @@ rcode_sjis_init() mptr = mtmp; } tabl_next->k_yomi = wcptr; - ylen = 0; - while (*mptr) { - if (issjis1(*mptr) && issjis2(mptr[1])) { + ylen = 0; + while(*mptr) { + if(issjis1(*mptr) && issjis2(mptr[1])) { *wcptr = (*mptr << 8) + mptr[1]; mptr++; } else { @@ -266,10 +253,10 @@ rcode_sjis_init() } else { tabl_next->k_yomi = NULL; } - tabl_w16 = tabl_w16->next; + tabl_w16 = tabl_w16->next; tabl_next->next = tabl; - tabl_prev = tabl_next; - tabl_next = tabl; + tabl_prev = tabl_next; + tabl_next = tabl; } tabl_prev->next = NULL; } @@ -277,84 +264,81 @@ rcode_sjis_init() return 1; } -int -rcode_euc_init() -{ - int i, rkeylen = 0, ryomilen = 0, rstrlen = 0; - int klen, ylen, slen, tablnum = 0, tablsize; - u_char *mbstr, *mptr, mtmp[BUFSIZ], mtmp2[BUFSIZ]; - u_short *wcstr, *wcptr; - RkTabl *tabl, *tabl_next, *tabl_prev; - RkTablW16 *tabl_w16; +int rcode_euc_init() { + int i, rkeylen = 0, ryomilen = 0, rstrlen = 0; + int klen, ylen, slen, tablnum = 0, tablsize; + u_char * mbstr, *mptr, mtmp[BUFSIZ], mtmp2[BUFSIZ]; + u_short * wcstr, *wcptr; + RkTabl * tabl, *tabl_next, *tabl_prev; + RkTablW16* tabl_w16; tablsize = sizeof(RkTabl); - - for (i = 0; i < MAXCODE; i++) { - if (sj3_rcode_w16[i]) { + for(i = 0; i < MAXCODE; i++) { + if(sj3_rcode_w16[i]) { tabl_w16 = sj3_rcode_w16[i]; - while (tabl_w16) { + while(tabl_w16) { tablnum++; - if (tabl_w16->r_key) - rkeylen += wslen(tabl_w16->r_key) + 1; - if (tabl_w16->r_str) - rstrlen += wslen(tabl_w16->r_str) + 1; - if (tabl_w16->k_yomi) - ryomilen += wslen(tabl_w16->k_yomi) + 1; + if(tabl_w16->r_key) + rkeylen += wslen(tabl_w16->r_key) + 1; + if(tabl_w16->r_str) + rstrlen += wslen(tabl_w16->r_str) + 1; + if(tabl_w16->k_yomi) + ryomilen += wslen(tabl_w16->k_yomi) + 1; tabl_w16 = tabl_w16->next; } } } - if (!tablnum) - return 1; - tabl = (RkTabl *) malloc(tablnum * tablsize); - if (!tabl) { + if(!tablnum) + return 1; + tabl = (RkTabl*)malloc(tablnum * tablsize); + if(!tabl) { return 0; } memset(tabl, '\0', tablnum * tablsize); - mbstr = (u_char *) malloc(rkeylen + rstrlen); - if (!mbstr) { + mbstr = (u_char*)malloc(rkeylen + rstrlen); + if(!mbstr) { free(tabl); return 0; } memset(mbstr, '\0', rkeylen + rstrlen); - wcptr = wcstr = (u_short *) malloc(ryomilen * sizeof(u_short)); - if (!wcstr) { + wcptr = wcstr = (u_short*)malloc(ryomilen * sizeof(u_short)); + if(!wcstr) { free(tabl); free(mbstr); return 0; } - memset(wcptr, '\0', ryomilen * sizeof(u_short)); + memset(wcptr, '\0', ryomilen * sizeof(u_short)); rkeylen *= 2; rstrlen *= 2; - for (i = 0; i < MAXCODE; i++) { - if (sj3_rcode_w16[i]) { - tabl_w16 = sj3_rcode_w16[i]; + for(i = 0; i < MAXCODE; i++) { + if(sj3_rcode_w16[i]) { + tabl_w16 = sj3_rcode_w16[i]; tabl_next = sj3_rcode[i] = tabl; - while (tabl_w16) { - tabl += 1; - if (tabl_w16->r_key) { - if (current_locale == LC_CTYPE_SHIFTJIS) { + while(tabl_w16) { + tabl += 1; + if(tabl_w16->r_key) { + if(current_locale == LC_CTYPE_SHIFTJIS) { mptr = mtmp; } else { mptr = mbstr; } - if (wcstombs((char *)mptr, tabl_w16->r_key, BUFSIZ) == -1) { + if(wcstombs((char*)mptr, tabl_w16->r_key, BUFSIZ) == -1) { free(tabl); free(mbstr); free(wcstr); return 0; } - if (current_locale == LC_CTYPE_SHIFTJIS) { - if ((klen = euctosjis(mbstr, rkeylen, mtmp, sizeof(mtmp))) < 0) { + if(current_locale == LC_CTYPE_SHIFTJIS) { + if((klen = euctosjis(mbstr, rkeylen, mtmp, sizeof(mtmp))) < 0) { free(tabl); free(mbstr); free(wcstr); return 0; } } else { - klen = strlen((char *)mbstr); + klen = strlen((char*)mbstr); } tabl_next->r_key = mbstr; mbstr += klen + 1; @@ -362,27 +346,27 @@ rcode_euc_init() } else { tabl_next->r_key = NULL; } - if (tabl_w16->r_str) { - if (current_locale == LC_CTYPE_SHIFTJIS) { + if(tabl_w16->r_str) { + if(current_locale == LC_CTYPE_SHIFTJIS) { mptr = mtmp; } else { mptr = mbstr; } - if (wcstombs((char *)mptr, tabl_w16->r_str, BUFSIZ) == -1) { + if(wcstombs((char*)mptr, tabl_w16->r_str, BUFSIZ) == -1) { free(tabl); free(mbstr); free(wcstr); return 0; } - if (current_locale == LC_CTYPE_SHIFTJIS) { - if ((slen = sjistoeuc(mbstr, rstrlen, mtmp, sizeof(mtmp))) < 0) { + if(current_locale == LC_CTYPE_SHIFTJIS) { + if((slen = sjistoeuc(mbstr, rstrlen, mtmp, sizeof(mtmp))) < 0) { free(tabl); free(mbstr); free(wcstr); return 0; } } else { - slen = strlen((char *)mbstr); + slen = strlen((char*)mbstr); } tabl_next->r_str = mbstr; mbstr += slen + 1; @@ -390,16 +374,16 @@ rcode_euc_init() } else { tabl_next->r_str = NULL; } - if (tabl_w16->k_yomi) { + if(tabl_w16->k_yomi) { mptr = mtmp; - if (wcstombs((char *)mptr, tabl_w16->k_yomi, BUFSIZ) == -1) { + if(wcstombs((char*)mptr, tabl_w16->k_yomi, BUFSIZ) == -1) { free(tabl); free(mbstr); free(wcstr); return 0; } - if (current_locale == LC_CTYPE_SHIFTJIS) { - if (sjistoeuc(mtmp2, sizeof(mtmp2), mtmp, sizeof(mtmp)) < 0) { + if(current_locale == LC_CTYPE_SHIFTJIS) { + if(sjistoeuc(mtmp2, sizeof(mtmp2), mtmp, sizeof(mtmp)) < 0) { free(tabl); free(mbstr); free(wcstr); @@ -410,9 +394,9 @@ rcode_euc_init() mptr = mtmp; } tabl_next->k_yomi = wcptr; - ylen = 0; - while (*mptr) { - if (iseuc(*mptr) && iseuc(mptr[1])) { + ylen = 0; + while(*mptr) { + if(iseuc(*mptr) && iseuc(mptr[1])) { *wcptr = (*mptr << 8) + mptr[1]; mptr++; } else { @@ -427,10 +411,10 @@ rcode_euc_init() } else { tabl_next->k_yomi = NULL; } - tabl_w16 = tabl_w16->next; + tabl_w16 = tabl_w16->next; tabl_next->next = tabl; - tabl_prev = tabl_next; - tabl_next = tabl; + tabl_prev = tabl_next; + tabl_next = tabl; } tabl_prev->next = NULL; } @@ -438,497 +422,441 @@ rcode_euc_init() return 1; } -int -sj3_rkinit(char *rkfile) -{ +int sj3_rkinit(char* rkfile) { return sj3_rkinit_sub(rkfile, rcode_sjis_init); } -int -sj3_rkinit_euc(char *rkfile) -{ +int sj3_rkinit_euc(char* rkfile) { return sj3_rkinit_sub(rkfile, rcode_euc_init); } -int -sj3_rkinit_mb(char *rkfile) -{ - if (current_locale == LC_CTYPE_EUC) - return sj3_rkinit_sub(rkfile, rcode_euc_init); +int sj3_rkinit_mb(char* rkfile) { + if(current_locale == LC_CTYPE_EUC) + return sj3_rkinit_sub(rkfile, rcode_euc_init); else - return sj3_rkinit_sub(rkfile, rcode_sjis_init); + return sj3_rkinit_sub(rkfile, rcode_sjis_init); } -int -sj3_rkinit_sub(char *rkfile, int (*mbfunc)()) -{ - char *p; - int len, klen, rlen, retv; - FILE *fp; - char line[MAXLEN + 1]; - wchar16_t rkey[MAXWLEN + 1], rstr[MAXWLEN + 1]; - u_short kstr[MAXWLEN + 1]; - RkTablW16 *rktp; +int sj3_rkinit_sub(char* rkfile, int (*mbfunc)()) { + char* p; + int len, klen, rlen, retv; + FILE* fp; + char line[MAXLEN + 1]; + wchar16_t rkey[MAXWLEN + 1], rstr[MAXWLEN + 1]; + u_short kstr[MAXWLEN + 1]; + RkTablW16* rktp; - if (rkfile == NULL || *rkfile == NSTR) + if(rkfile == NULL || *rkfile == NSTR) fp = stdin; - else if ((fp = fopen(rkfile, "r")) == NULL) - return(1); + else if((fp = fopen(rkfile, "r")) == NULL) + return (1); cltable(); line[MAXLEN - 1] = EOL; - retv = 0; + retv = 0; - while ((p = fgets(line, MAXLEN + 1, fp)) != NULL) { - if (line[MAXLEN - 1] != EOL) { + while((p = fgets(line, MAXLEN + 1, fp)) != NULL) { + if(line[MAXLEN - 1] != EOL) { line[MAXLEN - 1] = EOL; continue; } - if (SKLINE(*p) || *p == '#') + if(SKLINE(*p) || *p == '#') continue; - if ((p = getkey(p, rkey, &len)) == NULL) + if((p = getkey(p, rkey, &len)) == NULL) continue; - if ((p = rkgetyomi(p, kstr, &klen)) == NULL) + if((p = rkgetyomi(p, kstr, &klen)) == NULL) continue; p = getkey(p, rstr, &rlen); - if (rlen > 0 && chk_rstr(rstr, rkey, rlen, len)) + if(rlen > 0 && chk_rstr(rstr, rkey, rlen, len)) rlen = 0; - if ((rktp = mktable(rkey, len)) == NULL) { + if((rktp = mktable(rkey, len)) == NULL) { fprintf(stderr, "Can't allocate memory for table\n"); retv = FAIL; break; } - if (rktp->k_yomi != NULL) + if(rktp->k_yomi != NULL) continue; - if (stradd(&(rktp->r_key), &rkey[1], len) == -1) { + if(stradd(&(rktp->r_key), &rkey[1], len) == -1) { fprintf(stderr, "Can't allocate memory for char\n"); retv = FAIL; break; } - if (kstradd(&(rktp->k_yomi), kstr, klen + 1) == -1) { + if(kstradd(&(rktp->k_yomi), kstr, klen + 1) == -1) { fprintf(stderr, "Can't allocate memory for short\n"); retv = FAIL; break; } - if (stradd(&(rktp->r_str), rstr, rlen + 1) == -1) { + if(stradd(&(rktp->r_str), rstr, rlen + 1) == -1) { fprintf(stderr, "Can't allocate memory for char\n"); retv = FAIL; break; } - } fclose(fp); - if (!(*mbfunc)()) - retv = FAIL; + if(!(*mbfunc)()) + retv = FAIL; sj3_rkclear(); - return(retv); + return (retv); } - - -char * -getkey(char *istr, wchar16_t *ostr, int *len) -{ +char* getkey(char* istr, wchar16_t* ostr, int* len) { char c, *p; - int i; + int i; - while (ENDMARK(*istr)) + while(ENDMARK(*istr)) istr++; p = istr; i = 0; - while (!ENDMARK(*p)) { - if (SKLINE(*p)) + while(!ENDMARK(*p)) { + if(SKLINE(*p)) break; c = *p++; - if ( c == BSL) { - if (SKLINE(*p)) + if(c == BSL) { + if(SKLINE(*p)) break; c = *p++; - switch (c) { - case 'n' : - *ostr++ = (wchar16_t) EOL; + switch(c) { + case 'n': + *ostr++ = (wchar16_t)EOL; break; - case 't' : - *ostr++ = (wchar16_t) TAB; + case 't': + *ostr++ = (wchar16_t)TAB; break; - default : - *ostr++ = (wchar16_t) TOUPPER(c); + default: + *ostr++ = (wchar16_t)TOUPPER(c); } - } else if ( c == '^') { - if (*p >= '@' && *p <= '_') { - *ostr++ = (wchar16_t) (*p - '@'); + } else if(c == '^') { + if(*p >= '@' && *p <= '_') { + *ostr++ = (wchar16_t)(*p - '@'); p++; - } else if (*p == '?') { - *ostr++ = (wchar16_t) 0x7f; + } else if(*p == '?') { + *ostr++ = (wchar16_t)0x7f; p++; } else - *ostr++ = (wchar16_t) '^'; + *ostr++ = (wchar16_t)'^'; } else - *ostr++ = (wchar16_t) TOUPPER(c); - if (++i > MAXWLEN) { + *ostr++ = (wchar16_t)TOUPPER(c); + if(++i > MAXWLEN) { i = 0; break; } } - *ostr = (wchar16_t) NSTR; - *len = i; - if (i > 0) - return(p); - return(NULL); + *ostr = (wchar16_t)NSTR; + *len = i; + if(i > 0) + return (p); + return (NULL); } - - -char * -rkgetyomi(char *istr, wchar16_t *ostr, int *len) -{ - u_char c; - u_char *p; - int i; +char* rkgetyomi(char* istr, wchar16_t* ostr, int* len) { + u_char c; + u_char* p; + int i; u_short cc; - while (ENDMARK(*istr)) + while(ENDMARK(*istr)) istr++; - p = (u_char *)istr; + p = (u_char*)istr; i = 0; - while (!ENDMARK(*p)) { - if (SKLINE(*p)) + while(!ENDMARK(*p)) { + if(SKLINE(*p)) break; cc = c = *p++; - if (file_code == SJ3_SJIS) { - if (issjis1(c) && issjis2(*p)) { + if(file_code == SJ3_SJIS) { + if(issjis1(c) && issjis2(*p)) { cc = (c << 8) + (*p & MASK); p++; cc = sjis2euc(cc); } - } else if (file_code == SJ3_EUC) { - if (iseuc(c) && iseuc(*p)) { + } else if(file_code == SJ3_EUC) { + if(iseuc(c) && iseuc(*p)) { cc = (c << 8) + (*p & MASK); p++; - } else if (iseuckana(c) && iskana2(*p)) { + } else if(iseuckana(c) && iskana2(*p)) { cc = *p++; - } - else if (IsEUCHojo(c) && iseuc(*p) && iseuc(p[1])) { + } else if(IsEUCHojo(c) && iseuc(*p) && iseuc(p[1])) { cc = WcSetX0212(*p, p[1]); p += 2; } } else { - if (issjis1(c) && issjis2(*p)) { + if(issjis1(c) && issjis2(*p)) { file_code = SJ3_SJIS; p--; continue; } - if ((iseuc(c) && iseuc(*p)) || (iseuckana(c) && - iskana2(*p)) || (IsEUCHojo(c) && iseuc(*p) && - iseuc(p[1]))) { + if((iseuc(c) && iseuc(*p)) || (iseuckana(c) && iskana2(*p)) || (IsEUCHojo(c) && iseuc(*p) && iseuc(p[1]))) { file_code = SJ3_EUC; p--; continue; } } - *ostr++ = (wchar16_t) cc; - if (++i > MAXWLEN) { + *ostr++ = (wchar16_t)cc; + if(++i > MAXWLEN) { i = 0; break; } } - *ostr = (wchar16_t) 0; - *len = i; - if (i > 0) - return((char *)p); - return(NULL); + *ostr = (wchar16_t)0; + *len = i; + if(i > 0) + return ((char*)p); + return (NULL); } - - -void -cltable() -{ +void cltable() { int i; - if (rkpp != NULL) { - for (i = 0; i < MAXCODE; i++) { + if(rkpp != NULL) { + for(i = 0; i < MAXCODE; i++) { sj3_rcode_w16[i] = NULL; - sj3_rcode[i] = NULL; - } - rkpp = &rkpbuf; - rkhp = rkpp->rkbuf; - strpp = &strpbuf; - shp = strpp->strbuf; - ymipp = &ymipbuf; - yhp = ymipp->ymibuf; + sj3_rcode[i] = NULL; + } + rkpp = &rkpbuf; + rkhp = rkpp->rkbuf; + strpp = &strpbuf; + shp = strpp->strbuf; + ymipp = &ymipbuf; + yhp = ymipp->ymibuf; } } +int chk_rstr(wchar16_t* rstr, wchar16_t* rkey, int rlen, int klen) { + int i; + wchar16_t* p; - -int -chk_rstr(wchar16_t *rstr, wchar16_t *rkey, int rlen, int klen) -{ - int i; - wchar16_t *p; - - if (rlen >= klen) - return(1); + if(rlen >= klen) + return (1); p = rkey; - while (rlen <= klen) { - if (wsncmp(rstr, p, rlen) == 0) - return(0); + while(rlen <= klen) { + if(wsncmp(rstr, p, rlen) == 0) + return (0); klen--; p++; } - return(1); + return (1); } +RkTablW16* +rkalloc() { + RkTablW16* rkp; + RkbufRec* rkbrp; - -RkTablW16 * -rkalloc() -{ - RkTablW16 *rkp; - RkbufRec *rkbrp; - - if (rkpp == NULL) { - rkp = (RkTablW16 *)malloc(RKSIZE * sizeof(RkTablW16)); - if (rkp == NULL) - return(NULL); - rkhp = rkp; - rkpp = &rkpbuf; + if(rkpp == NULL) { + rkp = (RkTablW16*)malloc(RKSIZE * sizeof(RkTablW16)); + if(rkp == NULL) + return (NULL); + rkhp = rkp; + rkpp = &rkpbuf; rkpp->rkbuf = rkp; rkpp->rkend = rkp + RKSIZE; - } else if (rkhp >= rkpp->rkend) { - rkp = (RkTablW16 *)malloc(RKINCZ * sizeof(RkTablW16)); - rkbrp = (RkbufRec *)malloc(sizeof(RkbufRec)); - if (rkp == NULL || rkbrp == NULL) - return(NULL); - rkhp = rkp; + } else if(rkhp >= rkpp->rkend) { + rkp = (RkTablW16*)malloc(RKINCZ * sizeof(RkTablW16)); + rkbrp = (RkbufRec*)malloc(sizeof(RkbufRec)); + if(rkp == NULL || rkbrp == NULL) + return (NULL); + rkhp = rkp; rkpp->rkbufp = rkbrp; - rkpp = rkbrp; - rkpp->rkbuf = rkp; - rkpp->rkend = rkp + RKINCZ; + rkpp = rkbrp; + rkpp->rkbuf = rkp; + rkpp->rkend = rkp + RKINCZ; } rkp = rkhp++; - rkp->r_key = NULL; + rkp->r_key = NULL; rkp->k_yomi = NULL; - rkp->r_str = NULL; - rkp->next = NULL; - return(rkp); + rkp->r_str = NULL; + rkp->next = NULL; + return (rkp); } +int stradd(wchar16_t** cp, wchar16_t* str, int len) { + wchar16_t* strp; + StrbufRec* sbrp; - -int -stradd(wchar16_t **cp, wchar16_t *str, int len) -{ - wchar16_t *strp; - StrbufRec *sbrp; - - if (len <= 1) - return(0); - if (strpp == NULL) { - strp = (wchar16_t *)malloc(STRSIZE * sizeof(wchar16_t)); - if (strp == NULL) - return(-1); - shp = strp; - strpp = &strpbuf; + if(len <= 1) + return (0); + if(strpp == NULL) { + strp = (wchar16_t*)malloc(STRSIZE * sizeof(wchar16_t)); + if(strp == NULL) + return (-1); + shp = strp; + strpp = &strpbuf; strpp->strbuf = strp; strpp->strend = strp + STRSIZE; - } else if (shp + len >= strpp->strend) { - strp = (wchar16_t *)malloc(STRINCZ * sizeof(wchar16_t)); - sbrp = (StrbufRec *)malloc(sizeof(StrbufRec)); - if (strp == NULL || sbrp == NULL) - return(-1); - shp = strp; + } else if(shp + len >= strpp->strend) { + strp = (wchar16_t*)malloc(STRINCZ * sizeof(wchar16_t)); + sbrp = (StrbufRec*)malloc(sizeof(StrbufRec)); + if(strp == NULL || sbrp == NULL) + return (-1); + shp = strp; strpp->strbufp = sbrp; - strpp = sbrp; - strpp->strbuf = strp; - strpp->strend = strp + STRINCZ; + strpp = sbrp; + strpp->strbuf = strp; + strpp->strend = strp + STRINCZ; } *cp = shp; wscpy(shp, str); shp += len; - return(0); + return (0); } +int kstradd(wchar16_t** cp, wchar16_t* kstr, int len) { + int i; + wchar16_t* usp; + YmibufRec* ybrp; - -int -kstradd(wchar16_t **cp, wchar16_t *kstr, int len) -{ - int i; - wchar16_t *usp; - YmibufRec *ybrp; - - if (len <= 1) - return(0); - if (ymipp == NULL) { - usp = (wchar16_t *)malloc(YMISIZE * sizeof(wchar16_t)); - if (usp == NULL) - return(-1); - yhp = usp; - ymipp = &ymipbuf; + if(len <= 1) + return (0); + if(ymipp == NULL) { + usp = (wchar16_t*)malloc(YMISIZE * sizeof(wchar16_t)); + if(usp == NULL) + return (-1); + yhp = usp; + ymipp = &ymipbuf; ymipp->ymibuf = usp; ymipp->ymiend = usp + YMISIZE; - } else if (yhp + len >= ymipp->ymiend) { - usp = (wchar16_t *)malloc(YMIINCZ * sizeof(wchar16_t)); - ybrp = (YmibufRec *)malloc(sizeof(YmibufRec)); - if (usp == NULL || ybrp == NULL) - return(-1); - yhp = usp; + } else if(yhp + len >= ymipp->ymiend) { + usp = (wchar16_t*)malloc(YMIINCZ * sizeof(wchar16_t)); + ybrp = (YmibufRec*)malloc(sizeof(YmibufRec)); + if(usp == NULL || ybrp == NULL) + return (-1); + yhp = usp; ymipp->ymibufp = ybrp; - ymipp = ybrp; - ymipp->ymibuf = usp; - ymipp->ymiend = usp + YMIINCZ; + ymipp = ybrp; + ymipp->ymibuf = usp; + ymipp->ymiend = usp + YMIINCZ; } *cp = yhp; - for (i = 0; i < len; i++) + for(i = 0; i < len; i++) *yhp++ = *kstr++; - return(0); + return (0); } - - -RkTablW16 * -mktable(wchar16_t *key, int len) -{ - int i; +RkTablW16* +mktable(wchar16_t* key, int len) { + int i; RkTablW16 *nrktp, *orktp; - RkTablW16 *rktp; - u_int code; + RkTablW16* rktp; + u_int code; nrktp = NULL; orktp = NULL; - code = *key++ & MASK; - rktp = sj3_rcode_w16[code]; - while (rktp != NULL) { - if (rktp->r_key == NULL) { - if (*key == NSTR) - return(rktp); + code = *key++ & MASK; + rktp = sj3_rcode_w16[code]; + while(rktp != NULL) { + if(rktp->r_key == NULL) { + if(*key == NSTR) + return (rktp); nrktp = rktp; break; } - if ((i = wscmp(key, rktp->r_key)) == 0) - return(rktp); - if (i > 0 && (wslen(rktp->r_key) < len)) { + if((i = wscmp(key, rktp->r_key)) == 0) + return (rktp); + if(i > 0 && (wslen(rktp->r_key) < len)) { nrktp = rktp; break; } orktp = rktp; - rktp = orktp->next; + rktp = orktp->next; } - if ((rktp = rkalloc()) == NULL) - return(NULL); - if (sj3_rcode_w16[code] == NULL) + if((rktp = rkalloc()) == NULL) + return (NULL); + if(sj3_rcode_w16[code] == NULL) sj3_rcode_w16[code] = rktp; else { - if (nrktp != NULL) { + if(nrktp != NULL) { rktp->next = nrktp; - if (orktp == NULL) + if(orktp == NULL) sj3_rcode_w16[code] = rktp; else orktp->next = rktp; } else orktp->next = rktp; } - return(rktp); + return (rktp); } - - -void -sj3_rkebell(int err) -{ +void sj3_rkebell(int err) { rk_errin = err; } - - -void -sj3_rkclear() -{ +void sj3_rkclear() { rline[0] = NSTR; - lstr[0] = NSTR; - rktblp = NULL; - rk_klen = 0; + lstr[0] = NSTR; + rktblp = NULL; + rk_klen = 0; sj3_rkreset(); } -void -sj3_rkreset() -{ +void sj3_rkreset() { rk_cflag = -1; } - - -void -sj3_rkconvc(wchar16_t c, u_int *rkstr) -{ - int i; +void sj3_rkconvc(wchar16_t c, u_int* rkstr) { + int i; wchar16_t *p, *q; - int len; - wchar16_t wstr[MAXLLEN]; - u_int kstr[MAXLLEN], *kp; + int len; + wchar16_t wstr[MAXLLEN]; + u_int kstr[MAXLLEN], *kp; len = wslen(rline); - if (c == rk_erase) { - if (rk_cflag == 0) { + if(c == rk_erase) { + if(rk_cflag == 0) { for(i = 0; i < len; i++) *rkstr++ = ERRCODE + rk_erase; - for (i = 0; i < rk_klen; i++) + for(i = 0; i < rk_klen; i++) *rkstr++ = rk_erase; p = lstr; q = rline; while(*p != NSTR) { - *q++ = *p; + *q++ = *p; *rkstr++ = ERRCODE + *p++; } - *q = NSTR; - rktblp = NULL; + *q = NSTR; + rktblp = NULL; rk_cflag = -1; } else { - if (len <= 0) + if(len <= 0) *rkstr++ = rk_erase; else *rkstr++ = ERRCODE + rk_erase; rk_cflag--; - if (len <= 1) { - rktblp = NULL; + if(len <= 1) { + rktblp = NULL; rline[0] = NSTR; } else rline[--len] = NSTR; } } else { - rline[len] = c; + rline[len] = c; rline[len + 1] = NSTR; wscpy(wstr, rline); - if ((i = sj3_rkconv2(wstr, kstr, len)) == CONTINUE) { - if (rk_cflag >= 0) + if((i = sj3_rkconv2(wstr, kstr, len)) == CONTINUE) { + if(rk_cflag >= 0) rk_cflag++; *rkstr++ = ERRCODE + c; - } else if (i == NOMACH) { + } else if(i == NOMACH) { rline[len] = NSTR; - *rkstr++ = ERRBEL; + *rkstr++ = ERRBEL; } else { rk_cflag = 0; - rk_klen = i; - for (i = 0; i < len; i++) + rk_klen = i; + for(i = 0; i < len; i++) *rkstr++ = ERRCODE + rk_erase; kp = kstr; - while (*kp != 0) + while(*kp != 0) *rkstr++ = *kp++; wscpy(lstr, rline); lstr[len] = NSTR; - p = wstr; - q = rline; + p = wstr; + q = rline; while(*p != NSTR) { *rkstr++ = ERRCODE + *p; - *q++ = *p++; + *q++ = *p++; } *q = NSTR; } @@ -936,33 +864,29 @@ sj3_rkconvc(wchar16_t c, u_int *rkstr) *rkstr = RKEND; } - - -int -sj3_rkconv2(wchar16_t *wstr, u_int *kstr, int wlen) -{ - int i; +int sj3_rkconv2(wchar16_t* wstr, u_int* kstr, int wlen) { + int i; wchar16_t *p, *q, *s; - int rlen, len; - wchar16_t svstr[MAXLLEN]; - RkTablW16 *rktp; - u_short *kp; + int rlen, len; + wchar16_t svstr[MAXLLEN]; + RkTablW16* rktp; + u_short* kp; len = 0; - if ((rktp = rktblp) == NULL) + if((rktp = rktblp) == NULL) rktp = sj3_rcode_w16[WTOUPPER(*wstr)]; - if (*wstr > (wchar16_t) 0xff) rktp = NULL; + if(*wstr > (wchar16_t)0xff) rktp = NULL; while(1) { while(rktp != NULL) { rlen = rkmatch((wstr + 1), rktp->r_key, wlen); - if (rlen == CONTINUE) { + if(rlen == CONTINUE) { rktblp = rktp; break; - } else if (rlen != NOMACH) { + } else if(rlen != NOMACH) { kp = rktp->k_yomi; - if ((s = rktp->r_str) != NULL) + if((s = rktp->r_str) != NULL) i = wslen(s); - else + else i = 0; *kstr++ = SetMojilen(rlen - i) + *kp++; len++; @@ -972,10 +896,10 @@ sj3_rkconv2(wchar16_t *wstr, u_int *kstr, int wlen) } p = (wstr + rlen); q = svstr; - if (i > 0) { + if(i > 0) { p -= i; - while (*s != NSTR) { - if (*s == WTOUPPER(*p)) + while(*s != NSTR) { + if(*s == WTOUPPER(*p)) *q = *p; else *q = *s; @@ -984,8 +908,8 @@ sj3_rkconv2(wchar16_t *wstr, u_int *kstr, int wlen) s++; } } - if (rlen <= wlen) { - while (*p != NSTR) { + if(rlen <= wlen) { + while(*p != NSTR) { *q++ = *p++; } *q = NSTR; @@ -1002,25 +926,25 @@ sj3_rkconv2(wchar16_t *wstr, u_int *kstr, int wlen) } rktp = rktp->next; } - if (rktp == NULL) { - if (wlen <= 0) { + if(rktp == NULL) { + if(wlen <= 0) { *kstr++ = SetMojilen(1) + *wstr; - *wstr = NSTR; - rktblp = NULL; + *wstr = NSTR; + rktblp = NULL; len++; - } else if (rk_errin) { + } else if(rk_errin) { len = NOMACH; } else { *kstr++ = SetMojilen(1) + *wstr; len++; p = wstr; - for (i = 0; i < wlen; i++) { + for(i = 0; i < wlen; i++) { *p = *(p + 1); p++; } - *p = NSTR; + *p = NSTR; rktp = sj3_rcode_w16[WTOUPPER(*wstr)]; - if (*wstr > (wchar16_t) 0xff) rktp = NULL; + if(*wstr > (wchar16_t)0xff) rktp = NULL; wlen--; continue; } @@ -1028,131 +952,120 @@ sj3_rkconv2(wchar16_t *wstr, u_int *kstr, int wlen) *kstr = 0; break; } - return(len); + return (len); } +int sj3_rkconv(u_char* romaji, u_char* kana) { + wchar16_t* wstr; + int len, mflag = 0, ret; - - -int -sj3_rkconv(u_char *romaji, u_char *kana) -{ - wchar16_t *wstr; - int len, mflag = 0, ret; - - len = strlen((char *)romaji) + 1; - if (len > (sizeof(intmp) / sizeof(wchar16_t))) { - wstr = (wchar16_t *) malloc(len * sizeof(wchar16_t)); - if (!wstr) return -1; + len = strlen((char*)romaji) + 1; + if(len > (sizeof(intmp) / sizeof(wchar16_t))) { + wstr = (wchar16_t*)malloc(len * sizeof(wchar16_t)); + if(!wstr) return -1; mflag = 1; } else { - wstr = (wchar16_t *) intmp; + wstr = (wchar16_t*)intmp; } - if (mbstowcs(wstr, (char *)romaji, len) == -1) { - if (mflag) free(wstr); + if(mbstowcs(wstr, (char*)romaji, len) == -1) { + if(mflag) free(wstr); return -1; } ret = sj3_rkconv_w16(wstr, outtmp); - if (ret == 0 || ret == -1) { - if (mflag) free(wstr); + if(ret == 0 || ret == -1) { + if(mflag) free(wstr); return ret; } - if (wcstombs((char *)mtmp, outtmp, sizeof(outtmp)) == -1) { - if (mflag) free(wstr); + if(wcstombs((char*)mtmp, outtmp, sizeof(outtmp)) == -1) { + if(mflag) free(wstr); return -1; } - if (wcstombs((char *)romaji, wstr, len) == -1) { - if (mflag) free(wstr); + if(wcstombs((char*)romaji, wstr, len) == -1) { + if(mflag) free(wstr); return -1; } - if (current_locale == LC_CTYPE_EUC) { - len = euctosjis(kana, MAXLLEN*2, mtmp, sizeof(mtmp)); + if(current_locale == LC_CTYPE_EUC) { + len = euctosjis(kana, MAXLLEN * 2, mtmp, sizeof(mtmp)); } else { - (void) memcpy(kana, mtmp, strlen((char *)mtmp) + 1); + (void)memcpy(kana, mtmp, strlen((char*)mtmp) + 1); } - if (mflag) free(wstr); - if (len > 0) { + if(mflag) free(wstr); + if(len > 0) { return ret; } else { return len; } } -int -sj3_rkconv_euc(u_char *romaji, u_char *kana) -{ - wchar16_t *wstr; - int len, mflag = 0, ret; +int sj3_rkconv_euc(u_char* romaji, u_char* kana) { + wchar16_t* wstr; + int len, mflag = 0, ret; - len = strlen((char *)romaji) + 1; - if (len > sizeof(intmp)) { - wstr = (wchar16_t *) malloc(len * sizeof(wchar16_t)); - if (!wstr) return -1; + len = strlen((char*)romaji) + 1; + if(len > sizeof(intmp)) { + wstr = (wchar16_t*)malloc(len * sizeof(wchar16_t)); + if(!wstr) return -1; mflag = 1; } else { - wstr = (wchar16_t *) intmp; + wstr = (wchar16_t*)intmp; } - if (mbstowcs(wstr, (char *)romaji, len) == -1) { - if (mflag) free(wstr); + if(mbstowcs(wstr, (char*)romaji, len) == -1) { + if(mflag) free(wstr); return -1; } ret = sj3_rkconv_w16(wstr, outtmp); - if (ret == 0 || ret == -1) { - if (mflag) free(wstr); + if(ret == 0 || ret == -1) { + if(mflag) free(wstr); return ret; } - if (wcstombs((char *)mtmp, outtmp, sizeof(outtmp)) == -1) { - if (mflag) free(wstr); + if(wcstombs((char*)mtmp, outtmp, sizeof(outtmp)) == -1) { + if(mflag) free(wstr); return -1; } - if (wcstombs((char *)romaji, wstr, len) == -1) { - if (mflag) free(wstr); + if(wcstombs((char*)romaji, wstr, len) == -1) { + if(mflag) free(wstr); return -1; } - if (current_locale == LC_CTYPE_EUC) { - (void) memcpy(kana, mtmp, strlen((char *)mtmp) + 1); + if(current_locale == LC_CTYPE_EUC) { + (void)memcpy(kana, mtmp, strlen((char*)mtmp) + 1); } else { - len = sjistoeuc(kana, MAXLLEN*2, mtmp, sizeof(mtmp)); + len = sjistoeuc(kana, MAXLLEN * 2, mtmp, sizeof(mtmp)); } - if (mflag) free(wstr); - if (len > 0) { + if(mflag) free(wstr); + if(len > 0) { return ret; } else { return len; } } -int -sj3_rkconv_mb(u_char *romaji, u_char *kana) -{ - if (current_locale == LC_CTYPE_EUC) - return sj3_rkconv_euc(romaji, kana); +int sj3_rkconv_mb(u_char* romaji, u_char* kana) { + if(current_locale == LC_CTYPE_EUC) + return sj3_rkconv_euc(romaji, kana); else - return sj3_rkconv(romaji, kana); + return sj3_rkconv(romaji, kana); } -int -sj3_rkconv_w16(wchar16_t *wstr, wchar16_t *kstr) -{ +int sj3_rkconv_w16(wchar16_t* wstr, wchar16_t* kstr) { - int i; + int i; wchar16_t *p, *q, *s; - u_short cc; - int rlen, len; - wchar16_t svstr[MAXLLEN]; - RkTablW16 *rktp; - u_short *kp; + u_short cc; + int rlen, len; + wchar16_t svstr[MAXLLEN]; + RkTablW16* rktp; + u_short* kp; - len = wslen(wstr); + len = wslen(wstr); rktp = sj3_rcode_w16[WTOUPPER(*wstr)]; - if (*wstr > (wchar16_t) 0xff) rktp = NULL; + if(*wstr > (wchar16_t)0xff) rktp = NULL; while(rktp != NULL) { rlen = rkmatch((wstr + 1), rktp->r_key, len - 1); - if (rlen == CONTINUE) { + if(rlen == CONTINUE) { break; - } else if (rlen != NOMACH) { + } else if(rlen != NOMACH) { kp = rktp->k_yomi; while((cc = *kp++) != 0) { *kstr++ = cc; @@ -1160,12 +1073,12 @@ sj3_rkconv_w16(wchar16_t *wstr, wchar16_t *kstr) wscpy(svstr, wstr); q = wstr; p = svstr; - if ((s = rktp->r_str) != NULL) { + if((s = rktp->r_str) != NULL) { p += rlen; i = wslen(s); p -= i; - while (*s != NSTR) { - if (*s == WTOUPPER(*p)) + while(*s != NSTR) { + if(*s == WTOUPPER(*p)) *q = *p; else *q = *s; @@ -1174,10 +1087,10 @@ sj3_rkconv_w16(wchar16_t *wstr, wchar16_t *kstr) s++; } } - if (rlen < len) { + if(rlen < len) { p = svstr; p += rlen; - while (*p != NSTR) + while(*p != NSTR) *q++ = *p++; } *q = NSTR; @@ -1185,37 +1098,33 @@ sj3_rkconv_w16(wchar16_t *wstr, wchar16_t *kstr) } rktp = rktp->next; } - if (rktp == NULL && len <= 1) { + if(rktp == NULL && len <= 1) { *kstr++ = *wstr; - *wstr = NSTR; - rlen = 1; + *wstr = NSTR; + rlen = 1; } *kstr = NSTR; - return(rlen); + return (rlen); } - - -int -rkmatch(wchar16_t *s1, wchar16_t *s2, int len) -{ +int rkmatch(wchar16_t* s1, wchar16_t* s2, int len) { int i; i = 1; - if (s2 == NULL) - return(i); - for (; i < len + 1; i++) { - if (*s1 > (wchar16_t) 0xff) - return(NOMACH); - if (WTOUPPER(*s1) != *s2) { - if (*s2 != NSTR) - return(NOMACH); + if(s2 == NULL) + return (i); + for(; i < len + 1; i++) { + if(*s1 > (wchar16_t)0xff) + return (NOMACH); + if(WTOUPPER(*s1) != *s2) { + if(*s2 != NSTR) + return (NOMACH); break; } s1++; s2++; } - if (*s2 != NSTR) + if(*s2 != NSTR) i = CONTINUE; - return(i); + return (i); } diff --git a/lib/sj3rkcv/sj3_rkcv.c b/lib/sj3rkcv/sj3_rkcv.c index 3604a55..de9dd84 100644 --- a/lib/sj3rkcv/sj3_rkcv.c +++ b/lib/sj3rkcv/sj3_rkcv.c @@ -1,6 +1,6 @@ /* * Copyright (c) 1994 Sony Corporation - * + * * Permission is hereby granted, free of charge, to any person obtaining * a copy of this software and associated documentation files (the * "Software"), to deal in the Software without restriction, including @@ -8,10 +8,10 @@ * distribute, sublicense, and/or sell copies of the Software, and to * permit persons to whom the Software is furnished to do so, subject to * the following conditions: - * + * * The above copyright notice and this permission notice shall be * included in all copies or substantial portions of the Software. - * + * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. @@ -19,7 +19,7 @@ * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR * THE USE OR OTHER DEALINGS IN THE SOFTWARE. - * + * * Except as contained in this notice, the name of Sony Corporation * shall not be used in advertising or otherwise to promote the sale, use * or other dealings in this Software without prior written authorization @@ -28,12 +28,11 @@ */ /* - * $SonyRCSfile: sj3_rkcv.c,v $ - * $SonyRevision: 1.3 $ + * $SonyRCSfile: sj3_rkcv.c,v $ + * $SonyRevision: 1.3 $ * $SonyDate: 1995/02/10 06:02:25 $ */ - #include #include @@ -52,7 +51,7 @@ #define wslen sj3_wslen16 #define mbstowcs sj3_mbstowcs16 #define wcstombs sj3_wcstombs16 -#endif +#endif extern int current_locale; @@ -60,461 +59,435 @@ extern int current_locale; #define sj_ishira(c) (c >= 0xa4a1 && c <= 0xa4f3) static wchar16_t intmp[MAXLLEN]; static wchar16_t outtmp[MAXLLEN]; -static u_char mtmp[MAXLLEN]; +static u_char mtmp[MAXLLEN]; static u_short HKtable[ZKATAn] = { - KANA_XA, KANA_A, - KANA_XA + 1, KANA_A + 1, - KANA_XA + 2, KANA_A + 2, - KANA_XA + 3, KANA_A + 3, - KANA_XA + 4, KANA_A + 4, + KANA_XA, KANA_A, + KANA_XA + 1, KANA_A + 1, + KANA_XA + 2, KANA_A + 2, + KANA_XA + 3, KANA_A + 3, + KANA_XA + 4, KANA_A + 4, - KANA_KA, KANA_GA, - KANA_KA + 1, KANA_GA + (1<<8), - KANA_KA + 2, KANA_GA + (2<<8), - KANA_KA + 3, KANA_GA + (3<<8), - KANA_KA + 4, KANA_GA + (4<<8), + KANA_KA, KANA_GA, + KANA_KA + 1, KANA_GA + (1 << 8), + KANA_KA + 2, KANA_GA + (2 << 8), + KANA_KA + 3, KANA_GA + (3 << 8), + KANA_KA + 4, KANA_GA + (4 << 8), - KANA_SA, KANA_ZA, - KANA_SA + 1, KANA_ZA + (1<<8), - KANA_SA + 2, KANA_ZA + (2<<8), - KANA_SA + 3, KANA_ZA + (3<<8), - KANA_SA + 4, KANA_ZA + (4<<8), + KANA_SA, KANA_ZA, + KANA_SA + 1, KANA_ZA + (1 << 8), + KANA_SA + 2, KANA_ZA + (2 << 8), + KANA_SA + 3, KANA_ZA + (3 << 8), + KANA_SA + 4, KANA_ZA + (4 << 8), - KANA_TA, KANA_DA, - KANA_TA + 1, KANA_DA + (1<<8), - KANA_XTSU, KANA_TA + 2, KANA_DA + (2<<8), - KANA_TA + 3, KANA_DA + (3<<8), - KANA_TA + 4, KANA_DA + (4<<8), - - KANA_NA, - KANA_NA + 1, - KANA_NA + 2, - KANA_NA + 3, - KANA_NA + 4, + KANA_TA, KANA_DA, + KANA_TA + 1, KANA_DA + (1 << 8), + KANA_XTSU, KANA_TA + 2, KANA_DA + (2 << 8), + KANA_TA + 3, KANA_DA + (3 << 8), + KANA_TA + 4, KANA_DA + (4 << 8), - KANA_HA, KANA_BA, KANA_PA, - KANA_HA + 1, KANA_BA + (1<<8), KANA_PA + (1<<8), - KANA_HA + 2, KANA_BA + (2<<8), KANA_PA + (2<<8), - KANA_HA + 3, KANA_BA + (3<<8), KANA_PA + (3<<8), - KANA_HA + 4, KANA_BA + (4<<8), KANA_PA + (4<<8), + KANA_NA, + KANA_NA + 1, + KANA_NA + 2, + KANA_NA + 3, + KANA_NA + 4, - KANA_MA, - KANA_MA + 1, - KANA_MA + 2, - KANA_MA + 3, - KANA_MA + 4, + KANA_HA, KANA_BA, KANA_PA, + KANA_HA + 1, KANA_BA + (1 << 8), KANA_PA + (1 << 8), + KANA_HA + 2, KANA_BA + (2 << 8), KANA_PA + (2 << 8), + KANA_HA + 3, KANA_BA + (3 << 8), KANA_PA + (3 << 8), + KANA_HA + 4, KANA_BA + (4 << 8), KANA_PA + (4 << 8), - KANA_XYA, KANA_YA, - KANA_XYA + 1, KANA_YA + 1, - KANA_XYA + 2, KANA_YA + 2, + KANA_MA, + KANA_MA + 1, + KANA_MA + 2, + KANA_MA + 3, + KANA_MA + 4, - KANA_RA, - KANA_RA + 1, - KANA_RA + 2, - KANA_RA + 3, - KANA_RA + 4, + KANA_XYA, KANA_YA, + KANA_XYA + 1, KANA_YA + 1, + KANA_XYA + 2, KANA_YA + 2, - KANA_WA, KANA_WA, - KANA_A + 1, - KANA_A + 3, - KANA_WO, - KANA_WA + 1, + KANA_RA, + KANA_RA + 1, + KANA_RA + 2, + KANA_RA + 3, + KANA_RA + 4, - ((KANA_A+2)<<8) + KANA_DTEN, - KANA_KA, - KANA_KA + 3 -}; + KANA_WA, KANA_WA, + KANA_A + 1, + KANA_A + 3, + KANA_WO, + KANA_WA + 1, + + ((KANA_A + 2) << 8) + KANA_DTEN, + KANA_KA, + KANA_KA + 3}; static struct ztohkktbl { u_short zen; u_short han; } HKKtbl[8] = { - ZEN_KTEN, KANA_KTEN, - ZEN_FKAKKO, KANA_FKAKKO, - ZEN_EKAKKO, KANA_EKAKKO, - ZEN_TTEN, KANA_TTEN, - ZEN_CTEN, KANA_CTEN, - ZEN_CHOUON, KANA_CHOUON, - ZEN_DTEN, KANA_DTEN, - ZEN_HDTEN, KANA_HDTEN -}; - + ZEN_KTEN, KANA_KTEN, + ZEN_FKAKKO, KANA_FKAKKO, + ZEN_EKAKKO, KANA_EKAKKO, + ZEN_TTEN, KANA_TTEN, + ZEN_CTEN, KANA_CTEN, + ZEN_CHOUON, KANA_CHOUON, + ZEN_DTEN, KANA_DTEN, + ZEN_HDTEN, KANA_HDTEN}; static struct hzkigoutbl { wchar16_t han; - u_short zen; + u_short zen; } HZKtbl[6] = { - ',', ZEN_TTEN, - '.', ZEN_KTEN, - '-', ZEN_CHOUON, - '@', ZEN_CTEN, - '[', ZEN_FKAKKO, - ']', ZEN_EKAKKO -}; + ',', ZEN_TTEN, + '.', ZEN_KTEN, + '-', ZEN_CHOUON, + '@', ZEN_CTEN, + '[', ZEN_FKAKKO, + ']', ZEN_EKAKKO}; static u_short HZtbl[95] = { - 0xa1a1, 0xa1aa, 0xa1c9, 0xa1f4, 0xa1f0, 0xa1f3, 0xa1f5, 0xa1c7, - 0xa1ca, 0xa1cb, 0xa1f6, 0xa1dc, 0xa1a4, 0xa1dd, 0xa1a5, 0xa1bf, - 0xa3b0, 0xa3b1, 0xa3b2, 0xa3b3, 0xa3b4, 0xa3b5, 0xa3b6, 0xa3b7, - 0xa3b8, 0xa3b9, 0xa1a7, 0xa1a8, 0xa1e3, 0xa1e1, 0xa1e4, 0xa1a9, - 0xa1f7, 0xa3c1, 0xa3c2, 0xa3c3, 0xa3c4, 0xa3c5, 0xa3c6, 0xa3c7, - 0xa3c8, 0xa3c9, 0xa3ca, 0xa3cb, 0xa3cc, 0xa3cd, 0xa3ce, 0xa3cf, - 0xa3d0, 0xa3d1, 0xa3d2, 0xa3d3, 0xa3d4, 0xa3d5, 0xa3d6, 0xa3d7, - 0xa3d8, 0xa3d9, 0xa3da, 0xa1ce, 0xa1ef, 0xa1cf, 0xa1b0, 0xa1b2, - 0xa1c6, 0xa3e1, 0xa3e2, 0xa3e3, 0xa3e4, 0xa3e5, 0xa3e6, 0xa3e7, - 0xa3e8, 0xa3e9, 0xa3ea, 0xa3eb, 0xa3ec, 0xa3ed, 0xa3ee, 0xa3ef, - 0xa3f0, 0xa3f1, 0xa3f2, 0xa3f3, 0xa3f4, 0xa3f5, 0xa3f6, 0xa3f7, - 0xa3f8, 0xa3f9, 0xa3fa, 0xa1d0, 0xa1c3, 0xa1d1, 0xa1b1 -}; + 0xa1a1, 0xa1aa, 0xa1c9, 0xa1f4, 0xa1f0, 0xa1f3, 0xa1f5, 0xa1c7, + 0xa1ca, 0xa1cb, 0xa1f6, 0xa1dc, 0xa1a4, 0xa1dd, 0xa1a5, 0xa1bf, + 0xa3b0, 0xa3b1, 0xa3b2, 0xa3b3, 0xa3b4, 0xa3b5, 0xa3b6, 0xa3b7, + 0xa3b8, 0xa3b9, 0xa1a7, 0xa1a8, 0xa1e3, 0xa1e1, 0xa1e4, 0xa1a9, + 0xa1f7, 0xa3c1, 0xa3c2, 0xa3c3, 0xa3c4, 0xa3c5, 0xa3c6, 0xa3c7, + 0xa3c8, 0xa3c9, 0xa3ca, 0xa3cb, 0xa3cc, 0xa3cd, 0xa3ce, 0xa3cf, + 0xa3d0, 0xa3d1, 0xa3d2, 0xa3d3, 0xa3d4, 0xa3d5, 0xa3d6, 0xa3d7, + 0xa3d8, 0xa3d9, 0xa3da, 0xa1ce, 0xa1ef, 0xa1cf, 0xa1b0, 0xa1b2, + 0xa1c6, 0xa3e1, 0xa3e2, 0xa3e3, 0xa3e4, 0xa3e5, 0xa3e6, 0xa3e7, + 0xa3e8, 0xa3e9, 0xa3ea, 0xa3eb, 0xa3ec, 0xa3ed, 0xa3ee, 0xa3ef, + 0xa3f0, 0xa3f1, 0xa3f2, 0xa3f3, 0xa3f4, 0xa3f5, 0xa3f6, 0xa3f7, + 0xa3f8, 0xa3f9, 0xa3fa, 0xa1d0, 0xa1c3, 0xa1d1, 0xa1b1}; #ifdef ADDHK -void -setl_hktozh() -{ - int i; - u_short c, zen1; - wchar16_t rstr[2]; - wchar16_t kstr[2]; +void setl_hktozh() { + int i; + u_short c, zen1; + wchar16_t rstr[2]; + wchar16_t kstr[2]; RkTablW16 *rktp, *mktable(); - zen1 = (ZHIRA1 << 8); + zen1 = (ZHIRA1 << 8); rstr[1] = '\0'; kstr[1] = 0; for(i = 0; i < ZKATAn - 3; i++) { c = HKtable[i]; - if (!(c & RKZEN)) { + if(!(c & RKZEN)) { rstr[0] = c; - if ((rktp = mktable(rstr, 1)) == NULL) + if((rktp = mktable(rstr, 1)) == NULL) break; - if (rktp->k_yomi != NULL) + if(rktp->k_yomi != NULL) continue; kstr[0] = zen1 + (ZHIRAF2 + i); - if (kstradd(&(rktp->k_yomi), kstr, 2) == -1) + if(kstradd(&(rktp->k_yomi), kstr, 2) == -1) break; } } - for (i = 0; i < 8; i++) { + for(i = 0; i < 8; i++) { rstr[0] = HKKtbl[i].han; - if ((rktp = mktable(rstr, 1)) == NULL) + if((rktp = mktable(rstr, 1)) == NULL) break; - if (rktp->k_yomi != NULL) + if(rktp->k_yomi != NULL) continue; kstr[0] = HKKtbl[i].zen; - if (kstradd(&(rktp->k_yomi), kstr, 2) == -1) + if(kstradd(&(rktp->k_yomi), kstr, 2) == -1) break; } } #endif - -void -mkkigou() -{ - int i; - wchar16_t rstr[2]; - wchar16_t kstr[2]; +void mkkigou() { + int i; + wchar16_t rstr[2]; + wchar16_t kstr[2]; RkTablW16 *rktp, *mktable(); rstr[1] = '\0'; kstr[1] = 0; - for (i = 0; i < 6; i++) { + for(i = 0; i < 6; i++) { rstr[0] = HZKtbl[i].han; - if ((rktp = mktable(rstr, 1)) == NULL) + if((rktp = mktable(rstr, 1)) == NULL) break; - if (rktp->k_yomi != NULL) + if(rktp->k_yomi != NULL) continue; kstr[0] = HZKtbl[i].zen; - if (kstradd(&(rktp->k_yomi), kstr, 2) == -1) + if(kstradd(&(rktp->k_yomi), kstr, 2) == -1) break; } } -int -sj_addten(u_short prefix, u_short c) -{ +int sj_addten(u_short prefix, u_short c) { u_short c1, cc; cc = 0; - if ((c == ZEN_DTEN || c == ZEN_HDTEN) && - (sj_ishira(prefix) || sj_iskata(prefix))) { + if((c == ZEN_DTEN || c == ZEN_HDTEN) && + (sj_ishira(prefix) || sj_iskata(prefix))) { c1 = sj_zen2han(prefix); - if ((c1 >= KANA_KA && c1 < KANA_NA) || - (c1 >= KANA_HA && c1 < KANA_MA)) { - if (c == ZEN_DTEN) + if((c1 >= KANA_KA && c1 < KANA_NA) || + (c1 >= KANA_HA && c1 < KANA_MA)) { + if(c == ZEN_DTEN) cc = prefix + 1; - else if (c == ZEN_HDTEN && c1 >= KANA_HA) + else if(c == ZEN_HDTEN && c1 >= KANA_HA) cc = prefix + 2; - } else if (c1 == KANA_A+2 && sj_iskata(prefix)&& c == ZEN_DTEN) + } else if(c1 == KANA_A + 2 && sj_iskata(prefix) && c == ZEN_DTEN) cc = ZEN_VU; } - return(cc); + return (cc); } -int -sj_han2zen(u_short c) -{ - int i; +int sj_han2zen(u_short c) { + int i; u_short cc; - if (WcIsHANKAKU(c) && iskana2(c)) { - for (i = 0; i < ZKATAn; i++) { - if (c == HKtable[i]) { - if (i >= ZKATAn - 3) { + if(WcIsHANKAKU(c) && iskana2(c)) { + for(i = 0; i < ZKATAn; i++) { + if(c == HKtable[i]) { + if(i >= ZKATAn - 3) { cc = (ZKATA1 << 8) + (ZKATAF2 + i + 1); - } - else { + } else { cc = (ZHIRA1 << 8) + (ZHIRAF2 + i); - if (c == KANA_WA) + if(c == KANA_WA) cc++; } break; } } - if (i >= ZKATAn) { - for (i = 0; i < 8; i++) { - if (c == HKKtbl[i].han) { + if(i >= ZKATAn) { + for(i = 0; i < 8; i++) { + if(c == HKKtbl[i].han) { cc = HKKtbl[i].zen; break; } } - if (i >= 8) + if(i >= 8) cc = ZEN_SPACE; } } else { - if (c >= 0x20 && c <= 0x7e) + if(c >= 0x20 && c <= 0x7e) cc = HZtbl[c - 0x20]; else cc = c; } - return(cc); + return (cc); } - -int -sj3_hantozen(u_char *out, u_char *in) -{ +int sj3_hantozen(u_char* out, u_char* in) { wchar16_t *winstr, *woutstr; - u_char *mstr; - int inlen, outlen, imflag = 0, omflag = 0, mmflag = 0, ret; + u_char* mstr; + int inlen, outlen, imflag = 0, omflag = 0, mmflag = 0, ret; inlen = strlen(in) + 1; - if (current_locale == LC_CTYPE_EUC) { - if (inlen > sizeof(mtmp)) { - mstr = (u_char *) malloc(inlen); + if(current_locale == LC_CTYPE_EUC) { + if(inlen > sizeof(mtmp)) { + mstr = (u_char*)malloc(inlen); mmflag = 1; } else { mstr = mtmp; } - if (sjistoeuc(mstr, inlen, in, inlen) < 0) { - if (mmflag) free(mstr); + if(sjistoeuc(mstr, inlen, in, inlen) < 0) { + if(mmflag) free(mstr); return -1; } } else { mstr = in; } - if ((inlen * sizeof(wchar16_t)) > sizeof(intmp)) { - winstr = (wchar16_t *) malloc(inlen * sizeof(wchar16_t)); - if (!winstr) { - if (mmflag) free(mstr); + if((inlen * sizeof(wchar16_t)) > sizeof(intmp)) { + winstr = (wchar16_t*)malloc(inlen * sizeof(wchar16_t)); + if(!winstr) { + if(mmflag) free(mstr); return -1; } imflag = 1; } else { - winstr = (wchar16_t *) intmp; + winstr = (wchar16_t*)intmp; } - if (mbstowcs(winstr, (char *)mstr, inlen) == -1) { - if (mmflag) free(mstr); - if (imflag) free(winstr); + if(mbstowcs(winstr, (char*)mstr, inlen) == -1) { + if(mmflag) free(mstr); + if(imflag) free(winstr); return -1; } outlen = inlen; - if ((outlen * sizeof(wchar16_t)) > sizeof(outtmp)) { - woutstr = (wchar16_t *) malloc(outlen * sizeof(wchar16_t)); - if (!woutstr) { - if (mmflag) free(mstr); - if (imflag) free(winstr); + if((outlen * sizeof(wchar16_t)) > sizeof(outtmp)) { + woutstr = (wchar16_t*)malloc(outlen * sizeof(wchar16_t)); + if(!woutstr) { + if(mmflag) free(mstr); + if(imflag) free(winstr); return -1; } - omflag = 1; + omflag = 1; } else { - woutstr = (wchar16_t *) outtmp; + woutstr = (wchar16_t*)outtmp; } ret = sj3_hantozen_w16(woutstr, winstr); - if (mmflag) { + if(mmflag) { free(mstr); mmflag = 0; } - if (ret == 0 || ret == -1) { - if (imflag) free(winstr); - if (omflag) free(woutstr); + if(ret == 0 || ret == -1) { + if(imflag) free(winstr); + if(omflag) free(woutstr); return ret; } outlen = ret * 3; - if (outlen > sizeof(mtmp)) { - mstr = (u_char *) malloc(outlen); - if (!mstr) { - if (imflag) free(winstr); - if (omflag) free(woutstr); + if(outlen > sizeof(mtmp)) { + mstr = (u_char*)malloc(outlen); + if(!mstr) { + if(imflag) free(winstr); + if(omflag) free(woutstr); return -1; } mmflag = 1; } else { mstr = mtmp; } - if (wcstombs((char *)mstr, woutstr, outlen) == -1) { - if (imflag) free(winstr); - if (omflag) free(woutstr); - if (mmflag) free(mstr); + if(wcstombs((char*)mstr, woutstr, outlen) == -1) { + if(imflag) free(winstr); + if(omflag) free(woutstr); + if(mmflag) free(mstr); return -1; } - if (current_locale == LC_CTYPE_EUC) { + if(current_locale == LC_CTYPE_EUC) { inlen = euctosjis(out, outlen, mstr, outlen); } else { - (void) memcpy(out, mstr, strlen(mstr) + 1); + (void)memcpy(out, mstr, strlen(mstr) + 1); } - if (imflag) free(winstr); - if (omflag) free(woutstr); - if (mmflag) free(mstr); + if(imflag) free(winstr); + if(omflag) free(woutstr); + if(mmflag) free(mstr); - if (inlen > 0) { + if(inlen > 0) { return ret; } else { return inlen; } } -int -sj3_hantozen_euc(u_char *out, u_char *in) -{ +int sj3_hantozen_euc(u_char* out, u_char* in) { wchar16_t *winstr, *woutstr; - u_char *mstr; - int inlen, outlen, imflag = 0, omflag = 0, mmflag = 0, ret; + u_char* mstr; + int inlen, outlen, imflag = 0, omflag = 0, mmflag = 0, ret; inlen = strlen(in) + 1; - if (current_locale == LC_CTYPE_EUC) { + if(current_locale == LC_CTYPE_EUC) { mstr = in; } else { - if (inlen > sizeof(mtmp)) { - mstr = (u_char *) malloc(inlen); + if(inlen > sizeof(mtmp)) { + mstr = (u_char*)malloc(inlen); mmflag = 1; } else { mstr = mtmp; } - if (euctosjis(mstr, inlen, in, inlen) < 0) { - if (mmflag) free(mstr); + if(euctosjis(mstr, inlen, in, inlen) < 0) { + if(mmflag) free(mstr); return -1; } } - if ((inlen * sizeof(wchar16_t)) > sizeof(intmp)) { - winstr = (wchar16_t *) malloc(inlen * sizeof(wchar16_t)); - if (!winstr) { - if (mmflag) free(mstr); + if((inlen * sizeof(wchar16_t)) > sizeof(intmp)) { + winstr = (wchar16_t*)malloc(inlen * sizeof(wchar16_t)); + if(!winstr) { + if(mmflag) free(mstr); return -1; } imflag = 1; } else { - winstr = (wchar16_t *) intmp; + winstr = (wchar16_t*)intmp; } - if (mbstowcs(winstr, (char *)mstr, inlen) == -1) { - if (mmflag) free(mstr); - if (imflag) free(winstr); + if(mbstowcs(winstr, (char*)mstr, inlen) == -1) { + if(mmflag) free(mstr); + if(imflag) free(winstr); return -1; } outlen = inlen; - if ((outlen * sizeof(wchar16_t)) > sizeof(outtmp)) { - woutstr = (wchar16_t *) malloc(outlen * sizeof(wchar16_t)); - if (!woutstr) { - if (mmflag) free(mstr); - if (imflag) free(winstr); + if((outlen * sizeof(wchar16_t)) > sizeof(outtmp)) { + woutstr = (wchar16_t*)malloc(outlen * sizeof(wchar16_t)); + if(!woutstr) { + if(mmflag) free(mstr); + if(imflag) free(winstr); return -1; } - omflag = 1; + omflag = 1; } else { - woutstr = (wchar16_t *) outtmp; + woutstr = (wchar16_t*)outtmp; } ret = sj3_hantozen_w16(woutstr, winstr); - if (mmflag) { + if(mmflag) { free(mstr); mmflag = 0; } - if (ret == 0 || ret == -1) { - if (imflag) free(winstr); - if (omflag) free(woutstr); + if(ret == 0 || ret == -1) { + if(imflag) free(winstr); + if(omflag) free(woutstr); return ret; } outlen = ret * 3; - if (outlen > sizeof(mtmp)) { - mstr = (u_char *) malloc(outlen); - if (!mstr) { - if (imflag) free(winstr); - if (omflag) free(woutstr); + if(outlen > sizeof(mtmp)) { + mstr = (u_char*)malloc(outlen); + if(!mstr) { + if(imflag) free(winstr); + if(omflag) free(woutstr); return -1; } mmflag = 1; } else { mstr = mtmp; } - if (wcstombs((char *)mstr, woutstr, outlen) == -1) { - if (imflag) free(winstr); - if (omflag) free(woutstr); - if (mmflag) free(mstr); + if(wcstombs((char*)mstr, woutstr, outlen) == -1) { + if(imflag) free(winstr); + if(omflag) free(woutstr); + if(mmflag) free(mstr); return -1; } - if (current_locale == LC_CTYPE_EUC) { - (void) memcpy(out, mstr, strlen(mstr) + 1); + if(current_locale == LC_CTYPE_EUC) { + (void)memcpy(out, mstr, strlen(mstr) + 1); } else { inlen = sjistoeuc(out, outlen, mstr, outlen); } - if (imflag) free(winstr); - if (omflag) free(woutstr); - if (mmflag) free(mstr); + if(imflag) free(winstr); + if(omflag) free(woutstr); + if(mmflag) free(mstr); - if (inlen > 0) { + if(inlen > 0) { return ret; } else { return inlen; } } -int -sj3_hantozen_mb(u_char *s1, u_char *s2) -{ - if (current_locale == LC_CTYPE_EUC) - return sj3_hantozen_euc(s1, s2); +int sj3_hantozen_mb(u_char* s1, u_char* s2) { + if(current_locale == LC_CTYPE_EUC) + return sj3_hantozen_euc(s1, s2); else - return sj3_hantozen(s1, s2); + return sj3_hantozen(s1, s2); } -int -sj3_hantozen_w16(wchar16_t *s1, wchar16_t *s2) -{ +int sj3_hantozen_w16(wchar16_t* s1, wchar16_t* s2) { return sj_hantozen(s1, s2, wslen(s2)); } -int -sj_hantozen(wchar16_t *s1, wchar16_t *s2, int len) -{ - u_short c1, cc, prefix; +int sj_hantozen(wchar16_t* s1, wchar16_t* s2, int len) { + u_short c1, cc, prefix; wchar16_t c; - int i; - int rlen; + int i; + int rlen; prefix = 0; - rlen = 0; - for (i = 0; i < len && *s2 != '\0'; i++) { - c = *s2++; + rlen = 0; + for(i = 0; i < len && *s2 != '\0'; i++) { + c = *s2++; cc = sj_han2zen(c); - if (cc & RKZEN) { - if (prefix != 0 && (c1 = sj_addten(prefix, cc)) != 0) { + if(cc & RKZEN) { + if(prefix != 0 && (c1 = sj_addten(prefix, cc)) != 0) { s1 -= 1; rlen -= 1; - cc = c1; + cc = c1; prefix = 0; - } else + } else prefix = cc; *s1++ = cc; - rlen ++; + rlen++; } else { *s1++ = cc; rlen++; @@ -522,106 +495,102 @@ sj_hantozen(wchar16_t *s1, wchar16_t *s2, int len) } } *s1 = '\0'; - return(rlen); + return (rlen); } -int -sj_zen2han(u_short c) -{ - int i; +int sj_zen2han(u_short c) { + int i; u_short cc; - - i = ZKATAn; + + i = ZKATAn; cc = c & MASK; - if (sj_ishira(c)) + if(sj_ishira(c)) i = cc - ZHIRAF2; - else if (sj_iskata(c)) { + else if(sj_iskata(c)) { i = cc - ZKATAF2; } - if (i < ZKATAn) + if(i < ZKATAn) cc = HKtable[i]; else { - for (i = 0; i < 8; i++) { - if (c == HKKtbl[i].zen) { + for(i = 0; i < 8; i++) { + if(c == HKKtbl[i].zen) { cc = HKKtbl[i].han; break; } } - if (i >= 8) { + if(i >= 8) { cc = c; - for (i = 0; i < 95; i++) { - if (c == HZtbl[i]) { + for(i = 0; i < 95; i++) { + if(c == HZtbl[i]) { cc = i + 0x20; break; } } } } - return(cc); + return (cc); } -int -sj3_zentohan(u_char *out, u_char *in) -{ +int sj3_zentohan(u_char* out, u_char* in) { wchar16_t *winstr, *woutstr; - u_char *mstr; - int inlen, outlen, imflag = 0, omflag = 0, mmflag = 0, ret; + u_char* mstr; + int inlen, outlen, imflag = 0, omflag = 0, mmflag = 0, ret; inlen = strlen(in) + 1; - if (inlen > sizeof(mtmp)) { - mstr = (u_char *) malloc(inlen); - if (!mstr) { + if(inlen > sizeof(mtmp)) { + mstr = (u_char*)malloc(inlen); + if(!mstr) { return -1; } mmflag = 1; } else { mstr = mtmp; } - if (current_locale == LC_CTYPE_EUC) { - (void) euctosjis(mstr, inlen, in, inlen); + if(current_locale == LC_CTYPE_EUC) { + (void)euctosjis(mstr, inlen, in, inlen); } else { - (void) memcpy(mstr, in, inlen); + (void)memcpy(mstr, in, inlen); } - if (inlen > sizeof(intmp)) { - winstr = (wchar16_t *) malloc(((inlen / 2) + 1) * sizeof(wchar16_t)); - if (!winstr) { - if (mmflag) free(mstr); + if(inlen > sizeof(intmp)) { + winstr = (wchar16_t*)malloc(((inlen / 2) + 1) * sizeof(wchar16_t)); + if(!winstr) { + if(mmflag) free(mstr); return -1; } imflag = 1; } else { - winstr = (wchar16_t *) intmp; + winstr = (wchar16_t*)intmp; } - if (mbstowcs(winstr, (char *)mstr, inlen) == -1) { - if (mmflag) free(mstr); - if (imflag) free(winstr); + if(mbstowcs(winstr, (char*)mstr, inlen) == -1) { + if(mmflag) free(mstr); + if(imflag) free(winstr); return -1; } - if (mmflag) { + if(mmflag) { free(mstr); mmflag = 0; } outlen = ((inlen - 1) / 2) + 1; - if (outlen * sizeof(wchar16_t) > sizeof(outtmp)) { - woutstr = (wchar16_t *) malloc(outlen * sizeof(wchar16_t)); - if (!woutstr) { - if (imflag) free(winstr); + if(outlen * sizeof(wchar16_t) > sizeof(outtmp)) { + woutstr = (wchar16_t*)malloc(outlen * sizeof(wchar16_t)); + if(!woutstr) { + if(imflag) free(winstr); return -1; } - omflag = 1; + omflag = 1; } else { - woutstr = (wchar16_t *) outtmp; + woutstr = (wchar16_t*)outtmp; } ret = sj3_zentohan_w16(woutstr, winstr); - if (ret == 0 || ret == -1) { - if (imflag) free(winstr); - if (omflag) free(woutstr); + if(ret == 0 || ret == -1) { + if(imflag) free(winstr); + if(omflag) free(woutstr); return ret; } outlen = ret * 3; - if (current_locale == LC_CTYPE_EUC) { - if (outlen > sizeof(mtmp)) { - mstr = (u_char *) malloc(outlen); + if(current_locale == LC_CTYPE_EUC) { + if(outlen > sizeof(mtmp)) { + mstr = (u_char*)malloc(outlen); mmflag = 1; } else { mstr = mtmp; @@ -629,212 +598,196 @@ sj3_zentohan(u_char *out, u_char *in) } else { mstr = out; } - if (wcstombs((char *)mstr, woutstr, outlen) == -1) { - if (imflag) free(winstr); - if (omflag) free(woutstr); + if(wcstombs((char*)mstr, woutstr, outlen) == -1) { + if(imflag) free(winstr); + if(omflag) free(woutstr); return -1; } - if (current_locale == LC_CTYPE_EUC) { - if (euctosjis(out, outlen, mstr, outlen) < 0) { - if (imflag) free(winstr); - if (omflag) free(woutstr); - if (mmflag) free(mstr); + if(current_locale == LC_CTYPE_EUC) { + if(euctosjis(out, outlen, mstr, outlen) < 0) { + if(imflag) free(winstr); + if(omflag) free(woutstr); + if(mmflag) free(mstr); return -1; } } - - if (imflag) free(winstr); - if (omflag) free(woutstr); - if (mmflag) free(mstr); + + if(imflag) free(winstr); + if(omflag) free(woutstr); + if(mmflag) free(mstr); return ret; } -int -sj3_zentohan_euc(u_char *out, u_char *in) -{ +int sj3_zentohan_euc(u_char* out, u_char* in) { wchar16_t *winstr, *woutstr; - u_char *mstr; - int inlen, outlen, imflag = 0, omflag = 0, mmflag = 0, ret; + u_char* mstr; + int inlen, outlen, imflag = 0, omflag = 0, mmflag = 0, ret; inlen = strlen(in) + 1; - if (inlen > sizeof(mtmp)) { - mstr = (u_char *) malloc(inlen); - if (!mstr) { + if(inlen > sizeof(mtmp)) { + mstr = (u_char*)malloc(inlen); + if(!mstr) { return -1; } mmflag = 1; } else { mstr = mtmp; } - if (current_locale == LC_CTYPE_EUC) { - (void) euctosjis(mstr, inlen, in, inlen); + if(current_locale == LC_CTYPE_EUC) { + (void)euctosjis(mstr, inlen, in, inlen); } else { - (void) memcpy(mstr, in, inlen); + (void)memcpy(mstr, in, inlen); } - if (inlen > sizeof(intmp)) { - winstr = (wchar16_t *) malloc(((inlen / 2) + 1) * sizeof(wchar16_t)); - if (!winstr) { - if (mmflag) free(mstr); + if(inlen > sizeof(intmp)) { + winstr = (wchar16_t*)malloc(((inlen / 2) + 1) * sizeof(wchar16_t)); + if(!winstr) { + if(mmflag) free(mstr); return -1; } imflag = 1; } else { - winstr = (wchar16_t *) intmp; + winstr = (wchar16_t*)intmp; } - if (mbstowcs(winstr, (char *)mstr, inlen) == -1) { - if (mmflag) free(mstr); - if (imflag) free(winstr); + if(mbstowcs(winstr, (char*)mstr, inlen) == -1) { + if(mmflag) free(mstr); + if(imflag) free(winstr); return -1; } - if (mmflag) { + if(mmflag) { free(mstr); mmflag = 0; } outlen = ((inlen - 1) / 2) + 1; - if (outlen * sizeof(wchar16_t) > sizeof(outtmp)) { - woutstr = (wchar16_t *) malloc(outlen * sizeof(wchar16_t)); - if (!woutstr) { - if (mmflag) free(mstr); - if (imflag) free(winstr); + if(outlen * sizeof(wchar16_t) > sizeof(outtmp)) { + woutstr = (wchar16_t*)malloc(outlen * sizeof(wchar16_t)); + if(!woutstr) { + if(mmflag) free(mstr); + if(imflag) free(winstr); return -1; } - omflag = 1; + omflag = 1; } else { - woutstr = (wchar16_t *) outtmp; + woutstr = (wchar16_t*)outtmp; } ret = sj3_zentohan_w16(woutstr, winstr); - if (ret == 0 || ret == -1) { - if (mmflag) free(mstr); - if (imflag) free(winstr); - if (omflag) free(woutstr); + if(ret == 0 || ret == -1) { + if(mmflag) free(mstr); + if(imflag) free(winstr); + if(omflag) free(woutstr); return ret; } outlen = ret * 3; - if (current_locale == LC_CTYPE_EUC) { + if(current_locale == LC_CTYPE_EUC) { mstr = out; } else { - if (outlen > sizeof(mtmp)) { - mstr = (u_char *) malloc(outlen); + if(outlen > sizeof(mtmp)) { + mstr = (u_char*)malloc(outlen); mmflag = 1; } else { mstr = mtmp; } } - if (wcstombs((char *)mstr, woutstr, outlen) == -1) { - if (imflag) free(winstr); - if (omflag) free(woutstr); + if(wcstombs((char*)mstr, woutstr, outlen) == -1) { + if(imflag) free(winstr); + if(omflag) free(woutstr); return -1; } - if (current_locale == LC_CTYPE_SHIFTJIS) { - if (sjistoeuc(out, outlen, mstr, outlen) < 0) { - if (imflag) free(winstr); - if (omflag) free(woutstr); - if (mmflag) free(mstr); + if(current_locale == LC_CTYPE_SHIFTJIS) { + if(sjistoeuc(out, outlen, mstr, outlen) < 0) { + if(imflag) free(winstr); + if(omflag) free(woutstr); + if(mmflag) free(mstr); return -1; } } - if (imflag) free(winstr); - if (omflag) free(woutstr); - if (mmflag) free(mstr); + if(imflag) free(winstr); + if(omflag) free(woutstr); + if(mmflag) free(mstr); return ret; } -int -sj3_zentohan_mb(u_char *s1, u_char *s2) -{ - if (current_locale == LC_CTYPE_EUC) - return sj3_zentohan_euc(s1, s2); - else - return sj3_zentohan(s1, s2); +int sj3_zentohan_mb(u_char* s1, u_char* s2) { + if(current_locale == LC_CTYPE_EUC) + return sj3_zentohan_euc(s1, s2); + else + return sj3_zentohan(s1, s2); } -int -sj3_zentohan_w16(wchar16_t *s1, wchar16_t *s2) -{ +int sj3_zentohan_w16(wchar16_t* s1, wchar16_t* s2) { return sj_zentohan(s1, s2, wslen(s2)); } -int -sj_zentohan(wchar16_t *s1, wchar16_t *s2, int len) -{ - u_short cc; +int sj_zentohan(wchar16_t* s1, wchar16_t* s2, int len) { + u_short cc; wchar16_t c; - int i, rlen; + int i, rlen; rlen = 0; - for (i = 0; i < len && *s2 != (wchar16_t) '\0'; i++) { + for(i = 0; i < len && *s2 != (wchar16_t)'\0'; i++) { c = *s2++; - if (WcIsZENKAKU(c)) { + if(WcIsZENKAKU(c)) { cc = sj_zen2han(c); - if ((cc >> 8) && (cc != c)) { + if((cc >> 8) && (cc != c)) { *s1++ = (cc >> 8); rlen++; *s1++ = cc & 0xff; - rlen++; + rlen++; continue; } - } else + } else cc = c; - if (cc & RKZEN) { + if(cc & RKZEN) { *s1++ = (cc >> 8); rlen++; } *s1++ = (wchar16_t)cc; rlen++; } - *s1 = (wchar16_t) '\0'; - return(rlen); + *s1 = (wchar16_t)'\0'; + return (rlen); } -int -sj_tokata(wchar16_t c) -{ - if (sj_ishira(c)) { +int sj_tokata(wchar16_t c) { + if(sj_ishira(c)) { c += 0x0100; } - return(c); + return (c); } -int -sj_tohira(wchar16_t c) -{ - if (sj_iskata(c) && (short) c <= (short) 0xa5f3) { +int sj_tohira(wchar16_t c) { + if(sj_iskata(c) && (short)c <= (short)0xa5f3) { c -= 0x0100; } - return(c); + return (c); } -int -sj_htok(wchar16_t *s1, wchar16_t *s2) -{ +int sj_htok(wchar16_t* s1, wchar16_t* s2) { wchar16_t cc; wchar16_t c; - while ((c = *s2++) != (wchar16_t) '\0') { - if (WcIsX0208(c)) { - cc = sj_tokata(c); + while((c = *s2++) != (wchar16_t)'\0') { + if(WcIsX0208(c)) { + cc = sj_tokata(c); *s1++ = cc; } else *s1++ = c; } - *s1 = (wchar16_t) '\0'; + *s1 = (wchar16_t)'\0'; } -int -sj_ktoh(wchar16_t *s1, wchar16_t *s2) -{ +int sj_ktoh(wchar16_t* s1, wchar16_t* s2) { wchar16_t cc; wchar16_t c; - while ((c = *s2++) != (wchar16_t) '\0') { - if (WcIsX0208(c)) { - cc = sj_tohira(c); + while((c = *s2++) != (wchar16_t)'\0') { + if(WcIsX0208(c)) { + cc = sj_tohira(c); *s1++ = cc; } else *s1++ = c; } - *s1 = (wchar16_t) '\0'; + *s1 = (wchar16_t)'\0'; } diff --git a/lib/sj3rkcv/wc16_str.c b/lib/sj3rkcv/wc16_str.c index 16bc0df..c224a87 100644 --- a/lib/sj3rkcv/wc16_str.c +++ b/lib/sj3rkcv/wc16_str.c @@ -1,6 +1,6 @@ /* * Copyright (c) 1994 Sony Corporation - * + * * Permission is hereby granted, free of charge, to any person obtaining * a copy of this software and associated documentation files (the * "Software"), to deal in the Software without restriction, including @@ -8,10 +8,10 @@ * distribute, sublicense, and/or sell copies of the Software, and to * permit persons to whom the Software is furnished to do so, subject to * the following conditions: - * + * * The above copyright notice and this permission notice shall be * included in all copies or substantial portions of the Software. - * + * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. @@ -19,7 +19,7 @@ * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR * THE USE OR OTHER DEALINGS IN THE SOFTWARE. - * + * * Except as contained in this notice, the name of Sony Corporation * shall not be used in advertising or otherwise to promote the sale, use * or other dealings in this Software without prior written authorization @@ -28,12 +28,11 @@ */ /* - * $SonyRCSfile: wc16_str.c,v $ - * $SonyRevision: 1.3 $ + * $SonyRCSfile: wc16_str.c,v $ + * $SonyRevision: 1.3 $ * $SonyDate: 1994/11/17 06:49:21 $ */ - #include #include #include "wchar16.h" @@ -47,108 +46,93 @@ #define FALSE (0) #endif -#define sjis2euc sj3_sjis2euc -#define euc2sjis sj3_euc2sjis +#define sjis2euc sj3_sjis2euc +#define euc2sjis sj3_euc2sjis -#define issjis1(c) (((0x81 <= (c)) && ((c) <= 0x9f)) || \ - ((0xe0 <= (c)) && ((c) <= 0xfc))) -#define iseuc(c) ((0xa1 <= (c)) && ((c) <= 0xfe)) -#define iskana(c) ((0xa1 <= (c)) && ((c) <= 0xdf)) +#define issjis1(c) (((0x81 <= (c)) && ((c) <= 0x9f)) || \ + ((0xe0 <= (c)) && ((c) <= 0xfc))) +#define iseuc(c) ((0xa1 <= (c)) && ((c) <= 0xfe)) +#define iskana(c) ((0xa1 <= (c)) && ((c) <= 0xdf)) extern int current_locale; -int -sj3_iswcntrl16(wchar16_t wc) -{ - if ((wc < 0x20) || (wc == 0x7f)) return TRUE; +int sj3_iswcntrl16(wchar16_t wc) { + if((wc < 0x20) || (wc == 0x7f)) return TRUE; return FALSE; } -int -sj3_iswupper16(wchar16_t wc) -{ - if (((0x40 < wc) && (wc < 0x5b)) || - ((0xa3c0 < wc) && (wc < 0xa3db))) return TRUE; +int sj3_iswupper16(wchar16_t wc) { + if(((0x40 < wc) && (wc < 0x5b)) || + ((0xa3c0 < wc) && (wc < 0xa3db))) return TRUE; return FALSE; } -int -sj3_iswdigit16(wchar16_t wc) -{ - if (((0x29 < wc) && (wc < 0x3a)) || - ((0xa3af < wc) && (wc < 0xa3ba))) return TRUE; +int sj3_iswdigit16(wchar16_t wc) { + if(((0x29 < wc) && (wc < 0x3a)) || + ((0xa3af < wc) && (wc < 0xa3ba))) return TRUE; return FALSE; } -int -sj3_iswxdigit16(wchar16_t wc) -{ - if (((0x29 < wc) && (wc < 0x3a)) || - ((0xa3af < wc) && (wc < 0xa3ba))) return TRUE; +int sj3_iswxdigit16(wchar16_t wc) { + if(((0x29 < wc) && (wc < 0x3a)) || + ((0xa3af < wc) && (wc < 0xa3ba))) return TRUE; - if (((0x60 < wc) && (wc < 0x67)) || - ((0x40 < wc) && (wc < 0x47))) return TRUE; - - if (((0xa3c0 < wc) && (wc < 0xa3c7)) || - ((0xa3e0 < wc) && (wc < 0xa3e6))) return TRUE; + if(((0x60 < wc) && (wc < 0x67)) || + ((0x40 < wc) && (wc < 0x47))) return TRUE; + + if(((0xa3c0 < wc) && (wc < 0xa3c7)) || + ((0xa3e0 < wc) && (wc < 0xa3e6))) return TRUE; return FALSE; } -int -sj3_wslen16(wchar16_t *ws) -{ - int i=0; +int sj3_wslen16(wchar16_t* ws) { + int i = 0; - if (!ws) return 0; + if(!ws) return 0; - while (*ws++) i++; + while(*ws++) i++; return i; } -int -sj3_wscmp16(wchar16_t *ws1, wchar16_t *ws2) -{ - while ((*ws1 && *ws2) && (*ws1 == *ws2)) { +int sj3_wscmp16(wchar16_t* ws1, wchar16_t* ws2) { + while((*ws1 && *ws2) && (*ws1 == *ws2)) { ws1++; ws2++; } - if (!*ws1 && !*ws2) return 0; - if (!*ws1) return -1; - if (!*ws2) return 1; - if (*ws1 < *ws2) return -1; - return 1; -} - -int -sj3_wsncmp16(wchar16_t *ws1, wchar16_t *ws2, int n) -{ - int i=0; - - while ((*ws1 && *ws2) && (*ws1 == *ws2) && (i < n)) { - ws1++; - ws2++; - i++; - } - if (!*ws1 && !*ws2) return 0; - if (i == n) return 0; - if (!*ws1) return -1; - if (!*ws2) return 1; - if (*ws1 < *ws2) return -1; + if(!*ws1 && !*ws2) return 0; + if(!*ws1) return -1; + if(!*ws2) return 1; + if(*ws1 < *ws2) return -1; return 1; } -wchar16_t * -sj3_wscpy16(wchar16_t *ws1, wchar16_t *ws2) -{ - wchar16_t *ws; +int sj3_wsncmp16(wchar16_t* ws1, wchar16_t* ws2, int n) { + int i = 0; - if (!ws2) return NULL; + while((*ws1 && *ws2) && (*ws1 == *ws2) && (i < n)) { + ws1++; + ws2++; + i++; + } + if(!*ws1 && !*ws2) return 0; + if(i == n) return 0; + if(!*ws1) return -1; + if(!*ws2) return 1; + if(*ws1 < *ws2) return -1; + return 1; +} + +wchar16_t* +sj3_wscpy16(wchar16_t* ws1, wchar16_t* ws2) { + wchar16_t* ws; + + if(!ws2) return NULL; ws = ws1; - while (*ws2) { + while(*ws2) { *ws++ = *ws2++; } *ws = 0; @@ -156,35 +140,33 @@ sj3_wscpy16(wchar16_t *ws1, wchar16_t *ws2) return ws1; } -wchar16_t * -sj3_wsncpy16(wchar16_t *ws1, wchar16_t *ws2, int n) -{ - wchar16_t *ws; - int i=0; +wchar16_t* +sj3_wsncpy16(wchar16_t* ws1, wchar16_t* ws2, int n) { + wchar16_t* ws; + int i = 0; - if (!ws2) return NULL; + if(!ws2) return NULL; ws = ws1; - while (*ws2 && (i < n)) { + while(*ws2 && (i < n)) { *ws++ = *ws2++; i++; } - if (i < n) *ws = 0; + if(i < n) *ws = 0; return ws1; } -wchar16_t * -sj3_wscat16(wchar16_t *ws1, wchar16_t *ws2) -{ - wchar16_t *ws; +wchar16_t* +sj3_wscat16(wchar16_t* ws1, wchar16_t* ws2) { + wchar16_t* ws; - if (!ws1) return NULL; - if (!ws2) return NULL; + if(!ws1) return NULL; + if(!ws2) return NULL; ws = ws1; - while (*ws) ws++; - while (*ws2) { + while(*ws) ws++; + while(*ws2) { *ws++ = *ws2++; } *ws = 0; @@ -192,31 +174,28 @@ sj3_wscat16(wchar16_t *ws1, wchar16_t *ws2) return ws1; } - wchar16_t -sj3_euc2wc16(unsigned int code) -{ +sj3_euc2wc16(unsigned int code) { wchar16_t wc = 0; - if (((code >> 16) & 0xff) == SS3) { + if(((code >> 16) & 0xff) == SS3) { wc = code & 0xff7f; - } else if (((code >> 8) & 0xff) == SS2) { + } else if(((code >> 8) & 0xff) == SS2) { wc = code & 0xff; } else { wc = code; - } + } return wc; } wchar16_t -sj3_sjis2wc16(unsigned int code) -{ +sj3_sjis2wc16(unsigned int code) { unsigned short ch; - if ((code >> 8) & 0xff) { + if((code >> 8) & 0xff) { ch = sjis2euc(code); - } else if (code & MSB) { + } else if(code & MSB) { ch = (SS2 << 8) + (code & 0xff); } else { return code; @@ -225,20 +204,19 @@ sj3_sjis2wc16(unsigned int code) } unsigned int -sj3_wc2euc16(wchar16_t wc) -{ - unsigned int code = 0; +sj3_wc2euc16(wchar16_t wc) { + unsigned int code = 0; unsigned char tmp; tmp = (wc >> 8) & 0xff; - if (tmp) { - if (wc & MSB) { + if(tmp) { + if(wc & MSB) { code = wc; } else { code = (SS3 << 16) + wc + MSB; } } else { - if (wc & MSB) { + if(wc & MSB) { code = (SS2 << 8) + wc; } else { code = wc; @@ -249,49 +227,46 @@ sj3_wc2euc16(wchar16_t wc) } unsigned int -sj3_wc2sjis16(wchar16_t wc) -{ +sj3_wc2sjis16(wchar16_t wc) { unsigned int ch; ch = sj3_wc2euc16(wc); - if ((ch >> 16) == SS3) { + if((ch >> 16) == SS3) { return 0; - } else if ((ch >> 8) == SS2) { + } else if((ch >> 8) == SS2) { return (ch & 0xff); - } else if ((ch >> 8) & 0xff) { + } else if((ch >> 8) & 0xff) { return euc2sjis(ch); } else { return wc; } } -int -sj3_wcs2eucs16(unsigned char *mb, wchar16_t *ws, int n) -{ - int i = 0; - unsigned int code; +int sj3_wcs2eucs16(unsigned char* mb, wchar16_t* ws, int n) { + int i = 0; + unsigned int code; unsigned char c; - - while (*ws && (i < n)) { + + while(*ws && (i < n)) { code = sj3_wc2euc16(*ws); - if (c = ((code >> 16) & 0xff)) { + if(c = ((code >> 16) & 0xff)) { *mb++ = c; i++; - if (i == n) break; + if(i == n) break; *mb++ = ((code >> 8) & 0xff); i++; - if (i == n) break; + if(i == n) break; *mb++ = code & 0xff; - i++; - if (i == n) break; - } else if (c = ((code >> 8) & 0xff)) { + i++; + if(i == n) break; + } else if(c = ((code >> 8) & 0xff)) { *mb++ = c; i++; - if (i == n) break; + if(i == n) break; *mb++ = code & 0xff; - i++; - if (i == n) break; - } else if (c = (code & 0xff)) { + i++; + if(i == n) break; + } else if(c = (code & 0xff)) { *mb++ = c; i++; } else { @@ -300,30 +275,28 @@ sj3_wcs2eucs16(unsigned char *mb, wchar16_t *ws, int n) ws++; } - if (!*ws) { + if(!*ws) { *mb = '\0'; } return i; } -int -sj3_wcs2sjiss16(unsigned char *mb, wchar16_t *ws, int n) -{ - int i = 0; - unsigned int code; +int sj3_wcs2sjiss16(unsigned char* mb, wchar16_t* ws, int n) { + int i = 0; + unsigned int code; unsigned char c; - - while (*ws && (i < n)) { + + while(*ws && (i < n)) { code = sj3_wc2sjis16(*ws); - if (c = ((code >> 8) & 0xff)) { + if(c = ((code >> 8) & 0xff)) { *mb++ = c; i++; - if (i == n) break; + if(i == n) break; *mb++ = code & 0xff; i++; - if (i == n) break; - } else if (c = (code & 0xff)) { + if(i == n) break; + } else if(c = (code & 0xff)) { *mb++ = c; i++; } else { @@ -332,83 +305,73 @@ sj3_wcs2sjiss16(unsigned char *mb, wchar16_t *ws, int n) ws++; } - if (!*ws) { + if(!*ws) { *mb = '\0'; } return i; } -int -sj3_eucs2wcs16(wchar16_t *ws, unsigned char *mb, int n) -{ - int i = 0; +int sj3_eucs2wcs16(wchar16_t* ws, unsigned char* mb, int n) { + int i = 0; unsigned int code; - while (*mb && (i < n)) { - if (*mb == SS3) { + while(*mb && (i < n)) { + if(*mb == SS3) { code = *mb++ << 16; code += *mb++ << 8; code += *mb++; - } else if ((*mb == SS2) || (*mb & 0x80)) { + } else if((*mb == SS2) || (*mb & 0x80)) { code = *mb++ << 8; code += *mb++; } else { code = *mb++; } *ws = sj3_euc2wc16(code); - if (!*ws) return -1; + if(!*ws) return -1; ws++; i++; } - if (!*mb) { + if(!*mb) { *ws = 0; } return i; } -int -sj3_sjiss2wcs16(wchar16_t *ws, unsigned char *mb, int n) -{ - int i = 0; +int sj3_sjiss2wcs16(wchar16_t* ws, unsigned char* mb, int n) { + int i = 0; unsigned int code; - while (*mb && (i < n)) { - if (issjis1(*mb)) { + while(*mb && (i < n)) { + if(issjis1(*mb)) { code = *mb++ << 8; code += *mb++; } else { code = *mb++; } *ws = sj3_sjis2wc16(code); - if (!*ws) return -1; + if(!*ws) return -1; ws++; i++; } - if (!*mb) { + if(!*mb) { *ws = 0; } return i; } -int -sj3_mbstowcs16(wchar16_t *ws, unsigned char *mb, int n) -{ - if (current_locale == LC_CTYPE_EUC) - return sj3_eucs2wcs16(ws, mb, n); - else - return sj3_sjiss2wcs16(ws, mb, n); -} - -int -sj3_wcstombs16(unsigned char *mb, unsigned char *ws, int n) -{ - if (current_locale == LC_CTYPE_EUC) - return sj3_wcs2eucs16(mb, ws, n); +int sj3_mbstowcs16(wchar16_t* ws, unsigned char* mb, int n) { + if(current_locale == LC_CTYPE_EUC) + return sj3_eucs2wcs16(ws, mb, n); else - return sj3_wcs2sjiss16(mb, ws, n); + return sj3_sjiss2wcs16(ws, mb, n); } - +int sj3_wcstombs16(unsigned char* mb, unsigned char* ws, int n) { + if(current_locale == LC_CTYPE_EUC) + return sj3_wcs2eucs16(mb, ws, n); + else + return sj3_wcs2sjiss16(mb, ws, n); +} diff --git a/src/sj3mkdic/char.c b/src/sj3mkdic/char.c index 82792f9..cc1990b 100644 --- a/src/sj3mkdic/char.c +++ b/src/sj3mkdic/char.c @@ -1,6 +1,6 @@ /* * Copyright (c) 1991-1994 Sony Corporation - * + * * Permission is hereby granted, free of charge, to any person obtaining * a copy of this software and associated documentation files (the * "Software"), to deal in the Software without restriction, including @@ -8,10 +8,10 @@ * distribute, sublicense, and/or sell copies of the Software, and to * permit persons to whom the Software is furnished to do so, subject to * the following conditions: - * + * * The above copyright notice and this permission notice shall be * included in all copies or substantial portions of the Software. - * + * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. @@ -19,7 +19,7 @@ * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR * THE USE OR OTHER DEALINGS IN THE SOFTWARE. - * + * * Except as contained in this notice, the name of Sony Corporation * shall not be used in advertising or otherwise to promote the sale, use * or other dealings in this Software without prior written authorization @@ -28,66 +28,66 @@ */ /* - * $SonyRCSfile: char.c,v $ - * $SonyRevision: 1.1 $ + * $SonyRCSfile: char.c,v $ + * $SonyRevision: 1.1 $ * $SonyDate: 1994/06/03 08:00:32 $ */ - #include "sj_euc.h" #include "sj3_dict_const.h" #include "sj3mkdic.h" -int -cnvyomi(int code) -{ +int cnvyomi(int code) { u_short hh; u_char high; - u_char low; + u_char low; - hh = ((code >> 16) & 0xffff); + hh = ((code >> 16) & 0xffff); high = ((code >> 8) & 0xff); - low = (code & 0xff); + low = (code & 0xff); - if (!hh) { - if (high == 0xa1) { - switch (low) { - case 0xbc: return 1; - case 0xf4: return 2; - case 0xf7: return 3; - case 0xa7: return 4; + if(!hh) { + if(high == 0xa1) { + switch(low) { + case 0xbc: + return 1; + case 0xf4: + return 2; + case 0xf7: + return 3; + case 0xa7: + return 4; } - } - else if (high == 0xa2) { - if (low == 0xa9) - return 4; - } - else if (high == 0xa3) { - if (low < 0xb0) - ; - else if (low <= 0xb9) - return(low - 0xb0 + 0x10); - else if (low < 0xc0) - ; - else if (low <= 0xda) - return(low - 0xc1 + 0x1A); - else if (low < 0xe1) - ; - else if (low <= 0xfa) - return(low - 0xe1 + 0x34); - } - else if (high == 0xa4) { - if (low < 0xa1) - ; - else if (low <= 0xf3) - return(low - 0xa1 + 0x4e); - } - else if (high == 0xa5) { - switch (low) { - case 0xf4: return 0xa1; - case 0xf5: return 0xa2; - case 0xf6: return 0xa3; + } else if(high == 0xa2) { + if(low == 0xa9) + return 4; + } else if(high == 0xa3) { + if(low < 0xb0) + ; + else if(low <= 0xb9) + return (low - 0xb0 + 0x10); + else if(low < 0xc0) + ; + else if(low <= 0xda) + return (low - 0xc1 + 0x1A); + else if(low < 0xe1) + ; + else if(low <= 0xfa) + return (low - 0xe1 + 0x34); + } else if(high == 0xa4) { + if(low < 0xa1) + ; + else if(low <= 0xf3) + return (low - 0xa1 + 0x4e); + } else if(high == 0xa5) { + switch(low) { + case 0xf4: + return 0xa1; + case 0xf5: + return 0xa2; + case 0xf6: + return 0xa3; } } } @@ -95,177 +95,172 @@ cnvyomi(int code) return 0; } - -int -h2kcode(int code) -{ +int h2kcode(int code) { u_short hh; u_char high; u_char low; - hh = ((code >> 16) & 0xffff); + hh = ((code >> 16) & 0xffff); high = ((code >> 8) & 0xff); - low = (code & 0xff); + low = (code & 0xff); - if (!hh) { - if (high != 0xa4) - return code; + if(!hh) { + if(high != 0xa4) + return code; else - return (code + 0x0100); + return (code + 0x0100); } return code; /* XXX */ } - -int -codesize(u_char code) -{ - switch (code & KANJIMODEMASK) { - case ZENHIRAASSYUKU: - case ZENKATAASSYUKU: - case KANJIASSYUKU: - case KANJISTREND: +int codesize(u_char code) { + switch(code & KANJIMODEMASK) { + case ZENHIRAASSYUKU: + case ZENKATAASSYUKU: + case KANJIASSYUKU: + case KANJISTREND: return 1; - case LEADINGHANKAKU: - case OFFSETASSYUKU: - case AIATTRIBUTE: + case LEADINGHANKAKU: + case OFFSETASSYUKU: + case AIATTRIBUTE: return 2; - default: + default: return 2; } } - -void -output_knj(FILE *fp, u_char *p, int l) -{ - while (l > 0) { - switch (*p & KANJIMODEMASK) { - case ZENHIRAASSYUKU: +void output_knj(FILE* fp, u_char* p, int l) { + while(l > 0) { + switch(*p & KANJIMODEMASK) { + case ZENHIRAASSYUKU: fprintf(fp, "\244\322%d", (*p++ & 0x0f) + 1); l--; break; - case ZENKATAASSYUKU: + case ZENKATAASSYUKU: fprintf(fp, "\245\253%d", (*p++ & 0x0f) + 1); l--; break; - case KANJIASSYUKU: + case KANJIASSYUKU: fprintf(fp, "\260\265%1x", (*p++ & 0x0f)); l--; break; - case LEADINGHANKAKU: + case LEADINGHANKAKU: #ifndef USEHANKAKUINDICT l = 0; fprintf(stderr, "\244\252\244\253\244\267\244\244"); #else - fputc(*p++, fp); l--; - fputc(*p++, fp); l--; + fputc(*p++, fp); + l--; + fputc(*p++, fp); + l--; #endif break; - case OFFSETASSYUKU: + case OFFSETASSYUKU: fprintf(fp, "ofs%1x", (*p++ & 0x0f)); l--; - fprintf(fp, "%02x", *p++); l--; + fprintf(fp, "%02x", *p++); + l--; break; - case AIATTRIBUTE: + case AIATTRIBUTE: fprintf(fp, "\302\260%1x", (*p++ & 0x0f)); l--; - fprintf(fp, "%02x", *p++); l--; + fprintf(fp, "%02x", *p++); + l--; break; - case KANJISTREND: - p++; l--; + case KANJISTREND: + p++; + l--; break; - default: - if (p[1] & 0x80) - fputc(SS3, fp); - fputc((*p | 0x80), fp); l--; p++; - fputc((*p | 0x80), fp); l--; p++; - - } + default: + if(p[1] & 0x80) + fputc(SS3, fp); + fputc((*p | 0x80), fp); + l--; + p++; + fputc((*p | 0x80), fp); + l--; + p++; + } } } - -void -output_str(FILE *fp, char *p) -{ - while (*p) { fputc(*p, fp); p++; } +void output_str(FILE* fp, char* p) { + while(*p) { + fputc(*p, fp); + p++; + } } - - -void -output_int(FILE *fp, int *p) -{ - while (*p) { - if (*p < 0x100) { - fputc(*p, fp); p++; - } - else if (*p < 0x10000) { +void output_int(FILE* fp, int* p) { + while(*p) { + if(*p < 0x100) { + fputc(*p, fp); + p++; + } else if(*p < 0x10000) { fputc((*p >> 8) & 0xff, fp); - fputc(*p & 0xff, fp); p++; - } - else if (*p < 0x1000000) { + fputc(*p & 0xff, fp); + p++; + } else if(*p < 0x1000000) { fputc((*p >> 16) & 0xff, fp); fputc((*p >> 8) & 0xff, fp); - fputc(*p & 0xff, fp); p++; - } - else { + fputc(*p & 0xff, fp); + p++; + } else { fputc((*p >> 24) & 0xff, fp); fputc((*p >> 16) & 0xff, fp); fputc((*p >> 8) & 0xff, fp); - fputc(*p & 0xff, fp); p++; + fputc(*p & 0xff, fp); + p++; } } } +int yomi2zen(int code) { + static char num[] = { + '0', '1', '2', '3', '4', '5', '6', '7', + '8', '9', 'A', 'B', 'C', 'D', 'E', 'F'}; - -int -yomi2zen(int code) -{ - static char num[] = { - '0', '1', '2', '3', '4', '5', '6', '7', - '8', '9', 'A', 'B', 'C', 'D', 'E', 'F' - }; - - switch (code) { - case 0x01: return 0xa1bc; - case 0x02: return 0xa1f4; - case 0x03: return 0xa1f7; - case 0x04: return 0xa2a9; - case 0xa1: return 0xa5f4; - case 0xa2: return 0xa5f5; - case 0xa3: return 0xa5f6; - default: break; + switch(code) { + case 0x01: + return 0xa1bc; + case 0x02: + return 0xa1f4; + case 0x03: + return 0xa1f7; + case 0x04: + return 0xa2a9; + case 0xa1: + return 0xa5f4; + case 0xa2: + return 0xa5f5; + case 0xa3: + return 0xa5f6; + default: + break; } - if (code < 0x10) + if(code < 0x10) ; - else if (code < 0x1a) - return(0xa300 + code - 0x10 + 0xb0); + else if(code < 0x1a) + return (0xa300 + code - 0x10 + 0xb0); - else if (code < 0x34) - return(0xa300 + code - 0x1a + 0xc1); + else if(code < 0x34) + return (0xa300 + code - 0x1a + 0xc1); - else if (code < 0x4e) - return(0xa300 + code - 0x34 + 0xe1); + else if(code < 0x4e) + return (0xa300 + code - 0x34 + 0xe1); - else if (code < 0xa1) - return(0xa400 + code - 0x4e + 0xa1); + else if(code < 0xa1) + return (0xa400 + code - 0x4e + 0xa1); return ((num[(code >> 4) & 0x0f] << 8) | num[code & 0x0f]); } +void output_yomi(FILE* fp, u_char* p) { + int i; - -void -output_yomi(FILE *fp, u_char *p) -{ - int i; - - while (*p) { + while(*p) { i = yomi2zen(*p++); fputc((i >> 8) & 0xff, fp); fputc(i & 0xff, fp); diff --git a/src/sj3mkdic/cnvhinsi.c b/src/sj3mkdic/cnvhinsi.c index 81575ff..cb01588 100644 --- a/src/sj3mkdic/cnvhinsi.c +++ b/src/sj3mkdic/cnvhinsi.c @@ -1,6 +1,6 @@ /* * Copyright (c) 1991-1994 Sony Corporation - * + * * Permission is hereby granted, free of charge, to any person obtaining * a copy of this software and associated documentation files (the * "Software"), to deal in the Software without restriction, including @@ -8,10 +8,10 @@ * distribute, sublicense, and/or sell copies of the Software, and to * permit persons to whom the Software is furnished to do so, subject to * the following conditions: - * + * * The above copyright notice and this permission notice shall be * included in all copies or substantial portions of the Software. - * + * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. @@ -19,7 +19,7 @@ * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR * THE USE OR OTHER DEALINGS IN THE SOFTWARE. - * + * * Except as contained in this notice, the name of Sony Corporation * shall not be used in advertising or otherwise to promote the sale, use * or other dealings in this Software without prior written authorization @@ -28,88 +28,73 @@ */ /* - * $SonyRCSfile: cnvhinsi.c,v $ - * $SonyRevision: 1.2 $ + * $SonyRCSfile: cnvhinsi.c,v $ + * $SonyRevision: 1.2 $ * $SonyDate: 1996/05/27 06:59:47 $ */ - #include "sj3mkdic.h" - static struct gram_code { - char *name; - int code; + char* name; + int code; } gramtbl[] = { - #include "GramTable" }; -#define GramMax (sizeof(gramtbl)/sizeof(struct gram_code) - 1) +#define GramMax (sizeof(gramtbl) / sizeof(struct gram_code) - 1) -int -u_strcmp(u_char *a, u_char *b) -{ - if (!a || !b) return 0; +int u_strcmp(u_char* a, u_char* b) { + if(!a || !b) return 0; - while (*a && *b) { - if (*a < *b) return -1; - if (*a > *b) return 1; + while(*a && *b) { + if(*a < *b) return -1; + if(*a > *b) return 1; a++; b++; } - if (!*a && !*b) return 0; - if (!*a) return -1; + if(!*a && !*b) return 0; + if(!*a) return -1; return 1; } - -int -cnvhinsi(u_char *buf) -{ - int min; - int max; - int mid; - int i; +int cnvhinsi(u_char* buf) { + int min; + int max; + int mid; + int i; min = 0; max = GramMax; - while (min <= max) { - + while(min <= max) { + mid = (min + max) / 2; - i = u_strcmp(buf, gramtbl[mid].name); - - if (i < 0) { + if(i < 0) { max = mid - 1; } - - else if (i > 0) { + + else if(i > 0) { min = mid + 1; } - + else { - return(gramtbl[mid].code); + return (gramtbl[mid].code); } } - return 0; } +char* hinsi_str(int code) { + int i; - -char * -hinsi_str(int code) -{ - int i; - - for (i = 0 ; i <= GramMax ; i++) { - if (gramtbl[i].code == code) return gramtbl[i].name; + for(i = 0; i <= GramMax; i++) { + if(gramtbl[i].code == code) return gramtbl[i].name; } return "Err"; diff --git a/src/sj3mkdic/file.c b/src/sj3mkdic/file.c index 16eaceb..dbc66b8 100644 --- a/src/sj3mkdic/file.c +++ b/src/sj3mkdic/file.c @@ -1,6 +1,6 @@ /* * Copyright (c) 1991-1994 Sony Corporation - * + * * Permission is hereby granted, free of charge, to any person obtaining * a copy of this software and associated documentation files (the * "Software"), to deal in the Software without restriction, including @@ -8,10 +8,10 @@ * distribute, sublicense, and/or sell copies of the Software, and to * permit persons to whom the Software is furnished to do so, subject to * the following conditions: - * + * * The above copyright notice and this permission notice shall be * included in all copies or substantial portions of the Software. - * + * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. @@ -19,7 +19,7 @@ * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR * THE USE OR OTHER DEALINGS IN THE SOFTWARE. - * + * * Except as contained in this notice, the name of Sony Corporation * shall not be used in advertising or otherwise to promote the sale, use * or other dealings in this Software without prior written authorization @@ -28,129 +28,112 @@ */ /* - * $SonyRCSfile: file.c,v $ - * $SonyRevision: 1.2 $ + * $SonyRCSfile: file.c,v $ + * $SonyRevision: 1.2 $ * $SonyDate: 1995/02/03 07:38:32 $ */ #include "sj3mkdic.h" -typedef struct filelist { - FILE *fp; - char *fname; - struct filelist *next; +typedef struct filelist { + FILE* fp; + char* fname; + struct filelist* next; } FileList; -static FileList *flist = NULL; +static FileList* flist = NULL; -static char * -get_fname(FILE *fp) -{ - FileList *p; +static char* +get_fname(FILE* fp) { + FileList* p; - for (p = flist ; p ; p = p -> next) - if (p -> fp == fp) return p -> fname; + for(p = flist; p; p = p->next) + if(p->fp == fp) return p->fname; return "some file"; } -FILE * -Fopen(char *filename, char *type) -{ - FILE *fp; - char *p; - FileList *fl; - size_t len; +FILE* Fopen(char* filename, char* type) { + FILE* fp; + char* p; + FileList* fl; + size_t len; - if (!(fp = fopen(filename, type))) { + if(!(fp = fopen(filename, type))) { fprintf(stderr, "Can't open %s mode \"%s\"\n", filename, type); exit(1); } - fl = (FileList *)Malloc(sizeof(*fl)); - len = strlen(filename) + 1; - fl -> fname = Malloc(len); - strlcpy(fl -> fname, filename, len); - fl -> fp = fp; - fl -> next = flist; + fl = (FileList*)Malloc(sizeof(*fl)); + len = strlen(filename) + 1; + fl->fname = Malloc(len); + strlcpy(fl->fname, filename, len); + fl->fp = fp; + fl->next = flist; return fp; } -void -Fclose(FILE *fp) -{ +void Fclose(FILE* fp) { FileList *p, *q; - if (fclose(fp) == EOF) { + if(fclose(fp) == EOF) { fprintf(stderr, "Close error in %s\n", get_fname(fp)); exit(1); } - for (p = flist, q = NULL ; p ; q = p, p = p -> next) { - if (p -> fp == fp) { - if (q) - q -> next = p -> next; + for(p = flist, q = NULL; p; q = p, p = p->next) { + if(p->fp == fp) { + if(q) + q->next = p->next; else - flist = p -> next; - free(p -> fname); + flist = p->next; + free(p->fname); free(p); break; } } } -int -Fseek(FILE *fp, long ofs, int ptr) -{ - if (fseek(fp, ofs, ptr) == 0) return 0; +int Fseek(FILE* fp, long ofs, int ptr) { + if(fseek(fp, ofs, ptr) == 0) return 0; fprintf(stderr, "Seek error in %s\n", get_fname(fp)); exit(1); } -long -Ftell(FILE *fp) -{ +long Ftell(FILE* fp) { return ftell(fp); } -long -Fsize(char *filename) -{ - struct stat buf; +long Fsize(char* filename) { + struct stat buf; - if (stat(filename, &buf) == 0) return (long)buf.st_size; + if(stat(filename, &buf) == 0) return (long)buf.st_size; fprintf(stderr, "Stat error in %s\n", filename); exit(1); } size_t -Fread(char *p, int s, int n, FILE *fp) -{ - if (fread(p, s, n, fp) == n) return n; +Fread(char* p, int s, int n, FILE* fp) { + if(fread(p, s, n, fp) == n) return n; fprintf(stderr, "Read error in %s\n", get_fname(fp)); exit(1); } size_t -Fwrite(char *p, int s, int n, FILE *fp) -{ - if (fwrite(p, s, n, fp) == n) return n; +Fwrite(char* p, int s, int n, FILE* fp) { + if(fwrite(p, s, n, fp) == n) return n; fprintf(stderr, "Write error in %s\n", get_fname(fp)); exit(1); } -int -Fgetc(FILE *fp) -{ +int Fgetc(FILE* fp) { return fgetc(fp); } -int -Fflush(FILE *fp) -{ - return fflush(fp); +int Fflush(FILE* fp) { + return fflush(fp); } diff --git a/src/sj3mkdic/global.c b/src/sj3mkdic/global.c index f343a69..727693d 100644 --- a/src/sj3mkdic/global.c +++ b/src/sj3mkdic/global.c @@ -1,6 +1,6 @@ /* * Copyright (c) 1991-1994 Sony Corporation - * + * * Permission is hereby granted, free of charge, to any person obtaining * a copy of this software and associated documentation files (the * "Software"), to deal in the Software without restriction, including @@ -8,10 +8,10 @@ * distribute, sublicense, and/or sell copies of the Software, and to * permit persons to whom the Software is furnished to do so, subject to * the following conditions: - * + * * The above copyright notice and this permission notice shall be * included in all copies or substantial portions of the Software. - * + * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. @@ -19,7 +19,7 @@ * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR * THE USE OR OTHER DEALINGS IN THE SOFTWARE. - * + * * Except as contained in this notice, the name of Sony Corporation * shall not be used in advertising or otherwise to promote the sale, use * or other dealings in this Software without prior written authorization @@ -28,31 +28,30 @@ */ /* - * $SonyRCSfile: global.c,v $ - * $SonyRevision: 1.1 $ + * $SonyRCSfile: global.c,v $ + * $SonyRevision: 1.1 $ * $SonyDate: 1994/06/03 08:00:35 $ */ - #include "sj3_dict_struct.h" #include "sj3mkdic.h" -DouonRec *douon_ptr = NULL; -int douon_num = 0; -int yomi_len = 0; -int hinsi_num = 0; -int kanji_len = 0; +DouonRec* douon_ptr = NULL; +int douon_num = 0; +int yomi_len = 0; +int hinsi_num = 0; +int kanji_len = 0; -HindoRec *hindo[MAXHINDONUMBER]; -int hindo_num = 0; +HindoRec* hindo[MAXHINDONUMBER]; +int hindo_num = 0; -OffsetRec *ofsrec[MAXOFFSETNUMBER]; -int ofsrec_num = 0; +OffsetRec* ofsrec[MAXOFFSETNUMBER]; +int ofsrec_num = 0; -AssyukuRec *assyuku = NULL; +AssyukuRec* assyuku = NULL; -HindoRec *askknj[MAXKNJASKNUMBER]; -int askknj_num = 0; +HindoRec* askknj[MAXKNJASKNUMBER]; +int askknj_num = 0; -int kanji_num = 0; +int kanji_num = 0; diff --git a/src/sj3mkdic/hindo.c b/src/sj3mkdic/hindo.c index 3625bb1..e243577 100644 --- a/src/sj3mkdic/hindo.c +++ b/src/sj3mkdic/hindo.c @@ -1,6 +1,6 @@ /* * Copyright (c) 1991-1994 Sony Corporation - * + * * Permission is hereby granted, free of charge, to any person obtaining * a copy of this software and associated documentation files (the * "Software"), to deal in the Software without restriction, including @@ -8,10 +8,10 @@ * distribute, sublicense, and/or sell copies of the Software, and to * permit persons to whom the Software is furnished to do so, subject to * the following conditions: - * + * * The above copyright notice and this permission notice shall be * included in all copies or substantial portions of the Software. - * + * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. @@ -19,7 +19,7 @@ * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR * THE USE OR OTHER DEALINGS IN THE SOFTWARE. - * + * * Except as contained in this notice, the name of Sony Corporation * shall not be used in advertising or otherwise to promote the sale, use * or other dealings in this Software without prior written authorization @@ -28,236 +28,212 @@ */ /* - * $SonyRCSfile: hindo.c,v $ - * $SonyRevision: 1.2 $ + * $SonyRCSfile: hindo.c,v $ + * $SonyRevision: 1.2 $ * $SonyDate: 1994/08/17 01:50:26 $ */ - - - - #include "sj3_dict_struct.h" #include "sj3mkdic.h" -int -check_hindo(u_char *ptr, int len) -{ - int low, high, mid; - int i; +int check_hindo(u_char* ptr, int len) { + int low, high, mid; + int i; - if (hindo_num <= 0) return 0; + if(hindo_num <= 0) return 0; - low = 0; high = hindo_num - 1; - while (low <= high) { + low = 0; + high = hindo_num - 1; + while(low <= high) { mid = (low + high) / 2; - i = string_cmp(hindo[mid]->kptr, hindo[mid]->klen, ptr, len); - if (i > 0) + i = string_cmp(hindo[mid]->kptr, hindo[mid]->klen, ptr, len); + if(i > 0) high = mid - 1; - else if (i < 0) + else if(i < 0) low = ++mid; else - return(hindo[mid]->exist + hindo[mid]->hindo); + return (hindo[mid]->exist + hindo[mid]->hindo); } return 0; } +static AssyukuRec* +makeassyuku(int num) { + AssyukuRec* arec; - -static AssyukuRec * -makeassyuku(int num) -{ - AssyukuRec *arec; - - arec = (AssyukuRec *)Malloc(sizeof(AssyukuRec)); - if (!arec) { + arec = (AssyukuRec*)Malloc(sizeof(AssyukuRec)); + if(!arec) { fprintf(stderr, "\245\341\245\342\245\352\244\254\302\255\244\352\244\336\244\273\244\363\n"); exit(1); } - arec -> len = num; - arec -> nrec = NULL; - arec -> anext = NULL; + arec->len = num; + arec->nrec = NULL; + arec->anext = NULL; return arec; } - - static int -assyuku_len(HindoRec *hrec) -{ - int org; - int old; - int new; - OffsetRec *p; +assyuku_len(HindoRec* hrec) { + int org; + int old; + int new; + OffsetRec* p; - if (((*(hrec->kptr) & KANJIMODEMASK) == OFFSETASSYUKU) && - (hrec->klen == 2)) { - p = real_ofsrec(hrec -> kptr); - org = check_hindo(p -> kptr, p -> klen); + if(((*(hrec->kptr) & KANJIMODEMASK) == OFFSETASSYUKU) && + (hrec->klen == 2)) { + p = real_ofsrec(hrec->kptr); + org = check_hindo(p->kptr, p->klen); old = p->klen * org + 2 * (hrec->exist + hrec->hindo); new = p->klen + (hrec->exist + hrec->hindo + org); - } - else { - old = hrec -> klen * (hrec -> exist + hrec -> hindo); - new = hrec -> klen + (hrec -> exist + hrec -> hindo); + } else { + old = hrec->klen * (hrec->exist + hrec->hindo); + new = hrec->klen + (hrec->exist + hrec->hindo); } return (old - new); } - - static void -set_assyuku(HindoRec *hrec) -{ - AssyukuRec *arec; - AssyukuRec *aprev; - int len; +set_assyuku(HindoRec* hrec) { + AssyukuRec* arec; + AssyukuRec* aprev; + int len; len = assyuku_len(hrec); - if (len <= 0) return; + if(len <= 0) return; - arec = assyuku; aprev = NULL; - while (arec) { - if (arec -> len == len) { - hrec -> arec = arec; - hrec -> anext = arec -> nrec; - arec -> nrec = hrec; + arec = assyuku; + aprev = NULL; + while(arec) { + if(arec->len == len) { + hrec->arec = arec; + hrec->anext = arec->nrec; + arec->nrec = hrec; return; - } - else if (arec -> len < len) + } else if(arec->len < len) break; aprev = arec; - arec = arec -> anext; + arec = arec->anext; } arec = makeassyuku(len); - hrec -> anext = NULL; - hrec -> arec = arec; - arec -> nrec = hrec; + hrec->anext = NULL; + hrec->arec = arec; + arec->nrec = hrec; - if (aprev) { - arec -> anext = aprev -> anext; - aprev -> anext = arec; - } - else { - arec -> anext = assyuku; - assyuku = arec; + if(aprev) { + arec->anext = aprev->anext; + aprev->anext = arec; + } else { + arec->anext = assyuku; + assyuku = arec; } } - - static void -reset_assyuku(HindoRec *hrec) -{ - AssyukuRec *arec; - AssyukuRec *aptr; - AssyukuRec *aprev; - HindoRec *hptr; - HindoRec *hprev; +reset_assyuku(HindoRec* hrec) { + AssyukuRec* arec; + AssyukuRec* aptr; + AssyukuRec* aprev; + HindoRec* hptr; + HindoRec* hprev; - arec = hrec -> arec; + arec = hrec->arec; - if (!arec) return; - hrec -> arec = NULL; + if(!arec) return; + hrec->arec = NULL; - hptr = arec -> nrec; hprev = NULL; - while (hptr) { - if (hptr == hrec) break; + hptr = arec->nrec; + hprev = NULL; + while(hptr) { + if(hptr == hrec) break; hprev = hptr; - hptr = hptr -> anext; + hptr = hptr->anext; } - if (!hptr) return; + if(!hptr) return; - if (hprev) { - hprev -> anext = hrec -> anext; - hrec -> anext = NULL; + if(hprev) { + hprev->anext = hrec->anext; + hrec->anext = NULL; return; } - if (hrec -> anext) { - arec -> nrec = hrec -> anext; - hrec -> anext = NULL; + if(hrec->anext) { + arec->nrec = hrec->anext; + hrec->anext = NULL; return; } - if (!assyuku) return; - aptr = assyuku; aprev = NULL; - while (aptr) { - if (aptr == arec) break; + if(!assyuku) return; + aptr = assyuku; + aprev = NULL; + while(aptr) { + if(aptr == arec) break; aprev = aptr; - aptr = aptr -> anext; + aptr = aptr->anext; } - if (!aptr) return; + if(!aptr) return; - if (aprev) - aprev -> anext = arec -> anext; + if(aprev) + aprev->anext = arec->anext; else - assyuku = arec -> anext; + assyuku = arec->anext; Free(arec); - hrec -> anext = NULL; + hrec->anext = NULL; } +static HindoRec* +makehindo(u_char* ptr, int len, int alen) { + HindoRec* hrec; + u_char* p; - -static HindoRec * -makehindo(u_char *ptr, int len, int alen) -{ - HindoRec *hrec; - u_char *p; - - hrec = (HindoRec *)Malloc(sizeof(HindoRec)); - if (!hrec) { + hrec = (HindoRec*)Malloc(sizeof(HindoRec)); + if(!hrec) { fprintf(stderr, "\245\341\245\342\245\352\244\254\302\255\244\352\244\336\244\273\244\363\n"); exit(1); } - p = (u_char *)Malloc(len); - if (!p) { + p = (u_char*)Malloc(len); + if(!p) { fprintf(stderr, "\245\341\245\342\245\352\244\254\302\255\244\352\244\336\244\273\244\363\n"); exit(1); } - hrec -> klen = len; - hrec -> kptr = p; - if (len == alen && len > 2) { - hrec -> hindo = 0; - hrec -> exist = 1; - hrec -> offset = ++kanji_num; + hrec->klen = len; + hrec->kptr = p; + if(len == alen && len > 2) { + hrec->hindo = 0; + hrec->exist = 1; + hrec->offset = ++kanji_num; + } else { + hrec->hindo = 1; + hrec->exist = 0; + hrec->offset = 0; } - else { - hrec -> hindo = 1; - hrec -> exist = 0; - hrec -> offset = 0; - } - while (len-- > 0) *p++ = *ptr++; - hrec -> anext = NULL; - hrec -> arec = NULL; + while(len-- > 0) *p++ = *ptr++; + hrec->anext = NULL; + hrec->arec = NULL; return hrec; } - - static void -set_hindo(u_char *ptr, int len, int alen) -{ - HindoRec *hrec; - int low, high, mid; - int i; +set_hindo(u_char* ptr, int len, int alen) { + HindoRec* hrec; + int low, high, mid; + int i; - if (hindo_num <= 0) { - hrec = makehindo(ptr, len, alen); - hindo[0]= hrec; + if(hindo_num <= 0) { + hrec = makehindo(ptr, len, alen); + hindo[0] = hrec; hindo_num = 1; set_assyuku(hrec); @@ -265,87 +241,83 @@ set_hindo(u_char *ptr, int len, int alen) return; } - low = 0; high = hindo_num - 1; - while (low <= high) { + low = 0; + high = hindo_num - 1; + while(low <= high) { mid = (low + high) / 2; - i = string_cmp(hindo[mid]->kptr, hindo[mid]->klen, ptr, len); - if (i > 0) + i = string_cmp(hindo[mid]->kptr, hindo[mid]->klen, ptr, len); + if(i > 0) high = mid - 1; - else if (i < 0) + else if(i < 0) low = ++mid; else break; } - if (i) { - if (hindo_num >= MAXHINDONUMBER) { + if(i) { + if(hindo_num >= MAXHINDONUMBER) { fprintf(stderr, "\311\321\305\331\245\306\241\274\245\326\245\353\244\254\244\242\244\325\244\354\244\336\244\267\244\277\n"); exit(1); } hrec = makehindo(ptr, len, alen); - for (i = hindo_num ; i > mid ; i--) hindo[i] = hindo[i - 1]; + for(i = hindo_num; i > mid; i--) hindo[i] = hindo[i - 1]; hindo[mid] = hrec; hindo_num++; - } - else { + } else { hrec = hindo[mid]; reset_assyuku(hrec); - if (hrec -> exist > 0) - hrec -> exist += 1; + if(hrec->exist > 0) + hrec->exist += 1; - else if (len == alen && len > 2) { - hrec -> exist = 1; - hrec -> offset = ++kanji_num; - } - else - hrec -> hindo += 1; + else if(len == alen && len > 2) { + hrec->exist = 1; + hrec->offset = ++kanji_num; + } else + hrec->hindo += 1; } set_assyuku(hrec); } - - static void -reset_hindo(u_char *p, int l) -{ - HindoRec *hrec; - int low, high, mid; - int i; +reset_hindo(u_char* p, int l) { + HindoRec* hrec; + int low, high, mid; + int i; - if (hindo_num <= 0) return; + if(hindo_num <= 0) return; - low = 0; high = hindo_num - 1; - while (low <= high) { + low = 0; + high = hindo_num - 1; + while(low <= high) { mid = (low + high) / 2; - i = string_cmp(hindo[mid]->kptr, hindo[mid]->klen, p, l); - if (i > 0) + i = string_cmp(hindo[mid]->kptr, hindo[mid]->klen, p, l); + if(i > 0) high = mid - 1; - else if (i < 0) + else if(i < 0) low = ++mid; else { hrec = hindo[mid]; reset_assyuku(hrec); - if (hrec -> exist > 0) - hrec -> exist -= 1; - else if (hrec -> hindo > 0) - hrec -> hindo -= 1; + if(hrec->exist > 0) + hrec->exist -= 1; + else if(hrec->hindo > 0) + hrec->hindo -= 1; - if (hrec -> exist + hrec -> hindo == 0) { - while (++mid < hindo_num) { + if(hrec->exist + hrec->hindo == 0) { + while(++mid < hindo_num) { hindo[mid - 1] = hindo[mid]; } hindo_num--; - Free(hrec -> kptr); + Free(hrec->kptr); Free(hrec); - } - else { + } else { set_assyuku(hrec); } @@ -355,29 +327,24 @@ reset_hindo(u_char *p, int l) } } - - -void -knjhnd_set(u_char *p, int l) -{ - u_char *kp1; - u_char *kp2; +void knjhnd_set(u_char* p, int l) { + u_char* kp1; + u_char* kp2; int i; int kl1; u_char tmp[MAXKANJILENGTH * 2 + MAXATRNUMBER * 2 + 1]; - for (kp1 = p, kl1 = l ; kl1 > 0 ; ) { - for (i = 0, kp2 = kp1 ; i < kl1 ; ) { - if (codesize(*kp2) == 1) { + for(kp1 = p, kl1 = l; kl1 > 0;) { + for(i = 0, kp2 = kp1; i < kl1;) { + if(codesize(*kp2) == 1) { tmp[i++] = *kp2++; - } - else if (codesize(*kp2) == 2) { + } else if(codesize(*kp2) == 2) { tmp[i++] = *kp2++; tmp[i++] = *kp2++; } else { - tmp[i++] = *kp2++; - tmp[i++] = *kp2++; - tmp[i++] = *kp2++; + tmp[i++] = *kp2++; + tmp[i++] = *kp2++; + tmp[i++] = *kp2++; } set_hindo(tmp, i, l); } @@ -387,29 +354,24 @@ knjhnd_set(u_char *p, int l) } } - - -void -knjhnd_reset(u_char *p, int l) -{ - u_char *kp1; - u_char *kp2; +void knjhnd_reset(u_char* p, int l) { + u_char* kp1; + u_char* kp2; int i; int kl1; u_char tmp[MAXKANJILENGTH * 2 + MAXATRNUMBER * 2 + 1]; - for (kp1 = p, kl1 = l ; kl1 > 0 ; ) { - for (i = 0, kp2 = kp1 ; i < kl1 ; ) { - if (codesize(*kp2) == 1) { + for(kp1 = p, kl1 = l; kl1 > 0;) { + for(i = 0, kp2 = kp1; i < kl1;) { + if(codesize(*kp2) == 1) { tmp[i++] = *kp2++; - } - else if (codesize(*kp2) == 2) { + } else if(codesize(*kp2) == 2) { tmp[i++] = *kp2++; tmp[i++] = *kp2++; } else { - tmp[i++] = *kp2++; - tmp[i++] = *kp2++; - tmp[i++] = *kp2++; + tmp[i++] = *kp2++; + tmp[i++] = *kp2++; + tmp[i++] = *kp2++; } reset_hindo(tmp, i); } @@ -419,90 +381,81 @@ knjhnd_reset(u_char *p, int l) } } - - static int -check_assyuku(HindoRec *p, HindoRec *q) -{ - u_char ptmp[128], qtmp[128]; - int plen; - int qlen; +check_assyuku(HindoRec* p, HindoRec* q) { + u_char ptmp[128], qtmp[128]; + int plen; + int qlen; - plen = make_knjstr(p -> kptr, p -> klen, ptmp); + plen = make_knjstr(p->kptr, p->klen, ptmp); - qlen = make_knjstr(q -> kptr, q -> klen, qtmp); + qlen = make_knjstr(q->kptr, q->klen, qtmp); - if (bubun_str(ptmp, plen, qtmp, qlen)) { + if(bubun_str(ptmp, plen, qtmp, qlen)) { return -1; } - if (overlap_str(ptmp, plen, qtmp, qlen)) + if(overlap_str(ptmp, plen, qtmp, qlen)) return -1; return 0; } - - -int -decide_knjask() -{ - int i, j; - AssyukuRec *p; - HindoRec *q; - u_char *r; - int len = 0; +int decide_knjask() { + int i, j; + AssyukuRec* p; + HindoRec* q; + u_char* r; + int len = 0; askknj_num = 0; - for (p = assyuku ; p ; p = p -> anext) { - if (p -> len <= 0) break; + for(p = assyuku; p; p = p->anext) { + if(p->len <= 0) break; - for (q = p -> nrec ; q ; q = q -> anext) { + for(q = p->nrec; q; q = q->anext) { - i = q -> klen; - r = q -> kptr; - if (i > 2) { - while (i > 0) { - if ((*r & KANJIMODEMASK) - == OFFSETASSYUKU) { + i = q->klen; + r = q->kptr; + if(i > 2) { + while(i > 0) { + if((*r & KANJIMODEMASK) == OFFSETASSYUKU) { break; } j = codesize(*r); i -= j; r += j; } - if (i) continue; + if(i) continue; } - if (askknj_num) { - for (i = 0 ; i < askknj_num ; i++) { - if (check_assyuku(askknj[i], q)) + if(askknj_num) { + for(i = 0; i < askknj_num; i++) { + if(check_assyuku(askknj[i], q)) break; } - if (i >= askknj_num) { + if(i >= askknj_num) { askknj[askknj_num++] = q; - len += p -> len; - if (askknj_num >= MAXKNJASKNUMBER) + len += p->len; + if(askknj_num >= MAXKNJASKNUMBER) goto end; } - } - else { + } else { askknj[askknj_num++] = q; - len += p -> len; + len += p->len; } } } end: { int i, j, len; - u_char *p; + u_char* p; - for (i = 0 ; i < askknj_num ; i++) { - len = askknj[i] -> klen; - p = askknj[i] -> kptr; - if (len <= 2) continue; - while (len > 0) { - if ((*p & KANJIMODEMASK) == OFFSETASSYUKU) { + for(i = 0; i < askknj_num; i++) { + len = askknj[i]->klen; + p = askknj[i]->kptr; + if(len <= 2) continue; + while(len > 0) { + if((*p & KANJIMODEMASK) == OFFSETASSYUKU) { printf("\245\252\245\325\245\273\245\303\245\310\260\265\275\314\244\362\264\336\244\340 %d\n", i); } j = codesize(*p); @@ -514,14 +467,10 @@ end: return len; } +void clear_hindo() { + int i; - -void -clear_hindo() -{ - int i; - - for (i = 0 ; i < hindo_num ; i++) { + for(i = 0; i < hindo_num; i++) { Free(hindo[i]->kptr); Free(hindo[i]); } @@ -529,16 +478,12 @@ clear_hindo() kanji_num = 0; } +void clear_assyuku() { + AssyukuRec* p; - -void -clear_assyuku() -{ - AssyukuRec *p; - - while (assyuku) { - p = assyuku; - assyuku = assyuku -> anext; + while(assyuku) { + p = assyuku; + assyuku = assyuku->anext; Free(p); } } diff --git a/src/sj3mkdic/knjcvt.c b/src/sj3mkdic/knjcvt.c index b07fdb1..c9d5804 100644 --- a/src/sj3mkdic/knjcvt.c +++ b/src/sj3mkdic/knjcvt.c @@ -1,6 +1,6 @@ /* * Copyright (c) 1991-1994 Sony Corporation - * + * * Permission is hereby granted, free of charge, to any person obtaining * a copy of this software and associated documentation files (the * "Software"), to deal in the Software without restriction, including @@ -8,10 +8,10 @@ * distribute, sublicense, and/or sell copies of the Software, and to * permit persons to whom the Software is furnished to do so, subject to * the following conditions: - * + * * The above copyright notice and this permission notice shall be * included in all copies or substantial portions of the Software. - * + * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. @@ -19,7 +19,7 @@ * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR * THE USE OR OTHER DEALINGS IN THE SOFTWARE. - * + * * Except as contained in this notice, the name of Sony Corporation * shall not be used in advertising or otherwise to promote the sale, use * or other dealings in this Software without prior written authorization @@ -28,8 +28,8 @@ */ /* - * $SonyRCSfile: knjcvt.c,v $ - * $SonyRevision: 1.1 $ + * $SonyRCSfile: knjcvt.c,v $ + * $SonyRevision: 1.1 $ * $SonyDate: 1994/06/03 08:00:37 $ */ @@ -39,149 +39,137 @@ #include "sj3mkdic.h" typedef struct div_list { - int len; - u_char code[3]; - struct div_list *child; + int len; + u_char code[3]; + struct div_list* child; } DivList; static void -free_divlist(DivList *p) -{ - DivList *q; +free_divlist(DivList* p) { + DivList* q; - while (p) { - q = p -> child; + while(p) { + q = p->child; Free(p); p = q; } } +static DivList* +make_divrec() { + DivList* p; - -static DivList * -make_divrec() -{ - DivList *p; - - p = (DivList *)Malloc(sizeof(DivList)); - if (!p) { + p = (DivList*)Malloc(sizeof(DivList)); + if(!p) { fprintf(stderr, "\245\341\245\342\245\352\244\254\302\255\244\352\244\336\244\273\244\363\n"); exit(1); } - p -> child = NULL; + p->child = NULL; return p; } - - static int -make_divlist(DivList *parent, u_char *knj, int len) -{ - int i, j; - int num; - int minlen = 0; - int tmplen; - DivList tmprec; - DivList *minrec; +make_divlist(DivList* parent, u_char* knj, int len) { + int i, j; + int num; + int minlen = 0; + int tmplen; + DivList tmprec; + DivList* minrec; minrec = make_divrec(); - if (len == 0) { + if(len == 0) { free_divlist(minrec); - parent -> child = NULL; + parent->child = NULL; return 0; - } else if (len == 1) { - minrec -> len = len; - minrec -> code[0] = *knj; + } else if(len == 1) { + minrec->len = len; + minrec->code[0] = *knj; - parent -> child = minrec; + parent->child = minrec; return len; } - if (codesize(*knj) == 1) { - minrec -> len = 1; - minrec -> code[0] = *knj; - minlen = make_divlist(minrec, knj + 1, len - 1) + 1; - } else if (codesize(*knj) == 2) { - minrec -> len = 2; - minrec -> code[0] = *knj; - minrec -> code[1] = *(knj + 1); - minlen = make_divlist(minrec, knj + 2, len - 2) + 2; + if(codesize(*knj) == 1) { + minrec->len = 1; + minrec->code[0] = *knj; + minlen = make_divlist(minrec, knj + 1, len - 1) + 1; + } else if(codesize(*knj) == 2) { + minrec->len = 2; + minrec->code[0] = *knj; + minrec->code[1] = *(knj + 1); + minlen = make_divlist(minrec, knj + 2, len - 2) + 2; } - for (i = 0 ; i < len ; i = j) { + for(i = 0; i < len; i = j) { j = i + codesize(*(knj + i)); - if (j <= 2 || !(num = isknjexist(knj, j))) + if(j <= 2 || !(num = isknjexist(knj, j))) continue; tmprec.len = 2; tmprec.code[0] = (OFFSETASSYUKU | ((num >> 8) & 0xff)); tmprec.code[1] = (num & 0xff); tmprec.child = NULL; - tmplen = make_divlist(&tmprec, knj + j, len - j) + 2; + tmplen = make_divlist(&tmprec, knj + j, len - j) + 2; - if (tmplen < minlen) { - free_divlist(minrec -> child); + if(tmplen < minlen) { + free_divlist(minrec->child); *minrec = tmprec; - minlen = tmplen; - } - else + minlen = tmplen; + } else free_divlist(tmprec.child); } - for (i = 0 ; i < askknj_num ; i++) { - if ((j = askknj[i] -> klen) > len) continue; + for(i = 0; i < askknj_num; i++) { + if((j = askknj[i]->klen) > len) continue; - if (string_cmp(askknj[i]->kptr, j, knj, j)) continue; + if(string_cmp(askknj[i]->kptr, j, knj, j)) continue; tmprec.len = 1; tmprec.code[0] = (KANJIASSYUKU | i); tmprec.child = NULL; - tmplen = make_divlist(&tmprec, knj + j, len - j) + 1; + tmplen = make_divlist(&tmprec, knj + j, len - j) + 1; - if (tmplen < minlen) { - free_divlist(minrec -> child); + if(tmplen < minlen) { + free_divlist(minrec->child); *minrec = tmprec; - minlen = tmplen; - } - else + minlen = tmplen; + } else free_divlist(tmprec.child); } - parent -> child = minrec; + parent->child = minrec; return minlen; } - - -u_char * -knjofscvt(u_char *ptr, int len, int *ret) -{ +u_char* +knjofscvt(u_char* ptr, int len, int* ret) { int i; - u_char *p, *q; + u_char *p, *q; DivList parent, *dl; askknj_num = 0; parent.child = NULL; - i = make_divlist(&parent, ptr, len); - *ret = i; + i = make_divlist(&parent, ptr, len); + *ret = i; - p = (u_char *)Malloc(i); - if (!p) { + p = (u_char*)Malloc(i); + if(!p) { fprintf(stderr, "\245\341\245\342\245\352\244\254\311\324\302\255\244\267\244\336\244\267\244\277"); exit(1); } - for (q = p, dl = parent.child ; dl ; dl = dl -> child) { - *q++ = dl -> code[0]; - if (dl -> len == 2) { - *q++ = dl -> code[1]; - } else if (dl -> len == 3) { - *q++ = dl -> code[1]; - *q++ = dl -> code[2]; + for(q = p, dl = parent.child; dl; dl = dl->child) { + *q++ = dl->code[0]; + if(dl->len == 2) { + *q++ = dl->code[1]; + } else if(dl->len == 3) { + *q++ = dl->code[1]; + *q++ = dl->code[2]; } } @@ -190,36 +178,34 @@ knjofscvt(u_char *ptr, int len, int *ret) return p; } - -u_char * -knjcvt(u_char *ptr, int len, int *ret) -{ +u_char* +knjcvt(u_char* ptr, int len, int* ret) { int i; - u_char *p, *q; + u_char *p, *q; DivList parent, *dl; parent.child = NULL; - i = make_divlist(&parent, ptr, len); - *ret = i; + i = make_divlist(&parent, ptr, len); + *ret = i; - p = (u_char *)Malloc(i); - if (!p) { + p = (u_char*)Malloc(i); + if(!p) { fprintf(stderr, "\245\341\245\342\245\352\244\254\311\324\302\255\244\267\244\336\244\267\244\277"); exit(1); } - for (q = p, dl = parent.child ; dl ; dl = dl -> child) { - *q++ = dl -> code[0]; - if (dl -> len == 2) { - *q++ = dl -> code[1]; - } else if (dl -> len == 3) { - *q++ = dl -> code[1]; - *q++ = dl -> code[2]; + for(q = p, dl = parent.child; dl; dl = dl->child) { + *q++ = dl->code[0]; + if(dl->len == 2) { + *q++ = dl->code[1]; + } else if(dl->len == 3) { + *q++ = dl->code[1]; + *q++ = dl->code[2]; } } free_divlist(parent.child); - if (i != q - p) { + if(i != q - p) { printf("\244\263\244\263\n"); exit(1); } diff --git a/src/sj3mkdic/makedict.c b/src/sj3mkdic/makedict.c index 6ce73d4..98f0d5c 100644 --- a/src/sj3mkdic/makedict.c +++ b/src/sj3mkdic/makedict.c @@ -1,6 +1,6 @@ /* * Copyright (c) 1991-1994 Sony Corporation - * + * * Permission is hereby granted, free of charge, to any person obtaining * a copy of this software and associated documentation files (the * "Software"), to deal in the Software without restriction, including @@ -8,10 +8,10 @@ * distribute, sublicense, and/or sell copies of the Software, and to * permit persons to whom the Software is furnished to do so, subject to * the following conditions: - * + * * The above copyright notice and this permission notice shall be * included in all copies or substantial portions of the Software. - * + * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. @@ -19,7 +19,7 @@ * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR * THE USE OR OTHER DEALINGS IN THE SOFTWARE. - * + * * Except as contained in this notice, the name of Sony Corporation * shall not be used in advertising or otherwise to promote the sale, use * or other dealings in this Software without prior written authorization @@ -28,8 +28,8 @@ */ /* - * $SonyRCSfile: makedict.c,v $ - * $SonyRevision: 1.2 $ + * $SonyRCSfile: makedict.c,v $ + * $SonyRevision: 1.2 $ * $SonyDate: 1994/12/09 11:27:05 $ */ @@ -37,44 +37,35 @@ #include "sj3mkdic.h" -FILE *infp = NULL; -FILE *outfp = NULL; +FILE* infp = NULL; +FILE* outfp = NULL; -static char *idxtop = NULL; +static char* idxtop = NULL; - -int -main(int argc, char **argv) -{ +int main(int argc, char** argv) { parse(argc, argv); - while (readline()) + while(readline()) setline(makelist); flush_douon(); - makehead((u_char *)argv[2]); + makehead((u_char*)argv[2]); return 0; } - - -char * -make_idxlist(char *name) -{ - int i; - char *p; +char* make_idxlist(char* name) { + int i; + char* p; i = strlen(name); p = Zalloc(i + 2); strlcpy(p, name, i + 2); return p; } -char * -get_idxlist(char *name) -{ - FILE *fp; - int i; - char *p, *q, *r; +char* get_idxlist(char* name) { + FILE* fp; + int i; + char *p, *q, *r; fp = Fopen(name, "r"); @@ -85,10 +76,10 @@ get_idxlist(char *name) Fread(p, 1, i, fp); Fclose(fp); - for (q = r = p ; *q ; ) { - while (*q <= ' ') + for(q = r = p; *q;) { + while(*q <= ' ') q++; - while (*q > ' ') + while(*q > ' ') *r++ = *q++; *r++ = 0; q++; @@ -96,86 +87,69 @@ get_idxlist(char *name) *r = 0; i = 0; - for (q = p ; *q ; ) { - if (fp = fopen(q, "r")) + for(q = p; *q;) { + if(fp = fopen(q, "r")) fclose(fp); else { fprintf(stderr, "Can't open %s mode \"r\"\n", q); i++; } - while (*q++) - ; + while(*q++); } - if (i) exit(1); + if(i) exit(1); return p; } +void parse(int argc, char** argv) { + int i; + char* progname = NULL; + char* p; - -void -parse(int argc, char **argv) -{ - int i; - char *progname = NULL; - char *p; - - if (progname = strrchr(argv[0], '/')) + if(progname = strrchr(argv[0], '/')) progname++; else progname = argv[0]; - if (argc != 3) + if(argc != 3) usage(progname); - p = argv[1]; + p = argv[1]; idxtop = (*p == '-') ? get_idxlist(p + 1) : make_idxlist(p); outfp = Fopen(argv[2], "w"); } - /* XXX: strtonum??? */ -int -get_number(char *ptr) -{ - int i = 0; +int get_number(char* ptr) { + int i = 0; - while (*ptr >= '0' && *ptr <= '9') { + while(*ptr >= '0' && *ptr <= '9') { i = i * 10 + (*ptr++ - '0'); } - return(i); + return (i); } - - -void -usage(char *name) -{ +void usage(char* name) { fprintf(stderr, "Usage: %s text_file binary_file\n", name ? name : "encode"); exit(0); } +int getch() { + if(infp) { + int c; - -int -getch() -{ - if (infp) { - int c; - - if ((c = Fgetc(infp)) != EOF) return c; + if((c = Fgetc(infp)) != EOF) return c; Fclose(infp); infp = NULL; - while (*idxtop++) - ; + while(*idxtop++); } - if (*idxtop) { + if(*idxtop) { infp = Fopen(idxtop, "r"); fprintf(stderr, "Reading %s\n", idxtop); @@ -187,29 +161,25 @@ getch() return EOF; } +void mark_file(FILE* out) { + static char pathname[512]; + static long pos; -void -mark_file(FILE *out) -{ - static char pathname[512]; - static long pos; - - if (out) { - FILE *fp; - int c; + if(out) { + FILE* fp; + int c; fprintf(out, "%s:\t", pathname); fp = Fopen(pathname, "r"); Fseek(fp, pos, 0); c = Fgetc(fp); - while (c != EOF && c != '\n') { + while(c != EOF && c != '\n') { fputc(c, out); c = Fgetc(fp); } fputc('\n', out); Fclose(fp); - } - else { + } else { strlcpy(pathname, idxtop, sizeof(pathname)); pos = infp ? Ftell(infp) : 0; } diff --git a/src/sj3mkdic/makelist.c b/src/sj3mkdic/makelist.c index c68f9bd..6ef1cf9 100644 --- a/src/sj3mkdic/makelist.c +++ b/src/sj3mkdic/makelist.c @@ -1,6 +1,6 @@ /* * Copyright (c) 1991-1994 Sony Corporation - * + * * Permission is hereby granted, free of charge, to any person obtaining * a copy of this software and associated documentation files (the * "Software"), to deal in the Software without restriction, including @@ -8,10 +8,10 @@ * distribute, sublicense, and/or sell copies of the Software, and to * permit persons to whom the Software is furnished to do so, subject to * the following conditions: - * + * * The above copyright notice and this permission notice shall be * included in all copies or substantial portions of the Software. - * + * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. @@ -19,7 +19,7 @@ * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR * THE USE OR OTHER DEALINGS IN THE SOFTWARE. - * + * * Except as contained in this notice, the name of Sony Corporation * shall not be used in advertising or otherwise to promote the sale, use * or other dealings in this Software without prior written authorization @@ -28,8 +28,8 @@ */ /* - * $SonyRCSfile: makelist.c,v $ - * $SonyRevision: 1.1 $ + * $SonyRCSfile: makelist.c,v $ + * $SonyRevision: 1.1 $ * $SonyDate: 1994/06/03 08:00:39 $ */ @@ -41,56 +41,48 @@ #define SS2 0x8e #endif -static DouonRec *drectmp = NULL; +static DouonRec* drectmp = NULL; static void -clearklist(KanjiRec *krec) -{ - KanjiRec *p; +clearklist(KanjiRec* krec) { + KanjiRec* p; - while (krec) { - Free(krec -> kptr); - Free(krec -> aptr); + while(krec) { + Free(krec->kptr); + Free(krec->aptr); - p = krec; - krec = krec -> knext; + p = krec; + krec = krec->knext; Free(p); } } - - static void -clearhlist(HinsiRec *hrec) -{ - HinsiRec *p; +clearhlist(HinsiRec* hrec) { + HinsiRec* p; - while (hrec) { - clearklist(hrec -> krec); + while(hrec) { + clearklist(hrec->krec); - p = hrec; - hrec = hrec -> hnext; + p = hrec; + hrec = hrec->hnext; Free(p); } } +void clear_list() { + DouonRec* p; + DouonRec* drec = douon_ptr; + while(drec) { + Free(drec->yptr); -void -clear_list() -{ - DouonRec *p; - DouonRec *drec = douon_ptr; + clearhlist(drec->hrec); - while (drec) { - Free(drec -> yptr); - - clearhlist(drec -> hrec); - - p = drec; - drec = drec -> dnext; + p = drec; + drec = drec->dnext; Free(p); } @@ -98,62 +90,56 @@ clear_list() douon_ptr = NULL; } - - -static u_char * -makekanji(int *yomi, int *kanji, int *atr, int *len) -{ +static u_char* +makekanji(int* yomi, int* kanji, int* atr, int* len) { int kana[MAXYOMILENGTH + 1]; u_char ktmp[MAXKANJILENGTH * 3 + MAXATRNUMBER * 2 + 1]; int i; int pos = 0; - int *p; - u_char *q; + int* p; + u_char* q; - for (p = yomi, i = 0 ; *p ; ) + for(p = yomi, i = 0; *p;) kana[i++] = h2kcode(*p++); kana[i] = 0; - while (*atr) { + while(*atr) { i = *atr; atr++; -#ifndef NO_ATR +#ifndef NO_ATR ktmp[pos++] = (AIATTRIBUTE | ((i >> 8) & 0xff)); - ktmp[pos++] = (i & 0xff); + ktmp[pos++] = (i & 0xff); #endif } - if (i = top_strcmp(yomi, kanji)) { + if(i = top_strcmp(yomi, kanji)) { kanji += i; ktmp[pos++] = (ZENHIRAASSYUKU | (i - 1)); - } else if (i = top_strcmp(kana, kanji)) { + } else if(i = top_strcmp(kana, kanji)) { kanji += i; ktmp[pos++] = (ZENKATAASSYUKU | (i - 1)); } - while (*kanji) { - if (i = last_strcmp(yomi, kanji)) { + while(*kanji) { + if(i = last_strcmp(yomi, kanji)) { kanji += i; ktmp[pos++] = (ZENHIRAASSYUKU | (i - 1)); - } - else if (i = last_strcmp(kana, kanji)) { + } else if(i = last_strcmp(kana, kanji)) { kanji += i; ktmp[pos++] = (ZENKATAASSYUKU | (i - 1)); - } - else if (((*kanji >> 8) & 0xff) == SS2 || *kanji < 0x100) { - ktmp[pos] = LEADINGHANKAKU; + } else if(((*kanji >> 8) & 0xff) == SS2 || *kanji < 0x100) { + ktmp[pos] = LEADINGHANKAKU; ktmp[pos + 1] = (*kanji & 0xff); kanji++; pos += 2; - } - else { - if (*kanji < 0x10000) { - ktmp[pos] = ((*kanji >> 8) & NORMALKANJIMASK); + } else { + if(*kanji < 0x10000) { + ktmp[pos] = ((*kanji >> 8) & NORMALKANJIMASK); ktmp[pos + 1] = (*kanji & NORMALKANJIMASK); kanji++; pos += 2; - } else if (*kanji < 0x1000000) { - ktmp[pos] = ((*kanji >> 8) & NORMALKANJIMASK); + } else if(*kanji < 0x1000000) { + ktmp[pos] = ((*kanji >> 8) & NORMALKANJIMASK); ktmp[pos + 1] = (*kanji & 0xff); kanji++; pos += 2; @@ -165,8 +151,8 @@ makekanji(int *yomi, int *kanji, int *atr, int *len) } *len = pos; - q = (u_char *)Malloc(pos); - if (!q) { + q = (u_char*)Malloc(pos); + if(!q) { fprintf(stderr, "\245\341\245\342\245\352\244\254\311\324\302\255\244\267\244\336\244\267\244\277"); exit(1); } @@ -175,30 +161,28 @@ makekanji(int *yomi, int *kanji, int *atr, int *len) return q; } - - -static u_char * -makeyomi(int *yomi) -{ +static u_char* +makeyomi(int* yomi) { u_char tmp[MAXYOMILENGTH + 1]; int i; int j; - int *y = yomi; - u_char *p; + int* y = yomi; + u_char* p; - for (i = 0 ; *y ; ) { + for(i = 0; *y;) { j = cnvyomi(*y++); - if (j == 0) { + if(j == 0) { fprintf(stderr, "\311\324\300\265\244\312\312\270\273\372\244\254\306\311\244\337\244\313\273\310\244\357\244\354\244\306\244\244\244\336\244\271\n"); - output_int(stderr, yomi); fputc('\n', stderr); + output_int(stderr, yomi); + fputc('\n', stderr); exit(1); } tmp[i++] = j; } tmp[i++] = 0; - p = (u_char *)Malloc(i); - if (!p) { + p = (u_char*)Malloc(i); + if(!p) { fprintf(stderr, "\245\341\245\342\245\352\244\254\311\324\302\255\244\267\244\336\244\267\244\277"); exit(1); } @@ -207,216 +191,204 @@ makeyomi(int *yomi) return p; } +static KanjiRec* +make_krec(u_char* kcode, int klen) { + KanjiRec* krec; - -static KanjiRec * -make_krec(u_char *kcode, int klen) -{ - KanjiRec *krec; - - krec = (KanjiRec *)Malloc(sizeof(KanjiRec)); - if (!krec) { + krec = (KanjiRec*)Malloc(sizeof(KanjiRec)); + if(!krec) { fprintf(stderr, "\245\341\245\342\245\352\244\254\311\324\302\255\244\267\244\336\244\267\244\277"); exit(1); } - krec -> klen = klen; - krec -> kptr = kcode; - krec -> alen = 0; - krec -> aptr = NULL; - krec -> knext = NULL; + krec->klen = klen; + krec->kptr = kcode; + krec->alen = 0; + krec->aptr = NULL; + krec->knext = NULL; return krec; } +static HinsiRec* +make_hrec(int hinsi) { + HinsiRec* hrec; - -static HinsiRec * -make_hrec(int hinsi) -{ - HinsiRec *hrec; - - hrec = (HinsiRec *)Malloc(sizeof(HinsiRec)); - if (!hrec) { + hrec = (HinsiRec*)Malloc(sizeof(HinsiRec)); + if(!hrec) { fprintf(stderr, "\245\341\245\342\245\352\244\254\311\324\302\255\244\267\244\336\244\267\244\277"); exit(1); } - hrec -> hinsi = hinsi; - hrec -> krec = NULL; - hrec -> hnext = NULL; + hrec->hinsi = hinsi; + hrec->krec = NULL; + hrec->hnext = NULL; return hrec; } +static DouonRec* +make_drec(u_char* ycode) { + DouonRec* drec; - -static DouonRec * -make_drec(u_char *ycode) -{ - DouonRec *drec; - - drec = (DouonRec *)Malloc(sizeof(DouonRec)); - if (!drec) { + drec = (DouonRec*)Malloc(sizeof(DouonRec)); + if(!drec) { fprintf(stderr, "\245\341\245\342\245\352\244\254\311\324\302\255\244\267\244\336\244\267\244\277"); exit(1); } - drec -> yptr = ycode; - drec -> hrec_num = 0; - drec -> hrec = NULL; - drec -> dnext = NULL; + drec->yptr = ycode; + drec->hrec_num = 0; + drec->hrec = NULL; + drec->dnext = NULL; return drec; } - - static int -diff_ylen(DouonRec *drec) -{ - DouonRec *dptr; - DouonRec *dprev; - u_char *p1; - u_char *p2; - int ylen = 0; +diff_ylen(DouonRec* drec) { + DouonRec* dptr; + DouonRec* dprev; + u_char* p1; + u_char* p2; + int ylen = 0; - dptr = douon_ptr; dprev = NULL; - while (dptr) { + dptr = douon_ptr; + dprev = NULL; + while(dptr) { dprev = dptr; - dptr = dptr -> dnext; + dptr = dptr->dnext; } - if (dprev) { - p1 = dprev -> yptr; p2 = drec -> yptr; - while (*p1 && (*p1 == *p2)) { + if(dprev) { + p1 = dprev->yptr; + p2 = drec->yptr; + while(*p1 && (*p1 == *p2)) { p1++; p2++; } - if (*p1 == *p2) { + if(*p1 == *p2) { fprintf(stderr, "\305\371\244\267\244\244\306\311\244\337\244\316\306\261\262\273\270\354\245\326\245\355\245\303\245\257\244\254\244\242\244\353\n"); - output_yomi(stderr, dprev -> yptr); fputc('\n', stderr); + output_yomi(stderr, dprev->yptr); + fputc('\n', stderr); exit(1); - } else if (*p1 > *p2) { + } else if(*p1 > *p2) { fprintf(stderr, "\306\311\244\337\244\316\275\347\275\370\244\254\244\252\244\253\244\267\244\244\n"); - output_yomi(stderr, dprev->yptr); fputc('\n', stderr); - output_yomi(stderr, drec->yptr); fputc('\n', stderr); + output_yomi(stderr, dprev->yptr); + fputc('\n', stderr); + output_yomi(stderr, drec->yptr); + fputc('\n', stderr); exit(1); } - while (*p2++) + while(*p2++) ylen++; } - return ylen; + return ylen; } - - static int -douon_knj(DouonRec *drec) -{ - int i; - int len = 0; - u_char *p; - u_char *knjofscvt(); - HinsiRec *hrec; - KanjiRec *krec; +douon_knj(DouonRec* drec) { + int i; + int len = 0; + u_char* p; + u_char* knjofscvt(); + HinsiRec* hrec; + KanjiRec* krec; - for (hrec = drec -> hrec ; hrec ; hrec = hrec -> hnext) { - for (krec = hrec -> krec ; krec ; krec = krec -> knext) { - p = knjofscvt(krec -> kptr, krec -> klen, &i); + for(hrec = drec->hrec; hrec; hrec = hrec->hnext) { + for(krec = hrec->krec; krec; krec = krec->knext) { + p = knjofscvt(krec->kptr, krec->klen, &i); len += i + 1; knjhnd_set(p, i); - krec -> alen = i; - krec -> aptr = p; + krec->alen = i; + krec->aptr = p; - set_ofsrec(krec -> kptr, krec -> klen, 0); + set_ofsrec(krec->kptr, krec->klen, 0); } } return len; } - - static void -make_d_list(DouonRec *drec) -{ +make_d_list(DouonRec* drec) { DouonRec *dptr, *dprev; - HinsiRec *hptr; - KanjiRec *kptr; - int ylen; - int klen; - int hnum; - int len; - int i; + HinsiRec* hptr; + KanjiRec* kptr; + int ylen; + int klen; + int hnum; + int len; + int i; start: - if (douon_ptr == NULL) { + if(douon_ptr == NULL) { douon_num = 0; yomi_len = 0; hinsi_num = 0; kanji_len = 0; - assyuku = NULL; + assyuku = NULL; } klen = douon_knj(drec); ylen = diff_ylen(drec); - hnum = drec -> hrec_num; + hnum = drec->hrec_num; i = 1 + MAXKNJASKNUMBER + douon_num * DOUONBLKSIZENUMBER + DOUONBLKSIZENUMBER + - yomi_len + ylen + + yomi_len + ylen + hinsi_num + hnum + hinsi_num + hnum + kanji_len + klen; len = (i <= MAINSEGMENTLENGTH) ? 0 : decide_knjask(); - if ((i - len) <= MAINSEGMENTLENGTH) { - if (douon_ptr) { - dptr = douon_ptr; dprev = NULL; - while (dptr) { + if((i - len) <= MAINSEGMENTLENGTH) { + if(douon_ptr) { + dptr = douon_ptr; + dprev = NULL; + while(dptr) { dprev = dptr; - dptr = dptr -> dnext; + dptr = dptr->dnext; } - dprev -> dnext = drec; + dprev->dnext = drec; } else { douon_ptr = drec; } - drec -> dnext = NULL; + drec->dnext = NULL; - drec -> dlen = ylen; + drec->dlen = ylen; douon_num += 1; - yomi_len += ylen; + yomi_len += ylen; hinsi_num += hnum; kanji_len += klen; return; - } else if (douon_ptr == NULL) { + } else if(douon_ptr == NULL) { fprintf(stderr, "\243\261\306\261\262\273\270\354\245\326\245\355\245\303\245\257\244\254\302\347\244\255\244\271\244\256\244\336\244\271\n"); exit(1); } - for (hptr = drec -> hrec ; hptr ; hptr = hptr -> hnext) { - for (kptr = hptr -> krec ; kptr ; kptr = kptr -> knext) { + for(hptr = drec->hrec; hptr; hptr = hptr->hnext) { + for(kptr = hptr->krec; kptr; kptr = kptr->knext) { - knjhnd_reset(kptr -> aptr, kptr -> alen); + knjhnd_reset(kptr->aptr, kptr->alen); - Free(kptr -> aptr); - kptr -> aptr = NULL; + Free(kptr->aptr); + kptr->aptr = NULL; } } @@ -437,18 +409,14 @@ start: goto start; } - - -void -flush_douon() -{ - if (drectmp) { +void flush_douon() { + if(drectmp) { make_d_list(drectmp); drectmp = NULL; } - if (douon_ptr) { + if(douon_ptr) { decide_knjask(); makeseg(); @@ -463,48 +431,45 @@ flush_douon() } } - -void -makelist(int *yomi, int *kanji, int hinsi, int *atr) -{ - u_char *ycode; - u_char *kcode; - int klen; - HinsiRec *hrec; +void makelist(int* yomi, int* kanji, int hinsi, int* atr) { + u_char* ycode; + u_char* kcode; + int klen; + HinsiRec* hrec; KanjiRec *krec, *kprev = NULL; ycode = makeyomi(yomi); kcode = makekanji(yomi, kanji, atr, &klen); - if (drectmp && strcmp(ycode, drectmp -> yptr)) { + if(drectmp && strcmp(ycode, drectmp->yptr)) { make_d_list(drectmp); drectmp = NULL; } - if (!drectmp) { + if(!drectmp) { drectmp = make_drec(ycode); - hrec = make_hrec(hinsi); - drectmp -> hrec = hrec; - drectmp -> hrec_num = 1; + hrec = make_hrec(hinsi); + drectmp->hrec = hrec; + drectmp->hrec_num = 1; - krec = make_krec(kcode, klen); - hrec -> krec = krec; + krec = make_krec(kcode, klen); + hrec->krec = krec; return; } - for (hrec = drectmp -> hrec ; hrec -> hnext ; hrec = hrec -> hnext) - if (hrec -> hinsi == hinsi) + for(hrec = drectmp->hrec; hrec->hnext; hrec = hrec->hnext) + if(hrec->hinsi == hinsi) break; - if (hrec -> hinsi == hinsi) { - for (krec=hrec->krec ; krec ; krec=krec->knext) { - if ((krec -> klen == klen) && - !memcmp(krec -> kptr, kcode, klen)) { + if(hrec->hinsi == hinsi) { + for(krec = hrec->krec; krec; krec = krec->knext) { + if((krec->klen == klen) && + !memcmp(krec->kptr, kcode, klen)) { fprintf(stderr, "\306\261\260\354\244\316\275\317\270\354\244\254\302\270\272\337\244\267\244\277\n"); fprintf(stderr, "\t\306\311\244\337:"); output_int(stderr, yomi); @@ -520,16 +485,16 @@ makelist(int *yomi, int *kanji, int hinsi, int *atr) kprev = krec; } - if (kprev) - kprev -> knext = make_krec(kcode, klen); + if(kprev) + kprev->knext = make_krec(kcode, klen); return; } - hrec -> hnext = make_hrec(hinsi); - hrec = hrec -> hnext; - drectmp -> hrec_num += 1; + hrec->hnext = make_hrec(hinsi); + hrec = hrec->hnext; + drectmp->hrec_num += 1; - krec = make_krec(kcode, klen); - hrec -> krec = krec; + krec = make_krec(kcode, klen); + hrec->krec = krec; } diff --git a/src/sj3mkdic/makeseg.c b/src/sj3mkdic/makeseg.c index 6cbf43d..bb170e0 100644 --- a/src/sj3mkdic/makeseg.c +++ b/src/sj3mkdic/makeseg.c @@ -1,6 +1,6 @@ /* * Copyright (c) 1991-1994 Sony Corporation - * + * * Permission is hereby granted, free of charge, to any person obtaining * a copy of this software and associated documentation files (the * "Software"), to deal in the Software without restriction, including @@ -8,10 +8,10 @@ * distribute, sublicense, and/or sell copies of the Software, and to * permit persons to whom the Software is furnished to do so, subject to * the following conditions: - * + * * The above copyright notice and this permission notice shall be * included in all copies or substantial portions of the Software. - * + * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. @@ -19,7 +19,7 @@ * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR * THE USE OR OTHER DEALINGS IN THE SOFTWARE. - * + * * Except as contained in this notice, the name of Sony Corporation * shall not be used in advertising or otherwise to promote the sale, use * or other dealings in this Software without prior written authorization @@ -28,8 +28,8 @@ */ /* - * $SonyRCSfile: makeseg.c,v $ - * $SonyRevision: 1.2 $ + * $SonyRCSfile: makeseg.c,v $ + * $SonyRevision: 1.2 $ * $SonyDate: 1994/12/09 11:27:05 $ */ @@ -38,52 +38,49 @@ #include "sj3mkdic.h" +static u_char mindex[MAINSEGMENTLENGTH]; +static int idxpos = 0; +static int idxnum = 0; -static u_char mindex[MAINSEGMENTLENGTH]; -static int idxpos = 0; -static int idxnum = 0; - - -static u_char * -set_ofsask(u_char *src, u_char *dst) -{ - int len; - u_char *ptr; - OffsetRec *ofsrec; +static u_char* +set_ofsask(u_char* src, u_char* dst) { + int len; + u_char* ptr; + OffsetRec* ofsrec; ofsrec = real_ofsrec(src); - for (len = ofsrec->klen, ptr = ofsrec->kptr ; len > 0 ; ) { - switch (*ptr & KANJIMODEMASK) { - case ZENHIRAASSYUKU: - case ZENKATAASSYUKU: - case KANJIASSYUKU: + for(len = ofsrec->klen, ptr = ofsrec->kptr; len > 0;) { + switch(*ptr & KANJIMODEMASK) { + case ZENHIRAASSYUKU: + case ZENKATAASSYUKU: + case KANJIASSYUKU: *dst++ = *ptr++; len -= 1; break; - case LEADINGHANKAKU: -#ifndef USEHANKAKUINDICT - fprintf(stderr, "\302\260\300\255\245\263\241\274\245\311\241\246\245\250\245\351\241\274\n"); - exit(1); + case LEADINGHANKAKU: +#ifndef USEHANKAKUINDICT + fprintf(stderr, "\302\260\300\255\245\263\241\274\245\311\241\246\245\250\245\351\241\274\n"); + exit(1); #else *dst++ = *ptr++; *dst++ = *ptr++; len -= 2; break; #endif - case OFFSETASSYUKU: + case OFFSETASSYUKU: fprintf(stderr, "\306\363\275\305\244\313\245\252\245\325\245\273\245\303\245\310\244\254\273\262\276\310\244\265\244\354\244\306\244\244\244\353\n"); exit(1); - case AIATTRIBUTE: + case AIATTRIBUTE: *dst++ = *ptr++; *dst++ = *ptr++; len -= 2; break; - case KANJISTREND: + case KANJISTREND: *dst++ = *ptr++; len--; break; - default: + default: *dst++ = *ptr++; *dst++ = *ptr++; len -= 2; @@ -93,76 +90,72 @@ set_ofsask(u_char *src, u_char *dst) return dst; } +int make_knjstr(u_char* src, int len, u_char* dst) { + u_char* keep = dst; -int -make_knjstr(u_char *src, int len, u_char *dst) -{ - u_char *keep = dst; - - while (len > 0) { - switch (*src & KANJIMODEMASK) { - case ZENHIRAASSYUKU: - case ZENKATAASSYUKU: - case KANJIASSYUKU: + while(len > 0) { + switch(*src & KANJIMODEMASK) { + case ZENHIRAASSYUKU: + case ZENKATAASSYUKU: + case KANJIASSYUKU: *dst++ = *src++; len -= 1; break; - case LEADINGHANKAKU: + case LEADINGHANKAKU: #ifndef USEHANKAKUINDICT - fprintf(stderr, "\302\260\300\255\245\263\241\274\245\311\241\246\245\250\245\351\241\274\n"); - exit(1); + fprintf(stderr, "\302\260\300\255\245\263\241\274\245\311\241\246\245\250\245\351\241\274\n"); + exit(1); #else *dst++ = *src++; *dst++ = *src++; len -= 2; break; #endif - case OFFSETASSYUKU: + case OFFSETASSYUKU: dst = set_ofsask(src, dst); src += 2; len -= 2; break; - case AIATTRIBUTE: + case AIATTRIBUTE: *dst++ = *src++; *dst++ = *src++; len -= 2; break; - case KANJISTREND: + case KANJISTREND: *dst++ = *src++; len--; break; - default: + default: *dst++ = *src++; *dst++ = *src++; len -= 2; - } - } - return(dst - keep); + } + } + return (dst - keep); } static int -make_knjask() -{ +make_knjask() { int i; - u_char *p; + u_char* p; u_char buf[128]; int len; int tlen = 0; - for (i = 0 ; i < askknj_num ; i++) { - len = make_knjstr(askknj[i] -> kptr, askknj[i] -> klen, buf); + for(i = 0; i < askknj_num; i++) { + len = make_knjstr(askknj[i]->kptr, askknj[i]->klen, buf); - Free(askknj[i] -> kptr); + Free(askknj[i]->kptr); - p = (u_char *)Malloc(len); - if (!p) { + p = (u_char*)Malloc(len); + if(!p) { fprintf(stderr, "\245\341\245\342\245\352\244\254\302\255\244\352\244\336\244\273\244\363\n"); exit(1); } memcpy(p, buf, len); - askknj[i] -> kptr = p; - askknj[i] -> klen = len; + askknj[i]->kptr = p; + askknj[i]->klen = len; tlen += len + 1; } @@ -170,46 +163,55 @@ make_knjask() return tlen; } +void makeseg() { + u_char buf[MAINSEGMENTLENGTH]; + DouonRec* drec; + HinsiRec* hrec; + KanjiRec* krec; + int i, j, k; + int slen; + u_char* dst; + u_char* sdst; + u_char * p, *q; -void -makeseg() -{ - u_char buf[MAINSEGMENTLENGTH]; - DouonRec *drec; - HinsiRec *hrec; - KanjiRec *krec; - int i, j, k; - int slen; - u_char *dst; - u_char *sdst; - u_char *p, *q; - -#ifndef HEHE -#define datset(i) { if (dst >= buf+sizeof(buf)) goto err; *dst++ = i; } +#ifndef HEHE +#define datset(i) \ + { \ + if(dst >= buf + sizeof(buf)) goto err; \ + *dst++ = i; \ + } #else -#define datset(i) { *dst++; i; } +#define datset(i) \ + { \ + *dst++; \ + i; \ + } #endif dst = buf; i = make_knjask(); - if (i >= 0x100) { + if(i >= 0x100) { fprintf(stderr, "\264\301\273\372\260\265\275\314\312\270\273\372\316\363\244\254\304\271\244\271\244\256\244\353\n"); exit(1); } datset(i); - for (i = 0 ; i < askknj_num ; i++) { - p = askknj[i] -> kptr; - j = askknj[i] -> klen; - while (j > 0) { + for(i = 0; i < askknj_num; i++) { + p = askknj[i]->kptr; + j = askknj[i]->klen; + while(j > 0) { k = codesize(*p); - datset(*p); p++; - if (k > 2) { - datset(*p); p++; - datset(*p); p++; - } else if (k > 1) { - datset(*p); p++; + datset(*p); + p++; + if(k > 2) { + datset(*p); + p++; + datset(*p); + p++; + } else if(k > 1) { + datset(*p); + p++; } j -= k; } @@ -218,99 +220,99 @@ makeseg() clear_ofsrec(); - for (drec = douon_ptr ; drec ; drec = drec->dnext) { - sdst = dst; dst += DOUONBLKSIZENUMBER; + for(drec = douon_ptr; drec; drec = drec->dnext) { + sdst = dst; + dst += DOUONBLKSIZENUMBER; - p = drec -> yptr; - slen = strlen(p) - drec -> dlen; + p = drec->yptr; + slen = strlen(p) - drec->dlen; p += slen; - for (i = drec -> dlen ; i > 0 ; i--) { - datset(*p); p++; + for(i = drec->dlen; i > 0; i--) { + datset(*p); + p++; } - for (hrec = drec->hrec ; hrec ; hrec = hrec->hnext) { + for(hrec = drec->hrec; hrec; hrec = hrec->hnext) { - datset(hrec -> hinsi); + datset(hrec->hinsi); - for (krec = hrec->krec ; krec ; krec = krec->knext) { - p = q = knjcvt(krec -> kptr, krec -> klen, &i); + for(krec = hrec->krec; krec; krec = krec->knext) { + p = q = knjcvt(krec->kptr, krec->klen, &i); set_ofsrec(krec->kptr, krec->klen, dst - buf); - while (i-- > 0) { - datset(*p); p++; + while(i-- > 0) { + datset(*p); + p++; } datset(KANJISTREND); Free(q); } - datset(HINSIBLKTERM); + datset(HINSIBLKTERM); } - i = dst - sdst; - *sdst = ((i >> 8) & 0x0f); + i = dst - sdst; + *sdst = ((i >> 8) & 0x0f); *(sdst + 1) = (i & 0xff); - if (drec -> dlen > 0x0f) *sdst |= 0x40; - *(sdst + 2) = (drec -> dlen & 0x0f); + if(drec->dlen > 0x0f) *sdst |= 0x40; + *(sdst + 2) = (drec->dlen & 0x0f); - if (slen > 0x0f) *sdst |= 0x80; + if(slen > 0x0f) *sdst |= 0x80; *(sdst + 2) |= ((slen << 4) & 0xf0); } - if (dst < buf + sizeof(buf)) { + if(dst < buf + sizeof(buf)) { datset(DOUONBLKTERM); } - for (p = douon_ptr -> yptr ; ; ) { - if (idxpos < MAININDEXLENGTH) { + for(p = douon_ptr->yptr;;) { + if(idxpos < MAININDEXLENGTH) { mindex[idxpos++] = *p; - } - else { + } else { fprintf(stderr, "\245\244\245\363\245\307\245\303\245\257\245\271\244\254\244\242\244\325\244\354\244\336\244\267\244\277\n"); exit(1); } - if (!*p++) break; + if(!*p++) break; } - if (idxpos < MAININDEXLENGTH) { + if(idxpos < MAININDEXLENGTH) { mindex[idxpos] = 0; - } - else { + } else { fprintf(stderr, "\245\244\245\363\245\307\245\303\245\257\245\271\244\254\244\242\244\325\244\354\244\336\244\267\244\277\n"); exit(1); } i = dst - buf; - while (dst < buf + sizeof(buf)) *dst++ = DOUONBLKTERM; + while(dst < buf + sizeof(buf)) *dst++ = DOUONBLKTERM; - if (Fseek(outfp, - (long)(HEADERLENGTH + COMMENTLENGTH + MAININDEXLENGTH - + idxnum * MAINSEGMENTLENGTH), - 0) < 0) { + if(Fseek(outfp, + (long)(HEADERLENGTH + COMMENTLENGTH + MAININDEXLENGTH + idxnum * MAINSEGMENTLENGTH), + 0) < 0) { fprintf(stderr, "\275\320\316\317\245\325\245\241\245\244\245\353\244\307\245\267\241\274\245\257\245\250\245\351\241\274\n"); exit(1); } - if (Fwrite(buf, sizeof(buf), 1, outfp) != 1) { + if(Fwrite(buf, sizeof(buf), 1, outfp) != 1) { fprintf(stderr, "\275\320\316\317\245\325\245\241\245\244\245\353\244\307\245\351\245\244\245\310\245\250\245\351\241\274\n"); exit(1); } Fflush(outfp); printf("\245\273\245\260\245\341\245\363\245\310\310\326\271\346:%d:", idxnum++); - output_yomi(stdout, douon_ptr -> yptr); + output_yomi(stdout, douon_ptr->yptr); printf("\t\245\273\245\260\245\341\245\363\245\310\304\271:%d", i); printf("\t\306\261\262\273\270\354\277\364:%d\n", douon_num); printf("\264\301\273\372\260\265\275\314\312\270\273\372\316\363:"); - for (i = j = 0 ; i < askknj_num ; i++) { + for(i = j = 0; i < askknj_num; i++) { putchar('\t'); - if (i && j == 0) putchar('\t'); - output_knj(stdout, askknj[i] -> kptr, askknj[i] -> klen); - printf(":%d", askknj[i] -> hindo + askknj[i] -> exist); - if (++j >= 4) { + if(i && j == 0) putchar('\t'); + output_knj(stdout, askknj[i]->kptr, askknj[i]->klen); + printf(":%d", askknj[i]->hindo + askknj[i]->exist); + if(++j >= 4) { putchar('\n'); j = 0; } } - if (j) putchar('\n'); + if(j) putchar('\n'); putchar('\n'); fflush(stdout); @@ -319,63 +321,67 @@ makeseg() err: fprintf(stderr, "\245\273\245\260\245\341\245\363\245\310\271\275\300\256\303\346\244\313\245\320\245\303\245\325\245\241\244\254\244\242\244\325\244\354\244\277\n"); fprintf(stderr, "\245\273\245\260\245\341\245\363\245\310\300\350\306\254\244\316\306\311\244\337:"); - output_yomi(stderr, douon_ptr -> yptr); + output_yomi(stderr, douon_ptr->yptr); fputc('\n', stderr); exit(1); -#undef datset +#undef datset } -static void put4byte(p, n) -u_char *p; -long n; +static void put4byte(p, n) + u_char* p; +long n; { - p += 3; - *p-- = n; n >>= 8; - *p-- = n; n >>= 8; - *p-- = n; n >>= 8; - *p = n; + p += 3; + *p-- = n; + n >>= 8; + *p-- = n; + n >>= 8; + *p-- = n; + n >>= 8; + *p = n; } -void -makehead(u_char *dict_name) -{ - u_char header[HEADERLENGTH + COMMENTLENGTH]; - time_t i; - u_char *p; +void makehead(u_char* dict_name) { + u_char header[HEADERLENGTH + COMMENTLENGTH]; + time_t i; + u_char* p; -#define INDEXPOS (HEADERLENGTH + COMMENTLENGTH) +#define INDEXPOS (HEADERLENGTH + COMMENTLENGTH) - memset(header, '\0', sizeof(header)); - put4byte(header + VERSIONPOS, DICTVERSION); - time(&i); - p = header + COMMENTPOS; - snprintf((char *)p, sizeof(header) - COMMENTPOS, "%s : %s", dict_name, ctime(&i)); - while (*p) { - if (*p == '\n') { *p = 0; break; } + memset(header, '\0', sizeof(header)); + put4byte(header + VERSIONPOS, DICTVERSION); + time(&i); + p = header + COMMENTPOS; + snprintf((char*)p, sizeof(header) - COMMENTPOS, "%s : %s", dict_name, ctime(&i)); + while(*p) { + if(*p == '\n') { + *p = 0; + break; + } p++; } - i = INDEXPOS; + i = INDEXPOS; - put4byte(header + DICTIDXPOS, i); - put4byte(header + DICTIDXLEN, MAININDEXLENGTH); - i += MAININDEXLENGTH; + put4byte(header + DICTIDXPOS, i); + put4byte(header + DICTIDXLEN, MAININDEXLENGTH); + i += MAININDEXLENGTH; - put4byte(header + DICTSEGPOS, i); - put4byte(header + DICTSEGLEN, MAINSEGMENTLENGTH); - put4byte(header + DICTSEGMAX, 0); - put4byte(header + DICTSEGNUM, idxnum); + put4byte(header + DICTSEGPOS, i); + put4byte(header + DICTSEGLEN, MAINSEGMENTLENGTH); + put4byte(header + DICTSEGMAX, 0); + put4byte(header + DICTSEGNUM, idxnum); - put4byte(header + DICTAIDXPOS, 0); - put4byte(header + DICTAIDXLEN, 0); + put4byte(header + DICTAIDXPOS, 0); + put4byte(header + DICTAIDXLEN, 0); - put4byte(header + DICTASEGPOS, 0); - put4byte(header + DICTASEGLEN, 0); + put4byte(header + DICTASEGPOS, 0); + put4byte(header + DICTASEGLEN, 0); - Fseek(outfp, (long)HEADERPOS, 0); - Fwrite(header, sizeof(header), 1, outfp); - Fseek(outfp, (long)INDEXPOS, 0); - Fwrite(mindex, MAININDEXLENGTH, 1, outfp); + Fseek(outfp, (long)HEADERPOS, 0); + Fwrite(header, sizeof(header), 1, outfp); + Fseek(outfp, (long)INDEXPOS, 0); + Fwrite(mindex, MAININDEXLENGTH, 1, outfp); -#undef INDEXPOS +#undef INDEXPOS } diff --git a/src/sj3mkdic/memory.c b/src/sj3mkdic/memory.c index f686161..1b32134 100644 --- a/src/sj3mkdic/memory.c +++ b/src/sj3mkdic/memory.c @@ -1,6 +1,6 @@ /* * Copyright (c) 1991-1994 Sony Corporation - * + * * Permission is hereby granted, free of charge, to any person obtaining * a copy of this software and associated documentation files (the * "Software"), to deal in the Software without restriction, including @@ -8,10 +8,10 @@ * distribute, sublicense, and/or sell copies of the Software, and to * permit persons to whom the Software is furnished to do so, subject to * the following conditions: - * + * * The above copyright notice and this permission notice shall be * included in all copies or substantial portions of the Software. - * + * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. @@ -19,7 +19,7 @@ * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR * THE USE OR OTHER DEALINGS IN THE SOFTWARE. - * + * * Except as contained in this notice, the name of Sony Corporation * shall not be used in advertising or otherwise to promote the sale, use * or other dealings in this Software without prior written authorization @@ -28,38 +28,32 @@ */ /* - * $SonyRCSfile: memory.c,v $ - * $SonyRevision: 1.1 $ + * $SonyRCSfile: memory.c,v $ + * $SonyRevision: 1.1 $ * $SonyDate: 1994/06/03 08:00:42 $ */ #include "sj3mkdic.h" -void * -Malloc(unsigned size) -{ - void *p; +void* Malloc(unsigned size) { + void* p; - p = malloc(size); - if (p == NULL) { - fprintf(stderr, "\245\341\245\342\245\352\244\254\263\316\312\335\244\307\244\255\244\336\244\273\244\363\244\307\244\267\244\277\241\243\n"); - exit(1); - } - return p; + p = malloc(size); + if(p == NULL) { + fprintf(stderr, "\245\341\245\342\245\352\244\254\263\316\312\335\244\307\244\255\244\336\244\273\244\363\244\307\244\267\244\277\241\243\n"); + exit(1); + } + return p; } -void * -Zalloc(int size) -{ - void *p; +void* Zalloc(int size) { + void* p; - p = Malloc(size); - memset(p, '\0', size); - return p; + p = Malloc(size); + memset(p, '\0', size); + return p; } -void -Free(void *p) -{ - free(p); +void Free(void* p) { + free(p); } diff --git a/src/sj3mkdic/offset.c b/src/sj3mkdic/offset.c index efd1266..d20b42e 100644 --- a/src/sj3mkdic/offset.c +++ b/src/sj3mkdic/offset.c @@ -1,6 +1,6 @@ /* * Copyright (c) 1991-1994 Sony Corporation - * + * * Permission is hereby granted, free of charge, to any person obtaining * a copy of this software and associated documentation files (the * "Software"), to deal in the Software without restriction, including @@ -8,10 +8,10 @@ * distribute, sublicense, and/or sell copies of the Software, and to * permit persons to whom the Software is furnished to do so, subject to * the following conditions: - * + * * The above copyright notice and this permission notice shall be * included in all copies or substantial portions of the Software. - * + * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. @@ -19,7 +19,7 @@ * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR * THE USE OR OTHER DEALINGS IN THE SOFTWARE. - * + * * Except as contained in this notice, the name of Sony Corporation * shall not be used in advertising or otherwise to promote the sale, use * or other dealings in this Software without prior written authorization @@ -28,8 +28,8 @@ */ /* - * $SonyRCSfile: offset.c,v $ - * $SonyRevision: 1.2 $ + * $SonyRCSfile: offset.c,v $ + * $SonyRevision: 1.2 $ * $SonyDate: 1994/08/17 01:50:26 $ */ @@ -37,125 +37,111 @@ #include "sj3mkdic.h" +static OffsetRec* +makeoffset(u_char* ptr, int len, int ofs) { + OffsetRec* orec; + u_char* p; -static OffsetRec * -makeoffset(u_char *ptr, int len, int ofs) -{ - OffsetRec *orec; - u_char *p; + orec = (OffsetRec*)Malloc(sizeof(OffsetRec)); - orec = (OffsetRec *)Malloc(sizeof(OffsetRec)); - - p = (u_char *)Malloc(len); + p = (u_char*)Malloc(len); memcpy(p, ptr, len); - orec -> kptr = p; - orec -> klen = len; - if (ofs) - orec -> offset = ofs; + orec->kptr = p; + orec->klen = len; + if(ofs) + orec->offset = ofs; else - orec -> offset = ofsrec_num + 1; + orec->offset = ofsrec_num + 1; return orec; } +void set_ofsrec(u_char* ptr, int len, int ofs) { + OffsetRec* orec; + int low, high, mid; + int i; -void -set_ofsrec(u_char *ptr, int len, int ofs) -{ - OffsetRec *orec; - int low, high, mid; - int i; - - if (ofsrec_num <= 0) { - orec = makeoffset(ptr, len, ofs); - ofsrec[0]= orec; + if(ofsrec_num <= 0) { + orec = makeoffset(ptr, len, ofs); + ofsrec[0] = orec; ofsrec_num++; return; } - low = 0; high = ofsrec_num - 1; + low = 0; + high = ofsrec_num - 1; do { mid = (low + high) / 2; - i = string_cmp(ofsrec[mid]->kptr, ofsrec[mid]->klen, ptr, len); - if (i > 0) + i = string_cmp(ofsrec[mid]->kptr, ofsrec[mid]->klen, ptr, len); + if(i > 0) high = mid - 1; - else if (i < 0) + else if(i < 0) low = ++mid; else break; - } while (low <= high); + } while(low <= high); - if (i) { - if (ofsrec_num >= MAXOFFSETNUMBER) { + if(i) { + if(ofsrec_num >= MAXOFFSETNUMBER) { fprintf(stderr, "\245\252\245\325\245\273\245\303\245\310\241\246\245\306\241\274\245\326\245\353\244\254\244\242\244\325\244\354\244\336\244\267\244\277\n"); exit(1); } orec = makeoffset(ptr, len, ofs); - for (i = ofsrec_num ; i > mid ; i--) ofsrec[i] = ofsrec[i - 1]; + for(i = ofsrec_num; i > mid; i--) ofsrec[i] = ofsrec[i - 1]; ofsrec[mid] = orec; ofsrec_num++; } } +int isknjexist(u_char* knj, int len) { + int low, high, mid; + int i; + if(ofsrec_num <= 0) return 0; -int -isknjexist(u_char *knj, int len) -{ - int low, high, mid; - int i; - - if (ofsrec_num <= 0) return 0; - - low = 0; high = ofsrec_num - 1; - while (low <= high) { + low = 0; + high = ofsrec_num - 1; + while(low <= high) { mid = (low + high) / 2; - i = string_cmp(ofsrec[mid]->kptr, ofsrec[mid]->klen, knj, len); - if (i > 0) + i = string_cmp(ofsrec[mid]->kptr, ofsrec[mid]->klen, knj, len); + if(i > 0) high = mid - 1; - else if (i < 0) + else if(i < 0) low = ++mid; else - return ofsrec[mid] -> offset; + return ofsrec[mid]->offset; } return 0; } +void clear_ofsrec() { + int i; - -void -clear_ofsrec() -{ - int i; - - for (i = 0 ; i < ofsrec_num ; i++) { - Free(ofsrec[i] -> kptr); + for(i = 0; i < ofsrec_num; i++) { + Free(ofsrec[i]->kptr); Free(ofsrec[i]); } ofsrec_num = 0; } +OffsetRec* +real_ofsrec(u_char* ptr) { + int ofs; + int i; + OffsetRec** p; + ofs = (*ptr++ & KNJASSYUKUMASK); + ofs <<= 8; + ofs += *ptr; -OffsetRec * -real_ofsrec(u_char *ptr) -{ - int ofs; - int i; - OffsetRec **p; - - ofs = (*ptr++ & KNJASSYUKUMASK); - ofs <<= 8; - ofs += *ptr; - - for (i = ofsrec_num, p = ofsrec ; i-- > 0 ; p++) - if ((*p) -> offset == ofs) + for(i = ofsrec_num, p = ofsrec; i-- > 0; p++) + if((*p)->offset == ofs) return *p; fprintf(stderr, "real_ofsrec() \244\307\260\333\276\357\244\312\276\365\302\326 %x\n", ofs); diff --git a/src/sj3mkdic/readline.c b/src/sj3mkdic/readline.c index 3953894..f137fd9 100644 --- a/src/sj3mkdic/readline.c +++ b/src/sj3mkdic/readline.c @@ -1,6 +1,6 @@ /* * Copyright (c) 1991-1994 Sony Corporation - * + * * Permission is hereby granted, free of charge, to any person obtaining * a copy of this software and associated documentation files (the * "Software"), to deal in the Software without restriction, including @@ -8,10 +8,10 @@ * distribute, sublicense, and/or sell copies of the Software, and to * permit persons to whom the Software is furnished to do so, subject to * the following conditions: - * + * * The above copyright notice and this permission notice shall be * included in all copies or substantial portions of the Software. - * + * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. @@ -19,7 +19,7 @@ * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR * THE USE OR OTHER DEALINGS IN THE SOFTWARE. - * + * * Except as contained in this notice, the name of Sony Corporation * shall not be used in advertising or otherwise to promote the sale, use * or other dealings in this Software without prior written authorization @@ -28,8 +28,8 @@ */ /* - * $SonyRCSfile: readline.c,v $ - * $SonyRevision: 1.1 $ + * $SonyRCSfile: readline.c,v $ + * $SonyRevision: 1.1 $ * $SonyDate: 1994/06/03 08:00:44 $ */ @@ -38,144 +38,132 @@ #include "sj3mkdic.h" -static int yomi[MAXYOMILENGTH + 1]; -static int kanji[MAXKANJILENGTH + 1]; -static int hinsi[MAXHINSINUMBER + 1]; -static int atr[MAXATRNUMBER + 1]; - -#define Isblank(c) ((c) == 0x20 || (c) == 0x09 || (c) == 0xa1a1) -#define Isillegal(c) ((c) < 0x20) +static int yomi[MAXYOMILENGTH + 1]; +static int kanji[MAXKANJILENGTH + 1]; +static int hinsi[MAXHINSINUMBER + 1]; +static int atr[MAXATRNUMBER + 1]; +#define Isblank(c) ((c) == 0x20 || (c) == 0x09 || (c) == 0xa1a1) +#define Isillegal(c) ((c) < 0x20) static void -error(char *s) -{ - if (s) +error(char* s) { + if(s) fprintf(stderr, "%s\n", s); mark_file(stderr); exit(1); } - - static int -readchar() -{ - int c1; - int c2; +readchar() { + int c1; + int c2; c1 = getch(); - if (c1 == EOF) + if(c1 == EOF) return EOF; - if (c1 != SS3) { - if (c1 & 0x80) { + if(c1 != SS3) { + if(c1 & 0x80) { c2 = getch(); - if (c2 == EOF) + if(c2 == EOF) error(NULL); c1 = ((c1 & 0xff) << 8) + (c2 & 0xff); } } else { c2 = getch(); - if (c2 == EOF) + if(c2 == EOF) error(NULL); c1 = ((c1 & 0xff) << 8) + (c2 & 0xff); c2 = getch(); - if (c2 == EOF) + if(c2 == EOF) error(NULL); c1 = ((c1 & 0xffff) << 8) + (c2 & 0xff); } return c1; } - - static int -skip_blank() -{ - int c; +skip_blank() { + int c; c = readchar(); - while (Isblank(c)) + while(Isblank(c)) c = readchar(); return c; } - - static int -readhinsi() -{ - static int c = 0; - int i; - unsigned char hinsi[128]; +readhinsi() { + static int c = 0; + int i; + unsigned char hinsi[128]; retry: - if (c == '\n') { + if(c == '\n') { c = 0; return 0; } c = skip_blank(); - if (c == '\n') { + if(c == '\n') { c = 0; return 0; } - for (i = 0 ; !Isblank(c) ; ) { - if (c == '\n' || c == ':') + for(i = 0; !Isblank(c);) { + if(c == '\n' || c == ':') break; - if (Isillegal(c)) + if(Isillegal(c)) error(ILLEGALFORMAT); - if (c > 0xffffff) { - if (i >= 126) + if(c > 0xffffff) { + if(i >= 126) error(TOOLONGHINSI); hinsi[i++] = ((c >> 24) & 0xff); - if (i >= 126) + if(i >= 126) error(TOOLONGHINSI); hinsi[i++] = ((c >> 16) & 0xff); - if (i >= 126) + if(i >= 126) error(TOOLONGHINSI); hinsi[i++] = ((c >> 8) & 0xff); - } else if (c > 0xffff) { - if (i >= 126) + } else if(c > 0xffff) { + if(i >= 126) error(TOOLONGHINSI); hinsi[i++] = ((c >> 16) & 0xff); - if (i >= 126) + if(i >= 126) error(TOOLONGHINSI); hinsi[i++] = ((c >> 8) & 0xff); - } else if (c > 0xff) { - if (i >= 126) + } else if(c > 0xff) { + if(i >= 126) error(TOOLONGHINSI); hinsi[i++] = ((c >> 8) & 0xff); } - if (i >= 127) + if(i >= 127) error(TOOLONGHINSI); hinsi[i++] = (c & 0xff); - c = readchar(); + c = readchar(); } - if (i == 0) + if(i == 0) return 0; - if (hinsi[0] == '[' && hinsi[i - 1] == ']') { + if(hinsi[0] == '[' && hinsi[i - 1] == ']') { hinsi[i - 1] = 0; - i = cnvhinsi(hinsi + 1); - if (i > 0) { + i = cnvhinsi(hinsi + 1); + if(i > 0) { fprintf(stderr, "\311\312\273\354 \"%s\" \244\313\263\347\270\314\244\254\244\304\244\244\244\306\244\244\244\353\n", hinsi + 1); - } else if (!i) { + } else if(!i) { fprintf(stderr, "\"%s\" \244\254\245\263\241\274\245\311\262\275\244\307\244\255\244\336\244\273\244\363\n", hinsi + 1); goto retry; } - } - else { + } else { hinsi[i] = 0; - i = cnvhinsi(hinsi); - if (!i) { + i = cnvhinsi(hinsi); + if(!i) { fprintf(stderr, "\"%s\" \244\254\245\263\241\274\245\311\262\275\244\307\244\255\244\336\244\273\244\363\n", hinsi); goto retry; } @@ -184,98 +172,89 @@ retry: return i; } +int* readline() { + int c; + int i; + int j; - -int * -readline() -{ - int c; - int i; - int j; - - for ( ; ; ) { + for(;;) { mark_file(NULL); c = skip_blank(); - if (c == '#') { - while (c != '\n') + if(c == '#') { + while(c != '\n') c = skip_blank(); } - if (c == EOF) + if(c == EOF) return NULL; - if (c != '\n') + if(c != '\n') break; } - for (i = 0 ; !Isblank(c) ; ) { - if (Isillegal(c)) + for(i = 0; !Isblank(c);) { + if(Isillegal(c)) error(ILLEGALFORMAT); - if (i >= MAXYOMILENGTH) + if(i >= MAXYOMILENGTH) error(TOOLONGYOMI); yomi[i++] = c; - c = readchar(); + c = readchar(); } yomi[i] = 0; - if (i == 0) + if(i == 0) error(NOYOMISTRING); c = skip_blank(); - if (c != '"') { - for (i = 0 ; !Isblank(c) ; ) { - if (Isillegal(c)) + if(c != '"') { + for(i = 0; !Isblank(c);) { + if(Isillegal(c)) error(ILLEGALFORMAT); - if (i >= MAXKANJILENGTH) + if(i >= MAXKANJILENGTH) error(TOOLONGKANJI); kanji[i++] = c; - c = readchar(); + c = readchar(); } } else { c = readchar(); - for (i = 0 ; c != '"' ; ) { - if (Isillegal(c)) + for(i = 0; c != '"';) { + if(Isillegal(c)) error(ILLEGALFORMAT); - if (i >= MAXKANJILENGTH) + if(i >= MAXKANJILENGTH) error(TOOLONGKANJI); kanji[i++] = c; - c = readchar(); + c = readchar(); } } kanji[i] = 0; - if (i == 0) + if(i == 0) error(NOKANJISTRING); i = j = 0; - while (c = readhinsi()) { - if (c < 0) { - if (i >= MAXATRNUMBER) + while(c = readhinsi()) { + if(c < 0) { + if(i >= MAXATRNUMBER) error(TOOMANYATR); atr[i++] = -c; - } - else { - if (j >= MAXHINSINUMBER) + } else { + if(j >= MAXHINSINUMBER) error(TOOMANYHINSI); hinsi[j++] = c; } } atr[i] = 0; - if (j == 0) + if(j == 0) hinsi[j++] = HINSITANKAN; hinsi[j] = 0; return yomi; } +void setline(void (*func)(int*, int*, int, int*)) { + int i; - -void -setline(void (*func)(int*, int*, int, int*)) -{ - int i; - - for (i = 0 ; hinsi[i] ; i++) + for(i = 0; hinsi[i]; i++) (*func)(yomi, kanji, hinsi[i], atr); } diff --git a/src/sj3mkdic/sj3_dict_const.h b/src/sj3mkdic/sj3_dict_const.h index 493eef0..d1b4208 100644 --- a/src/sj3mkdic/sj3_dict_const.h +++ b/src/sj3mkdic/sj3_dict_const.h @@ -1,6 +1,6 @@ /* * Copyright (c) 1991-1994 Sony Corporation - * + * * Permission is hereby granted, free of charge, to any person obtaining * a copy of this software and associated documentation files (the * "Software"), to deal in the Software without restriction, including @@ -8,10 +8,10 @@ * distribute, sublicense, and/or sell copies of the Software, and to * permit persons to whom the Software is furnished to do so, subject to * the following conditions: - * + * * The above copyright notice and this permission notice shall be * included in all copies or substantial portions of the Software. - * + * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. @@ -19,7 +19,7 @@ * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR * THE USE OR OTHER DEALINGS IN THE SOFTWARE. - * + * * Except as contained in this notice, the name of Sony Corporation * shall not be used in advertising or otherwise to promote the sale, use * or other dealings in this Software without prior written authorization @@ -28,81 +28,80 @@ */ /* - * $SonyRCSfile: sj3_dict_const.h,v $ - * $SonyRevision: 1.1 $ + * $SonyRCSfile: sj3_dict_const.h,v $ + * $SonyRevision: 1.1 $ * $SonyDate: 1994/06/03 08:00:24 $ */ -#ifndef SJ3_DICT_CONST_H -#define SJ3_DICT_CONST_H +#ifndef SJ3_DICT_CONST_H +#define SJ3_DICT_CONST_H -#define MAINSEGMENTLENGTH 2048 -#define MAININDEXLENGTH 2048 -#define MAININDEXNUMBER 512 +#define MAINSEGMENTLENGTH 2048 +#define MAININDEXLENGTH 2048 +#define MAININDEXNUMBER 512 -#define MAXYOMILENGTH 32 -#define MAXKANJILENGTH 32 -#define MAXHINSINUMBER 16 -#define MAXATRNUMBER 16 -#define MAXJOSINUMBER 16 +#define MAXYOMILENGTH 32 +#define MAXKANJILENGTH 32 +#define MAXHINSINUMBER 16 +#define MAXATRNUMBER 16 +#define MAXJOSINUMBER 16 -#define MAXKNJASKNUMBER 16 -#define MAXYOMIASKNUMBER 16 +#define MAXKNJASKNUMBER 16 +#define MAXYOMIASKNUMBER 16 -#define DOUONBLKSIZENUMBER 3 +#define DOUONBLKSIZENUMBER 3 -#define DOUONBLKTERM 0xff -#define HINSIBLKTERM 0xff +#define DOUONBLKTERM 0xff +#define HINSIBLKTERM 0xff -#define NORMALKANJIMASK 0x7f -#define SS3KANJI 0x0080 -#define ZENHIRAASSYUKU 0x80 -#define OFFSETASSYUKU 0x90 -#define ZENKATAASSYUKU 0xa0 -#define AIATTRIBUTE 0xb0 -#define KANJIASSYUKU 0xc0 -#define LEADINGHANKAKU 0xd0 -#define KANJISTREND 0x00 -#define ISASSYUKU 0x80 -#define ASSUKUUSE2BYTE 0x90 -#define KNJASSYUKUMASK 0x0f -#define KANJICODEMASK 0x0f -#define KANJIMODEMASK 0xf0 -#define ATRMSKANJIOFS 0xc0c0 +#define NORMALKANJIMASK 0x7f +#define SS3KANJI 0x0080 +#define ZENHIRAASSYUKU 0x80 +#define OFFSETASSYUKU 0x90 +#define ZENKATAASSYUKU 0xa0 +#define AIATTRIBUTE 0xb0 +#define KANJIASSYUKU 0xc0 +#define LEADINGHANKAKU 0xd0 +#define KANJISTREND 0x00 +#define ISASSYUKU 0x80 +#define ASSUKUUSE2BYTE 0x90 +#define KNJASSYUKUMASK 0x0f +#define KANJICODEMASK 0x0f +#define KANJIMODEMASK 0xf0 +#define ATRMSKANJIOFS 0xc0c0 +#define MAXHINDONUMBER 2000 +#define MAXOFFSETNUMBER 1000 -#define MAXHINDONUMBER 2000 -#define MAXOFFSETNUMBER 1000 +#define ILLEGALFORMAT "\245\325\245\251\241\274\245\336\245\303\245\310\244\254\260\333\276\357\244\307\244\271" +#define TOOLONGYOMI "\306\311\244\337\312\270\273\372\316\363\244\254\304\271\244\271\244\256\244\336\244\271" +#define TOOLONGKANJI "\264\301\273\372\312\270\273\372\316\363\244\254\304\271\244\271\244\256\244\336\244\271" +#define TOOLONGHINSI "\311\312\273\354\312\270\273\372\316\363\244\254\304\271\244\271\244\256\244\336\244\271" +#define TOOLONGGROUP "\245\260\245\353\241\274\245\327\314\276\244\254\260\333\276\357\244\307\244\271" +#define TOOLONGJOSI "\275\365\273\354\312\270\273\372\316\363\244\254\260\333\276\357\244\307\244\271" +#define BADHINSI "\305\320\317\277\244\265\244\354\244\306\244\244\244\312\244\244\311\312\273\354\244\307\244\271" +#define BADGROUP "\305\320\317\277\244\265\244\354\244\306\244\244\244\312\244\244\245\260\245\353\241\274\245\327\244\307\244\271" +#define BADJOSI "\305\320\317\277\244\265\244\354\244\306\244\244\244\312\244\244\275\365\273\354\244\307\244\271" +#define NOYOMISTRING "\306\311\244\337\312\270\273\372\316\363\244\254\274\350\306\300\244\307\244\255\244\336\244\273\244\363" +#define NOKANJISTRING "\264\301\273\372\312\270\273\372\316\363\244\254\274\350\306\300\244\307\244\255\244\336\244\273\244\363" +#define TOOMANYATR "\302\260\300\255\244\316\277\364\244\254\302\277\244\271\244\256\244\336\244\271" +#define TOOMANYHINSI "\311\312\273\354\244\316\277\364\244\254\302\277\244\271\244\256\244\336\244\271" +#define TOOMANYJOSI "\275\365\273\354\244\316\277\364\244\254\302\277\244\271\244\256\244\336\244\271" +#define NODATAINMAIN "\245\341\245\244\245\363\274\255\275\361\244\313\302\270\272\337\244\267\244\336\244\273\244\363" +#define TOOMANYTARGET "\311\312\273\354\244\362\243\261\244\304\273\330\304\352\244\267\244\306\244\257\244\300\244\265\244\244" -#define ILLEGALFORMAT "\245\325\245\251\241\274\245\336\245\303\245\310\244\254\260\333\276\357\244\307\244\271" -#define TOOLONGYOMI "\306\311\244\337\312\270\273\372\316\363\244\254\304\271\244\271\244\256\244\336\244\271" -#define TOOLONGKANJI "\264\301\273\372\312\270\273\372\316\363\244\254\304\271\244\271\244\256\244\336\244\271" -#define TOOLONGHINSI "\311\312\273\354\312\270\273\372\316\363\244\254\304\271\244\271\244\256\244\336\244\271" -#define TOOLONGGROUP "\245\260\245\353\241\274\245\327\314\276\244\254\260\333\276\357\244\307\244\271" -#define TOOLONGJOSI "\275\365\273\354\312\270\273\372\316\363\244\254\260\333\276\357\244\307\244\271" -#define BADHINSI "\305\320\317\277\244\265\244\354\244\306\244\244\244\312\244\244\311\312\273\354\244\307\244\271" -#define BADGROUP "\305\320\317\277\244\265\244\354\244\306\244\244\244\312\244\244\245\260\245\353\241\274\245\327\244\307\244\271" -#define BADJOSI "\305\320\317\277\244\265\244\354\244\306\244\244\244\312\244\244\275\365\273\354\244\307\244\271" -#define NOYOMISTRING "\306\311\244\337\312\270\273\372\316\363\244\254\274\350\306\300\244\307\244\255\244\336\244\273\244\363" -#define NOKANJISTRING "\264\301\273\372\312\270\273\372\316\363\244\254\274\350\306\300\244\307\244\255\244\336\244\273\244\363" -#define TOOMANYATR "\302\260\300\255\244\316\277\364\244\254\302\277\244\271\244\256\244\336\244\271" -#define TOOMANYHINSI "\311\312\273\354\244\316\277\364\244\254\302\277\244\271\244\256\244\336\244\271" -#define TOOMANYJOSI "\275\365\273\354\244\316\277\364\244\254\302\277\244\271\244\256\244\336\244\271" -#define NODATAINMAIN "\245\341\245\244\245\363\274\255\275\361\244\313\302\270\272\337\244\267\244\336\244\273\244\363" -#define TOOMANYTARGET "\311\312\273\354\244\362\243\261\244\304\273\330\304\352\244\267\244\306\244\257\244\300\244\265\244\244" +#define HINSITANKAN cnvhinsi("\303\261\264\301") -#define HINSITANKAN cnvhinsi("\303\261\264\301") +#define FALSE 0 +#define TRUE (!FALSE) -#define FALSE 0 -#define TRUE (!FALSE) - -#define DIVLIST 1 -#define ASSYUKUREC 2 -#define STRING 3 -#define HINDOREC 4 -#define OFFSETREC 5 -#define KANJIREC 6 -#define HINSIREC 7 -#define DOUONREC 8 +#define DIVLIST 1 +#define ASSYUKUREC 2 +#define STRING 3 +#define HINDOREC 4 +#define OFFSETREC 5 +#define KANJIREC 6 +#define HINSIREC 7 +#define DOUONREC 8 #endif diff --git a/src/sj3mkdic/sj3_dict_struct.h b/src/sj3mkdic/sj3_dict_struct.h index 78b587c..32dec89 100644 --- a/src/sj3mkdic/sj3_dict_struct.h +++ b/src/sj3mkdic/sj3_dict_struct.h @@ -1,6 +1,6 @@ /* * Copyright (c) 1991-1994 Sony Corporation - * + * * Permission is hereby granted, free of charge, to any person obtaining * a copy of this software and associated documentation files (the * "Software"), to deal in the Software without restriction, including @@ -8,10 +8,10 @@ * distribute, sublicense, and/or sell copies of the Software, and to * permit persons to whom the Software is furnished to do so, subject to * the following conditions: - * + * * The above copyright notice and this permission notice shall be * included in all copies or substantial portions of the Software. - * + * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. @@ -19,7 +19,7 @@ * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR * THE USE OR OTHER DEALINGS IN THE SOFTWARE. - * + * * Except as contained in this notice, the name of Sony Corporation * shall not be used in advertising or otherwise to promote the sale, use * or other dealings in this Software without prior written authorization @@ -28,64 +28,61 @@ */ /* - * $SonyRCSfile: sj3_dict_struct.h,v $ - * $SonyRevision: 1.1 $ + * $SonyRCSfile: sj3_dict_struct.h,v $ + * $SonyRevision: 1.1 $ * $SonyDate: 1994/06/03 08:00:26 $ */ - - - #include "sj3_dict_const.h" -#ifndef SJ3_DICT_STRUCT_H -#define SJ3_DICT_STRUCT_H +#ifndef SJ3_DICT_STRUCT_H +#define SJ3_DICT_STRUCT_H #include typedef struct kanji_rec { - int klen; - u_char *kptr; - int alen; - u_char *aptr; - struct kanji_rec *knext; + int klen; + u_char* kptr; + int alen; + u_char* aptr; + struct kanji_rec* knext; } KanjiRec; typedef struct hinsi_rec { - int hinsi; - KanjiRec *krec; - struct hinsi_rec *hnext; + int hinsi; + KanjiRec* krec; + struct hinsi_rec* hnext; } HinsiRec; typedef struct douon_rec { - u_char *yptr; - int dlen; - int hrec_num; - HinsiRec *hrec; - struct douon_rec *dnext; + u_char* yptr; + int dlen; + int hrec_num; + HinsiRec* hrec; + struct douon_rec* dnext; } DouonRec; typedef struct hindo_rec { int klen; - u_char *kptr; + u_char* kptr; int exist; int hindo; - int offset; + int offset; - struct hindo_rec *anext; - struct assyuku_rec *arec; + struct hindo_rec* anext; + struct assyuku_rec* arec; } HindoRec; typedef struct assyuku_rec { - int len; - HindoRec *nrec; - struct assyuku_rec *anext; + int len; + HindoRec* nrec; + struct assyuku_rec* anext; } AssyukuRec; typedef struct offset_rec { int klen; - u_char *kptr; + u_char* kptr; int offset; } OffsetRec; diff --git a/src/sj3mkdic/sj3mkdic.h b/src/sj3mkdic/sj3mkdic.h index 68536d1..dff5ba0 100644 --- a/src/sj3mkdic/sj3mkdic.h +++ b/src/sj3mkdic/sj3mkdic.h @@ -28,102 +28,100 @@ #include "sj3_dict_struct.h" /* char.c */ -int cnvyomi(int); -int h2kcode(int); -int codesize(u_char); -void output_knj(FILE *, u_char *, int); -void output_str(FILE *, char *); -void output_int(FILE *, int *); -int yomi2zen(int); -void output_yomi(FILE *, u_char *); +int cnvyomi(int); +int h2kcode(int); +int codesize(u_char); +void output_knj(FILE*, u_char*, int); +void output_str(FILE*, char*); +void output_int(FILE*, int*); +int yomi2zen(int); +void output_yomi(FILE*, u_char*); /* cnvhinsi.c */ -int u_strcmp(u_char *, u_char *); -int cnvhinsi(u_char *); -char *hinsi_str(int); +int u_strcmp(u_char*, u_char*); +int cnvhinsi(u_char*); +char* hinsi_str(int); /* file.c */ -FILE *Fopen(char *, char *); -void Fclose(FILE *); -int Fseek(FILE *, long, int); -long Ftell(FILE *); -long Fsize(char *); -size_t Fread(char *, int, int, FILE *); -size_t Fwrite(char *, int, int, FILE *); -int Fgetc(FILE *); -int Fflush(FILE *); +FILE* Fopen(char*, char*); +void Fclose(FILE*); +int Fseek(FILE*, long, int); +long Ftell(FILE*); +long Fsize(char*); +size_t Fread(char*, int, int, FILE*); +size_t Fwrite(char*, int, int, FILE*); +int Fgetc(FILE*); +int Fflush(FILE*); /* global.c */ -extern DouonRec *douon_ptr; -extern int douon_num; -extern int yomi_len; -extern int hinsi_num; -extern int kanji_len; -extern HindoRec *hindo[MAXHINDONUMBER]; -extern int hindo_num; -extern OffsetRec *ofsrec[MAXOFFSETNUMBER]; -extern int ofsrec_num; -extern AssyukuRec *assyuku; -extern HindoRec *askknj[MAXKNJASKNUMBER]; -extern int askknj_num; -extern int kanji_num; +extern DouonRec* douon_ptr; +extern int douon_num; +extern int yomi_len; +extern int hinsi_num; +extern int kanji_len; +extern HindoRec* hindo[MAXHINDONUMBER]; +extern int hindo_num; +extern OffsetRec* ofsrec[MAXOFFSETNUMBER]; +extern int ofsrec_num; +extern AssyukuRec* assyuku; +extern HindoRec* askknj[MAXKNJASKNUMBER]; +extern int askknj_num; +extern int kanji_num; /* hindo.c */ -int check_hindo(u_char *, int); -void knjhnd_set(u_char *, int); -void knjhnd_reset(u_char *, int); -int decide_knjask(); +int check_hindo(u_char*, int); +void knjhnd_set(u_char*, int); +void knjhnd_reset(u_char*, int); +int decide_knjask(); void clear_hindo(); void clear_assyuku(); /* knjcvt.c */ -u_char *knjofscvt(u_char *, int, int *); -u_char *knjcvt(u_char *, int, int *); +u_char* knjofscvt(u_char*, int, int*); +u_char* knjcvt(u_char*, int, int*); /* mkdict.c */ -extern FILE *infp; -extern FILE *outfp; -char *make_idxlist(char *); -char *get_idxlist(char *); -void parse(int, char **); -int get_number(char *); -void usage(char *); -int getch(); -void mark_file(FILE *); +extern FILE* infp; +extern FILE* outfp; +char* make_idxlist(char*); +char* get_idxlist(char*); +void parse(int, char**); +int get_number(char*); +void usage(char*); +int getch(); +void mark_file(FILE*); /* makelist */ void flush_douon(); -void makelist(int *, int *, int, int *); +void makelist(int*, int*, int, int*); /* makeseg.c */ -int make_knjstr(u_char *, int, u_char *); +int make_knjstr(u_char*, int, u_char*); void makeseg(); -void makehead(u_char *); +void makehead(u_char*); /* memory.c */ -void *Malloc(unsigned); -void *Zalloc(int); -void Free(void *); +void* Malloc(unsigned); +void* Zalloc(int); +void Free(void*); /* offset.c */ -void set_ofsrec(u_char *, int, int); -int isknjexist(u_char *, int); -void clear_ofsrec(); -OffsetRec *real_ofsrec(u_char *); +void set_ofsrec(u_char*, int, int); +int isknjexist(u_char*, int); +void clear_ofsrec(); +OffsetRec* real_ofsrec(u_char*); /* readline.c */ -int *readline(); +int* readline(); void setline(void (*)(int*, int*, int, int*)); /* string.c */ -int bubun_str(u_char *, int, u_char *, int); -int overlap_str(u_char *, int, u_char *, int); -int istrlen(int *); -int istrcmp(int *, int *); -int top_strcmp(int *, int *); -int last_strcmp(int *, int *); -int string_cmp(u_char *, int, u_char *, int); +int bubun_str(u_char*, int, u_char*, int); +int overlap_str(u_char*, int, u_char*, int); +int istrlen(int*); +int istrcmp(int*, int*); +int top_strcmp(int*, int*); +int last_strcmp(int*, int*); +int string_cmp(u_char*, int, u_char*, int); #endif /* SJ3MKDIC_H */ - - diff --git a/src/sj3mkdic/string.c b/src/sj3mkdic/string.c index af77633..36226ca 100644 --- a/src/sj3mkdic/string.c +++ b/src/sj3mkdic/string.c @@ -1,6 +1,6 @@ /* * Copyright (c) 1991-1994 Sony Corporation - * + * * Permission is hereby granted, free of charge, to any person obtaining * a copy of this software and associated documentation files (the * "Software"), to deal in the Software without restriction, including @@ -8,10 +8,10 @@ * distribute, sublicense, and/or sell copies of the Software, and to * permit persons to whom the Software is furnished to do so, subject to * the following conditions: - * + * * The above copyright notice and this permission notice shall be * included in all copies or substantial portions of the Software. - * + * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. @@ -19,7 +19,7 @@ * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR * THE USE OR OTHER DEALINGS IN THE SOFTWARE. - * + * * Except as contained in this notice, the name of Sony Corporation * shall not be used in advertising or otherwise to promote the sale, use * or other dealings in this Software without prior written authorization @@ -28,8 +28,8 @@ */ /* - * $SonyRCSfile: string.c,v $ - * $SonyRevision: 1.1 $ + * $SonyRCSfile: string.c,v $ + * $SonyRevision: 1.1 $ * $SonyDate: 1994/06/03 08:00:45 $ */ @@ -37,31 +37,29 @@ #include "sj3mkdic.h" - -int -bubun_str(u_char *p1, int l1, u_char *p2, int l2) -{ - u_char *p; +int bubun_str(u_char* p1, int l1, u_char* p2, int l2) { + u_char* p; int l; int i; - for (p = p1, l = l1 ; l > 0 ; ) { - if (l < l2) break; - for (i = 0 ; i < l2 ; i++) - if (*(p + i) != *(p2 + i)) break; + for(p = p1, l = l1; l > 0;) { + if(l < l2) break; + for(i = 0; i < l2; i++) + if(*(p + i) != *(p2 + i)) break; - if (i >= l2) return 1; + if(i >= l2) return 1; i = codesize(*p); p += i; l -= i; } - for (p = p2, l = l2 ; l > 0 ; ) { - if (l < l1) break; - for (i = 0 ; i < l1 ; i++) if (*(p + i) != *(p1 + i)) break; + for(p = p2, l = l2; l > 0;) { + if(l < l1) break; + for(i = 0; i < l1; i++) + if(*(p + i) != *(p1 + i)) break; - if (i >= l1) return -1; + if(i >= l1) return -1; i = codesize(*p); p += i; @@ -71,28 +69,24 @@ bubun_str(u_char *p1, int l1, u_char *p2, int l2) return 0; } - - -int -overlap_str(u_char *p1, int l1, u_char *p2, int l2) -{ - u_char *p; +int overlap_str(u_char* p1, int l1, u_char* p2, int l2) { + u_char* p; int l; int i; int j; u_char tmp[MAXKANJILENGTH * 2 + MAXATRNUMBER * 2]; - for (p = p1, l = l1 ; l > 0 ; ) { - if (l < l2) { - for (i = 0 ; (i < l) && (*(p + i) == *(p2 + i)) ; i++) ; + for(p = p1, l = l1; l > 0;) { + if(l < l2) { + for(i = 0; (i < l) && (*(p + i) == *(p2 + i)); i++); - if ((i >= l) && (l2 + l1 - l < sizeof(tmp))) { - for (i = 0 ; i < l1 ; i++) + if((i >= l) && (l2 + l1 - l < sizeof(tmp))) { + for(i = 0; i < l1; i++) tmp[i] = *(p1 + i); - for (j = l ; j < l2 ; i++, j++) + for(j = l; j < l2; i++, j++) tmp[i] = *(p2 + j); - if (check_hindo(tmp, i)) { + if(check_hindo(tmp, i)) { return -1; } } @@ -103,18 +97,18 @@ overlap_str(u_char *p1, int l1, u_char *p2, int l2) l -= i; } - for (p = p2, l = l2 ; l > 0 ; ) { - if (l < l1) { - for (i = 0 ; (i < l) && (*(p + i) == *(p1 + i)) ; i++) ; + for(p = p2, l = l2; l > 0;) { + if(l < l1) { + for(i = 0; (i < l) && (*(p + i) == *(p1 + i)); i++); - if ((i >= l) && (l1 + l2 - l < sizeof(tmp))) { + if((i >= l) && (l1 + l2 - l < sizeof(tmp))) { - for (i = 0 ; i < l2 ; i++) + for(i = 0; i < l2; i++) tmp[i] = *(p2 + i); - for (j = l ; j < l1 ; i++, j++) + for(j = l; j < l1; i++, j++) tmp[i] = *(p1 + j); - if (check_hindo(tmp, i)) { + if(check_hindo(tmp, i)) { return -1; } } @@ -128,72 +122,54 @@ overlap_str(u_char *p1, int l1, u_char *p2, int l2) return 0; } +int istrlen(int* s) { + int* p; + for(p = s; *p; p++); -int -istrlen(int *s) -{ - int *p; - - for (p = s ; *p ; p++) ; - - return(p - s); + return (p - s); } - - -int -istrcmp(int *s, int *d) -{ - for ( ; *s && (*s == *d) ; s++, d++) ; +int istrcmp(int* s, int* d) { + for(; *s && (*s == *d); s++, d++); return (*s - *d); } +int top_strcmp(int* src, int* dst) { + int i = 0; - -int -top_strcmp(int *src, int *dst) -{ - int i = 0; - - for (i = 0 ; *src && (*src == *dst) ; src++, dst++) + for(i = 0; *src && (*src == *dst); src++, dst++) i++; return (i > MAXYOMIASKNUMBER) ? MAXYOMIASKNUMBER : i; } - - -int -last_strcmp(int *src, int *dst) -{ - int slen, dlen; +int last_strcmp(int* src, int* dst) { + int slen, dlen; slen = istrlen(src); dlen = istrlen(dst); - if (dlen > MAXYOMIASKNUMBER) + if(dlen > MAXYOMIASKNUMBER) return 0; - if (istrcmp(src + (slen - dlen), dst)) + if(istrcmp(src + (slen - dlen), dst)) return 0; return dlen; } - - -int -string_cmp(u_char *p1, int l1, u_char *p2, int l2) -{ - while (l1 > 0 && l2 > 0) { - if (*p1 != *p2) return (*p1 - *p2); - p1++; l1--; - p2++; l2--; +int string_cmp(u_char* p1, int l1, u_char* p2, int l2) { + while(l1 > 0 && l2 > 0) { + if(*p1 != *p2) return (*p1 - *p2); + p1++; + l1--; + p2++; + l2--; } - if (l1 == l2) return 0; - if (l1 > l2) return 1; + if(l1 == l2) return 0; + if(l1 > l2) return 1; return -1; }