about summary refs log tree commit diff stats
path: root/src/chrtrans
diff options
context:
space:
mode:
authorThomas E. Dickey <dickey@invisible-island.net>1998-11-18 19:45:34 -0500
committerThomas E. Dickey <dickey@invisible-island.net>1998-11-18 19:45:34 -0500
commit6d7ee0488b037f002a9fec0d060cc9842d5f8acd (patch)
tree947d8962fbdfe63f615284c82cdf0cb2251861e5 /src/chrtrans
parent2a2566112749f0e3f932004c1a9d8345a84b1fd0 (diff)
downloadlynx-snapshots-6d7ee0488b037f002a9fec0d060cc9842d5f8acd.tar.gz
snapshot of project "lynx", label v2-8-2dev_4
Diffstat (limited to 'src/chrtrans')
-rw-r--r--src/chrtrans/cp1250_uni.tbl3
-rw-r--r--src/chrtrans/cp1251_uni.tbl3
-rw-r--r--src/chrtrans/cp1252_uni.tbl3
-rw-r--r--src/chrtrans/cp1253_uni.tbl3
-rw-r--r--src/chrtrans/cp1255_uni.tbl3
-rw-r--r--src/chrtrans/cp1256_uni.tbl3
-rw-r--r--src/chrtrans/cp1257_uni.tbl3
-rw-r--r--src/chrtrans/cp437_uni.tbl3
-rw-r--r--src/chrtrans/cp737_uni.tbl3
-rw-r--r--src/chrtrans/cp775_uni.tbl3
-rw-r--r--src/chrtrans/cp850_uni.tbl3
-rw-r--r--src/chrtrans/cp852_uni.tbl3
-rw-r--r--src/chrtrans/cp862_uni.tbl3
-rw-r--r--src/chrtrans/cp864_uni.tbl3
-rw-r--r--src/chrtrans/cp866_uni.tbl4
-rw-r--r--src/chrtrans/cp869_uni.tbl3
-rw-r--r--src/chrtrans/iso01_uni.tbl3
-rw-r--r--src/chrtrans/iso02_uni.tbl3
-rw-r--r--src/chrtrans/iso03_uni.tbl3
-rw-r--r--src/chrtrans/iso04_uni.tbl3
-rw-r--r--src/chrtrans/iso05_uni.tbl3
-rw-r--r--src/chrtrans/iso06_uni.tbl3
-rw-r--r--src/chrtrans/iso07_uni.tbl3
-rw-r--r--src/chrtrans/iso08_uni.tbl3
-rw-r--r--src/chrtrans/iso09_uni.tbl3
-rw-r--r--src/chrtrans/jcuken_kb.h21
-rw-r--r--src/chrtrans/koi8r_uni.tbl3
-rw-r--r--src/chrtrans/makefile.in4
-rw-r--r--src/chrtrans/makeuctb.c32
-rw-r--r--src/chrtrans/rot13_kb.h21
-rw-r--r--src/chrtrans/yawerty_kb.h21
31 files changed, 170 insertions, 8 deletions
diff --git a/src/chrtrans/cp1250_uni.tbl b/src/chrtrans/cp1250_uni.tbl
index 49ba9008..7b3820d0 100644
--- a/src/chrtrans/cp1250_uni.tbl
+++ b/src/chrtrans/cp1250_uni.tbl
@@ -4,6 +4,9 @@ Mwindows-1250
 #Name as a Display Charset (used on Options screen)
 OEastern European (windows-1250)
 
+#Codepage number
+C1250
+
 #
 #    Name:     cp1250 to Unicode table
 #    Unicode version: 2.0
diff --git a/src/chrtrans/cp1251_uni.tbl b/src/chrtrans/cp1251_uni.tbl
index 541f8640..21cfb598 100644
--- a/src/chrtrans/cp1251_uni.tbl
+++ b/src/chrtrans/cp1251_uni.tbl
@@ -4,6 +4,9 @@ Mwindows-1251
 #Name as a Display Charset (used on Options screen)
 OCyrillic (windows-1251)
 
+#Codepage number
+C1251
+
 #
 #    Name:     cp1251 to Unicode table
 #    Unicode version: 2.0
diff --git a/src/chrtrans/cp1252_uni.tbl b/src/chrtrans/cp1252_uni.tbl
index 09ee9b6a..0dd82ef8 100644
--- a/src/chrtrans/cp1252_uni.tbl
+++ b/src/chrtrans/cp1252_uni.tbl
@@ -8,6 +8,9 @@ Mwindows-1252
 #Name as a Display Charset (used on Options screen)
 OWestern (windows-1252)
 
