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

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

Issue 21288002: pdfviewer: (in progress, uploaded for backup): transparency groups - isolated and knockout flags (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: Created 7 years, 4 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/pdfparser/native/SkPdfObject.h ('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 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
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'],
119 'TABLE 7.10': ['SoftMaskDictionary', 'Entries in a soft-mask dictionary', '', {' S': '[datatypes.PdfName(\'Alpha\'), datatypes.PdfName(\'Luminosity\')]'}], 119 'TABLE 7.10': ['SoftMaskDictionary', 'Entries in a soft-mask dictionary', '', {' S': '[datatypes.PdfName(\'Alpha\'), datatypes.PdfName(\'Luminosity\')]'}],
120 'TABLE 7.12': ['SoftMaskImageDictionary', 'Additional entry in a soft-mask image dictionary', 'ImageDictionary', {'Subtype': '[datatypes.PdfName(\'Image\')]', ' ColorSpace': '[datatypes.PdfName(\'DeviceGray\'), datatypes.PdfName(\'Gray\')]'} ], 120 'TABLE 7.12': ['SoftMaskImageDictionary', 'Additional entry in a soft-mask image dictionary', 'ImageDictionary', {'Subtype': '[datatypes.PdfName(\'Image\')]', ' ColorSpace': '[datatypes.PdfName(\'DeviceGray\'), datatypes.PdfName(\'Gray\')]'} ],
121 'TABLE 7.13': ['TransparencyGroupDictionary', 'Additional entries specific to a transparency group attributes dictionary', 'XObjectDictionary', {'S': '[datatype s.PdfName(\'Transparency\')]'}], 121 'TABLE 7.13': ['TransparencyGroupDictionary', 'Additional entries specific to a transparency group attributes dictionary', '', {'S': '[datatypes.PdfName(\'Trans parency\')]'}],
122 'TABLE 8.1': ['ViewerPreferencesDictionary', 'Entries in a viewer preferences di ctionary'], 122 'TABLE 8.1': ['ViewerPreferencesDictionary', 'Entries in a viewer preferences di ctionary'],
123 'TABLE 8.3': ['OutlineDictionary', 'Entries in the outline dictionary'], 123 'TABLE 8.3': ['OutlineDictionary', 'Entries in the outline dictionary'],
124 'TABLE 8.4': ['OutlineItemDictionary', 'Entries in an outline item dictionary'], 124 'TABLE 8.4': ['OutlineItemDictionary', 'Entries in an outline item dictionary'],
125 'TABLE 8.6': ['PageLabelDictionary', 'Entries in a page label dictionary'], 125 'TABLE 8.6': ['PageLabelDictionary', 'Entries in a page label dictionary'],
126 'TABLE 8.7': ['ThreadDictionary', 'Entries in a thread dictionary'], 126 'TABLE 8.7': ['ThreadDictionary', 'Entries in a thread dictionary'],
127 'TABLE 8.8': ['BeadDictionary', 'Entries in a bead dictionary'], 127 'TABLE 8.8': ['BeadDictionary', 'Entries in a bead dictionary'],
128 'TABLE 8.9': ['TransitionDictionary', 'Entries in a transition dictionary'], 128 'TABLE 8.9': ['TransitionDictionary', 'Entries in a transition dictionary'],
129 'TABLE 8.10': ['AnnotationDictionary', 'Entries common to all annotation diction aries'], 129 'TABLE 8.10': ['AnnotationDictionary', 'Entries common to all annotation diction aries'],
130 'TABLE 8.12': ['BorderStyleDictionary', 'Entries in a border style dictionary'], 130 'TABLE 8.12': ['BorderStyleDictionary', 'Entries in a border style dictionary'],
131 'TABLE 8.13': ['AppearanceDictionary', 'Entries in an appearance dictionary'], 131 'TABLE 8.13': ['AppearanceDictionary', 'Entries in an appearance dictionary'],
(...skipping 541 matching lines...) Expand 10 before | Expand all | Expand 10 after
673 #TODO(edisonn): build this map 673 #TODO(edisonn): build this map
674 674
675 fspecPy.write(' knowTypes[\'' + tableToClassName[e][0] + '\'] = [\'SkPdf' + tableToClassName[e][0] + '*\', \'(SkPdf' + tableToClassName[e][0] + '*)ret\', d atatypes.CppNull(), \'ret->isDictionary() && ((SkPdf' + tableToClassName[e][0] + '*)ret)->valid()\', \'A_DICTIONARY\']\n') 675 fspecPy.write(' knowTypes[\'' + tableToClassName[e][0] + '\'] = [\'SkPdf' + tableToClassName[e][0] + '*\', \'(SkPdf' + tableToClassName[e][0] + '*)ret\', d atatypes.CppNull(), \'ret->isDictionary() && ((SkPdf' + tableToClassName[e][0] + '*)ret)->valid()\', \'A_DICTIONARY\']\n')
676 fspecPy.write('\n') 676 fspecPy.write('\n')
677 677
678 #print lines 678 #print lines
679 #fnewspec.close() 679 #fnewspec.close()
680 680
681 if '__main__' == __name__: 681 if '__main__' == __name__:
682 sys.exit(generateDef()) 682 sys.exit(generateDef())
OLDNEW
« no previous file with comments | « experimental/PdfViewer/pdfparser/native/SkPdfObject.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698