| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015 |
- // Copyright (C) 2004-2021 Artifex Software, Inc.
- //
- // This file is part of MuPDF.
- //
- // MuPDF is free software: you can redistribute it and/or modify it under the
- // terms of the GNU Affero General Public License as published by the Free
- // Software Foundation, either version 3 of the License, or (at your option)
- // any later version.
- //
- // MuPDF is distributed in the hope that it will be useful, but WITHOUT ANY
- // WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
- // FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
- // details.
- //
- // You should have received a copy of the GNU Affero General Public License
- // along with MuPDF. If not, see <https://www.gnu.org/licenses/agpl-3.0.en.html>
- //
- // Alternative licensing terms are available from the licensor.
- // For commercial licensing, see <https://www.artifex.com/> or contact
- // Artifex Software, Inc., 39 Mesa Street, Suite 108A, San Francisco,
- // CA 94129, USA, for further information.
- #define _notdef NULL
- const unsigned short fz_unicode_from_pdf_doc_encoding[256] =
- {
- /* 0x0 to 0x17 except \t, \n and \r are really undefined */
- 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07,
- 0x08, 0x09, 0x0A, 0x0B, 0x0C, 0x0D, 0x0E, 0x0F,
- 0x10, 0x11, 0x12, 0x13, 0x14, 0x15, 0x16, 0x17,
- 0x02d8, 0x02c7, 0x02c6, 0x02d9, 0x02dd, 0x02db, 0x02da, 0x02dc,
- 0x0020, 0x0021, 0x0022, 0x0023, 0x0024, 0x0025, 0x0026, 0x0027,
- 0x0028, 0x0029, 0x002a, 0x002b, 0x002c, 0x002d, 0x002e, 0x002f,
- 0x0030, 0x0031, 0x0032, 0x0033, 0x0034, 0x0035, 0x0036, 0x0037,
- 0x0038, 0x0039, 0x003a, 0x003b, 0x003c, 0x003d, 0x003e, 0x003f,
- 0x0040, 0x0041, 0x0042, 0x0043, 0x0044, 0x0045, 0x0046, 0x0047,
- 0x0048, 0x0049, 0x004a, 0x004b, 0x004c, 0x004d, 0x004e, 0x004f,
- 0x0050, 0x0051, 0x0052, 0x0053, 0x0054, 0x0055, 0x0056, 0x0057,
- 0x0058, 0x0059, 0x005a, 0x005b, 0x005c, 0x005d, 0x005e, 0x005f,
- 0x0060, 0x0061, 0x0062, 0x0063, 0x0064, 0x0065, 0x0066, 0x0067,
- 0x0068, 0x0069, 0x006a, 0x006b, 0x006c, 0x006d, 0x006e, 0x006f,
- 0x0070, 0x0071, 0x0072, 0x0073, 0x0074, 0x0075, 0x0076, 0x0077,
- 0x0078, 0x0079, 0x007a, 0x007b, 0x007c, 0x007d, 0x007e, 0x0000,
- 0x2022, 0x2020, 0x2021, 0x2026, 0x2014, 0x2013, 0x0192, 0x2044,
- 0x2039, 0x203a, 0x2212, 0x2030, 0x201e, 0x201c, 0x201d, 0x2018,
- 0x2019, 0x201a, 0x2122, 0xfb01, 0xfb02, 0x0141, 0x0152, 0x0160,
- 0x0178, 0x017d, 0x0131, 0x0142, 0x0153, 0x0161, 0x017e, 0x0000,
- 0x20ac, 0x00a1, 0x00a2, 0x00a3, 0x00a4, 0x00a5, 0x00a6, 0x00a7,
- 0x00a8, 0x00a9, 0x00aa, 0x00ab, 0x00ac, 0x0000, 0x00ae, 0x00af,
- 0x00b0, 0x00b1, 0x00b2, 0x00b3, 0x00b4, 0x00b5, 0x00b6, 0x00b7,
- 0x00b8, 0x00b9, 0x00ba, 0x00bb, 0x00bc, 0x00bd, 0x00be, 0x00bf,
- 0x00c0, 0x00c1, 0x00c2, 0x00c3, 0x00c4, 0x00c5, 0x00c6, 0x00c7,
- 0x00c8, 0x00c9, 0x00ca, 0x00cb, 0x00cc, 0x00cd, 0x00ce, 0x00cf,
- 0x00d0, 0x00d1, 0x00d2, 0x00d3, 0x00d4, 0x00d5, 0x00d6, 0x00d7,
- 0x00d8, 0x00d9, 0x00da, 0x00db, 0x00dc, 0x00dd, 0x00de, 0x00df,
- 0x00e0, 0x00e1, 0x00e2, 0x00e3, 0x00e4, 0x00e5, 0x00e6, 0x00e7,
- 0x00e8, 0x00e9, 0x00ea, 0x00eb, 0x00ec, 0x00ed, 0x00ee, 0x00ef,
- 0x00f0, 0x00f1, 0x00f2, 0x00f3, 0x00f4, 0x00f5, 0x00f6, 0x00f7,
- 0x00f8, 0x00f9, 0x00fa, 0x00fb, 0x00fc, 0x00fd, 0x00fe, 0x00ff
- };
- const char *fz_glyph_name_from_adobe_standard[256] = {
- _notdef, _notdef, _notdef, _notdef, _notdef, _notdef, _notdef, _notdef,
- _notdef, _notdef, _notdef, _notdef, _notdef, _notdef, _notdef, _notdef,
- _notdef, _notdef, _notdef, _notdef, _notdef, _notdef, _notdef, _notdef,
- _notdef, _notdef, _notdef, _notdef, _notdef, _notdef, _notdef, _notdef,
- "space", "exclam", "quotedbl", "numbersign", "dollar", "percent",
- "ampersand", "quoteright", "parenleft", "parenright", "asterisk",
- "plus", "comma", "hyphen", "period", "slash", "zero", "one", "two",
- "three", "four", "five", "six", "seven", "eight", "nine", "colon",
- "semicolon", "less", "equal", "greater", "question", "at", "A", "B",
- "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P",
- "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z", "bracketleft",
- "backslash", "bracketright", "asciicircum", "underscore", "quoteleft",
- "a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n",
- "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z",
- "braceleft", "bar", "braceright", "asciitilde", _notdef, _notdef,
- _notdef, _notdef, _notdef, _notdef, _notdef, _notdef, _notdef, _notdef,
- _notdef, _notdef, _notdef, _notdef, _notdef, _notdef, _notdef, _notdef,
- _notdef, _notdef, _notdef, _notdef, _notdef, _notdef, _notdef, _notdef,
- _notdef, _notdef, _notdef, _notdef, _notdef, _notdef, _notdef, _notdef,
- "exclamdown", "cent", "sterling", "fraction", "yen", "florin",
- "section", "currency", "quotesingle", "quotedblleft", "guillemotleft",
- "guilsinglleft", "guilsinglright", "fi", "fl", _notdef, "endash",
- "dagger", "daggerdbl", "periodcentered", _notdef, "paragraph",
- "bullet", "quotesinglbase", "quotedblbase", "quotedblright",
- "guillemotright", "ellipsis", "perthousand", _notdef, "questiondown",
- _notdef, "grave", "acute", "circumflex", "tilde", "macron", "breve",
- "dotaccent", "dieresis", _notdef, "ring", "cedilla", _notdef,
- "hungarumlaut", "ogonek", "caron", "emdash", _notdef, _notdef, _notdef,
- _notdef, _notdef, _notdef, _notdef, _notdef, _notdef, _notdef, _notdef,
- _notdef, _notdef, _notdef, _notdef, _notdef, "AE", _notdef,
- "ordfeminine", _notdef, _notdef, _notdef, _notdef, "Lslash", "Oslash",
- "OE", "ordmasculine", _notdef, _notdef, _notdef, _notdef, _notdef,
- "ae", _notdef, _notdef, _notdef, "dotlessi", _notdef, _notdef,
- "lslash", "oslash", "oe", "germandbls", _notdef, _notdef, _notdef,
- _notdef
- };
- const char *fz_glyph_name_from_mac_roman[256] = {
- _notdef, _notdef, _notdef, _notdef, _notdef, _notdef, _notdef, _notdef,
- _notdef, _notdef, _notdef, _notdef, _notdef, _notdef, _notdef, _notdef,
- _notdef, _notdef, _notdef, _notdef, _notdef, _notdef, _notdef, _notdef,
- _notdef, _notdef, _notdef, _notdef, _notdef, _notdef, _notdef, _notdef,
- "space", "exclam", "quotedbl", "numbersign", "dollar", "percent",
- "ampersand", "quotesingle", "parenleft", "parenright", "asterisk",
- "plus", "comma", "hyphen", "period", "slash", "zero", "one", "two",
- "three", "four", "five", "six", "seven", "eight", "nine", "colon",
- "semicolon", "less", "equal", "greater", "question", "at", "A", "B",
- "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P",
- "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z", "bracketleft",
- "backslash", "bracketright", "asciicircum", "underscore", "grave", "a",
- "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o",
- "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z", "braceleft",
- "bar", "braceright", "asciitilde", _notdef, "Adieresis", "Aring",
- "Ccedilla", "Eacute", "Ntilde", "Odieresis", "Udieresis", "aacute",
- "agrave", "acircumflex", "adieresis", "atilde", "aring", "ccedilla",
- "eacute", "egrave", "ecircumflex", "edieresis", "iacute", "igrave",
- "icircumflex", "idieresis", "ntilde", "oacute", "ograve",
- "ocircumflex", "odieresis", "otilde", "uacute", "ugrave",
- "ucircumflex", "udieresis", "dagger", "degree", "cent", "sterling",
- "section", "bullet", "paragraph", "germandbls", "registered",
- "copyright", "trademark", "acute", "dieresis", _notdef, "AE", "Oslash",
- _notdef, "plusminus", _notdef, _notdef, "yen", "mu", _notdef, _notdef,
- _notdef, _notdef, _notdef, "ordfeminine", "ordmasculine", _notdef,
- "ae", "oslash", "questiondown", "exclamdown", "logicalnot", _notdef,
- "florin", _notdef, _notdef, "guillemotleft", "guillemotright",
- "ellipsis", "space", "Agrave", "Atilde", "Otilde", "OE", "oe",
- "endash", "emdash", "quotedblleft", "quotedblright", "quoteleft",
- "quoteright", "divide", _notdef, "ydieresis", "Ydieresis", "fraction",
- "currency", "guilsinglleft", "guilsinglright", "fi", "fl", "daggerdbl",
- "periodcentered", "quotesinglbase", "quotedblbase", "perthousand",
- "Acircumflex", "Ecircumflex", "Aacute", "Edieresis", "Egrave",
- "Iacute", "Icircumflex", "Idieresis", "Igrave", "Oacute",
- "Ocircumflex", _notdef, "Ograve", "Uacute", "Ucircumflex", "Ugrave",
- "dotlessi", "circumflex", "tilde", "macron", "breve", "dotaccent",
- "ring", "cedilla", "hungarumlaut", "ogonek", "caron"
- };
- const char *fz_glyph_name_from_mac_expert[256] = {
- _notdef, _notdef, _notdef, _notdef, _notdef, _notdef, _notdef, _notdef,
- _notdef, _notdef, _notdef, _notdef, _notdef, _notdef, _notdef, _notdef,
- _notdef, _notdef, _notdef, _notdef, _notdef, _notdef, _notdef, _notdef,
- _notdef, _notdef, _notdef, _notdef, _notdef, _notdef, _notdef, _notdef,
- "space", "exclamsmall", "Hungarumlautsmall", "centoldstyle",
- "dollaroldstyle", "dollarsuperior", "ampersandsmall", "Acutesmall",
- "parenleftsuperior", "parenrightsuperior", "twodotenleader",
- "onedotenleader", "comma", "hyphen", "period", "fraction",
- "zerooldstyle", "oneoldstyle", "twooldstyle", "threeoldstyle",
- "fouroldstyle", "fiveoldstyle", "sixoldstyle", "sevenoldstyle",
- "eightoldstyle", "nineoldstyle", "colon", "semicolon", _notdef,
- "threequartersemdash", _notdef, "questionsmall", _notdef, _notdef,
- _notdef, _notdef, "Ethsmall", _notdef, _notdef, "onequarter",
- "onehalf", "threequarters", "oneeighth", "threeeighths", "fiveeighths",
- "seveneighths", "onethird", "twothirds", _notdef, _notdef, _notdef,
- _notdef, _notdef, _notdef, "ff", "fi", "fl", "ffi", "ffl",
- "parenleftinferior", _notdef, "parenrightinferior", "Circumflexsmall",
- "hypheninferior", "Gravesmall", "Asmall", "Bsmall", "Csmall", "Dsmall",
- "Esmall", "Fsmall", "Gsmall", "Hsmall", "Ismall", "Jsmall", "Ksmall",
- "Lsmall", "Msmall", "Nsmall", "Osmall", "Psmall", "Qsmall", "Rsmall",
- "Ssmall", "Tsmall", "Usmall", "Vsmall", "Wsmall", "Xsmall", "Ysmall",
- "Zsmall", "colonmonetary", "onefitted", "rupiah", "Tildesmall",
- _notdef, _notdef, "asuperior", "centsuperior", _notdef, _notdef,
- _notdef, _notdef, "Aacutesmall", "Agravesmall", "Acircumflexsmall",
- "Adieresissmall", "Atildesmall", "Aringsmall", "Ccedillasmall",
- "Eacutesmall", "Egravesmall", "Ecircumflexsmall", "Edieresissmall",
- "Iacutesmall", "Igravesmall", "Icircumflexsmall", "Idieresissmall",
- "Ntildesmall", "Oacutesmall", "Ogravesmall", "Ocircumflexsmall",
- "Odieresissmall", "Otildesmall", "Uacutesmall", "Ugravesmall",
- "Ucircumflexsmall", "Udieresissmall", _notdef, "eightsuperior",
- "fourinferior", "threeinferior", "sixinferior", "eightinferior",
- "seveninferior", "Scaronsmall", _notdef, "centinferior", "twoinferior",
- _notdef, "Dieresissmall", _notdef, "Caronsmall", "osuperior",
- "fiveinferior", _notdef, "commainferior", "periodinferior",
- "Yacutesmall", _notdef, "dollarinferior", _notdef, _notdef,
- "Thornsmall", _notdef, "nineinferior", "zeroinferior", "Zcaronsmall",
- "AEsmall", "Oslashsmall", "questiondownsmall", "oneinferior",
- "Lslashsmall", _notdef, _notdef, _notdef, _notdef, _notdef, _notdef,
- "Cedillasmall", _notdef, _notdef, _notdef, _notdef, _notdef, "OEsmall",
- "figuredash", "hyphensuperior", _notdef, _notdef, _notdef, _notdef,
- "exclamdownsmall", _notdef, "Ydieresissmall", _notdef, "onesuperior",
- "twosuperior", "threesuperior", "foursuperior", "fivesuperior",
- "sixsuperior", "sevensuperior", "ninesuperior", "zerosuperior",
- _notdef, "esuperior", "rsuperior", "tsuperior", _notdef, _notdef,
- "isuperior", "ssuperior", "dsuperior", _notdef, _notdef, _notdef,
- _notdef, _notdef, "lsuperior", "Ogoneksmall", "Brevesmall",
- "Macronsmall", "bsuperior", "nsuperior", "msuperior", "commasuperior",
- "periodsuperior", "Dotaccentsmall", "Ringsmall", _notdef, _notdef,
- _notdef, _notdef
- };
- /* All unused codes > 32 map to 'bullet' */
- const char *fz_glyph_name_from_win_ansi[256] = {
- _notdef, _notdef, _notdef, _notdef, _notdef, _notdef, _notdef, _notdef,
- _notdef, _notdef, _notdef, _notdef, _notdef, _notdef, _notdef, _notdef,
- _notdef, _notdef, _notdef, _notdef, _notdef, _notdef, _notdef, _notdef,
- _notdef, _notdef, _notdef, _notdef, _notdef, _notdef, _notdef, _notdef,
- "space", "exclam", "quotedbl", "numbersign", "dollar", "percent",
- "ampersand", "quotesingle", "parenleft", "parenright", "asterisk",
- "plus", "comma", "hyphen", "period", "slash", "zero", "one", "two",
- "three", "four", "five", "six", "seven", "eight", "nine", "colon",
- "semicolon", "less", "equal", "greater", "question", "at", "A", "B",
- "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P",
- "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z", "bracketleft",
- "backslash", "bracketright", "asciicircum", "underscore", "grave", "a",
- "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o",
- "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z", "braceleft",
- "bar", "braceright", "asciitilde", "bullet", "Euro", "bullet",
- "quotesinglbase", "florin", "quotedblbase", "ellipsis", "dagger",
- "daggerdbl", "circumflex", "perthousand", "Scaron", "guilsinglleft",
- "OE", "bullet", "Zcaron", "bullet", "bullet", "quoteleft",
- "quoteright", "quotedblleft", "quotedblright", "bullet", "endash",
- "emdash", "tilde", "trademark", "scaron", "guilsinglright", "oe",
- "bullet", "zcaron", "Ydieresis", "space", "exclamdown", "cent",
- "sterling", "currency", "yen", "brokenbar", "section", "dieresis",
- "copyright", "ordfeminine", "guillemotleft", "logicalnot", "hyphen",
- "registered", "macron", "degree", "plusminus", "twosuperior",
- "threesuperior", "acute", "mu", "paragraph", "periodcentered",
- "cedilla", "onesuperior", "ordmasculine", "guillemotright",
- "onequarter", "onehalf", "threequarters", "questiondown", "Agrave",
- "Aacute", "Acircumflex", "Atilde", "Adieresis", "Aring", "AE",
- "Ccedilla", "Egrave", "Eacute", "Ecircumflex", "Edieresis", "Igrave",
- "Iacute", "Icircumflex", "Idieresis", "Eth", "Ntilde", "Ograve",
- "Oacute", "Ocircumflex", "Otilde", "Odieresis", "multiply", "Oslash",
- "Ugrave", "Uacute", "Ucircumflex", "Udieresis", "Yacute", "Thorn",
- "germandbls", "agrave", "aacute", "acircumflex", "atilde", "adieresis",
- "aring", "ae", "ccedilla", "egrave", "eacute", "ecircumflex",
- "edieresis", "igrave", "iacute", "icircumflex", "idieresis", "eth",
- "ntilde", "ograve", "oacute", "ocircumflex", "otilde", "odieresis",
- "divide", "oslash", "ugrave", "uacute", "ucircumflex", "udieresis",
- "yacute", "thorn", "ydieresis"
- };
- const unsigned short fz_unicode_from_iso8859_1[256] = {
- 0,
- 1,
- 2,
- 3,
- 4,
- 5,
- 6,
- 7,
- 8,
- 9,
- 10,
- 11,
- 12,
- 13,
- 14,
- 15,
- 16,
- 17,
- 18,
- 19,
- 20,
- 21,
- 22,
- 23,
- 24,
- 25,
- 26,
- 27,
- 28,
- 29,
- 30,
- 31,
- 32,
- 33,
- 34,
- 35,
- 36,
- 37,
- 38,
- 39,
- 40,
- 41,
- 42,
- 43,
- 44,
- 45,
- 46,
- 47,
- 48,
- 49,
- 50,
- 51,
- 52,
- 53,
- 54,
- 55,
- 56,
- 57,
- 58,
- 59,
- 60,
- 61,
- 62,
- 63,
- 64,
- 65,
- 66,
- 67,
- 68,
- 69,
- 70,
- 71,
- 72,
- 73,
- 74,
- 75,
- 76,
- 77,
- 78,
- 79,
- 80,
- 81,
- 82,
- 83,
- 84,
- 85,
- 86,
- 87,
- 88,
- 89,
- 90,
- 91,
- 92,
- 93,
- 94,
- 95,
- 96,
- 97,
- 98,
- 99,
- 100,
- 101,
- 102,
- 103,
- 104,
- 105,
- 106,
- 107,
- 108,
- 109,
- 110,
- 111,
- 112,
- 113,
- 114,
- 115,
- 116,
- 117,
- 118,
- 119,
- 120,
- 121,
- 122,
- 123,
- 124,
- 125,
- 126,
- 127,
- 128,
- 129,
- 130,
- 131,
- 132,
- 133,
- 134,
- 135,
- 136,
- 137,
- 138,
- 139,
- 140,
- 141,
- 142,
- 143,
- 144,
- 145,
- 146,
- 147,
- 148,
- 149,
- 150,
- 151,
- 152,
- 153,
- 154,
- 155,
- 156,
- 157,
- 158,
- 159,
- 160,
- 161,
- 162,
- 163,
- 164,
- 165,
- 166,
- 167,
- 168,
- 169,
- 170,
- 171,
- 172,
- 173,
- 174,
- 175,
- 176,
- 177,
- 178,
- 179,
- 180,
- 181,
- 182,
- 183,
- 184,
- 185,
- 186,
- 187,
- 188,
- 189,
- 190,
- 191,
- 192,
- 193,
- 194,
- 195,
- 196,
- 197,
- 198,
- 199,
- 200,
- 201,
- 202,
- 203,
- 204,
- 205,
- 206,
- 207,
- 208,
- 209,
- 210,
- 211,
- 212,
- 213,
- 214,
- 215,
- 216,
- 217,
- 218,
- 219,
- 220,
- 221,
- 222,
- 223,
- 224,
- 225,
- 226,
- 227,
- 228,
- 229,
- 230,
- 231,
- 232,
- 233,
- 234,
- 235,
- 236,
- 237,
- 238,
- 239,
- 240,
- 241,
- 242,
- 243,
- 244,
- 245,
- 246,
- 247,
- 248,
- 249,
- 250,
- 251,
- 252,
- 253,
- 254,
- 255,
- };
- const char *fz_glyph_name_from_iso8859_1[256] = {
- _notdef,
- _notdef,
- _notdef,
- _notdef,
- _notdef,
- _notdef,
- _notdef,
- _notdef,
- _notdef,
- _notdef,
- _notdef,
- _notdef,
- _notdef,
- _notdef,
- _notdef,
- _notdef,
- _notdef,
- _notdef,
- _notdef,
- _notdef,
- _notdef,
- _notdef,
- _notdef,
- _notdef,
- _notdef,
- _notdef,
- _notdef,
- _notdef,
- _notdef,
- _notdef,
- _notdef,
- _notdef,
- "space",
- "exclam",
- "quotedbl",
- "numbersign",
- "dollar",
- "percent",
- "ampersand",
- "quotesingle",
- "parenleft",
- "parenright",
- "asterisk",
- "plus",
- "comma",
- "hyphen",
- "period",
- "slash",
- "zero",
- "one",
- "two",
- "three",
- "four",
- "five",
- "six",
- "seven",
- "eight",
- "nine",
- "colon",
- "semicolon",
- "less",
- "equal",
- "greater",
- "question",
- "at",
- "A",
- "B",
- "C",
- "D",
- "E",
- "F",
- "G",
- "H",
- "I",
- "J",
- "K",
- "L",
- "M",
- "N",
- "O",
- "P",
- "Q",
- "R",
- "S",
- "T",
- "U",
- "V",
- "W",
- "X",
- "Y",
- "Z",
- "bracketleft",
- "backslash",
- "bracketright",
- "asciicircum",
- "underscore",
- "grave",
- "a",
- "b",
- "c",
- "d",
- "e",
- "f",
- "g",
- "h",
- "i",
- "j",
- "k",
- "l",
- "m",
- "n",
- "o",
- "p",
- "q",
- "r",
- "s",
- "t",
- "u",
- "v",
- "w",
- "x",
- "y",
- "z",
- "braceleft",
- "bar",
- "braceright",
- "asciitilde",
- "controlDEL",
- _notdef,
- _notdef,
- _notdef,
- _notdef,
- _notdef,
- _notdef,
- _notdef,
- _notdef,
- _notdef,
- _notdef,
- _notdef,
- _notdef,
- _notdef,
- _notdef,
- _notdef,
- _notdef,
- _notdef,
- _notdef,
- _notdef,
- _notdef,
- _notdef,
- _notdef,
- _notdef,
- _notdef,
- _notdef,
- _notdef,
- _notdef,
- _notdef,
- _notdef,
- _notdef,
- _notdef,
- _notdef,
- "nbspace",
- "exclamdown",
- "cent",
- "sterling",
- "currency",
- "yen",
- "brokenbar",
- "section",
- "dieresis",
- "copyright",
- "ordfeminine",
- "guillemotleft",
- "logicalnot",
- "sfthyphen",
- "registered",
- "macron",
- "degree",
- "plusminus",
- "twosuperior",
- "threesuperior",
- "acute",
- "mu",
- "paragraph",
- "periodcentered",
- "cedilla",
- "onesuperior",
- "ordmasculine",
- "guillemotright",
- "onequarter",
- "onehalf",
- "threequarters",
- "questiondown",
- "Agrave",
- "Aacute",
- "Acircumflex",
- "Atilde",
- "Adieresis",
- "Aring",
- "AE",
- "Ccedilla",
- "Egrave",
- "Eacute",
- "Ecircumflex",
- "Edieresis",
- "Igrave",
- "Iacute",
- "Icircumflex",
- "Idieresis",
- "Eth",
- "Ntilde",
- "Ograve",
- "Oacute",
- "Ocircumflex",
- "Otilde",
- "Odieresis",
- "multiply",
- "Oslash",
- "Ugrave",
- "Uacute",
- "Ucircumflex",
- "Udieresis",
- "Yacute",
- "Thorn",
- "germandbls",
- "agrave",
- "aacute",
- "acircumflex",
- "atilde",
- "adieresis",
- "aring",
- "ae",
- "ccedilla",
- "egrave",
- "eacute",
- "ecircumflex",
- "edieresis",
- "igrave",
- "iacute",
- "icircumflex",
- "idieresis",
- "eth",
- "ntilde",
- "ograve",
- "oacute",
- "ocircumflex",
- "otilde",
- "odieresis",
- "divide",
- "oslash",
- "ugrave",
- "uacute",
- "ucircumflex",
- "udieresis",
- "yacute",
- "thorn",
- "ydieresis",
- };
- static const struct { unsigned short u, c; } iso8859_1_from_unicode[] = {
- {0x00a0,160},
- {0x00a1,161},
- {0x00a2,162},
- {0x00a3,163},
- {0x00a4,164},
- {0x00a5,165},
- {0x00a6,166},
- {0x00a7,167},
- {0x00a8,168},
- {0x00a9,169},
- {0x00aa,170},
- {0x00ab,171},
- {0x00ac,172},
- {0x00ad,173},
- {0x00ae,174},
- {0x00af,175},
- {0x00b0,176},
- {0x00b1,177},
- {0x00b2,178},
- {0x00b3,179},
- {0x00b4,180},
- {0x00b5,181},
- {0x00b6,182},
- {0x00b7,183},
- {0x00b8,184},
- {0x00b9,185},
- {0x00ba,186},
- {0x00bb,187},
- {0x00bc,188},
- {0x00bd,189},
- {0x00be,190},
- {0x00bf,191},
- {0x00c0,192},
- {0x00c1,193},
- {0x00c2,194},
- {0x00c3,195},
- {0x00c4,196},
- {0x00c5,197},
- {0x00c6,198},
- {0x00c7,199},
- {0x00c8,200},
- {0x00c9,201},
- {0x00ca,202},
- {0x00cb,203},
- {0x00cc,204},
- {0x00cd,205},
- {0x00ce,206},
- {0x00cf,207},
- {0x00d0,208},
- {0x00d1,209},
- {0x00d2,210},
- {0x00d3,211},
- {0x00d4,212},
- {0x00d5,213},
- {0x00d6,214},
- {0x00d7,215},
- {0x00d8,216},
- {0x00d9,217},
- {0x00da,218},
- {0x00db,219},
- {0x00dc,220},
- {0x00dd,221},
- {0x00de,222},
- {0x00df,223},
- {0x00e0,224},
- {0x00e1,225},
- {0x00e2,226},
- {0x00e3,227},
- {0x00e4,228},
- {0x00e5,229},
- {0x00e6,230},
- {0x00e7,231},
- {0x00e8,232},
- {0x00e9,233},
- {0x00ea,234},
- {0x00eb,235},
- {0x00ec,236},
- {0x00ed,237},
- {0x00ee,238},
- {0x00ef,239},
- {0x00f0,240},
- {0x00f1,241},
- {0x00f2,242},
- {0x00f3,243},
- {0x00f4,244},
- {0x00f5,245},
- {0x00f6,246},
- {0x00f7,247},
- {0x00f8,248},
- {0x00f9,249},
- {0x00fa,250},
- {0x00fb,251},
- {0x00fc,252},
- {0x00fd,253},
- {0x00fe,254},
- {0x00ff,255},
- };
- const unsigned short fz_unicode_from_iso8859_7[256] = {
- 0,
- 1,
- 2,
- 3,
- 4,
- 5,
- 6,
- 7,
- 8,
- 9,
- 10,
- 11,
- 12,
- 13,
- 14,
- 15,
- 16,
- 17,
- 18,
- 19,
- 20,
- 21,
- 22,
- 23,
- 24,
- 25,
- 26,
- 27,
- 28,
- 29,
- 30,
- 31,
- 32,
- 33,
- 34,
- 35,
- 36,
- 37,
- 38,
- 39,
- 40,
- 41,
- 42,
- 43,
- 44,
- 45,
- 46,
- 47,
- 48,
- 49,
- 50,
- 51,
- 52,
- 53,
- 54,
- 55,
- 56,
- 57,
- 58,
- 59,
- 60,
- 61,
- 62,
- 63,
- 64,
- 65,
- 66,
- 67,
- 68,
- 69,
- 70,
- 71,
- 72,
- 73,
- 74,
- 75,
- 76,
- 77,
- 78,
- 79,
- 80,
- 81,
- 82,
- 83,
- 84,
- 85,
- 86,
- 87,
- 88,
- 89,
- 90,
- 91,
- 92,
- 93,
- 94,
- 95,
- 96,
- 97,
- 98,
- 99,
- 100,
- 101,
- 102,
- 103,
- 104,
- 105,
- 106,
- 107,
- 108,
- 109,
- 110,
- 111,
- 112,
- 113,
- 114,
- 115,
- 116,
- 117,
- 118,
- 119,
- 120,
- 121,
- 122,
- 123,
- 124,
- 125,
- 126,
- 127,
- 128,
- 129,
- 130,
- 131,
- 132,
- 133,
- 134,
- 135,
- 136,
- 137,
- 138,
- 139,
- 140,
- 141,
- 142,
- 143,
- 144,
- 145,
- 146,
- 147,
- 148,
- 149,
- 150,
- 151,
- 152,
- 153,
- 154,
- 155,
- 156,
- 157,
- 158,
- 159,
- 160,
- 8216,
- 8217,
- 163,
- 8364,
- 8367,
- 166,
- 167,
- 168,
- 169,
- 890,
- 171,
- 172,
- 173,
- 0,
- 8213,
- 176,
- 177,
- 178,
- 179,
- 900,
- 901,
- 902,
- 183,
- 904,
- 905,
- 906,
- 187,
- 908,
- 189,
- 910,
- 911,
- 912,
- 913,
- 914,
- 915,
- 916,
- 917,
- 918,
- 919,
- 920,
- 921,
- 922,
- 923,
- 924,
- 925,
- 926,
- 927,
- 928,
- 929,
- 0,
- 931,
- 932,
- 933,
- 934,
- 935,
- 936,
- 937,
- 938,
- 939,
- 940,
- 941,
- 942,
- 943,
- 944,
- 945,
- 946,
- 947,
- 948,
- 949,
- 950,
- 951,
- 952,
- 953,
- 954,
- 955,
- 956,
- 957,
- 958,
- 959,
- 960,
- 961,
- 962,
- 963,
- 964,
- 965,
- 966,
- 967,
- 968,
- 969,
- 970,
- 971,
- 972,
- 973,
- 974,
- 0,
- };
- const char *fz_glyph_name_from_iso8859_7[256] = {
- _notdef,
- _notdef,
- _notdef,
- _notdef,
- _notdef,
- _notdef,
- _notdef,
- _notdef,
- _notdef,
- _notdef,
- _notdef,
- _notdef,
- _notdef,
- _notdef,
- _notdef,
- _notdef,
- _notdef,
- _notdef,
- _notdef,
- _notdef,
- _notdef,
- _notdef,
- _notdef,
- _notdef,
- _notdef,
- _notdef,
- _notdef,
- _notdef,
- _notdef,
- _notdef,
- _notdef,
- _notdef,
- "space",
- "exclam",
- "quotedbl",
- "numbersign",
- "dollar",
- "percent",
- "ampersand",
- "quotesingle",
- "parenleft",
- "parenright",
- "asterisk",
- "plus",
- "comma",
- "hyphen",
- "period",
- "slash",
- "zero",
- "one",
- "two",
- "three",
- "four",
- "five",
- "six",
- "seven",
- "eight",
- "nine",
- "colon",
- "semicolon",
- "less",
- "equal",
- "greater",
- "question",
- "at",
- "A",
- "B",
- "C",
- "D",
- "E",
- "F",
- "G",
- "H",
- "I",
- "J",
- "K",
- "L",
- "M",
- "N",
- "O",
- "P",
- "Q",
- "R",
- "S",
- "T",
- "U",
- "V",
- "W",
- "X",
- "Y",
- "Z",
- "bracketleft",
- "backslash",
- "bracketright",
- "asciicircum",
- "underscore",
- "grave",
- "a",
- "b",
- "c",
- "d",
- "e",
- "f",
- "g",
- "h",
- "i",
- "j",
- "k",
- "l",
- "m",
- "n",
- "o",
- "p",
- "q",
- "r",
- "s",
- "t",
- "u",
- "v",
- "w",
- "x",
- "y",
- "z",
- "braceleft",
- "bar",
- "braceright",
- "asciitilde",
- "controlDEL",
- _notdef,
- _notdef,
- _notdef,
- _notdef,
- _notdef,
- _notdef,
- _notdef,
- _notdef,
- _notdef,
- _notdef,
- _notdef,
- _notdef,
- _notdef,
- _notdef,
- _notdef,
- _notdef,
- _notdef,
- _notdef,
- _notdef,
- _notdef,
- _notdef,
- _notdef,
- _notdef,
- _notdef,
- _notdef,
- _notdef,
- _notdef,
- _notdef,
- _notdef,
- _notdef,
- _notdef,
- _notdef,
- "nbspace",
- "quoteleft",
- "quoteright",
- "sterling",
- "Euro",
- _notdef,
- "brokenbar",
- "section",
- "dieresis",
- "copyright",
- "ypogegrammeni",
- "guillemotleft",
- "logicalnot",
- "sfthyphen",
- _notdef,
- "afii00208",
- "degree",
- "plusminus",
- "twosuperior",
- "threesuperior",
- "tonos",
- "dialytikatonos",
- "Alphatonos",
- "periodcentered",
- "Epsilontonos",
- "Etatonos",
- "Iotatonos",
- "guillemotright",
- "Omicrontonos",
- "onehalf",
- "Upsilontonos",
- "Omegatonos",
- "iotadieresistonos",
- "Alpha",
- "Beta",
- "Gamma",
- "Deltagreek",
- "Epsilon",
- "Zeta",
- "Eta",
- "Theta",
- "Iota",
- "Kappa",
- "Lambda",
- "Mu",
- "Nu",
- "Xi",
- "Omicron",
- "Pi",
- "Rho",
- _notdef,
- "Sigma",
- "Tau",
- "Upsilon",
- "Phi",
- "Chi",
- "Psi",
- "Omegagreek",
- "Iotadieresis",
- "Upsilondieresis",
- "alphatonos",
- "epsilontonos",
- "etatonos",
- "iotatonos",
- "upsilondieresistonos",
- "alpha",
- "beta",
- "gamma",
- "delta",
- "epsilon",
- "zeta",
- "eta",
- "theta",
- "iota",
- "kappa",
- "lambda",
- "mugreek",
- "nu",
- "xi",
- "omicron",
- "pi",
- "rho",
- "sigma1",
- "sigma",
- "tau",
- "upsilon",
- "phi",
- "chi",
- "psi",
- "omega",
- "iotadieresis",
- "upsilondieresis",
- "omicrontonos",
- "upsilontonos",
- "omegatonos",
- _notdef,
- };
- static const struct { unsigned short u, c; } iso8859_7_from_unicode[] = {
- {0x00a0,160},
- {0x00a3,163},
- {0x00a6,166},
- {0x00a7,167},
- {0x00a8,168},
- {0x00a9,169},
- {0x00ab,171},
- {0x00ac,172},
- {0x00ad,173},
- {0x00b0,176},
- {0x00b1,177},
- {0x00b2,178},
- {0x00b3,179},
- {0x00b7,183},
- {0x00bb,187},
- {0x00bd,189},
- {0x037a,170},
- {0x0384,180},
- {0x0385,181},
- {0x0386,182},
- {0x0388,184},
- {0x0389,185},
- {0x038a,186},
- {0x038c,188},
- {0x038e,190},
- {0x038f,191},
- {0x0390,192},
- {0x0391,193},
- {0x0392,194},
- {0x0393,195},
- {0x0394,196},
- {0x0395,197},
- {0x0396,198},
- {0x0397,199},
- {0x0398,200},
- {0x0399,201},
- {0x039a,202},
- {0x039b,203},
- {0x039c,204},
- {0x039d,205},
- {0x039e,206},
- {0x039f,207},
- {0x03a0,208},
- {0x03a1,209},
- {0x03a3,211},
- {0x03a4,212},
- {0x03a5,213},
- {0x03a6,214},
- {0x03a7,215},
- {0x03a8,216},
- {0x03a9,217},
- {0x03aa,218},
- {0x03ab,219},
- {0x03ac,220},
- {0x03ad,221},
- {0x03ae,222},
- {0x03af,223},
- {0x03b0,224},
- {0x03b1,225},
- {0x03b2,226},
- {0x03b3,227},
- {0x03b4,228},
- {0x03b5,229},
- {0x03b6,230},
- {0x03b7,231},
- {0x03b8,232},
- {0x03b9,233},
- {0x03ba,234},
- {0x03bb,235},
- {0x03bc,236},
- {0x03bd,237},
- {0x03be,238},
- {0x03bf,239},
- {0x03c0,240},
- {0x03c1,241},
- {0x03c2,242},
- {0x03c3,243},
- {0x03c4,244},
- {0x03c5,245},
- {0x03c6,246},
- {0x03c7,247},
- {0x03c8,248},
- {0x03c9,249},
- {0x03ca,250},
- {0x03cb,251},
- {0x03cc,252},
- {0x03cd,253},
- {0x03ce,254},
- {0x2015,175},
- {0x2018,161},
- {0x2019,162},
- {0x20ac,164},
- };
- const unsigned short fz_unicode_from_koi8u[256] = {
- 0,
- 1,
- 2,
- 3,
- 4,
- 5,
- 6,
- 7,
- 8,
- 9,
- 10,
- 11,
- 12,
- 13,
- 14,
- 15,
- 16,
- 17,
- 18,
- 19,
- 20,
- 21,
- 22,
- 23,
- 24,
- 25,
- 26,
- 27,
- 28,
- 29,
- 30,
- 31,
- 32,
- 33,
- 34,
- 35,
- 36,
- 37,
- 38,
- 39,
- 40,
- 41,
- 42,
- 43,
- 44,
- 45,
- 46,
- 47,
- 48,
- 49,
- 50,
- 51,
- 52,
- 53,
- 54,
- 55,
- 56,
- 57,
- 58,
- 59,
- 60,
- 61,
- 62,
- 63,
- 64,
- 65,
- 66,
- 67,
- 68,
- 69,
- 70,
- 71,
- 72,
- 73,
- 74,
- 75,
- 76,
- 77,
- 78,
- 79,
- 80,
- 81,
- 82,
- 83,
- 84,
- 85,
- 86,
- 87,
- 88,
- 89,
- 90,
- 91,
- 92,
- 93,
- 94,
- 95,
- 96,
- 97,
- 98,
- 99,
- 100,
- 101,
- 102,
- 103,
- 104,
- 105,
- 106,
- 107,
- 108,
- 109,
- 110,
- 111,
- 112,
- 113,
- 114,
- 115,
- 116,
- 117,
- 118,
- 119,
- 120,
- 121,
- 122,
- 123,
- 124,
- 125,
- 126,
- 127,
- 9472,
- 9474,
- 9484,
- 9488,
- 9492,
- 9496,
- 9500,
- 9508,
- 9516,
- 9524,
- 9532,
- 9600,
- 9604,
- 9608,
- 9612,
- 9616,
- 9617,
- 9618,
- 9619,
- 8992,
- 9632,
- 8729,
- 8730,
- 8776,
- 8804,
- 8805,
- 160,
- 8993,
- 176,
- 178,
- 183,
- 247,
- 9552,
- 9553,
- 9554,
- 1105,
- 1108,
- 9556,
- 1110,
- 1111,
- 9559,
- 9560,
- 9561,
- 9562,
- 9563,
- 1169,
- 9565,
- 9566,
- 9567,
- 9568,
- 9569,
- 1025,
- 1028,
- 9571,
- 1030,
- 1031,
- 9574,
- 9575,
- 9576,
- 9577,
- 9578,
- 1168,
- 9580,
- 169,
- 1102,
- 1072,
- 1073,
- 1094,
- 1076,
- 1077,
- 1092,
- 1075,
- 1093,
- 1080,
- 1081,
- 1082,
- 1083,
- 1084,
- 1085,
- 1086,
- 1087,
- 1103,
- 1088,
- 1089,
- 1090,
- 1091,
- 1078,
- 1074,
- 1100,
- 1099,
- 1079,
- 1096,
- 1101,
- 1097,
- 1095,
- 1098,
- 1070,
- 1040,
- 1041,
- 1062,
- 1044,
- 1045,
- 1060,
- 1043,
- 1061,
- 1048,
- 1049,
- 1050,
- 1051,
- 1052,
- 1053,
- 1054,
- 1055,
- 1071,
- 1056,
- 1057,
- 1058,
- 1059,
- 1046,
- 1042,
- 1068,
- 1067,
- 1047,
- 1064,
- 1069,
- 1065,
- 1063,
- 1066,
- };
- const char *fz_glyph_name_from_koi8u[256] = {
- _notdef,
- _notdef,
- _notdef,
- _notdef,
- _notdef,
- _notdef,
- _notdef,
- _notdef,
- _notdef,
- _notdef,
- _notdef,
- _notdef,
- _notdef,
- _notdef,
- _notdef,
- _notdef,
- _notdef,
- _notdef,
- _notdef,
- _notdef,
- _notdef,
- _notdef,
- _notdef,
- _notdef,
- _notdef,
- _notdef,
- _notdef,
- _notdef,
- _notdef,
- _notdef,
- _notdef,
- _notdef,
- "space",
- "exclam",
- "quotedbl",
- "numbersign",
- "dollar",
- "percent",
- "ampersand",
- "quotesingle",
- "parenleft",
- "parenright",
- "asterisk",
- "plus",
- "comma",
- "hyphen",
- "period",
- "slash",
- "zero",
- "one",
- "two",
- "three",
- "four",
- "five",
- "six",
- "seven",
- "eight",
- "nine",
- "colon",
- "semicolon",
- "less",
- "equal",
- "greater",
- "question",
- "at",
- "A",
- "B",
- "C",
- "D",
- "E",
- "F",
- "G",
- "H",
- "I",
- "J",
- "K",
- "L",
- "M",
- "N",
- "O",
- "P",
- "Q",
- "R",
- "S",
- "T",
- "U",
- "V",
- "W",
- "X",
- "Y",
- "Z",
- "bracketleft",
- "backslash",
- "bracketright",
- "asciicircum",
- "underscore",
- "grave",
- "a",
- "b",
- "c",
- "d",
- "e",
- "f",
- "g",
- "h",
- "i",
- "j",
- "k",
- "l",
- "m",
- "n",
- "o",
- "p",
- "q",
- "r",
- "s",
- "t",
- "u",
- "v",
- "w",
- "x",
- "y",
- "z",
- "braceleft",
- "bar",
- "braceright",
- "asciitilde",
- "controlDEL",
- _notdef,
- _notdef,
- _notdef,
- _notdef,
- _notdef,
- _notdef,
- _notdef,
- _notdef,
- _notdef,
- _notdef,
- _notdef,
- "upblock",
- "dnblock",
- "block",
- "lfblock",
- "rtblock",
- "ltshade",
- "shade",
- "dkshade",
- "integraltop",
- "blacksquare",
- "bulletoperator",
- "radical",
- "approxequal",
- "lessequal",
- "greaterequal",
- "nbspace",
- "integralbottom",
- "degree",
- "twosuperior",
- "periodcentered",
- "divide",
- _notdef,
- _notdef,
- _notdef,
- "afii10071",
- "afii10101",
- _notdef,
- "afii10103",
- "afii10104",
- _notdef,
- _notdef,
- _notdef,
- _notdef,
- _notdef,
- "afii10098",
- _notdef,
- _notdef,
- _notdef,
- _notdef,
- _notdef,
- "Iocyrillic",
- "Ecyrillic",
- _notdef,
- "Icyrillic",
- "Yicyrillic",
- _notdef,
- _notdef,
- _notdef,
- _notdef,
- _notdef,
- "Gheupturncyrillic",
- _notdef,
- "copyright",
- "afii10096",
- "acyrillic",
- "afii10066",
- "afii10088",
- "afii10069",
- "afii10070",
- "afii10086",
- "afii10068",
- "afii10087",
- "afii10074",
- "afii10075",
- "afii10076",
- "afii10077",
- "afii10078",
- "afii10079",
- "afii10080",
- "afii10081",
- "afii10097",
- "afii10082",
- "afii10083",
- "afii10084",
- "afii10085",
- "afii10072",
- "afii10067",
- "afii10094",
- "afii10093",
- "afii10073",
- "afii10090",
- "afii10095",
- "afii10091",
- "afii10089",
- "afii10092",
- "IUcyrillic",
- "Acyrillic",
- "Becyrillic",
- "Tsecyrillic",
- "Decyrillic",
- "Iecyrillic",
- "Efcyrillic",
- "Gecyrillic",
- "Khacyrillic",
- "Iicyrillic",
- "Iishortcyrillic",
- "Kacyrillic",
- "Elcyrillic",
- "Emcyrillic",
- "Encyrillic",
- "Ocyrillic",
- "Pecyrillic",
- "IAcyrillic",
- "Ercyrillic",
- "Escyrillic",
- "Tecyrillic",
- "Ucyrillic",
- "Zhecyrillic",
- "Vecyrillic",
- "Softsigncyrillic",
- "Yericyrillic",
- "Zecyrillic",
- "Shacyrillic",
- "Ereversedcyrillic",
- "Shchacyrillic",
- "Checyrillic",
- "Hardsigncyrillic",
- };
- static const struct { unsigned short u, c; } koi8u_from_unicode[] = {
- {0x00a0,154},
- {0x00a9,191},
- {0x00b0,156},
- {0x00b2,157},
- {0x00b7,158},
- {0x00f7,159},
- {0x0401,179},
- {0x0404,180},
- {0x0406,182},
- {0x0407,183},
- {0x0410,225},
- {0x0411,226},
- {0x0412,247},
- {0x0413,231},
- {0x0414,228},
- {0x0415,229},
- {0x0416,246},
- {0x0417,250},
- {0x0418,233},
- {0x0419,234},
- {0x041a,235},
- {0x041b,236},
- {0x041c,237},
- {0x041d,238},
- {0x041e,239},
- {0x041f,240},
- {0x0420,242},
- {0x0421,243},
- {0x0422,244},
- {0x0423,245},
- {0x0424,230},
- {0x0425,232},
- {0x0426,227},
- {0x0427,254},
- {0x0428,251},
- {0x0429,253},
- {0x042a,255},
- {0x042b,249},
- {0x042c,248},
- {0x042d,252},
- {0x042e,224},
- {0x042f,241},
- {0x0430,193},
- {0x0431,194},
- {0x0432,215},
- {0x0433,199},
- {0x0434,196},
- {0x0435,197},
- {0x0436,214},
- {0x0437,218},
- {0x0438,201},
- {0x0439,202},
- {0x043a,203},
- {0x043b,204},
- {0x043c,205},
- {0x043d,206},
- {0x043e,207},
- {0x043f,208},
- {0x0440,210},
- {0x0441,211},
- {0x0442,212},
- {0x0443,213},
- {0x0444,198},
- {0x0445,200},
- {0x0446,195},
- {0x0447,222},
- {0x0448,219},
- {0x0449,221},
- {0x044a,223},
- {0x044b,217},
- {0x044c,216},
- {0x044d,220},
- {0x044e,192},
- {0x044f,209},
- {0x0451,163},
- {0x0454,164},
- {0x0456,166},
- {0x0457,167},
- {0x0490,189},
- {0x0491,173},
- {0x2219,149},
- {0x221a,150},
- {0x2248,151},
- {0x2264,152},
- {0x2265,153},
- {0x2320,147},
- {0x2321,155},
- {0x2580,139},
- {0x2584,140},
- {0x2588,141},
- {0x258c,142},
- {0x2590,143},
- {0x2591,144},
- {0x2592,145},
- {0x2593,146},
- {0x25a0,148},
- };
- const unsigned short fz_unicode_from_windows_1250[256] = {
- 0,
- 1,
- 2,
- 3,
- 4,
- 5,
- 6,
- 7,
- 8,
- 9,
- 10,
- 11,
- 12,
- 13,
- 14,
- 15,
- 16,
- 17,
- 18,
- 19,
- 20,
- 21,
- 22,
- 23,
- 24,
- 25,
- 26,
- 27,
- 28,
- 29,
- 30,
- 31,
- 32,
- 33,
- 34,
- 35,
- 36,
- 37,
- 38,
- 39,
- 40,
- 41,
- 42,
- 43,
- 44,
- 45,
- 46,
- 47,
- 48,
- 49,
- 50,
- 51,
- 52,
- 53,
- 54,
- 55,
- 56,
- 57,
- 58,
- 59,
- 60,
- 61,
- 62,
- 63,
- 64,
- 65,
- 66,
- 67,
- 68,
- 69,
- 70,
- 71,
- 72,
- 73,
- 74,
- 75,
- 76,
- 77,
- 78,
- 79,
- 80,
- 81,
- 82,
- 83,
- 84,
- 85,
- 86,
- 87,
- 88,
- 89,
- 90,
- 91,
- 92,
- 93,
- 94,
- 95,
- 96,
- 97,
- 98,
- 99,
- 100,
- 101,
- 102,
- 103,
- 104,
- 105,
- 106,
- 107,
- 108,
- 109,
- 110,
- 111,
- 112,
- 113,
- 114,
- 115,
- 116,
- 117,
- 118,
- 119,
- 120,
- 121,
- 122,
- 123,
- 124,
- 125,
- 126,
- 127,
- 8364,
- 0,
- 8218,
- 0,
- 8222,
- 8230,
- 8224,
- 8225,
- 0,
- 8240,
- 352,
- 8249,
- 346,
- 356,
- 381,
- 377,
- 0,
- 8216,
- 8217,
- 8220,
- 8221,
- 8226,
- 8211,
- 8212,
- 0,
- 8482,
- 353,
- 8250,
- 347,
- 357,
- 382,
- 378,
- 160,
- 711,
- 728,
- 321,
- 164,
- 260,
- 166,
- 167,
- 168,
- 169,
- 350,
- 171,
- 172,
- 173,
- 174,
- 379,
- 176,
- 177,
- 731,
- 322,
- 180,
- 181,
- 182,
- 183,
- 184,
- 261,
- 351,
- 187,
- 317,
- 733,
- 318,
- 380,
- 340,
- 193,
- 194,
- 258,
- 196,
- 313,
- 262,
- 199,
- 268,
- 201,
- 280,
- 203,
- 282,
- 205,
- 206,
- 270,
- 272,
- 323,
- 327,
- 211,
- 212,
- 336,
- 214,
- 215,
- 344,
- 366,
- 218,
- 368,
- 220,
- 221,
- 354,
- 223,
- 341,
- 225,
- 226,
- 259,
- 228,
- 314,
- 263,
- 231,
- 269,
- 233,
- 281,
- 235,
- 283,
- 237,
- 238,
- 271,
- 273,
- 324,
- 328,
- 243,
- 244,
- 337,
- 246,
- 247,
- 345,
- 367,
- 250,
- 369,
- 252,
- 253,
- 355,
- 729,
- };
- const char *fz_glyph_name_from_windows_1250[256] = {
- _notdef,
- _notdef,
- _notdef,
- _notdef,
- _notdef,
- _notdef,
- _notdef,
- _notdef,
- _notdef,
- _notdef,
- _notdef,
- _notdef,
- _notdef,
- _notdef,
- _notdef,
- _notdef,
- _notdef,
- _notdef,
- _notdef,
- _notdef,
- _notdef,
- _notdef,
- _notdef,
- _notdef,
- _notdef,
- _notdef,
- _notdef,
- _notdef,
- _notdef,
- _notdef,
- _notdef,
- _notdef,
- "space",
- "exclam",
- "quotedbl",
- "numbersign",
- "dollar",
- "percent",
- "ampersand",
- "quotesingle",
- "parenleft",
- "parenright",
- "asterisk",
- "plus",
- "comma",
- "hyphen",
- "period",
- "slash",
- "zero",
- "one",
- "two",
- "three",
- "four",
- "five",
- "six",
- "seven",
- "eight",
- "nine",
- "colon",
- "semicolon",
- "less",
- "equal",
- "greater",
- "question",
- "at",
- "A",
- "B",
- "C",
- "D",
- "E",
- "F",
- "G",
- "H",
- "I",
- "J",
- "K",
- "L",
- "M",
- "N",
- "O",
- "P",
- "Q",
- "R",
- "S",
- "T",
- "U",
- "V",
- "W",
- "X",
- "Y",
- "Z",
- "bracketleft",
- "backslash",
- "bracketright",
- "asciicircum",
- "underscore",
- "grave",
- "a",
- "b",
- "c",
- "d",
- "e",
- "f",
- "g",
- "h",
- "i",
- "j",
- "k",
- "l",
- "m",
- "n",
- "o",
- "p",
- "q",
- "r",
- "s",
- "t",
- "u",
- "v",
- "w",
- "x",
- "y",
- "z",
- "braceleft",
- "bar",
- "braceright",
- "asciitilde",
- "controlDEL",
- "Euro",
- _notdef,
- "quotesinglbase",
- _notdef,
- "quotedblbase",
- "ellipsis",
- "dagger",
- "daggerdbl",
- _notdef,
- "perthousand",
- "Scaron",
- "guilsinglleft",
- "Sacute",
- "Tcaron",
- "Zcaron",
- "Zacute",
- _notdef,
- "quoteleft",
- "quoteright",
- "quotedblleft",
- "quotedblright",
- "bullet",
- "endash",
- "emdash",
- _notdef,
- "trademark",
- "scaron",
- "guilsinglright",
- "sacute",
- "tcaron",
- "zcaron",
- "zacute",
- "nbspace",
- "caron",
- "breve",
- "Lslash",
- "currency",
- "Aogonek",
- "brokenbar",
- "section",
- "dieresis",
- "copyright",
- "Scedilla",
- "guillemotleft",
- "logicalnot",
- "sfthyphen",
- "registered",
- "Zdot",
- "degree",
- "plusminus",
- "ogonek",
- "lslash",
- "acute",
- "mu",
- "paragraph",
- "periodcentered",
- "cedilla",
- "aogonek",
- "scedilla",
- "guillemotright",
- "Lcaron",
- "hungarumlaut",
- "lcaron",
- "zdot",
- "Racute",
- "Aacute",
- "Acircumflex",
- "Abreve",
- "Adieresis",
- "Lacute",
- "Cacute",
- "Ccedilla",
- "Ccaron",
- "Eacute",
- "Eogonek",
- "Edieresis",
- "Ecaron",
- "Iacute",
- "Icircumflex",
- "Dcaron",
- "Dcroat",
- "Nacute",
- "Ncaron",
- "Oacute",
- "Ocircumflex",
- "Odblacute",
- "Odieresis",
- "multiply",
- "Rcaron",
- "Uring",
- "Uacute",
- "Udblacute",
- "Udieresis",
- "Yacute",
- "Tcedilla",
- "germandbls",
- "racute",
- "aacute",
- "acircumflex",
- "abreve",
- "adieresis",
- "lacute",
- "cacute",
- "ccedilla",
- "ccaron",
- "eacute",
- "eogonek",
- "edieresis",
- "ecaron",
- "iacute",
- "icircumflex",
- "dcaron",
- "dcroat",
- "nacute",
- "ncaron",
- "oacute",
- "ocircumflex",
- "odblacute",
- "odieresis",
- "divide",
- "rcaron",
- "uring",
- "uacute",
- "udblacute",
- "udieresis",
- "yacute",
- "tcedilla",
- "dotaccent",
- };
- static const struct { unsigned short u, c; } windows_1250_from_unicode[] = {
- {0x00a0,160},
- {0x00a4,164},
- {0x00a6,166},
- {0x00a7,167},
- {0x00a8,168},
- {0x00a9,169},
- {0x00ab,171},
- {0x00ac,172},
- {0x00ad,173},
- {0x00ae,174},
- {0x00b0,176},
- {0x00b1,177},
- {0x00b4,180},
- {0x00b5,181},
- {0x00b6,182},
- {0x00b7,183},
- {0x00b8,184},
- {0x00bb,187},
- {0x00c1,193},
- {0x00c2,194},
- {0x00c4,196},
- {0x00c7,199},
- {0x00c9,201},
- {0x00cb,203},
- {0x00cd,205},
- {0x00ce,206},
- {0x00d3,211},
- {0x00d4,212},
- {0x00d6,214},
- {0x00d7,215},
- {0x00da,218},
- {0x00dc,220},
- {0x00dd,221},
- {0x00df,223},
- {0x00e1,225},
- {0x00e2,226},
- {0x00e4,228},
- {0x00e7,231},
- {0x00e9,233},
- {0x00eb,235},
- {0x00ed,237},
- {0x00ee,238},
- {0x00f3,243},
- {0x00f4,244},
- {0x00f6,246},
- {0x00f7,247},
- {0x00fa,250},
- {0x00fc,252},
- {0x00fd,253},
- {0x0102,195},
- {0x0103,227},
- {0x0104,165},
- {0x0105,185},
- {0x0106,198},
- {0x0107,230},
- {0x010c,200},
- {0x010d,232},
- {0x010e,207},
- {0x010f,239},
- {0x0110,208},
- {0x0111,240},
- {0x0118,202},
- {0x0119,234},
- {0x011a,204},
- {0x011b,236},
- {0x0139,197},
- {0x013a,229},
- {0x013d,188},
- {0x013e,190},
- {0x0141,163},
- {0x0142,179},
- {0x0143,209},
- {0x0144,241},
- {0x0147,210},
- {0x0148,242},
- {0x0150,213},
- {0x0151,245},
- {0x0154,192},
- {0x0155,224},
- {0x0158,216},
- {0x0159,248},
- {0x015a,140},
- {0x015b,156},
- {0x015e,170},
- {0x015f,186},
- {0x0160,138},
- {0x0161,154},
- {0x0162,222},
- {0x0163,254},
- {0x0164,141},
- {0x0165,157},
- {0x016e,217},
- {0x016f,249},
- {0x0170,219},
- {0x0171,251},
- {0x0179,143},
- {0x017a,159},
- {0x017b,175},
- {0x017c,191},
- {0x017d,142},
- {0x017e,158},
- {0x02c7,161},
- {0x02d8,162},
- {0x02d9,255},
- {0x02db,178},
- {0x02dd,189},
- {0x2013,150},
- {0x2014,151},
- {0x2018,145},
- {0x2019,146},
- {0x201a,130},
- {0x201c,147},
- {0x201d,148},
- {0x201e,132},
- {0x2020,134},
- {0x2021,135},
- {0x2022,149},
- {0x2026,133},
- {0x2030,137},
- {0x2039,139},
- {0x203a,155},
- {0x20ac,128},
- {0x2122,153},
- };
- const unsigned short fz_unicode_from_windows_1251[256] = {
- 0,
- 1,
- 2,
- 3,
- 4,
- 5,
- 6,
- 7,
- 8,
- 9,
- 10,
- 11,
- 12,
- 13,
- 14,
- 15,
- 16,
- 17,
- 18,
- 19,
- 20,
- 21,
- 22,
- 23,
- 24,
- 25,
- 26,
- 27,
- 28,
- 29,
- 30,
- 31,
- 32,
- 33,
- 34,
- 35,
- 36,
- 37,
- 38,
- 39,
- 40,
- 41,
- 42,
- 43,
- 44,
- 45,
- 46,
- 47,
- 48,
- 49,
- 50,
- 51,
- 52,
- 53,
- 54,
- 55,
- 56,
- 57,
- 58,
- 59,
- 60,
- 61,
- 62,
- 63,
- 64,
- 65,
- 66,
- 67,
- 68,
- 69,
- 70,
- 71,
- 72,
- 73,
- 74,
- 75,
- 76,
- 77,
- 78,
- 79,
- 80,
- 81,
- 82,
- 83,
- 84,
- 85,
- 86,
- 87,
- 88,
- 89,
- 90,
- 91,
- 92,
- 93,
- 94,
- 95,
- 96,
- 97,
- 98,
- 99,
- 100,
- 101,
- 102,
- 103,
- 104,
- 105,
- 106,
- 107,
- 108,
- 109,
- 110,
- 111,
- 112,
- 113,
- 114,
- 115,
- 116,
- 117,
- 118,
- 119,
- 120,
- 121,
- 122,
- 123,
- 124,
- 125,
- 126,
- 127,
- 1026,
- 1027,
- 8218,
- 1107,
- 8222,
- 8230,
- 8224,
- 8225,
- 8364,
- 8240,
- 1033,
- 8249,
- 1034,
- 1036,
- 1035,
- 1039,
- 1106,
- 8216,
- 8217,
- 8220,
- 8221,
- 8226,
- 8211,
- 8212,
- 0,
- 8482,
- 1113,
- 8250,
- 1114,
- 1116,
- 1115,
- 1119,
- 160,
- 1038,
- 1118,
- 1032,
- 164,
- 1168,
- 166,
- 167,
- 1025,
- 169,
- 1028,
- 171,
- 172,
- 173,
- 174,
- 1031,
- 176,
- 177,
- 1030,
- 1110,
- 1169,
- 181,
- 182,
- 183,
- 1105,
- 8470,
- 1108,
- 187,
- 1112,
- 1029,
- 1109,
- 1111,
- 1040,
- 1041,
- 1042,
- 1043,
- 1044,
- 1045,
- 1046,
- 1047,
- 1048,
- 1049,
- 1050,
- 1051,
- 1052,
- 1053,
- 1054,
- 1055,
- 1056,
- 1057,
- 1058,
- 1059,
- 1060,
- 1061,
- 1062,
- 1063,
- 1064,
- 1065,
- 1066,
- 1067,
- 1068,
- 1069,
- 1070,
- 1071,
- 1072,
- 1073,
- 1074,
- 1075,
- 1076,
- 1077,
- 1078,
- 1079,
- 1080,
- 1081,
- 1082,
- 1083,
- 1084,
- 1085,
- 1086,
- 1087,
- 1088,
- 1089,
- 1090,
- 1091,
- 1092,
- 1093,
- 1094,
- 1095,
- 1096,
- 1097,
- 1098,
- 1099,
- 1100,
- 1101,
- 1102,
- 1103,
- };
- const char *fz_glyph_name_from_windows_1251[256] = {
- _notdef,
- _notdef,
- _notdef,
- _notdef,
- _notdef,
- _notdef,
- _notdef,
- _notdef,
- _notdef,
- _notdef,
- _notdef,
- _notdef,
- _notdef,
- _notdef,
- _notdef,
- _notdef,
- _notdef,
- _notdef,
- _notdef,
- _notdef,
- _notdef,
- _notdef,
- _notdef,
- _notdef,
- _notdef,
- _notdef,
- _notdef,
- _notdef,
- _notdef,
- _notdef,
- _notdef,
- _notdef,
- "space",
- "exclam",
- "quotedbl",
- "numbersign",
- "dollar",
- "percent",
- "ampersand",
- "quotesingle",
- "parenleft",
- "parenright",
- "asterisk",
- "plus",
- "comma",
- "hyphen",
- "period",
- "slash",
- "zero",
- "one",
- "two",
- "three",
- "four",
- "five",
- "six",
- "seven",
- "eight",
- "nine",
- "colon",
- "semicolon",
- "less",
- "equal",
- "greater",
- "question",
- "at",
- "A",
- "B",
- "C",
- "D",
- "E",
- "F",
- "G",
- "H",
- "I",
- "J",
- "K",
- "L",
- "M",
- "N",
- "O",
- "P",
- "Q",
- "R",
- "S",
- "T",
- "U",
- "V",
- "W",
- "X",
- "Y",
- "Z",
- "bracketleft",
- "backslash",
- "bracketright",
- "asciicircum",
- "underscore",
- "grave",
- "a",
- "b",
- "c",
- "d",
- "e",
- "f",
- "g",
- "h",
- "i",
- "j",
- "k",
- "l",
- "m",
- "n",
- "o",
- "p",
- "q",
- "r",
- "s",
- "t",
- "u",
- "v",
- "w",
- "x",
- "y",
- "z",
- "braceleft",
- "bar",
- "braceright",
- "asciitilde",
- "controlDEL",
- "Djecyrillic",
- "Gjecyrillic",
- "quotesinglbase",
- "afii10100",
- "quotedblbase",
- "ellipsis",
- "dagger",
- "daggerdbl",
- "Euro",
- "perthousand",
- "Ljecyrillic",
- "guilsinglleft",
- "Njecyrillic",
- "Kjecyrillic",
- "Tshecyrillic",
- "Dzhecyrillic",
- "afii10099",
- "quoteleft",
- "quoteright",
- "quotedblleft",
- "quotedblright",
- "bullet",
- "endash",
- "emdash",
- _notdef,
- "trademark",
- "afii10106",
- "guilsinglright",
- "afii10107",
- "afii10109",
- "afii10108",
- "afii10193",
- "nbspace",
- "Ushortcyrillic",
- "afii10110",
- "Jecyrillic",
- "currency",
- "Gheupturncyrillic",
- "brokenbar",
- "section",
- "Iocyrillic",
- "copyright",
- "Ecyrillic",
- "guillemotleft",
- "logicalnot",
- "sfthyphen",
- "registered",
- "Yicyrillic",
- "degree",
- "plusminus",
- "Icyrillic",
- "afii10103",
- "afii10098",
- "mu",
- "paragraph",
- "periodcentered",
- "afii10071",
- "afii61352",
- "afii10101",
- "guillemotright",
- "afii10105",
- "Dzecyrillic",
- "afii10102",
- "afii10104",
- "Acyrillic",
- "Becyrillic",
- "Vecyrillic",
- "Gecyrillic",
- "Decyrillic",
- "Iecyrillic",
- "Zhecyrillic",
- "Zecyrillic",
- "Iicyrillic",
- "Iishortcyrillic",
- "Kacyrillic",
- "Elcyrillic",
- "Emcyrillic",
- "Encyrillic",
- "Ocyrillic",
- "Pecyrillic",
- "Ercyrillic",
- "Escyrillic",
- "Tecyrillic",
- "Ucyrillic",
- "Efcyrillic",
- "Khacyrillic",
- "Tsecyrillic",
- "Checyrillic",
- "Shacyrillic",
- "Shchacyrillic",
- "Hardsigncyrillic",
- "Yericyrillic",
- "Softsigncyrillic",
- "Ereversedcyrillic",
- "IUcyrillic",
- "IAcyrillic",
- "acyrillic",
- "afii10066",
- "afii10067",
- "afii10068",
- "afii10069",
- "afii10070",
- "afii10072",
- "afii10073",
- "afii10074",
- "afii10075",
- "afii10076",
- "afii10077",
- "afii10078",
- "afii10079",
- "afii10080",
- "afii10081",
- "afii10082",
- "afii10083",
- "afii10084",
- "afii10085",
- "afii10086",
- "afii10087",
- "afii10088",
- "afii10089",
- "afii10090",
- "afii10091",
- "afii10092",
- "afii10093",
- "afii10094",
- "afii10095",
- "afii10096",
- "afii10097",
- };
- static const struct { unsigned short u, c; } windows_1251_from_unicode[] = {
- {0x00a0,160},
- {0x00a4,164},
- {0x00a6,166},
- {0x00a7,167},
- {0x00a9,169},
- {0x00ab,171},
- {0x00ac,172},
- {0x00ad,173},
- {0x00ae,174},
- {0x00b0,176},
- {0x00b1,177},
- {0x00b5,181},
- {0x00b6,182},
- {0x00b7,183},
- {0x00bb,187},
- {0x0401,168},
- {0x0402,128},
- {0x0403,129},
- {0x0404,170},
- {0x0405,189},
- {0x0406,178},
- {0x0407,175},
- {0x0408,163},
- {0x0409,138},
- {0x040a,140},
- {0x040b,142},
- {0x040c,141},
- {0x040e,161},
- {0x040f,143},
- {0x0410,192},
- {0x0411,193},
- {0x0412,194},
- {0x0413,195},
- {0x0414,196},
- {0x0415,197},
- {0x0416,198},
- {0x0417,199},
- {0x0418,200},
- {0x0419,201},
- {0x041a,202},
- {0x041b,203},
- {0x041c,204},
- {0x041d,205},
- {0x041e,206},
- {0x041f,207},
- {0x0420,208},
- {0x0421,209},
- {0x0422,210},
- {0x0423,211},
- {0x0424,212},
- {0x0425,213},
- {0x0426,214},
- {0x0427,215},
- {0x0428,216},
- {0x0429,217},
- {0x042a,218},
- {0x042b,219},
- {0x042c,220},
- {0x042d,221},
- {0x042e,222},
- {0x042f,223},
- {0x0430,224},
- {0x0431,225},
- {0x0432,226},
- {0x0433,227},
- {0x0434,228},
- {0x0435,229},
- {0x0436,230},
- {0x0437,231},
- {0x0438,232},
- {0x0439,233},
- {0x043a,234},
- {0x043b,235},
- {0x043c,236},
- {0x043d,237},
- {0x043e,238},
- {0x043f,239},
- {0x0440,240},
- {0x0441,241},
- {0x0442,242},
- {0x0443,243},
- {0x0444,244},
- {0x0445,245},
- {0x0446,246},
- {0x0447,247},
- {0x0448,248},
- {0x0449,249},
- {0x044a,250},
- {0x044b,251},
- {0x044c,252},
- {0x044d,253},
- {0x044e,254},
- {0x044f,255},
- {0x0451,184},
- {0x0452,144},
- {0x0453,131},
- {0x0454,186},
- {0x0455,190},
- {0x0456,179},
- {0x0457,191},
- {0x0458,188},
- {0x0459,154},
- {0x045a,156},
- {0x045b,158},
- {0x045c,157},
- {0x045e,162},
- {0x045f,159},
- {0x0490,165},
- {0x0491,180},
- {0x2013,150},
- {0x2014,151},
- {0x2018,145},
- {0x2019,146},
- {0x201a,130},
- {0x201c,147},
- {0x201d,148},
- {0x201e,132},
- {0x2020,134},
- {0x2021,135},
- {0x2022,149},
- {0x2026,133},
- {0x2030,137},
- {0x2039,139},
- {0x203a,155},
- {0x20ac,136},
- {0x2116,185},
- {0x2122,153},
- };
- const unsigned short fz_unicode_from_windows_1252[256] = {
- 0,
- 1,
- 2,
- 3,
- 4,
- 5,
- 6,
- 7,
- 8,
- 9,
- 10,
- 11,
- 12,
- 13,
- 14,
- 15,
- 16,
- 17,
- 18,
- 19,
- 20,
- 21,
- 22,
- 23,
- 24,
- 25,
- 26,
- 27,
- 28,
- 29,
- 30,
- 31,
- 32,
- 33,
- 34,
- 35,
- 36,
- 37,
- 38,
- 39,
- 40,
- 41,
- 42,
- 43,
- 44,
- 45,
- 46,
- 47,
- 48,
- 49,
- 50,
- 51,
- 52,
- 53,
- 54,
- 55,
- 56,
- 57,
- 58,
- 59,
- 60,
- 61,
- 62,
- 63,
- 64,
- 65,
- 66,
- 67,
- 68,
- 69,
- 70,
- 71,
- 72,
- 73,
- 74,
- 75,
- 76,
- 77,
- 78,
- 79,
- 80,
- 81,
- 82,
- 83,
- 84,
- 85,
- 86,
- 87,
- 88,
- 89,
- 90,
- 91,
- 92,
- 93,
- 94,
- 95,
- 96,
- 97,
- 98,
- 99,
- 100,
- 101,
- 102,
- 103,
- 104,
- 105,
- 106,
- 107,
- 108,
- 109,
- 110,
- 111,
- 112,
- 113,
- 114,
- 115,
- 116,
- 117,
- 118,
- 119,
- 120,
- 121,
- 122,
- 123,
- 124,
- 125,
- 126,
- 127,
- 8364,
- 0,
- 8218,
- 402,
- 8222,
- 8230,
- 8224,
- 8225,
- 710,
- 8240,
- 352,
- 8249,
- 338,
- 0,
- 381,
- 0,
- 0,
- 8216,
- 8217,
- 8220,
- 8221,
- 8226,
- 8211,
- 8212,
- 732,
- 8482,
- 353,
- 8250,
- 339,
- 0,
- 382,
- 376,
- 160,
- 161,
- 162,
- 163,
- 164,
- 165,
- 166,
- 167,
- 168,
- 169,
- 170,
- 171,
- 172,
- 173,
- 174,
- 175,
- 176,
- 177,
- 178,
- 179,
- 180,
- 181,
- 182,
- 183,
- 184,
- 185,
- 186,
- 187,
- 188,
- 189,
- 190,
- 191,
- 192,
- 193,
- 194,
- 195,
- 196,
- 197,
- 198,
- 199,
- 200,
- 201,
- 202,
- 203,
- 204,
- 205,
- 206,
- 207,
- 208,
- 209,
- 210,
- 211,
- 212,
- 213,
- 214,
- 215,
- 216,
- 217,
- 218,
- 219,
- 220,
- 221,
- 222,
- 223,
- 224,
- 225,
- 226,
- 227,
- 228,
- 229,
- 230,
- 231,
- 232,
- 233,
- 234,
- 235,
- 236,
- 237,
- 238,
- 239,
- 240,
- 241,
- 242,
- 243,
- 244,
- 245,
- 246,
- 247,
- 248,
- 249,
- 250,
- 251,
- 252,
- 253,
- 254,
- 255,
- };
- const char *fz_glyph_name_from_windows_1252[256] = {
- _notdef,
- _notdef,
- _notdef,
- _notdef,
- _notdef,
- _notdef,
- _notdef,
- _notdef,
- _notdef,
- _notdef,
- _notdef,
- _notdef,
- _notdef,
- _notdef,
- _notdef,
- _notdef,
- _notdef,
- _notdef,
- _notdef,
- _notdef,
- _notdef,
- _notdef,
- _notdef,
- _notdef,
- _notdef,
- _notdef,
- _notdef,
- _notdef,
- _notdef,
- _notdef,
- _notdef,
- _notdef,
- "space",
- "exclam",
- "quotedbl",
- "numbersign",
- "dollar",
- "percent",
- "ampersand",
- "quotesingle",
- "parenleft",
- "parenright",
- "asterisk",
- "plus",
- "comma",
- "hyphen",
- "period",
- "slash",
- "zero",
- "one",
- "two",
- "three",
- "four",
- "five",
- "six",
- "seven",
- "eight",
- "nine",
- "colon",
- "semicolon",
- "less",
- "equal",
- "greater",
- "question",
- "at",
- "A",
- "B",
- "C",
- "D",
- "E",
- "F",
- "G",
- "H",
- "I",
- "J",
- "K",
- "L",
- "M",
- "N",
- "O",
- "P",
- "Q",
- "R",
- "S",
- "T",
- "U",
- "V",
- "W",
- "X",
- "Y",
- "Z",
- "bracketleft",
- "backslash",
- "bracketright",
- "asciicircum",
- "underscore",
- "grave",
- "a",
- "b",
- "c",
- "d",
- "e",
- "f",
- "g",
- "h",
- "i",
- "j",
- "k",
- "l",
- "m",
- "n",
- "o",
- "p",
- "q",
- "r",
- "s",
- "t",
- "u",
- "v",
- "w",
- "x",
- "y",
- "z",
- "braceleft",
- "bar",
- "braceright",
- "asciitilde",
- "controlDEL",
- "Euro",
- _notdef,
- "quotesinglbase",
- "florin",
- "quotedblbase",
- "ellipsis",
- "dagger",
- "daggerdbl",
- "circumflex",
- "perthousand",
- "Scaron",
- "guilsinglleft",
- "OE",
- _notdef,
- "Zcaron",
- _notdef,
- _notdef,
- "quoteleft",
- "quoteright",
- "quotedblleft",
- "quotedblright",
- "bullet",
- "endash",
- "emdash",
- "tilde",
- "trademark",
- "scaron",
- "guilsinglright",
- "oe",
- _notdef,
- "zcaron",
- "Ydieresis",
- "nbspace",
- "exclamdown",
- "cent",
- "sterling",
- "currency",
- "yen",
- "brokenbar",
- "section",
- "dieresis",
- "copyright",
- "ordfeminine",
- "guillemotleft",
- "logicalnot",
- "sfthyphen",
- "registered",
- "macron",
- "degree",
- "plusminus",
- "twosuperior",
- "threesuperior",
- "acute",
- "mu",
- "paragraph",
- "periodcentered",
- "cedilla",
- "onesuperior",
- "ordmasculine",
- "guillemotright",
- "onequarter",
- "onehalf",
- "threequarters",
- "questiondown",
- "Agrave",
- "Aacute",
- "Acircumflex",
- "Atilde",
- "Adieresis",
- "Aring",
- "AE",
- "Ccedilla",
- "Egrave",
- "Eacute",
- "Ecircumflex",
- "Edieresis",
- "Igrave",
- "Iacute",
- "Icircumflex",
- "Idieresis",
- "Eth",
- "Ntilde",
- "Ograve",
- "Oacute",
- "Ocircumflex",
- "Otilde",
- "Odieresis",
- "multiply",
- "Oslash",
- "Ugrave",
- "Uacute",
- "Ucircumflex",
- "Udieresis",
- "Yacute",
- "Thorn",
- "germandbls",
- "agrave",
- "aacute",
- "acircumflex",
- "atilde",
- "adieresis",
- "aring",
- "ae",
- "ccedilla",
- "egrave",
- "eacute",
- "ecircumflex",
- "edieresis",
- "igrave",
- "iacute",
- "icircumflex",
- "idieresis",
- "eth",
- "ntilde",
- "ograve",
- "oacute",
- "ocircumflex",
- "otilde",
- "odieresis",
- "divide",
- "oslash",
- "ugrave",
- "uacute",
- "ucircumflex",
- "udieresis",
- "yacute",
- "thorn",
- "ydieresis",
- };
- static const struct { unsigned short u, c; } windows_1252_from_unicode[] = {
- {0x00a0,160},
- {0x00a1,161},
- {0x00a2,162},
- {0x00a3,163},
- {0x00a4,164},
- {0x00a5,165},
- {0x00a6,166},
- {0x00a7,167},
- {0x00a8,168},
- {0x00a9,169},
- {0x00aa,170},
- {0x00ab,171},
- {0x00ac,172},
- {0x00ad,173},
- {0x00ae,174},
- {0x00af,175},
- {0x00b0,176},
- {0x00b1,177},
- {0x00b2,178},
- {0x00b3,179},
- {0x00b4,180},
- {0x00b5,181},
- {0x00b6,182},
- {0x00b7,183},
- {0x00b8,184},
- {0x00b9,185},
- {0x00ba,186},
- {0x00bb,187},
- {0x00bc,188},
- {0x00bd,189},
- {0x00be,190},
- {0x00bf,191},
- {0x00c0,192},
- {0x00c1,193},
- {0x00c2,194},
- {0x00c3,195},
- {0x00c4,196},
- {0x00c5,197},
- {0x00c6,198},
- {0x00c7,199},
- {0x00c8,200},
- {0x00c9,201},
- {0x00ca,202},
- {0x00cb,203},
- {0x00cc,204},
- {0x00cd,205},
- {0x00ce,206},
- {0x00cf,207},
- {0x00d0,208},
- {0x00d1,209},
- {0x00d2,210},
- {0x00d3,211},
- {0x00d4,212},
- {0x00d5,213},
- {0x00d6,214},
- {0x00d7,215},
- {0x00d8,216},
- {0x00d9,217},
- {0x00da,218},
- {0x00db,219},
- {0x00dc,220},
- {0x00dd,221},
- {0x00de,222},
- {0x00df,223},
- {0x00e0,224},
- {0x00e1,225},
- {0x00e2,226},
- {0x00e3,227},
- {0x00e4,228},
- {0x00e5,229},
- {0x00e6,230},
- {0x00e7,231},
- {0x00e8,232},
- {0x00e9,233},
- {0x00ea,234},
- {0x00eb,235},
- {0x00ec,236},
- {0x00ed,237},
- {0x00ee,238},
- {0x00ef,239},
- {0x00f0,240},
- {0x00f1,241},
- {0x00f2,242},
- {0x00f3,243},
- {0x00f4,244},
- {0x00f5,245},
- {0x00f6,246},
- {0x00f7,247},
- {0x00f8,248},
- {0x00f9,249},
- {0x00fa,250},
- {0x00fb,251},
- {0x00fc,252},
- {0x00fd,253},
- {0x00fe,254},
- {0x00ff,255},
- {0x0152,140},
- {0x0153,156},
- {0x0160,138},
- {0x0161,154},
- {0x0178,159},
- {0x017d,142},
- {0x017e,158},
- {0x0192,131},
- {0x02c6,136},
- {0x02dc,152},
- {0x2013,150},
- {0x2014,151},
- {0x2018,145},
- {0x2019,146},
- {0x201a,130},
- {0x201c,147},
- {0x201d,148},
- {0x201e,132},
- {0x2020,134},
- {0x2021,135},
- {0x2022,149},
- {0x2026,133},
- {0x2030,137},
- {0x2039,139},
- {0x203a,155},
- {0x20ac,128},
- {0x2122,153},
- };
|