%% 2010-02-02: when needing to re-encode an arbitrary font in a Ghostscript-using script I was writing, I began by searching the web for an %% extended-cp1252 encoding and found two that came close to meeting my requirements, but none that did, so I made one. %% %% This encoding is 100% compatible with ASCII, iso8859-1, and cp1252; is as close as possible to the one published by the TeX-User-Group %% (http://www.tug.org/fontname/8r.enc) while remaining true to the named standards; and provides many useful glyphs for working with text in %% Western-European languages. Using 250 of the 256 slots in an 8-bit encoding, it provides 248 distinct glyphs, duplicate entries for space and %% hyphen being unavoidable due to the definitions of ISO-8859-1 and CP-1252. CP-1252 is also known as Codepage-1252, Windows-1252, Windows-ANSI. %% %% Note: Germandbls ought to be in position 0xDF, moving germandbls to 0xFF, but that would violate the standards; %% incidentally, Scedilla has been suggested a substitute for Germandbls, also known as Esszett, Esszet, Eszett, Eszet, Sharp-S, Scharfes-S. %% %% For an example of using this encoding see http://ereimer.net/programs/tesseract-training-from-source; %% there appears to be a way of installing an encoding so Ghostscript will always have it available, but I have yet to try doing that. %% %% Copyright (c) 2010 Eugene Reimer; can be freely used subject to the LGPL or the GPL (your choice); see http://www.gnu.org/licenses. /cp1252-er-encoding [ /.notdef/dotaccent/fi/fl/fraction/hungarumlaut/Lslash/lslash/ogonek/ring/.notdef/breve/minus/.notdef/radical/lozenge /caron/dotlessi/dotlessj/ff/ffi/ffl/notequal/infinity/lessequal/greaterequal/partialdiff/summation/product/pi/.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 /Euro/integral/quotesinglbase/florin/quotedblbase/ellipsis/dagger/daggerdbl/circumflex/perthousand/Scaron/guilsinglleft/OE/Omega/Zcaron/approxequal /Germandbls/quoteleft/quoteright/quotedblleft/quotedblright/bullet/endash/emdash/tilde/trademark/scaron/guilsinglright/oe/Delta/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 ] def