+#Codepage number 
+C1252 
+
 #
 #    Name:     cp1252 to Unicode table
 #    Unicode version: 2.0
diff --git a/src/chrtrans/cp1253_uni.tbl b/src/chrtrans/cp1253_uni.tbl
index b53e44a2..3340d719 100644
--- a/src/chrtrans/cp1253_uni.tbl
+++ b/src/chrtrans/cp1253_uni.tbl
@@ -4,6 +4,9 @@ Mwindows-1253
 #Name as a Display Charset (used on Options screen)
 OGreek (windows-1253)
 
+#Codepage number
+C1253
+
 #
 #    Name:     cp1253 to Unicode table
 #    Unicode version: 2.0
diff --git a/src/chrtrans/cp1255_uni.tbl b/src/chrtrans/cp1255_uni.tbl
index 6c4ca7d0..1c38f40a 100644
--- a/src/chrtrans/cp1255_uni.tbl
+++ b/src/chrtrans/cp1255_uni.tbl
@@ -4,6 +4,9 @@ Mwindows-1255
 #Name as a Display Charset (used on Options screen).
 OHebrew (windows-1255)
 
+#Codepage number
+C1255
+
 #
 #    Name:     cp1255 to Unicode table
 #    Unicode version: 2.0
diff --git a/src/chrtrans/cp1256_uni.tbl b/src/chrtrans/cp1256_uni.tbl
index 23af4614..b38c412d 100644
--- a/src/chrtrans/cp1256_uni.tbl
+++ b/src/chrtrans/cp1256_uni.tbl
@@ -4,6 +4,9 @@ Mwindows-1256
 #Name as a Display Charset (used on Options screen).
 OArabic (windows-1256)
 
+#Codepage number
+C1256
+
 #
 #    Name:     cp1256 to Unicode table
 #    Unicode version: 2.0
diff --git a/src/chrtrans/cp1257_uni.tbl b/src/chrtrans/cp1257_uni.tbl
index 4c1e70e6..d42d6731 100644
--- a/src/chrtrans/cp1257_uni.tbl
+++ b/src/chrtrans/cp1257_uni.tbl
@@ -4,6 +4,9 @@ Mwindows-1257
 #Name as a Display Charset (used on Options screen)
 OBaltic Rim (windows-1257)
 
+#Codepage number
+C1257
+
 #
 #    Name:     cp1257 to Unicode table
 #    Unicode version: 2.0
diff --git a/src/chrtrans/cp437_uni.tbl b/src/chrtrans/cp437_uni.tbl
index b84f503f..aa02cee3 100644
--- a/src/chrtrans/cp437_uni.tbl
+++ b/src/chrtrans/cp437_uni.tbl
@@ -8,6 +8,9 @@ Mcp437
 #Name as a Display Charset (used on Options screen)
 OIBM PC US codepage (cp437)
 
+#Codepage number
+C437
+
 #
 #    Name:     cp437_DOSLatinUS to Unicode table
 #    Unicode version: 2.0
diff --git a/src/chrtrans/cp737_uni.tbl b/src/chrtrans/cp737_uni.tbl
index 81442ccc..80e33531 100644
--- a/src/chrtrans/cp737_uni.tbl
+++ b/src/chrtrans/cp737_uni.tbl
@@ -4,6 +4,9 @@ Mcp737
 #Name as a Display Charset (used on Options screen)
 OGreek (cp737)
 
+#Codepage number
+C737
+
 #
 #    Name:     cp737_DOSGreek to Unicode table
 #    Unicode version: 2.0
diff --git a/src/chrtrans/cp775_uni.tbl b/src/chrtrans/cp775_uni.tbl
index 4d63208b..5b0e0149 100644
--- a/src/chrtrans/cp775_uni.tbl
+++ b/src/chrtrans/cp775_uni.tbl
@@ -4,6 +4,9 @@ Mcp775
 #Name as a Display Charset (used on Options screen)
 OBaltic Rim (cp775)
 
+#Codepage number
+C775
+
 #    Name:     cp775_DOSBaltRim to Unicode table
 #    Unicode version: 2.0
 #    Table version: 2.00
