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

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

Issue 17294008: load font manually, for now Type0 (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: Created 7 years, 6 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/pdfspec_autogen.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 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 'TABLE 4.20': ['DeviceNColorSpaceDictionary', 'Entry in a DeviceN color space at tributes dictionary'], 88 'TABLE 4.20': ['DeviceNColorSpaceDictionary', 'Entry in a DeviceN color space at tributes dictionary'],
89 'TABLE 4.22': ['Type1PatternDictionary', 'Additional entries specific to a type 1 pattern dictionary'], 89 'TABLE 4.22': ['Type1PatternDictionary', 'Additional entries specific to a type 1 pattern dictionary'],
90 'TABLE 4.23': ['Type2PatternDictionary', 'Entries in a type 2 pattern dictionary '], 90 'TABLE 4.23': ['Type2PatternDictionary', 'Entries in a type 2 pattern dictionary '],
91 'TABLE 4.25': ['ShadingDictionary', 'Entries common to all shading dictionaries' ], 91 'TABLE 4.25': ['ShadingDictionary', 'Entries common to all shading dictionaries' ],
92 'TABLE 4.26': ['Type1ShadingDictionary', 'Additional entries specific to a type 1 shading dictionary', 'ShadingDictionary'], 92 'TABLE 4.26': ['Type1ShadingDictionary', 'Additional entries specific to a type 1 shading dictionary', 'ShadingDictionary'],
93 'TABLE 4.27': ['Type2ShadingDictionary', 'Additional entries specific to a type 2 shading dictionary', 'ShadingDictionary'], 93 'TABLE 4.27': ['Type2ShadingDictionary', 'Additional entries specific to a type 2 shading dictionary', 'ShadingDictionary'],
94 'TABLE 4.28': ['Type3ShadingDictionary', 'Additional entries specific to a type 3 shading dictionary', 'ShadingDictionary'], 94 'TABLE 4.28': ['Type3ShadingDictionary', 'Additional entries specific to a type 3 shading dictionary', 'ShadingDictionary'],
95 'TABLE 4.29': ['Type4ShadingDictionary', 'Additional entries specific to a type 4 shading dictionary', 'ShadingDictionary'], 95 'TABLE 4.29': ['Type4ShadingDictionary', 'Additional entries specific to a type 4 shading dictionary', 'ShadingDictionary'],
96 'TABLE 4.30': ['Type5ShadingDictionary', 'Additional entries specific to a type 5 shading dictionary', 'ShadingDictionary'], 96 'TABLE 4.30': ['Type5ShadingDictionary', 'Additional entries specific to a type 5 shading dictionary', 'ShadingDictionary'],
97 'TABLE 4.31': ['Type6ShadingDictionary', 'Additional entries specific to a type 6 shading dictionary', 'ShadingDictionary'], 97 'TABLE 4.31': ['Type6ShadingDictionary', 'Additional entries specific to a type 6 shading dictionary', 'ShadingDictionary'],
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'], 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', 'Fon tDictionary'], 105 'TABLE 5.9': ['Type3FontDictionary', 'Entries in a Type 3 font dictionary', 'Typ e0FontDictionary', {'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'], 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'], 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'],
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'],
(...skipping 481 matching lines...) Expand 10 before | Expand all | Expand 10 after
602 # close last table if it was not closed already 602 # close last table if it was not closed already
603 stopTable() 603 stopTable()
604 604
605 print 605 print
606 606
607 #print lines 607 #print lines
608 fnewspec.close() 608 fnewspec.close()
609 609
610 if '__main__' == __name__: 610 if '__main__' == __name__:
611 sys.exit(generateDef()) 611 sys.exit(generateDef())
OLDNEW
« no previous file with comments | « experimental/PdfViewer/pdfspec_autogen.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698