ckcuni.c
资源名称:cku197.tar.Z [点击查看]
上传用户:dufan58
上传日期:2007-01-05
资源大小:3407k
文件大小:695k
源码类别:
通讯/手机编程
开发平台:
Windows_Unix
- #endif /* CK_ANSIC */
- {
- if (c & 0xff00)
- return(-1);
- else if (c == (USHORT) 0x00a3) /* Pound sign */
- return(0x2b);
- else
- return(tx_usascii(c));
- }
- int /* Canadian French */
- #ifdef CK_ANSIC
- tx_fr_canadian(USHORT c)
- #else
- tx_fr_canadian(c) USHORT c;
- #endif /* CK_ANSIC */
- {
- if (c & 0xff00) /* Out of range */
- return(-1);
- switch(c) {
- case 0xe0: return(0x40); /* a grave */
- case 0xe2: return(0x5b); /* a circumflex */
- case 0xe7: return(0x5c); /* c cedilla */
- case 0xe8: return(0x7d); /* e grave */
- case 0xe9: return(0x7b); /* e acute */
- case 0xea: return(0x5d); /* e circumflex */
- case 0xee: return(0x5e); /* i circumflex */
- case 0xf4: return(0x60); /* o circumflex */
- case 0xf9: return(0x7c); /* u grave */
- case 0xfb: return(0x6e); /* u circumflex */
- default: return(tx_usascii(c));
- }
- }
- int /* Danish/Norwegian */
- #ifdef CK_ANSIC
- tx_danish(USHORT c)
- #else
- tx_danish(c) USHORT c;
- #endif /* CK_ANSIC */
- {
- if (c & 0xff00) /* Out of range */
- return(-1);
- switch(c) {
- case 0xc6: return(0x5b); /* AE */
- case 0xd8: return(0x5c); /* O stroke */
- case 0xe6: return(0x7b); /* ae */
- case 0xf8: return(0x7c); /* o stroke */
- case 0xe5: return(0x7d); /* a ring */
- case 0xaf: return(0x7e); /* macron */
- default: return(tx_usascii(c));
- }
- }
- int /* Dutch */
- #ifdef CK_ANSIC
- tx_dutch(USHORT c)
- #else
- tx_dutch(c) USHORT c;
- #endif /* CK_ANSIC */
- {
- if (c & 0xfe00) /* Out of range */
- return(-1);
- switch(c) {
- case 0x007c: return(0x5d); /* vertical bar */
- case 0x00a3: return(0x23); /* pound sign */
- case 0x00ab: return(0x7b); /* diaeresis */
- case 0x00b4: return(0x7e); /* acute accent */
- case 0x00bc: return(0x7d); /* 1/4 */
- case 0x00be: return(0x40); /* 3/4 */
- case 0x00bd: return(0x5c); /* 1/2 */
- case 0x00ff: return(0x5b); /* y diaeresis (ij) */
- case 0x0192: return(0x7c); /* Florin */
- default: return((c & 0x80) ? -1 : (CHAR)(c & 0x7f));
- }
- }
- int /* Finnish */
- #ifdef CK_ANSIC
- tx_finnish(USHORT c)
- #else
- tx_finnish(c) USHORT c;
- #endif /* CK_ANSIC */
- {
- if (c & 0xff00) /* Out of range */
- return(-1);
- switch(c) {
- case 0xc4: return(0x5b); /* A diaeresis */
- case 0xd6: return(0x5c); /* O diaeresis */
- case 0xc5: return(0x5d); /* A ring */
- case 0xdc: return(0x5e); /* U diaeresis */
- case 0xe9: return(0x60); /* e acute */
- case 0xe4: return(0x7b); /* a diaeresis */
- case 0xf6: return(0x7c); /* o diaeresis */
- case 0xe5: return(0x7d); /* a ring */
- case 0xfc: return(0x7e); /* u diaeresis */
- default: return(tx_usascii(c));
- }
- }
- int /* French */
- #ifdef CK_ANSIC
- tx_french(USHORT c)
- #else
- tx_french(c) USHORT c;
- #endif /* CK_ANSIC */
- {
- if (c & 0xff00) /* Out of range */
- return(-1);
- switch(c) {
- case 0xa3: return(0x23); /* pound sign */
- case 0xa7: return(0x5d); /* section sign */
- case 0xa8: return(0x7e); /* diaeresis */
- case 0xb0: return(0x5b); /* ring */
- case 0xb5: return(0x60); /* micron sign (mu) */
- case 0xe0: return(0x40); /* a grave */
- case 0xe7: return(0x5c); /* c cedilla */
- case 0xe8: return(0x7d); /* e grave */
- case 0xe9: return(0x7b); /* e acute */
- case 0xf9: return(0x7c); /* u grave */
- default: return(tx_usascii(c));
- }
- }
- int /* German */
- #ifdef CK_ANSIC
- tx_german(USHORT c)
- #else
- tx_german(c) USHORT c;
- #endif /* CK_ANSIC */
- {
- if (c & 0xff00) /* Out of range */
- return(-1);
- switch(c) {
- case 0xa7: return(0x40); /* section sign */
- case 0xc4: return(0x5b); /* A umlaut */
- case 0xd6: return(0x5c); /* O umlaut */
- case 0xdc: return(0x5d); /* U umlaut */
- case 0xdf: return(0x7e); /* ess-zet */
- case 0xe4: return(0x7b); /* a umlaut */
- case 0xf6: return(0x7c); /* o umlaut */
- case 0xfc: return(0x7d); /* u umlaut*/
- default: return(tx_usascii(c));
- }
- }
- int /* Hebrew-7 */
- #ifdef CK_ANSIC
- tx_hebrew7(USHORT c)
- #else
- tx_hebrew7(c) USHORT c;
- #endif /* CK_ANSIC */
- {
- if (c < 0x60) /* ASCII */
- return((CHAR)(c & 0x7f));
- else if (c >= 123 && c < 128) /* ASCII */
- return((CHAR)(c & 0x7f));
- else if (c >= 0x05d0 && c < 0x05ea) /* Hebrew 27 contiguous characters */
- return((CHAR)((int)c - 0x5d0 + 96));
- else return(-1);
- }
- int /* Greek ELOT 927 */
- #ifdef CK_ANSIC
- tx_elot927(USHORT c)
- #else
- tx_elot927(c) USHORT c;
- #endif /* CK_ANSIC */
- {
- if (c <= 0x80) { /* ASCII */
- if (islower(c)) c = toupper(c); /* Send all letters in uppercase */
- return((CHAR)(c & 0x7f));
- }
- /* Greek -- map all Greek characters to unaccented uppercase */
- if (c >= 0x0391 && c <= 0x03a1) /* Alpha thru Rho - uppercase */
- return((CHAR)((int)c - 0x0391 + 97));
- else if (c >= 0x03a3 && c <= 0x03a9) /* Sigma thru Omega - uppercase */
- return((CHAR)((int)c - 0x0391 + 96));
- else if (c >= 0x03b1 && c <= 0x03c1) /* Alpha thru Rho - lowercase */
- return((CHAR)((int)c - 0x0391 + 97));
- else if (c >= 0x03c3 && c <= 0x03c9) /* Sigma thru Omega - uppercase */
- return((CHAR)((int)c - 0x0391 + 96));
- switch (c) {
- case 0x03c2: return((CHAR)114); /* Terminal sigma */
- case 0x0386: return((CHAR)97); /* Alpha Tonos */
- case 0x03ac: return((CHAR)97); /* alpha Tonos */
- case 0x0388: return((CHAR)101); /* Epsilon Tonos */
- case 0x03ad: return((CHAR)101); /* epsilon Tonos */
- case 0x0389: return((CHAR)103); /* Eta Tonos */
- case 0x03ae: return((CHAR)103); /* eta Tonos */
- case 0x038a: return((CHAR)105); /* Iota Tonos */
- case 0x03af: return((CHAR)105); /* iota Tonos */
- case 0x03ca: return((CHAR)105); /* iota Dialytika */
- case 0x038c: return((CHAR)111); /* Omicron Tonos */
- case 0x03cc: return((CHAR)111); /* omicron Tonos */
- case 0x038e: return((CHAR)116); /* Upsilon Tonos */
- case 0x03d3: return((CHAR)116); /* Upsilon Tonos */
- case 0x03cd: return((CHAR)116); /* upsilon Tonos */
- case 0x03cb: return((CHAR)116); /* upsilon Dialytika */
- case 0x03b0: return((CHAR)116); /* upsilon Dialytika+Tonos */
- case 0x038f: return((CHAR)120); /* Omega Tonos */
- case 0x03ce: return((CHAR)120); /* omega Tonos */
- case 0x0390: return((CHAR)105); /* iota Dialytika+Tonos */
- case 0x03aa: return((CHAR)105); /* Iota Dialytika */
- case 0x03ab: return((CHAR)116); /* Upsilon Dialytika */
- case 0x03d4: return((CHAR)116); /* Upsilon Dialytika */
- case 0x03d0: return((CHAR)98); /* Alternative beta */
- case 0x03d1: return((CHAR)104); /* Open theta */
- case 0x03d5: return((CHAR)117); /* Open phi */
- case 0x03d6: return((CHAR)112); /* Alternative Pi */
- default: return(-1);
- }
- }
- int /* Hungarian */
- #ifdef CK_ANSIC
- tx_hungarian(USHORT c)
- #else
- tx_hungarian(c) USHORT c;
- #endif /* CK_ANSIC */
- {
- if (c == 0x02dd || c == 0x2033)
- return(0x7e); /* double acute accent */
- else if (c & 0xff00) /* Out of range */
- return(-1);
- switch(c) {
- case 0xc1: return(0x40); /* A acute */
- case 0xc9: return(0x5b); /* E acute */
- case 0xd6: return(0x5c); /* O umlaut */
- case 0xdc: return(0x5d); /* U umlaut */
- case 0xe9: return(0x7b); /* e acute */
- case 0xf6: return(0x7c); /* o umlaut */
- case 0xfa: return(0x60); /* u acute */
- case 0xfc: return(0x7d); /* u umlaut */
- default: return(tx_usascii(c));
- }
- }
- int /* Icelandic */
- #ifdef CK_ANSIC
- tx_icelandic(USHORT c)
- #else
- tx_icelandic(c) USHORT c;
- #endif /* CK_ANSIC */
- {
- if (c & 0xff00) /* Out of range */
- return(-1);
- switch(c) {
- case 0xde: return(0x40); /* Thorn */
- case 0xd0: return(0x5b); /* Eth */
- case 0xc6: return(0x5d); /* AE */
- case 0xd6: return(0x5e); /* O umlaut */
- case 0xfe: return(0x60); /* thorn */
- case 0xf0: return(0x7b); /* eth */
- case 0xe6: return(0x7d); /* ae */
- case 0xf6: return(0x7e); /* o umlaut */
- default: return(tx_usascii(c));
- }
- }
- int /* Italian */
- #ifdef CK_ANSIC
- tx_italian(USHORT c)
- #else
- tx_italian(c) USHORT c;
- #endif /* CK_ANSIC */
- {
- if (c & 0xff00) /* Out of range */
- return(-1);
- switch(c) {
- case 0xa3: return(0x23); /* pound sign */
- case 0xa7: return(0x40); /* section sign */
- case 0xb0: return(0x5b); /* ring */
- case 0xe7: return(0x5c); /* c cedilla */
- case 0xe9: return(0x5d); /* e acute */
- case 0xf9: return(0x60); /* u grave */
- case 0xe0: return(0x7b); /* a grave */
- case 0xf2: return(0x7c); /* o grave */
- case 0xe8: return(0x7d); /* e grave */
- case 0xec: return(0x7e); /* i grave */
- default: return(tx_usascii(c));
- }
- }
- int /* JIS 0201 Roman */
- #ifdef CK_ANSIC
- tx_jis0201r(USHORT c)
- #else
- tx_jis0201r(c) USHORT c;
- #endif /* CK_ANSIC */
- {
- if (c && 0xff80) /* 7 bits */
- return(-1);
- switch (c) { /* Like ASCII with */
- case 0x00a5: return(92); /* two exceptions */
- case 0x00af: return(126);
- case 0x203e: return(126);
- default: return(tx_usascii(c));
- }
- }
- int /* JIS 0201 Katakana */
- #ifdef CK_ANSIC
- tx_jis0201k(USHORT c)
- #else
- tx_jis0201k(c) USHORT c;
- #endif /* CK_ANSIC */
- {
- if (c < 0xff61 || c > 0xff9f)
- return(-1); /* Out of range */
- else
- return((int)c - 0xfec0); /* 0xff61 - a0 = 0xfec0 */
- }
- int /* Short KOI */
- #ifdef CK_ANSIC
- tx_koi7(USHORT c)
- #else
- tx_koi7(c) USHORT c;
- #endif /* CK_ANSIC */
- {
- if (c < 0x50)
- return((CHAR)(c & 0x7f));
- else if (c > 0x7f)
- return(-1); /* Out of range */
- switch(c) {
- case 0x0410: return((CHAR)97);
- case 0x0411: return((CHAR)98);
- case 0x0412: return((CHAR)119);
- case 0x0413: return((CHAR)103);
- case 0x0414: return((CHAR)100);
- case 0x0415: return((CHAR)101);
- case 0x0416: return((CHAR)118);
- case 0x0417: return((CHAR)122);
- case 0x0418: return((CHAR)105);
- case 0x0419: return((CHAR)106);
- case 0x041a: return((CHAR)107);
- case 0x041b: return((CHAR)108);
- case 0x041c: return((CHAR)109);
- case 0x041d: return((CHAR)110);
- case 0x041e: return((CHAR)111);
- case 0x041f: return((CHAR)112);
- case 0x0420: return((CHAR)114);
- case 0x0421: return((CHAR)115);
- case 0x0422: return((CHAR)116);
- case 0x0423: return((CHAR)117);
- case 0x0424: return((CHAR)102);
- case 0x0425: return((CHAR)104);
- case 0x0426: return((CHAR)99);
- case 0x0427: return((CHAR)126);
- case 0x0428: return((CHAR)123);
- case 0x0429: return((CHAR)125);
- case 0x042b: return((CHAR)121);
- case 0x042c: return((CHAR)120);
- case 0x042d: return((CHAR)124);
- case 0x042e: return((CHAR)96);
- case 0x042f: return((CHAR)113);
- default: return(-1);
- }
- }
- int /* Portuguese */
- #ifdef CK_ANSIC
- tx_portuguese(USHORT c)
- #else
- tx_portuguese(c) USHORT c;
- #endif /* CK_ANSIC */
- {
- if (c & 0xff00) /* Out of range */
- return(-1);
- switch(c) {
- case 0xe0: return(0xa7); /* section sign */
- case 0xb0: return(0xc3); /* A tilde */
- case 0xe7: return(0xc7); /* C cedilla */
- case 0xa7: return(0xd5); /* O tilde */
- case 0xe9: return(0xe3); /* a tilde */
- case 0xf9: return(0xe7); /* c cedilla */
- case 0xe8: return(0xf5); /* o tilde */
- case 0xa8: return(0xb0); /* ring */
- default: return(tx_usascii(c));
- }
- }
- int /* Spanish */
- #ifdef CK_ANSIC
- tx_spanish(USHORT c)
- #else
- tx_spanish(c) USHORT c;
- #endif /* CK_ANSIC */
- {
- if (c & 0xff00) /* Out of range */
- return(-1);
- switch(c) {
- case 0xa3: return(0x23); /* pound sign */
- case 0xa7: return(0x40); /* section */
- case 0xa1: return(0x5b); /* inverted exclamation */
- case 0xd1: return(0x5c); /* N tilde */
- case 0xbf: return(0x5d); /* inverted question mark */
- case 0xb0: return(0x7b); /* ring */
- case 0xf1: return(0x7c); /* n tilde */
- case 0xe7: return(0x7d); /* c cedilla */
- default: return(tx_usascii(c));
- }
- }
- int /* Swedish */
- #ifdef CK_ANSIC
- tx_swedish(USHORT c)
- #else
- tx_swedish(c) USHORT c;
- #endif /* CK_ANSIC */
- {
- if (c & 0xff00) /* Out of range */
- return(-1);
- switch(c) {
- case 0xc9: return(0x40); /* E acute */
- case 0xc4: return(0x5b); /* A umlaut*/
- case 0xd6: return(0x5c); /* O umlaut */
- case 0xc5: return(0x5d); /* A ring */
- case 0xdc: return(0x5e); /* U umlaut */
- case 0xe9: return(0x60); /* e acute */
- case 0xe4: return(0x7b); /* a umlaut */
- case 0xf6: return(0x7c); /* o umlaut */
- case 0xe5: return(0x7d); /* a ring */
- case 0xfc: return(0x7e); /* u umlaut */
- default: return(tx_usascii(c));
- }
- }
- int /* Swiss NRC */
- #ifdef CK_ANSIC
- tx_swiss(USHORT c)
- #else
- tx_swiss(c) USHORT c;
- #endif /* CK_ANSIC */
- {
- if (c & 0xff00) /* Out of range */
- return(-1);
- switch(c) {
- case 0xf9: return(0x23); /* u grave */
- case 0xe0: return(0x40); /* a grave */
- case 0xe9: return(0x5b); /* e acute */
- case 0xe7: return(0x5c); /* c cedilla */
- case 0xea: return(0x5d); /* e circumflex */
- case 0xee: return(0x5e); /* i circumflex */
- case 0xe8: return(0x5f); /* e grave */
- case 0xf4: return(0x60); /* o circumflex */
- case 0xe4: return(0x7b); /* a umlaut */
- case 0xf6: return(0x7c); /* o umlaut */
- case 0xfc: return(0x7d); /* u umlaut */
- case 0xfb: return(0x7e); /* u circumflex */
- default: return(tx_usascii(c));
- }
- }
- /* For Latin-1, use tx_ident() */
- int /* Latin-2 */
- #ifdef CK_ANSIC
- tx_8859_2(USHORT c)
- #else
- tx_8859_2(c) USHORT c;
- #endif /* CK_ANSIC */
- {
- if (c < 0xa0)
- return((CHAR)(c & 0xff));
- switch(c) {
- case 0x00A0: return((CHAR)160);
- case 0x00A4: return((CHAR)164);
- case 0x00A7: return((CHAR)167);
- case 0x00A8: return((CHAR)168);
- case 0x00AD: return((CHAR)173);
- case 0x00B0: return((CHAR)176);
- case 0x00B4: return((CHAR)180);
- case 0x00B8: return((CHAR)184);
- case 0x00C1: return((CHAR)193);
- case 0x00C2: return((CHAR)194);
- case 0x00C4: return((CHAR)196);
- case 0x00C7: return((CHAR)199);
- case 0x00C9: return((CHAR)201);
- case 0x00CB: return((CHAR)203);
- case 0x00CD: return((CHAR)205);
- case 0x00CE: return((CHAR)206);
- case 0x00D3: return((CHAR)211);
- case 0x00D4: return((CHAR)212);
- case 0x00D6: return((CHAR)214);
- case 0x00D7: return((CHAR)215);
- case 0x00DA: return((CHAR)218);
- case 0x00DC: return((CHAR)220);
- case 0x00DD: return((CHAR)221);
- case 0x00DF: return((CHAR)223);
- case 0x00E1: return((CHAR)225);
- case 0x00E2: return((CHAR)226);
- case 0x00E4: return((CHAR)228);
- case 0x00E7: return((CHAR)231);
- case 0x00E9: return((CHAR)233);
- case 0x00EB: return((CHAR)235);
- case 0x00ED: return((CHAR)237);
- case 0x00EE: return((CHAR)238);
- case 0x00F3: return((CHAR)243);
- case 0x00F4: return((CHAR)244);
- case 0x00F6: return((CHAR)246);
- case 0x00F7: return((CHAR)247);
- case 0x00FA: return((CHAR)250);
- case 0x00FC: return((CHAR)252);
- case 0x00FD: return((CHAR)253);
- case 0x0102: return((CHAR)195);
- case 0x0103: return((CHAR)227);
- case 0x0104: return((CHAR)161);
- case 0x0105: return((CHAR)177);
- case 0x0106: return((CHAR)198);
- case 0x0107: return((CHAR)230);
- case 0x010C: return((CHAR)200);
- case 0x010D: return((CHAR)232);
- case 0x010E: return((CHAR)207);
- case 0x010F: return((CHAR)239);
- case 0x0110: return((CHAR)208);
- case 0x0111: return((CHAR)240);
- case 0x0118: return((CHAR)202);
- case 0x0119: return((CHAR)234);
- case 0x011A: return((CHAR)204);
- case 0x011B: return((CHAR)236);
- case 0x0139: return((CHAR)197);
- case 0x013A: return((CHAR)229);
- case 0x013D: return((CHAR)165);
- case 0x013E: return((CHAR)181);
- case 0x0141: return((CHAR)163);
- case 0x0142: return((CHAR)179);
- case 0x0143: return((CHAR)209);
- case 0x0144: return((CHAR)241);
- case 0x0147: return((CHAR)210);
- case 0x0148: return((CHAR)242);
- case 0x0150: return((CHAR)213);
- case 0x0151: return((CHAR)245);
- case 0x0154: return((CHAR)192);
- case 0x0155: return((CHAR)224);
- case 0x0158: return((CHAR)216);
- case 0x0159: return((CHAR)248);
- case 0x015A: return((CHAR)166);
- case 0x015B: return((CHAR)182);
- case 0x015E: return((CHAR)170);
- case 0x015F: return((CHAR)186);
- case 0x0160: return((CHAR)169);
- case 0x0161: return((CHAR)185);
- case 0x0162: return((CHAR)222);
- case 0x0163: return((CHAR)254);
- case 0x0164: return((CHAR)171);
- case 0x0165: return((CHAR)187);
- case 0x016E: return((CHAR)217);
- case 0x016F: return((CHAR)249);
- case 0x0170: return((CHAR)219);
- case 0x0171: return((CHAR)251);
- case 0x0179: return((CHAR)172);
- case 0x017A: return((CHAR)188);
- case 0x017B: return((CHAR)175);
- case 0x017C: return((CHAR)191);
- case 0x017D: return((CHAR)174);
- case 0x017E: return((CHAR)190);
- case 0x02C7: return((CHAR)183);
- case 0x02D8: return((CHAR)162);
- case 0x02D9: return((CHAR)255);
- case 0x02DB: return((CHAR)178);
- case 0x02DD: return((CHAR)189);
- default: return(tx_punc(c));
- }
- }
- int /* Latin-3 */
- #ifdef CK_ANSIC
- tx_8859_3(USHORT c)
- #else
- tx_8859_3(c) USHORT c;
- #endif /* CK_ANSIC */
- {
- if (c < 0xa0)
- return((CHAR)(c & 0xff));
- switch(c) {
- case 0x00A0: return((CHAR)160);
- case 0x00A3: return((CHAR)163);
- case 0x00A4: return((CHAR)164);
- case 0x00A7: return((CHAR)167);
- case 0x00A8: return((CHAR)168);
- case 0x00AD: return((CHAR)173);
- case 0x00B0: return((CHAR)176);
- case 0x00B2: return((CHAR)178);
- case 0x00B3: return((CHAR)179);
- case 0x00B4: return((CHAR)180);
- case 0x00B5: return((CHAR)181);
- case 0x00B7: return((CHAR)183);
- case 0x00B8: return((CHAR)184);
- case 0x00BD: return((CHAR)189);
- case 0x00C0: return((CHAR)192);
- case 0x00C1: return((CHAR)193);
- case 0x00C2: return((CHAR)194);
- case 0x00C4: return((CHAR)196);
- case 0x00C7: return((CHAR)199);
- case 0x00C8: return((CHAR)200);
- case 0x00C9: return((CHAR)201);
- case 0x00CA: return((CHAR)202);
- case 0x00CB: return((CHAR)203);
- case 0x00CC: return((CHAR)204);
- case 0x00CD: return((CHAR)205);
- case 0x00CE: return((CHAR)206);
- case 0x00CF: return((CHAR)207);
- case 0x00D1: return((CHAR)209);
- case 0x00D2: return((CHAR)210);
- case 0x00D3: return((CHAR)211);
- case 0x00D4: return((CHAR)212);
- case 0x00D6: return((CHAR)214);
- case 0x00D7: return((CHAR)215);
- case 0x00D9: return((CHAR)217);
- case 0x00DA: return((CHAR)218);
- case 0x00DB: return((CHAR)219);
- case 0x00DC: return((CHAR)220);
- case 0x00DF: return((CHAR)223);
- case 0x00E0: return((CHAR)224);
- case 0x00E1: return((CHAR)225);
- case 0x00E2: return((CHAR)226);
- case 0x00E4: return((CHAR)228);
- case 0x00E7: return((CHAR)231);
- case 0x00E8: return((CHAR)232);
- case 0x00E9: return((CHAR)233);
- case 0x00EA: return((CHAR)234);
- case 0x00EB: return((CHAR)235);
- case 0x00EC: return((CHAR)236);
- case 0x00ED: return((CHAR)237);
- case 0x00EE: return((CHAR)238);
- case 0x00EF: return((CHAR)239);
- case 0x00F1: return((CHAR)241);
- case 0x00F2: return((CHAR)242);
- case 0x00F3: return((CHAR)243);
- case 0x00F4: return((CHAR)244);
- case 0x00F6: return((CHAR)246);
- case 0x00F7: return((CHAR)247);
- case 0x00F9: return((CHAR)249);
- case 0x00FA: return((CHAR)250);
- case 0x00FB: return((CHAR)251);
- case 0x00FC: return((CHAR)252);
- case 0x0108: return((CHAR)198);
- case 0x0109: return((CHAR)230);
- case 0x010A: return((CHAR)197);
- case 0x010B: return((CHAR)229);
- case 0x011C: return((CHAR)216);
- case 0x011D: return((CHAR)248);
- case 0x011E: return((CHAR)171);
- case 0x011F: return((CHAR)187);
- case 0x0120: return((CHAR)213);
- case 0x0121: return((CHAR)245);
- case 0x0124: return((CHAR)166);
- case 0x0125: return((CHAR)182);
- case 0x0126: return((CHAR)161);
- case 0x0127: return((CHAR)177);
- case 0x0130: return((CHAR)169);
- case 0x0131: return((CHAR)185);
- case 0x0134: return((CHAR)172);
- case 0x0135: return((CHAR)188);
- case 0x015C: return((CHAR)222);
- case 0x015D: return((CHAR)254);
- case 0x015E: return((CHAR)170);
- case 0x015F: return((CHAR)186);
- case 0x016C: return((CHAR)221);
- case 0x016D: return((CHAR)253);
- case 0x017B: return((CHAR)175);
- case 0x017C: return((CHAR)191);
- case 0x02D8: return((CHAR)162);
- case 0x02D9: return((CHAR)255);
- default: return(tx_punc(c));
- }
- }
- int /* Latin-4 */
- #ifdef CK_ANSIC
- tx_8859_4(USHORT c)
- #else
- tx_8859_4(c) USHORT c;
- #endif /* CK_ANSIC */
- {
- if (c < 0xa0)
- return((CHAR)(c & 0xff));
- switch(c) {
- case 0x00A0: return((CHAR)160);
- case 0x00A4: return((CHAR)164);
- case 0x00A7: return((CHAR)167);
- case 0x00A8: return((CHAR)168);
- case 0x00AD: return((CHAR)173);
- case 0x00AF: return((CHAR)175);
- case 0x00B0: return((CHAR)176);
- case 0x00B4: return((CHAR)180);
- case 0x00B8: return((CHAR)184);
- case 0x00C1: return((CHAR)193);
- case 0x00C2: return((CHAR)194);
- case 0x00C3: return((CHAR)195);
- case 0x00C4: return((CHAR)196);
- case 0x00C5: return((CHAR)197);
- case 0x00C6: return((CHAR)198);
- case 0x00C9: return((CHAR)201);
- case 0x00CB: return((CHAR)203);
- case 0x00CD: return((CHAR)205);
- case 0x00CE: return((CHAR)206);
- case 0x00D4: return((CHAR)212);
- case 0x00D5: return((CHAR)213);
- case 0x00D6: return((CHAR)214);
- case 0x00D7: return((CHAR)215);
- case 0x00D8: return((CHAR)216);
- case 0x00DA: return((CHAR)218);
- case 0x00DB: return((CHAR)219);
- case 0x00DC: return((CHAR)220);
- case 0x00DF: return((CHAR)223);
- case 0x00E1: return((CHAR)225);
- case 0x00E2: return((CHAR)226);
- case 0x00E3: return((CHAR)227);
- case 0x00E4: return((CHAR)228);
- case 0x00E5: return((CHAR)229);
- case 0x00E6: return((CHAR)230);
- case 0x00E9: return((CHAR)233);
- case 0x00EB: return((CHAR)235);
- case 0x00ED: return((CHAR)237);
- case 0x00EE: return((CHAR)238);
- case 0x00F4: return((CHAR)244);
- case 0x00F5: return((CHAR)245);
- case 0x00F6: return((CHAR)246);
- case 0x00F7: return((CHAR)247);
- case 0x00F8: return((CHAR)248);
- case 0x00FA: return((CHAR)250);
- case 0x00FB: return((CHAR)251);
- case 0x00FC: return((CHAR)252);
- case 0x0100: return((CHAR)192);
- case 0x0101: return((CHAR)224);
- case 0x0104: return((CHAR)161);
- case 0x0105: return((CHAR)177);
- case 0x010C: return((CHAR)200);
- case 0x010D: return((CHAR)232);
- case 0x0110: return((CHAR)208);
- case 0x0111: return((CHAR)240);
- case 0x0112: return((CHAR)170);
- case 0x0113: return((CHAR)186);
- case 0x0116: return((CHAR)204);
- case 0x0117: return((CHAR)236);
- case 0x0118: return((CHAR)202);
- case 0x0119: return((CHAR)234);
- case 0x0122: return((CHAR)171);
- case 0x0123: return((CHAR)187);
- case 0x0128: return((CHAR)165);
- case 0x0129: return((CHAR)181);
- case 0x012A: return((CHAR)207);
- case 0x012B: return((CHAR)239);
- case 0x012E: return((CHAR)199);
- case 0x012F: return((CHAR)231);
- case 0x0136: return((CHAR)211);
- case 0x0137: return((CHAR)243);
- case 0x0138: return((CHAR)162);
- case 0x013B: return((CHAR)166);
- case 0x013C: return((CHAR)182);
- case 0x0145: return((CHAR)209);
- case 0x0146: return((CHAR)241);
- case 0x014A: return((CHAR)189);
- case 0x014B: return((CHAR)191);
- case 0x014C: return((CHAR)210);
- case 0x014D: return((CHAR)242);
- case 0x0156: return((CHAR)163);
- case 0x0157: return((CHAR)179);
- case 0x0160: return((CHAR)169);
- case 0x0161: return((CHAR)185);
- case 0x0166: return((CHAR)172);
- case 0x0167: return((CHAR)188);
- case 0x0168: return((CHAR)221);
- case 0x0169: return((CHAR)253);
- case 0x016A: return((CHAR)222);
- case 0x016B: return((CHAR)254);
- case 0x0172: return((CHAR)217);
- case 0x0173: return((CHAR)249);
- case 0x017D: return((CHAR)174);
- case 0x017E: return((CHAR)190);
- case 0x02C7: return((CHAR)183);
- case 0x02D9: return((CHAR)255);
- case 0x02DB: return((CHAR)178);
- default: return(tx_punc(c));
- }
- }
- int /* ISO 8859-5 (Latin/Cyrillic) */
- #ifdef CK_ANSIC
- tx_8859_5(USHORT c)
- #else
- tx_8859_5(c) USHORT c;
- #endif /* CK_ANSIC */
- {
- if (c < 0xa0) /* (8859-5 is not Latin-5!) */
- return((CHAR)(c & 0xff));
- switch(c) {
- case 0x00A0: return((CHAR)160);
- case 0x00A7: return((CHAR)253);
- case 0x00AD: return((CHAR)173);
- case 0x0401: return((CHAR)161);
- case 0x0402: return((CHAR)162);
- case 0x0403: return((CHAR)163);
- case 0x0404: return((CHAR)164);
- case 0x0405: return((CHAR)165);
- case 0x0406: return((CHAR)166);
- case 0x0407: return((CHAR)167);
- case 0x0408: return((CHAR)168);
- case 0x0409: return((CHAR)169);
- case 0x040A: return((CHAR)170);
- case 0x040B: return((CHAR)171);
- case 0x040C: return((CHAR)172);
- case 0x040E: return((CHAR)174);
- case 0x040F: return((CHAR)175);
- case 0x0410: return((CHAR)176);
- case 0x0411: return((CHAR)177);
- case 0x0412: return((CHAR)178);
- case 0x0413: return((CHAR)179);
- case 0x0414: return((CHAR)180);
- case 0x0415: return((CHAR)181);
- case 0x0416: return((CHAR)182);
- case 0x0417: return((CHAR)183);
- case 0x0418: return((CHAR)184);
- case 0x0419: return((CHAR)185);
- case 0x041A: return((CHAR)186);
- case 0x041B: return((CHAR)187);
- case 0x041C: return((CHAR)188);
- case 0x041D: return((CHAR)189);
- case 0x041E: return((CHAR)190);
- case 0x041F: return((CHAR)191);
- case 0x0420: return((CHAR)192);
- case 0x0421: return((CHAR)193);
- case 0x0422: return((CHAR)194);
- case 0x0423: return((CHAR)195);
- case 0x0424: return((CHAR)196);
- case 0x0425: return((CHAR)197);
- case 0x0426: return((CHAR)198);
- case 0x0427: return((CHAR)199);
- case 0x0428: return((CHAR)200);
- case 0x0429: return((CHAR)201);
- case 0x042A: return((CHAR)202);
- case 0x042B: return((CHAR)203);
- case 0x042C: return((CHAR)204);
- case 0x042D: return((CHAR)205);
- case 0x042E: return((CHAR)206);
- case 0x042F: return((CHAR)207);
- case 0x0430: return((CHAR)208);
- case 0x0431: return((CHAR)209);
- case 0x0432: return((CHAR)210);
- case 0x0433: return((CHAR)211);
- case 0x0434: return((CHAR)212);
- case 0x0435: return((CHAR)213);
- case 0x0436: return((CHAR)214);
- case 0x0437: return((CHAR)215);
- case 0x0438: return((CHAR)216);
- case 0x0439: return((CHAR)217);
- case 0x043A: return((CHAR)218);
- case 0x043B: return((CHAR)219);
- case 0x043C: return((CHAR)220);
- case 0x043D: return((CHAR)221);
- case 0x043E: return((CHAR)222);
- case 0x043F: return((CHAR)223);
- case 0x0440: return((CHAR)224);
- case 0x0441: return((CHAR)225);
- case 0x0442: return((CHAR)226);
- case 0x0443: return((CHAR)227);
- case 0x0444: return((CHAR)228);
- case 0x0445: return((CHAR)229);
- case 0x0446: return((CHAR)230);
- case 0x0447: return((CHAR)231);
- case 0x0448: return((CHAR)232);
- case 0x0449: return((CHAR)233);
- case 0x044A: return((CHAR)234);
- case 0x044B: return((CHAR)235);
- case 0x044C: return((CHAR)236);
- case 0x044D: return((CHAR)237);
- case 0x044E: return((CHAR)238);
- case 0x044F: return((CHAR)239);
- case 0x0451: return((CHAR)241);
- case 0x0452: return((CHAR)242);
- case 0x0453: return((CHAR)243);
- case 0x0454: return((CHAR)244);
- case 0x0455: return((CHAR)245);
- case 0x0456: return((CHAR)246);
- case 0x0457: return((CHAR)247);
- case 0x0458: return((CHAR)248);
- case 0x0459: return((CHAR)249);
- case 0x045A: return((CHAR)250);
- case 0x045B: return((CHAR)251);
- case 0x045C: return((CHAR)252);
- case 0x045E: return((CHAR)254);
- case 0x045F: return((CHAR)255);
- case 0x2116: return((CHAR)240);
- default: return(tx_punc(c));
- }
- }
- int /* ISO 8859-6 (Latin/Arabic) */
- #ifdef CK_ANSIC
- tx_8859_6(USHORT c)
- #else
- tx_8859_6(c) USHORT c;
- #endif /* CK_ANSIC */
- {
- if (c < 0xa0) /* (8859-6 != Latin-6) */
- return((CHAR)(c & 0xff));
- switch(c) {
- case 0x00A0: return((CHAR)160);
- case 0x00A4: return((CHAR)164);
- case 0x00AD: return((CHAR)173);
- case 0x060C: return((CHAR)172);
- case 0x061B: return((CHAR)187);
- case 0x061F: return((CHAR)191);
- case 0x0621: return((CHAR)193);
- case 0x0622: return((CHAR)194);
- case 0x0623: return((CHAR)195);
- case 0x0624: return((CHAR)196);
- case 0x0625: return((CHAR)197);
- case 0x0626: return((CHAR)198);
- case 0x0627: return((CHAR)199);
- case 0x0628: return((CHAR)200);
- case 0x0629: return((CHAR)201);
- case 0x062A: return((CHAR)202);
- case 0x062B: return((CHAR)203);
- case 0x062C: return((CHAR)204);
- case 0x062D: return((CHAR)205);
- case 0x062E: return((CHAR)206);
- case 0x062F: return((CHAR)207);
- case 0x0630: return((CHAR)208);
- case 0x0631: return((CHAR)209);
- case 0x0632: return((CHAR)210);
- case 0x0633: return((CHAR)211);
- case 0x0634: return((CHAR)212);
- case 0x0635: return((CHAR)213);
- case 0x0636: return((CHAR)214);
- case 0x0637: return((CHAR)215);
- case 0x0638: return((CHAR)216);
- case 0x0639: return((CHAR)217);
- case 0x063A: return((CHAR)218);
- case 0x0640: return((CHAR)224);
- case 0x0641: return((CHAR)225);
- case 0x0642: return((CHAR)226);
- case 0x0643: return((CHAR)227);
- case 0x0644: return((CHAR)228);
- case 0x0645: return((CHAR)229);
- case 0x0646: return((CHAR)230);
- case 0x0647: return((CHAR)231);
- case 0x0648: return((CHAR)232);
- case 0x0649: return((CHAR)233);
- case 0x064A: return((CHAR)234);
- case 0x064B: return((CHAR)235);
- case 0x064C: return((CHAR)236);
- case 0x064D: return((CHAR)237);
- case 0x064E: return((CHAR)238);
- case 0x064F: return((CHAR)239);
- case 0x0650: return((CHAR)240);
- case 0x0651: return((CHAR)241);
- case 0x0652: return((CHAR)242);
- default: return(tx_punc(c));
- }
- }
- int /* ISO 8859-7 (Latin/Greek) */
- #ifdef CK_ANSIC
- tx_8859_7(USHORT c)
- #else
- tx_8859_7(c) USHORT c;
- #endif /* CK_ANSIC */
- {
- if (c < 0xa0)
- return((CHAR)(c & 0xff));
- switch(c) {
- case 0x00a0: return((CHAR)160);
- case 0x00a3: return((CHAR)163);
- case 0x00a6: return((CHAR)166);
- case 0x00a7: return((CHAR)167);
- case 0x00a8: return((CHAR)168);
- case 0x00a9: return((CHAR)169);
- case 0x00ab: return((CHAR)171);
- case 0x00ac: return((CHAR)172);
- case 0x00ad: return((CHAR)173);
- case 0x00b0: return((CHAR)176);
- case 0x00b1: return((CHAR)177);
- case 0x00b2: return((CHAR)178);
- case 0x00b3: return((CHAR)179);
- case 0x00b7: return((CHAR)183);
- case 0x00bb: return((CHAR)187);
- case 0x00bd: return((CHAR)189);
- case 0x02bc: return((CHAR)162);
- case 0x02bd: return((CHAR)161);
- case 0x0384: return((CHAR)180);
- case 0x0385: return((CHAR)181);
- case 0x0386: return((CHAR)182);
- case 0x0388: return((CHAR)184);
- case 0x0389: return((CHAR)185);
- case 0x038a: return((CHAR)186);
- case 0x038c: return((CHAR)188);
- case 0x038e: return((CHAR)190);
- case 0x038f: return((CHAR)191);
- case 0x0390: return((CHAR)192);
- case 0x0391: return((CHAR)193);
- case 0x0392: return((CHAR)194);
- case 0x0393: return((CHAR)195);
- case 0x0394: return((CHAR)196);
- case 0x0395: return((CHAR)197);
- case 0x0396: return((CHAR)198);
- case 0x0397: return((CHAR)199);
- case 0x0398: return((CHAR)200);
- case 0x0399: return((CHAR)201);
- case 0x039a: return((CHAR)202);
- case 0x039b: return((CHAR)203);
- case 0x039c: return((CHAR)204);
- case 0x039d: return((CHAR)205);
- case 0x039e: return((CHAR)206);
- case 0x039f: return((CHAR)207);
- case 0x03a0: return((CHAR)208);
- case 0x03a1: return((CHAR)209);
- case 0x03a3: return((CHAR)211);
- case 0x03a4: return((CHAR)212);
- case 0x03a5: return((CHAR)213);
- case 0x03a6: return((CHAR)214);
- case 0x03a7: return((CHAR)215);
- case 0x03a8: return((CHAR)216);
- case 0x03a9: return((CHAR)217);
- case 0x03aa: return((CHAR)218);
- case 0x03ab: return((CHAR)219);
- case 0x03ac: return((CHAR)220);
- case 0x03ad: return((CHAR)221);
- case 0x03ae: return((CHAR)222);
- case 0x03af: return((CHAR)223);
- case 0x03b0: return((CHAR)224);
- case 0x03b1: return((CHAR)225);
- case 0x03b2: return((CHAR)226);
- case 0x03b3: return((CHAR)227);
- case 0x03b4: return((CHAR)228);
- case 0x03b5: return((CHAR)229);
- case 0x03b6: return((CHAR)230);
- case 0x03b7: return((CHAR)231);
- case 0x03b8: return((CHAR)232);
- case 0x03b9: return((CHAR)233);
- case 0x03ba: return((CHAR)234);
- case 0x03bb: return((CHAR)235);
- case 0x03bc: return((CHAR)236);
- case 0x03bd: return((CHAR)237);
- case 0x03be: return((CHAR)238);
- case 0x03bf: return((CHAR)239);
- case 0x03c0: return((CHAR)240);
- case 0x03c1: return((CHAR)241);
- case 0x03c2: return((CHAR)242);
- case 0x03c3: return((CHAR)243);
- case 0x03c4: return((CHAR)244);
- case 0x03c5: return((CHAR)245);
- case 0x03c6: return((CHAR)246);
- case 0x03c7: return((CHAR)247);
- case 0x03c8: return((CHAR)248);
- case 0x03c9: return((CHAR)249);
- case 0x03ca: return((CHAR)250);
- case 0x03cb: return((CHAR)251);
- case 0x03cc: return((CHAR)252);
- case 0x03cd: return((CHAR)253);
- case 0x03ce: return((CHAR)254);
- case 0x2015: return((CHAR)175);
- case 0x2018: return((CHAR)161);
- case 0x2019: return((CHAR)162);
- default: return(tx_punc(c));
- }
- }
- int /* ISO 8859-8 (Latin/Hebrew) */
- #ifdef CK_ANSIC
- tx_8859_8(USHORT c)
- #else
- tx_8859_8(c) USHORT c;
- #endif /* CK_ANSIC */
- {
- if (c < 0xa0)
- return((CHAR)(c & 0xff));
- switch(c) {
- case 0x00a0: return((CHAR)160);
- case 0x00a2: return((CHAR)162);
- case 0x00a3: return((CHAR)163);
- case 0x00a4: return((CHAR)164);
- case 0x00a5: return((CHAR)165);
- case 0x00a6: return((CHAR)166);
- case 0x00a7: return((CHAR)167);
- case 0x00a8: return((CHAR)168);
- case 0x00a9: return((CHAR)169);
- case 0x00d7: return((CHAR)170);
- case 0x00ab: return((CHAR)171);
- case 0x00ac: return((CHAR)172);
- case 0x00ad: return((CHAR)173);
- case 0x00ae: return((CHAR)174);
- case 0x203e: return((CHAR)175);
- case 0x00b0: return((CHAR)176);
- case 0x00b1: return((CHAR)177);
- case 0x00b2: return((CHAR)178);
- case 0x00b3: return((CHAR)179);
- case 0x00b4: return((CHAR)180);
- case 0x00b5: return((CHAR)181);
- case 0x00b6: return((CHAR)182);
- case 0x00b7: return((CHAR)183);
- case 0x00b8: return((CHAR)184);
- case 0x00b9: return((CHAR)185);
- case 0x00f7: return((CHAR)186);
- case 0x00bb: return((CHAR)187);
- case 0x00bc: return((CHAR)188);
- case 0x00bd: return((CHAR)189);
- case 0x00be: return((CHAR)190);
- case 0x2017: return((CHAR)223);
- case 0x05d0: return((CHAR)224);
- case 0x05d1: return((CHAR)225);
- case 0x05d2: return((CHAR)226);
- case 0x05d3: return((CHAR)227);
- case 0x05d4: return((CHAR)228);
- case 0x05d5: return((CHAR)229);
- case 0x05d6: return((CHAR)230);
- case 0x05d7: return((CHAR)231);
- case 0x05d8: return((CHAR)232);
- case 0x05d9: return((CHAR)233);
- case 0x05da: return((CHAR)234);
- case 0x05db: return((CHAR)235);
- case 0x05dc: return((CHAR)236);
- case 0x05dd: return((CHAR)237);
- case 0x05de: return((CHAR)238);
- case 0x05df: return((CHAR)239);
- case 0x05e0: return((CHAR)240);
- case 0x05e1: return((CHAR)241);
- case 0x05e2: return((CHAR)242);
- case 0x05e3: return((CHAR)243);
- case 0x05e4: return((CHAR)244);
- case 0x05e5: return((CHAR)245);
- case 0x05e6: return((CHAR)246);
- case 0x05e7: return((CHAR)247);
- case 0x05e8: return((CHAR)248);
- case 0x05e9: return((CHAR)249);
- case 0x05ea: return((CHAR)250);
- default: return(tx_punc(c));
- }
- }
- int /* ISO 8859-9 (Latin-4) */
- #ifdef CK_ANSIC
- tx_8859_9(USHORT c)
- #else
- tx_8859_9(c) USHORT c;
- #endif /* CK_ANSIC */
- {
- if (c < 0xa0)
- return((CHAR)(c & 0xff));
- switch(c) {
- case 0x011E: return((CHAR)208); /* Differs from Latin-1 in */
- case 0x011F: return((CHAR)240); /* only six places */
- case 0x0130: return((CHAR)221);
- case 0x0131: return((CHAR)253);
- case 0x015E: return((CHAR)222);
- case 0x015F: return((CHAR)254);
- default: return(tx_ident(c));
- }
- }
- int /* Latin-6 */
- #ifdef CK_ANSIC
- tx_8859_10(USHORT c)
- #else
- tx_8859_10(c) USHORT c;
- #endif /* CK_ANSIC */
- {
- if (c < 0xa0)
- return((CHAR)(c & 0xff));
- switch(c) {
- case 0x00a0: return((CHAR)160);
- case 0x00ad: return((CHAR)173);
- case 0x00bd: return((CHAR)189);
- case 0x00be: return((CHAR)190);
- case 0x00c1: return((CHAR)193);
- case 0x00c2: return((CHAR)194);
- case 0x00c3: return((CHAR)195);
- case 0x00c4: return((CHAR)196);
- case 0x00c5: return((CHAR)197);
- case 0x00c6: return((CHAR)198);
- case 0x00c9: return((CHAR)201);
- case 0x00cb: return((CHAR)203);
- case 0x00cd: return((CHAR)205);
- case 0x00ce: return((CHAR)206);
- case 0x00cf: return((CHAR)207);
- case 0x00d3: return((CHAR)211);
- case 0x00d4: return((CHAR)212);
- case 0x00d5: return((CHAR)213);
- case 0x00d6: return((CHAR)214);
- case 0x00d8: return((CHAR)216);
- case 0x00da: return((CHAR)218);
- case 0x00db: return((CHAR)219);
- case 0x00dc: return((CHAR)220);
- case 0x00dd: return((CHAR)221);
- case 0x00de: return((CHAR)222);
- case 0x00e1: return((CHAR)225);
- case 0x00e2: return((CHAR)226);
- case 0x00e3: return((CHAR)227);
- case 0x00e4: return((CHAR)228);
- case 0x00e5: return((CHAR)229);
- case 0x00e6: return((CHAR)230);
- case 0x00e9: return((CHAR)233);
- case 0x00eb: return((CHAR)235);
- case 0x00ed: return((CHAR)237);
- case 0x00ee: return((CHAR)238);
- case 0x00ef: return((CHAR)239);
- case 0x00f0: return((CHAR)240);
- case 0x00f1: return((CHAR)241);
- case 0x00f3: return((CHAR)243);
- case 0x00f4: return((CHAR)244);
- case 0x00f5: return((CHAR)245);
- case 0x00f6: return((CHAR)246);
- case 0x00f8: return((CHAR)248);
- case 0x00fa: return((CHAR)250);
- case 0x00fb: return((CHAR)251);
- case 0x00fc: return((CHAR)252);
- case 0x00fd: return((CHAR)253);
- case 0x00fe: return((CHAR)254);
- case 0x0100: return((CHAR)192);
- case 0x0101: return((CHAR)224);
- case 0x0104: return((CHAR)161);
- case 0x0105: return((CHAR)177);
- case 0x010c: return((CHAR)200);
- case 0x010d: return((CHAR)232);
- case 0x0110: return((CHAR)208);
- case 0x0111: return((CHAR)176);
- case 0x0112: return((CHAR)162);
- case 0x0113: return((CHAR)178);
- case 0x0116: return((CHAR)204);
- case 0x0117: return((CHAR)236);
- case 0x0118: return((CHAR)202);
- case 0x0119: return((CHAR)234);
- case 0x0122: return((CHAR)163);
- case 0x0123: return((CHAR)179);
- case 0x0128: return((CHAR)165);
- case 0x0129: return((CHAR)181);
- case 0x012a: return((CHAR)164);
- case 0x012b: return((CHAR)180);
- case 0x012e: return((CHAR)199);
- case 0x012f: return((CHAR)231);
- case 0x0136: return((CHAR)166);
- case 0x0137: return((CHAR)182);
- case 0x0138: return((CHAR)174);
- case 0x013b: return((CHAR)167);
- case 0x013c: return((CHAR)183);
- case 0x0143: return((CHAR)168);
- case 0x0144: return((CHAR)184);
- case 0x0145: return((CHAR)209);
- case 0x014a: return((CHAR)175);
- case 0x014b: return((CHAR)191);
- case 0x014c: return((CHAR)210);
- case 0x014d: return((CHAR)242);
- case 0x0156: return((CHAR)169);
- case 0x0157: return((CHAR)185);
- case 0x0160: return((CHAR)170);
- case 0x0161: return((CHAR)186);
- case 0x0166: return((CHAR)171);
- case 0x0167: return((CHAR)187);
- case 0x0168: return((CHAR)215);
- case 0x0169: return((CHAR)247);
- case 0x016a: return((CHAR)223);
- case 0x016b: return((CHAR)255);
- case 0x0172: return((CHAR)217);
- case 0x0173: return((CHAR)249);
- case 0x017d: return((CHAR)172);
- case 0x017e: return((CHAR)188);
- default: return(tx_ident(c));
- }
- }
- int /* ISO 8859-15 Latin-9 */
- #ifdef CK_ANSIC
- tx_8859_15(USHORT c)
- #else
- tx_8859_15(c) USHORT c;
- #endif /* CK_ANSIC */
- {
- if (c < 0xa0)
- return((CHAR)(c & 0xff));
- switch(c) {
- case 0x20AC: return((CHAR)0xA4); /* Differs from Latin-1 in */
- case 0x0160: return((CHAR)0xAC); /* only eight places */
- case 0x0161: return((CHAR)0xA8);
- case 0x017D: return((CHAR)0xB4);
- case 0x017E: return((CHAR)0xB8);
- case 0x0152: return((CHAR)0xBC);
- case 0x0153: return((CHAR)0xBD);
- case 0x0178: return((CHAR)0xBE);
- default: return(tx_ident(c));
- }
- }
- int /* Old KOI-8 (ECMA 113 First Ed.) */
- #ifdef CK_ANSIC
- tx_koi8(USHORT c)
- #else
- tx_koi8(c) USHORT c;
- #endif /* CK_ANSIC */
- {
- if (c < 0xa0)
- return((CHAR)(c & 0xff));
- switch(c) {
- case 0x0410: return((CHAR)(225 & 0xff));
- case 0x0411: return((CHAR)(226 & 0xff));
- case 0x0412: return((CHAR)(247 & 0xff));
- case 0x0413: return((CHAR)(231 & 0xff));
- case 0x0414: return((CHAR)(228 & 0xff));
- case 0x0415: return((CHAR)(229 & 0xff));
- case 0x0416: return((CHAR)(246 & 0xff));
- case 0x0417: return((CHAR)(250 & 0xff));
- case 0x0418: return((CHAR)(233 & 0xff));
- case 0x0419: return((CHAR)(234 & 0xff));
- case 0x041a: return((CHAR)(235 & 0xff));
- case 0x041b: return((CHAR)(236 & 0xff));
- case 0x041c: return((CHAR)(237 & 0xff));
- case 0x041d: return((CHAR)(238 & 0xff));
- case 0x041e: return((CHAR)(239 & 0xff));
- case 0x041f: return((CHAR)(240 & 0xff));
- case 0x0420: return((CHAR)(242 & 0xff));
- case 0x0421: return((CHAR)(243 & 0xff));
- case 0x0422: return((CHAR)(244 & 0xff));
- case 0x0423: return((CHAR)(245 & 0xff));
- case 0x0424: return((CHAR)(230 & 0xff));
- case 0x0425: return((CHAR)(232 & 0xff));
- case 0x0426: return((CHAR)(227 & 0xff));
- case 0x0427: return((CHAR)(254 & 0xff));
- case 0x0428: return((CHAR)(251 & 0xff));
- case 0x0429: return((CHAR)(253 & 0xff));
- case 0x042b: return((CHAR)(249 & 0xff));
- case 0x042c: return((CHAR)(248 & 0xff));
- case 0x042d: return((CHAR)(252 & 0xff));
- case 0x042e: return((CHAR)(224 & 0xff));
- case 0x042f: return((CHAR)(241 & 0xff));
- case 0x0430: return((CHAR)(193 & 0xff));
- case 0x0431: return((CHAR)(194 & 0xff));
- case 0x0432: return((CHAR)(215 & 0xff));
- case 0x0433: return((CHAR)(199 & 0xff));
- case 0x0434: return((CHAR)(196 & 0xff));
- case 0x0435: return((CHAR)(197 & 0xff));
- case 0x0436: return((CHAR)(214 & 0xff));
- case 0x0437: return((CHAR)(218 & 0xff));
- case 0x0438: return((CHAR)(201 & 0xff));
- case 0x0439: return((CHAR)(202 & 0xff));
- case 0x043a: return((CHAR)(203 & 0xff));
- case 0x043b: return((CHAR)(204 & 0xff));
- case 0x043c: return((CHAR)(205 & 0xff));
- case 0x043d: return((CHAR)(206 & 0xff));
- case 0x043e: return((CHAR)(207 & 0xff));
- case 0x043f: return((CHAR)(208 & 0xff));
- case 0x0440: return((CHAR)(210 & 0xff));
- case 0x0441: return((CHAR)(211 & 0xff));
- case 0x0442: return((CHAR)(212 & 0xff));
- case 0x0443: return((CHAR)(213 & 0xff));
- case 0x0444: return((CHAR)(198 & 0xff));
- case 0x0445: return((CHAR)(200 & 0xff));
- case 0x0446: return((CHAR)(195 & 0xff));
- case 0x0447: return((CHAR)(222 & 0xff));
- case 0x0448: return((CHAR)(219 & 0xff));
- case 0x0449: return((CHAR)(221 & 0xff));
- case 0x044a: return((CHAR)(223 & 0xff));
- case 0x044b: return((CHAR)(217 & 0xff));
- case 0x044c: return((CHAR)(216 & 0xff));
- case 0x044d: return((CHAR)(220 & 0xff));
- case 0x044e: return((CHAR)(192 & 0xff));
- case 0x044f: return((CHAR)(209 & 0xff));
- default: return(tx_ident(c));
- }
- }
- int /* UCS-2 to KOI8-R (Russia) */
- #ifdef CK_ANSIC
- tx_koi8r(USHORT c)
- #else
- tx_koi8r(c) USHORT c;
- #endif /* CK_ANSIC */
- {
- if (c < 0x00A0)
- return((CHAR)(c & 0xff));
- switch(c) {
- case 0x00A0: return((CHAR)(154 & 0xff));
- case 0x00A9: return((CHAR)(191 & 0xff));
- case 0x00B0: return((CHAR)(156 & 0xff));
- case 0x00B2: return((CHAR)(157 & 0xff));
- case 0x00B7: return((CHAR)(158 & 0xff));
- case 0x00F7: return((CHAR)(159 & 0xff));
- case 0x0401: return((CHAR)(179 & 0xff));
- case 0x0410: return((CHAR)(225 & 0xff));
- case 0x0411: return((CHAR)(226 & 0xff));
- case 0x0412: return((CHAR)(247 & 0xff));
- case 0x0413: return((CHAR)(231 & 0xff));
- case 0x0414: return((CHAR)(228 & 0xff));
- case 0x0415: return((CHAR)(229 & 0xff));
- case 0x0416: return((CHAR)(246 & 0xff));
- case 0x0417: return((CHAR)(250 & 0xff));
- case 0x0418: return((CHAR)(233 & 0xff));
- case 0x0419: return((CHAR)(234 & 0xff));
- case 0x041A: return((CHAR)(235 & 0xff));
- case 0x041B: return((CHAR)(236 & 0xff));
- case 0x041C: return((CHAR)(237 & 0xff));
- case 0x041D: return((CHAR)(238 & 0xff));
- case 0x041E: return((CHAR)(239 & 0xff));
- case 0x041F: return((CHAR)(240 & 0xff));
- case 0x0420: return((CHAR)(242 & 0xff));
- case 0x0421: return((CHAR)(243 & 0xff));
- case 0x0422: return((CHAR)(244 & 0xff));
- case 0x0423: return((CHAR)(245 & 0xff));
- case 0x0424: return((CHAR)(230 & 0xff));
- case 0x0425: return((CHAR)(232 & 0xff));
- case 0x0426: return((CHAR)(227 & 0xff));
- case 0x0427: return((CHAR)(254 & 0xff));
- case 0x0428: return((CHAR)(251 & 0xff));
- case 0x0429: return((CHAR)(253 & 0xff));
- case 0x042A: return((CHAR)(255 & 0xff));
- case 0x042B: return((CHAR)(249 & 0xff));
- case 0x042C: return((CHAR)(248 & 0xff));
- case 0x042D: return((CHAR)(252 & 0xff));
- case 0x042E: return((CHAR)(224 & 0xff));
- case 0x042F: return((CHAR)(241 & 0xff));
- case 0x0430: return((CHAR)(193 & 0xff));
- case 0x0431: return((CHAR)(194 & 0xff));
- case 0x0432: return((CHAR)(215 & 0xff));
- case 0x0433: return((CHAR)(199 & 0xff));
- case 0x0434: return((CHAR)(196 & 0xff));
- case 0x0435: return((CHAR)(197 & 0xff));
- case 0x0436: return((CHAR)(214 & 0xff));
- case 0x0437: return((CHAR)(218 & 0xff));
- case 0x0438: return((CHAR)(201 & 0xff));
- case 0x0439: return((CHAR)(202 & 0xff));
- case 0x043A: return((CHAR)(203 & 0xff));
- case 0x043B: return((CHAR)(204 & 0xff));
- case 0x043C: return((CHAR)(205 & 0xff));
- case 0x043D: return((CHAR)(206 & 0xff));
- case 0x043E: return((CHAR)(207 & 0xff));
- case 0x043F: return((CHAR)(208 & 0xff));
- case 0x0440: return((CHAR)(210 & 0xff));
- case 0x0441: return((CHAR)(211 & 0xff));
- case 0x0442: return((CHAR)(212 & 0xff));
- case 0x0443: return((CHAR)(213 & 0xff));
- case 0x0444: return((CHAR)(198 & 0xff));
- case 0x0445: return((CHAR)(200 & 0xff));
- case 0x0446: return((CHAR)(195 & 0xff));
- case 0x0447: return((CHAR)(222 & 0xff));
- case 0x0448: return((CHAR)(219 & 0xff));
- case 0x0449: return((CHAR)(221 & 0xff));
- case 0x044A: return((CHAR)(223 & 0xff));
- case 0x044B: return((CHAR)(217 & 0xff));
- case 0x044C: return((CHAR)(216 & 0xff));
- case 0x044D: return((CHAR)(220 & 0xff));
- case 0x044E: return((CHAR)(192 & 0xff));
- case 0x044F: return((CHAR)(209 & 0xff));
- case 0x0451: return((CHAR)(163 & 0xff));
- case 0x2219: return((CHAR)(149 & 0xff));
- case 0x221A: return((CHAR)(150 & 0xff));
- case 0x2248: return((CHAR)(151 & 0xff));
- case 0x2264: return((CHAR)(152 & 0xff));
- case 0x2265: return((CHAR)(153 & 0xff));
- case 0x2320: return((CHAR)(147 & 0xff));
- case 0x2321: return((CHAR)(155 & 0xff));
- case 0x2500: return((CHAR)(128 & 0xff));
- case 0x2502: return((CHAR)(129 & 0xff));
- case 0x250C: return((CHAR)(130 & 0xff));
- case 0x2510: return((CHAR)(131 & 0xff));
- case 0x2514: return((CHAR)(132 & 0xff));
- case 0x2518: return((CHAR)(133 & 0xff));
- case 0x251C: return((CHAR)(134 & 0xff));
- case 0x2524: return((CHAR)(135 & 0xff));
- case 0x252C: return((CHAR)(136 & 0xff));
- case 0x2534: return((CHAR)(137 & 0xff));
- case 0x253C: return((CHAR)(138 & 0xff));
- case 0x2550: return((CHAR)(160 & 0xff));
- case 0x2551: return((CHAR)(161 & 0xff));
- case 0x2552: return((CHAR)(162 & 0xff));
- case 0x2553: return((CHAR)(164 & 0xff));
- case 0x2554: return((CHAR)(165 & 0xff));
- case 0x2555: return((CHAR)(166 & 0xff));
- case 0x2556: return((CHAR)(167 & 0xff));
- case 0x2557: return((CHAR)(168 & 0xff));
- case 0x2558: return((CHAR)(169 & 0xff));
- case 0x2559: return((CHAR)(170 & 0xff));
- case 0x255A: return((CHAR)(171 & 0xff));
- case 0x255B: return((CHAR)(172 & 0xff));
- case 0x255C: return((CHAR)(173 & 0xff));
- case 0x255D: return((CHAR)(174 & 0xff));
- case 0x255E: return((CHAR)(175 & 0xff));
- case 0x255F: return((CHAR)(176 & 0xff));
- case 0x2560: return((CHAR)(177 & 0xff));
- case 0x2561: return((CHAR)(178 & 0xff));
- case 0x2562: return((CHAR)(180 & 0xff));
- case 0x2563: return((CHAR)(181 & 0xff));
- case 0x2564: return((CHAR)(182 & 0xff));
- case 0x2565: return((CHAR)(183 & 0xff));
- case 0x2566: return((CHAR)(184 & 0xff));
- case 0x2567: return((CHAR)(185 & 0xff));
- case 0x2568: return((CHAR)(186 & 0xff));
- case 0x2569: return((CHAR)(187 & 0xff));
- case 0x256A: return((CHAR)(188 & 0xff));
- case 0x256B: return((CHAR)(189 & 0xff));
- case 0x256C: return((CHAR)(190 & 0xff));
- case 0x2580: return((CHAR)(139 & 0xff));
- case 0x2584: return((CHAR)(140 & 0xff));
- case 0x2588: return((CHAR)(141 & 0xff));
- case 0x258C: return((CHAR)(142 & 0xff));
- case 0x2590: return((CHAR)(143 & 0xff));
- case 0x2591: return((CHAR)(144 & 0xff));
- case 0x2592: return((CHAR)(145 & 0xff));
- case 0x2593: return((CHAR)(146 & 0xff));
- case 0x25A0: return((CHAR)(148 & 0xff));
- default: return(tx_ident(c));
- }
- }
- int /* KOI8-U (Ukraine) */
- #ifdef CK_ANSIC
- tx_koi8u(USHORT c)
- #else
- tx_koi8u(c) USHORT c;
- #endif /* CK_ANSIC */
- {
- if (c < 0xa0)
- return((CHAR)(c & 0xff));
- switch(c) {
- case 0x00A0: return((CHAR)(154 & 0xff));
- case 0x00A9: return((CHAR)(191 & 0xff));
- case 0x00B0: return((CHAR)(156 & 0xff));
- case 0x00B2: return((CHAR)(157 & 0xff));
- case 0x00B7: return((CHAR)(158 & 0xff));
- case 0x00F7: return((CHAR)(159 & 0xff));
- case 0x0401: return((CHAR)(179 & 0xff));
- case 0x0404: return((CHAR)(180 & 0xff));
- case 0x0406: return((CHAR)(182 & 0xff));
- case 0x0407: return((CHAR)(183 & 0xff));
- case 0x0410: return((CHAR)(225 & 0xff));
- case 0x0411: return((CHAR)(226 & 0xff));
- case 0x0412: return((CHAR)(247 & 0xff));
- case 0x0413: return((CHAR)(231 & 0xff));
- case 0x0414: return((CHAR)(228 & 0xff));
- case 0x0415: return((CHAR)(229 & 0xff));
- case 0x0416: return((CHAR)(246 & 0xff));
- case 0x0417: return((CHAR)(250 & 0xff));
- case 0x0418: return((CHAR)(233 & 0xff));
- case 0x0419: return((CHAR)(234 & 0xff));
- case 0x041A: return((CHAR)(235 & 0xff));
- case 0x041B: return((CHAR)(236 & 0xff));
- case 0x041C: return((CHAR)(237 & 0xff));
- case 0x041D: return((CHAR)(238 & 0xff));
- case 0x041E: return((CHAR)(239 & 0xff));
- case 0x041F: return((CHAR)(240 & 0xff));
- case 0x0420: return((CHAR)(242 & 0xff));
- case 0x0421: return((CHAR)(243 & 0xff));
- case 0x0422: return((CHAR)(244 & 0xff));
- case 0x0423: return((CHAR)(245 & 0xff));
- case 0x0424: return((CHAR)(230 & 0xff));
- case 0x0425: return((CHAR)(232 & 0xff));
- case 0x0426: return((CHAR)(227 & 0xff));
- case 0x0427: return((CHAR)(254 & 0xff));
- case 0x0428: return((CHAR)(251 & 0xff));
- case 0x0429: return((CHAR)(253 & 0xff));
- case 0x042A: return((CHAR)(255 & 0xff));
- case 0x042B: return((CHAR)(249 & 0xff));
- case 0x042C: return((CHAR)(248 & 0xff));
- case 0x042D: return((CHAR)(252 & 0xff));
- case 0x042E: return((CHAR)(224 & 0xff));
- case 0x042F: return((CHAR)(241 & 0xff));
- case 0x0430: return((CHAR)(193 & 0xff));
- case 0x0431: return((CHAR)(194 & 0xff));
- case 0x0432: return((CHAR)(215 & 0xff));
- case 0x0433: return((CHAR)(199 & 0xff));
- case 0x0434: return((CHAR)(196 & 0xff));
- case 0x0435: return((CHAR)(197 & 0xff));
- case 0x0436: return((CHAR)(214 & 0xff));
- case 0x0437: return((CHAR)(218 & 0xff));
- case 0x0438: return((CHAR)(201 & 0xff));
- case 0x0439: return((CHAR)(202 & 0xff));
- case 0x043A: return((CHAR)(203 & 0xff));
- case 0x043B: return((CHAR)(204 & 0xff));
- case 0x043C: return((CHAR)(205 & 0xff));
- case 0x043D: return((CHAR)(206 & 0xff));
- case 0x043E: return((CHAR)(207 & 0xff));
- case 0x043F: return((CHAR)(208 & 0xff));
- case 0x0440: return((CHAR)(210 & 0xff));
- case 0x0441: return((CHAR)(211 & 0xff));
- case 0x0442: return((CHAR)(212 & 0xff));
- case 0x0443: return((CHAR)(213 & 0xff));
- case 0x0444: return((CHAR)(198 & 0xff));
- case 0x0445: return((CHAR)(200 & 0xff));
- case 0x0446: return((CHAR)(195 & 0xff));
- case 0x0447: return((CHAR)(222 & 0xff));
- case 0x0448: return((CHAR)(219 & 0xff));
- case 0x0449: return((CHAR)(221 & 0xff));
- case 0x044A: return((CHAR)(223 & 0xff));
- case 0x044B: return((CHAR)(217 & 0xff));
- case 0x044C: return((CHAR)(216 & 0xff));
- case 0x044D: return((CHAR)(220 & 0xff));
- case 0x044E: return((CHAR)(192 & 0xff));
- case 0x044F: return((CHAR)(209 & 0xff));
- case 0x0451: return((CHAR)(163 & 0xff));
- case 0x0454: return((CHAR)(164 & 0xff));
- case 0x0456: return((CHAR)(166 & 0xff));
- case 0x0457: return((CHAR)(167 & 0xff));
- case 0x0490: return((CHAR)(189 & 0xff));
- case 0x0491: return((CHAR)(173 & 0xff));
- case 0x2219: return((CHAR)(149 & 0xff));
- case 0x221A: return((CHAR)(150 & 0xff));
- case 0x2248: return((CHAR)(151 & 0xff));
- case 0x2264: return((CHAR)(152 & 0xff));
- case 0x2265: return((CHAR)(153 & 0xff));
- case 0x2320: return((CHAR)(147 & 0xff));
- case 0x2321: return((CHAR)(155 & 0xff));
- case 0x2500: return((CHAR)(128 & 0xff));
- case 0x2502: return((CHAR)(129 & 0xff));
- case 0x250C: return((CHAR)(130 & 0xff));
- case 0x2510: return((CHAR)(131 & 0xff));
- case 0x2514: return((CHAR)(132 & 0xff));
- case 0x2518: return((CHAR)(133 & 0xff));
- case 0x251C: return((CHAR)(134 & 0xff));
- case 0x2524: return((CHAR)(135 & 0xff));
- case 0x252C: return((CHAR)(136 & 0xff));
- case 0x2534: return((CHAR)(137 & 0xff));
- case 0x253C: return((CHAR)(138 & 0xff));
- case 0x2550: return((CHAR)(160 & 0xff));
- case 0x2551: return((CHAR)(161 & 0xff));
- case 0x2552: return((CHAR)(162 & 0xff));
- case 0x2554: return((CHAR)(165 & 0xff));
- case 0x2557: return((CHAR)(168 & 0xff));
- case 0x2558: return((CHAR)(169 & 0xff));
- case 0x2559: return((CHAR)(170 & 0xff));
- case 0x255A: return((CHAR)(171 & 0xff));
- case 0x255B: return((CHAR)(172 & 0xff));
- case 0x255D: return((CHAR)(174 & 0xff));
- case 0x255E: return((CHAR)(175 & 0xff));
- case 0x255F: return((CHAR)(176 & 0xff));
- case 0x2560: return((CHAR)(177 & 0xff));
- case 0x2561: return((CHAR)(178 & 0xff));
- case 0x2563: return((CHAR)(181 & 0xff));
- case 0x2566: return((CHAR)(184 & 0xff));
- case 0x2567: return((CHAR)(185 & 0xff));
- case 0x2568: return((CHAR)(186 & 0xff));
- case 0x2569: return((CHAR)(187 & 0xff));
- case 0x256A: return((CHAR)(188 & 0xff));
- case 0x256C: return((CHAR)(190 & 0xff));
- case 0x2580: return((CHAR)(139 & 0xff));
- case 0x2584: return((CHAR)(140 & 0xff));
- case 0x2588: return((CHAR)(141 & 0xff));
- case 0x258C: return((CHAR)(142 & 0xff));
- case 0x2590: return((CHAR)(143 & 0xff));
- case 0x2591: return((CHAR)(144 & 0xff));
- case 0x2592: return((CHAR)(145 & 0xff));
- case 0x2593: return((CHAR)(146 & 0xff));
- case 0x25A0: return((CHAR)(148 & 0xff));
- default: return(tx_ident(c));
- }
- }
- int /* DEC MCS */
- #ifdef CK_ANSIC
- tx_decmcs(USHORT c)
- #else
- tx_decmcs(c) USHORT c;
- #endif /* CK_ANSIC */
- {
- if (c < 0xa0)
- return((CHAR)(c & 0xff));
- switch(c) {
- case 0x00a6:
- case 0x00a8:
- case 0x00ac:
- case 0x00ae:
- case 0x00af:
- case 0x00b4:
- case 0x00b8:
- case 0x00be:
- case 0x00d0:
- case 0x00de:
- case 0x00f0:
- case 0x00fe:
- case 0x00ff:
- return(-1); /* These are all undefined in DECMCS */
- case 0x00a4: /* Currency sign */
- return((CHAR)0xa8);
- case 0x0152: /* OE */
- return((CHAR)0xd7);
- case 0x0153: /* oe */
- return((CHAR)0xf7);
- default: return(tx_ident(c));
- }
- }
- int /* NeXTSTEP */
- #ifdef CK_ANSIC
- tx_nextstep(USHORT c)
- #else
- tx_nextstep(c) USHORT c;
- #endif /* CK_ANSIC */
- {
- if (c < 0x80) /* Has C1 graphics */
- return((CHAR)(c & 0xff));
- switch (c) {
- case 0x00a0: return((CHAR)(128 & 0xff));
- case 0x00a1: return((CHAR)(161 & 0xff));
- case 0x00a2: return((CHAR)(162 & 0xff));
- case 0x00a3: return((CHAR)(163 & 0xff));
- case 0x00a4: return((CHAR)(168 & 0xff));
- case 0x00a5: return((CHAR)(165 & 0xff));
- case 0x00a6: return((CHAR)(181 & 0xff));
- case 0x00a7: return((CHAR)(167 & 0xff));
- case 0x00a8: return((CHAR)(200 & 0xff));
- case 0x00a9: return((CHAR)(160 & 0xff));
- case 0x00aa: return((CHAR)(227 & 0xff));
- case 0x00ab: return((CHAR)(171 & 0xff));
- case 0x00ac: return((CHAR)(190 & 0xff));
- case 0x00ae: return((CHAR)(176 & 0xff));
- case 0x00af: return((CHAR)(197 & 0xff));
- case 0x00b1: return((CHAR)(209 & 0xff));
- case 0x00b2: return((CHAR)(201 & 0xff));
- case 0x00b3: return((CHAR)(204 & 0xff));
- case 0x00b4: return((CHAR)(194 & 0xff));
- case 0x00b5: return((CHAR)(157 & 0xff));
- case 0x00b6: return((CHAR)(182 & 0xff));
- case 0x00b7: return((CHAR)(180 & 0xff));
- case 0x00b8: return((CHAR)(203 & 0xff));
- case 0x00b9: return((CHAR)(192 & 0xff));
- case 0x00ba: return((CHAR)(235 & 0xff));
- case 0x00bb: return((CHAR)(187 & 0xff));
- case 0x00bc: return((CHAR)(210 & 0xff));
- case 0x00bd: return((CHAR)(211 & 0xff));
- case 0x00be: return((CHAR)(212 & 0xff));
- case 0x00bf: return((CHAR)(191 & 0xff));
- case 0x00c0: return((CHAR)(129 & 0xff));
- case 0x00c1: return((CHAR)(130 & 0xff));
- case 0x00c2: return((CHAR)(131 & 0xff));
- case 0x00c3: return((CHAR)(132 & 0xff));
- case 0x00c4: return((CHAR)(133 & 0xff));
- case 0x00c5: return((CHAR)(134 & 0xff));
- case 0x00c6: return((CHAR)(225 & 0xff));
- case 0x00c7: return((CHAR)(135 & 0xff));
- case 0x00c8: return((CHAR)(136 & 0xff));
- case 0x00c9: return((CHAR)(137 & 0xff));
- case 0x00ca: return((CHAR)(138 & 0xff));
- case 0x00cb: return((CHAR)(139 & 0xff));
- case 0x00cc: return((CHAR)(140 & 0xff));
- case 0x00cd: return((CHAR)(141 & 0xff));
- case 0x00ce: return((CHAR)(142 & 0xff));
- case 0x00cf: return((CHAR)(143 & 0xff));
- case 0x00d0: return((CHAR)(144 & 0xff));
- case 0x00d1: return((CHAR)(145 & 0xff));
- case 0x00d2: return((CHAR)(146 & 0xff));
- case 0x00d3: return((CHAR)(147 & 0xff));
- case 0x00d4: return((CHAR)(148 & 0xff));
- case 0x00d5: return((CHAR)(149 & 0xff));
- case 0x00d6: return((CHAR)(150 & 0xff));
- case 0x00d7: return((CHAR)(158 & 0xff));
- case 0x00d8: return((CHAR)(233 & 0xff));
- case 0x00d9: return((CHAR)(151 & 0xff));
- case 0x00da: return((CHAR)(152 & 0xff));
- case 0x00db: return((CHAR)(153 & 0xff));
- case 0x00dc: return((CHAR)(154 & 0xff));
- case 0x00dd: return((CHAR)(155 & 0xff));
- case 0x00de: return((CHAR)(156 & 0xff));
- case 0x00df: return((CHAR)(251 & 0xff));
- case 0x00e0: return((CHAR)(213 & 0xff));
- case 0x00e1: return((CHAR)(214 & 0xff));
- case 0x00e2: return((CHAR)(215 & 0xff));
- case 0x00e3: return((CHAR)(216 & 0xff));
- case 0x00e4: return((CHAR)(217 & 0xff));
- case 0x00e5: return((CHAR)(218 & 0xff));
- case 0x00e6: return((CHAR)(241 & 0xff));
- case 0x00e7: return((CHAR)(219 & 0xff));
- case 0x00e8: return((CHAR)(220 & 0xff));
- case 0x00e9: return((CHAR)(221 & 0xff));
- case 0x00ea: return((CHAR)(222 & 0xff));
- case 0x00eb: return((CHAR)(223 & 0xff));
- case 0x00ec: return((CHAR)(224 & 0xff));
- case 0x00ed: return((CHAR)(226 & 0xff));
- case 0x00ee: return((CHAR)(228 & 0xff));
- case 0x00ef: return((CHAR)(229 & 0xff));
- case 0x00f0: return((CHAR)(230 & 0xff));
- case 0x00f1: return((CHAR)(231 & 0xff));
- case 0x00f2: return((CHAR)(236 & 0xff));
- case 0x00f3: return((CHAR)(237 & 0xff));
- case 0x00f4: return((CHAR)(238 & 0xff));
- case 0x00f5: return((CHAR)(239 & 0xff));
- case 0x00f6: return((CHAR)(240 & 0xff));
- case 0x00f7: return((CHAR)(159 & 0xff));
- case 0x00f8: return((CHAR)(249 & 0xff));
- case 0x00f9: return((CHAR)(242 & 0xff));
- case 0x00fa: return((CHAR)(243 & 0xff));
- case 0x00fb: return((CHAR)(244 & 0xff));
- case 0x00fc: return((CHAR)(246 & 0xff));
- case 0x00fd: return((CHAR)(247 & 0xff));
- case 0x00fe: return((CHAR)(252 & 0xff));
- case 0x00ff: return((CHAR)(253 & 0xff));
- case 0x0131: return((CHAR)(245 & 0xff));
- case 0x0141: return((CHAR)(232 & 0xff));
- case 0x0142: return((CHAR)(248 & 0xff));
- case 0x0152: return((CHAR)(234 & 0xff));
- case 0x0153: return((CHAR)(250 & 0xff));
- case 0x0192: return((CHAR)(166 & 0xff));
- case 0x02c6: return((CHAR)(195 & 0xff));
- case 0x02c7: return((CHAR)(207 & 0xff));
- case 0x02cb: return((CHAR)(193 & 0xff));
- case 0x02d8: return((CHAR)(198 & 0xff));
- case 0x02d9: return((CHAR)(199 & 0xff));
- case 0x02da: return((CHAR)(202 & 0xff));
- case 0x02db: return((CHAR)(206 & 0xff));
- case 0x02dc: return((CHAR)(196 & 0xff));
- case 0x02dd: return((CHAR)(205 & 0xff));
- case 0x2013: return((CHAR)(177 & 0xff));
- case 0x2014: return((CHAR)(208 & 0xff));
- case 0x2019: return((CHAR)(169 & 0xff));
- case 0x201a: return((CHAR)(184 & 0xff));
- case 0x201c: return((CHAR)(170 & 0xff));
- case 0x201d: return((CHAR)(186 & 0xff));
- case 0x201e: return((CHAR)(185 & 0xff));
- case 0x2020: return((CHAR)(178 & 0xff));
- case 0x2021: return((CHAR)(179 & 0xff));
- case 0x2022: return((CHAR)(183 & 0xff));
- case 0x2026: return((CHAR)(188 & 0xff));
- case 0x2030: return((CHAR)(189 & 0xff));
- case 0x2039: return((CHAR)(172 & 0xff));
- case 0x203a: return((CHAR)(173 & 0xff));
- case 0x2044: return((CHAR)(164 & 0xff));
- case 0xfb01: return((CHAR)(174 & 0xff));
- case 0xfb02: return((CHAR)(175 & 0xff));
- default: return(tx_punc(c));
- }
- }
- int /* DG International */
- #ifdef CK_ANSIC
- tx_dgi(USHORT c)
- #else
- tx_dgi(c) USHORT c;
- #endif /* CK_ANSIC */
- {
- if (c < 0xa0)
- return((CHAR)(c & 0xff));
- switch(c) {
- case 0x00a0: return((CHAR)(160 & 0xff));
- case 0x00a1: return((CHAR)(171 & 0xff));
- case 0x00a2: return((CHAR)(167 & 0xff));
- case 0x00a3: return((CHAR)(168 & 0xff));
- case 0x00a4: return((CHAR)(166 & 0xff));
- case 0x00a5: return((CHAR)(181 & 0xff));
- case 0x00a7: return((CHAR)(187 & 0xff));
- case 0x00a8: return((CHAR)(189 & 0xff));
- case 0x00a9: return((CHAR)(173 & 0xff));
- case 0x00aa: return((CHAR)(169 & 0xff));
- case 0x00ab: return((CHAR)(177 & 0xff));
- case 0x00ac: return((CHAR)(161 & 0xff));
- case 0x00ae: return((CHAR)(174 & 0xff));
- case 0x00b0: return((CHAR)(188 & 0xff));
- case 0x00b1: return((CHAR)(182 & 0xff));
- case 0x00b2: return((CHAR)(164 & 0xff));
- case 0x00b3: return((CHAR)(165 & 0xff));
- case 0x00b4: return((CHAR)(190 & 0xff));
- case 0x00b5: return((CHAR)(163 & 0xff));
- case 0x00b6: return((CHAR)(178 & 0xff));
- case 0x00b7: return((CHAR)(185 & 0xff));
- case 0x00b8: return((CHAR)(186 & 0xff));
- case 0x00ba: return((CHAR)(170 & 0xff));
- case 0x00bb: return((CHAR)(176 & 0xff));
- case 0x00bd: return((CHAR)(162 & 0xff));
- case 0x00bf: return((CHAR)(172 & 0xff));
- case 0x00c0: return((CHAR)(193 & 0xff));
- case 0x00c1: return((CHAR)(192 & 0xff));
- case 0x00c2: return((CHAR)(194 & 0xff));
- case 0x00c3: return((CHAR)(196 & 0xff));
- case 0x00c4: return((CHAR)(195 & 0xff));
- case 0x00c5: return((CHAR)(197 & 0xff));
- case 0x00c6: return((CHAR)(198 & 0xff));
- case 0x00c7: return((CHAR)(199 & 0xff));
- case 0x00c8: return((CHAR)(201 & 0xff));
- case 0x00c9: return((CHAR)(200 & 0xff));
- case 0x00ca: return((CHAR)(202 & 0xff));
- case 0x00cb: return((CHAR)(203 & 0xff));
- case 0x00cc: return((CHAR)(205 & 0xff));
- case 0x00cd: return((CHAR)(204 & 0xff));
- case 0x00ce: return((CHAR)(206 & 0xff));
- case 0x00cf: return((CHAR)(207 & 0xff));
- case 0x00d1: return((CHAR)(208 & 0xff));
- case 0x00d2: return((CHAR)(210 & 0xff));
- case 0x00d3: return((CHAR)(209 & 0xff));
- case 0x00d4: return((CHAR)(211 & 0xff));
- case 0x00d5: return((CHAR)(213 & 0xff));
- case 0x00d6: return((CHAR)(212 & 0xff));
- case 0x00d8: return((CHAR)(214 & 0xff));
- case 0x00d9: return((CHAR)(217 & 0xff));
- case 0x00da: return((CHAR)(216 & 0xff));
- case 0x00db: return((CHAR)(218 & 0xff));
- case 0x00dc: return((CHAR)(219 & 0xff));
- case 0x00df: return((CHAR)(252 & 0xff));
- case 0x00e0: return((CHAR)(225 & 0xff));
- case 0x00e1: return((CHAR)(224 & 0xff));
- case 0x00e2: return((CHAR)(226 & 0xff));
- case 0x00e3: return((CHAR)(228 & 0xff));
- case 0x00e4: return((CHAR)(227 & 0xff));
- case 0x00e5: return((CHAR)(229 & 0xff));
- case 0x00e6: return((CHAR)(230 & 0xff));
- case 0x00e7: return((CHAR)(231 & 0xff));
- case 0x00e8: return((CHAR)(233 & 0xff));
- case 0x00e9: return((CHAR)(232 & 0xff));
- case 0x00ea: return((CHAR)(234 & 0xff));
- case 0x00eb: return((CHAR)(235 & 0xff));
- case 0x00ec: return((CHAR)(237 & 0xff));
- case 0x00ed: return((CHAR)(236 & 0xff));
- case 0x00ee: return((CHAR)(238 & 0xff));
- case 0x00ef: return((CHAR)(239 & 0xff));
- case 0x00f1: return((CHAR)(240 & 0xff));
- case 0x00f2: return((CHAR)(242 & 0xff));
- case 0x00f3: return((CHAR)(241 & 0xff));
- case 0x00f4: return((CHAR)(243 & 0xff));
- case 0x00f5: return((CHAR)(245 & 0xff));
- case 0x00f6: return((CHAR)(244 & 0xff));
- case 0x00f8: return((CHAR)(246 & 0xff));
- case 0x00f9: return((CHAR)(249 & 0xff));
- case 0x00fa: return((CHAR)(248 & 0xff));
- case 0x00fb: return((CHAR)(250 & 0xff));
- case 0x00fc: return((CHAR)(251 & 0xff));
- case 0x00ff: return((CHAR)(253 & 0xff));
- case 0x0153: return((CHAR)(247 & 0xff));
- case 0x0178: return((CHAR)(221 & 0xff));
- case 0x0192: return((CHAR)(180 & 0xff));
- case 0x0276: return((CHAR)(215 & 0xff));
- case 0x2021: return((CHAR)(175 & 0xff));
- case 0x2122: return((CHAR)(179 & 0xff));
- case 0x2191: return((CHAR)(191 & 0xff));
- case 0x2264: return((CHAR)(183 & 0xff));
- case 0x2265: return((CHAR)(184 & 0xff));
- case 0x2588: return((CHAR)(255 & 0xff));
- default: return(tx_punc(c));
- }
- }
- int /* Macintosh Latin */
- #ifdef CK_ANSIC
- tx_maclatin(USHORT c)
- #else
- tx_maclatin(c) USHORT c;
- #endif /* CK_ANSIC */
- {
- if (c < 0x80) /* Has C1 graphics */
- return((CHAR)(c & 0xff));
- switch (c) {
- case 0x00a0: return((CHAR)(202 & 0xff));
- case 0x00a1: return((CHAR)(193 & 0xff));
- case 0x00a2: return((CHAR)(162 & 0xff));
- case 0x00a3: return((CHAR)(163 & 0xff));
- case 0x00a4: return((CHAR)(219 & 0xff));
- case 0x00a5: return((CHAR)(180 & 0xff));
- case 0x00a7: return((CHAR)(164 & 0xff));
- case 0x00a8: return((CHAR)(172 & 0xff));
- case 0x00a9: return((CHAR)(169 & 0xff));
- case 0x00aa: return((CHAR)(187 & 0xff));
- case 0x00ab: return((CHAR)(199 & 0xff));
- case 0x00ac: return((CHAR)(194 & 0xff));
- case 0x00ae: return((CHAR)(168 & 0xff));
- case 0x00af: return((CHAR)(248 & 0xff));
- case 0x00b0: return((CHAR)(161 & 0xff));
- case 0x00b1: return((CHAR)(177 & 0xff));
- case 0x00b4: return((CHAR)(171 & 0xff));
- case 0x00b5: return((CHAR)(181 & 0xff));
- case 0x00b6: return((CHAR)(166 & 0xff));
- case 0x00b7: return((CHAR)(225 & 0xff));
- case 0x00b8: return((CHAR)(252 & 0xff));
- case 0x00ba: return((CHAR)(188 & 0xff));
- case 0x00bb: return((CHAR)(200 & 0xff));
- case 0x00bf: return((CHAR)(192 & 0xff));
- case 0x00c0: return((CHAR)(203 & 0xff));
- case 0x00c1: return((CHAR)(231 & 0xff));
- case 0x00c2: return((CHAR)(229 & 0xff));
- case 0x00c3: return((CHAR)(204 & 0xff));
- case 0x00c4: return((CHAR)(128 & 0xff));
- case 0x00c5: return((CHAR)(129 & 0xff));
- case 0x00c6: return((CHAR)(174 & 0xff));
- case 0x00c7: return((CHAR)(130 & 0xff));
- case 0x00c8: return((CHAR)(233 & 0xff));
- case 0x00c9: return((CHAR)(131 & 0xff));
- case 0x00ca: return((CHAR)(230 & 0xff));
- case 0x00cb: return((CHAR)(232 & 0xff));
- case 0x00cc: return((CHAR)(237 & 0xff));
- case 0x00cd: return((CHAR)(234 & 0xff));
- case 0x00ce: return((CHAR)(235 & 0xff));
- case 0x00cf: return((CHAR)(236 & 0xff));
- case 0x00d0: return((CHAR)(220 & 0xff));
- case 0x00d1: return((CHAR)(132 & 0xff));
- case 0x00d2: return((CHAR)(241 & 0xff));
- case 0x00d3: return((CHAR)(238 & 0xff));
- case 0x00d4: return((CHAR)(239 & 0xff));
- case 0x00d5: return((CHAR)(205 & 0xff));
- case 0x00d6: return((CHAR)(133 & 0xff));
- case 0x00d8: return((CHAR)(175 & 0xff));
- case 0x00d9: return((CHAR)(244 & 0xff));
- case 0x00da: return((CHAR)(242 & 0xff));
- case 0x00db: return((CHAR)(243 & 0xff));
- case 0x00dc: return((CHAR)(134 & 0xff));
- case 0x00dd: return((CHAR)(160 & 0xff));
- case 0x00de: return((CHAR)(222 & 0xff));
- case 0x00df: return((CHAR)(167 & 0xff));
- case 0x00e0: return((CHAR)(136 & 0xff));
- case 0x00e1: return((CHAR)(135 & 0xff));
- case 0x00e2: return((CHAR)(137 & 0xff));
- case 0x00e3: return((CHAR)(139 & 0xff));
- case 0x00e4: return((CHAR)(138 & 0xff));
- case 0x00e5: return((CHAR)(140 & 0xff));
- case 0x00e6: return((CHAR)(190 & 0xff));
- case 0x00e7: return((CHAR)(141 & 0xff));
- case 0x00e8: return((CHAR)(143 & 0xff));
- case 0x00e9: return((CHAR)(142 & 0xff));
- case 0x00ea: return((CHAR)(144 & 0xff));
- case 0x00eb: return((CHAR)(145 & 0xff));
- case 0x00ec: return((CHAR)(147 & 0xff));
- case 0x00ed: return((CHAR)(146 & 0xff));
- case 0x00ee: return((CHAR)(148 & 0xff));
- case 0x00ef: return((CHAR)(149 & 0xff));
- case 0x00f0: return((CHAR)(221 & 0xff));
- case 0x00f1: return((CHAR)(150 & 0xff));
- case 0x00f2: return((CHAR)(152 & 0xff));
- case 0x00f3: return((CHAR)(151 & 0xff));
- case 0x00f4: return((CHAR)(153 & 0xff));
- case 0x00f5: return((CHAR)(155 & 0xff));
- case 0x00f6: return((CHAR)(154 & 0xff));
- case 0x00f7: return((CHAR)(214 & 0xff));
- case 0x00f8: return((CHAR)(191 & 0xff));
- case 0x00f9: return((CHAR)(157 & 0xff));
- case 0x00fa: return((CHAR)(156 & 0xff));
- case 0x00fb: return((CHAR)(158 & 0xff));
- case 0x00fc: return((CHAR)(159 & 0xff));
- case 0x00fd: return((CHAR)(224 & 0xff));
- case 0x00fe: return((CHAR)(223 & 0xff));
- case 0x00ff: return((CHAR)(216 & 0xff));
- case 0x0131: return((CHAR)(245 & 0xff));
- case 0x0152: return((CHAR)(206 & 0xff));
- case 0x0153: return((CHAR)(207 & 0xff));
- case 0x0178: return((CHAR)(217 & 0xff));
- case 0x0192: return((CHAR)(196 & 0xff));
- case 0x02c6: return((CHAR)(246 & 0xff));
- case 0x02c7: return((CHAR)(255 & 0xff));
- case 0x02d8: return((CHAR)(249 & 0xff));
- case 0x02d9: return((CHAR)(250 & 0xff));
- case 0x02da: return((CHAR)(251 & 0xff));
- case 0x02db: return((CHAR)(254 & 0xff));
- case 0x02dc: return((CHAR)(247 & 0xff));
- case 0x02dd: return((CHAR)(253 & 0xff));
- case 0x03c0: return((CHAR)(185 & 0xff));
- case 0x2013: return((CHAR)(208 & 0xff));
- case 0x2014: return((CHAR)(209 & 0xff));
- case 0x2018: return((CHAR)(212 & 0xff));
- case 0x2019: return((CHAR)(213 & 0xff));
- case 0x201a: return((CHAR)(226 & 0xff));
- case 0x201c: return((CHAR)(210 & 0xff));
- case 0x201d: return((CHAR)(211 & 0xff));
- case 0x201e: return((CHAR)(227 & 0xff));
- case 0x2022: return((CHAR)(165 & 0xff));
- case 0x2026: return((CHAR)(201 & 0xff));
- case 0x2030: return((CHAR)(228 & 0xff));
- case 0x2044: return((CHAR)(218 & 0xff));
- case 0x2122: return((CHAR)(170 & 0xff));
- case 0x2126: return((CHAR)(189 & 0xff));
- case 0x2202: return((CHAR)(182 & 0xff));
- case 0x2206: return((CHAR)(198 & 0xff));
- case 0x220f: return((CHAR)(184 & 0xff));
- case 0x2211: return((CHAR)(183 & 0xff));
- case 0x221a: return((CHAR)(195 & 0xff));
- case 0x221e: return((CHAR)(176 & 0xff));
- case 0x222b: return((CHAR)(186 & 0xff));
- case 0x2248: return((CHAR)(197 & 0xff));
- case 0x2260: return((CHAR)(173 & 0xff));
- case 0x2264: return((CHAR)(178 & 0xff));
- case 0x2265: return((CHAR)(179 & 0xff));
- case 0x25ca: return((CHAR)(215 & 0xff));
- case 0xf8ff: return((CHAR)(240 & 0xff));
- default: return(tx_punc(c));
- }
- }
- int /* Apple QuickDraw / CP10000 */
- #ifdef CK_ANSIC
- tx_quickdraw(USHORT c)
- #else
- tx_quickdraw(c) USHORT c;
- #endif /* CK_ANSIC */
- {
- if (c < 0x80) /* Has C1 graphics */
- return((CHAR)(c & 0xff));
- switch (c) {
- case 0x00a0: return((CHAR)(202 & 0xff));
- case 0x00a1: return((CHAR)(193 & 0xff));
- case 0x00a2: return((CHAR)(162 & 0xff));
- case 0x00a3: return((CHAR)(163 & 0xff));
- case 0x00a4: return((CHAR)(219 & 0xff));
- case 0x00a5: return((CHAR)(180 & 0xff));
- case 0x00a7: return((CHAR)(164 & 0xff));
- case 0x00a8: return((CHAR)(172 & 0xff));
- case 0x00a9: return((CHAR)(169 & 0xff));
- case 0x00aa: return((CHAR)(187 & 0xff));
- case 0x00ab: return((CHAR)(199 & 0xff));
- case 0x00ac: return((CHAR)(194 & 0xff));
- case 0x00ae: return((CHAR)(168 & 0xff));
- case 0x00af: return((CHAR)(248 & 0xff));
- case 0x00b0: return((CHAR)(161 & 0xff));
- case 0x00b1: return((CHAR)(177 & 0xff));
- case 0x00b4: return((CHAR)(171 & 0xff));
- case 0x00b5: return((CHAR)(181 & 0xff));
- case 0x00b6: return((CHAR)(166 & 0xff));
- case 0x00b7: return((CHAR)(225 & 0xff));
- case 0x00b8: return((CHAR)(252 & 0xff));
- case 0x00ba: return((CHAR)(188 & 0xff));
- case 0x00bb: return((CHAR)(200 & 0xff));
- case 0x00bf: return((CHAR)(192 & 0xff));
- case 0x00c0: return((CHAR)(203 & 0xff));
- case 0x00c1: return((CHAR)(231 & 0xff));
- case 0x00c2: return((CHAR)(229 & 0xff));
- case 0x00c3: return((CHAR)(204 & 0xff));
- case 0x00c4: return((CHAR)(128 & 0xff));
- case 0x00c5: return((CHAR)(129 & 0xff));
- case 0x00c6: return((CHAR)(174 & 0xff));
- case 0x00c7: return((CHAR)(130 & 0xff));
- case 0x00c8: return((CHAR)(233 & 0xff));
- case 0x00c9: return((CHAR)(131 & 0xff));
- case 0x00ca: return((CHAR)(230 & 0xff));
- case 0x00cb: return((CHAR)(232 & 0xff));
- case 0x00cc: return((CHAR)(237 & 0xff));
- case 0x00cd: return((CHAR)(234 & 0xff));
- case 0x00ce: return((CHAR)(235 & 0xff));
- case 0x00cf: return((CHAR)(236 & 0xff));
- case 0x2039: return((CHAR)(220 & 0xff));
- case 0x00d1: return((CHAR)(132 & 0xff));
- case 0x00d2: return((CHAR)(241 & 0xff));
- case 0x00d3: return((CHAR)(238 & 0xff));
- case 0x00d4: return((CHAR)(239 & 0xff));
- case 0x00d5: return((CHAR)(205 & 0xff));
- case 0x00d6: return((CHAR)(133 & 0xff));
- case 0x00d8: return((CHAR)(175 & 0xff));
- case 0x00d9: return((CHAR)(244 & 0xff));
- case 0x00da: return((CHAR)(242 & 0xff));
- case 0x00db: return((CHAR)(243 & 0xff));
- case 0x00dc: return((CHAR)(134 & 0xff));
- case 0x2020: return((CHAR)(160 & 0xff));
- case 0xfb01: return((CHAR)(222 & 0xff));
- case 0x00df: return((CHAR)(167 & 0xff));
- case 0x00e0: return((CHAR)(136 & 0xff));
- case 0x00e1: return((CHAR)(135 & 0xff));
- case 0x00e2: return((CHAR)(137 & 0xff));
- case 0x00e3: return((CHAR)(139 & 0xff));
- case 0x00e4: return((CHAR)(138 & 0xff));
- case 0x00e5: return((CHAR)(140 & 0xff));
- case 0x00e6: return((CHAR)(190 & 0xff));
- case 0x00e7: return((CHAR)(141 & 0xff));
- case 0x00e8: return((CHAR)(143 & 0xff));
- case 0x00e9: return((CHAR)(142 & 0xff));
- case 0x00ea: return((CHAR)(144 & 0xff));
- case 0x00eb: return((CHAR)(145 & 0xff));
- case 0x00ec: return((CHAR)(147 & 0xff));
- case 0x00ed: return((CHAR)(146 & 0xff));
- case 0x00ee: return((CHAR)(148 & 0xff));
- case 0x00ef: return((CHAR)(149 & 0xff));
- case 0x203a: return((CHAR)(221 & 0xff));
- case 0x00f1: return((CHAR)(150 & 0xff));
- case 0x00f2: return((CHAR)(152 & 0xff));
- case 0x00f3: return((CHAR)(151 & 0xff));
- case 0x00f4: return((CHAR)(153 & 0xff));
- case 0x00f5: return((CHAR)(155 & 0xff));
- case 0x00f6: return((CHAR)(154 & 0xff));
- case 0x00f7: return((CHAR)(214 & 0xff));
- case 0x00f8: return((CHAR)(191 & 0xff));
- case 0x00f9: return((CHAR)(157 & 0xff));
- case 0x00fa: return((CHAR)(156 & 0xff));
- case 0x00fb: return((CHAR)(158 & 0xff));
- case 0x00fc: return((CHAR)(159 & 0xff));
- case 0x2021: return((CHAR)(224 & 0xff));
- case 0xfb02: return((CHAR)(223 & 0xff));
- case 0x00ff: return((CHAR)(216 & 0xff));
- case 0x0131: return((CHAR)(245 & 0xff));
- case 0x0152: return((CHAR)(206 & 0xff));
- case 0x0153: return((CHAR)(207 & 0xff));
- case 0x0178: return((CHAR)(217 & 0xff));
- case 0x0192: return((CHAR)(196 & 0xff));
- case 0x02c6: return((CHAR)(246 & 0xff));
- case 0x02c7: return((CHAR)(255 & 0xff));
- case 0x02d8: return((CHAR)(249 & 0xff));
- case 0x02d9: return((CHAR)(250 & 0xff));
- case 0x02da: return((CHAR)(251 & 0xff));
- case 0x02db: return((CHAR)(254 & 0xff));
- case 0x02dc: return((CHAR)(247 & 0xff));
- case 0x02dd: return((CHAR)(253 & 0xff));
- case 0x03c0: return((CHAR)(185 & 0xff));
- case 0x2013: return((CHAR)(208 & 0xff));
- case 0x2014: return((CHAR)(209 & 0xff));
- case 0x2018: return((CHAR)(212 & 0xff));
- case 0x2019: return((CHAR)(213 & 0xff));
- case 0x201a: return((CHAR)(226 & 0xff));
- case 0x201c: return((CHAR)(210 & 0xff));
- case 0x201d: return((CHAR)(211 & 0xff));
- case 0x201e: return((CHAR)(227 & 0xff));
- case 0x2022: return((CHAR)(165 & 0xff));
- case 0x2026: return((CHAR)(201 & 0xff));
- case 0x2030: return((CHAR)(228 & 0xff));
- case 0x2044: return((CHAR)(218 & 0xff));
- case 0x2122: return((CHAR)(170 & 0xff));
- case 0x03a9: return((CHAR)(189 & 0xff));
- case 0x2202: return((CHAR)(182 & 0xff));
- case 0x2206: return((CHAR)(198 & 0xff));
- case 0x220f: return((CHAR)(184 & 0xff));
- case 0x2211: return((CHAR)(183 & 0xff));
- case 0x221a: return((CHAR)(195 & 0xff));
- case 0x221e: return((CHAR)(176 & 0xff));
- case 0x222b: return((CHAR)(186 & 0xff));
- case 0x2248: return((CHAR)(197 & 0xff));
- case 0x2260: return((CHAR)(173 & 0xff));
- case 0x2264: return((CHAR)(178 & 0xff));
- case 0x2265: return((CHAR)(179 & 0xff));
- case 0x25ca: return((CHAR)(215 & 0xff));
- case 0xf8ff: return((CHAR)(240 & 0xff));
- default: return(tx_punc(c));
- }
- }
- int /* HP Roman-8 */
- #ifdef CK_ANSIC
- tx_hproman8(USHORT c)
- #else
- tx_hproman8(c) USHORT c;
- #endif /* CK_ANSIC */
- {
- if (c < 0xa0)
- return((CHAR)(c & 0xff));
- switch(c) {
- case 0x00a0: return((CHAR)(160 & 0xff));
- case 0x00a1: return((CHAR)(171 & 0xff));
- case 0x00a2: return((CHAR)(167 & 0xff));
- case 0x00a3: return((CHAR)(168 & 0xff));
- case 0x00a4: return((CHAR)(166 & 0xff));
- case 0x00a5: return((CHAR)(181 & 0xff));
- case 0x00a7: return((CHAR)(187 & 0xff));
- case 0x00a8: return((CHAR)(189 & 0xff));
- case 0x00a9: return((CHAR)(173 & 0xff));
- case 0x00aa: return((CHAR)(169 & 0xff));
- case 0x00ab: return((CHAR)(177 & 0xff));
- case 0x00ac: return((CHAR)(161 & 0xff));
- case 0x00ae: return((CHAR)(174 & 0xff));
- case 0x00b0: return((CHAR)(188 & 0xff));
- case 0x00b1: return((CHAR)(182 & 0xff));
- case 0x00b2: return((CHAR)(164 & 0xff));
- case 0x00b3: return((CHAR)(165 & 0xff));
- case 0x00b4: return((CHAR)(190 & 0xff));
- case 0x00b5: return((CHAR)(163 & 0xff));
- case 0x00b6: return((CHAR)(178 & 0xff));
- case 0x00b7: return((CHAR)(185 & 0xff));
- case 0x00b8: return((CHAR)(186 & 0xff));
- case 0x00ba: return((CHAR)(170 & 0xff));
- case 0x00bb: return((CHAR)(176 & 0xff));
- case 0x00bd: return((CHAR)(162 & 0xff));
- case 0x00bf: return((CHAR)(172 & 0xff));
- case 0x00c0: return((CHAR)(193 & 0xff));
- case 0x00c1: return((CHAR)(192 & 0xff));
- case 0x00c2: return((CHAR)(194 & 0xff));
- case 0x00c3: return((CHAR)(196 & 0xff));
- case 0x00c4: return((CHAR)(195 & 0xff));
- case 0x00c5: return((CHAR)(197 & 0xff));
- case 0x00c6: return((CHAR)(198 & 0xff));
- case 0x00c7: return((CHAR)(199 & 0xff));
- case 0x00c8: return((CHAR)(201 & 0xff));
- case 0x00c9: return((CHAR)(200 & 0xff));
- case 0x00ca: return((CHAR)(202 & 0xff));
- case 0x00cb: return((CHAR)(203 & 0xff));
- case 0x00cc: return((CHAR)(205 & 0xff));
- case 0x00cd: return((CHAR)(204 & 0xff));
- case 0x00ce: return((CHAR)(206 & 0xff));
- case 0x00cf: return((CHAR)(207 & 0xff));
- case 0x00d1: return((CHAR)(208 & 0xff));
- case 0x00d2: return((CHAR)(210 & 0xff));
- case 0x00d3: return((CHAR)(209 & 0xff));
- case 0x00d4: return((CHAR)(211 & 0xff));
- case 0x00d5: return((CHAR)(213 & 0xff));
- case 0x00d6: return((CHAR)(212 & 0xff));
- case 0x00d8: return((CHAR)(214 & 0xff));
- case 0x00d9: return((CHAR)(217 & 0xff));
- case 0x00da: return((CHAR)(216 & 0xff));
- case 0x00db: return((CHAR)(218 & 0xff));
- case 0x00dc: return((CHAR)(219 & 0xff));
- case 0x00df: return((CHAR)(252 & 0xff));
- case 0x00e0: return((CHAR)(225 & 0xff));
- case 0x00e1: return((CHAR)(224 & 0xff));
- case 0x00e2: return((CHAR)(226 & 0xff));
- case 0x00e3: return((CHAR)(228 & 0xff));
- case 0x00e4: return((CHAR)(227 & 0xff));
- case 0x00e5: return((CHAR)(229 & 0xff));
- case 0x00e6: return((CHAR)(230 & 0xff));
- case 0x00e7: return((CHAR)(231 & 0xff));
- case 0x00e8: return((CHAR)(233 & 0xff));
- case 0x00e9: return((CHAR)(232 & 0xff));
- case 0x00ea: return((CHAR)(234 & 0xff));
- case 0x00eb: return((CHAR)(235 & 0xff));
- case 0x00ec: return((CHAR)(237 & 0xff));
- case 0x00ed: return((CHAR)(236 & 0xff));
- case 0x00ee: return((CHAR)(238 & 0xff));
- case 0x00ef: return((CHAR)(239 & 0xff));
- case 0x00f1: return((CHAR)(240 & 0xff));
- case 0x00f2: return((CHAR)(242 & 0xff));
- case 0x00f3: return((CHAR)(241 & 0xff));
- case 0x00f4: return((CHAR)(243 & 0xff));
- case 0x00f5: return((CHAR)(245 & 0xff));
- case 0x00f6: return((CHAR)(244 & 0xff));
- case 0x00f8: return((CHAR)(246 & 0xff));
- case 0x00f9: return((CHAR)(249 & 0xff));
- case 0x00fa: return((CHAR)(248 & 0xff));
- case 0x00fb: return((CHAR)(250 & 0xff));
- case 0x00fc: return((CHAR)(251 & 0xff));
- case 0x00ff: return((CHAR)(253 & 0xff));
- case 0x0153: return((CHAR)(247 & 0xff));
- case 0x0178: return((CHAR)(221 & 0xff));
- case 0x0192: return((CHAR)(180 & 0xff));
- case 0x0276: return((CHAR)(215 & 0xff));
- case 0x2021: return((CHAR)(175 & 0xff));
- case 0x2122: return((CHAR)(179 & 0xff));
- case 0x2191: return((CHAR)(191 & 0xff));
- case 0x2264: return((CHAR)(183 & 0xff));
- case 0x2265: return((CHAR)(184 & 0xff));
- case 0x2588: return((CHAR)(255 & 0xff));
- default: return(tx_punc(c));
- }
- }
- int /* PC Code Page 437 */
- #ifdef CK_ANSIC
- tx_cp437(USHORT c)
- #else
- tx_cp437(c) USHORT c;
- #endif /* CK_ANSIC */
- {
- if (c < 0x80) /* Has C1 graphics */
- return((CHAR)(c & 0xff));
- switch (c) {
- case 0x00a0: return((CHAR)(255 & 0xff));
- case 0x00a1: return((CHAR)(173 & 0xff));
- case 0x00a2: return((CHAR)(155 & 0xff));
- case 0x00a3: return((CHAR)(156 & 0xff));
- case 0x00a4: return((CHAR)(15 & 0xff));
- case 0x00a5: return((CHAR)(157 & 0xff));
- case 0x00a6: return((CHAR)(124 & 0xff));
- case 0x00a7: return((CHAR)(21 & 0xff));
- case 0x00a8: return((CHAR)(34 & 0xff));
- case 0x00a9: return((CHAR)(67 & 0xff));
- case 0x00aa: return((CHAR)(166 & 0xff));
- case 0x00ab: return((CHAR)(174 & 0xff));
- case 0x00ac: return((CHAR)(170 & 0xff));
- case 0x00ad: return((CHAR)(45 & 0xff));
- case 0x00ae: return((CHAR)(84 & 0xff));
- case 0x00af: return((CHAR)(22 & 0xff));
- case 0x00b0: return((CHAR)(248 & 0xff));
- case 0x00b1: return((CHAR)(241 & 0xff));
- case 0x00b2: return((CHAR)(253 & 0xff));
- case 0x00b3: return((CHAR)(51 & 0xff));
- case 0x00b4: return((CHAR)(39 & 0xff));
- case 0x00b5: return((CHAR)(230 & 0xff));
- case 0x00b6: return((CHAR)(20 & 0xff));
- case 0x00b7: return((CHAR)(250 & 0xff));
- case 0x00b8: return((CHAR)(44 & 0xff));
- case 0x00b9: return((CHAR)(49 & 0xff));
- case 0x00ba: return((CHAR)(167 & 0xff));
- case 0x00bb: return((CHAR)(175 & 0xff));
- case 0x00bc: return((CHAR)(172 & 0xff));
- case 0x00bd: return((CHAR)(171 & 0xff));
- case 0x00be: return((CHAR)(19 & 0xff));
- case 0x00bf: return((CHAR)(168 & 0xff));
- case 0x00c0: return((CHAR)(65 & 0xff));
- case 0x00c1: return((CHAR)(65 & 0xff));
- case 0x00c2: return((CHAR)(65 & 0xff));
- case 0x00c3: return((CHAR)(65 & 0xff));
- case 0x00c4: return((CHAR)(142 & 0xff));
- case 0x00c5: return((CHAR)(143 & 0xff));
- case 0x00c6: return((CHAR)(146 & 0xff));
- case 0x00c7: return((CHAR)(128 & 0xff));
- case 0x00c8: return((CHAR)(69 & 0xff));
- case 0x00c9: return((CHAR)(144 & 0xff));
- case 0x00ca: return((CHAR)(69 & 0xff));
- case 0x00cb: return((CHAR)(69 & 0xff));
- case 0x00cc: return((CHAR)(73 & 0xff));
- case 0x00cd: return((CHAR)(73 & 0xff));
- case 0x00ce: return((CHAR)(73 & 0xff));
- case 0x00cf: return((CHAR)(73 & 0xff));
- case 0x00d0: return((CHAR)(19 & 0xff));
- case 0x00d1: return((CHAR)(165 & 0xff));
- case 0x00d2: return((CHAR)(79 & 0xff));
- case 0x00d3: return((CHAR)(79 & 0xff));
- case 0x00d4: return((CHAR)(79 & 0xff));
- case 0x00d5: return((CHAR)(79 & 0xff));
- case 0x00d6: return((CHAR)(153 & 0xff));
- case 0x00d7: return((CHAR)(120 & 0xff));
- case 0x00d8: return((CHAR)(79 & 0xff));
- case 0x00d9: return((CHAR)(85 & 0xff));
- case 0x00da: return((CHAR)(85 & 0xff));
- case 0x00db: return((CHAR)(85 & 0xff));
- case 0x00dc: return((CHAR)(154 & 0xff));
- case 0x00dd: return((CHAR)(89 & 0xff));
- case 0x00de: return((CHAR)(19 & 0xff));
- case 0x00df: return((CHAR)(225 & 0xff));
- case 0x00e0: return((CHAR)(133 & 0xff));
- case 0x00e1: return((CHAR)(160 & 0xff));
- case 0x00e2: return((CHAR)(131 & 0xff));
- case 0x00e3: return((CHAR)(97 & 0xff)); /* a-tilde -> a (not 101 = e) */
- case 0x00e4: return((CHAR)(132 & 0xff));
- case 0x00e5: return((CHAR)(134 & 0xff));
- case 0x00e6: return((CHAR)(145 & 0xff));
- case 0x00e7: return((CHAR)(135 & 0xff));
- case 0x00e8: return((CHAR)(138 & 0xff));
- case 0x00e9: return((CHAR)(130 & 0xff));
- case 0x00ea: return((CHAR)(136 & 0xff));
- case 0x00eb: return((CHAR)(137 & 0xff));
- case 0x00ec: return((CHAR)(141 & 0xff));
- case 0x00ed: return((CHAR)(161 & 0xff));
- case 0x00ee: return((CHAR)(140 & 0xff));
- case 0x00ef: return((CHAR)(139 & 0xff));
- case 0x00f0: return((CHAR)(19 & 0xff));
- case 0x00f1: return((CHAR)(164 & 0xff));
- case 0x00f2: return((CHAR)(149 & 0xff));
- case 0x00f3: return((CHAR)(162 & 0xff));
- case 0x00f4: return((CHAR)(147 & 0xff));
- case 0x00f5: return((CHAR)(111 & 0xff));
- case 0x00f6: return((CHAR)(148 & 0xff));
- case 0x00f7: return((CHAR)(246 & 0xff));
- case 0x00f8: return((CHAR)(111 & 0xff));
- case 0x00f9: return((CHAR)(151 & 0xff));
- case 0x00fa: return((CHAR)(163 & 0xff));
- case 0x00fb: return((CHAR)(150 & 0xff));
- case 0x00fc: return((CHAR)(129 & 0xff));
- case 0x00fd: return((CHAR)(121 & 0xff));
- case 0x00fe: return((CHAR)(19 & 0xff));
- case 0x00ff: return((CHAR)(152 & 0xff));
- case 0x0192: return((CHAR)(159 & 0xff));
- case 0x0393: return((CHAR)(226 & 0xff));
- case 0x0398: return((CHAR)(233 & 0xff));
- case 0x03a3: return((CHAR)(228 & 0xff));
- case 0x03a6: return((CHAR)(232 & 0xff));
- case 0x03a9: return((CHAR)(234 & 0xff));
- case 0x03b1: return((CHAR)(224 & 0xff));
- case 0x03b4: return((CHAR)(235 & 0xff));
- case 0x03b5: return((CHAR)(238 & 0xff));
- case 0x03c0: return((CHAR)(227 & 0xff));
- case 0x03c3: return((CHAR)(229 & 0xff));
- case 0x03c4: return((CHAR)(231 & 0xff));
- case 0x03c6: return((CHAR)(237 & 0xff));
- case 0x207f: return((CHAR)(252 & 0xff));
- case 0x20a7: return((CHAR)(158 & 0xff));
- case 0x2219: return((CHAR)(249 & 0xff));
- case 0x221a: return((CHAR)(251 & 0xff));
- case 0x221e: return((CHAR)(236 & 0xff));
- case 0x2229: return((CHAR)(239 & 0xff));
- case 0x2248: return((CHAR)(247 & 0xff));
- case 0x2261: return((CHAR)(240 & 0xff));
- case 0x2264: return((CHAR)(243 & 0xff));
- case 0x2265: return((CHAR)(242 & 0xff));
- case 0x2310: return((CHAR)(169 & 0xff));
- case 0x2320: return((CHAR)(244 & 0xff));
- case 0x2321: return((CHAR)(245 & 0xff));
- case 0x2500: return((CHAR)(196 & 0xff));
- case 0x2502: return((CHAR)(179 & 0xff));
- case 0x250c: return((CHAR)(218 & 0xff));
- case 0x2510: return((CHAR)(191 & 0xff));
- case 0x2514: return((CHAR)(192 & 0xff));
- case 0x2518: return((CHAR)(217 & 0xff));
- case 0x251c: return((CHAR)(195 & 0xff));
- case 0x2524: return((CHAR)(180 & 0xff));
- case 0x252c: return((CHAR)(194 & 0xff));
- case 0x2534: return((CHAR)(193 & 0xff));
- case 0x253c: return((CHAR)(197 & 0xff));
- case 0x2550: return((CHAR)(205 & 0xff));
- case 0x2551: return((CHAR)(186 & 0xff));
- case 0x2552: return((CHAR)(213 & 0xff));
- case 0x2553: return((CHAR)(214 & 0xff));
- case 0x2554: return((CHAR)(201 & 0xff));
- case 0x2555: return((CHAR)(184 & 0xff));
- case 0x2556: return((CHAR)(183 & 0xff));
- case 0x2557: return((CHAR)(187 & 0xff));
- case 0x2558: return((CHAR)(212 & 0xff));
- case 0x2559: return((CHAR)(211 & 0xff));
- case 0x255a: return((CHAR)(200 & 0xff));
- case 0x255b: return((CHAR)(190 & 0xff));
- case 0x255c: return((CHAR)(189 & 0xff));
- case 0x255d: return((CHAR)(188 & 0xff));
- case 0x255e: return((CHAR)(198 & 0xff));
- case 0x255f: return((CHAR)(199 & 0xff));
- case 0x2560: return((CHAR)(204 & 0xff));
- case 0x2561: return((CHAR)(181 & 0xff));
- case 0x2562: return((CHAR)(182 & 0xff));
- case 0x2563: return((CHAR)(185 & 0xff));
- case 0x2564: return((CHAR)(209 & 0xff));
- case 0x2565: return((CHAR)(210 & 0xff));
- case 0x2566: return((CHAR)(203 & 0xff));
- case 0x2567: return((CHAR)(207 & 0xff));
- case 0x2568: return((CHAR)(208 & 0xff));
- case 0x2569: return((CHAR)(202 & 0xff));
- case 0x256a: return((CHAR)(216 & 0xff));
- case 0x256b: return((CHAR)(215 & 0xff));
- case 0x256c: return((CHAR)(206 & 0xff));
- case 0x2580: return((CHAR)(223 & 0xff));
- case 0x2584: return((CHAR)(220 & 0xff));
- case 0x2588: return((CHAR)(219 & 0xff));
- case 0x258c: return((CHAR)(221 & 0xff));
- case 0x2590: return((CHAR)(222 & 0xff));
- case 0x2591: return((CHAR)(176 & 0xff));
- case 0x2592: return((CHAR)(177 & 0xff));
- case 0x2593: return((CHAR)(178 & 0xff));
- case 0x25a0: return((CHAR)(254 & 0xff)); /* Black square */
- default: return(tx_cpsub(c)); /* For box characters etc */
- }
- }
- int /* Mazovia */
- #ifdef CK_ANSIC
- tx_mazovia(USHORT c)
- #else
- tx_mazovia(c) USHORT c;
- #endif /* CK_ANSIC */
- {
- if (c < 0x80) /* Has C1 graphics */
- return((CHAR)(c & 0xff));
- switch (c) {
- case 0x00d3: return((CHAR)0xa3 & 0xff); /* O acute */
- case 0x00f3: return((CHAR)0xa2 & 0xff); /* O acute */
- case 0x0104: return((CHAR)0x8f & 0xff); /* A Ogonek */
- case 0x0105: return((CHAR)0x86 & 0xff); /* a Ogonek */
- case 0x0106: return((CHAR)0x95 & 0xff); /* C acute */
- case 0x0107: return((CHAR)0x8d & 0xff); /* c acute */
- case 0x0118: return((CHAR)0x90 & 0xff); /* E Ogonek */
- case 0x0119: return((CHAR)0x91 & 0xff); /* E Ogonek */
- case 0x0141: return((CHAR)0x9c & 0xff); /* L stroke */
- case 0x0142: return((CHAR)0x92 & 0xff); /* L stroke */
- case 0x0143: return((CHAR)0xa5 & 0xff); /* N acute */
- case 0x0144: return((CHAR)0xa4 & 0xff); /* N acute */
- case 0x015a: return((CHAR)0x98 & 0xff); /* S acute */
- case 0x015b: return((CHAR)0x9e & 0xff); /* S acute */
- case 0x0179: return((CHAR)0xa0 & 0xff); /* Z acute */
- case 0x017a: return((CHAR)0xa6 & 0xff); /* Z acute */
- case 0x017b: return((CHAR)0xa1 & 0xff); /* Z dot above */
- case 0x017c: return((CHAR)0xa7 & 0xff); /* Z dot above */
- default: return(tx_cp437(c));
- }
- }
- int /* PC Code Page 850 */
- #ifdef CK_ANSIC
- tx_cp850(USHORT c)
- #else
- tx_cp850(c) USHORT c;
- #endif /* CK_ANSIC */
- {
- if (c < 0x80) /* Has C1 graphics */
- return((CHAR)(c & 0xff));
- switch (c) {
- case 0x00a0: return((CHAR)(255 & 0xff));
- case 0x00a1: return((CHAR)(173 & 0xff));
- case 0x00a2: return((CHAR)(189 & 0xff));