diff --git a/src/chrtrans/cp850_uni.tbl b/src/chrtrans/cp850_uni.tbl
index af4dbff5..bc44cde8 100644
--- a/src/chrtrans/cp850_uni.tbl
+++ b/src/chrtrans/cp850_uni.tbl
@@ -10,6 +10,9 @@ Mcp850
 #Name as a Display Charset (used on Options screen)
 OWestern (cp850)
 
+#Codepage number
+C850
+
 #
 #    Name:     cp850_DOSLatin1 to Unicode table
 #    Unicode version: 2.0
diff --git a/src/chrtrans/cp852_uni.tbl b/src/chrtrans/cp852_uni.tbl
index 946b4996..fec2ecf4 100644
--- a/src/chrtrans/cp852_uni.tbl
+++ b/src/chrtrans/cp852_uni.tbl
@@ -4,6 +4,9 @@ Mcp852
 #Name as a Display Charset (used on Options screen)
 OEastern European (cp852)
 
+#Codepage number
+C852
+
 #
 #    Name:     cp852_DOSLatin2 to Unicode table
 #    Unicode version: 2.0
diff --git a/src/chrtrans/cp862_uni.tbl b/src/chrtrans/cp862_uni.tbl
index 60d9692e..3dfa09e5 100644
--- a/src/chrtrans/cp862_uni.tbl
+++ b/src/chrtrans/cp862_uni.tbl
@@ -4,6 +4,9 @@ Mcp862
 #Name as a Display Charset (used on Options screen).
 OHebrew (cp862)
 
+#Codepage number
+C862
+
 #    Name:     cp862_DOSHebrew to Unicode table
 #    Unicode version: 2.0
 #    Table version: 2.00
diff --git a/src/chrtrans/cp864_uni.tbl b/src/chrtrans/cp864_uni.tbl
index 8411f8b7..e5ec56d3 100644
--- a/src/chrtrans/cp864_uni.tbl
+++ b/src/chrtrans/cp864_uni.tbl
@@ -4,6 +4,9 @@ Mcp864
 #Name as a Display Charset (used on Options screen).
 OArabic (cp864)
 
+#Codepage number
+C864
+
 #    Name:     cp864_DOSArabic to Unicode table
 #    Unicode version: 2.0
 #    Table version: 2.00
diff --git a/src/chrtrans/cp866_uni.tbl b/src/chrtrans/cp866_uni.tbl
index 55ce0718..87ebbfcc 100644
--- a/src/chrtrans/cp866_uni.tbl
+++ b/src/chrtrans/cp866_uni.tbl
@@ -4,6 +4,10 @@ Mcp866
 
 #Name as a Display Charset (used on Options screen)
 OCyrillic (cp866)
+ 
+#Codepage number
+C866
+
 #
 #    Name:     cp866_DOSCyrillicRussian to Unicode table
 #    Unicode version: 2.0
diff --git a/src/chrtrans/cp869_uni.tbl b/src/chrtrans/cp869_uni.tbl
index 1f418728..2e75ae39 100644
--- a/src/chrtrans/cp869_uni.tbl
+++ b/src/chrtrans/cp869_uni.tbl
@@ -4,6 +4,9 @@ Mcp869
 #Name as a Display Charset (used on Options screen)
 OGreek2 (cp869)
 
+#Codepage number
+C869
+
 #    Name:     cp869_DOSGreek2 to Unicode table
 #    Unicode version: 2.0
 #    Table version: 2.00
diff --git a/src/chrtrans/iso01_uni.tbl b/src/chrtrans/iso01_uni.tbl
index 5b697e02..a00be71d 100644
--- a/src/chrtrans/iso01_uni.tbl
+++ b/src/chrtrans/iso01_uni.tbl
@@ -10,6 +10,9 @@ Miso-8859-1
 #Name as a Display Charset (used on Options screen)
 OWestern (ISO-8859-1)
 
+#Codepage number
+C819
+
 #
 #	Name:             ISO 8859-1 (1987) to Unicode
 #	Unicode version:  1.1
diff --git a/src/chrtrans/iso02_uni.tbl b/src/chrtrans/iso02_uni.tbl
index 7fa0df92..383b4674 100644
--- a/src/chrtrans/iso02_uni.tbl
+++ b/src/chrtrans/iso02_uni.tbl
@@ -4,6 +4,9 @@ Miso-8859-2
 #Name as a Display Charset (used on Options screen)
 OEastern European (ISO-8859-2)
 
+#Codepage number
+C912
+
 #
 #	Name:             ISO 8859-2 (1987) to Unicode
 #	Unicode version:  1.1
diff --git a/src/chrtrans/iso03_uni.tbl b/src/chrtrans/iso03_uni.tbl
index a3c1f07a..de91afa3 100644
--- a/src/chrtrans/iso03_uni.tbl
+++ b/src/chrtrans/iso03_uni.tbl
@@ -4,6 +4,9 @@ Miso-8859-3
 #Name as a Display Charset (used on Options screen)
 OLatin 3 (ISO-8859-3)
  
+#Codepage number
+C913
+
 #
 #	Name:             ISO 8859-3 (1988) to Unicode
 #	Unicode version:  1.1
diff --git a/src/chrtrans/iso04_uni.tbl b/src/chrtrans/iso04_uni.tbl
index 29be0be5..11383922 100644
--- a/src/chrtrans/iso04_uni.tbl
+++ b/src/chrtrans/iso04_uni.tbl
@@ -4,6 +4,9 @@ Miso-8859-4
 #Name as a Display Charset (used on Options screen)
 OLatin 4 (ISO-8859-4)
  
+#Codepage number
+C914
+
 #
 #	Name:             ISO 8859-4 (1988) to Unicode
 #	Unicode version:  1.1
diff --git a/src/chrtrans/iso05_uni.tbl b/src/chrtrans/iso05_uni.tbl
index a715b64f..a7ed8555 100644
--- a/src/chrtrans/iso05_uni.tbl
+++ b/src/chrtrans/iso05_uni.tbl
@@ -4,6 +4,9 @@ Miso-8859-5
 #Name as a Display Charset (used on Options screen)
 OCyrillic (ISO-8859-5)
 
+#Codepage number
+C915
+
 #
 #	Name:             ISO 8859-5 (1988) to Unicode
 #	Unicode version:  1.1
diff --git a/src/chrtrans/iso06_uni.tbl b/src/chrtrans/iso06_uni.tbl
index 549b592d..0e390018 100644
--- a/src/chrtrans/iso06_uni.tbl
+++ b/src/chrtrans/iso06_uni.tbl
@@ -4,6 +4,9 @@ Miso-8859-6
 #Name as a Display Charset (used on Options screen).
 OArabic (ISO-8859-6)
 
+#Codepage number
+C1089
+
 #
 #	Name:             ISO 8859-6 (1987) to Unicode
 #	Unicode version:  1.1
diff --git a/src/chrtrans/iso07_uni.tbl b/src/chrtrans/iso07_uni.tbl
index dffca758..f629e6bc 100644
--- a/src/chrtrans/iso07_uni.tbl
+++ b/src/chrtrans/iso07_uni.tbl
@@ -4,6 +4,9 @@ Miso-8859-7
 #Name as a Display Charset (used on Options screen)
 OGreek (ISO-8859-7)
  
+#Codepage number
+C813
+
 #
 #	Name:             ISO 8859-7 (1987) to Unicode
 #	Unicode version:  1.1
diff --git a/src/chrtrans/iso08_uni.tbl b/src/chrtrans/iso08_uni.tbl
index 050be29d..d8c9d848 100644
--- a/src/chrtrans/iso08_uni.tbl
+++ b/src/chrtrans/iso08_uni.tbl
@@ -4,6 +4,9 @@ Miso-8859-8
 #Name as a Display Charset (used on Options screen).
 OHebrew (ISO-8859-8)
 
+#Codepage number
+C916
+
 #
 #	Name:             ISO 8859-8 (1988) to Unicode
 #	Unicode version:  1.1
diff --git a/src/chrtrans/iso09_uni.tbl b/src/chrtrans/iso09_uni.tbl
index 5abe799f..f0e1f608 100644
--- a/src/chrtrans/iso09_uni.tbl
+++ b/src/chrtrans/iso09_uni.tbl
@@ -4,6 +4,9 @@ Miso-8859-9
 #Name as a Display Charset (used on Options screen)
 OTurkish (ISO-8859-9)
  
+#Codepage number
+C920
+
 #
 #	Name:             ISO 8859-9 (1989) to Unicode
 #	Unicode version:  1.1
