| OLD | NEW |
| 1 #!/usr/local/bin/python | 1 #!/usr/local/bin/python |
| 2 # coding: utf-8 | 2 # coding: utf-8 |
| 3 | 3 |
| 4 import sys | 4 import sys |
| 5 import re | 5 import re |
| 6 | 6 |
| 7 # TODO(edisonn): put processed part of file in a new file | 7 # TODO(edisonn): put processed part of file in a new file |
| 8 # put unprocessed part, in a new file, so we see what we miss | 8 # put unprocessed part, in a new file, so we see what we miss |
| 9 # keep blank lines, and generate a version without the blank lines | 9 # keep blank lines, and generate a version without the blank lines |
| 10 | 10 |
| (...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 101 'TABLE 4.42': ['GroupAttributesDictionary', 'Entries common to all group attribu
tes dictionaries'], | 101 'TABLE 4.42': ['GroupAttributesDictionary', 'Entries common to all group attribu
tes dictionaries'], |
| 102 'TABLE 4.43': ['ReferenceDictionary', 'Entries in a reference dictionary'], | 102 'TABLE 4.43': ['ReferenceDictionary', 'Entries in a reference dictionary'], |
| 103 'TABLE 4.44': ['PSXobjectDictionary', 'Additional entries specific to a PostScri
pt XObject dictionary'], | 103 'TABLE 4.44': ['PSXobjectDictionary', 'Additional entries specific to a PostScri
pt XObject dictionary'], |
| 104 'TABLE 5.8': ['Type1FontDictionary', 'Entries in a Type 1 font dictionary', 'Fon
tDictionary', {'Subtype': '[datatypes.PdfName(\'Type1\')]'}], | 104 'TABLE 5.8': ['Type1FontDictionary', 'Entries in a Type 1 font dictionary', 'Fon
tDictionary', {'Subtype': '[datatypes.PdfName(\'Type1\')]'}], |
| 105 'TABLE 5.9': ['Type3FontDictionary', 'Entries in a Type 3 font dictionary', 'Typ
e1FontDictionary', {'Subtype': '[datatypes.PdfName(\'Type3\')]'}], | 105 'TABLE 5.9': ['Type3FontDictionary', 'Entries in a Type 3 font dictionary', 'Typ
e1FontDictionary', {'Subtype': '[datatypes.PdfName(\'Type3\')]'}], |
| 106 'TABLE 5.11': ['EncodingDictionary', 'Entries in an encoding dictionary'], | 106 'TABLE 5.11': ['EncodingDictionary', 'Entries in an encoding dictionary'], |
| 107 'TABLE 5.12': ['CIDSystemInfoDictionary', 'Entries in a CIDSystemInfo dictionary
'], | 107 'TABLE 5.12': ['CIDSystemInfoDictionary', 'Entries in a CIDSystemInfo dictionary
'], |
| 108 'TABLE 5.13': ['CIDFontDictionary', 'Entries in a CIDFont dictionary', 'FontDict
ionary', {'Subtype': '[datatypes.PdfName(\'CIDFontType0\'), datatypes.PdfName(\'
CIDFontType2\')]'}], | 108 'TABLE 5.13': ['CIDFontDictionary', 'Entries in a CIDFont dictionary', 'FontDict
ionary', {'Subtype': '[datatypes.PdfName(\'CIDFontType0\'), datatypes.PdfName(\'
CIDFontType2\')]'}], |
| 109 'TABLE 5.16': ['CMapDictionary', 'Additional entries in a CMap dictionary'], | 109 'TABLE 5.16': ['CMapDictionary', 'Additional entries in a CMap dictionary'], |
| 110 'TABLE 5.17': ['Type0FontDictionary', 'Entries in a Type 0 font dictionary', 'Fo
ntDictionary', {'Subtype': '[datatypes.PdfName(\'Type0\')]'}], | 110 'TABLE 5.17': ['Type0FontDictionary', 'Entries in a Type 0 font dictionary', 'Fo
ntDictionary', {'Subtype': '[datatypes.PdfName(\'Type0\')]'}], |
| 111 'TABLE 5.18': ['FontDescriptorDictionary', 'Entries common to all font descripto
rs'], | 111 'TABLE 5.18': ['FontDescriptorDictionary', 'Entries common to all font descripto
rs', '', {'Type': '[datatypes.PdfName(\'FontDescriptor\')]'}], |
| 112 'TABLE 5.20': ['CIDFontDescriptorDictionary', 'Additional font descriptor entrie
s for CIDFonts'], | 112 'TABLE 5.20': ['CIDFontDescriptorDictionary', 'Additional font descriptor entrie
s for CIDFonts'], |
| 113 'TABLE 5.23': ['EmbeddedFontStreamDictionary', 'Additional entries in an embedde
d font stream dictionary'], | 113 'TABLE 5.23': ['EmbeddedFontStreamDictionary', 'Additional entries in an embedde
d font stream dictionary'], |
| 114 'TABLE 6.3': ['Type1HalftoneDictionary', 'Entries in a type 1 halftone dictionar
y'], | 114 'TABLE 6.3': ['Type1HalftoneDictionary', 'Entries in a type 1 halftone dictionar
y'], |
| 115 'TABLE 6.4': ['Type6HalftoneDictionary', 'Additional entries specific to a type
6 halftone dictionary'], | 115 'TABLE 6.4': ['Type6HalftoneDictionary', 'Additional entries specific to a type
6 halftone dictionary'], |
| 116 'TABLE 6.5': ['Type10HalftoneDictionary', 'Additional entries specific to a type
10 halftone dictionary'], | 116 'TABLE 6.5': ['Type10HalftoneDictionary', 'Additional entries specific to a type
10 halftone dictionary'], |
| 117 'TABLE 6.6': ['Type16HalftoneDictionary', 'Additional entries specific to a type
16 halftone dictionary'], | 117 'TABLE 6.6': ['Type16HalftoneDictionary', 'Additional entries specific to a type
16 halftone dictionary'], |
| 118 'TABLE 6.7': ['Type5HalftoneDictionary', 'Entries in a type 5 halftone dictionar
y'], | 118 'TABLE 6.7': ['Type5HalftoneDictionary', 'Entries in a type 5 halftone dictionar
y'], |
| 119 'TABLE 7.10': ['SoftMaskDictionary', 'Entries in a soft-mask dictionary'], | 119 'TABLE 7.10': ['SoftMaskDictionary', 'Entries in a soft-mask dictionary'], |
| 120 'TABLE 7.12': ['SoftMaskImageDictionary', 'Additional entry in a soft-mask image
dictionary'], | 120 'TABLE 7.12': ['SoftMaskImageDictionary', 'Additional entry in a soft-mask image
dictionary'], |
| 121 'TABLE 7.13': ['TransparencyGroupDictionary', 'Additional entries specific to a
transparency group attributes dictionary'], | 121 'TABLE 7.13': ['TransparencyGroupDictionary', 'Additional entries specific to a
transparency group attributes dictionary'], |
| (...skipping 502 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 624 print(' knowTypes[\'' + tableToClassName[e][0] + '\'] = [\'SkPdf' + tableTo
ClassName[e][0] + '*\', \'' + tableToClassName[e][0] + 'FromDictionary\', dataty
pes.CppNull(), \'ret->podofo()->GetDataType() == ePdfDataType_Dictionary\']') | 624 print(' knowTypes[\'' + tableToClassName[e][0] + '\'] = [\'SkPdf' + tableTo
ClassName[e][0] + '*\', \'' + tableToClassName[e][0] + 'FromDictionary\', dataty
pes.CppNull(), \'ret->podofo()->GetDataType() == ePdfDataType_Dictionary\']') |
| 625 print | 625 print |
| 626 print | 626 print |
| 627 | 627 |
| 628 | 628 |
| 629 #print lines | 629 #print lines |
| 630 fnewspec.close() | 630 fnewspec.close() |
| 631 | 631 |
| 632 if '__main__' == __name__: | 632 if '__main__' == __name__: |
| 633 sys.exit(generateDef()) | 633 sys.exit(generateDef()) |
| OLD | NEW |