2246 lines · 42.6 KB · C
RawDownload
#include <u.h>#include <libc.h>#include <bio.h>#include "hdr.h"#include "conv.h" typedef struct Hchar Hchar;struct Hchar{	char *s;	Rune r;}; /* * Names beginning with _ are names we recognize * (without the underscore) but will not generate, * because they are nonstandard. */static Hchar byname[] ={	{"AElig", 198},	{"Aacute", 193},	{"Abreve", 258},	{"Acirc", 194},	{"Acy", 1040},	{"Agrave", 192},	{"Alpha", 913},	{"Amacr", 256},	{"And", 10835},	{"Aogon", 260},	{"ApplyFunction", 8289},	{"Aring", 197},	{"Assign", 8788},	{"Atilde", 195},	{"Auml", 196},	{"Backslash", 8726},	{"Barv", 10983},	{"Barwed", 8966},	{"Bcy", 1041},	{"Because", 8757},	{"Bernoullis", 8492},	{"Beta", 914},	{"Breve", 728},	{"Bscr", 8492},	{"Bumpeq", 8782},	{"CHcy", 1063},	{"Cacute", 262},	{"Cap", 8914},	{"CapitalDifferentialD", 8517},	{"Cayleys", 8493},	{"Ccaron", 268},	{"Ccedil", 199},	{"Ccirc", 264},	{"Cconint", 8752},	{"Cdot", 266},	{"Cedilla", 184},	{"CenterDot", 183},	{"Cfr", 8493},	{"Chi", 935},	{"CircleDot", 8857},	{"CircleMinus", 8854},	{"CirclePlus", 8853},	{"CircleTimes", 8855},	{"ClockwiseContourIntegral", 8754},	{"CloseCurlyDoubleQuote", 8221},	{"CloseCurlyQuote", 8217},	{"Colon", 8759},	{"Colone", 10868},	{"Congruent", 8801},	{"Conint", 8751},	{"ContourIntegral", 8750},	{"Copf", 8450},	{"Coproduct", 8720},	{"CounterClockwiseContourIntegral", 8755},	{"Cross", 10799},	{"Cup", 8915},	{"CupCap", 8781},	{"DD", 8517},	{"DDotrahd", 10513},	{"DJcy", 1026},	{"DScy", 1029},	{"DZcy", 1039},	{"Dagger", 8225},	{"Darr", 8609},	{"Dashv", 10980},	{"Dcaron", 270},	{"Dcy", 1044},	{"Del", 8711},	{"Delta", 916},	{"DiacriticalAcute", 180},	{"DiacriticalDot", 729},	{"DiacriticalDoubleAcute", 733},	{"DiacriticalGrave", 96},	{"DiacriticalTilde", 732},	{"Diamond", 8900},	{"DifferentialD", 8518},	{"Dot", 168},	{"DotDot", 8412},	{"DotEqual", 8784},	{"DoubleContourIntegral", 8751},	{"DoubleDot", 168},	{"DoubleDownArrow", 8659},	{"DoubleLeftArrow", 8656},	{"DoubleLeftRightArrow", 8660},	{"DoubleLeftTee", 10980},	{"DoubleLongLeftArrow", 10232},	{"DoubleLongLeftRightArrow", 10234},	{"DoubleLongRightArrow", 10233},	{"DoubleRightArrow", 8658},	{"DoubleRightTee", 8872},	{"DoubleUpArrow", 8657},	{"DoubleUpDownArrow", 8661},	{"DoubleVerticalBar", 8741},	{"DownArrow", 8595},	{"DownArrowBar", 10515},	{"DownArrowUpArrow", 8693},	{"DownBreve", 785},	{"DownLeftRightVector", 10576},	{"DownLeftTeeVector", 10590},	{"DownLeftVector", 8637},	{"DownLeftVectorBar", 10582},	{"DownRightTeeVector", 10591},	{"DownRightVector", 8641},	{"DownRightVectorBar", 10583},	{"DownTee", 8868},	{"DownTeeArrow", 8615},	{"Downarrow", 8659},	{"Dstrok", 272},	{"ENG", 330},	{"ETH", 208},	{"Eacute", 201},	{"Ecaron", 282},	{"Ecirc", 202},	{"Ecy", 1069},	{"Edot", 278},	{"Egrave", 200},	{"Element", 8712},	{"Emacr", 274},	{"EmptySmallSquare", 9723},	{"EmptyVerySmallSquare", 9643},	{"Eogon", 280},	{"Epsilon", 917},	{"Equal", 10869},	{"EqualTilde", 8770},	{"Equilibrium", 8652},	{"Escr", 8496},	{"Esim", 10867},	{"Eta", 919},	{"Euml", 203},	{"Exists", 8707},	{"ExponentialE", 8519},	{"Fcy", 1060},	{"FilledSmallSquare", 9724},	{"FilledVerySmallSquare", 9642},	{"ForAll", 8704},	{"Fouriertrf", 8497},	{"Fscr", 8497},	{"GJcy", 1027},	{"Gamma", 915},	{"Gammad", 988},	{"Gbreve", 286},	{"Gcedil", 290},	{"Gcirc", 284},	{"Gcy", 1043},	{"Gdot", 288},	{"Gg", 8921},	{"GreaterEqual", 8805},	{"GreaterEqualLess", 8923},	{"GreaterFullEqual", 8807},	{"GreaterGreater", 10914},	{"GreaterLess", 8823},	{"GreaterSlantEqual", 10878},	{"GreaterTilde", 8819},	{"Gt", 8811},	{"HARDcy", 1066},	{"Hacek", 711},	{"Hat", 94},	{"Hcirc", 292},	{"Hfr", 8460},	{"HilbertSpace", 8459},	{"Hopf", 8461},	{"HorizontalLine", 9472},	{"Hscr", 8459},	{"Hstrok", 294},	{"HumpDownHump", 8782},	{"HumpEqual", 8783},	{"IEcy", 1045},	{"IJlig", 306},	{"IOcy", 1025},	{"Iacute", 205},	{"Icirc", 206},	{"Icy", 1048},	{"Idot", 304},	{"Ifr", 8465},	{"Igrave", 204},	{"Im", 8465},	{"Imacr", 298},	{"ImaginaryI", 8520},	{"Implies", 8658},	{"Int", 8748},	{"Integral", 8747},	{"Intersection", 8898},	{"InvisibleComma", 8291},	{"InvisibleTimes", 8290},	{"Iogon", 302},	{"Iota", 921},	{"Iscr", 8464},	{"Itilde", 296},	{"Iukcy", 1030},	{"Iuml", 207},	{"Jcirc", 308},	{"Jcy", 1049},	{"Jsercy", 1032},	{"Jukcy", 1028},	{"KHcy", 1061},	{"KJcy", 1036},	{"Kappa", 922},	{"Kcedil", 310},	{"Kcy", 1050},	{"LJcy", 1033},	{"Lacute", 313},	{"Lambda", 923},	{"Lang", 10218},	{"Laplacetrf", 8466},	{"Larr", 8606},	{"Lcaron", 317},	{"Lcedil", 315},	{"Lcy", 1051},	{"LeftAngleBracket", 10216},	{"LeftArrow", 8592},	{"LeftArrowBar", 8676},	{"LeftArrowRightArrow", 8646},	{"LeftCeiling", 8968},	{"LeftDoubleBracket", 10214},	{"LeftDownTeeVector", 10593},	{"LeftDownVector", 8643},	{"LeftDownVectorBar", 10585},	{"LeftFloor", 8970},	{"LeftRightArrow", 8596},	{"LeftRightVector", 10574},	{"LeftTee", 8867},	{"LeftTeeArrow", 8612},	{"LeftTeeVector", 10586},	{"LeftTriangle", 8882},	{"LeftTriangleBar", 10703},	{"LeftTriangleEqual", 8884},	{"LeftUpDownVector", 10577},	{"LeftUpTeeVector", 10592},	{"LeftUpVector", 8639},	{"LeftUpVectorBar", 10584},	{"LeftVector", 8636},	{"LeftVectorBar", 10578},	{"Leftarrow", 8656},	{"Leftrightarrow", 8660},	{"LessEqualGreater", 8922},	{"LessFullEqual", 8806},	{"LessGreater", 8822},	{"LessLess", 10913},	{"LessSlantEqual", 10877},	{"LessTilde", 8818},	{"Ll", 8920},	{"Lleftarrow", 8666},	{"Lmidot", 319},	{"LongLeftArrow", 10229},	{"LongLeftRightArrow", 10231},	{"LongRightArrow", 10230},	{"Longleftarrow", 10232},	{"Longleftrightarrow", 10234},	{"Longrightarrow", 10233},	{"LowerLeftArrow", 8601},	{"LowerRightArrow", 8600},	{"Lscr", 8466},	{"Lsh", 8624},	{"Lstrok", 321},	{"Lt", 8810},	{"Map", 10501},	{"Mcy", 1052},	{"MediumSpace", 8287},	{"Mellintrf", 8499},	{"MinusPlus", 8723},	{"Mscr", 8499},	{"Mu", 924},	{"NJcy", 1034},	{"Nacute", 323},	{"Ncaron", 327},	{"Ncedil", 325},	{"Ncy", 1053},	{"NegativeMediumSpace", 8203},	{"NegativeThickSpace", 8203},	{"NegativeThinSpace", 8203},	{"NegativeVeryThinSpace", 8203},	{"NestedGreaterGreater", 8811},	{"NestedLessLess", 8810},	{"NewLine", 10},	{"NoBreak", 8288},	{"NonBreakingSpace", 160},	{"Nopf", 8469},	{"Not", 10988},	{"NotCongruent", 8802},	{"NotCupCap", 8813},	{"NotDoubleVerticalBar", 8742},	{"NotElement", 8713},	{"NotEqual", 8800},	{"NotEqualTilde", 8770},	{"NotExists", 8708},	{"NotGreater", 8815},	{"NotGreaterEqual", 8817},	{"NotGreaterFullEqual", 8807},	{"NotGreaterGreater", 8811},	{"NotGreaterLess", 8825},	{"NotGreaterSlantEqual", 10878},	{"NotGreaterTilde", 8821},	{"NotHumpDownHump", 8782},	{"NotHumpEqual", 8783},	{"NotLeftTriangle", 8938},	{"NotLeftTriangleBar", 10703},	{"NotLeftTriangleEqual", 8940},	{"NotLess", 8814},	{"NotLessEqual", 8816},	{"NotLessGreater", 8824},	{"NotLessLess", 8810},	{"NotLessSlantEqual", 10877},	{"NotLessTilde", 8820},	{"NotNestedGreaterGreater", 10914},	{"NotNestedLessLess", 10913},	{"NotPrecedes", 8832},	{"NotPrecedesEqual", 10927},	{"NotPrecedesSlantEqual", 8928},	{"NotReverseElement", 8716},	{"NotRightTriangle", 8939},	{"NotRightTriangleBar", 10704},	{"NotRightTriangleEqual", 8941},	{"NotSquareSubset", 8847},	{"NotSquareSubsetEqual", 8930},	{"NotSquareSuperset", 8848},	{"NotSquareSupersetEqual", 8931},	{"NotSubset", 8834},	{"NotSubsetEqual", 8840},	{"NotSucceeds", 8833},	{"NotSucceedsEqual", 10928},	{"NotSucceedsSlantEqual", 8929},	{"NotSucceedsTilde", 8831},	{"NotSuperset", 8835},	{"NotSupersetEqual", 8841},	{"NotTilde", 8769},	{"NotTildeEqual", 8772},	{"NotTildeFullEqual", 8775},	{"NotTildeTilde", 8777},	{"NotVerticalBar", 8740},	{"Ntilde", 209},	{"Nu", 925},	{"OElig", 338},	{"Oacute", 211},	{"Ocirc", 212},	{"Ocy", 1054},	{"Odblac", 336},	{"Ograve", 210},	{"Omacr", 332},	{"Omega", 937},	{"Omicron", 927},	{"OpenCurlyDoubleQuote", 8220},	{"OpenCurlyQuote", 8216},	{"Or", 10836},	{"Oslash", 216},	{"Otilde", 213},	{"Otimes", 10807},	{"Ouml", 214},	{"OverBar", 8254},	{"OverBrace", 9182},	{"OverBracket", 9140},	{"OverParenthesis", 9180},	{"PartialD", 8706},	{"Pcy", 1055},	{"Phi", 934},	{"Pi", 928},	{"PlusMinus", 177},	{"Poincareplane", 8460},	{"Popf", 8473},	{"Pr", 10939},	{"Precedes", 8826},	{"PrecedesEqual", 10927},	{"PrecedesSlantEqual", 8828},	{"PrecedesTilde", 8830},	{"Prime", 8243},	{"Product", 8719},	{"Proportion", 8759},	{"Proportional", 8733},	{"Psi", 936},	{"Qopf", 8474},	{"RBarr", 10512},	{"Racute", 340},	{"Rang", 10219},	{"Rarr", 8608},	{"Rarrtl", 10518},	{"Rcaron", 344},	{"Rcedil", 342},	{"Rcy", 1056},	{"Re", 8476},	{"ReverseElement", 8715},	{"ReverseEquilibrium", 8651},	{"ReverseUpEquilibrium", 10607},	{"Rfr", 8476},	{"Rho", 929},	{"RightAngleBracket", 10217},	{"RightArrow", 8594},	{"RightArrowBar", 8677},	{"RightArrowLeftArrow", 8644},	{"RightCeiling", 8969},	{"RightDoubleBracket", 10215},	{"RightDownTeeVector", 10589},	{"RightDownVector", 8642},	{"RightDownVectorBar", 10581},	{"RightFloor", 8971},	{"RightTee", 8866},	{"RightTeeArrow", 8614},	{"RightTeeVector", 10587},	{"RightTriangle", 8883},	{"RightTriangleBar", 10704},	{"RightTriangleEqual", 8885},	{"RightUpDownVector", 10575},	{"RightUpTeeVector", 10588},	{"RightUpVector", 8638},	{"RightUpVectorBar", 10580},	{"RightVector", 8640},	{"RightVectorBar", 10579},	{"Rightarrow", 8658},	{"Ropf", 8477},	{"RoundImplies", 10608},	{"Rrightarrow", 8667},	{"Rscr", 8475},	{"Rsh", 8625},	{"RuleDelayed", 10740},	{"SHCHcy", 1065},	{"SHcy", 1064},	{"SOFTcy", 1068},	{"Sacute", 346},	{"Sc", 10940},	{"Scaron", 352},	{"Scedil", 350},	{"Scirc", 348},	{"Scy", 1057},	{"ShortDownArrow", 8595},	{"ShortLeftArrow", 8592},	{"ShortRightArrow", 8594},	{"ShortUpArrow", 8593},	{"Sigma", 931},	{"SmallCircle", 8728},	{"Sqrt", 8730},	{"Square", 9633},	{"SquareIntersection", 8851},	{"SquareSubset", 8847},	{"SquareSubsetEqual", 8849},	{"SquareSuperset", 8848},	{"SquareSupersetEqual", 8850},	{"SquareUnion", 8852},	{"Star", 8902},	{"Sub", 8912},	{"Subset", 8912},	{"SubsetEqual", 8838},	{"Succeeds", 8827},	{"SucceedsEqual", 10928},	{"SucceedsSlantEqual", 8829},	{"SucceedsTilde", 8831},	{"SuchThat", 8715},	{"Sum", 8721},	{"Sup", 8913},	{"Superset", 8835},	{"SupersetEqual", 8839},	{"Supset", 8913},	{"THORN", 222},	{"TSHcy", 1035},	{"TScy", 1062},	{"Tab", 9},	{"Tau", 932},	{"Tcaron", 356},	{"Tcedil", 354},	{"Tcy", 1058},	{"Therefore", 8756},	{"Theta", 920},	{"ThickSpace", 8287},	{"ThinSpace", 8201},	{"Tilde", 8764},	{"TildeEqual", 8771},	{"TildeFullEqual", 8773},	{"TildeTilde", 8776},	{"TripleDot", 8411},	{"Tstrok", 358},	{"Uacute", 218},	{"Uarr", 8607},	{"Uarrocir", 10569},	{"Ubrcy", 1038},	{"Ubreve", 364},	{"Ucirc", 219},	{"Ucy", 1059},	{"Udblac", 368},	{"Ugrave", 217},	{"Umacr", 362},	{"UnderBar", 95},	{"UnderBrace", 9183},	{"UnderBracket", 9141},

Lines 1–500 of 2246.