|
1
|
|
|
<?php |
|
2
|
|
|
|
|
3
|
|
|
/** |
|
4
|
|
|
* @file |
|
5
|
|
|
* This file is part of the PdfParser library. |
|
6
|
|
|
* |
|
7
|
|
|
* @author Sébastien MALOT <[email protected]> |
|
8
|
|
|
* @date 2017-01-03 |
|
9
|
|
|
* |
|
10
|
|
|
* @license LGPLv3 |
|
11
|
|
|
* @url <https://github.com/smalot/pdfparser> |
|
12
|
|
|
* |
|
13
|
|
|
* PdfParser is a pdf library written in PHP, extraction oriented. |
|
14
|
|
|
* Copyright (C) 2017 - Sébastien MALOT <[email protected]> |
|
15
|
|
|
* |
|
16
|
|
|
* This program is free software: you can redistribute it and/or modify |
|
17
|
|
|
* it under the terms of the GNU Lesser General Public License as published by |
|
18
|
|
|
* the Free Software Foundation, either version 3 of the License, or |
|
19
|
|
|
* (at your option) any later version. |
|
20
|
|
|
* |
|
21
|
|
|
* This program is distributed in the hope that it will be useful, |
|
22
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
23
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
24
|
|
|
* GNU Lesser General Public License for more details. |
|
25
|
|
|
* |
|
26
|
|
|
* You should have received a copy of the GNU Lesser General Public License |
|
27
|
|
|
* along with this program. |
|
28
|
|
|
* If not, see <http://www.pdfparser.org/sites/default/LICENSE.txt>. |
|
29
|
|
|
*/ |
|
30
|
|
|
|
|
31
|
|
|
// Source : http://cpansearch.perl.org/src/JV/PostScript-Font-1.10.02/lib/PostScript/StandardEncoding.pm |
|
32
|
|
|
|
|
33
|
|
|
namespace Smalot\PdfParser\Encoding; |
|
34
|
|
|
|
|
35
|
|
|
/** |
|
36
|
|
|
* Class StandardEncoding |
|
37
|
|
|
*/ |
|
38
|
|
|
class StandardEncoding |
|
39
|
|
|
{ |
|
40
|
2 |
|
public function getTranslations() |
|
41
|
|
|
{ |
|
42
|
|
|
$encoding = |
|
43
|
|
|
'.notdef .notdef .notdef .notdef .notdef .notdef .notdef .notdef '. |
|
44
|
|
|
'.notdef .notdef .notdef .notdef .notdef .notdef .notdef .notdef '. |
|
45
|
|
|
'.notdef .notdef .notdef .notdef .notdef .notdef .notdef .notdef '. |
|
46
|
|
|
'.notdef .notdef .notdef .notdef .notdef .notdef .notdef .notdef '. |
|
47
|
|
|
'space exclam quotedbl numbersign dollar percent ampersand quoteright '. |
|
48
|
|
|
'parenleft parenright asterisk plus comma hyphen period slash zero '. |
|
49
|
|
|
'one two three four five six seven eight nine colon semicolon less '. |
|
50
|
|
|
'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 '. |
|
51
|
|
|
'V W X Y Z bracketleft backslash bracketright asciicircum underscore '. |
|
52
|
|
|
'quoteleft a b c d e f g h i j k l m n o p q r s t u v w x y z '. |
|
53
|
|
|
'braceleft bar braceright asciitilde .notdef .notdef .notdef .notdef '. |
|
54
|
|
|
'.notdef .notdef .notdef .notdef .notdef .notdef .notdef .notdef '. |
|
55
|
|
|
'.notdef .notdef .notdef .notdef .notdef .notdef .notdef .notdef '. |
|
56
|
|
|
'.notdef .notdef .notdef .notdef .notdef .notdef .notdef .notdef '. |
|
57
|
|
|
'.notdef .notdef .notdef .notdef .notdef .notdef exclamdown cent '. |
|
58
|
|
|
'sterling fraction yen florin section currency quotesingle '. |
|
59
|
|
|
'quotedblleft guillemotleft guilsinglleft guilsinglright fi fl '. |
|
60
|
|
|
'.notdef endash dagger daggerdbl periodcentered .notdef paragraph '. |
|
61
|
|
|
'bullet quotesinglbase quotedblbase quotedblright guillemotright '. |
|
62
|
|
|
'ellipsis perthousand .notdef questiondown .notdef grave acute '. |
|
63
|
|
|
'circumflex tilde macron breve dotaccent dieresis .notdef ring '. |
|
64
|
|
|
'cedilla .notdef hungarumlaut ogonek caron emdash .notdef .notdef '. |
|
65
|
|
|
'.notdef .notdef .notdef .notdef .notdef .notdef .notdef .notdef '. |
|
66
|
|
|
'.notdef .notdef .notdef .notdef .notdef .notdef AE .notdef '. |
|
67
|
|
|
'ordfeminine .notdef .notdef .notdef .notdef Lslash Oslash OE '. |
|
68
|
|
|
'ordmasculine .notdef .notdef .notdef .notdef .notdef ae .notdef '. |
|
69
|
|
|
'.notdef .notdef dotlessi .notdef .notdef lslash oslash oe germandbls '. |
|
70
|
2 |
|
'.notdef .notdef .notdef .notdef'; |
|
71
|
|
|
|
|
72
|
2 |
|
return explode(' ', $encoding); |
|
73
|
|
|
} |
|
74
|
|
|
} |
|
75
|
|
|
|