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

Bug#377355: kbd-chooser: Rewritten Patch



Package: kbd-chooser
Followup-For: Bug #377355

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


Sorry that I had not tested the previous patch. kbd-chooser source is
actually similar to kbd, not console-tools. Please replace it with
this one. I have verified that it compiles.

- -- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.16
Locale: LANG=th_TH.UTF-8, LC_CTYPE=th_TH.UTF-8 (charmap=UTF-8)

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (GNU/Linux)

iD8DBQFE2J0LqgzR7tCLR/4RApbdAJ9Dwzu9ZDaTWDGfdWVzNBoDpOlf3wCfUdDp
qqw/t1zoJ0KdLqHWGuGLDjo=
=cezO
-----END PGP SIGNATURE-----
Index: ksyms.c
===================================================================
--- ksyms.c	(revision 39638)
+++ ksyms.c	(working copy)
@@ -1150,6 +1150,10 @@
 #include "sami.syms.h"
 #endif
 
+#if defined(CHARSET_THAI)
+#include "thai.syms.h"
+#endif
+
 static sym iso_8859_15_syms[] = {
 	/* latin-1 with 8 changes */
 	{ 0x00a0, "" },
@@ -1651,6 +1655,9 @@
     { "cp-1250",	cp1250_syms, 128 },
     { "koi8-r",		koi8_syms, 128 },
     { "koi8-u",		koi8_syms, 128 },
+#ifdef CHARSET_THAI
+    { "tis-620",	tis_620_syms, 160 },
+#endif
 #ifdef CHARSET_ETHIOPIC
     { "iso-10646-18",	iso_10646_18_syms, 159 },	/* ethiopic */
 #endif
Index: config.h
===================================================================
--- config.h	(revision 39638)
+++ config.h	(working copy)
@@ -41,6 +41,7 @@
 #define CHARSET_ISO_8859_8
 #define CHARSET_ISO_8859_9
 
+#define CHARSET_THAI
 
 // Sanity checks
 
Index: thai.syms.h
===================================================================
--- thai.syms.h	(revision 0)
+++ thai.syms.h	(revision 0)
@@ -0,0 +1,102 @@
+/* TIS-620 (Thai) charmap
+ * Theppitak Karoonboonyanan <thep@linux.thai.net>
+ */
+
+static sym tis_620_syms[] = {
+    { 0x00a0, "nobreakspace" },
+    { 0x0e01, "thai_kokai" },
+    { 0x0e02, "thai_khokhai" },
+    { 0x0e03, "thai_khokhuat" },
+    { 0x0e04, "thai_khokhwai" },
+    { 0x0e05, "thai_khokhon" },
+    { 0x0e06, "thai_khorakhang" },
+    { 0x0e07, "thai_ngongu" },
+    { 0x0e08, "thai_chochan" },
+    { 0x0e09, "thai_choching" },
+    { 0x0e0a, "thai_chochang" },
+    { 0x0e0b, "thai_soso" },
+    { 0x0e0c, "thai_chochoe" },
+    { 0x0e0d, "thai_yoying" },
+    { 0x0e0e, "thai_dochada" },
+    { 0x0e0f, "thai_topatak" },
+    { 0x0e10, "thai_thothan" },
+    { 0x0e11, "thai_thonangmontho" },
+    { 0x0e12, "thai_thophuthao" },
+    { 0x0e13, "thai_nonen" },
+    { 0x0e14, "thai_dodek" },
+    { 0x0e15, "thai_totao" },
+    { 0x0e16, "thai_thothung" },
+    { 0x0e17, "thai_thothahan" },
+    { 0x0e18, "thai_thothong" },
+    { 0x0e19, "thai_nonu" },
+    { 0x0e1a, "thai_bobaimai" },
+    { 0x0e1b, "thai_popla" },
+    { 0x0e1c, "thai_phophung" },
+    { 0x0e1d, "thai_fofa" },
+    { 0x0e1e, "thai_phophan" },
+    { 0x0e1f, "thai_fofan" },
+    { 0x0e20, "thai_phosamphao" },
+    { 0x0e21, "thai_moma" },
+    { 0x0e22, "thai_yoyak" },
+    { 0x0e23, "thai_rorua" },
+    { 0x0e24, "thai_ru" },
+    { 0x0e25, "thai_loling" },
+    { 0x0e26, "thai_lu" },
+    { 0x0e27, "thai_wowaen" },
+    { 0x0e28, "thai_sosala" },
+    { 0x0e29, "thai_sorusi" },
+    { 0x0e2a, "thai_sosua" },
+    { 0x0e2b, "thai_hohip" },
+    { 0x0e2c, "thai_lochula" },
+    { 0x0e2d, "thai_oang" },
+    { 0x0e2e, "thai_honokhuk" },
+    { 0x0e2f, "thai_paiyannoi" },
+    { 0x0e30, "thai_saraa" },
+    { 0x0e31, "thai_maihanakat" },
+    { 0x0e32, "thai_saraaa" },
+    { 0x0e33, "thai_saraam" },
+    { 0x0e34, "thai_sarai" },
+    { 0x0e35, "thai_saraii" },
+    { 0x0e36, "thai_saraue" },
+    { 0x0e37, "thai_sarauee" },
+    { 0x0e38, "thai_sarau" },
+    { 0x0e39, "thai_sarauu" },
+    { 0x0e3a, "thai_phinthu" },
+    { 0x0e3b, "" },
+    { 0x0e3c, "" },
+    { 0x0e3d, "" },
+    { 0x0e3e, "" },
+    { 0x0e3f, "thai_baht" },
+    { 0x0e40, "thai_sarae" },
+    { 0x0e41, "thai_saraae" },
+    { 0x0e42, "thai_sarao" },
+    { 0x0e43, "thai_saraaimaimuan" },
+    { 0x0e44, "thai_saraaimaimalai" },
+    { 0x0e45, "thai_lakkhangyao" },
+    { 0x0e46, "thai_maiyamok" },
+    { 0x0e47, "thai_maitaikhu" },
+    { 0x0e48, "thai_maiek" },
+    { 0x0e49, "thai_maitho" },
+    { 0x0e4a, "thai_maitri" },
+    { 0x0e4b, "thai_maichattawa" },
+    { 0x0e4c, "thai_thanthakhat" },
+    { 0x0e4d, "thai_nikhahit" },
+    { 0x0e4e, "thai_yamakkan" },
+    { 0x0e4f, "thai_fongman" },
+    { 0x0e50, "thai_leksun" },
+    { 0x0e51, "thai_leknung" },
+    { 0x0e52, "thai_leksong" },
+    { 0x0e53, "thai_leksam" },
+    { 0x0e54, "thai_leksi" },
+    { 0x0e55, "thai_lekha" },
+    { 0x0e56, "thai_lekhok" },
+    { 0x0e57, "thai_lekchet" },
+    { 0x0e58, "thai_lekpaet" },
+    { 0x0e59, "thai_lekkao" },
+    { 0x0e5a, "thai_angkhankhu" },
+    { 0x0e5b, "thai_khomut" },
+    { 0x0e5c, "" },
+    { 0x0e5d, "" },
+    { 0x0e5e, "" },
+    { 0x0e5f, "" },
+};

Reply to: