Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(479)

Side by Side Diff: experimental/PdfViewer/spec2def.py

Issue 18117005: more work on pdf fonts, more to come (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: Created 7 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « experimental/PdfViewer/generate_code.py ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 'TABLE 4.35': ['ImageDictionary', 'Additional entries specific to an image dicti onary', 'XObjectDictionary', {'Subtype': '[datatypes.PdfName(\'Image\')]'}], 98 'TABLE 4.35': ['ImageDictionary', 'Additional entries specific to an image dicti onary', 'XObjectDictionary', {'Subtype': '[datatypes.PdfName(\'Image\')]'}],
99 'TABLE 4.37': ['AlternateImageDictionary', 'Entries in an alternate image dictio nary'], 99 'TABLE 4.37': ['AlternateImageDictionary', 'Entries in an alternate image dictio nary'],
100 'TABLE 4.41': ['Type1FormDictionary', 'Additional entries specific to a type 1 f orm dictionary', 'XObjectDictionary', {'Subtype': '[datatypes.PdfName(\'Form\')] '}], 100 'TABLE 4.41': ['Type1FormDictionary', 'Additional entries specific to a type 1 f orm dictionary', 'XObjectDictionary', {'Subtype': '[datatypes.PdfName(\'Form\')] '}],
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', '', {'Sub type': '[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', '', {'Type': '[datatypes.PdfName(\'FontDescriptor\')]'}], 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'],
(...skipping 505 matching lines...) Expand 10 before | Expand all | Expand 10 after
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())
OLDNEW
« no previous file with comments | « experimental/PdfViewer/generate_code.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698