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

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

Issue 21919003: pdfviewer: implementation of one type of pattern - simple tile patern, colored, with xstep and yste… (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 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 'TABLE 3.32': ['FileSpecificationDictionary', 'Entries in a file specification d ictionary'], 79 'TABLE 3.32': ['FileSpecificationDictionary', 'Entries in a file specification d ictionary'],
80 'TABLE 3.33': ['EmbeddedFileStreamDictionary', 'Additional entries in an embedde d file stream dictionary'], 80 'TABLE 3.33': ['EmbeddedFileStreamDictionary', 'Additional entries in an embedde d file stream dictionary'],
81 'TABLE 3.34': ['EmbeddedFileParameterDictionary', 'Entries in an embedded file p arameter dictionary'], 81 'TABLE 3.34': ['EmbeddedFileParameterDictionary', 'Entries in an embedded file p arameter dictionary'],
82 'TABLE 3.35': ['MacOsFileInformationDictionary', 'Entries in a Mac OS file infor mation dictionary'], 82 'TABLE 3.35': ['MacOsFileInformationDictionary', 'Entries in a Mac OS file infor mation dictionary'],
83 'TABLE 4.8': ['GraphicsStateDictionary', 'Entries in a graphics state parameter dictionary'], 83 'TABLE 4.8': ['GraphicsStateDictionary', 'Entries in a graphics state parameter dictionary'],
84 'TABLE 4.13': ['CalgrayColorSpaceDictionary', 'Entries in a CalGray color space dictionary'], 84 'TABLE 4.13': ['CalgrayColorSpaceDictionary', 'Entries in a CalGray color space dictionary'],
85 'TABLE 4.14': ['CalrgbColorSpaceDictionary', 'Entries in a CalRGB color space di ctionary'], 85 'TABLE 4.14': ['CalrgbColorSpaceDictionary', 'Entries in a CalRGB color space di ctionary'],
86 'TABLE 4.15': ['LabColorSpaceDictionary', 'Entries in a Lab color space dictiona ry'], 86 'TABLE 4.15': ['LabColorSpaceDictionary', 'Entries in a Lab color space dictiona ry'],
87 'TABLE 4.16': ['IccProfileStreamDictionary', 'Additional entries specific to an ICC profile stream dictionary'], 87 'TABLE 4.16': ['IccProfileStreamDictionary', 'Additional entries specific to an ICC profile stream dictionary'],
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', '', {'PatternType': '[datatypes.PdfInteger(1)]'}],
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'],
(...skipping 573 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