pdf2json 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- data/README.markdown +9 -0
- data/bin/.gitkeep +0 -0
- data/ext/extconf.rb +30 -0
- data/lib/pdf2json.rb +8 -0
- data/pdf2json-0.52-source/AUTHORS +24 -0
- data/pdf2json-0.52-source/CHANGES +11 -0
- data/pdf2json-0.52-source/Makefile +84 -0
- data/pdf2json-0.52-source/Makefile.in +84 -0
- data/pdf2json-0.52-source/aclocal.m4 +274 -0
- data/pdf2json-0.52-source/aconf-win32.h +86 -0
- data/pdf2json-0.52-source/aconf.h +42 -0
- data/pdf2json-0.52-source/aconf.h.in +41 -0
- data/pdf2json-0.52-source/autom4te.cache/output.0 +6908 -0
- data/pdf2json-0.52-source/autom4te.cache/requests +76 -0
- data/pdf2json-0.52-source/autom4te.cache/traces.0 +466 -0
- data/pdf2json-0.52-source/config.log +1259 -0
- data/pdf2json-0.52-source/config.status +1050 -0
- data/pdf2json-0.52-source/configure +6908 -0
- data/pdf2json-0.52-source/configure.ac +93 -0
- data/pdf2json-0.52-source/doc/pdffonts.1 +130 -0
- data/pdf2json-0.52-source/doc/pdffonts.cat +107 -0
- data/pdf2json-0.52-source/doc/pdffonts.hlp +117 -0
- data/pdf2json-0.52-source/doc/pdfimages.1 +102 -0
- data/pdf2json-0.52-source/doc/pdfimages.cat +92 -0
- data/pdf2json-0.52-source/doc/pdfimages.hlp +101 -0
- data/pdf2json-0.52-source/doc/pdfinfo.1 +158 -0
- data/pdf2json-0.52-source/doc/pdfinfo.cat +119 -0
- data/pdf2json-0.52-source/doc/pdfinfo.hlp +129 -0
- data/pdf2json-0.52-source/doc/pdftoppm.1 +115 -0
- data/pdf2json-0.52-source/doc/pdftoppm.cat +105 -0
- data/pdf2json-0.52-source/doc/pdftoppm.hlp +114 -0
- data/pdf2json-0.52-source/doc/pdftops.1 +229 -0
- data/pdf2json-0.52-source/doc/pdftops.cat +221 -0
- data/pdf2json-0.52-source/doc/pdftops.hlp +231 -0
- data/pdf2json-0.52-source/doc/pdftotext.1 +137 -0
- data/pdf2json-0.52-source/doc/pdftotext.cat +120 -0
- data/pdf2json-0.52-source/doc/pdftotext.hlp +133 -0
- data/pdf2json-0.52-source/doc/sample-xpdfrc +91 -0
- data/pdf2json-0.52-source/doc/xpdf.1 +513 -0
- data/pdf2json-0.52-source/doc/xpdf.cat +476 -0
- data/pdf2json-0.52-source/doc/xpdf.hlp +489 -0
- data/pdf2json-0.52-source/doc/xpdfrc.5 +480 -0
- data/pdf2json-0.52-source/doc/xpdfrc.cat +474 -0
- data/pdf2json-0.52-source/doc/xpdfrc.hlp +479 -0
- data/pdf2json-0.52-source/fofi/.DS_Store +0 -0
- data/pdf2json-0.52-source/fofi/FoFiBase.cc +156 -0
- data/pdf2json-0.52-source/fofi/FoFiBase.h +57 -0
- data/pdf2json-0.52-source/fofi/FoFiBase.o +0 -0
- data/pdf2json-0.52-source/fofi/FoFiEncodings.cc +994 -0
- data/pdf2json-0.52-source/fofi/FoFiEncodings.h +36 -0
- data/pdf2json-0.52-source/fofi/FoFiEncodings.o +0 -0
- data/pdf2json-0.52-source/fofi/FoFiTrueType.cc +2027 -0
- data/pdf2json-0.52-source/fofi/FoFiTrueType.h +174 -0
- data/pdf2json-0.52-source/fofi/FoFiTrueType.o +0 -0
- data/pdf2json-0.52-source/fofi/FoFiType1.cc +252 -0
- data/pdf2json-0.52-source/fofi/FoFiType1.h +59 -0
- data/pdf2json-0.52-source/fofi/FoFiType1.o +0 -0
- data/pdf2json-0.52-source/fofi/FoFiType1C.cc +2603 -0
- data/pdf2json-0.52-source/fofi/FoFiType1C.h +233 -0
- data/pdf2json-0.52-source/fofi/FoFiType1C.o +0 -0
- data/pdf2json-0.52-source/fofi/Makefile +70 -0
- data/pdf2json-0.52-source/fofi/Makefile.dep +0 -0
- data/pdf2json-0.52-source/fofi/Makefile.in +70 -0
- data/pdf2json-0.52-source/fofi/libfofi.a +0 -0
- data/pdf2json-0.52-source/fofi/vms_make.com +0 -0
- data/pdf2json-0.52-source/freetype.win32/.DS_Store +0 -0
- data/pdf2json-0.52-source/freetype.win32/include/.DS_Store +0 -0
- data/pdf2json-0.52-source/freetype.win32/include/freetype/config/ftconfig.h +528 -0
- data/pdf2json-0.52-source/freetype.win32/include/freetype/config/ftheader.h +780 -0
- data/pdf2json-0.52-source/freetype.win32/include/freetype/config/ftmodule.h +32 -0
- data/pdf2json-0.52-source/freetype.win32/include/freetype/config/ftoption.h +733 -0
- data/pdf2json-0.52-source/freetype.win32/include/freetype/config/ftstdlib.h +173 -0
- data/pdf2json-0.52-source/freetype.win32/include/freetype/freetype.h +3919 -0
- data/pdf2json-0.52-source/freetype.win32/include/freetype/ftadvanc.h +179 -0
- data/pdf2json-0.52-source/freetype.win32/include/freetype/ftbbox.h +94 -0
- data/pdf2json-0.52-source/freetype.win32/include/freetype/ftbdf.h +209 -0
- data/pdf2json-0.52-source/freetype.win32/include/freetype/ftbitmap.h +227 -0
- data/pdf2json-0.52-source/freetype.win32/include/freetype/ftcache.h +1128 -0
- data/pdf2json-0.52-source/freetype.win32/include/freetype/ftchapters.h +103 -0
- data/pdf2json-0.52-source/freetype.win32/include/freetype/ftcid.h +166 -0
- data/pdf2json-0.52-source/freetype.win32/include/freetype/fterrdef.h +244 -0
- data/pdf2json-0.52-source/freetype.win32/include/freetype/fterrors.h +206 -0
- data/pdf2json-0.52-source/freetype.win32/include/freetype/ftgasp.h +120 -0
- data/pdf2json-0.52-source/freetype.win32/include/freetype/ftglyph.h +613 -0
- data/pdf2json-0.52-source/freetype.win32/include/freetype/ftgxval.h +358 -0
- data/pdf2json-0.52-source/freetype.win32/include/freetype/ftgzip.h +102 -0
- data/pdf2json-0.52-source/freetype.win32/include/freetype/ftimage.h +1313 -0
- data/pdf2json-0.52-source/freetype.win32/include/freetype/ftincrem.h +353 -0
- data/pdf2json-0.52-source/freetype.win32/include/freetype/ftlcdfil.h +213 -0
- data/pdf2json-0.52-source/freetype.win32/include/freetype/ftlist.h +277 -0
- data/pdf2json-0.52-source/freetype.win32/include/freetype/ftlzw.h +99 -0
- data/pdf2json-0.52-source/freetype.win32/include/freetype/ftmac.h +274 -0
- data/pdf2json-0.52-source/freetype.win32/include/freetype/ftmm.h +378 -0
- data/pdf2json-0.52-source/freetype.win32/include/freetype/ftmodapi.h +483 -0
- data/pdf2json-0.52-source/freetype.win32/include/freetype/ftmoderr.h +155 -0
- data/pdf2json-0.52-source/freetype.win32/include/freetype/ftotval.h +203 -0
- data/pdf2json-0.52-source/freetype.win32/include/freetype/ftoutln.h +537 -0
- data/pdf2json-0.52-source/freetype.win32/include/freetype/ftpfr.h +172 -0
- data/pdf2json-0.52-source/freetype.win32/include/freetype/ftrender.h +230 -0
- data/pdf2json-0.52-source/freetype.win32/include/freetype/ftsizes.h +159 -0
- data/pdf2json-0.52-source/freetype.win32/include/freetype/ftsnames.h +200 -0
- data/pdf2json-0.52-source/freetype.win32/include/freetype/ftstroke.h +716 -0
- data/pdf2json-0.52-source/freetype.win32/include/freetype/ftsynth.h +80 -0
- data/pdf2json-0.52-source/freetype.win32/include/freetype/ftsystem.h +347 -0
- data/pdf2json-0.52-source/freetype.win32/include/freetype/fttrigon.h +350 -0
- data/pdf2json-0.52-source/freetype.win32/include/freetype/fttypes.h +588 -0
- data/pdf2json-0.52-source/freetype.win32/include/freetype/ftwinfnt.h +274 -0
- data/pdf2json-0.52-source/freetype.win32/include/freetype/ftxf86.h +83 -0
- data/pdf2json-0.52-source/freetype.win32/include/freetype/internal/autohint.h +231 -0
- data/pdf2json-0.52-source/freetype.win32/include/freetype/internal/ftcalc.h +179 -0
- data/pdf2json-0.52-source/freetype.win32/include/freetype/internal/ftdebug.h +250 -0
- data/pdf2json-0.52-source/freetype.win32/include/freetype/internal/ftdriver.h +422 -0
- data/pdf2json-0.52-source/freetype.win32/include/freetype/internal/ftgloadr.h +168 -0
- data/pdf2json-0.52-source/freetype.win32/include/freetype/internal/ftmemory.h +380 -0
- data/pdf2json-0.52-source/freetype.win32/include/freetype/internal/ftobjs.h +1428 -0
- data/pdf2json-0.52-source/freetype.win32/include/freetype/internal/ftpic.h +67 -0
- data/pdf2json-0.52-source/freetype.win32/include/freetype/internal/ftrfork.h +196 -0
- data/pdf2json-0.52-source/freetype.win32/include/freetype/internal/ftserv.h +620 -0
- data/pdf2json-0.52-source/freetype.win32/include/freetype/internal/ftstream.h +539 -0
- data/pdf2json-0.52-source/freetype.win32/include/freetype/internal/fttrace.h +139 -0
- data/pdf2json-0.52-source/freetype.win32/include/freetype/internal/ftvalid.h +150 -0
- data/pdf2json-0.52-source/freetype.win32/include/freetype/internal/internal.h +51 -0
- data/pdf2json-0.52-source/freetype.win32/include/freetype/internal/pcftypes.h +56 -0
- data/pdf2json-0.52-source/freetype.win32/include/freetype/internal/psaux.h +873 -0
- data/pdf2json-0.52-source/freetype.win32/include/freetype/internal/pshints.h +712 -0
- data/pdf2json-0.52-source/freetype.win32/include/freetype/internal/services/svbdf.h +77 -0
- data/pdf2json-0.52-source/freetype.win32/include/freetype/internal/services/svcid.h +83 -0
- data/pdf2json-0.52-source/freetype.win32/include/freetype/internal/services/svgldict.h +82 -0
- data/pdf2json-0.52-source/freetype.win32/include/freetype/internal/services/svgxval.h +72 -0
- data/pdf2json-0.52-source/freetype.win32/include/freetype/internal/services/svkern.h +51 -0
- data/pdf2json-0.52-source/freetype.win32/include/freetype/internal/services/svmm.h +104 -0
- data/pdf2json-0.52-source/freetype.win32/include/freetype/internal/services/svotval.h +55 -0
- data/pdf2json-0.52-source/freetype.win32/include/freetype/internal/services/svpfr.h +66 -0
- data/pdf2json-0.52-source/freetype.win32/include/freetype/internal/services/svpostnm.h +79 -0
- data/pdf2json-0.52-source/freetype.win32/include/freetype/internal/services/svpscmap.h +164 -0
- data/pdf2json-0.52-source/freetype.win32/include/freetype/internal/services/svpsinfo.h +92 -0
- data/pdf2json-0.52-source/freetype.win32/include/freetype/internal/services/svsfnt.h +102 -0
- data/pdf2json-0.52-source/freetype.win32/include/freetype/internal/services/svttcmap.h +106 -0
- data/pdf2json-0.52-source/freetype.win32/include/freetype/internal/services/svtteng.h +53 -0
- data/pdf2json-0.52-source/freetype.win32/include/freetype/internal/services/svttglyf.h +67 -0
- data/pdf2json-0.52-source/freetype.win32/include/freetype/internal/services/svwinfnt.h +50 -0
- data/pdf2json-0.52-source/freetype.win32/include/freetype/internal/services/svxf86nm.h +55 -0
- data/pdf2json-0.52-source/freetype.win32/include/freetype/internal/sfnt.h +897 -0
- data/pdf2json-0.52-source/freetype.win32/include/freetype/internal/t1types.h +270 -0
- data/pdf2json-0.52-source/freetype.win32/include/freetype/internal/tttypes.h +1543 -0
- data/pdf2json-0.52-source/freetype.win32/include/freetype/t1tables.h +504 -0
- data/pdf2json-0.52-source/freetype.win32/include/freetype/ttnameid.h +1247 -0
- data/pdf2json-0.52-source/freetype.win32/include/freetype/tttables.h +759 -0
- data/pdf2json-0.52-source/freetype.win32/include/freetype/tttags.h +107 -0
- data/pdf2json-0.52-source/freetype.win32/include/freetype/ttunpat.h +59 -0
- data/pdf2json-0.52-source/freetype.win32/include/ft2build.h +39 -0
- data/pdf2json-0.52-source/freetype.win32/lib/freetype_a.lib +0 -0
- data/pdf2json-0.52-source/goo/.DS_Store +0 -0
- data/pdf2json-0.52-source/goo/FixedPoint.cc +118 -0
- data/pdf2json-0.52-source/goo/FixedPoint.h +155 -0
- data/pdf2json-0.52-source/goo/FixedPoint.o +0 -0
- data/pdf2json-0.52-source/goo/GHash.cc +380 -0
- data/pdf2json-0.52-source/goo/GHash.h +78 -0
- data/pdf2json-0.52-source/goo/GHash.o +0 -0
- data/pdf2json-0.52-source/goo/GList.cc +97 -0
- data/pdf2json-0.52-source/goo/GList.h +96 -0
- data/pdf2json-0.52-source/goo/GList.o +0 -0
- data/pdf2json-0.52-source/goo/GMutex.h +49 -0
- data/pdf2json-0.52-source/goo/GString.cc +724 -0
- data/pdf2json-0.52-source/goo/GString.cc.fixed +718 -0
- data/pdf2json-0.52-source/goo/GString.h +136 -0
- data/pdf2json-0.52-source/goo/GString.o +0 -0
- data/pdf2json-0.52-source/goo/ImgWriter.o +0 -0
- data/pdf2json-0.52-source/goo/JpegWriter.o +0 -0
- data/pdf2json-0.52-source/goo/Makefile +72 -0
- data/pdf2json-0.52-source/goo/Makefile.dep +0 -0
- data/pdf2json-0.52-source/goo/Makefile.in +72 -0
- data/pdf2json-0.52-source/goo/PNGWriter.o +0 -0
- data/pdf2json-0.52-source/goo/gfile.cc +731 -0
- data/pdf2json-0.52-source/goo/gfile.h +138 -0
- data/pdf2json-0.52-source/goo/gfile.o +0 -0
- data/pdf2json-0.52-source/goo/gmem.cc +264 -0
- data/pdf2json-0.52-source/goo/gmem.h +79 -0
- data/pdf2json-0.52-source/goo/gmem.o +0 -0
- data/pdf2json-0.52-source/goo/gmempp.cc +32 -0
- data/pdf2json-0.52-source/goo/gmempp.o +0 -0
- data/pdf2json-0.52-source/goo/gtypes.h +29 -0
- data/pdf2json-0.52-source/goo/libGoo.a +0 -0
- data/pdf2json-0.52-source/goo/parseargs.c +190 -0
- data/pdf2json-0.52-source/goo/parseargs.h +71 -0
- data/pdf2json-0.52-source/goo/parseargs.o +0 -0
- data/pdf2json-0.52-source/goo/vms_directory.c +214 -0
- data/pdf2json-0.52-source/goo/vms_dirent.h +67 -0
- data/pdf2json-0.52-source/goo/vms_make.com +82 -0
- data/pdf2json-0.52-source/goo/vms_sys_dirent.h +54 -0
- data/pdf2json-0.52-source/goo/vms_unix_time.h +102 -0
- data/pdf2json-0.52-source/goo/vms_unix_times.c +42 -0
- data/pdf2json-0.52-source/goo/vms_unlink.c +22 -0
- data/pdf2json-0.52-source/ms_make.bat +199 -0
- data/pdf2json-0.52-source/splash/.DS_Store +0 -0
- data/pdf2json-0.52-source/splash/Makefile +103 -0
- data/pdf2json-0.52-source/splash/Makefile.dep +0 -0
- data/pdf2json-0.52-source/splash/Makefile.in +103 -0
- data/pdf2json-0.52-source/splash/Splash.cc +3310 -0
- data/pdf2json-0.52-source/splash/Splash.h +293 -0
- data/pdf2json-0.52-source/splash/Splash.o +0 -0
- data/pdf2json-0.52-source/splash/SplashBitmap.cc +188 -0
- data/pdf2json-0.52-source/splash/SplashBitmap.h +64 -0
- data/pdf2json-0.52-source/splash/SplashBitmap.o +0 -0
- data/pdf2json-0.52-source/splash/SplashClip.cc +382 -0
- data/pdf2json-0.52-source/splash/SplashClip.h +107 -0
- data/pdf2json-0.52-source/splash/SplashClip.o +0 -0
- data/pdf2json-0.52-source/splash/SplashErrorCodes.h +32 -0
- data/pdf2json-0.52-source/splash/SplashFTFont.cc +357 -0
- data/pdf2json-0.52-source/splash/SplashFTFont.h +58 -0
- data/pdf2json-0.52-source/splash/SplashFTFont.o +0 -0
- data/pdf2json-0.52-source/splash/SplashFTFontEngine.cc +179 -0
- data/pdf2json-0.52-source/splash/SplashFTFontEngine.h +65 -0
- data/pdf2json-0.52-source/splash/SplashFTFontEngine.o +0 -0
- data/pdf2json-0.52-source/splash/SplashFTFontFile.cc +114 -0
- data/pdf2json-0.52-source/splash/SplashFTFontFile.h +73 -0
- data/pdf2json-0.52-source/splash/SplashFTFontFile.o +0 -0
- data/pdf2json-0.52-source/splash/SplashFont.cc +176 -0
- data/pdf2json-0.52-source/splash/SplashFont.h +104 -0
- data/pdf2json-0.52-source/splash/SplashFont.o +0 -0
- data/pdf2json-0.52-source/splash/SplashFontEngine.cc +317 -0
- data/pdf2json-0.52-source/splash/SplashFontEngine.h +91 -0
- data/pdf2json-0.52-source/splash/SplashFontEngine.o +0 -0
- data/pdf2json-0.52-source/splash/SplashFontFile.cc +55 -0
- data/pdf2json-0.52-source/splash/SplashFontFile.h +60 -0
- data/pdf2json-0.52-source/splash/SplashFontFile.o +0 -0
- data/pdf2json-0.52-source/splash/SplashFontFileID.cc +23 -0
- data/pdf2json-0.52-source/splash/SplashFontFileID.h +30 -0
- data/pdf2json-0.52-source/splash/SplashFontFileID.o +0 -0
- data/pdf2json-0.52-source/splash/SplashGlyphBitmap.h +26 -0
- data/pdf2json-0.52-source/splash/SplashMath.h +89 -0
- data/pdf2json-0.52-source/splash/SplashPath.cc +184 -0
- data/pdf2json-0.52-source/splash/SplashPath.h +121 -0
- data/pdf2json-0.52-source/splash/SplashPath.o +0 -0
- data/pdf2json-0.52-source/splash/SplashPattern.cc +40 -0
- data/pdf2json-0.52-source/splash/SplashPattern.h +65 -0
- data/pdf2json-0.52-source/splash/SplashPattern.o +0 -0
- data/pdf2json-0.52-source/splash/SplashScreen.cc +383 -0
- data/pdf2json-0.52-source/splash/SplashScreen.h +56 -0
- data/pdf2json-0.52-source/splash/SplashScreen.o +0 -0
- data/pdf2json-0.52-source/splash/SplashState.cc +165 -0
- data/pdf2json-0.52-source/splash/SplashState.h +103 -0
- data/pdf2json-0.52-source/splash/SplashState.o +0 -0
- data/pdf2json-0.52-source/splash/SplashT1Font.cc +287 -0
- data/pdf2json-0.52-source/splash/SplashT1Font.h +57 -0
- data/pdf2json-0.52-source/splash/SplashT1Font.o +0 -0
- data/pdf2json-0.52-source/splash/SplashT1FontEngine.cc +124 -0
- data/pdf2json-0.52-source/splash/SplashT1FontEngine.h +53 -0
- data/pdf2json-0.52-source/splash/SplashT1FontEngine.o +0 -0
- data/pdf2json-0.52-source/splash/SplashT1FontFile.cc +97 -0
- data/pdf2json-0.52-source/splash/SplashT1FontFile.h +58 -0
- data/pdf2json-0.52-source/splash/SplashT1FontFile.o +0 -0
- data/pdf2json-0.52-source/splash/SplashTypes.h +132 -0
- data/pdf2json-0.52-source/splash/SplashXPath.cc +438 -0
- data/pdf2json-0.52-source/splash/SplashXPath.h +100 -0
- data/pdf2json-0.52-source/splash/SplashXPath.o +0 -0
- data/pdf2json-0.52-source/splash/SplashXPathScanner.cc +428 -0
- data/pdf2json-0.52-source/splash/SplashXPathScanner.h +87 -0
- data/pdf2json-0.52-source/splash/SplashXPathScanner.o +0 -0
- data/pdf2json-0.52-source/splash/libsplash.a +0 -0
- data/pdf2json-0.52-source/splash/vms_make.com +0 -0
- data/pdf2json-0.52-source/src/.DS_Store +0 -0
- data/pdf2json-0.52-source/src/GVector.h +101 -0
- data/pdf2json-0.52-source/src/ImgOutputDev.cc +1243 -0
- data/pdf2json-0.52-source/src/ImgOutputDev.h +307 -0
- data/pdf2json-0.52-source/src/ImgOutputDev.o +0 -0
- data/pdf2json-0.52-source/src/Makefile +68 -0
- data/pdf2json-0.52-source/src/Makefile.in +68 -0
- data/pdf2json-0.52-source/src/XmlFonts.cc +367 -0
- data/pdf2json-0.52-source/src/XmlFonts.h +91 -0
- data/pdf2json-0.52-source/src/XmlFonts.o +0 -0
- data/pdf2json-0.52-source/src/XmlLinks.cc +101 -0
- data/pdf2json-0.52-source/src/XmlLinks.h +54 -0
- data/pdf2json-0.52-source/src/XmlLinks.o +0 -0
- data/pdf2json-0.52-source/src/pdf2json +0 -0
- data/pdf2json-0.52-source/src/pdf2json.cc +343 -0
- data/pdf2json-0.52-source/src/pdf2json.o +0 -0
- data/pdf2json-0.52-source/src/pdf2xml.dtd +22 -0
- data/pdf2json-0.52-source/src/pdf2xmljson.dtd +9 -0
- data/pdf2json-0.52-source/xpdf/.DS_Store +0 -0
- data/pdf2json-0.52-source/xpdf/Annot.cc +1556 -0
- data/pdf2json-0.52-source/xpdf/Annot.h +142 -0
- data/pdf2json-0.52-source/xpdf/Annot.o +0 -0
- data/pdf2json-0.52-source/xpdf/Array.cc +73 -0
- data/pdf2json-0.52-source/xpdf/Array.h +58 -0
- data/pdf2json-0.52-source/xpdf/Array.o +0 -0
- data/pdf2json-0.52-source/xpdf/BuiltinFont.cc +65 -0
- data/pdf2json-0.52-source/xpdf/BuiltinFont.h +57 -0
- data/pdf2json-0.52-source/xpdf/BuiltinFont.o +0 -0
- data/pdf2json-0.52-source/xpdf/BuiltinFontTables.cc +4284 -0
- data/pdf2json-0.52-source/xpdf/BuiltinFontTables.h +23 -0
- data/pdf2json-0.52-source/xpdf/BuiltinFontTables.o +0 -0
- data/pdf2json-0.52-source/xpdf/CMap.cc +408 -0
- data/pdf2json-0.52-source/xpdf/CMap.h +102 -0
- data/pdf2json-0.52-source/xpdf/CMap.o +0 -0
- data/pdf2json-0.52-source/xpdf/Catalog.cc +374 -0
- data/pdf2json-0.52-source/xpdf/Catalog.h +97 -0
- data/pdf2json-0.52-source/xpdf/Catalog.o +0 -0
- data/pdf2json-0.52-source/xpdf/CharCodeToUnicode.cc +540 -0
- data/pdf2json-0.52-source/xpdf/CharCodeToUnicode.h +117 -0
- data/pdf2json-0.52-source/xpdf/CharCodeToUnicode.o +0 -0
- data/pdf2json-0.52-source/xpdf/CharTypes.h +24 -0
- data/pdf2json-0.52-source/xpdf/CompactFontTables.h +464 -0
- data/pdf2json-0.52-source/xpdf/CoreOutputDev.cc +61 -0
- data/pdf2json-0.52-source/xpdf/CoreOutputDev.h +61 -0
- data/pdf2json-0.52-source/xpdf/Decrypt.cc +776 -0
- data/pdf2json-0.52-source/xpdf/Decrypt.h +95 -0
- data/pdf2json-0.52-source/xpdf/Decrypt.o +0 -0
- data/pdf2json-0.52-source/xpdf/Dict.cc +95 -0
- data/pdf2json-0.52-source/xpdf/Dict.h +77 -0
- data/pdf2json-0.52-source/xpdf/Dict.o +0 -0
- data/pdf2json-0.52-source/xpdf/Error.cc +38 -0
- data/pdf2json-0.52-source/xpdf/Error.h +23 -0
- data/pdf2json-0.52-source/xpdf/Error.o +0 -0
- data/pdf2json-0.52-source/xpdf/ErrorCodes.h +36 -0
- data/pdf2json-0.52-source/xpdf/FontEncodingTables.cc +1824 -0
- data/pdf2json-0.52-source/xpdf/FontEncodingTables.h +20 -0
- data/pdf2json-0.52-source/xpdf/FontEncodingTables.o +0 -0
- data/pdf2json-0.52-source/xpdf/Function.cc +1573 -0
- data/pdf2json-0.52-source/xpdf/Function.h +229 -0
- data/pdf2json-0.52-source/xpdf/Function.o +0 -0
- data/pdf2json-0.52-source/xpdf/Gfx.cc +4187 -0
- data/pdf2json-0.52-source/xpdf/Gfx.h +312 -0
- data/pdf2json-0.52-source/xpdf/Gfx.o +0 -0
- data/pdf2json-0.52-source/xpdf/GfxFont.cc +1568 -0
- data/pdf2json-0.52-source/xpdf/GfxFont.h +320 -0
- data/pdf2json-0.52-source/xpdf/GfxFont.o +0 -0
- data/pdf2json-0.52-source/xpdf/GfxState.cc +4137 -0
- data/pdf2json-0.52-source/xpdf/GfxState.h +1244 -0
- data/pdf2json-0.52-source/xpdf/GfxState.o +0 -0
- data/pdf2json-0.52-source/xpdf/GlobalParams.cc +2924 -0
- data/pdf2json-0.52-source/xpdf/GlobalParams.cc.old +2908 -0
- data/pdf2json-0.52-source/xpdf/GlobalParams.h +466 -0
- data/pdf2json-0.52-source/xpdf/GlobalParams.h.old +463 -0
- data/pdf2json-0.52-source/xpdf/GlobalParams.o +0 -0
- data/pdf2json-0.52-source/xpdf/ImageOutputDev.cc +195 -0
- data/pdf2json-0.52-source/xpdf/ImageOutputDev.h +76 -0
- data/pdf2json-0.52-source/xpdf/ImageOutputDev.o +0 -0
- data/pdf2json-0.52-source/xpdf/JArithmeticDecoder.cc +322 -0
- data/pdf2json-0.52-source/xpdf/JArithmeticDecoder.h +109 -0
- data/pdf2json-0.52-source/xpdf/JArithmeticDecoder.o +0 -0
- data/pdf2json-0.52-source/xpdf/JBIG2Stream.cc +3413 -0
- data/pdf2json-0.52-source/xpdf/JBIG2Stream.h +145 -0
- data/pdf2json-0.52-source/xpdf/JBIG2Stream.o +0 -0
- data/pdf2json-0.52-source/xpdf/JPXStream.cc +3144 -0
- data/pdf2json-0.52-source/xpdf/JPXStream.h +351 -0
- data/pdf2json-0.52-source/xpdf/JPXStream.o +0 -0
- data/pdf2json-0.52-source/xpdf/Lexer.cc +485 -0
- data/pdf2json-0.52-source/xpdf/Lexer.h +80 -0
- data/pdf2json-0.52-source/xpdf/Lexer.o +0 -0
- data/pdf2json-0.52-source/xpdf/Link.cc +806 -0
- data/pdf2json-0.52-source/xpdf/Link.cc.old +784 -0
- data/pdf2json-0.52-source/xpdf/Link.h +415 -0
- data/pdf2json-0.52-source/xpdf/Link.h.old +369 -0
- data/pdf2json-0.52-source/xpdf/Link.o +0 -0
- data/pdf2json-0.52-source/xpdf/Makefile +232 -0
- data/pdf2json-0.52-source/xpdf/Makefile.dep +0 -0
- data/pdf2json-0.52-source/xpdf/Makefile.in +232 -0
- data/pdf2json-0.52-source/xpdf/NameToCharCode.cc +116 -0
- data/pdf2json-0.52-source/xpdf/NameToCharCode.h +42 -0
- data/pdf2json-0.52-source/xpdf/NameToCharCode.o +0 -0
- data/pdf2json-0.52-source/xpdf/NameToUnicodeTable.h +1097 -0
- data/pdf2json-0.52-source/xpdf/Object.cc +231 -0
- data/pdf2json-0.52-source/xpdf/Object.h +303 -0
- data/pdf2json-0.52-source/xpdf/Object.o +0 -0
- data/pdf2json-0.52-source/xpdf/Outline.cc +151 -0
- data/pdf2json-0.52-source/xpdf/Outline.h +76 -0
- data/pdf2json-0.52-source/xpdf/Outline.o +0 -0
- data/pdf2json-0.52-source/xpdf/OutputDev.cc +131 -0
- data/pdf2json-0.52-source/xpdf/OutputDev.h +253 -0
- data/pdf2json-0.52-source/xpdf/OutputDev.o +0 -0
- data/pdf2json-0.52-source/xpdf/PDFCore.cc +2044 -0
- data/pdf2json-0.52-source/xpdf/PDFCore.h +321 -0
- data/pdf2json-0.52-source/xpdf/PDFDoc.cc +404 -0
- data/pdf2json-0.52-source/xpdf/PDFDoc.h +183 -0
- data/pdf2json-0.52-source/xpdf/PDFDoc.o +0 -0
- data/pdf2json-0.52-source/xpdf/PDFDocEncoding.cc +44 -0
- data/pdf2json-0.52-source/xpdf/PDFDocEncoding.h +16 -0
- data/pdf2json-0.52-source/xpdf/PDFDocEncoding.o +0 -0
- data/pdf2json-0.52-source/xpdf/PSOutputDev.cc +6224 -0
- data/pdf2json-0.52-source/xpdf/PSOutputDev.h +395 -0
- data/pdf2json-0.52-source/xpdf/PSOutputDev.o +0 -0
- data/pdf2json-0.52-source/xpdf/PSTokenizer.cc +135 -0
- data/pdf2json-0.52-source/xpdf/PSTokenizer.h +41 -0
- data/pdf2json-0.52-source/xpdf/PSTokenizer.o +0 -0
- data/pdf2json-0.52-source/xpdf/Page.cc +454 -0
- data/pdf2json-0.52-source/xpdf/Page.h +187 -0
- data/pdf2json-0.52-source/xpdf/Page.o +0 -0
- data/pdf2json-0.52-source/xpdf/Parser.cc +227 -0
- data/pdf2json-0.52-source/xpdf/Parser.h +59 -0
- data/pdf2json-0.52-source/xpdf/Parser.o +0 -0
- data/pdf2json-0.52-source/xpdf/PreScanOutputDev.cc +257 -0
- data/pdf2json-0.52-source/xpdf/PreScanOutputDev.h +130 -0
- data/pdf2json-0.52-source/xpdf/PreScanOutputDev.o +0 -0
- data/pdf2json-0.52-source/xpdf/SecurityHandler.cc +390 -0
- data/pdf2json-0.52-source/xpdf/SecurityHandler.h +160 -0
- data/pdf2json-0.52-source/xpdf/SecurityHandler.o +0 -0
- data/pdf2json-0.52-source/xpdf/SplashOutputDev.cc +2845 -0
- data/pdf2json-0.52-source/xpdf/SplashOutputDev.h +247 -0
- data/pdf2json-0.52-source/xpdf/SplashOutputDev.o +0 -0
- data/pdf2json-0.52-source/xpdf/Stream-CCITT.h +459 -0
- data/pdf2json-0.52-source/xpdf/Stream.cc +4627 -0
- data/pdf2json-0.52-source/xpdf/Stream.h +858 -0
- data/pdf2json-0.52-source/xpdf/Stream.o +0 -0
- data/pdf2json-0.52-source/xpdf/TextOutputDev.cc +4090 -0
- data/pdf2json-0.52-source/xpdf/TextOutputDev.h +661 -0
- data/pdf2json-0.52-source/xpdf/TextOutputDev.o +0 -0
- data/pdf2json-0.52-source/xpdf/UTF8.h +56 -0
- data/pdf2json-0.52-source/xpdf/UnicodeMap.cc +302 -0
- data/pdf2json-0.52-source/xpdf/UnicodeMap.cc.old +293 -0
- data/pdf2json-0.52-source/xpdf/UnicodeMap.h +135 -0
- data/pdf2json-0.52-source/xpdf/UnicodeMap.h.old +123 -0
- data/pdf2json-0.52-source/xpdf/UnicodeMap.o +0 -0
- data/pdf2json-0.52-source/xpdf/UnicodeMapTables.h +361 -0
- data/pdf2json-0.52-source/xpdf/UnicodeTypeTable.cc +949 -0
- data/pdf2json-0.52-source/xpdf/UnicodeTypeTable.h +20 -0
- data/pdf2json-0.52-source/xpdf/UnicodeTypeTable.o +0 -0
- data/pdf2json-0.52-source/xpdf/XPDFApp.cc +447 -0
- data/pdf2json-0.52-source/xpdf/XPDFApp.h +114 -0
- data/pdf2json-0.52-source/xpdf/XPDFCore.cc +1655 -0
- data/pdf2json-0.52-source/xpdf/XPDFCore.h +251 -0
- data/pdf2json-0.52-source/xpdf/XPDFTree.cc +931 -0
- data/pdf2json-0.52-source/xpdf/XPDFTree.h +45 -0
- data/pdf2json-0.52-source/xpdf/XPDFTreeP.h +87 -0
- data/pdf2json-0.52-source/xpdf/XPDFViewer.cc +3488 -0
- data/pdf2json-0.52-source/xpdf/XPDFViewer.h +352 -0
- data/pdf2json-0.52-source/xpdf/XRef.cc +896 -0
- data/pdf2json-0.52-source/xpdf/XRef.h +133 -0
- data/pdf2json-0.52-source/xpdf/XRef.o +0 -0
- data/pdf2json-0.52-source/xpdf/XpdfPluginAPI.cc +262 -0
- data/pdf2json-0.52-source/xpdf/XpdfPluginAPI.h +341 -0
- data/pdf2json-0.52-source/xpdf/XpdfPluginAPI.o +0 -0
- data/pdf2json-0.52-source/xpdf/about-text.h +48 -0
- data/pdf2json-0.52-source/xpdf/about.xbm +6 -0
- data/pdf2json-0.52-source/xpdf/backArrow.xbm +6 -0
- data/pdf2json-0.52-source/xpdf/backArrowDis.xbm +6 -0
- data/pdf2json-0.52-source/xpdf/config.h +112 -0
- data/pdf2json-0.52-source/xpdf/dblLeftArrow.xbm +6 -0
- data/pdf2json-0.52-source/xpdf/dblLeftArrowDis.xbm +6 -0
- data/pdf2json-0.52-source/xpdf/dblRightArrow.xbm +6 -0
- data/pdf2json-0.52-source/xpdf/dblRightArrowDis.xbm +6 -0
- data/pdf2json-0.52-source/xpdf/find.xbm +6 -0
- data/pdf2json-0.52-source/xpdf/findDis.xbm +6 -0
- data/pdf2json-0.52-source/xpdf/forwardArrow.xbm +6 -0
- data/pdf2json-0.52-source/xpdf/forwardArrowDis.xbm +6 -0
- data/pdf2json-0.52-source/xpdf/leftArrow.xbm +5 -0
- data/pdf2json-0.52-source/xpdf/leftArrowDis.xbm +5 -0
- data/pdf2json-0.52-source/xpdf/libXpdf.a +0 -0
- data/pdf2json-0.52-source/xpdf/pdffonts +0 -0
- data/pdf2json-0.52-source/xpdf/pdffonts.cc +298 -0
- data/pdf2json-0.52-source/xpdf/pdffonts.o +0 -0
- data/pdf2json-0.52-source/xpdf/pdfimages +0 -0
- data/pdf2json-0.52-source/xpdf/pdfimages.cc +155 -0
- data/pdf2json-0.52-source/xpdf/pdfimages.o +0 -0
- data/pdf2json-0.52-source/xpdf/pdfinfo +0 -0
- data/pdf2json-0.52-source/xpdf/pdfinfo.cc +387 -0
- data/pdf2json-0.52-source/xpdf/pdfinfo.o +0 -0
- data/pdf2json-0.52-source/xpdf/pdftoppm.cc +203 -0
- data/pdf2json-0.52-source/xpdf/pdftops +0 -0
- data/pdf2json-0.52-source/xpdf/pdftops.cc +344 -0
- data/pdf2json-0.52-source/xpdf/pdftops.o +0 -0
- data/pdf2json-0.52-source/xpdf/pdftotext +0 -0
- data/pdf2json-0.52-source/xpdf/pdftotext.cc +333 -0
- data/pdf2json-0.52-source/xpdf/pdftotext.o +0 -0
- data/pdf2json-0.52-source/xpdf/print.xbm +6 -0
- data/pdf2json-0.52-source/xpdf/printDis.xbm +6 -0
- data/pdf2json-0.52-source/xpdf/rightArrow.xbm +5 -0
- data/pdf2json-0.52-source/xpdf/rightArrowDis.xbm +5 -0
- data/pdf2json-0.52-source/xpdf/vms_make.com +129 -0
- data/pdf2json-0.52-source/xpdf/xpdf.cc +344 -0
- data/pdf2json-0.52-source/xpdf/xpdfIcon.xpm +62 -0
- data/pdf2json.gemspec +29 -0
- metadata +518 -0
@@ -0,0 +1,95 @@
|
|
1
|
+
//========================================================================
|
2
|
+
//
|
3
|
+
// Decrypt.h
|
4
|
+
//
|
5
|
+
// Copyright 1996-2003 Glyph & Cog, LLC
|
6
|
+
//
|
7
|
+
//========================================================================
|
8
|
+
|
9
|
+
#ifndef DECRYPT_H
|
10
|
+
#define DECRYPT_H
|
11
|
+
|
12
|
+
#include <aconf.h>
|
13
|
+
|
14
|
+
#ifdef USE_GCC_PRAGMAS
|
15
|
+
#pragma interface
|
16
|
+
#endif
|
17
|
+
|
18
|
+
#include "gtypes.h"
|
19
|
+
#include "GString.h"
|
20
|
+
#include "Object.h"
|
21
|
+
#include "Stream.h"
|
22
|
+
|
23
|
+
//------------------------------------------------------------------------
|
24
|
+
// Decrypt
|
25
|
+
//------------------------------------------------------------------------
|
26
|
+
|
27
|
+
class Decrypt {
|
28
|
+
public:
|
29
|
+
|
30
|
+
// Generate a file key. The <fileKey> buffer must have space for at
|
31
|
+
// least 16 bytes. Checks <ownerPassword> and then <userPassword>
|
32
|
+
// and returns true if either is correct. Sets <ownerPasswordOk> if
|
33
|
+
// the owner password was correct. Either or both of the passwords
|
34
|
+
// may be NULL, which is treated as an empty string.
|
35
|
+
static GBool makeFileKey(int encVersion, int encRevision, int keyLength,
|
36
|
+
GString *ownerKey, GString *userKey,
|
37
|
+
int permissions, GString *fileID,
|
38
|
+
GString *ownerPassword, GString *userPassword,
|
39
|
+
Guchar *fileKey, GBool encryptMetadata,
|
40
|
+
GBool *ownerPasswordOk);
|
41
|
+
|
42
|
+
private:
|
43
|
+
|
44
|
+
static GBool makeFileKey2(int encVersion, int encRevision, int keyLength,
|
45
|
+
GString *ownerKey, GString *userKey,
|
46
|
+
int permissions, GString *fileID,
|
47
|
+
GString *userPassword, Guchar *fileKey,
|
48
|
+
GBool encryptMetadata);
|
49
|
+
};
|
50
|
+
|
51
|
+
//------------------------------------------------------------------------
|
52
|
+
// DecryptStream
|
53
|
+
//------------------------------------------------------------------------
|
54
|
+
|
55
|
+
struct DecryptRC4State {
|
56
|
+
Guchar state[256];
|
57
|
+
Guchar x, y;
|
58
|
+
int buf;
|
59
|
+
};
|
60
|
+
|
61
|
+
struct DecryptAESState {
|
62
|
+
Guint w[44];
|
63
|
+
Guchar state[16];
|
64
|
+
Guchar cbc[16];
|
65
|
+
Guchar buf[16];
|
66
|
+
int bufIdx;
|
67
|
+
};
|
68
|
+
|
69
|
+
class DecryptStream: public FilterStream {
|
70
|
+
public:
|
71
|
+
|
72
|
+
DecryptStream(Stream *strA, Guchar *fileKey,
|
73
|
+
CryptAlgorithm algoA, int keyLength,
|
74
|
+
int objNum, int objGen);
|
75
|
+
virtual ~DecryptStream();
|
76
|
+
virtual StreamKind getKind() { return strWeird; }
|
77
|
+
virtual void reset();
|
78
|
+
virtual int getChar();
|
79
|
+
virtual int lookChar();
|
80
|
+
virtual GBool isBinary(GBool last);
|
81
|
+
virtual Stream *getUndecodedStream() { return this; }
|
82
|
+
|
83
|
+
private:
|
84
|
+
|
85
|
+
CryptAlgorithm algo;
|
86
|
+
int objKeyLength;
|
87
|
+
Guchar objKey[16 + 9];
|
88
|
+
|
89
|
+
union {
|
90
|
+
DecryptRC4State rc4;
|
91
|
+
DecryptAESState aes;
|
92
|
+
} state;
|
93
|
+
};
|
94
|
+
|
95
|
+
#endif
|
Binary file
|
@@ -0,0 +1,95 @@
|
|
1
|
+
//========================================================================
|
2
|
+
//
|
3
|
+
// Dict.cc
|
4
|
+
//
|
5
|
+
// Copyright 1996-2003 Glyph & Cog, LLC
|
6
|
+
//
|
7
|
+
//========================================================================
|
8
|
+
|
9
|
+
#include <aconf.h>
|
10
|
+
|
11
|
+
#ifdef USE_GCC_PRAGMAS
|
12
|
+
#pragma implementation
|
13
|
+
#endif
|
14
|
+
|
15
|
+
#include <stddef.h>
|
16
|
+
#include <string.h>
|
17
|
+
#include "gmem.h"
|
18
|
+
#include "Object.h"
|
19
|
+
#include "XRef.h"
|
20
|
+
#include "Dict.h"
|
21
|
+
|
22
|
+
//------------------------------------------------------------------------
|
23
|
+
// Dict
|
24
|
+
//------------------------------------------------------------------------
|
25
|
+
|
26
|
+
Dict::Dict(XRef *xrefA) {
|
27
|
+
xref = xrefA;
|
28
|
+
entries = NULL;
|
29
|
+
size = length = 0;
|
30
|
+
ref = 1;
|
31
|
+
}
|
32
|
+
|
33
|
+
Dict::~Dict() {
|
34
|
+
int i;
|
35
|
+
|
36
|
+
for (i = 0; i < length; ++i) {
|
37
|
+
gfree(entries[i].key);
|
38
|
+
entries[i].val.free();
|
39
|
+
}
|
40
|
+
gfree(entries);
|
41
|
+
}
|
42
|
+
|
43
|
+
void Dict::add(char *key, Object *val) {
|
44
|
+
if (length == size) {
|
45
|
+
if (length == 0) {
|
46
|
+
size = 8;
|
47
|
+
} else {
|
48
|
+
size *= 2;
|
49
|
+
}
|
50
|
+
entries = (DictEntry *)greallocn(entries, size, sizeof(DictEntry));
|
51
|
+
}
|
52
|
+
entries[length].key = key;
|
53
|
+
entries[length].val = *val;
|
54
|
+
++length;
|
55
|
+
}
|
56
|
+
|
57
|
+
inline DictEntry *Dict::find(char *key) {
|
58
|
+
int i;
|
59
|
+
|
60
|
+
for (i = 0; i < length; ++i) {
|
61
|
+
if (!strcmp(key, entries[i].key))
|
62
|
+
return &entries[i];
|
63
|
+
}
|
64
|
+
return NULL;
|
65
|
+
}
|
66
|
+
|
67
|
+
GBool Dict::is(char *type) {
|
68
|
+
DictEntry *e;
|
69
|
+
|
70
|
+
return (e = find("Type")) && e->val.isName(type);
|
71
|
+
}
|
72
|
+
|
73
|
+
Object *Dict::lookup(char *key, Object *obj) {
|
74
|
+
DictEntry *e;
|
75
|
+
|
76
|
+
return (e = find(key)) ? e->val.fetch(xref, obj) : obj->initNull();
|
77
|
+
}
|
78
|
+
|
79
|
+
Object *Dict::lookupNF(char *key, Object *obj) {
|
80
|
+
DictEntry *e;
|
81
|
+
|
82
|
+
return (e = find(key)) ? e->val.copy(obj) : obj->initNull();
|
83
|
+
}
|
84
|
+
|
85
|
+
char *Dict::getKey(int i) {
|
86
|
+
return entries[i].key;
|
87
|
+
}
|
88
|
+
|
89
|
+
Object *Dict::getVal(int i, Object *obj) {
|
90
|
+
return entries[i].val.fetch(xref, obj);
|
91
|
+
}
|
92
|
+
|
93
|
+
Object *Dict::getValNF(int i, Object *obj) {
|
94
|
+
return entries[i].val.copy(obj);
|
95
|
+
}
|
@@ -0,0 +1,77 @@
|
|
1
|
+
//========================================================================
|
2
|
+
//
|
3
|
+
// Dict.h
|
4
|
+
//
|
5
|
+
// Copyright 1996-2003 Glyph & Cog, LLC
|
6
|
+
//
|
7
|
+
//========================================================================
|
8
|
+
|
9
|
+
#ifndef DICT_H
|
10
|
+
#define DICT_H
|
11
|
+
|
12
|
+
#include <aconf.h>
|
13
|
+
|
14
|
+
#ifdef USE_GCC_PRAGMAS
|
15
|
+
#pragma interface
|
16
|
+
#endif
|
17
|
+
|
18
|
+
#include "Object.h"
|
19
|
+
|
20
|
+
//------------------------------------------------------------------------
|
21
|
+
// Dict
|
22
|
+
//------------------------------------------------------------------------
|
23
|
+
|
24
|
+
struct DictEntry {
|
25
|
+
char *key;
|
26
|
+
Object val;
|
27
|
+
};
|
28
|
+
|
29
|
+
class Dict {
|
30
|
+
public:
|
31
|
+
|
32
|
+
// Constructor.
|
33
|
+
Dict(XRef *xrefA);
|
34
|
+
|
35
|
+
// Destructor.
|
36
|
+
~Dict();
|
37
|
+
|
38
|
+
// Reference counting.
|
39
|
+
int incRef() { return ++ref; }
|
40
|
+
int decRef() { return --ref; }
|
41
|
+
|
42
|
+
// Get number of entries.
|
43
|
+
int getLength() { return length; }
|
44
|
+
|
45
|
+
// Add an entry. NB: does not copy key.
|
46
|
+
void add(char *key, Object *val);
|
47
|
+
|
48
|
+
// Check if dictionary is of specified type.
|
49
|
+
GBool is(char *type);
|
50
|
+
|
51
|
+
// Look up an entry and return the value. Returns a null object
|
52
|
+
// if <key> is not in the dictionary.
|
53
|
+
Object *lookup(char *key, Object *obj);
|
54
|
+
Object *lookupNF(char *key, Object *obj);
|
55
|
+
|
56
|
+
// Iterative accessors.
|
57
|
+
char *getKey(int i);
|
58
|
+
Object *getVal(int i, Object *obj);
|
59
|
+
Object *getValNF(int i, Object *obj);
|
60
|
+
|
61
|
+
// Set the xref pointer. This is only used in one special case: the
|
62
|
+
// trailer dictionary, which is read before the xref table is
|
63
|
+
// parsed.
|
64
|
+
void setXRef(XRef *xrefA) { xref = xrefA; }
|
65
|
+
|
66
|
+
private:
|
67
|
+
|
68
|
+
XRef *xref; // the xref table for this PDF file
|
69
|
+
DictEntry *entries; // array of entries
|
70
|
+
int size; // size of <entries> array
|
71
|
+
int length; // number of entries in dictionary
|
72
|
+
int ref; // reference count
|
73
|
+
|
74
|
+
DictEntry *find(char *key);
|
75
|
+
};
|
76
|
+
|
77
|
+
#endif
|
Binary file
|
@@ -0,0 +1,38 @@
|
|
1
|
+
//========================================================================
|
2
|
+
//
|
3
|
+
// Error.cc
|
4
|
+
//
|
5
|
+
// Copyright 1996-2003 Glyph & Cog, LLC
|
6
|
+
//
|
7
|
+
//========================================================================
|
8
|
+
|
9
|
+
#include <aconf.h>
|
10
|
+
|
11
|
+
#ifdef USE_GCC_PRAGMAS
|
12
|
+
#pragma implementation
|
13
|
+
#endif
|
14
|
+
|
15
|
+
#include <stdio.h>
|
16
|
+
#include <stddef.h>
|
17
|
+
#include <stdarg.h>
|
18
|
+
#include "GlobalParams.h"
|
19
|
+
#include "Error.h"
|
20
|
+
|
21
|
+
void CDECL error(int pos, char *msg, ...) {
|
22
|
+
va_list args;
|
23
|
+
|
24
|
+
// NB: this can be called before the globalParams object is created
|
25
|
+
if (globalParams && globalParams->getErrQuiet()) {
|
26
|
+
return;
|
27
|
+
}
|
28
|
+
if (pos >= 0) {
|
29
|
+
fprintf(stderr, "Error (%d): ", pos);
|
30
|
+
} else {
|
31
|
+
fprintf(stderr, "Error: ");
|
32
|
+
}
|
33
|
+
va_start(args, msg);
|
34
|
+
vfprintf(stderr, msg, args);
|
35
|
+
va_end(args);
|
36
|
+
fprintf(stderr, "\n");
|
37
|
+
fflush(stderr);
|
38
|
+
}
|
@@ -0,0 +1,23 @@
|
|
1
|
+
//========================================================================
|
2
|
+
//
|
3
|
+
// Error.h
|
4
|
+
//
|
5
|
+
// Copyright 1996-2003 Glyph & Cog, LLC
|
6
|
+
//
|
7
|
+
//========================================================================
|
8
|
+
|
9
|
+
#ifndef ERROR_H
|
10
|
+
#define ERROR_H
|
11
|
+
|
12
|
+
#include <aconf.h>
|
13
|
+
|
14
|
+
#ifdef USE_GCC_PRAGMAS
|
15
|
+
#pragma interface
|
16
|
+
#endif
|
17
|
+
|
18
|
+
#include <stdio.h>
|
19
|
+
#include "config.h"
|
20
|
+
|
21
|
+
extern void CDECL error(int pos, char *msg, ...);
|
22
|
+
|
23
|
+
#endif
|
Binary file
|
@@ -0,0 +1,36 @@
|
|
1
|
+
//========================================================================
|
2
|
+
//
|
3
|
+
// ErrorCodes.h
|
4
|
+
//
|
5
|
+
// Copyright 2002-2003 Glyph & Cog, LLC
|
6
|
+
//
|
7
|
+
//========================================================================
|
8
|
+
|
9
|
+
#ifndef ERRORCODES_H
|
10
|
+
#define ERRORCODES_H
|
11
|
+
|
12
|
+
#define errNone 0 // no error
|
13
|
+
|
14
|
+
#define errOpenFile 1 // couldn't open the PDF file
|
15
|
+
|
16
|
+
#define errBadCatalog 2 // couldn't read the page catalog
|
17
|
+
|
18
|
+
#define errDamaged 3 // PDF file was damaged and couldn't be
|
19
|
+
// repaired
|
20
|
+
|
21
|
+
#define errEncrypted 4 // file was encrypted and password was
|
22
|
+
// incorrect or not supplied
|
23
|
+
|
24
|
+
#define errHighlightFile 5 // nonexistent or invalid highlight file
|
25
|
+
|
26
|
+
#define errBadPrinter 6 // invalid printer
|
27
|
+
|
28
|
+
#define errPrinting 7 // error during printing
|
29
|
+
|
30
|
+
#define errPermission 8 // PDF file doesn't allow that operation
|
31
|
+
|
32
|
+
#define errBadPageNum 9 // invalid page number
|
33
|
+
|
34
|
+
#define errFileIO 10 // file I/O error
|
35
|
+
|
36
|
+
#endif
|
@@ -0,0 +1,1824 @@
|
|
1
|
+
//========================================================================
|
2
|
+
//
|
3
|
+
// FontEncodingTables.cc
|
4
|
+
//
|
5
|
+
// Copyright 2001-2003 Glyph & Cog, LLC
|
6
|
+
//
|
7
|
+
//========================================================================
|
8
|
+
|
9
|
+
#include <aconf.h>
|
10
|
+
#include <stdlib.h>
|
11
|
+
#include "FontEncodingTables.h"
|
12
|
+
|
13
|
+
char *macRomanEncoding[256] = {
|
14
|
+
NULL,
|
15
|
+
NULL,
|
16
|
+
NULL,
|
17
|
+
NULL,
|
18
|
+
NULL,
|
19
|
+
NULL,
|
20
|
+
NULL,
|
21
|
+
NULL,
|
22
|
+
NULL,
|
23
|
+
NULL,
|
24
|
+
NULL,
|
25
|
+
NULL,
|
26
|
+
NULL,
|
27
|
+
NULL,
|
28
|
+
NULL,
|
29
|
+
NULL,
|
30
|
+
NULL,
|
31
|
+
NULL,
|
32
|
+
NULL,
|
33
|
+
NULL,
|
34
|
+
NULL,
|
35
|
+
NULL,
|
36
|
+
NULL,
|
37
|
+
NULL,
|
38
|
+
NULL,
|
39
|
+
NULL,
|
40
|
+
NULL,
|
41
|
+
NULL,
|
42
|
+
NULL,
|
43
|
+
NULL,
|
44
|
+
NULL,
|
45
|
+
NULL,
|
46
|
+
"space",
|
47
|
+
"exclam",
|
48
|
+
"quotedbl",
|
49
|
+
"numbersign",
|
50
|
+
"dollar",
|
51
|
+
"percent",
|
52
|
+
"ampersand",
|
53
|
+
"quotesingle",
|
54
|
+
"parenleft",
|
55
|
+
"parenright",
|
56
|
+
"asterisk",
|
57
|
+
"plus",
|
58
|
+
"comma",
|
59
|
+
"hyphen",
|
60
|
+
"period",
|
61
|
+
"slash",
|
62
|
+
"zero",
|
63
|
+
"one",
|
64
|
+
"two",
|
65
|
+
"three",
|
66
|
+
"four",
|
67
|
+
"five",
|
68
|
+
"six",
|
69
|
+
"seven",
|
70
|
+
"eight",
|
71
|
+
"nine",
|
72
|
+
"colon",
|
73
|
+
"semicolon",
|
74
|
+
"less",
|
75
|
+
"equal",
|
76
|
+
"greater",
|
77
|
+
"question",
|
78
|
+
"at",
|
79
|
+
"A",
|
80
|
+
"B",
|
81
|
+
"C",
|
82
|
+
"D",
|
83
|
+
"E",
|
84
|
+
"F",
|
85
|
+
"G",
|
86
|
+
"H",
|
87
|
+
"I",
|
88
|
+
"J",
|
89
|
+
"K",
|
90
|
+
"L",
|
91
|
+
"M",
|
92
|
+
"N",
|
93
|
+
"O",
|
94
|
+
"P",
|
95
|
+
"Q",
|
96
|
+
"R",
|
97
|
+
"S",
|
98
|
+
"T",
|
99
|
+
"U",
|
100
|
+
"V",
|
101
|
+
"W",
|
102
|
+
"X",
|
103
|
+
"Y",
|
104
|
+
"Z",
|
105
|
+
"bracketleft",
|
106
|
+
"backslash",
|
107
|
+
"bracketright",
|
108
|
+
"asciicircum",
|
109
|
+
"underscore",
|
110
|
+
"grave",
|
111
|
+
"a",
|
112
|
+
"b",
|
113
|
+
"c",
|
114
|
+
"d",
|
115
|
+
"e",
|
116
|
+
"f",
|
117
|
+
"g",
|
118
|
+
"h",
|
119
|
+
"i",
|
120
|
+
"j",
|
121
|
+
"k",
|
122
|
+
"l",
|
123
|
+
"m",
|
124
|
+
"n",
|
125
|
+
"o",
|
126
|
+
"p",
|
127
|
+
"q",
|
128
|
+
"r",
|
129
|
+
"s",
|
130
|
+
"t",
|
131
|
+
"u",
|
132
|
+
"v",
|
133
|
+
"w",
|
134
|
+
"x",
|
135
|
+
"y",
|
136
|
+
"z",
|
137
|
+
"braceleft",
|
138
|
+
"bar",
|
139
|
+
"braceright",
|
140
|
+
"asciitilde",
|
141
|
+
NULL,
|
142
|
+
"Adieresis",
|
143
|
+
"Aring",
|
144
|
+
"Ccedilla",
|
145
|
+
"Eacute",
|
146
|
+
"Ntilde",
|
147
|
+
"Odieresis",
|
148
|
+
"Udieresis",
|
149
|
+
"aacute",
|
150
|
+
"agrave",
|
151
|
+
"acircumflex",
|
152
|
+
"adieresis",
|
153
|
+
"atilde",
|
154
|
+
"aring",
|
155
|
+
"ccedilla",
|
156
|
+
"eacute",
|
157
|
+
"egrave",
|
158
|
+
"ecircumflex",
|
159
|
+
"edieresis",
|
160
|
+
"iacute",
|
161
|
+
"igrave",
|
162
|
+
"icircumflex",
|
163
|
+
"idieresis",
|
164
|
+
"ntilde",
|
165
|
+
"oacute",
|
166
|
+
"ograve",
|
167
|
+
"ocircumflex",
|
168
|
+
"odieresis",
|
169
|
+
"otilde",
|
170
|
+
"uacute",
|
171
|
+
"ugrave",
|
172
|
+
"ucircumflex",
|
173
|
+
"udieresis",
|
174
|
+
"dagger",
|
175
|
+
"degree",
|
176
|
+
"cent",
|
177
|
+
"sterling",
|
178
|
+
"section",
|
179
|
+
"bullet",
|
180
|
+
"paragraph",
|
181
|
+
"germandbls",
|
182
|
+
"registered",
|
183
|
+
"copyright",
|
184
|
+
"trademark",
|
185
|
+
"acute",
|
186
|
+
"dieresis",
|
187
|
+
"notequal",
|
188
|
+
"AE",
|
189
|
+
"Oslash",
|
190
|
+
"infinity",
|
191
|
+
"plusminus",
|
192
|
+
"lessequal",
|
193
|
+
"greaterequal",
|
194
|
+
"yen",
|
195
|
+
"mu",
|
196
|
+
"partialdiff",
|
197
|
+
"summation",
|
198
|
+
"product",
|
199
|
+
"pi",
|
200
|
+
"integral",
|
201
|
+
"ordfeminine",
|
202
|
+
"ordmasculine",
|
203
|
+
"Omega",
|
204
|
+
"ae",
|
205
|
+
"oslash",
|
206
|
+
"questiondown",
|
207
|
+
"exclamdown",
|
208
|
+
"logicalnot",
|
209
|
+
"radical",
|
210
|
+
"florin",
|
211
|
+
"approxequal",
|
212
|
+
"Delta",
|
213
|
+
"guillemotleft",
|
214
|
+
"guillemotright",
|
215
|
+
"ellipsis",
|
216
|
+
"space",
|
217
|
+
"Agrave",
|
218
|
+
"Atilde",
|
219
|
+
"Otilde",
|
220
|
+
"OE",
|
221
|
+
"oe",
|
222
|
+
"endash",
|
223
|
+
"emdash",
|
224
|
+
"quotedblleft",
|
225
|
+
"quotedblright",
|
226
|
+
"quoteleft",
|
227
|
+
"quoteright",
|
228
|
+
"divide",
|
229
|
+
"lozenge",
|
230
|
+
"ydieresis",
|
231
|
+
"Ydieresis",
|
232
|
+
"fraction",
|
233
|
+
"currency",
|
234
|
+
"guilsinglleft",
|
235
|
+
"guilsinglright",
|
236
|
+
"fi",
|
237
|
+
"fl",
|
238
|
+
"daggerdbl",
|
239
|
+
"periodcentered",
|
240
|
+
"quotesinglbase",
|
241
|
+
"quotedblbase",
|
242
|
+
"perthousand",
|
243
|
+
"Acircumflex",
|
244
|
+
"Ecircumflex",
|
245
|
+
"Aacute",
|
246
|
+
"Edieresis",
|
247
|
+
"Egrave",
|
248
|
+
"Iacute",
|
249
|
+
"Icircumflex",
|
250
|
+
"Idieresis",
|
251
|
+
"Igrave",
|
252
|
+
"Oacute",
|
253
|
+
"Ocircumflex",
|
254
|
+
"apple",
|
255
|
+
"Ograve",
|
256
|
+
"Uacute",
|
257
|
+
"Ucircumflex",
|
258
|
+
"Ugrave",
|
259
|
+
"dotlessi",
|
260
|
+
"circumflex",
|
261
|
+
"tilde",
|
262
|
+
"macron",
|
263
|
+
"breve",
|
264
|
+
"dotaccent",
|
265
|
+
"ring",
|
266
|
+
"cedilla",
|
267
|
+
"hungarumlaut",
|
268
|
+
"ogonek",
|
269
|
+
"caron"
|
270
|
+
};
|
271
|
+
|
272
|
+
char *macExpertEncoding[256] = {
|
273
|
+
NULL,
|
274
|
+
NULL,
|
275
|
+
NULL,
|
276
|
+
NULL,
|
277
|
+
NULL,
|
278
|
+
NULL,
|
279
|
+
NULL,
|
280
|
+
NULL,
|
281
|
+
NULL,
|
282
|
+
NULL,
|
283
|
+
NULL,
|
284
|
+
NULL,
|
285
|
+
NULL,
|
286
|
+
NULL,
|
287
|
+
NULL,
|
288
|
+
NULL,
|
289
|
+
NULL,
|
290
|
+
NULL,
|
291
|
+
NULL,
|
292
|
+
NULL,
|
293
|
+
NULL,
|
294
|
+
NULL,
|
295
|
+
NULL,
|
296
|
+
NULL,
|
297
|
+
NULL,
|
298
|
+
NULL,
|
299
|
+
NULL,
|
300
|
+
NULL,
|
301
|
+
NULL,
|
302
|
+
NULL,
|
303
|
+
NULL,
|
304
|
+
NULL,
|
305
|
+
"space",
|
306
|
+
"exclamsmall",
|
307
|
+
"Hungarumlautsmall",
|
308
|
+
"centoldstyle",
|
309
|
+
"dollaroldstyle",
|
310
|
+
"dollarsuperior",
|
311
|
+
"ampersandsmall",
|
312
|
+
"Acutesmall",
|
313
|
+
"parenleftsuperior",
|
314
|
+
"parenrightsuperior",
|
315
|
+
"twodotenleader",
|
316
|
+
"onedotenleader",
|
317
|
+
"comma",
|
318
|
+
"hyphen",
|
319
|
+
"period",
|
320
|
+
"fraction",
|
321
|
+
"zerooldstyle",
|
322
|
+
"oneoldstyle",
|
323
|
+
"twooldstyle",
|
324
|
+
"threeoldstyle",
|
325
|
+
"fouroldstyle",
|
326
|
+
"fiveoldstyle",
|
327
|
+
"sixoldstyle",
|
328
|
+
"sevenoldstyle",
|
329
|
+
"eightoldstyle",
|
330
|
+
"nineoldstyle",
|
331
|
+
"colon",
|
332
|
+
"semicolon",
|
333
|
+
NULL,
|
334
|
+
"threequartersemdash",
|
335
|
+
NULL,
|
336
|
+
"questionsmall",
|
337
|
+
NULL,
|
338
|
+
NULL,
|
339
|
+
NULL,
|
340
|
+
NULL,
|
341
|
+
"Ethsmall",
|
342
|
+
NULL,
|
343
|
+
NULL,
|
344
|
+
"onequarter",
|
345
|
+
"onehalf",
|
346
|
+
"threequarters",
|
347
|
+
"oneeighth",
|
348
|
+
"threeeighths",
|
349
|
+
"fiveeighths",
|
350
|
+
"seveneighths",
|
351
|
+
"onethird",
|
352
|
+
"twothirds",
|
353
|
+
NULL,
|
354
|
+
NULL,
|
355
|
+
NULL,
|
356
|
+
NULL,
|
357
|
+
NULL,
|
358
|
+
NULL,
|
359
|
+
"ff",
|
360
|
+
"fi",
|
361
|
+
"fl",
|
362
|
+
"ffi",
|
363
|
+
"ffl",
|
364
|
+
"parenleftinferior",
|
365
|
+
NULL,
|
366
|
+
"parenrightinferior",
|
367
|
+
"Circumflexsmall",
|
368
|
+
"hypheninferior",
|
369
|
+
"Gravesmall",
|
370
|
+
"Asmall",
|
371
|
+
"Bsmall",
|
372
|
+
"Csmall",
|
373
|
+
"Dsmall",
|
374
|
+
"Esmall",
|
375
|
+
"Fsmall",
|
376
|
+
"Gsmall",
|
377
|
+
"Hsmall",
|
378
|
+
"Ismall",
|
379
|
+
"Jsmall",
|
380
|
+
"Ksmall",
|
381
|
+
"Lsmall",
|
382
|
+
"Msmall",
|
383
|
+
"Nsmall",
|
384
|
+
"Osmall",
|
385
|
+
"Psmall",
|
386
|
+
"Qsmall",
|
387
|
+
"Rsmall",
|
388
|
+
"Ssmall",
|
389
|
+
"Tsmall",
|
390
|
+
"Usmall",
|
391
|
+
"Vsmall",
|
392
|
+
"Wsmall",
|
393
|
+
"Xsmall",
|
394
|
+
"Ysmall",
|
395
|
+
"Zsmall",
|
396
|
+
"colonmonetary",
|
397
|
+
"onefitted",
|
398
|
+
"rupiah",
|
399
|
+
"Tildesmall",
|
400
|
+
NULL,
|
401
|
+
NULL,
|
402
|
+
"asuperior",
|
403
|
+
"centsuperior",
|
404
|
+
NULL,
|
405
|
+
NULL,
|
406
|
+
NULL,
|
407
|
+
NULL,
|
408
|
+
"Aacutesmall",
|
409
|
+
"Agravesmall",
|
410
|
+
"Acircumflexsmall",
|
411
|
+
"Adieresissmall",
|
412
|
+
"Atildesmall",
|
413
|
+
"Aringsmall",
|
414
|
+
"Ccedillasmall",
|
415
|
+
"Eacutesmall",
|
416
|
+
"Egravesmall",
|
417
|
+
"Ecircumflexsmall",
|
418
|
+
"Edieresissmall",
|
419
|
+
"Iacutesmall",
|
420
|
+
"Igravesmall",
|
421
|
+
"Icircumflexsmall",
|
422
|
+
"Idieresissmall",
|
423
|
+
"Ntildesmall",
|
424
|
+
"Oacutesmall",
|
425
|
+
"Ogravesmall",
|
426
|
+
"Ocircumflexsmall",
|
427
|
+
"Odieresissmall",
|
428
|
+
"Otildesmall",
|
429
|
+
"Uacutesmall",
|
430
|
+
"Ugravesmall",
|
431
|
+
"Ucircumflexsmall",
|
432
|
+
"Udieresissmall",
|
433
|
+
NULL,
|
434
|
+
"eightsuperior",
|
435
|
+
"fourinferior",
|
436
|
+
"threeinferior",
|
437
|
+
"sixinferior",
|
438
|
+
"eightinferior",
|
439
|
+
"seveninferior",
|
440
|
+
"Scaronsmall",
|
441
|
+
NULL,
|
442
|
+
"centinferior",
|
443
|
+
"twoinferior",
|
444
|
+
NULL,
|
445
|
+
"Dieresissmall",
|
446
|
+
NULL,
|
447
|
+
"Caronsmall",
|
448
|
+
"osuperior",
|
449
|
+
"fiveinferior",
|
450
|
+
NULL,
|
451
|
+
"commainferior",
|
452
|
+
"periodinferior",
|
453
|
+
"Yacutesmall",
|
454
|
+
NULL,
|
455
|
+
"dollarinferior",
|
456
|
+
NULL,
|
457
|
+
NULL,
|
458
|
+
"Thornsmall",
|
459
|
+
NULL,
|
460
|
+
"nineinferior",
|
461
|
+
"zeroinferior",
|
462
|
+
"Zcaronsmall",
|
463
|
+
"AEsmall",
|
464
|
+
"Oslashsmall",
|
465
|
+
"questiondownsmall",
|
466
|
+
"oneinferior",
|
467
|
+
"Lslashsmall",
|
468
|
+
NULL,
|
469
|
+
NULL,
|
470
|
+
NULL,
|
471
|
+
NULL,
|
472
|
+
NULL,
|
473
|
+
NULL,
|
474
|
+
"Cedillasmall",
|
475
|
+
NULL,
|
476
|
+
NULL,
|
477
|
+
NULL,
|
478
|
+
NULL,
|
479
|
+
NULL,
|
480
|
+
"OEsmall",
|
481
|
+
"figuredash",
|
482
|
+
"hyphensuperior",
|
483
|
+
NULL,
|
484
|
+
NULL,
|
485
|
+
NULL,
|
486
|
+
NULL,
|
487
|
+
"exclamdownsmall",
|
488
|
+
NULL,
|
489
|
+
"Ydieresissmall",
|
490
|
+
NULL,
|
491
|
+
"onesuperior",
|
492
|
+
"twosuperior",
|
493
|
+
"threesuperior",
|
494
|
+
"foursuperior",
|
495
|
+
"fivesuperior",
|
496
|
+
"sixsuperior",
|
497
|
+
"sevensuperior",
|
498
|
+
"ninesuperior",
|
499
|
+
"zerosuperior",
|
500
|
+
NULL,
|
501
|
+
"esuperior",
|
502
|
+
"rsuperior",
|
503
|
+
"tsuperior",
|
504
|
+
NULL,
|
505
|
+
NULL,
|
506
|
+
"isuperior",
|
507
|
+
"ssuperior",
|
508
|
+
"dsuperior",
|
509
|
+
NULL,
|
510
|
+
NULL,
|
511
|
+
NULL,
|
512
|
+
NULL,
|
513
|
+
NULL,
|
514
|
+
"lsuperior",
|
515
|
+
"Ogoneksmall",
|
516
|
+
"Brevesmall",
|
517
|
+
"Macronsmall",
|
518
|
+
"bsuperior",
|
519
|
+
"nsuperior",
|
520
|
+
"msuperior",
|
521
|
+
"commasuperior",
|
522
|
+
"periodsuperior",
|
523
|
+
"Dotaccentsmall",
|
524
|
+
"Ringsmall",
|
525
|
+
NULL,
|
526
|
+
NULL,
|
527
|
+
NULL,
|
528
|
+
NULL
|
529
|
+
};
|
530
|
+
|
531
|
+
char *winAnsiEncoding[256] = {
|
532
|
+
NULL,
|
533
|
+
NULL,
|
534
|
+
NULL,
|
535
|
+
NULL,
|
536
|
+
NULL,
|
537
|
+
NULL,
|
538
|
+
NULL,
|
539
|
+
NULL,
|
540
|
+
NULL,
|
541
|
+
NULL,
|
542
|
+
NULL,
|
543
|
+
NULL,
|
544
|
+
NULL,
|
545
|
+
NULL,
|
546
|
+
NULL,
|
547
|
+
NULL,
|
548
|
+
NULL,
|
549
|
+
NULL,
|
550
|
+
NULL,
|
551
|
+
NULL,
|
552
|
+
NULL,
|
553
|
+
NULL,
|
554
|
+
NULL,
|
555
|
+
NULL,
|
556
|
+
NULL,
|
557
|
+
NULL,
|
558
|
+
NULL,
|
559
|
+
NULL,
|
560
|
+
NULL,
|
561
|
+
NULL,
|
562
|
+
NULL,
|
563
|
+
NULL,
|
564
|
+
"space",
|
565
|
+
"exclam",
|
566
|
+
"quotedbl",
|
567
|
+
"numbersign",
|
568
|
+
"dollar",
|
569
|
+
"percent",
|
570
|
+
"ampersand",
|
571
|
+
"quotesingle",
|
572
|
+
"parenleft",
|
573
|
+
"parenright",
|
574
|
+
"asterisk",
|
575
|
+
"plus",
|
576
|
+
"comma",
|
577
|
+
"hyphen",
|
578
|
+
"period",
|
579
|
+
"slash",
|
580
|
+
"zero",
|
581
|
+
"one",
|
582
|
+
"two",
|
583
|
+
"three",
|
584
|
+
"four",
|
585
|
+
"five",
|
586
|
+
"six",
|
587
|
+
"seven",
|
588
|
+
"eight",
|
589
|
+
"nine",
|
590
|
+
"colon",
|
591
|
+
"semicolon",
|
592
|
+
"less",
|
593
|
+
"equal",
|
594
|
+
"greater",
|
595
|
+
"question",
|
596
|
+
"at",
|
597
|
+
"A",
|
598
|
+
"B",
|
599
|
+
"C",
|
600
|
+
"D",
|
601
|
+
"E",
|
602
|
+
"F",
|
603
|
+
"G",
|
604
|
+
"H",
|
605
|
+
"I",
|
606
|
+
"J",
|
607
|
+
"K",
|
608
|
+
"L",
|
609
|
+
"M",
|
610
|
+
"N",
|
611
|
+
"O",
|
612
|
+
"P",
|
613
|
+
"Q",
|
614
|
+
"R",
|
615
|
+
"S",
|
616
|
+
"T",
|
617
|
+
"U",
|
618
|
+
"V",
|
619
|
+
"W",
|
620
|
+
"X",
|
621
|
+
"Y",
|
622
|
+
"Z",
|
623
|
+
"bracketleft",
|
624
|
+
"backslash",
|
625
|
+
"bracketright",
|
626
|
+
"asciicircum",
|
627
|
+
"underscore",
|
628
|
+
"grave",
|
629
|
+
"a",
|
630
|
+
"b",
|
631
|
+
"c",
|
632
|
+
"d",
|
633
|
+
"e",
|
634
|
+
"f",
|
635
|
+
"g",
|
636
|
+
"h",
|
637
|
+
"i",
|
638
|
+
"j",
|
639
|
+
"k",
|
640
|
+
"l",
|
641
|
+
"m",
|
642
|
+
"n",
|
643
|
+
"o",
|
644
|
+
"p",
|
645
|
+
"q",
|
646
|
+
"r",
|
647
|
+
"s",
|
648
|
+
"t",
|
649
|
+
"u",
|
650
|
+
"v",
|
651
|
+
"w",
|
652
|
+
"x",
|
653
|
+
"y",
|
654
|
+
"z",
|
655
|
+
"braceleft",
|
656
|
+
"bar",
|
657
|
+
"braceright",
|
658
|
+
"asciitilde",
|
659
|
+
"bullet",
|
660
|
+
"Euro",
|
661
|
+
"bullet",
|
662
|
+
"quotesinglbase",
|
663
|
+
"florin",
|
664
|
+
"quotedblbase",
|
665
|
+
"ellipsis",
|
666
|
+
"dagger",
|
667
|
+
"daggerdbl",
|
668
|
+
"circumflex",
|
669
|
+
"perthousand",
|
670
|
+
"Scaron",
|
671
|
+
"guilsinglleft",
|
672
|
+
"OE",
|
673
|
+
"bullet",
|
674
|
+
"Zcaron",
|
675
|
+
"bullet",
|
676
|
+
"bullet",
|
677
|
+
"quoteleft",
|
678
|
+
"quoteright",
|
679
|
+
"quotedblleft",
|
680
|
+
"quotedblright",
|
681
|
+
"bullet",
|
682
|
+
"endash",
|
683
|
+
"emdash",
|
684
|
+
"tilde",
|
685
|
+
"trademark",
|
686
|
+
"scaron",
|
687
|
+
"guilsinglright",
|
688
|
+
"oe",
|
689
|
+
"bullet",
|
690
|
+
"zcaron",
|
691
|
+
"Ydieresis",
|
692
|
+
"space",
|
693
|
+
"exclamdown",
|
694
|
+
"cent",
|
695
|
+
"sterling",
|
696
|
+
"currency",
|
697
|
+
"yen",
|
698
|
+
"brokenbar",
|
699
|
+
"section",
|
700
|
+
"dieresis",
|
701
|
+
"copyright",
|
702
|
+
"ordfeminine",
|
703
|
+
"guillemotleft",
|
704
|
+
"logicalnot",
|
705
|
+
"hyphen",
|
706
|
+
"registered",
|
707
|
+
"macron",
|
708
|
+
"degree",
|
709
|
+
"plusminus",
|
710
|
+
"twosuperior",
|
711
|
+
"threesuperior",
|
712
|
+
"acute",
|
713
|
+
"mu",
|
714
|
+
"paragraph",
|
715
|
+
"periodcentered",
|
716
|
+
"cedilla",
|
717
|
+
"onesuperior",
|
718
|
+
"ordmasculine",
|
719
|
+
"guillemotright",
|
720
|
+
"onequarter",
|
721
|
+
"onehalf",
|
722
|
+
"threequarters",
|
723
|
+
"questiondown",
|
724
|
+
"Agrave",
|
725
|
+
"Aacute",
|
726
|
+
"Acircumflex",
|
727
|
+
"Atilde",
|
728
|
+
"Adieresis",
|
729
|
+
"Aring",
|
730
|
+
"AE",
|
731
|
+
"Ccedilla",
|
732
|
+
"Egrave",
|
733
|
+
"Eacute",
|
734
|
+
"Ecircumflex",
|
735
|
+
"Edieresis",
|
736
|
+
"Igrave",
|
737
|
+
"Iacute",
|
738
|
+
"Icircumflex",
|
739
|
+
"Idieresis",
|
740
|
+
"Eth",
|
741
|
+
"Ntilde",
|
742
|
+
"Ograve",
|
743
|
+
"Oacute",
|
744
|
+
"Ocircumflex",
|
745
|
+
"Otilde",
|
746
|
+
"Odieresis",
|
747
|
+
"multiply",
|
748
|
+
"Oslash",
|
749
|
+
"Ugrave",
|
750
|
+
"Uacute",
|
751
|
+
"Ucircumflex",
|
752
|
+
"Udieresis",
|
753
|
+
"Yacute",
|
754
|
+
"Thorn",
|
755
|
+
"germandbls",
|
756
|
+
"agrave",
|
757
|
+
"aacute",
|
758
|
+
"acircumflex",
|
759
|
+
"atilde",
|
760
|
+
"adieresis",
|
761
|
+
"aring",
|
762
|
+
"ae",
|
763
|
+
"ccedilla",
|
764
|
+
"egrave",
|
765
|
+
"eacute",
|
766
|
+
"ecircumflex",
|
767
|
+
"edieresis",
|
768
|
+
"igrave",
|
769
|
+
"iacute",
|
770
|
+
"icircumflex",
|
771
|
+
"idieresis",
|
772
|
+
"eth",
|
773
|
+
"ntilde",
|
774
|
+
"ograve",
|
775
|
+
"oacute",
|
776
|
+
"ocircumflex",
|
777
|
+
"otilde",
|
778
|
+
"odieresis",
|
779
|
+
"divide",
|
780
|
+
"oslash",
|
781
|
+
"ugrave",
|
782
|
+
"uacute",
|
783
|
+
"ucircumflex",
|
784
|
+
"udieresis",
|
785
|
+
"yacute",
|
786
|
+
"thorn",
|
787
|
+
"ydieresis"
|
788
|
+
};
|
789
|
+
|
790
|
+
char *standardEncoding[256] = {
|
791
|
+
NULL,
|
792
|
+
NULL,
|
793
|
+
NULL,
|
794
|
+
NULL,
|
795
|
+
NULL,
|
796
|
+
NULL,
|
797
|
+
NULL,
|
798
|
+
NULL,
|
799
|
+
NULL,
|
800
|
+
NULL,
|
801
|
+
NULL,
|
802
|
+
NULL,
|
803
|
+
NULL,
|
804
|
+
NULL,
|
805
|
+
NULL,
|
806
|
+
NULL,
|
807
|
+
NULL,
|
808
|
+
NULL,
|
809
|
+
NULL,
|
810
|
+
NULL,
|
811
|
+
NULL,
|
812
|
+
NULL,
|
813
|
+
NULL,
|
814
|
+
NULL,
|
815
|
+
NULL,
|
816
|
+
NULL,
|
817
|
+
NULL,
|
818
|
+
NULL,
|
819
|
+
NULL,
|
820
|
+
NULL,
|
821
|
+
NULL,
|
822
|
+
NULL,
|
823
|
+
"space",
|
824
|
+
"exclam",
|
825
|
+
"quotedbl",
|
826
|
+
"numbersign",
|
827
|
+
"dollar",
|
828
|
+
"percent",
|
829
|
+
"ampersand",
|
830
|
+
"quoteright",
|
831
|
+
"parenleft",
|
832
|
+
"parenright",
|
833
|
+
"asterisk",
|
834
|
+
"plus",
|
835
|
+
"comma",
|
836
|
+
"hyphen",
|
837
|
+
"period",
|
838
|
+
"slash",
|
839
|
+
"zero",
|
840
|
+
"one",
|
841
|
+
"two",
|
842
|
+
"three",
|
843
|
+
"four",
|
844
|
+
"five",
|
845
|
+
"six",
|
846
|
+
"seven",
|
847
|
+
"eight",
|
848
|
+
"nine",
|
849
|
+
"colon",
|
850
|
+
"semicolon",
|
851
|
+
"less",
|
852
|
+
"equal",
|
853
|
+
"greater",
|
854
|
+
"question",
|
855
|
+
"at",
|
856
|
+
"A",
|
857
|
+
"B",
|
858
|
+
"C",
|
859
|
+
"D",
|
860
|
+
"E",
|
861
|
+
"F",
|
862
|
+
"G",
|
863
|
+
"H",
|
864
|
+
"I",
|
865
|
+
"J",
|
866
|
+
"K",
|
867
|
+
"L",
|
868
|
+
"M",
|
869
|
+
"N",
|
870
|
+
"O",
|
871
|
+
"P",
|
872
|
+
"Q",
|
873
|
+
"R",
|
874
|
+
"S",
|
875
|
+
"T",
|
876
|
+
"U",
|
877
|
+
"V",
|
878
|
+
"W",
|
879
|
+
"X",
|
880
|
+
"Y",
|
881
|
+
"Z",
|
882
|
+
"bracketleft",
|
883
|
+
"backslash",
|
884
|
+
"bracketright",
|
885
|
+
"asciicircum",
|
886
|
+
"underscore",
|
887
|
+
"quoteleft",
|
888
|
+
"a",
|
889
|
+
"b",
|
890
|
+
"c",
|
891
|
+
"d",
|
892
|
+
"e",
|
893
|
+
"f",
|
894
|
+
"g",
|
895
|
+
"h",
|
896
|
+
"i",
|
897
|
+
"j",
|
898
|
+
"k",
|
899
|
+
"l",
|
900
|
+
"m",
|
901
|
+
"n",
|
902
|
+
"o",
|
903
|
+
"p",
|
904
|
+
"q",
|
905
|
+
"r",
|
906
|
+
"s",
|
907
|
+
"t",
|
908
|
+
"u",
|
909
|
+
"v",
|
910
|
+
"w",
|
911
|
+
"x",
|
912
|
+
"y",
|
913
|
+
"z",
|
914
|
+
"braceleft",
|
915
|
+
"bar",
|
916
|
+
"braceright",
|
917
|
+
"asciitilde",
|
918
|
+
NULL,
|
919
|
+
NULL,
|
920
|
+
NULL,
|
921
|
+
NULL,
|
922
|
+
NULL,
|
923
|
+
NULL,
|
924
|
+
NULL,
|
925
|
+
NULL,
|
926
|
+
NULL,
|
927
|
+
NULL,
|
928
|
+
NULL,
|
929
|
+
NULL,
|
930
|
+
NULL,
|
931
|
+
NULL,
|
932
|
+
NULL,
|
933
|
+
NULL,
|
934
|
+
NULL,
|
935
|
+
NULL,
|
936
|
+
NULL,
|
937
|
+
NULL,
|
938
|
+
NULL,
|
939
|
+
NULL,
|
940
|
+
NULL,
|
941
|
+
NULL,
|
942
|
+
NULL,
|
943
|
+
NULL,
|
944
|
+
NULL,
|
945
|
+
NULL,
|
946
|
+
NULL,
|
947
|
+
NULL,
|
948
|
+
NULL,
|
949
|
+
NULL,
|
950
|
+
NULL,
|
951
|
+
NULL,
|
952
|
+
"exclamdown",
|
953
|
+
"cent",
|
954
|
+
"sterling",
|
955
|
+
"fraction",
|
956
|
+
"yen",
|
957
|
+
"florin",
|
958
|
+
"section",
|
959
|
+
"currency",
|
960
|
+
"quotesingle",
|
961
|
+
"quotedblleft",
|
962
|
+
"guillemotleft",
|
963
|
+
"guilsinglleft",
|
964
|
+
"guilsinglright",
|
965
|
+
"fi",
|
966
|
+
"fl",
|
967
|
+
NULL,
|
968
|
+
"endash",
|
969
|
+
"dagger",
|
970
|
+
"daggerdbl",
|
971
|
+
"periodcentered",
|
972
|
+
NULL,
|
973
|
+
"paragraph",
|
974
|
+
"bullet",
|
975
|
+
"quotesinglbase",
|
976
|
+
"quotedblbase",
|
977
|
+
"quotedblright",
|
978
|
+
"guillemotright",
|
979
|
+
"ellipsis",
|
980
|
+
"perthousand",
|
981
|
+
NULL,
|
982
|
+
"questiondown",
|
983
|
+
NULL,
|
984
|
+
"grave",
|
985
|
+
"acute",
|
986
|
+
"circumflex",
|
987
|
+
"tilde",
|
988
|
+
"macron",
|
989
|
+
"breve",
|
990
|
+
"dotaccent",
|
991
|
+
"dieresis",
|
992
|
+
NULL,
|
993
|
+
"ring",
|
994
|
+
"cedilla",
|
995
|
+
NULL,
|
996
|
+
"hungarumlaut",
|
997
|
+
"ogonek",
|
998
|
+
"caron",
|
999
|
+
"emdash",
|
1000
|
+
NULL,
|
1001
|
+
NULL,
|
1002
|
+
NULL,
|
1003
|
+
NULL,
|
1004
|
+
NULL,
|
1005
|
+
NULL,
|
1006
|
+
NULL,
|
1007
|
+
NULL,
|
1008
|
+
NULL,
|
1009
|
+
NULL,
|
1010
|
+
NULL,
|
1011
|
+
NULL,
|
1012
|
+
NULL,
|
1013
|
+
NULL,
|
1014
|
+
NULL,
|
1015
|
+
NULL,
|
1016
|
+
"AE",
|
1017
|
+
NULL,
|
1018
|
+
"ordfeminine",
|
1019
|
+
NULL,
|
1020
|
+
NULL,
|
1021
|
+
NULL,
|
1022
|
+
NULL,
|
1023
|
+
"Lslash",
|
1024
|
+
"Oslash",
|
1025
|
+
"OE",
|
1026
|
+
"ordmasculine",
|
1027
|
+
NULL,
|
1028
|
+
NULL,
|
1029
|
+
NULL,
|
1030
|
+
NULL,
|
1031
|
+
NULL,
|
1032
|
+
"ae",
|
1033
|
+
NULL,
|
1034
|
+
NULL,
|
1035
|
+
NULL,
|
1036
|
+
"dotlessi",
|
1037
|
+
NULL,
|
1038
|
+
NULL,
|
1039
|
+
"lslash",
|
1040
|
+
"oslash",
|
1041
|
+
"oe",
|
1042
|
+
"germandbls",
|
1043
|
+
NULL,
|
1044
|
+
NULL,
|
1045
|
+
NULL,
|
1046
|
+
NULL
|
1047
|
+
};
|
1048
|
+
|
1049
|
+
char *expertEncoding[256] = {
|
1050
|
+
NULL,
|
1051
|
+
NULL,
|
1052
|
+
NULL,
|
1053
|
+
NULL,
|
1054
|
+
NULL,
|
1055
|
+
NULL,
|
1056
|
+
NULL,
|
1057
|
+
NULL,
|
1058
|
+
NULL,
|
1059
|
+
NULL,
|
1060
|
+
NULL,
|
1061
|
+
NULL,
|
1062
|
+
NULL,
|
1063
|
+
NULL,
|
1064
|
+
NULL,
|
1065
|
+
NULL,
|
1066
|
+
NULL,
|
1067
|
+
NULL,
|
1068
|
+
NULL,
|
1069
|
+
NULL,
|
1070
|
+
NULL,
|
1071
|
+
NULL,
|
1072
|
+
NULL,
|
1073
|
+
NULL,
|
1074
|
+
NULL,
|
1075
|
+
NULL,
|
1076
|
+
NULL,
|
1077
|
+
NULL,
|
1078
|
+
NULL,
|
1079
|
+
NULL,
|
1080
|
+
NULL,
|
1081
|
+
NULL,
|
1082
|
+
"space",
|
1083
|
+
"exclamsmall",
|
1084
|
+
"Hungarumlautsmall",
|
1085
|
+
NULL,
|
1086
|
+
"dollaroldstyle",
|
1087
|
+
"dollarsuperior",
|
1088
|
+
"ampersandsmall",
|
1089
|
+
"Acutesmall",
|
1090
|
+
"parenleftsuperior",
|
1091
|
+
"parenrightsuperior",
|
1092
|
+
"twodotenleader",
|
1093
|
+
"onedotenleader",
|
1094
|
+
"comma",
|
1095
|
+
"hyphen",
|
1096
|
+
"period",
|
1097
|
+
"fraction",
|
1098
|
+
"zerooldstyle",
|
1099
|
+
"oneoldstyle",
|
1100
|
+
"twooldstyle",
|
1101
|
+
"threeoldstyle",
|
1102
|
+
"fouroldstyle",
|
1103
|
+
"fiveoldstyle",
|
1104
|
+
"sixoldstyle",
|
1105
|
+
"sevenoldstyle",
|
1106
|
+
"eightoldstyle",
|
1107
|
+
"nineoldstyle",
|
1108
|
+
"colon",
|
1109
|
+
"semicolon",
|
1110
|
+
"commasuperior",
|
1111
|
+
"threequartersemdash",
|
1112
|
+
"periodsuperior",
|
1113
|
+
"questionsmall",
|
1114
|
+
NULL,
|
1115
|
+
"asuperior",
|
1116
|
+
"bsuperior",
|
1117
|
+
"centsuperior",
|
1118
|
+
"dsuperior",
|
1119
|
+
"esuperior",
|
1120
|
+
NULL,
|
1121
|
+
NULL,
|
1122
|
+
NULL,
|
1123
|
+
"isuperior",
|
1124
|
+
NULL,
|
1125
|
+
NULL,
|
1126
|
+
"lsuperior",
|
1127
|
+
"msuperior",
|
1128
|
+
"nsuperior",
|
1129
|
+
"osuperior",
|
1130
|
+
NULL,
|
1131
|
+
NULL,
|
1132
|
+
"rsuperior",
|
1133
|
+
"ssuperior",
|
1134
|
+
"tsuperior",
|
1135
|
+
NULL,
|
1136
|
+
"ff",
|
1137
|
+
"fi",
|
1138
|
+
"fl",
|
1139
|
+
"ffi",
|
1140
|
+
"ffl",
|
1141
|
+
"parenleftinferior",
|
1142
|
+
NULL,
|
1143
|
+
"parenrightinferior",
|
1144
|
+
"Circumflexsmall",
|
1145
|
+
"hyphensuperior",
|
1146
|
+
"Gravesmall",
|
1147
|
+
"Asmall",
|
1148
|
+
"Bsmall",
|
1149
|
+
"Csmall",
|
1150
|
+
"Dsmall",
|
1151
|
+
"Esmall",
|
1152
|
+
"Fsmall",
|
1153
|
+
"Gsmall",
|
1154
|
+
"Hsmall",
|
1155
|
+
"Ismall",
|
1156
|
+
"Jsmall",
|
1157
|
+
"Ksmall",
|
1158
|
+
"Lsmall",
|
1159
|
+
"Msmall",
|
1160
|
+
"Nsmall",
|
1161
|
+
"Osmall",
|
1162
|
+
"Psmall",
|
1163
|
+
"Qsmall",
|
1164
|
+
"Rsmall",
|
1165
|
+
"Ssmall",
|
1166
|
+
"Tsmall",
|
1167
|
+
"Usmall",
|
1168
|
+
"Vsmall",
|
1169
|
+
"Wsmall",
|
1170
|
+
"Xsmall",
|
1171
|
+
"Ysmall",
|
1172
|
+
"Zsmall",
|
1173
|
+
"colonmonetary",
|
1174
|
+
"onefitted",
|
1175
|
+
"rupiah",
|
1176
|
+
"Tildesmall",
|
1177
|
+
NULL,
|
1178
|
+
NULL,
|
1179
|
+
NULL,
|
1180
|
+
NULL,
|
1181
|
+
NULL,
|
1182
|
+
NULL,
|
1183
|
+
NULL,
|
1184
|
+
NULL,
|
1185
|
+
NULL,
|
1186
|
+
NULL,
|
1187
|
+
NULL,
|
1188
|
+
NULL,
|
1189
|
+
NULL,
|
1190
|
+
NULL,
|
1191
|
+
NULL,
|
1192
|
+
NULL,
|
1193
|
+
NULL,
|
1194
|
+
NULL,
|
1195
|
+
NULL,
|
1196
|
+
NULL,
|
1197
|
+
NULL,
|
1198
|
+
NULL,
|
1199
|
+
NULL,
|
1200
|
+
NULL,
|
1201
|
+
NULL,
|
1202
|
+
NULL,
|
1203
|
+
NULL,
|
1204
|
+
NULL,
|
1205
|
+
NULL,
|
1206
|
+
NULL,
|
1207
|
+
NULL,
|
1208
|
+
NULL,
|
1209
|
+
NULL,
|
1210
|
+
NULL,
|
1211
|
+
"exclamdownsmall",
|
1212
|
+
"centoldstyle",
|
1213
|
+
"Lslashsmall",
|
1214
|
+
NULL,
|
1215
|
+
NULL,
|
1216
|
+
"Scaronsmall",
|
1217
|
+
"Zcaronsmall",
|
1218
|
+
"Dieresissmall",
|
1219
|
+
"Brevesmall",
|
1220
|
+
"Caronsmall",
|
1221
|
+
NULL,
|
1222
|
+
"Dotaccentsmall",
|
1223
|
+
NULL,
|
1224
|
+
NULL,
|
1225
|
+
"Macronsmall",
|
1226
|
+
NULL,
|
1227
|
+
NULL,
|
1228
|
+
"figuredash",
|
1229
|
+
"hypheninferior",
|
1230
|
+
NULL,
|
1231
|
+
NULL,
|
1232
|
+
"Ogoneksmall",
|
1233
|
+
"Ringsmall",
|
1234
|
+
"Cedillasmall",
|
1235
|
+
NULL,
|
1236
|
+
NULL,
|
1237
|
+
NULL,
|
1238
|
+
"onequarter",
|
1239
|
+
"onehalf",
|
1240
|
+
"threequarters",
|
1241
|
+
"questiondownsmall",
|
1242
|
+
"oneeighth",
|
1243
|
+
"threeeighths",
|
1244
|
+
"fiveeighths",
|
1245
|
+
"seveneighths",
|
1246
|
+
"onethird",
|
1247
|
+
"twothirds",
|
1248
|
+
NULL,
|
1249
|
+
NULL,
|
1250
|
+
"zerosuperior",
|
1251
|
+
"onesuperior",
|
1252
|
+
"twosuperior",
|
1253
|
+
"threesuperior",
|
1254
|
+
"foursuperior",
|
1255
|
+
"fivesuperior",
|
1256
|
+
"sixsuperior",
|
1257
|
+
"sevensuperior",
|
1258
|
+
"eightsuperior",
|
1259
|
+
"ninesuperior",
|
1260
|
+
"zeroinferior",
|
1261
|
+
"oneinferior",
|
1262
|
+
"twoinferior",
|
1263
|
+
"threeinferior",
|
1264
|
+
"fourinferior",
|
1265
|
+
"fiveinferior",
|
1266
|
+
"sixinferior",
|
1267
|
+
"seveninferior",
|
1268
|
+
"eightinferior",
|
1269
|
+
"nineinferior",
|
1270
|
+
"centinferior",
|
1271
|
+
"dollarinferior",
|
1272
|
+
"periodinferior",
|
1273
|
+
"commainferior",
|
1274
|
+
"Agravesmall",
|
1275
|
+
"Aacutesmall",
|
1276
|
+
"Acircumflexsmall",
|
1277
|
+
"Atildesmall",
|
1278
|
+
"Adieresissmall",
|
1279
|
+
"Aringsmall",
|
1280
|
+
"AEsmall",
|
1281
|
+
"Ccedillasmall",
|
1282
|
+
"Egravesmall",
|
1283
|
+
"Eacutesmall",
|
1284
|
+
"Ecircumflexsmall",
|
1285
|
+
"Edieresissmall",
|
1286
|
+
"Igravesmall",
|
1287
|
+
"Iacutesmall",
|
1288
|
+
"Icircumflexsmall",
|
1289
|
+
"Idieresissmall",
|
1290
|
+
"Ethsmall",
|
1291
|
+
"Ntildesmall",
|
1292
|
+
"Ogravesmall",
|
1293
|
+
"Oacutesmall",
|
1294
|
+
"Ocircumflexsmall",
|
1295
|
+
"Otildesmall",
|
1296
|
+
"Odieresissmall",
|
1297
|
+
"OEsmall",
|
1298
|
+
"Oslashsmall",
|
1299
|
+
"Ugravesmall",
|
1300
|
+
"Uacutesmall",
|
1301
|
+
"Ucircumflexsmall",
|
1302
|
+
"Udieresissmall",
|
1303
|
+
"Yacutesmall",
|
1304
|
+
"Thornsmall",
|
1305
|
+
"Ydieresissmall"
|
1306
|
+
};
|
1307
|
+
|
1308
|
+
char *symbolEncoding[256] = {
|
1309
|
+
NULL,
|
1310
|
+
NULL,
|
1311
|
+
NULL,
|
1312
|
+
NULL,
|
1313
|
+
NULL,
|
1314
|
+
NULL,
|
1315
|
+
NULL,
|
1316
|
+
NULL,
|
1317
|
+
NULL,
|
1318
|
+
NULL,
|
1319
|
+
NULL,
|
1320
|
+
NULL,
|
1321
|
+
NULL,
|
1322
|
+
NULL,
|
1323
|
+
NULL,
|
1324
|
+
NULL,
|
1325
|
+
NULL,
|
1326
|
+
NULL,
|
1327
|
+
NULL,
|
1328
|
+
NULL,
|
1329
|
+
NULL,
|
1330
|
+
NULL,
|
1331
|
+
NULL,
|
1332
|
+
NULL,
|
1333
|
+
NULL,
|
1334
|
+
NULL,
|
1335
|
+
NULL,
|
1336
|
+
NULL,
|
1337
|
+
NULL,
|
1338
|
+
NULL,
|
1339
|
+
NULL,
|
1340
|
+
NULL,
|
1341
|
+
"space",
|
1342
|
+
"exclam",
|
1343
|
+
"universal",
|
1344
|
+
"numbersign",
|
1345
|
+
"existential",
|
1346
|
+
"percent",
|
1347
|
+
"ampersand",
|
1348
|
+
"suchthat",
|
1349
|
+
"parenleft",
|
1350
|
+
"parenright",
|
1351
|
+
"asteriskmath",
|
1352
|
+
"plus",
|
1353
|
+
"comma",
|
1354
|
+
"minus",
|
1355
|
+
"period",
|
1356
|
+
"slash",
|
1357
|
+
"zero",
|
1358
|
+
"one",
|
1359
|
+
"two",
|
1360
|
+
"three",
|
1361
|
+
"four",
|
1362
|
+
"five",
|
1363
|
+
"six",
|
1364
|
+
"seven",
|
1365
|
+
"eight",
|
1366
|
+
"nine",
|
1367
|
+
"colon",
|
1368
|
+
"semicolon",
|
1369
|
+
"less",
|
1370
|
+
"equal",
|
1371
|
+
"greater",
|
1372
|
+
"question",
|
1373
|
+
"congruent",
|
1374
|
+
"Alpha",
|
1375
|
+
"Beta",
|
1376
|
+
"Chi",
|
1377
|
+
"Delta",
|
1378
|
+
"Epsilon",
|
1379
|
+
"Phi",
|
1380
|
+
"Gamma",
|
1381
|
+
"Eta",
|
1382
|
+
"Iota",
|
1383
|
+
"theta1",
|
1384
|
+
"Kappa",
|
1385
|
+
"Lambda",
|
1386
|
+
"Mu",
|
1387
|
+
"Nu",
|
1388
|
+
"Omicron",
|
1389
|
+
"Pi",
|
1390
|
+
"Theta",
|
1391
|
+
"Rho",
|
1392
|
+
"Sigma",
|
1393
|
+
"Tau",
|
1394
|
+
"Upsilon",
|
1395
|
+
"sigma1",
|
1396
|
+
"Omega",
|
1397
|
+
"Xi",
|
1398
|
+
"Psi",
|
1399
|
+
"Zeta",
|
1400
|
+
"bracketleft",
|
1401
|
+
"therefore",
|
1402
|
+
"bracketright",
|
1403
|
+
"perpendicular",
|
1404
|
+
"underscore",
|
1405
|
+
"radicalex",
|
1406
|
+
"alpha",
|
1407
|
+
"beta",
|
1408
|
+
"chi",
|
1409
|
+
"delta",
|
1410
|
+
"epsilon",
|
1411
|
+
"phi",
|
1412
|
+
"gamma",
|
1413
|
+
"eta",
|
1414
|
+
"iota",
|
1415
|
+
"phi1",
|
1416
|
+
"kappa",
|
1417
|
+
"lambda",
|
1418
|
+
"mu",
|
1419
|
+
"nu",
|
1420
|
+
"omicron",
|
1421
|
+
"pi",
|
1422
|
+
"theta",
|
1423
|
+
"rho",
|
1424
|
+
"sigma",
|
1425
|
+
"tau",
|
1426
|
+
"upsilon",
|
1427
|
+
"omega1",
|
1428
|
+
"omega",
|
1429
|
+
"xi",
|
1430
|
+
"psi",
|
1431
|
+
"zeta",
|
1432
|
+
"braceleft",
|
1433
|
+
"bar",
|
1434
|
+
"braceright",
|
1435
|
+
"similar",
|
1436
|
+
NULL,
|
1437
|
+
NULL,
|
1438
|
+
NULL,
|
1439
|
+
NULL,
|
1440
|
+
NULL,
|
1441
|
+
NULL,
|
1442
|
+
NULL,
|
1443
|
+
NULL,
|
1444
|
+
NULL,
|
1445
|
+
NULL,
|
1446
|
+
NULL,
|
1447
|
+
NULL,
|
1448
|
+
NULL,
|
1449
|
+
NULL,
|
1450
|
+
NULL,
|
1451
|
+
NULL,
|
1452
|
+
NULL,
|
1453
|
+
NULL,
|
1454
|
+
NULL,
|
1455
|
+
NULL,
|
1456
|
+
NULL,
|
1457
|
+
NULL,
|
1458
|
+
NULL,
|
1459
|
+
NULL,
|
1460
|
+
NULL,
|
1461
|
+
NULL,
|
1462
|
+
NULL,
|
1463
|
+
NULL,
|
1464
|
+
NULL,
|
1465
|
+
NULL,
|
1466
|
+
NULL,
|
1467
|
+
NULL,
|
1468
|
+
NULL,
|
1469
|
+
NULL,
|
1470
|
+
"Upsilon1",
|
1471
|
+
"minute",
|
1472
|
+
"lessequal",
|
1473
|
+
"fraction",
|
1474
|
+
"infinity",
|
1475
|
+
"florin",
|
1476
|
+
"club",
|
1477
|
+
"diamond",
|
1478
|
+
"heart",
|
1479
|
+
"spade",
|
1480
|
+
"arrowboth",
|
1481
|
+
"arrowleft",
|
1482
|
+
"arrowup",
|
1483
|
+
"arrowright",
|
1484
|
+
"arrowdown",
|
1485
|
+
"degree",
|
1486
|
+
"plusminus",
|
1487
|
+
"second",
|
1488
|
+
"greaterequal",
|
1489
|
+
"multiply",
|
1490
|
+
"proportional",
|
1491
|
+
"partialdiff",
|
1492
|
+
"bullet",
|
1493
|
+
"divide",
|
1494
|
+
"notequal",
|
1495
|
+
"equivalence",
|
1496
|
+
"approxequal",
|
1497
|
+
"ellipsis",
|
1498
|
+
"arrowvertex",
|
1499
|
+
"arrowhorizex",
|
1500
|
+
"carriagereturn",
|
1501
|
+
"aleph",
|
1502
|
+
"Ifraktur",
|
1503
|
+
"Rfraktur",
|
1504
|
+
"weierstrass",
|
1505
|
+
"circlemultiply",
|
1506
|
+
"circleplus",
|
1507
|
+
"emptyset",
|
1508
|
+
"intersection",
|
1509
|
+
"union",
|
1510
|
+
"propersuperset",
|
1511
|
+
"reflexsuperset",
|
1512
|
+
"notsubset",
|
1513
|
+
"propersubset",
|
1514
|
+
"reflexsubset",
|
1515
|
+
"element",
|
1516
|
+
"notelement",
|
1517
|
+
"angle",
|
1518
|
+
"gradient",
|
1519
|
+
"registerserif",
|
1520
|
+
"copyrightserif",
|
1521
|
+
"trademarkserif",
|
1522
|
+
"product",
|
1523
|
+
"radical",
|
1524
|
+
"dotmath",
|
1525
|
+
"logicalnot",
|
1526
|
+
"logicaland",
|
1527
|
+
"logicalor",
|
1528
|
+
"arrowdblboth",
|
1529
|
+
"arrowdblleft",
|
1530
|
+
"arrowdblup",
|
1531
|
+
"arrowdblright",
|
1532
|
+
"arrowdbldown",
|
1533
|
+
"lozenge",
|
1534
|
+
"angleleft",
|
1535
|
+
"registersans",
|
1536
|
+
"copyrightsans",
|
1537
|
+
"trademarksans",
|
1538
|
+
"summation",
|
1539
|
+
"parenlefttp",
|
1540
|
+
"parenleftex",
|
1541
|
+
"parenleftbt",
|
1542
|
+
"bracketlefttp",
|
1543
|
+
"bracketleftex",
|
1544
|
+
"bracketleftbt",
|
1545
|
+
"bracelefttp",
|
1546
|
+
"braceleftmid",
|
1547
|
+
"braceleftbt",
|
1548
|
+
"braceex",
|
1549
|
+
NULL,
|
1550
|
+
"angleright",
|
1551
|
+
"integral",
|
1552
|
+
"integraltp",
|
1553
|
+
"integralex",
|
1554
|
+
"integralbt",
|
1555
|
+
"parenrighttp",
|
1556
|
+
"parenrightex",
|
1557
|
+
"parenrightbt",
|
1558
|
+
"bracketrighttp",
|
1559
|
+
"bracketrightex",
|
1560
|
+
"bracketrightbt",
|
1561
|
+
"bracerighttp",
|
1562
|
+
"bracerightmid",
|
1563
|
+
"bracerightbt",
|
1564
|
+
NULL
|
1565
|
+
};
|
1566
|
+
|
1567
|
+
char *zapfDingbatsEncoding[256] = {
|
1568
|
+
NULL,
|
1569
|
+
NULL,
|
1570
|
+
NULL,
|
1571
|
+
NULL,
|
1572
|
+
NULL,
|
1573
|
+
NULL,
|
1574
|
+
NULL,
|
1575
|
+
NULL,
|
1576
|
+
NULL,
|
1577
|
+
NULL,
|
1578
|
+
NULL,
|
1579
|
+
NULL,
|
1580
|
+
NULL,
|
1581
|
+
NULL,
|
1582
|
+
NULL,
|
1583
|
+
NULL,
|
1584
|
+
NULL,
|
1585
|
+
NULL,
|
1586
|
+
NULL,
|
1587
|
+
NULL,
|
1588
|
+
NULL,
|
1589
|
+
NULL,
|
1590
|
+
NULL,
|
1591
|
+
NULL,
|
1592
|
+
NULL,
|
1593
|
+
NULL,
|
1594
|
+
NULL,
|
1595
|
+
NULL,
|
1596
|
+
NULL,
|
1597
|
+
NULL,
|
1598
|
+
NULL,
|
1599
|
+
NULL,
|
1600
|
+
"space",
|
1601
|
+
"a1",
|
1602
|
+
"a2",
|
1603
|
+
"a202",
|
1604
|
+
"a3",
|
1605
|
+
"a4",
|
1606
|
+
"a5",
|
1607
|
+
"a119",
|
1608
|
+
"a118",
|
1609
|
+
"a117",
|
1610
|
+
"a11",
|
1611
|
+
"a12",
|
1612
|
+
"a13",
|
1613
|
+
"a14",
|
1614
|
+
"a15",
|
1615
|
+
"a16",
|
1616
|
+
"a105",
|
1617
|
+
"a17",
|
1618
|
+
"a18",
|
1619
|
+
"a19",
|
1620
|
+
"a20",
|
1621
|
+
"a21",
|
1622
|
+
"a22",
|
1623
|
+
"a23",
|
1624
|
+
"a24",
|
1625
|
+
"a25",
|
1626
|
+
"a26",
|
1627
|
+
"a27",
|
1628
|
+
"a28",
|
1629
|
+
"a6",
|
1630
|
+
"a7",
|
1631
|
+
"a8",
|
1632
|
+
"a9",
|
1633
|
+
"a10",
|
1634
|
+
"a29",
|
1635
|
+
"a30",
|
1636
|
+
"a31",
|
1637
|
+
"a32",
|
1638
|
+
"a33",
|
1639
|
+
"a34",
|
1640
|
+
"a35",
|
1641
|
+
"a36",
|
1642
|
+
"a37",
|
1643
|
+
"a38",
|
1644
|
+
"a39",
|
1645
|
+
"a40",
|
1646
|
+
"a41",
|
1647
|
+
"a42",
|
1648
|
+
"a43",
|
1649
|
+
"a44",
|
1650
|
+
"a45",
|
1651
|
+
"a46",
|
1652
|
+
"a47",
|
1653
|
+
"a48",
|
1654
|
+
"a49",
|
1655
|
+
"a50",
|
1656
|
+
"a51",
|
1657
|
+
"a52",
|
1658
|
+
"a53",
|
1659
|
+
"a54",
|
1660
|
+
"a55",
|
1661
|
+
"a56",
|
1662
|
+
"a57",
|
1663
|
+
"a58",
|
1664
|
+
"a59",
|
1665
|
+
"a60",
|
1666
|
+
"a61",
|
1667
|
+
"a62",
|
1668
|
+
"a63",
|
1669
|
+
"a64",
|
1670
|
+
"a65",
|
1671
|
+
"a66",
|
1672
|
+
"a67",
|
1673
|
+
"a68",
|
1674
|
+
"a69",
|
1675
|
+
"a70",
|
1676
|
+
"a71",
|
1677
|
+
"a72",
|
1678
|
+
"a73",
|
1679
|
+
"a74",
|
1680
|
+
"a203",
|
1681
|
+
"a75",
|
1682
|
+
"a204",
|
1683
|
+
"a76",
|
1684
|
+
"a77",
|
1685
|
+
"a78",
|
1686
|
+
"a79",
|
1687
|
+
"a81",
|
1688
|
+
"a82",
|
1689
|
+
"a83",
|
1690
|
+
"a84",
|
1691
|
+
"a97",
|
1692
|
+
"a98",
|
1693
|
+
"a99",
|
1694
|
+
"a100",
|
1695
|
+
NULL,
|
1696
|
+
NULL,
|
1697
|
+
NULL,
|
1698
|
+
NULL,
|
1699
|
+
NULL,
|
1700
|
+
NULL,
|
1701
|
+
NULL,
|
1702
|
+
NULL,
|
1703
|
+
NULL,
|
1704
|
+
NULL,
|
1705
|
+
NULL,
|
1706
|
+
NULL,
|
1707
|
+
NULL,
|
1708
|
+
NULL,
|
1709
|
+
NULL,
|
1710
|
+
NULL,
|
1711
|
+
NULL,
|
1712
|
+
NULL,
|
1713
|
+
NULL,
|
1714
|
+
NULL,
|
1715
|
+
NULL,
|
1716
|
+
NULL,
|
1717
|
+
NULL,
|
1718
|
+
NULL,
|
1719
|
+
NULL,
|
1720
|
+
NULL,
|
1721
|
+
NULL,
|
1722
|
+
NULL,
|
1723
|
+
NULL,
|
1724
|
+
NULL,
|
1725
|
+
NULL,
|
1726
|
+
NULL,
|
1727
|
+
NULL,
|
1728
|
+
NULL,
|
1729
|
+
"a101",
|
1730
|
+
"a102",
|
1731
|
+
"a103",
|
1732
|
+
"a104",
|
1733
|
+
"a106",
|
1734
|
+
"a107",
|
1735
|
+
"a108",
|
1736
|
+
"a112",
|
1737
|
+
"a111",
|
1738
|
+
"a110",
|
1739
|
+
"a109",
|
1740
|
+
"a120",
|
1741
|
+
"a121",
|
1742
|
+
"a122",
|
1743
|
+
"a123",
|
1744
|
+
"a124",
|
1745
|
+
"a125",
|
1746
|
+
"a126",
|
1747
|
+
"a127",
|
1748
|
+
"a128",
|
1749
|
+
"a129",
|
1750
|
+
"a130",
|
1751
|
+
"a131",
|
1752
|
+
"a132",
|
1753
|
+
"a133",
|
1754
|
+
"a134",
|
1755
|
+
"a135",
|
1756
|
+
"a136",
|
1757
|
+
"a137",
|
1758
|
+
"a138",
|
1759
|
+
"a139",
|
1760
|
+
"a140",
|
1761
|
+
"a141",
|
1762
|
+
"a142",
|
1763
|
+
"a143",
|
1764
|
+
"a144",
|
1765
|
+
"a145",
|
1766
|
+
"a146",
|
1767
|
+
"a147",
|
1768
|
+
"a148",
|
1769
|
+
"a149",
|
1770
|
+
"a150",
|
1771
|
+
"a151",
|
1772
|
+
"a152",
|
1773
|
+
"a153",
|
1774
|
+
"a154",
|
1775
|
+
"a155",
|
1776
|
+
"a156",
|
1777
|
+
"a157",
|
1778
|
+
"a158",
|
1779
|
+
"a159",
|
1780
|
+
"a160",
|
1781
|
+
"a161",
|
1782
|
+
"a163",
|
1783
|
+
"a164",
|
1784
|
+
"a196",
|
1785
|
+
"a165",
|
1786
|
+
"a192",
|
1787
|
+
"a166",
|
1788
|
+
"a167",
|
1789
|
+
"a168",
|
1790
|
+
"a169",
|
1791
|
+
"a170",
|
1792
|
+
"a171",
|
1793
|
+
"a172",
|
1794
|
+
"a173",
|
1795
|
+
"a162",
|
1796
|
+
"a174",
|
1797
|
+
"a175",
|
1798
|
+
"a176",
|
1799
|
+
"a177",
|
1800
|
+
"a178",
|
1801
|
+
"a179",
|
1802
|
+
"a193",
|
1803
|
+
"a180",
|
1804
|
+
"a199",
|
1805
|
+
"a181",
|
1806
|
+
"a200",
|
1807
|
+
"a182",
|
1808
|
+
NULL,
|
1809
|
+
"a201",
|
1810
|
+
"a183",
|
1811
|
+
"a184",
|
1812
|
+
"a197",
|
1813
|
+
"a185",
|
1814
|
+
"a194",
|
1815
|
+
"a198",
|
1816
|
+
"a186",
|
1817
|
+
"a195",
|
1818
|
+
"a187",
|
1819
|
+
"a188",
|
1820
|
+
"a189",
|
1821
|
+
"a190",
|
1822
|
+
"a191",
|
1823
|
+
NULL
|
1824
|
+
};
|