[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: w3m-m17n package



>> 	*-tis620.2529-1であってます? どうやってだすんだろう。
>> 	iso2022的出し方さえ教えてくれればkterm改造しますよ。
>TIS620.2533-1 であれば、96文字セットで、ISO-2022 的 final character
>は「T」だったと思います。

	てもとのソースからのdiffですが、こんなもんで。
	これで動くならx11/ktermは適宜直しておきます。

itojun


Index: gset.c
===================================================================
RCS file: /cvsroot/apps/kterm/gset.c,v
retrieving revision 1.5
diff -u -r1.5 gset.c
--- gset.c	2000/04/09 16:15:40	1.5
+++ gset.c	2001/04/23 13:08:09
@@ -782,6 +782,9 @@
 	gsettofnum[GSET_KANA] = F_JISX0201_0;
 	gsetontheright[GSET_KANA] = True;
 
+	gsettofnum[GSET_TIS620] = F_TIS620_1;
+	gsetontheright[GSET_TIS620] = True;
+
 # ifdef KTERM_MBCS
 	gsettofnum[GSET_OLDKANJI] = F_JISC6226_0;
 	gsetontheright[GSET_OLDKANJI] = False;
@@ -841,6 +844,7 @@
 	screen->_box[F_ISO8859_8] = VTbox;
 	screen->_box[F_ISO8859_9] = VTbox;
 	screen->_box[F_JISX0201_0] = VTbox;
+	screen->_box[F_TIS620_1] = VTbox;
 #ifdef KTERM_MBCS
 	screen->_box[F_JISX0208_0] = VTwbox;
 	screen->_box[F_JISX0208_1990_0] = VTwbox;
@@ -875,6 +879,7 @@
 		{"iso8859-8"},				/* F_ISO8859_8 */
 		{"iso8859-9"},				/* F_ISO8859_9 */
 		{"jisx0201.1976-0"},			/* F_JISX0201_0 */
+		{"tis620.2529-1"},			/* F_TIS620_1 */
 #ifdef KTERM_MBCS
 		{"jisx0208.1983-0", "jisx0208.1990-0"},	/* F_JISX0208_0 */
 		{"jisx0208.1990-0", "jisx0208.1983-0"},	/* F_JISX0208_1990_0 */
Index: gset.h
===================================================================
RCS file: /cvsroot/apps/kterm/gset.h,v
retrieving revision 1.5
diff -u -r1.5 gset.h
--- gset.h	2000/04/09 16:15:40	1.5
+++ gset.h	2001/04/23 13:08:10
@@ -78,6 +78,7 @@
 #define GSET_GREEK	(CS96|GSET2(4, 6)) /* ISO 8859/7-1987 */
 #define GSET_HEBREW	(CS96|GSET2(4, 8)) /* ISO 8859/8-1988 */
 #define GSET_LATIN5R	(CS96|GSET2(4,13)) /* ISO 8859/9-1989 */
+#define GSET_TIS620	(CS96|GSET2(5, 4)) /* TIS620 */
 
 #define ISNATS(gs)	((gs) == GSET_NATS_FI_SE || (gs) == GSET_NATS_DK_NO)
 
@@ -108,25 +109,26 @@
 #define F_ISO8859_8	7
 #define F_ISO8859_9	8
 #define F_JISX0201_0	9
+#define F_TIS620_1	10
 #ifdef KTERM_MBCS
-#  define F_JISX0208_0		10
-#  define F_JISX0208_1990_0	11
-#  define F_JISX0212_1990_0	12
-#  define F_GB2312_0		13
-#  define F_KSC5601_0		14
-#  define F_JISC6226_0		15
-#  define F_JISX0213_2000_1	16
-#  define F_JISX0213_2000_2	17
-#  define F_CNS11643_1		18
-#  define F_CNS11643_2		19
-#  define F_CNS11643_3		20
-#  define F_CNS11643_4		21
-#  define F_CNS11643_5		22
-#  define F_CNS11643_6		23
-#  define F_CNS11643_7		24
-#  define FCNT		25
+#  define F_JISX0208_0		11
+#  define F_JISX0208_1990_0	12
+#  define F_JISX0212_1990_0	13
+#  define F_GB2312_0		14
+#  define F_KSC5601_0		15
+#  define F_JISC6226_0		16
+#  define F_JISX0213_2000_1	17
+#  define F_JISX0213_2000_2	18
+#  define F_CNS11643_1		19
+#  define F_CNS11643_2		20
+#  define F_CNS11643_3		21
+#  define F_CNS11643_4		22
+#  define F_CNS11643_5		23
+#  define F_CNS11643_6		24
+#  define F_CNS11643_7		25
+#  define FCNT		26
 #else
-#  define FCNT		10
+#  define FCNT		11
 #endif
 
 extern int gsettofnum[];