diff --git a/src/chrtrans/jcuken_kb.h b/src/chrtrans/jcuken_kb.h
new file mode 100644
index 00000000..8fbe458b
--- /dev/null
+++ b/src/chrtrans/jcuken_kb.h
@@ -0,0 +1,21 @@
+static unsigned short kb_layout_jcuken[128] = { 
+0x0000, 0x0001, 0x0002, 0x0003, 0x0004, 0x0005, 0x0006, 0x0007, /* 00..07 */ 
+0x0008, 0x0009, 0x000A, 0x000B, 0x000C, 0x000D, 0x000E, 0x000F, /* 08..0F */ 
+0x0010, 0x0011, 0x0012, 0x0013, 0x0014, 0x0015, 0x0016, 0x0017, /* 10..17 */ 
+0x0018, 0x0019, 0x001A, 0x001B, 0x001C, 0x001D, 0x001E, 0x001F, /* 18..1F */ 
+ 
+0x0020, 0x0021, 0x042D, 0x002F, 0x0024, 0x003A, 0x002E, 0x044D, /* 20..27 */ 
+0x003F, 0x0025, 0x003B, 0x002B, 0x0431, 0x002D, 0x044E, 0x0451, /* 28..2F */ 
+0x0030, 0x0031, 0x0032, 0x0033, 0x0034, 0x0035, 0x0036, 0x0037, /* 30..37 */ 
+0x0038, 0x0039, 0x0416, 0x0436, 0x0411, 0x003D, 0x042E, 0x0401, /* 38..3F */ 
+ 
+0x0022, 0x0424, 0x0418, 0x0421, 0x0412, 0x0423, 0x0410, 0x041F, /* 40..47 */ 
+0x0420, 0x0428, 0x041E, 0x041B, 0x0414, 0x042C, 0x0422, 0x0429, /* 48..4F */ 
+0x0417, 0x0419, 0x041A, 0x042B, 0x0415, 0x0413, 0x041C, 0x0426, /* 50..57 */ 
+0x0427, 0x041D, 0x042F, 0x0445, 0x005C, 0x044A, 0x002C, 0x005F, /* 58..5F */ 
+ 
+0x0029, 0x0444, 0x0438, 0x0441, 0x0432, 0x0443, 0x0430, 0x043F, /* 60..67 */ 
+0x0440, 0x0448, 0x043E, 0x043B, 0x0434, 0x044C, 0x0442, 0x0449, /* 68..6F */ 
+0x0437, 0x0439, 0x043A, 0x044B, 0x0435, 0x0433, 0x043C, 0x0446, /* 70..77 */ 
+0x0447, 0x043D, 0x044F, 0x0425, 0x007C, 0x042A, 0x0028, 0x007F  /* 78..7F */ 
+}; 
diff --git a/src/chrtrans/koi8r_uni.tbl b/src/chrtrans/koi8r_uni.tbl
index 69eef3c2..dfb61be0 100644
--- a/src/chrtrans/koi8r_uni.tbl
+++ b/src/chrtrans/koi8r_uni.tbl
@@ -4,6 +4,9 @@ OCyrillic (KOI8-R)
 # MIME name for this charset
 Mkoi8-r
 
+#Codepage number
+C878
+
 0x20-0x7f       idem
 # Based on a table received from "Glenn E. Thobe" <thobe@lafn.org>
 # (verified against RFC1489).
diff --git a/src/chrtrans/makefile.in b/src/chrtrans/makefile.in
index 31dd3bc0..8173b31e 100644
--- a/src/chrtrans/makefile.in
+++ b/src/chrtrans/makefile.in
@@ -19,7 +19,7 @@ top_builddir	= ../..
 LIBS		= @LIBS@ $(SITE_LIBS)
 LDFLAGS		= @LDFLAGS@
 
-INTLLIB		= @INTLDIR_MAKE@@INTLLIBS@ 
+INTLLIB		= @INTLDIR_MAKE@@INTLLIBS@
 
 WWWINC		= WWW/Library/Implementation
 SITE_DEFS	= # FIXME: set in parent makefile
@@ -102,7 +102,7 @@ makeuctb.o: $(srcdir)/UCkd.h $(srcdir)/makeuctb.c
 	@ECHO_CC@$(CPP) -C $(CPP_OPTS) $*.c >$@
 
 .tbl.h:
-	./makeuctb $(srcdir)/$*.tbl > $@
+	./makeuctb$x $(srcdir)/$*.tbl > $@
 
 # table files listed here once again to get the make dependencies
 # right, in case makeuctb was recompiled.
