| 1 | # RCS Status : $Id: WinANSIEncoding.pm,v 1.3 2003-10-23 14:11:37+02 jv Exp $ | ||
| 2 | # Author : Johan Vromans | ||
| 3 | # Created On : Wed Jun 18 06:37:31 2003 | ||
| 4 | # Last Modified By: Johan Vromans | ||
| 5 | # Last Modified On: Thu Oct 23 14:11:32 2003 | ||
| 6 | # Update Count : 11 | ||
| 7 | # Status : Released | ||
| 8 | |||
| 9 | ################ Module Preamble ################ | ||
| 10 | |||
| 11 | package PostScript::WinANSIEncoding; | ||
| 12 | |||
| 13 | $VERSION = "1.01"; | ||
| 14 | |||
| 15 | use 5.005; | ||
| 16 | use strict; | ||
| 17 | |||
| 18 | # Windows ANSI Encoding. | ||
| 19 | my $WinANSIEncoding_str = | ||
| 20 | ".notdef .notdef .notdef .notdef .notdef .notdef .notdef .notdef ". | ||
| 21 | ".notdef .notdef .notdef .notdef .notdef .notdef .notdef .notdef ". | ||
| 22 | ".notdef .notdef .notdef .notdef .notdef .notdef .notdef .notdef ". | ||
| 23 | ".notdef .notdef .notdef .notdef .notdef .notdef .notdef .notdef ". | ||
| 24 | "space exclam quotedbl numbersign dollar percent ampersand quotesingle ". | ||
| 25 | "parenleft parenright asterisk plus comma hyphen period slash zero one ". | ||
| 26 | "two three four five six seven eight nine colon semicolon less equal ". | ||
| 27 | "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 ". | ||
| 28 | "Y Z bracketleft backslash bracketright asciicircum underscore ". | ||
| 29 | "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 ". | ||
| 30 | "braceleft bar braceright asciitilde bullet Euro bullet quotesinglbase ". | ||
| 31 | "florin quotedblbase ellipsis dagger daggerdbl circumflex perthousand ". | ||
| 32 | "Scaron guilsinglleft OE bullet Zcaron bullet bullet quoteleft quoteright ". | ||
| 33 | "quotedblleft quotedblright bullet endash emdash tilde trademark scaron ". | ||
| 34 | "guilsinglright oe bullet zcaron Ydieresis space exclamdown cent ". | ||
| 35 | "sterling currency yen brokenbar section dieresis copyright ". | ||
| 36 | "ordfeminine guillemotleft logicalnot hyphen registered macron degree ". | ||
| 37 | "plusminus twosuperior threesuperior acute mu paragraph ". | ||
| 38 | "periodcentered cedilla onesuperior ordmasculine guillemotright ". | ||
| 39 | "onequarter onehalf threequarters questiondown Agrave Aacute ". | ||
| 40 | "Acircumflex Atilde Adieresis Aring AE Ccedilla Egrave Eacute ". | ||
| 41 | "Ecircumflex Edieresis Igrave Iacute Icircumflex Idieresis Eth Ntilde ". | ||
| 42 | "Ograve Oacute Ocircumflex Otilde Odieresis multiply Oslash Ugrave ". | ||
| 43 | "Uacute Ucircumflex Udieresis Yacute Thorn germandbls agrave aacute ". | ||
| 44 | "acircumflex atilde adieresis aring ae ccedilla egrave eacute ". | ||
| 45 | "ecircumflex edieresis igrave iacute icircumflex idieresis eth ntilde ". | ||
| 46 | "ograve oacute ocircumflex otilde odieresis divide oslash ugrave ". | ||
| 47 | "uacute ucircumflex udieresis yacute thorn ydieresis"; | ||
| 48 | |||
| 49 | my @WinANSIEncoding; | ||
| 50 | |||
| 51 | sub string { | ||
| 52 | my ($self) = @_; | ||
| 53 | $WinANSIEncoding_str; | ||
| 54 | } | ||
| 55 | |||
| 56 | sub array { | ||
| 57 | my ($self) = @_; | ||
| 58 | @WinANSIEncoding = split(' ', $WinANSIEncoding_str) | ||
| 59 | unless @WinANSIEncoding; | ||
| 60 | wantarray ? @WinANSIEncoding : \@WinANSIEncoding; | ||
| 61 | } | ||
| 62 | |||
| 63 | if ( !caller ) { | ||
| 64 | my @a = array(); | ||
| 65 | die("Size = ", scalar(@a), ", should be 256\n") | ||
| 66 | unless @a == 256; | ||
| 67 | } | ||
| 68 | |||
| 69 | 1; | ||
| 70 | |||
| 71 | __END__ |