Kentaro Shirakata
argra****@users*****
2005年 6月 11日 (土) 03:43:49 JST
Index: jnethack/japanese/jconj.c diff -u jnethack/japanese/jconj.c:1.9 jnethack/japanese/jconj.c:1.10 --- jnethack/japanese/jconj.c:1.9 Sun May 1 20:27:03 2005 +++ jnethack/japanese/jconj.c Sat Jun 11 03:43:49 2005 @@ -1,6 +1,6 @@ /* ** -** $Id: jconj.c,v 1.9 2005/05/01 11:27:03 argrath Exp $ +** $Id: jconj.c,v 1.10 2005/06/10 18:43:49 argrath Exp $ ** */ @@ -267,6 +267,15 @@ strcpy((char *)p + 2, sfx); break; } + else if(!strncmp(sfx, "よ", 2)) { + if(!IC){ + p[1] = hira_tab[tab->column + 4][1]; + } else { + memcpy(p, e2sj(hira_tab[tab->column + 4]), 2); + } + strcpy((char *)p + 2, sfx + 2); + break; + } break; case LOWER: case UPPER: @@ -288,7 +297,8 @@ if(!strncmp(sfx, "な", 2) || !strncmp(sfx, "ま", 2) || !strncmp(sfx, "た", 2) || - !strncmp(sfx, "て", 2)){ + !strncmp(sfx, "て", 2) || + !strncmp(sfx, "よ", 2)){ strcpy((char *)p, "し"); strcpy((char *)p + 2, sfx); } @@ -420,13 +430,14 @@ struct _jconj_tab *tab; for(tab = jconj_tab; tab->main != (void*)0; ++tab){ - printf("%s %s\n", tab->main, jconj(tab->main, "ない")); - printf("%s %s\n", tab->main, jconj(tab->main, "ます")); - printf("%s %s\n", tab->main, jconj(tab->main, "た")); - printf("%s %s\n", tab->main, jconj(tab->main, "れば")); - printf("%s %s\n", tab->main, jconj(tab->main, "とき")); - printf("%s %s\n", tab->main, jcan(tab->main)); - printf("%s %s\n", tab->main, jcannot(tab->main)); + printf("%-10s ない %s\n", tab->main, jconj(tab->main, "ない")); + printf("%-10s ます %s\n", tab->main, jconj(tab->main, "ます")); + printf("%-10s た %s\n", tab->main, jconj(tab->main, "た")); + printf("%-10s れば %s\n", tab->main, jconj(tab->main, "れば")); + printf("%-10s とき %s\n", tab->main, jconj(tab->main, "とき")); + printf("%-10s よう %s\n", tab->main, jconj(tab->main, "よう")); + printf("%-10s %s\n", tab->main, jcan(tab->main)); + printf("%-10s %s\n", tab->main, jcannot(tab->main)); } printf("%s\n", jconj("徹夜でnethackの翻訳をする", "ない")); printf("%s\n", jconj("徹夜でnethackの翻訳をする", "ます"));