diff --git a/src/chrtrans/makeuctb.c b/src/chrtrans/makeuctb.c
index cc721723..b9d2c520 100644
--- a/src/chrtrans/makeuctb.c
+++ b/src/chrtrans/makeuctb.c
@@ -91,7 +91,7 @@ PRIVATE int getunicode ARGS1(
 
     while (*p == ' ' || *p == '\t')
 	p++;
-	
+
     if (*p == '-') {
 	return -2;
     } else if (*p != 'U' || p[1] != '+' ||
@@ -115,6 +115,8 @@ char *tblname;
 
 PRIVATE int RawOrEnc = 0;
 PRIVATE int Raw_found = 0;		/* whether explicit R directive found */
+PRIVATE int CodePage = 0;
+PRIVATE int CodePage_found = 0;		/* whether explicit C directive found */
 
 PRIVATE void addpair_str ARGS2(
 	char *,		str,
@@ -380,6 +382,24 @@ PUBLIC int main ARGS2(
 		}
 		this_LYNXcharset[i] = '\0';
 		continue;
+
+	    /*
+	     *  Codepage number.  Three or four digit code.
+	     */
+	    case 'C':
+		if (p[1] == 'o' || p[1] == 'O') {
+		    buffer[sizeof(buffer) - 1] = '\0';
+		    if (!strncasecomp(p, "CodePage", 8)) {
+			p += 8;
+		    }
+		}
+		p++;
+		while (*p == ' ' || *p == '\t') {
+	  	    p++;
+		}
+		CodePage = strtol(p,0,10);
+		CodePage_found = 1;
+		continue;
 	}
 
 	if (*p == 'U') {
@@ -456,7 +476,7 @@ PUBLIC int main ARGS2(
 		for (ch = *(++p); (ch = *p) != '\0'; p++, p1++) {
 		    if ((unsigned char)ch < 32 || ch == '\\' || ch == '\"' ||
 			(unsigned char)ch >= 127) {
-			sprintf(p1, "\\%.3o", (unsigned char)ch); 
+			sprintf(p1, "\\%.3o", (unsigned char)ch);
 #ifdef NOTDEFINED
 			fprintf(stderr, "%s\n", tbuf);
 #endif /* NOTDEFINED */
@@ -608,7 +628,7 @@ PUBLIC int main ARGS2(
      *  Okay, we hit EOF, now output tables.
      */
     fclose(ctbl);
-  
+
 
     /*
      *  Compute total size of Unicode list.
@@ -731,7 +751,7 @@ static struct unipair_str repl_map%s[%d] = \n\
 	printf("\n\
 /* static struct unipair_str repl_map%s[]; */\n", id_append);
     }
-    
+
     for (i = 0; i < themap_str.entry_ct; i++) {
 	printf("{0x%x,\"%s\"}",
 	       themap_str.entries[i].unicode,
@@ -761,9 +781,9 @@ static struct unimapdesc_str dfont_replacedesc%s = {0,NULL,",id_append);
     printf("#define UC_CHARSET_SETUP%s UC_Charset_Setup(\
 \"%s\",\\\n\"%s\",\\\n\
 dfont_unicount%s,dfont_unitable%s,%d,\\\n\
-dfont_replacedesc%s,%d,%d)\n",
+dfont_replacedesc%s,%d,%d,%d)\n",
 id_append, this_MIMEcharset, this_LYNXcharset,
-id_append, id_append, nuni, id_append, lowest_eight, RawOrEnc);
+id_append, id_append, nuni, id_append, lowest_eight, RawOrEnc, CodePage);
 
     done(EX_OK);
 }
diff --git a/src/chrtrans/rot13_kb.h b/src/chrtrans/rot13_kb.h
new file mode 100644
index 00000000..8bc1a9dc
--- /dev/null
+++ b/src/chrtrans/rot13_kb.h
@@ -0,0 +1,21 @@
+static unsigned short kb_layout_rot13[128] = { 
+0x0000, 0x0001, 0x0002, 0x0003, 0x0004, 0x0005, 0x0006, 0x0007, /* 00..07 */ 
+0x0008, 0x0009, 0x000A, 0x000B, 0x000C, 0x000D, 0x000E, 0x000F, /* 08..0F */ 
+0x0010, 0x0011, 0x0012, 0x0013, 0x0014, 0x0015, 0x0016, 0x0017, /* 10..17 */ 
+0x0018, 0x0019, 0x001A, 0x001B, 0x001C, 0x001D, 0x001E, 0x001F, /* 18..1F */ 
+ 
+0x0020, 0x0021, 0x0022, 0x0023, 0x0024, 0x0025, 0x0026, 0x0027, /* 20..27 */ 
+0x0028, 0x0029, 0x002A, 0x002B, 0x002C, 0x002D, 0x002E, 0x002F, /* 28..2F */ 
+0x0030, 0x0031, 0x0032, 0x0033, 0x0034, 0x0035, 0x0036, 0x0037, /* 30..37 */ 
+0x0038, 0x0039, 0x003A, 0x003B, 0x003C, 0x003D, 0x003E, 0x003F, /* 38..3F */ 
+ 
+0x0000, 0x004e, 0x004f, 0x0050, 0x0051, 0x0052, 0x0053, 0x0054, /* 40..48 */  
+0x0055, 0x0056, 0x0057, 0x0058, 0x0059, 0x005a, 0x0041, 0x0042, /* 40..4F */  
+0x0043, 0x0044, 0x0045, 0x0046, 0x0047, 0x0048, 0x0049, 0x004a, /* 50..58 */  
+0x004b, 0x004c, 0x004d, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, /* 50..5F */  
+ 
+0x0000, 0x006e, 0x006f, 0x0070, 0x0071, 0x0072, 0x0073, 0x0074, /* 60..68 */  
+0x0075, 0x0076, 0x0077, 0x0078, 0x0079, 0x007a, 0x0061, 0x0062, /* 60..6F */  
+0x0063, 0x0064, 0x0065, 0x0066, 0x0067, 0x0068, 0x0069, 0x006a, /* 70..78 */  
+0x006b, 0x006c, 0x006d, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000  /* 70..7F */ 
+}; 
diff --git a/src/chrtrans/yawerty_kb.h b/src/chrtrans/yawerty_kb.h
new file mode 100644
index 00000000..2592b822
--- /dev/null
+++ b/src/chrtrans/yawerty_kb.h
@@ -0,0 +1,21 @@
+static unsigned short kb_layout_yawerty[128] = { 
+0x0000, 0x0001, 0x0002, 0x0003, 0x0004, 0x0005, 0x0006, 0x0007, /* 00..07 */ 
+0x0008, 0x0009, 0x000A, 0x000B, 0x000C, 0x000D, 0x000E, 0x000F, /* 08..0F */ 
+0x0010, 0x0011, 0x0012, 0x0013, 0x0014, 0x0015, 0x0016, 0x0017, /* 10..17 */ 
+0x0018, 0x0019, 0x001A, 0x001B, 0x001C, 0x001D, 0x001E, 0x001F, /* 18..1F */ 
+ 
+0x0020, 0x0021, 0x0022, 0x0023, 0x0024, 0x0025, 0x0026, 0x0027, /* 20..27 */ 
+0x0028, 0x0029, 0x002A, 0x002B, 0x002C, 0x002D, 0x002E, 0x002F, /* 28..2F */ 
+0x0030, 0x0031, 0x0032, 0x0033, 0x0034, 0x0035, 0x0036, 0x0037, /* 30..37 */ 
+0x0038, 0x0039, 0x003A, 0x003B, 0x003C, 0x003D, 0x003E, 0x003F, /* 38..3F */ 
+ 
+0x042e, 0x0410, 0x0412, 0x0426, 0x0414, 0x0415, 0x0424, 0x0413, /* 40..47 */ 
+0x0425, 0x0418, 0x0419, 0x041a, 0x041b, 0x041c, 0x041d, 0x041e, /* 48..4F */ 
+0x041f, 0x042f, 0x0420, 0x0421, 0x0422, 0x0423, 0x0416, 0x0412, /* 50..57 */ 
+0x042c, 0x042b, 0x0417, 0x0448, 0x044d, 0x0449, 0x0447, 0x044a, /* 58..5F */ 
+ 
+0x044e, 0x0430, 0x0432, 0x0446, 0x0434, 0x0435, 0x0444, 0x0433, /* 60..67 */ 
+0x0445, 0x0438, 0x0439, 0x043a, 0x043b, 0x043c, 0x043d, 0x043e, /* 68..6F */ 
+0x043f, 0x044f, 0x0440, 0x0441, 0x0442, 0x0443, 0x0436, 0x0432, /* 70..77 */ 
+0x044c, 0x044b, 0x0437, 0x0428, 0x042d, 0x0429, 0x0427, 0x0000  /* 78..7F */ 
+};