⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 lycharsets.c

📁 基于rtos开发的浏览器!
💻 C
📖 第 1 页 / 共 3 页
字号:
#include "HTUtils.h"#include "tcp.h"#include "HTCJK.h"#include "HTMLDTD.h"#include "LYGlobalDefs.h"#include "UCMap.h"#include "UCDefs.h"#include "LYCharSets.h"#include "LYCharUtils.h"#include "HTFont.h"#include "GridText.h"#include "LYCurses.h"#include "LYStrings.h"#include "LYexit.h"#include "LYLeaks.h"extern BOOL HTPassEightBitRaw;extern BOOL HTPassEightBitNum;extern BOOL HTPassHighCtrlRaw;extern BOOL HTPassHighCtrlNum;extern HTCJKlang HTCJK;PUBLIC HTkcode kanji_code = NOKANJI;PUBLIC BOOLEAN LYHaveCJKCharacterSet = FALSE;extern void UCInit NOARGS;extern int UCInitialized;PUBLIC int LYNumCharsets = 0; /* Will be initialized later by UC_Register. *//* *  INSTRUCTIONS for adding new character sets which do not have *		 Unicode tables. * *  Currently we only declare some charset's properties here *  (such as MIME names, etc.), it does not include real mapping. * *  [We hope you need not correct/add old-style mapping *  as in ISO_LATIN1[] or SevenBitApproximations[] any more - *  it works now via new chartrans mechanism, but kept for compatibility only: *  we should cleanup the stuff, but this is not so easy...] * *  There is a place marked "Add your new character sets HERE" in this file. *  Make up a character set and add it in the same *  style as the ISO_LATIN1 set below, giving it a unique name. * *  Add the name of the set to LYCharSets. *  Similarly add the appropriate information to the tables below: *  LYchar_set_names, LYCharSet_UC, LYlowest_eightbit. *  These 4 tables all MUST have the same order. *  (And this is the order you will see in Lynx Options Menu, *  which is why few unicode-based charsets are listed here). * *//*	Entity values -- for ISO Latin 1 local representation****	This MUST match exactly the table referred to in the DTD!*/PRIVATE char * ISO_Latin1[] = {	"\306", /* capital AE diphthong (ligature) (&#198;) - AElig */	"\301", /* capital A, acute accent (&#193;) - Aacute */	"\302", /* capital A, circumflex accent (&#194;) - Acirc */	"\300", /* capital A, grave accent (&#192;) - Agrave */	"\305", /* capital A, ring - Aring (&#197;) */	"\303", /* capital A, tilde - Atilde (&#195;) */	"\304", /* capital A, dieresis or umlaut mark (&#196;) - Auml */	"\307", /* capital C, cedilla - Ccedil (&#199;) */	"\320", /* capital Eth or D with stroke (&#208;) - Dstrok */	"\320", /* capital Eth, Icelandic (&#208;) - ETH */	"\311", /* capital E, acute accent (&#201;) - Eacute */	"\312", /* capital E, circumflex accent (&#202;) - Ecirc */	"\310", /* capital E, grave accent (&#200;) - Egrave */	"\313", /* capital E, dieresis or umlaut mark (&#203;) - Euml */	"\315", /* capital I, acute accent (&#205;) - Iacute */	"\316", /* capital I, circumflex accent (&#206;) - Icirc */	"\314", /* capital I, grave accent (&#200;) - Igrave */	"\317", /* capital I, dieresis or umlaut mark (&#207;) - Iuml */	"\321", /* capital N, tilde (&#209;) - Ntilde */	"\323", /* capital O, acute accent (&#211;) - Oacute */	"\324", /* capital O, circumflex accent (&#212;) - Ocirc */	"\322", /* capital O, grave accent (&#210;) - Ograve */	"\330", /* capital O, slash (&#216;) - Oslash */	"\325", /* capital O, tilde (&#213;) - Otilde */	"\326", /* capital O, dieresis or umlaut mark (&#214;) - Ouml */	"\336", /* capital THORN, Icelandic (&#222;) - THORN */	"\332", /* capital U, acute accent (&#218;) - Uacute */	"\333", /* capital U, circumflex accent (&#219;) - Ucirc */	"\331", /* capital U, grave accent (&#217;) - Ugrave */	"\334", /* capital U, dieresis or umlaut mark (&#220;) - Uuml */	"\335", /* capital Y, acute accent (&#221;) - Yacute */	"\341", /* small a, acute accent (&#225;) - aacute */	"\342", /* small a, circumflex accent (&#226;) - acirc */	"\264", /* spacing acute (&#180;) - acute */	"\346", /* small ae diphthong (ligature) (&#230;) - aelig */	"\340", /* small a, grave accent (&#224;) - agrave */	"\046", /* ampersand (&#38;) - amp */	"\345", /* small a, ring (&#229;) - aring */	"\343", /* small a, tilde (&#227;) - atilde */	"\344", /* small a, dieresis or umlaut mark (&#228;) - auml */	"\246", /* broken vertical bar (&#166;) - brkbar */	"\246", /* broken vertical bar (&#166;) - brvbar */	"\347", /* small c, cedilla (&#231;) - ccedil */	"\270", /* spacing cedilla (&#184;) - cedil */	"\242", /* cent sign (&#162;) - cent */	"\251", /* copyright sign (&#169;) - copy */	"\244", /* currency sign (&#164;) - curren */	"\260", /* degree sign (&#176;) - deg */	"\250", /* spacing dieresis (&#168;) - die */	"\367", /* division sign (&#247;) - divide */	"\351", /* small e, acute accent (&#233;) - eacute */	"\352", /* small e, circumflex accent (&#234;) - ecirc */	"\350", /* small e, grave accent (&#232;) - egrave */	"-",	/* dash the width of emsp - emdash */	"\002", /* emsp, em space - not collapsed NEVER CHANGE THIS - emsp */	"-",	/* dash the width of ensp - endash */	"\002", /* ensp, en space - not collapsed NEVER CHANGE THIS - ensp */	"\360", /* small eth, Icelandic (&#240;) - eth */	"\353", /* small e, dieresis or umlaut mark (&#235;) - euml */	"\275", /* fraction 1/2 (&#189;) - frac12 */	"\274", /* fraction 1/4 (&#188;) - frac14 */	"\276", /* fraction 3/4 (&#190;) - frac34 */	"\076", /* greater than (&#62;) - gt */	"\257", /* spacing macron (&#175;) - hibar */	"\355", /* small i, acute accent (&#237;) - iacute */	"\356", /* small i, circumflex accent (&#238;) - icirc */	"\241", /* inverted exclamation mark (&#161;) - iexcl */	"\354", /* small i, grave accent (&#236;) - igrave */	"\277", /* inverted question mark (&#191;) - iquest */	"\357", /* small i, dieresis or umlaut mark (&#239;) - iuml */	"\253", /* angle quotation mark, left (&#171;) - laquo */	"\074", /* less than (&#60;) - lt */	"\257", /* spacing macron (&#175;) - macr */	"-",	/* dash the width of emsp - mdash */	"\265", /* micro sign (&#181;) - micro */	"\267", /* middle dot (&#183;) - middot */	"\001", /* nbsp non-breaking space NEVER CHANGE THIS - nbsp */	"-",	/* dash the width of ensp - ndash */	"\254", /* negation sign (&#172;) - not */	"\361", /* small n, tilde (&#241;) - ntilde */	"\363", /* small o, acute accent (&#243;) - oacute */	"\364", /* small o, circumflex accent (&#244;) - ocirc */	"\362", /* small o, grave accent (&#242;) - ograve */	"\252", /* feminine ordinal indicator (&#170;) - ordf */	"\272", /* masculine ordinal indicator (&#186;) - ordm */	"\370", /* small o, slash (&#248;) - oslash */	"\365", /* small o, tilde (&#245;) - otilde */	"\366", /* small o, dieresis or umlaut mark (&#246;) - ouml */	"\266", /* paragraph sign (&#182;) - para */	"\261", /* plus-or-minus sign (&#177;) - plusmn */	"\243", /* pound sign (&#163;) - pound */	"\042", /* quote '"' (&#34;) - quot */	"\273", /* angle quotation mark, right (&#187;) - raquo */	"\256", /* circled R registered sign (&#174;) - reg */	"\247", /* section sign (&#167;) - sect */	"\007", /* soft hyphen (&#173;) NEVER CHANGE THIS - shy */	"\271", /* superscript 1 (&#185;) - sup1 */	"\262", /* superscript 2 (&#178;) - sup2 */	"\263", /* superscript 3 (&#179;) - sup3 */	"\337", /* small sharp s, German (sz ligature) (&#223;) - szlig */	"\002", /* thin space - not collapsed NEVER CHANGE THIS - thinsp */	"\376", /* small thorn, Icelandic (&#254;) - thorn */	"\327", /* multiplication sign (&#215;) - times */	"(TM)", /* circled TM trade mark sign (&#8482;) - trade */	"\372", /* small u, acute accent (&#250;) - uacute */	"\373", /* small u, circumflex accent (&#251;) - ucirc */	"\371", /* small u, grave accent (&#249;) - ugrave */	"\250", /* spacing dieresis (&#168;) - uml */	"\374", /* small u, dieresis or umlaut mark (&#252;) - uuml */	"\375", /* small y, acute accent (&#253;) - yacute */	"\245", /* yen sign (&#165;) - yen */	"\377", /* small y, dieresis or umlaut mark (&#255;) - yuml */};/*	Entity values -- 7 bit character approximations****	This MUST match exactly the table referred to in the DTD!*/PUBLIC char * SevenBitApproximations[] = {	"AE",	/* capital AE diphthong (ligature) (&#198;) - AElig */	"A",	/* capital A, acute accent (&#193;) - Aacute */	"A",	/* capital A, circumflex accent (&#194;) - Acirc */	"A",	/* capital A, grave accent (&#192;) - Agrave */	"A",	/* capital A, ring - Aring (&#197;) */	"A",	/* capital A, tilde - Atilde (&#195;) */#ifdef LY_UMLAUT	"Ae",	/* capital A, dieresis or umlaut mark (&#196;) - Auml*/#else	"A",	/* capital A, dieresis or umlaut mark (&#196;) - Auml*/#endif /* LY_UMLAUT */	"C",	/* capital C, cedilla (&#199;) - Ccedil */	"Dj",	/* capital D with stroke (&#208;) - Dstrok */	"DH",	/* capital Eth, Icelandic (&#208;) - ETH */	"E",	/* capital E, acute accent (&#201;) - Eacute */	"E",	/* capital E, circumflex accent (&#202;) - Ecirc */	"E",	/* capital E, grave accent (&#200;) - Egrave */	"E",	/* capital E, dieresis or umlaut mark (&#203;) - Euml */	"I",	/* capital I, acute accent (&#205;) - Iacute */	"I",	/* capital I, circumflex accent (&#206;) - Icirc */	"I",	/* capital I, grave accent (&#204;) - Igrave */	"I",	/* capital I, dieresis or umlaut mark (&#207;) - Iuml */	"N",	/* capital N, tilde - Ntilde (&#209;) */	"O",	/* capital O, acute accent (&#211;) - Oacute */	"O",	/* capital O, circumflex accent (&#212;) - Ocirc */	"O",	/* capital O, grave accent (&#210;) - Ograve */	"O",	/* capital O, slash (&#216;) - Oslash */	"O",	/* capital O, tilde (&#213;) - Otilde */#ifdef LY_UMLAUT	"Oe",	/* capital O, dieresis or umlaut mark (&#214;) - Ouml */#else	"O",	/* capital O, dieresis or umlaut mark (&#214;) - Ouml */#endif /* LY_UMLAUT */	"P",	/* capital THORN, Icelandic (&#222;) - THORN */	"U",	/* capital U, acute accent (&#218;) - Uacute */	"U",	/* capital U, circumflex accent (&#219;) - Ucirc */	"U",	/* capital U, grave accent (&#217;) - Ugrave */#ifdef LY_UMLAUT	"Ue",	/* capital U, dieresis or umlaut mark (&#220;) - Uuml */#else	"U",	/* capital U, dieresis or umlaut mark (&#220;) - Uuml */#endif /* LY_UMLAUT */	"Y",	/* capital Y, acute accent (&#221;) - Yacute */	"a",	/* small a, acute accent (&#225;) - aacute */	"a",	/* small a, circumflex accent (&#226;) - acirc */	"'",	/* spacing acute (&#180;) - acute */	"ae",	/* small ae diphthong (ligature) (&#230;) - aelig */	"`a",	/* small a, grave accent (&#232;) - agrave */	"&",	/* ampersand (&#38;) - amp */	"a",	/* small a, ring (&#229;) - aring */	"a",	/* small a, tilde (&#227;) - atilde */#ifdef LY_UMLAUT	"ae",	/* small a, dieresis or umlaut mark (&#228;) - auml */#else	"a",	/* small a, dieresis or umlaut mark (&#228;) - auml */#endif /* LY_UMLAUT */	"|",	/* broken vertical bar (&#166;) - brkbar */	"|",	/* broken vertical bar (&#166;) - brvbar */	"c",	/* small c, cedilla (&#231;) - ccedil */	",",	/* spacing cedilla (&#184;) - cedil */	"-c-",	/* cent sign (&#162;) - cent */	"(c)",	/* copyright sign (&#169;) - copy */	"CUR",	/* currency sign (&#164;) - curren */	"DEG",	/* degree sign (&#176;) - deg */	"\042", /* spacing dieresis (&#168;) - die */	"/",	/* division sign (&#247;) - divide */	"e",	/* small e, acute accent (&#233;) - eacute */	"e",	/* small e, circumflex accent (&#234;) - ecirc */	"e",	/* small e, grave accent (&#232;) - egrave */	"-",	/* dash the width of emsp - emdash */	"\002", /* emsp NEVER CHANGE THIS - emsp */	"-",	/* dash the width of ensp - endash */	"\002", /* ensp NEVER CHANGE THIS - ensp */	"dh",	/* small eth, Icelandic eth (&#240;) */	"e",	/* small e, dieresis or umlaut mark (&#235;) - euml */	" 1/2", /* fraction 1/2 (&#189;) - frac12 */	" 1/4", /* fraction 1/4 (&#188;) - frac14 */	" 3/4", /* fraction 3/4 (&#190;) - frac34 */	">",	/* greater than (&#62;) - gt */	"-",	/* spacing macron (&#175;) - hibar */	"i",	/* small i, acute accent (&#237;) - iacute */	"i",	/* small i, circumflex accent (&#238;) - icirc*/	"!",	/* inverted exclamation mark (&#161;) - iexcl */	"`i",	/* small i, grave accent (&#236;) - igrave */	"?",	/* inverted question mark (&#191;) - iquest */	"i",	/* small i, dieresis or umlaut mark (&#239;) - iuml */	"<<",	/* angle quotation mark, left (&#171;) - laquo */	"<",	/* less than - lt (&#60;) */	"-",	/* spacing macron (&#175;) - macr */	"-",	/* dash the width of emsp - mdash */	"u",	/* micro sign (&#181;) - micro */	".",	/* middle dot (&#183;) - middot */	"\001", /* nbsp non-breaking space NEVER CHANGE THIS - nbsp */	"-",	/* dash the width of ensp - ndash */	"NOT",	/* negation sign (&#172;) - not */	"n",	/* small n, tilde (&#241;) - ntilde */	"o",	/* small o, acute accent (&#243;) - oacute */	"o",	/* small o, circumflex accent (&#244;) - ocirc */	"o",	/* small o, grave accent (&#242;) - ograve */	"-a",	/* feminine ordinal indicator (&#170;) - ordf */	"-o",	/* masculine ordinal indicator (&#186;) - ordm */	"o",	/* small o, slash (&#248;) - oslash */	"o",	/* small o, tilde (&#245;) - otilde */#ifdef LY_UMLAUT	"oe",	/* small o, dieresis or umlaut mark (&#246;) - ouml */#else	"o",	/* small o, dieresis or umlaut mark (&#246;) - ouml */#endif /* LY_UMLAUT */	"P:",	/* paragraph sign (&#182;) - para */	"+-",	/* plus-or-minus sign (&#177;) - plusmn */	"-L-",	/* pound sign (&#163;) - pound */	"\"",	/* quote '"' (&#34;) - quot */	">>",	/* angle quotation mark, right (&#187;) - raquo */	"(R)",	/* circled R registered sign (&#174;) - reg */	"S:",	/* section sign (&#167;) - sect */	"\007", /* soft hyphen (&#173;) NEVER CHANGE THIS - shy */	"^1",	/* superscript 1 (&#185;) - sup1 */	"^2",	/* superscript 2 (&#178;) - sup2 */	"^3",	/* superscript 3 (&#179;) - sup3 */	"ss",	/* small sharp s, German (sz ligature) (&#223;) - szlig */	"\002", /* thin space - not collapsed NEVER CHANGE THIS - thinsp */	"p",	/* small thorn, Icelandic (&#254;) - thorn */	"*",	/* multiplication sign (&#215;) - times */	"(TM)", /* circled TM trade mark sign (&#8482;) - trade */	"u",	/* small u, acute accent (&#250;) - uacute */	"u",	/* small u, circumflex accent (&#251;) - ucirc */	"u",	/* small u, grave accent (&#249;) - ugrave */	"\042", /* spacing dieresis (&#168;) - uml */#ifdef LY_UMLAUT	"ue",	/* small u, dieresis or umlaut mark (&#252;) - uuml */#else	"u",	/* small u, dieresis or umlaut mark (&#252;) - uuml */#endif /* LY_UMLAUT */	"y",	/* small y, acute accent (&#253;) - yacute */	"YEN",	/* yen sign (&#165;) - yen */

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -