« API3/Compat/API2/Basic/TTF/Kern/Subtable.pm
↑ Summary
API3/Compat/API2/Resource/XObject/Image/GD.pm »
| 1 | #======================================================================= | ||
| 2 | # ____ ____ _____ _ ____ ___ ____ | ||
| 3 | # | _ \| _ \| ___| _ _ / \ | _ \_ _| |___ \ | ||
| 4 | # | |_) | | | | |_ (_) (_) / _ \ | |_) | | __) | | ||
| 5 | # | __/| |_| | _| _ _ / ___ \| __/| | / __/ | ||
| 6 | # |_| |____/|_| (_) (_) /_/ \_\_| |___| |_____| | ||
| 7 | # | ||
| 8 | # A Perl Module Chain to faciliate the Creation and Modification | ||
| 9 | # of High-Quality "Portable Document Format (PDF)" Files. | ||
| 10 | # | ||
| 11 | #======================================================================= | ||
| 12 | # | ||
| 13 | # THIS IS A REUSED PERL MODULE, FOR PROPER LICENCING TERMS SEE BELOW: | ||
| 14 | # | ||
| 15 | # | ||
| 16 | # Copyright Martin Hosken <Martin_Hosken@sil.org> | ||
| 17 | # | ||
| 18 | # No warranty or expression of effectiveness, least of all regarding | ||
| 19 | # anyone's safety, is implied in this software or documentation. | ||
| 20 | # | ||
| 21 | # This specific module is licensed under the Perl Artistic License. | ||
| 22 | # | ||
| 23 | # | ||
| 24 | # $Id: Name.pm,v 2.1 2007/04/25 17:58:43 areibens Exp $ | ||
| 25 | # | ||
| 26 | #======================================================================= | ||
| 27 | package PDF::API3::Compat::API2::Basic::TTF::Name; | ||
| 28 | |||
| 29 | =head1 NAME | ||
| 30 | |||
| 31 | PDF::API3::Compat::API2::Basic::TTF::Name - String table for a TTF font | ||
| 32 | |||
| 33 | =head1 DESCRIPTION | ||
| 34 | |||
| 35 | Strings are held by number, platform, encoding and language. Strings are | ||
| 36 | accessed as: | ||
| 37 | |||
| 38 | $f->{'name'}{'strings'}[$number][$platform_id][$encoding_id]{$language_id} | ||
| 39 | |||
| 40 | Notice that the language is held in an associative array due to its sparse | ||
| 41 | nature on some platforms such as Microsoft ($pid = 3). Notice also that the | ||
| 42 | array order is different from the stored array order (platform, encoding, | ||
| 43 | language, number) to allow for easy manipulation of strings by number (which is | ||
| 44 | what I guess most people will want to do). | ||
| 45 | |||
| 46 | By default, C<$PDF::API3::Compat::API2::Basic::TTF::Name::utf8> is set to 1, and strings will be stored as UTF8 wherever | ||
| 47 | possible. The method C<is_utf8> can be used to find out if a string in a particular | ||
| 48 | platform and encoding will be returned as UTF8. Unicode strings are always | ||
| 49 | converted if utf8 is requested. Otherwise, strings are stored according to platform: | ||
| 50 | |||
| 51 | ***WARNING NON-UTF8 is deprecated and utf8 strings has become the default*** | ||
| 52 | |||
| 53 | You now have to set <$PDF::API3::Compat::API2::Basic::TTF::Name::utf8> to 0 to get the old behaviour. | ||
| 54 | |||
| 55 | =over 4 | ||
| 56 | |||
| 57 | =item Apple Unicode (platform id = 0) | ||
| 58 | |||
| 59 | Data is stored as network ordered UCS2. There is no encoding id for this platform | ||
| 60 | but there are language ids as per Mac language ids. | ||
| 61 | |||
| 62 | =item Mac (platform id = 1) | ||
| 63 | |||
| 64 | Data is stored as 8-bit binary data, leaving the interpretation to the user | ||
| 65 | according to encoding id. | ||
| 66 | |||
| 67 | =item Unicode (platform id = 2) | ||
| 68 | |||
| 69 | Currently stored as 16-bit network ordered UCS2. Upon release of Perl 5.005 this | ||
| 70 | will change to utf8 assuming current UCS2 semantics for all encoding ids. | ||
| 71 | |||
| 72 | =item Windows (platform id = 3) | ||
| 73 | |||
| 74 | As per Unicode, the data is currently stored as 16-bit network ordered UCS2. Upon | ||
| 75 | release of Perl 5.005 this will change to utf8 assuming current UCS2 semantics for | ||
| 76 | all encoding ids. | ||
| 77 | |||
| 78 | =back | ||
| 79 | |||
| 80 | =head1 INSTANCE VARIABLES | ||
| 81 | |||
| 82 | =over 4 | ||
| 83 | |||
| 84 | =item strings | ||
| 85 | |||
| 86 | An array of arrays, etc. | ||
| 87 | |||
| 88 | =back | ||
| 89 | |||
| 90 | =head1 METHODS | ||
| 91 | |||
| 92 | =cut | ||
| 93 | |||
| 94 | use strict; | ||
| 95 | use bytes; | ||
| 96 | use vars qw(@ISA $VERSION @apple_encs @apple_encodings $utf8 $cp_1252 @cp_1252); | ||
| 97 | use PDF::API3::Compat::API2::Basic::TTF::Table; | ||
| 98 | use PDF::API3::Compat::API2::Basic::TTF::Utils; | ||
| 99 | @ISA = qw(PDF::API3::Compat::API2::Basic::TTF::Table); | ||
| 100 | |||
| 101 | $utf8 = 1; | ||
| 102 | |||
| 103 | { | ||
| 104 | my ($count, $i); | ||
| 105 | eval {require Compress::Zlib;}; | ||
| 106 | unless ($@) | ||
| 107 | { | ||
| 108 | for ($i = 0; $i <= $#apple_encs; $i++) | ||
| 109 | { | ||
| 110 | $apple_encodings[0][$i] = [unpack("n*", Compress::Zlib::uncompress(unpack("u", $apple_encs[$i])))] | ||
| 111 | if (defined $apple_encs[$i]); | ||
| 112 | $count = 0; | ||
| 113 | $apple_encodings[1][$i] = {map({$_ => $count++} @{$apple_encodings[0][$i]})}; | ||
| 114 | } | ||
| 115 | $cp_1252[0] = [unpack("n*", Compress::Zlib::uncompress(unpack("u", $cp_1252)))]; | ||
| 116 | $count = 0; | ||
| 117 | $cp_1252[1] = {map({$_ => $count++} @{$cp_1252[0]})}; | ||
| 118 | } | ||
| 119 | } | ||
| 120 | |||
| 121 | |||
| 122 | $VERSION = 1.1; # MJPH 17-JUN-2000 Add utf8 support | ||
| 123 | # $VERSION = 1.001; # MJPH 10-AUG-1998 Put $number first in list | ||
| 124 | |||
| 125 | =head2 $t->read | ||
| 126 | |||
| 127 | Reads all the names into memory | ||
| 128 | |||
| 129 | =cut | ||
| 130 | |||
| 131 | sub read | ||
| 132 | { | ||
| 133 | my ($self) = @_; | ||
| 134 | my ($fh) = $self->{' INFILE'}; | ||
| 135 | my ($dat, $num, $stroff, $i, $pid, $eid, $lid, $nid, $len, $off, $here); | ||
| 136 | |||
| 137 | $self->SUPER::read or return $self; | ||
| 138 | $fh->read($dat, 6); | ||
| 139 | ($num, $stroff) = unpack("x2nn", $dat); | ||
| 140 | for ($i = 0; $i < $num; $i++) | ||
| 141 | { | ||
| 142 | read($fh,$dat, 12); | ||
| 143 | ($pid, $eid, $lid, $nid, $len, $off) = unpack("n6", $dat); | ||
| 144 | $here = $fh->tell(); | ||
| 145 | $fh->seek($self->{' OFFSET'} + $stroff + $off, 0); | ||
| 146 | $fh->read($dat, $len); | ||
| 147 | if ($utf8) | ||
| 148 | { | ||
| 149 | if ($pid == 1 && defined $apple_encodings[0][$eid]) | ||
| 150 | { $dat = TTF_word_utf8(pack("n*", map({$apple_encodings[0][$eid][$_]} unpack("C*", $dat)))); } | ||
| 151 | elsif ($pid == 2 && $eid == 2 && defined @cp_1252) | ||
| 152 | { $dat = TTF_word_utf8(pack("n*", map({$cp_1252[0][$_]} unpack("C*", $dat)))); } | ||
| 153 | elsif ($pid == 0 || $pid == 3 || ($pid == 2 && $eid == 1)) | ||
| 154 | { $dat = TTF_word_utf8($dat); } | ||
| 155 | } | ||
| 156 | $self->{'strings'}[$nid][$pid][$eid]{$lid} = $dat; | ||
| 157 | $fh->seek($here, 0); | ||
| 158 | } | ||
| 159 | $self; | ||
| 160 | } | ||
| 161 | |||
| 162 | |||
| 163 | =head2 $t->out($fh) | ||
| 164 | |||
| 165 | Writes out all the strings | ||
| 166 | |||
| 167 | =cut | ||
| 168 | |||
| 169 | sub out | ||
| 170 | { | ||
| 171 | my ($self, $fh) = @_; | ||
| 172 | my ($pid, $eid, $lid, $nid, $todo, @todo); | ||
| 173 | my ($len, $offset, $loc, $stroff, $endloc, $str_trans); | ||
| 174 | |||
| 175 | return $self->SUPER::out($fh) unless $self->{' read'}; | ||
| 176 | |||
| 177 | $loc = $fh->tell(); | ||
| 178 | $fh->print(pack("n3", 0, 0, 0)); | ||
| 179 | foreach $nid (0 .. $#{$self->{'strings'}}) | ||
| 180 | { | ||
| 181 | foreach $pid (0 .. $#{$self->{'strings'}[$nid]}) | ||
| 182 | { | ||
| 183 | foreach $eid (0 .. $#{$self->{'strings'}[$nid][$pid]}) | ||
| 184 | { | ||
| 185 | foreach $lid (sort keys %{$self->{'strings'}[$nid][$pid][$eid]}) | ||
| 186 | { | ||
| 187 | $str_trans = $self->{'strings'}[$nid][$pid][$eid]{$lid}; | ||
| 188 | if ($utf8) | ||
| 189 | { | ||
| 190 | if ($pid == 1 && defined $apple_encodings[1][$eid]) | ||
| 191 | { $str_trans = pack("C*", | ||
| 192 | map({$apple_encodings[1][$eid]{$_} || "?"} unpack("n*", | ||
| 193 | TTF_utf8_word($str_trans)))); } | ||
| 194 | elsif ($pid == 2 && $eid == 2 && defined @cp_1252) | ||
| 195 | { $str_trans = pack("C*", | ||
| 196 | map({$cp_1252[1][$eid]{$_} || "?"} unpack("n*", | ||
| 197 | TTF_utf8_word($str_trans)))); } | ||
| 198 | elsif ($pid == 2 && $eid == 0) | ||
| 199 | { $str_trans =~ s/[\xc0-\xff][\x80-\xbf]+/?/og; } | ||
| 200 | elsif ($pid == 0 || $pid == 3 || ($pid == 2 && $eid == 1)) | ||
| 201 | { $str_trans = TTF_utf8_word($str_trans); } | ||
| 202 | } | ||
| 203 | push (@todo, [$pid, $eid, $lid, $nid, $str_trans]); | ||
| 204 | } | ||
| 205 | } | ||
| 206 | } | ||
| 207 | } | ||
| 208 | |||
| 209 | $offset = 0; | ||
| 210 | @todo = (sort {$a->[0] <=> $b->[0] || $a->[1] <=> $b->[1] || $a->[2] <=> $a->[2] | ||
| 211 | || $a->[3] <=> $b->[3]} @todo); | ||
| 212 | foreach $todo (@todo) | ||
| 213 | { | ||
| 214 | $len = length($todo->[4]); | ||
| 215 | $fh->print(pack("n6", @{$todo}[0..3], $len, $offset)); | ||
| 216 | $offset += $len; | ||
| 217 | } | ||
| 218 | |||
| 219 | $stroff = $fh->tell() - $loc; | ||
| 220 | foreach $todo (@todo) | ||
| 221 | { $fh->print($todo->[4]); } | ||
| 222 | |||
| 223 | $endloc = $fh->tell(); | ||
| 224 | $fh->seek($loc, 0); | ||
| 225 | $fh->print(pack("n3", 0, $#todo + 1, $stroff)); | ||
| 226 | $fh->seek($endloc, 0); | ||
| 227 | $self; | ||
| 228 | } | ||
| 229 | |||
| 230 | |||
| 231 | =head2 $t->XML_element($context, $depth, $key, $value) | ||
| 232 | |||
| 233 | Outputs the string element in nice XML (which is all the table really!) | ||
| 234 | |||
| 235 | =cut | ||
| 236 | |||
| 237 | sub XML_element | ||
| 238 | { | ||
| 239 | my ($self) = shift; | ||
| 240 | my ($context, $depth, $key, $value) = @_; | ||
| 241 | my ($fh) = $context->{'fh'}; | ||
| 242 | my ($nid, $pid, $eid, $lid); | ||
| 243 | |||
| 244 | return $self->SUPER::XML_element(@_) unless ($key eq 'strings'); | ||
| 245 | |||
| 246 | foreach $nid (0 .. $#{$self->{'strings'}}) | ||
| 247 | { | ||
| 248 | next unless ref($self->{'strings'}[$nid]); | ||
| 249 | # $fh->print("$depth<strings id='$nid'>\n"); | ||
| 250 | foreach $pid (0 .. $#{$self->{'strings'}[$nid]}) | ||
| 251 | { | ||
| 252 | foreach $eid (0 .. $#{$self->{'strings'}[$nid][$pid]}) | ||
| 253 | { | ||
| 254 | foreach $lid (sort {$a <=> $b} keys %{$self->{'strings'}[$nid][$pid][$eid]}) | ||
| 255 | { | ||
| 256 | $fh->printf("%s<string id='%s' platform='%s' encoding='%s' language='%s'>\n%s%s%s\n%s</string>\n", | ||
| 257 | $depth, $nid, $pid, $eid, $lid, $depth, | ||
| 258 | $context->{'indent'}, $self->{'strings'}[$nid][$pid][$eid]{$lid}, $depth); | ||
| 259 | } | ||
| 260 | } | ||
| 261 | } | ||
| 262 | # $fh->print("$depth</strings>\n"); | ||
| 263 | } | ||
| 264 | $self; | ||
| 265 | } | ||
| 266 | |||
| 267 | |||
| 268 | =head2 $t->XML_end($context, $tag, %attrs) | ||
| 269 | |||
| 270 | Store strings in the right place | ||
| 271 | |||
| 272 | =cut | ||
| 273 | |||
| 274 | sub XML_end | ||
| 275 | { | ||
| 276 | my ($self) = shift; | ||
| 277 | my ($context, $tag, %attrs) = @_; | ||
| 278 | |||
| 279 | if ($tag eq 'string') | ||
| 280 | { | ||
| 281 | $self->{'strings'}[$attrs{'id'}][$attrs{'platform'}][$attrs{'encoding'}]{$attrs{'language'}} | ||
| 282 | = $context->{'text'}; | ||
| 283 | return $context; | ||
| 284 | } | ||
| 285 | else | ||
| 286 | { return $self->SUPER::XML_end(@_); } | ||
| 287 | } | ||
| 288 | |||
| 289 | =head2 is_utf8($pid, $eid) | ||
| 290 | |||
| 291 | Returns whether a string of a given platform and encoding is going to be in UTF8 | ||
| 292 | |||
| 293 | =cut | ||
| 294 | |||
| 295 | sub is_utf8 | ||
| 296 | { | ||
| 297 | my ($self, $pid, $eid) = @_; | ||
| 298 | |||
| 299 | return ($utf8 && ($pid == 0 || $pid == 3 || ($pid == 2 && ($eid != 2 || defined @cp_1252)) | ||
| 300 | || ($pid == 1 && defined $apple_encodings[$eid]))); | ||
| 301 | } | ||
| 302 | |||
| 303 | |||
| 304 | =head2 find_name($nid) | ||
| 305 | |||
| 306 | Hunts down a name in all the standard places and returns the string and for an | ||
| 307 | array context the pid, eid & lid as well | ||
| 308 | |||
| 309 | =cut | ||
| 310 | |||
| 311 | sub find_name | ||
| 312 | { | ||
| 313 | my ($self, $nid) = @_; | ||
| 314 | my ($res, $pid, $eid, $lid, $look, $k); | ||
| 315 | |||
| 316 | my (@lookup) = ([3, 1, 1033], [3, 1, -1], [2, 1, -1], [2, 2, -1], [2, 0, -1], | ||
| 317 | [0, 0, 0], [1, 0, 0]); | ||
| 318 | foreach $look (@lookup) | ||
| 319 | { | ||
| 320 | ($pid, $eid, $lid) = @$look; | ||
| 321 | if ($lid == -1) | ||
| 322 | { | ||
| 323 | foreach $k (keys %{$self->{'strings'}[$nid][$pid][$eid]}) | ||
| 324 | { | ||
| 325 | if (($res = $self->{strings}[$nid][$pid][$eid]{$k}) ne '') | ||
| 326 | { | ||
| 327 | $lid = $k; | ||
| 328 | last; | ||
| 329 | } | ||
| 330 | } | ||
| 331 | } else | ||
| 332 | { $res = $self->{strings}[$nid][$pid][$eid]{$lid} } | ||
| 333 | if ($res ne '') | ||
| 334 | { return wantarray ? ($res, $pid, $eid, $lid) : $res; } | ||
| 335 | } | ||
| 336 | return ''; | ||
| 337 | } | ||
| 338 | |||
| 339 | |||
| 340 | BEGIN { | ||
| 341 | @apple_encs = ( | ||
| 342 | <<'EOT', | ||
| 343 | M>)RES==NCW$`@.'G_S5Q*L(!#?+K1VO4:.W6IJA-:\^BM?>L>1&NP(A0Q$BL | ||
| 344 | M<*!62ZV8Z1)[K]BE$MR#O,=/7OW]7T&*6"NMI4K31EOMM)>N@XXZZ2Q#IBZZ | ||
| 345 | MZJ:['GKJ)4NVWOKHJ]\_/\!`@PR68XBAALDUW`@CC3+:&&.-,UZ>?!-,-,ED | ||
| 346 | M4TPUS70SS#3+;`7FF&N>0D7F6V"A119;8JEEEEMAI5566V.M==;;H-A&FVRV | ||
| 347 | MQ5;;_OTONJ3<%;?<5^NQ1YYXYJGG7GKME3?>>N^=#S[ZY(O/OOKNFU]^JO<[ | ||
| 348 | M!$?LLMO>$#OAH4-*4F+'[(L+E*F,6SH:%\9%]C@>1W&CN&%2:9QNO]-))5ZH | ||
| 349 | M<]9.!^/DQ/8X-V[@@#,AS0ZE+KB7R$ODA\:A26@>6H2FH9D?J17^)(I#3C@8 | ||
| 350 | MLD)V?:(^"BE.AN30,F0XK\(Y5UUVW0TW77/'W;H_;JM6HRJ1&95%M0Y'E5%5 | ||
| 351 | .5.U4]""JB<K_`B>`?E$` | ||
| 352 | EOT | ||
| 353 | |||
| 354 | undef, | ||
| 355 | undef, | ||
| 356 | undef, | ||
| 357 | <<'EOT', | ||
| 358 | M>)RES[=/%```1O$WO8G_@$'J';W70Z2WHS>5WJN%8D6%D;BZ,3*P,;#C2D(8 | ||
| 359 | M,9&)08V)+4*(1((X2'(#[.:;7[[\*./_%D,L<<230"(!@B213`JII)%.!IED | ||
| 360 | MD4T.N>213P&%%%%,B!)N4LJMR[Z<"BJIHIH::JFCG@;"--)$,RVTTD8['732 | ||
| 361 | M13>WN<-=>NBECWX&&&2(848898QQ)IADBFEFF.4>]WG`0^:89X%%'O&8)SSE | ||
| 362 | M&<]9X@4O><4R*Y?_.ZRSRQ[[''#(1S[PB<]NL\D7OO&5[_S@9TR`(XXYX1=O | ||
| 363 | M.>4W9_SAG`O^7OF=O>XW*N)WV!%''7/<"2>=<MH90D9'_-X(AHTUSG@33#1@ | ||
| 364 | MT"2333'5--/-,-,LL\TQUSSS+;#0(HL-7?DMM\)*JZRVQEKKK+?!L(TVV6R+ | ||
| 365 | 9K;;9;H<K+KGJ>S?<\K5O(G[7?/</+>Y>'``` | ||
| 366 | EOT | ||
| 367 | |||
| 368 | <<'EOT', | ||
| 369 | M>)RED$LSEW$`A9_-^00L,H-^(=>4Y%^2J'1Q*Y+[I2(BHA`B?!%J6EM1*28S | ||
| 370 | M;9II[/PI*7*_%TUN\_*VZ%W:FN9LSYEGGD,\_Q?#$?SP)X"C!!)$,"&$$L8Q | ||
| 371 | MPCG."2(X222GB,+%:<X0S5EB.$<LYXES]A>XR"42N,P5KG*-1))()H54KG.# | ||
| 372 | M--*Y20:WR"2+;'+()8]\"BBDB-O<X2[%E'"/4LJX3SD5/*"2*AY230V/>$PM | ||
| 373 | M==3SA`8::>(IS;3PC%;::'?X'^W#?&(0-Z-,,,,TL\PSQP)+K+#,*C]9XQ?K | ||
| 374 | M_.8/FVRPQ0[;[+&+S=_]_J;KX/Y6I?&U.JQ.Z[GU0@-VBNTR@;Q4G]ZI5V_U | ||
| 375 | MQG@83^-M?,PAXV6'VF'ZH&Z]4H_>J]]IO=:0W!K6B#[KBT;U56/ZIN\:UX1^ | ||
| 376 | ?:%)3FM:,9C6G>2UH44M:UHI6'?<BYX,"6O\!%-%\5``` | ||
| 377 | EOT | ||
| 378 | |||
| 379 | <<'EOT', | ||
| 380 | M>)RES5=OSG$`0.$CYR.(A(3DUS]J4WOO59O6;&F+UMY[7R&(V'N^4ETZ=*"J | ||
| 381 | M:M:H=>E*0D1B)7HC1KC0[R#G^LEA,/]7((Z(EK2B-?&TH2WM:$\'.M*)SG0A | ||
| 382 | M@:YTHSL]Z$DO>M.'OO2C/P,8R*`&/X2A#&,X(QC)*$:3R!C&,H[Q3&`BDYC, | ||
| 383 | M%))(9BK3F,X,9C*+%%*9S1S22">#N<QC/IEDL8"%+&(Q2UC*,I:S@I6L8C5K | ||
| 384 | M6,LZUK.!C6QB,UO8RC:VLZ/A7TL5Y=11P6O>N(MWO.>#.\GG(Y_YQ!>^DAT7 | ||
| 385 | M\8WZ$%$3$OC.#W(IYC=_^!N"1SWF*<]ZP1AO*:'`;*^0%V502J6'*8LRHRQR | ||
| 386 | M/.)Q3WC2TY[QG+D6FF^!19ZGR(M>BA*]3"'5(9Z8.>:YVSV-DD/CT"0T#RU" | ||
| 387 | MT]",G^YUG_L]8+$E7O6%!WUIF>4^]9K7?6R%E59YQUM6>]L:[WK/5][WH;7> | ||
| 388 | 4M,X'/O&1-WSF<P]9^BOV#YW%>_\` | ||
| 389 | EOT | ||
| 390 | |||
| 391 | <<'EOT', | ||
| 392 | M>)RERT=.%5``0-&+7K'&!B(@X/L/^/3>ZZ?SZ=*K@`KVWOL:U!68.#!&8G2@ | ||
| 393 | M$Q?F5/=@SOB0XO\$$D2**:&4)&644T$E55130RUUU--`(TTTTT(K;;3302== | ||
| 394 | M=--#[[_?1S\###+$,".,DF:,<2:89(II9KC`+'/,L\`B2RRSPBIKK+/!13;9 | ||
| 395 | M8IM+7.8*.^QRE6M<YP8WN<5M[G"7>]SG`0]YQ&.>\)1G/.<%+WG%:][PEI0G | ||
| 396 | M/>5IL\SVC#F>-=<\\SUG@846>=Y@PFBQ)9::M,QR*ZRTRFIKK+4N!+[[CD]\ | ||
| 397 | M#I%?9O*-+XGH/N?BMON=CT7\B#MQUR5^^MY#ZH('7?:PJQYQS14/L!?S,S[$ | ||
| 398 | M=,SD*[]#DH\>==UC;K@8LD)V*`B%(3?D\2<4>=Q-3[B5R#'#66>LM\%&FVRV | ||
| 399 | GQ5;;;+?#3KOLML=>4_;9[X"##CGLB*.F'7/<"2>=<CKL_06V`DD# | ||
| 400 | EOT | ||
| 401 | |||
| 402 | undef, | ||
| 403 | <<'EOT', | ||
| 404 | M>)RED-DVUG$`1;=:U*Y%0C)5O^^/SSS/F>>9#"$JE7D>"D6\3S=>Q^MPU^JF | ||
| 405 | M&^M<G[7//G1ROP1B1.130"%QBBBFA%+***>"2JJHIH9:ZJBG@4:::*:%M[32 | ||
| 406 | M1CL==_TNNNFAES[Z&6"0(889890QQIE@DG=,,<T,L[QGCGD6^,`B2WSD$Y]9 | ||
| 407 | MY@M?^<8*JZRQS@:;;+'-#KOLL<\!AQQQS'=^<,(I9_SD%^=<\)M+KN[X-U%: | ||
| 408 | M2`\9(2MDAWB(^,-U+/KKYYJ'_W_`!!_XT$23?.1C]8E/3?&9J2:;9KH9/O>% | ||
| 409 | MF;XTRVQSS#7/5[[VC<&8D?D66&C<(HLML=0RRZVPTBJ7K;;&6NNLM\%&FVRV | ||
| 410 | L):388:===MMCKP,..F2_(XXZYK#CMKGZS[YU-]QTRVUWW'7/?0]N`4(?0WT` | ||
| 411 | EOT | ||
| 412 | |||
| 413 | <<'EOT', | ||
| 414 | M>)RED,5.0U$415=(D.X!$"ANMX^VN+M#D>+N[H4"Q5W^APF_PZ\PY.9-"`-& | ||
| 415 | MY.3LG>-"#_\3@P^'8OP$"%)"*6644T$E55130RUUU--`(TTTTT(K;;3302== | ||
| 416 | M=-OZ7OH(T<\`@PP19I@11AECG`DFF6*:&6:98YX%%EEBF15666.=#3;98IL= | ||
| 417 | M=MECGP,.B7#$,5%...6,&.=<<,D5U]QPRQWW//#($\^\\,J;G?_II)ETXS79 | ||
| 418 | M)L<$C<,['S[GYSY=?FWK6E>Z^?L'BK,:KP0E*DD>R?6E*-7E='DM9BA36<I6 | ||
| 419 | MCG*5IWP5J%!%,O+)4;'\"BBH$I7:S')5J%)5JE:-M6JMUKM]FM1LL55M)EG= | ||
| 420 | GZE&O^A1R(V$-NSRF<8L3ZO3L_]KN4!$=Z5A1G>A49XKI_!M<9D8J | ||
| 421 | EOT | ||
| 422 | |||
| 423 | <<'EOT', | ||
| 424 | M>)RED,E3SW$8QU_77@<''+A]^Y5(2-F7+"%92\B^ES5ES]H,)L(8&21E*UNH | ||
| 425 | M&"8T8ZS3I(FS_T"$_`L^-^/D8)YY/^]Y/\L\"Y/Y/XN()T8"B0P@B8$,(IG! | ||
| 426 | MI#"$H0PCE>&DD<X(1C**T8QA+.,8SP0FDL&DT#^%J60RC>G,((N99#.+V<QA | ||
| 427 | M+O.83PZY+""/A2QB,?DL82G+6,X*5K**U:QA+>M8SP8**&0CF]C,%K:RC2*V | ||
| 428 | M4TP).]C)+G:SA[WLHY3]'.`@ASC,$<K"_,^QWE&?J&_4+^H?)44Q[M,<'_MS | ||
| 429 | M7USAOS[@48]YW')/>-(*3WG:,R%ZSDK/!K[@1<][R2HO6^T5:ZSUJM>\[@UO | ||
| 430 | M6F>]M[SM'>]ZSX90_\"'-MIDLX^">ASPQ*?!M_C,Y[ZP->KE*U_[QK>^\WW( | ||
| 431 | CM/O!ML"=?K3#3[Z,*_AKOR]V^=5O=OO='_ZTQU^_`2-%:*`` | ||
| 432 | EOT | ||
| 433 | |||
| 434 | undef, | ||
| 435 | undef, | ||
| 436 | undef, | ||
| 437 | undef, | ||
| 438 | undef, | ||
| 439 | undef, | ||
| 440 | undef, | ||
| 441 | undef, | ||
| 442 | undef, | ||
| 443 | <<'EOT', | ||
| 444 | M>)REC]=.E&$`1(\%&W@4004%_7:!I?>.Z-+[TJL*=K"`BH`*J,_"+2'A!7PW | ||
| 445 | MX;\2[LG<3#*9G!F2G$V!&'$***2(!,644$H9Y5102175U%!+'?4TT$@3S;30 | ||
| 446 | M2AN/:.<Q3Z)^!YUTT4T/O?31SP"###',""E&&6.<"2:98IH99IECG@6>\HSG | ||
| 447 | M+++$"U[RBM>\X2WO6&:%]WS@(Y]898W/?.$KZWQC@TVV^,X/?K+-#KO\XC=_ | ||
| 448 | M(OX!?T/"`0<=<MB1$Q?R0KXIDB%NK?TVV&B3S:?RG)`;]?<\YWDO>-$T+WG9 | ||
| 449 | M*U[UFNEF>%V]X4TSO666V=[VCG?-,==[WC?/?!_XT&#,N`466F3"8DLLM<QR | ||
| 450 | M*ZRTRFIK(GJ=]?_Y+;;:]N\HI(>LD&W2#COMLML>>^V+=IX\2<7BCCGNA)-. | ||
| 451 | 0.>V,L\XY[P*'[!\#D^='L@`` | ||
| 452 | EOT | ||
| 453 | |||
| 454 | undef, | ||
| 455 | undef, | ||
| 456 | undef, | ||
| 457 | undef, | ||
| 458 | undef, | ||
| 459 | undef, | ||
| 460 | undef, | ||
| 461 | undef, | ||
| 462 | undef, | ||
| 463 | ); | ||
| 464 | |||
| 465 | $cp_1252 = ( | ||
| 466 | <<'EOT', | ||
| 467 | M>)P-SD-B'5```,#YJ6VE>DEM&[\VD]JVF?H./4'-U+93V[9M:SV;$141(Y74 | ||
| 468 | MTD@KG?0RR"B3S++(*IOL<L@IE]SRR"N?_`J(55`AA1515!`G7C'%E5!2*:65 | ||
| 469 | M458YY550426555%5-=754%,MM=515SWU-=!05".--=%4,\VUT%(KK;715COM | ||
| 470 | M==!1)YTE2-1%5]UTUT-/O?361U_]]#?`0(,,-L10PPPWPDBCC#;&6..,-\%$ | ||
| 471 | MDTPVQ5333)=DAIEFF6V.N>:%9-$0&YD?BH22(82XF)10.3(@U(DDB$;F_/]% | ||
| 472 | M0_Y0(!0*A4-\R!5RQ]R*BX\,#'4CB?]];B3)`@LMLM@22RVSW`HKK;):LC76 | ||
| 473 | M6F>]#3;:9+,MMMIFNQUVVF6W/?;:9[\##CKDL"-2''7,<2><=,II9YQUSGD7 | ||
| 474 | M7'3)95=<=<UU-]QTRVUWW'7/?0\\],AC3SSUS',OO/3*:V^\]<Y['WSTR6=? | ||
| 475 | 1?/7-=S_\],MO?_S]!Y==>0@` | ||
| 476 | EOT | ||
| 477 | ); | ||
| 478 | } | ||
| 479 | |||
| 480 | 1; | ||
| 481 | |||
| 482 | =head1 BUGS | ||
| 483 | |||
| 484 | =over 4 | ||
| 485 | |||
| 486 | =item * | ||
| 487 | |||
| 488 | Unicode type strings will be stored in utf8 for all known platforms, | ||
| 489 | once Perl 5.6 has been released and I can find all the mapping tables, etc. | ||
| 490 | |||
| 491 | =back | ||
| 492 | |||
| 493 | =head1 AUTHOR | ||
| 494 | |||
| 495 | Martin Hosken Martin_Hosken@sil.org. See L<PDF::API3::Compat::API2::Basic::TTF::Font> for copyright and | ||
| 496 | licensing. | ||
| 497 | |||
| 498 | =cut | ||
| 499 |