pdf-interpret 0.5.9

A crate for interpreting PDF files.
Documentation
// The TeX and AMS glyph names, the extension of the Adobe Glyph List that
// covers what a TeX distribution puts in `/Encoding /Differences` (#550).
//
// Generated by `scripts/font/build_tex_glyph_names.py` from
// lcdf-typetools texglyphlist.txt, Version 2.95
// Do not edit by hand; regenerate, so the table keeps saying where it came
// from. Names the AGL already carries are not repeated here: `glyph_names`
// is consulted first, and this table only answers what it could not.

use phf::phf_map;

/// The character a TeX glyph name stands for, or `None` when the list does not
/// name it. Entries whose only reading is a private-use code point are absent
/// by construction -- see the generator.
pub(crate) fn get(name: &str) -> Option<&'static str> {
    TEX_GLYPH_NAMES.get(name).copied()
}

static TEX_GLYPH_NAMES: phf::Map<&'static str, &'static str> = phf_map! {
    "Dbar" => "\u{0110}",
    "Digamma" => "\u{1D7CB}",
    "FFIsmall" => "\u{0066}\u{0066}\u{0069}",
    "FFLsmall" => "\u{0066}\u{0066}\u{006C}",
    "FFsmall" => "\u{0066}\u{0066}",
    "FIsmall" => "\u{0066}\u{0069}",
    "FLsmall" => "\u{0066}\u{006C}",
    "Finv" => "\u{2132}",
    "Germandbls" => "\u{0053}\u{0053}",
    "Germandblssmall" => "\u{0073}\u{0073}",
    "Gmir" => "\u{2141}",
    "Ifractur" => "\u{2111}",
    "Ng" => "\u{014A}",
    "Omegainv" => "\u{2127}",
    "Rfractur" => "\u{211C}",
    "SS" => "\u{0053}\u{0053}",
    "SSsmall" => "\u{0073}\u{0073}",
    "Yen" => "\u{00A5}",
    "anticlockwise" => "\u{27F2}",
    "approxorequal" => "\u{224A}",
    "archleftdown" => "\u{21B6}",
    "archrightdown" => "\u{21B7}",
    "arrowbothv" => "\u{2195}",
    "arrowdblbothv" => "\u{21D5}",
    "arrowparrleftright" => "\u{21C6}",
    "arrowparrrightleft" => "\u{21C4}",
    "arrowtailleft" => "\u{21A2}",
    "arrowtailright" => "\u{21A3}",
    "arrowtripleleft" => "\u{21DA}",
    "arrowtripleright" => "\u{21DB}",
    "asteriskcentered" => "\u{2217}",
    "beth" => "\u{2136}",
    "between" => "\u{226C}",
    "ceilingleft" => "\u{2308}",
    "ceilingright" => "\u{2309}",
    "check" => "\u{2713}",
    "circleR" => "\u{00AE}",
    "circleS" => "\u{24C8}",
    "circleasterisk" => "\u{229B}",
    "circledivide" => "\u{2298}",
    "circledot" => "\u{2299}",
    "circleequal" => "\u{229C}",
    "circleminus" => "\u{2296}",
    "circlering" => "\u{229A}",
    "clockwise" => "\u{27F3}",
    "complement" => "\u{2201}",
    "compwordmark" => "\u{200C}",
    "coproduct" => "\u{2A3F}",
    "ct" => "\u{0063}\u{0074}",
    "curlyleft" => "\u{21AB}",
    "curlyright" => "\u{21AC}",
    "cwm" => "\u{200C}",
    "daleth" => "\u{2138}",
    "dbar" => "\u{0111}",
    "dblarrowdwn" => "\u{21CA}",
    "dblarrowheadleft" => "\u{219E}",
    "dblarrowheadright" => "\u{21A0}",
    "dblarrowup" => "\u{21C8}",
    "dblbracketleft" => "\u{27E6}",
    "dblbracketright" => "\u{27E7}",
    "defines" => "\u{225C}",
    "diamondmath" => "\u{22C4}",
    "diamondsolid" => "\u{2666}",
    "difference" => "\u{224F}",
    "dividemultiply" => "\u{22C7}",
    "dotplus" => "\u{2214}",
    "downfall" => "\u{22CE}",
    "downslope" => "\u{29F9}",
    "epsiloninv" => "\u{03F6}",
    "equaldotleftright" => "\u{2252}",
    "equaldotrightleft" => "\u{2253}",
    "equalorfollows" => "\u{22DF}",
    "equalorgreater" => "\u{2A96}",
    "equalorless" => "\u{2A95}",
    "equalorprecedes" => "\u{22DE}",
    "equalorsimilar" => "\u{2242}",
    "equalsdots" => "\u{2251}",
    "equivasymptotic" => "\u{224D}",
    "flat" => "\u{266D}",
    "floorleft" => "\u{230A}",
    "floorright" => "\u{230B}",
    "follownotdbleqv" => "\u{2ABA}",
    "follownotslnteql" => "\u{2AB6}",
    "followornoteqvlnt" => "\u{22E9}",
    "follows" => "\u{227B}",
    "followsequal" => "\u{2AB0}",
    "followsorcurly" => "\u{227D}",
    "followsorequal" => "\u{227F}",
    "forces" => "\u{22A9}",
    "forcesbar" => "\u{22AA}",
    "fork" => "\u{22D4}",
    "frown" => "\u{2322}",
    "geomequivalent" => "\u{224E}",
    "greaterdbleqlless" => "\u{2A8C}",
    "greaterdblequal" => "\u{2267}",
    "greaterdot" => "\u{22D7}",
    "greaterlessequal" => "\u{22DB}",
    "greatermuch" => "\u{226B}",
    "greaternotdblequal" => "\u{2A8A}",
    "greaternotequal" => "\u{2A88}",
    "greaterorapproxeql" => "\u{2A86}",
    "greaterorequalslant" => "\u{2A7E}",
    "greaterornotdbleql" => "\u{2269}",
    "greaterornotequal" => "\u{2269}",
    "greaterorsimilar" => "\u{2273}",
    "harpoondownleft" => "\u{21C3}",
    "harpoondownright" => "\u{21C2}",
    "harpoonleftright" => "\u{21CC}",
    "harpoonrightleft" => "\u{21CB}",
    "harpoonupleft" => "\u{21BF}",
    "harpoonupright" => "\u{21BE}",
    "hyphenchar" => "\u{002D}",
    "integerdivide" => "\u{2216}",
    "interrobang" => "\u{203D}",
    "interrobangdown" => "\u{2E18}",
    "intersectiondbl" => "\u{22D2}",
    "intersectionsq" => "\u{2293}",
    "latticetop" => "\u{22A4}",
    "lessdbleqlgreater" => "\u{2A8B}",
    "lessdblequal" => "\u{2266}",
    "lessdot" => "\u{22D6}",
    "lessequalgreater" => "\u{22DA}",
    "lessmuch" => "\u{226A}",
    "lessnotdblequal" => "\u{2A89}",
    "lessnotequal" => "\u{2A87}",
    "lessorapproxeql" => "\u{2A85}",
    "lessorequalslant" => "\u{2A7D}",
    "lessornotdbleql" => "\u{2268}",
    "lessornotequal" => "\u{2268}",
    "lessorsimilar" => "\u{2272}",
    "longdbls" => "\u{017F}\u{017F}",
    "longsh" => "\u{017F}\u{0068}",
    "longsi" => "\u{017F}\u{0069}",
    "longsl" => "\u{017F}\u{006C}",
    "longst" => "\u{FB05}",
    "lscript" => "\u{2113}",
    "maltesecross" => "\u{2720}",
    "measuredangle" => "\u{2221}",
    "multicloseleft" => "\u{22C9}",
    "multicloseright" => "\u{22CA}",
    "multimap" => "\u{22B8}",
    "multiopenleft" => "\u{22CB}",
    "multiopenright" => "\u{22CC}",
    "nand" => "\u{22BC}",
    "natural" => "\u{266E}",
    "negationslash" => "\u{0338}",
    "ng" => "\u{014B}",
    "notapproxequal" => "\u{2247}",
    "notarrowboth" => "\u{21AE}",
    "notarrowleft" => "\u{219A}",
    "notarrowright" => "\u{219B}",
    "notbar" => "\u{2224}",
    "notdblarrowboth" => "\u{21CE}",
    "notdblarrowleft" => "\u{21CD}",
    "notdblarrowright" => "\u{21CF}",
    "notexistential" => "\u{2204}",
    "notfollows" => "\u{2281}",
    "notfollowsoreql" => "\u{2AB0}\u{0338}",
    "notforces" => "\u{22AE}",
    "notforcesextra" => "\u{22AF}",
    "notgreaterdblequal" => "\u{2267}\u{0338}",
    "notgreaterequal" => "\u{2271}",
    "notgreaterorslnteql" => "\u{2A7E}\u{0338}",
    "notlessdblequal" => "\u{2266}\u{0338}",
    "notlessequal" => "\u{2270}",
    "notlessorslnteql" => "\u{2A7D}\u{0338}",
    "notprecedesoreql" => "\u{2AAF}\u{0338}",
    "notsatisfies" => "\u{22AD}",
    "notsimilar" => "\u{2241}",
    "notsubseteql" => "\u{2288}",
    "notsubsetordbleql" => "\u{2AC5}\u{0338}",
    "notsubsetoreql" => "\u{228A}",
    "notsuperseteql" => "\u{2289}",
    "notsupersetordbleql" => "\u{2AC6}\u{0338}",
    "notsupersetoreql" => "\u{228B}",
    "nottriangeqlleft" => "\u{22EC}",
    "nottriangeqlright" => "\u{22ED}",
    "nottriangleleft" => "\u{22EA}",
    "nottriangleright" => "\u{22EB}",
    "notturnstile" => "\u{22AC}",
    "orunderscore" => "\u{22BB}",
    "owner" => "\u{220B}",
    "perpcorrespond" => "\u{2A5E}",
    "pertenthousand" => "\u{2031}",
    "pi1" => "\u{03D6}",
    "planckover2pi" => "\u{210F}",
    "planckover2pi1" => "\u{210F}",
    "precedenotdbleqv" => "\u{2AB9}",
    "precedenotslnteql" => "\u{2AB5}",
    "precedeornoteqvlnt" => "\u{22E8}",
    "precedesequal" => "\u{2AAF}",
    "precedesorcurly" => "\u{227C}",
    "precedesorequal" => "\u{227E}",
    "primereverse" => "\u{2035}",
    "punctdash" => "\u{2014}",
    "rangedash" => "\u{2013}",
    "revasymptequal" => "\u{22CD}",
    "revsimilar" => "\u{223D}",
    "rho1" => "\u{03F1}",
    "rightanglene" => "\u{231D}",
    "rightanglenw" => "\u{231C}",
    "rightanglese" => "\u{231F}",
    "rightanglesw" => "\u{231E}",
    "ringinequal" => "\u{2256}",
    "satisfies" => "\u{22A8}",
    "sharp" => "\u{266F}",
    "shiftleft" => "\u{21B0}",
    "shiftright" => "\u{21B1}",
    "similarequal" => "\u{2243}",
    "slurabove" => "\u{2322}",
    "slurbelow" => "\u{2323}",
    "smile" => "\u{2323}",
    "sphericalangle" => "\u{2222}",
    "square" => "\u{25A1}",
    "squaredot" => "\u{22A1}",
    "squareimage" => "\u{228F}",
    "squareminus" => "\u{229F}",
    "squaremultiply" => "\u{22A0}",
    "squareoriginal" => "\u{2290}",
    "squareplus" => "\u{229E}",
    "squaresolid" => "\u{25A0}",
    "squiggleleftright" => "\u{21AD}",
    "squiggleright" => "\u{21DD}",
    "st" => "\u{FB06}",
    "star" => "\u{22C6}",
    "subsetdbl" => "\u{22D0}",
    "subsetdblequal" => "\u{2AC5}",
    "subsetnoteql" => "\u{228A}",
    "subsetornotdbleql" => "\u{2ACB}",
    "subsetsqequal" => "\u{2291}",
    "supersetdbl" => "\u{22D1}",
    "supersetdblequal" => "\u{2AC6}",
    "supersetnoteql" => "\u{228B}",
    "supersetornotdbleql" => "\u{2ACC}",
    "supersetsqequal" => "\u{2292}",
    "triangle" => "\u{25B3}",
    "triangledownsld" => "\u{25BC}",
    "triangleinv" => "\u{25BD}",
    "triangleleft" => "\u{25C1}",
    "triangleleftequal" => "\u{22B4}",
    "triangleleftsld" => "\u{25C0}",
    "triangleright" => "\u{25B7}",
    "trianglerightequal" => "\u{22B5}",
    "trianglerightsld" => "\u{25B6}",
    "trianglesolid" => "\u{25B2}",
    "turnstileleft" => "\u{22A2}",
    "turnstileright" => "\u{22A3}",
    "uniondbl" => "\u{22D3}",
    "unionmulti" => "\u{228E}",
    "unionsq" => "\u{2294}",
    "uprise" => "\u{22CF}",
    "upslope" => "\u{29F8}",
    "vector" => "\u{20D7}",
    "visiblespace" => "\u{2423}",
    "visualspace" => "\u{2423}",
    "wreathproduct" => "\u{2240}",
};