more work on pdf fonts, more to come
Review URL: https://codereview.chromium.org/18117005
git-svn-id: http://skia.googlecode.com/svn/trunk@9796 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/experimental/PdfViewer/generate_code.py b/experimental/PdfViewer/generate_code.py
index 0028cf3..0802c5e 100644
--- a/experimental/PdfViewer/generate_code.py
+++ b/experimental/PdfViewer/generate_code.py
@@ -62,7 +62,10 @@
def type(self, types):
# TODO (edisonn): if simple type, use it, otherwise set it to Dictionary, and set a mask for valid types, like array or name
types = types.strip()
- types = types.replace('or', ' ')
+ types = types.replace(' or ', ' ')
+ types = types.replace(' or,', ' ')
+ types = types.replace(',or ', ' ')
+ types = types.replace(',or,', ' ')
types = types.replace(',', ' ')
types = types.replace('text', ' ') # TODO(edisonn): what is the difference between 'text string' and 'string'?
types = types.replace('file specification', 'file_specification')