#include type 'MapA' //mappings array { array { integer; }; }; type 'MapL' //mappings array { array { longint; }; }; resource 'kind' (1000) { 'TECo', verUS, { /* array kindArray*/ 'apnm', "Cyclone", 'TEXT', "Cyclone Text file", 'utxt', "Cyclone Unicode Text file", 'part', "Cyclone broken conversion file", 'errl', "Cyclone error log", 'pref', "Cyclone preferences file" } }; resource 'STR#' (200, "Standards", purgeable) { { "Cyclone", "Save File As:", "Select A Source Text:", "Select File Or Application:", "Choose", } }; resource 'STR#' (400, "Error strings", purgeable) { { "This application requires Text Encoding Converter.",//1 "Cannot get Text Encoding Converter maps.",//2 "Not enough memory to run.",//3 "Clipboard conversion failed.",//4 "Could not create the converter for the given encodings.",//5 "Conversion failed.",//6 "Source and destination must be different.",//7 "Could not replace the file.",//8 "Unknown error occured.",//9 "Clipboard contains no text.",//10 "Not enough memory to perform conversion.",//11 "Could not open the source file.",//12 "Could not create the destination file.",//13 "",//14 "",//15 "",//16 "",//17 "",//18 } }; resource 'STR#' (500, "Misc strings", purgeable) { { "",//1 "",//2 "",//3 "",//4 "",//5 "",//6 "",//7 "",//8 "",//9 "Untitled",//10 "The conversion failed for the following files:",//11 "Error log generated on (d-m-y) ",//12 "Cyclone error log",//13 "Clipboard",//14 "Select",//15 "Cyclone Prefs",//16 "Unknown",//17 "Default",//18 } }; //numbers logic: //encodings start at 1100 //and we add standard selectors: //enum //{ // kStandardMac = 0x0000, // kStandardUnicode = 0x0100, = 256 // kStandardISO = 0x0200, = 512 // kStandardDOS = 0x0400, = 1024 // kStandardWindows = 0x0500, = 1280 // kStandardOther = 0x0600 = 1536 //}; resource 'STR#' (1100, "Mac encoding names", purgeable) { { "Western", //kTextEncodingMacRoman = 0L, "Japanese", //kTextEncodingMacJapanese = 1, "Chinese Traditional", //kTextEncodingMacChineseTrad = 2, "Korean", //kTextEncodingMacKorean = 3, "Arabic", //kTextEncodingMacArabic = 4, "Hebrew", //kTextEncodingMacHebrew = 5, "Greek", //kTextEncodingMacGreek = 6, "Cyrillic", //kTextEncodingMacCyrillic = 7, "Devanagari", //kTextEncodingMacDevanagari = 9, "Gurmukhi", //kTextEncodingMacGurmukhi = 10, "Gujarati", //kTextEncodingMacGujarati = 11, "Oriya", //kTextEncodingMacOriya = 12, "Bengali", //kTextEncodingMacBengali = 13, "Tamil", //kTextEncodingMacTamil = 14, "Telugu", //kTextEncodingMacTelugu = 15, "Kannada", //kTextEncodingMacKannada = 16, "Malayalam", //kTextEncodingMacMalayalam = 17, "Sinhalese", //kTextEncodingMacSinhalese = 18, "Burmese", //kTextEncodingMacBurmese = 19, "Khmer", //kTextEncodingMacKhmer = 20, "Thai", //kTextEncodingMacThai = 21, "Laotian", //kTextEncodingMacLaotian = 22, "Georgian", //kTextEncodingMacGeorgian = 23, "Armenian", //kTextEncodingMacArmenian = 24, "Chinese Simplified", //kTextEncodingMacChineseSimp = 25, "Tibetan", //kTextEncodingMacTibetan = 26, "Mongolian", //kTextEncodingMacMongolian = 27, "Ethiopic", //kTextEncodingMacEthiopic = 28, "Central European", //kTextEncodingMacCentralEurRoman = 29, "Vietnamese", //kTextEncodingMacVietnamese = 30, "Extended Arabic", //kTextEncodingMacExtArabic = 31, "Symbol", //kTextEncodingMacSymbol = 33, "Dingbats", //kTextEncodingMacDingbats = 34, "Turkish", //kTextEncodingMacTurkish = 35, "Croatian", //kTextEncodingMacCroatian = 36, "Icelandic", //kTextEncodingMacIcelandic = 37, "Romanian", //kTextEncodingMacRomanian = 38, "Celtic", //kTextEncodingMacCeltic = 39, "Gaelic", //kTextEncodingMacGaelic = 40, "Keyboard Symbols", //kTextEncodingMacKeyboardGlyphs = 41 "Arabic/Farsi", //kTextEncodingMacFarsi = 0x8C, /* Like MacArabic but uses Farsi digits*/ "Ukrainian", //kTextEncodingMacUkrainian = 0x98, /* script code 7, smCyrillic*/ "Inuit", //kTextEncodingMacInuit = 0xEC, /*script code 28, smEthiopic*/ "VT100" //kTextEncodingMacVT100 = 0xFC, /* script code 32, smUnimplemented*/ /* VT100/102 font from Comm Toolbox: Latin-1 repertoire + box drawing etc*/ } }; resource 'MapL' (1100, "Mac encoding name to code map", purgeable) { { 0, 1, 2, 3, 4, 5, 6, 7, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 33, 34, 35, 36, 37, 38, 39, 40, 41, 0x8C,//140 0x98,//152 0xEC,//236 0xFC//252 } }; resource 'STR#' (1356, "Unicode names", purgeable)//1100 + 256 (0x0100) { { "Unicode", "Unicode 1.1", "Unicode 2.1", "Unicode 3.0", "Unicode 3.1", "Unicode 3.2", "Unicode 4.0" } }; resource 'MapL' (1356, "Unicode codes", purgeable) { { 0x0100, 0x0101, 0x0103, 0x0104, 0x0105, 0x0106, 0x0108 } }; resource 'STR#' (1612, "ISO encodings names", purgeable)//1100 + 512 { { "Western - Latin-1 (8859-1)", "Central European - Latin-2 (8859-2)", "Latin-3 (8859-3)", "Latin-4 (8859-4)", "Cyrillic (8859-5)", "Arabic (8859-6)", "Greek (8859-7)", "Hebrew (8859-8)", "Turkish - Latin-5 (8859-9)", "Nordic - Latin-6 (8859-10)", "Baltic Rim - Latin-7 (8859-13)", "Celtic - Latin-8 (8859-14)", "Western - Latin-9 (8859-15)", "Romanian - Latin-10 (8859-16)" } }; resource 'MapL' (1612, "ISO encodings codes", purgeable) { { 0x0201, 0x0202, 0x0203, 0x0204, 0x0205, 0x0206, 0x0207, 0x0208, 0x0209, 0x020A, 0x020D, 0x020E, 0x020F, 0x0210 } }; resource 'STR#' (2124, "DOS encodings names", purgeable)//1100 + 1024 { { "Latin-US (CP437)", "Greek (CP737)", "Baltic (CP775)", "Latin-1 (CP850)", "Greek-1 (CP851)", "Latin-2 (CP852)", "Cyrillic (CP855)", "Turkish (CP857)", "Portuguese (CP860)", "Icelandic (CP861)", "Hebrew (CP862)", "CanadianFrench (CP863)", "Arabic (CP864)", "Nordic (CP865)", "Russian (CP866)", "Greek-2 (CP869)", "Thai (CP874)", "Japanese (CP932)", "Chinese Simplified (CP936)", "Korean (CP949)", "Chinese Traditional (CP950)" } }; resource 'MapL' (2124, "DOS encodings codes", purgeable) { { 0x0400, /* code page 437*/ 0x0405, /* code page 737 (formerly code page 437G)*/ 0x0406, /* code page 775*/ 0x0410, /* code page 850, "Multilingual"*/ 0x0411, /* code page 851*/ 0x0412, /* code page 852, Slavic*/ 0x0413, /* code page 855, IBM Cyrillic*/ 0x0414, /* code page 857, IBM Turkish*/ 0x0415, /* code page 860*/ 0x0416, /* code page 861*/ 0x0417, /* code page 862*/ 0x0418, /* code page 863*/ 0x0419, /* code page 864*/ 0x041A, /* code page 865*/ 0x041B, /* code page 866*/ 0x041C, /* code page 869, IBM Modern Greek*/ 0x041D, /* code page 874, also for Windows*/ 0x0420, /* code page 932, also for Windows; Shift-JIS with additions*/ 0x0421, /* code page 936, also for Windows; was EUC-CN, now GBK (EUC-CN extended)*/ 0x0422, /* code page 949, also for Windows; Unified Hangul Code (EUC-KR extended)*/ 0x0423 /* code page 950, also for Windows; Big-5*/ } }; resource 'STR#' (2380, "Windows encodings names", purgeable)//1100 + 1280 { { "Thai (CP874)", "Japanese (CP932)", "Chinese Simplified (CP936)", "Korean (CP949)", "Chinese Traditional (CP950)", "Western - Latin-1 (CP1252)", "Central European - Latin-2 (CP1250)", "Cyrillic (CP1251)", "Greek (CP1253)", "Turkish - Latin-5 (CP1254)", "Hebrew (CP1255)", "Arabic (CP1256)", "Baltic (CP1257)", "Vietnamese (CP1258)", "Korean Johab (CP1361)" } }; resource 'MapL' (2380, "Windows encodings codes", purgeable) { { 0x041D, /* code page 874, also for Windows*/ 0x0420, /* code page 932, also for Windows; Shift-JIS with additions*/ 0x0421, /* code page 936, also for Windows; was EUC-CN, now GBK (EUC-CN extended)*/ 0x0422, /* code page 949, also for Windows; Unified Hangul Code (EUC-KR extended)*/ 0x0423, /* code page 950, also for Windows; Big-5*/ 0x0500, /* code page 1252*/ 0x0501, /* code page 1250, Central Europe*/ 0x0502, /* code page 1251, Slavic Cyrillic*/ 0x0503, /* code page 1253*/ 0x0504, /* code page 1254, Turkish*/ 0x0505, /* code page 1255*/ 0x0506, /* code page 1256*/ 0x0507, /* code page 1257*/ 0x0508, /* code page 1258*/ 0x0510 /* code page 1361, for Windows NT*/ } }; resource 'STR#' (2636, "Other encodings names", purgeable)//1100 + 1536 { { "Western ASCII", "Western ANSEL (ANSI Z39.47)", "Japanese JIS X0201-76", "Japanese JIS X0208-83", "Japanese JIS X0208-90", "Japanese JIS X0212-90", "Japanese JIS C6226-78", "Japanese Shift-JIS X0213-00", //0x0628 "Japanese JIS X0213 MenKuTen",//0x629 "Chinese Simplified GB 2312-80", "Chinese Simplified GBK-95", "Chinese Simplified GB 18030-2000", //0x0632 "Korean KSC 5601-87", "Korean KSC 5601-92 Johab", "CNS 11643-92 P1", "CNS 11643-92 P2", "CNS 11643-92 P3", "Japanese ISO 2022-JP", "Japanese ISO 2022-JP 2", "Japanese ISO 2022-JP 1", "Japanese ISO 2022-JP 3",//0x0823 "Chinese Simplified ISO 2022-CN", "Chinese Simplified ISO 2022-CN EXT", "Korean ISO 2022-KR", "Japanese EUC", "Chinese Simplified EUC", "Chinese Traditional EUC", "Korean EUC", "Japanese Shift-JIS",//0x0A01 "Cyrillic KOI8-R", "Chinese Traditional Big-5", "Mac Roman Latin 1", "Chinese Simplified HZ GB-2312", "Chinese Traditional Big-5 HKSCS-1999", //0x0A06 "Vietnamese VISCII", //0x0A07 "Ukrainian KOI8-U",//0x0A08 "Chinese Traditional - Taiwanese Big-5E",//0x0A09 "Western - NextStep", "Japanese - NextStep", "Western - EBCDIC US", "Western - EBCDIC CP037", "Multi Encoding with run info" } }; resource 'MapL' (2636, "Other encodings codes", purgeable) { { /* Various national standards begin at 0x600*/ 0x0600, 0x0601, 0x0620, /* JIS Roman and 1-byte katakana (halfwidth)*/ 0x0621, 0x0622, 0x0623, 0x0624, 0x0628, /* Shift-JIS format encoding of JIS X0213 planes 1 and 2*/ 0x0629, /* JIS X0213 in plane-row-column notation (3 bytes)*/ 0x0630, 0x0631, /* annex to GB 13000-93; for Windows 95; EUC-CN extended*/ 0x0632, 0x0640, /* same as KSC 5601-92 without Johab annex*/ 0x0641, /* KSC 5601-92 Johab annex*/ 0x0651, /* CNS 11643-1992 plane 1*/ 0x0652, /* CNS 11643-1992 plane 2*/ 0x0653, /* CNS 11643-1992 plane 3 (was plane 14 in 1986 version)*/ /* ISO 2022 collections begin at 0x800*/ 0x0820, /* RFC 1468*/ 0x0821, /* RFC 1554*/ 0x0822, /* RFC 2237*/ 0x0823, /* JIS X0213*/ 0x0830, 0x0831, 0x0840, /* EUC collections begin at 0x900*/ 0x0920, /* ISO 646, 1-byte katakana, JIS 208, JIS 212*/ 0x0930, /* ISO 646, GB 2312-80*/ 0x0931, /* ISO 646, CNS 11643-1992 Planes 1-16*/ 0x0940, /* ISO 646, KS C 5601-1987*/ /* Misc standards begin at 0xA00*/ 0x0A01, /* plain Shift-JIS*/ 0x0A02, /* Russian internet standard*/ 0x0A03, /* Big-5 (has variants)*/ 0x0A04, /* Mac OS Roman permuted to align with ISO Latin-1*/ 0x0A05, /* HZ (RFC 1842, for Chinese mail & news)*/ 0x0A06, /* Big-5 with Hong Kong special char set supplement*/ 0x0A07, /* RFC 1456, Vietnamese*/ 0x0A08, /* RFC 2319, Ukrainian*/ 0x0A09, /* Taiwan Big-5E standard*/ /* Other platform encodings*/ 0x0B01, /* Western NextStep */ 0x0B02, /* Jpanaese NextStep */ /* EBCDIC & IBM host encodings begin at 0xC00*/ 0x0C01, /* basic EBCDIC-US*/ 0x0C02, /* code page 037, extended EBCDIC (Latin-1 set) for US,Canada...*/ /* Special value*/ 0x0FFF /* Multi-encoding text with external run info*/ } }; //variants 3000 + number of base encodings resource 'STR#' (3000, "Roman variant names", purgeable) { { "Old (before Mac OS 8.5)", "Euro Sign (Mac OS 8.5 and higher)" } }; resource 'MapL' (3000, "Roman variant codes", purgeable) { { 1, 2, } }; resource 'STR#' (3037, "Icelandic variant names", purgeable) { { "Old Standard (before Mac OS 8.5)", "Old TrueType (before Mac OS 8.5)", "Standard Euro Sign (Mac OS 8.5 and higher)", "TrueType Euro Sign (Mac OS 8.5 and higher)" } }; resource 'MapL' (3037, "Icelandic variant codes", purgeable) { { 2, 3, 4, 5 } }; resource 'STR#' (3036, "Croatian variant names", purgeable) { { "Old (before Mac OS 8.5)", "Euro Sign (Mac OS 8.5 and higher)" } }; resource 'MapL' (3036, "Croatian variant codes", purgeable) { { 1, 2 } }; resource 'STR#' (3038, "Romanian variant names", purgeable) { { "Old (before Mac OS 8.5)", "Euro Sign (Mac OS 8.5 and higher)" } }; resource 'MapL' (3038, "Romanian variant codes", purgeable) { { 1, 2 } }; resource 'STR#' (3001, "Japanese variant names", purgeable) { { "Standard", "Standard No Verticals", "Basic", "PostScript Screen", "PostScript Print", "Vert At Ku Plus Ten", } }; resource 'MapL' (3001, "Japanese variant codes", purgeable) { { 0, 1, 2, 3, 4, 5 } }; resource 'STR#' (3004, "Arabic variant names", purgeable) { { "Standard", "TrueType", "Thuluth", "AlBayan" } }; resource 'MapL' (3004, "Arabic variant codes", purgeable) { { 0, 1, 2, 3 } }; resource 'STR#' (3140, "Arabic/Farsi variant names", purgeable) { { "Standard", "TrueType" } }; resource 'MapL' (3140, "Arabic/Farsi variant codes", purgeable) { { 0, 1, } }; resource 'STR#' (3005, "Hebrew variant names", purgeable) { { "Standard", "Figure Space" } }; resource 'MapL' (3005, "Hebrew variant codes", purgeable) { { 0, 1 } }; resource 'STR#' (3006, "Greek variant names", purgeable) { { "Standard", "Old (before Mac OS 9.2.2)", "Euro Sign (Mac OS 9.2.2 and higher)", } }; resource 'MapL' (3006, "Greek variant codes", purgeable) { { 0, 1, 2 } }; resource 'STR#' (3252, "VT100 variant names", purgeable) { { "Old (before Mac OS 8.5)", "Euro Sign (Mac OS 8.5 and higher)" } }; resource 'MapL' (3252, "VT100 variant codes", purgeable) { { 1, 2 } }; resource 'STR#' (3007, "Cyrillic and Ukrainian variant names", purgeable) { { "Old Standard (before Mac OS 9)", "Old Ukrainian (before Mac OS 9)", "Euro Sign (Mac OS 9 and higher)" } }; resource 'MapL' (3007, "Cyrillic and Ukrainian variant codes", purgeable) { { 1, 2, 3 } }; resource 'STR#' (3513, "ISO Latin-1 variant names", purgeable)//3000 + 0x0201 (513) { { "Standard", "Music CD" } }; resource 'MapL' (3513, "ISO Latin-1 variant codes", purgeable) { { 0, 1, } }; resource 'STR#' (3518, "ISO Latin Arabic variant names", purgeable)//3000 + 0x0206 (518) { { "Implicit Order", "Visual Order", "Explicit Order" } }; resource 'MapL' (3518, "ISO Latin Arabic variant codes", purgeable) { { 0, 1, 2 } }; resource 'STR#' (3520, "ISO Latin Hebrew variant names", purgeable)//3000 + 0x0208 (520) { { "Implicit Order", "Visual Order", "Explicit Order" } }; resource 'MapL' (3520, "ISO Latin Hebrew variant codes", purgeable) { { 0, 1, 2 } }; resource 'STR#' (4280, "Windows Latin 1 variant names", purgeable)//3000 + 0x0500 (1280) { { "Standard", "Palm" } }; resource 'MapL' (4280, "Windows Latin 1 variant codes", purgeable) { { 0, 1 } }; resource 'STR#' (4056, "DOS Japanese variant names", purgeable)//3000 + 0x0420 (1056) { { "Standard", "Palm" } }; resource 'MapL' (4056, "DOS Japanese variant codes", purgeable) { { 0, 1 } }; resource 'STR#' (5352, "EUC CN variant names", purgeable)//3000 + 0x0930 (2352) { { "Basic", "DOS" } }; resource 'MapL' (5352, "EUC CN variant codes", purgeable) { { 0, 1 } }; resource 'STR#' (5368, "EUC KR variant names", purgeable)//3000 + 0x0940 (2368) { { "Basic", "DOS" } }; resource 'MapL' (5368, "EUC KR variant codes", purgeable) { { 0, 1 } }; resource 'STR#' (5561, "Shift-JIS variant names", purgeable)//3000 + 0x0A01 (2561) { { "Basic", "DOS", "Music CD" } }; resource 'MapL' (5561, "Shift-JIS variant codes", purgeable) { { 0, 1, 2 } }; resource 'STR#' (5563, "Big5 variant names", purgeable)//3000 + 0x0A03 (2563) { { "Basic", "Standard", "ETen", "DOS" } }; resource 'MapL' (5563, "Big5 variant codes", purgeable) { { 0, 1, 2, 3 } }; //3000 + 0x0A04 (2564) = 5564 resource 'STR#' (5564, "Mac Roman Latin 1 variant names", purgeable) { { "Default", "Standard (Euro Sign)", "Turkish", "Croatian (Euro Sign)", "Icelandic Standard (Euro Sign)", "Romanian (Euro Sign)" } }; resource 'MapL' (5564, "Mac Roman Latin 1 variant codes", purgeable) { { 0, 2, 6, 8, 11, 14 } }; resource 'STR#' (3256, "Unicode variant names", purgeable)//3000 + 256 (0x0100) { { "", "No Compatibility", "Canonical Decomposition", "Canonical Composition", "No Corporate", "HFS+ Decomposition", "HFS+ Composition" } }; resource 'MapL' (3256, "Unicode variant codes", purgeable) { { 0, 1, 2, 3, 4, 8, 9 } }; resource 'STR#' (5256, "Unicode formats names", purgeable)//5000 + 256 { { "Standard (UTF-16)", "UTF-7", "UTF-8", "UTF-32", "UFT-16 Big Endian", "UFT-16 Little Endian", "UFT-32 Big Endian", "UFT-32 Little Endian", "SCSU" } }; resource 'MapL' (5256, "Unicode formats codes", purgeable)//5000 + 256 { { 0, 1, 2, 3, 4, 5, 6, 7, 8 } };