I have to manipulate some PDF files directly so I was looking for a TextMate Bundle for PDF/FDF files.
They have a pretty weird syntax, so I'm not sure which bundle might be useful as a starting point. I have the PDF reference (1,310 pages of excruciating detail) but I'm looking for something simple to at least make some logical sense from this 'non-human-readable' language :)
Any pointers to a similar or even a partial bundle would be appreciated. Thanks Darryl Zurn
Sample PDF internal syntax (PDF 1.7 Reference, page 1059):
%PDF−1. 4 1 0 obj << /Type /Catalog /Outlines 2 0 R /Pages 3 0 R >> endobj 2 0 obj << /Type Outlines /Count 0 >> endobj 3 0 obj << /Type /Pages /Kids [ 4 0 R ] /Count 1 >> endobj 4 0 obj << /Type /Page /Parent 3 0 R /MediaBox [ 0 0 612 792 ] /Contents 5 0 R /Resources << /ProcSet 6 0 R >> >> endobj 5 0 obj << /Length 35 >> stream % … Page-marking operators … endstream endobj 6 0 obj [ /PDF ] endobj xref 0 7 0000000000 65535 f 0000000009 00000 n 0000000074 00000 n 0000000120 00000 n 0000000179 00000 n 0000000300 00000 n 0000000384 00000 n trailer << /Size 7 /Root 1 0 R >> startxref 408 %%EOF
Apparently the PDF syntax is a subset of the PostScript language syntax. So anything which would be useful for PostScript would also be useful for the PDF language. --DZ
dzurn wrote:
I have to manipulate some PDF files directly so I was looking for a TextMate Bundle for PDF/FDF files.
They have a pretty weird syntax, so I'm not sure which bundle might be useful as a starting point. I have the PDF reference (1,310 pages of excruciating detail) but I'm looking for something simple to at least make some logical sense from this 'non-human-readable' language :)
Any pointers to a similar or even a partial bundle would be appreciated. Thanks Darryl Zurn
I wouldn't hold my hopes up, unless there are many people who work directly with pdf/ps files, and I don't know of any such people personally. You might have to start from scratch. What kind of functionality were you looking for from the bundle? Just some sort of syntax highlight, or something more?
On Apr 30, 2008, at 11:45 AM, dzurn wrote:
Apparently the PDF syntax is a subset of the PostScript language syntax. So anything which would be useful for PostScript would also be useful for the PDF language. --DZ
dzurn wrote:
I have to manipulate some PDF files directly so I was looking for a TextMate Bundle for PDF/FDF files.
They have a pretty weird syntax, so I'm not sure which bundle might be useful as a starting point. I have the PDF reference (1,310 pages of excruciating detail) but I'm looking for something simple to at least make some logical sense from this 'non-human-readable' language :)
Any pointers to a similar or even a partial bundle would be appreciated. Thanks Darryl Zurn
-- View this message in context: http://www.nabble.com/Bundle-or- Language-Grammar-for-raw-PDF-syntax--tp16985609p16985758.html Sent from the textmate users mailing list archive at Nabble.com.
For new threads USE THIS: textmate@lists.macromates.com (threading gets destroyed and the universe will collapse if you don't) http://lists.macromates.com/mailman/listinfo/textmate
Haris Skiadas Department of Mathematics and Computer Science Hanover College
Once I read the reference further, I realized that PostScript would be the general case that I really wanted.
So searching for "textmate postscript" I came across the PostScript.tmbundle which gave me nice syntax highlighting. I was looking mainly for indentation help, partly to decode everything going on with a PostScript file which had almost all whitespace removed.
Finding that the PS language is oriented towards dictionaries with key and value pairs, really helped me understand the structure.
Then after I found http://macromates.com/svn/Bundles/trunk/Bundles/Postscript.tmbundle/ I could use the Get Bundle to actually install the existing PostScript.tmbundle.
That contains a language grammar and comment, but the scopes all seem to match so hopefully an indent capability might not be too hard to create.
Darryl
Charilaos Skiadas-3 wrote:
I wouldn't hold my hopes up, unless there are many people who work directly with pdf/ps files, and I don't know of any such people personally. You might have to start from scratch. What kind of functionality were you looking for from the bundle? Just some sort of syntax highlight, or something more?
On Apr 30, 2008, at 11:45 AM, dzurn wrote:
Apparently the PDF syntax is a subset of the PostScript language syntax. So anything which would be useful for PostScript would also be useful for the PDF language. --DZ
dzurn wrote:
I have to manipulate some PDF files directly so I was looking for a TextMate Bundle for PDF/FDF files.
They have a pretty weird syntax, so I'm not sure which bundle might be useful as a starting point. I have the PDF reference (1,310 pages of excruciating detail) but I'm looking for something simple to at least make some logical sense from this 'non-human-readable' language :)
Any pointers to a similar or even a partial bundle would be appreciated. Thanks Darryl Zurn
-- View this message in context: http://www.nabble.com/Bundle-or- Language-Grammar-for-raw-PDF-syntax--tp16985609p16985758.html Sent from the textmate users mailing list archive at Nabble.com.
For new threads USE THIS: textmate@lists.macromates.com (threading gets destroyed and the universe will collapse if you don't) http://lists.macromates.com/mailman/listinfo/textmate
Haris Skiadas Department of Mathematics and Computer Science Hanover College
For new threads USE THIS: textmate@lists.macromates.com (threading gets destroyed and the universe will collapse if you don't) http://lists.macromates.com/mailman/listinfo/textmate
On Apr 30, 2008, at 2:26 PM, dzurn wrote:
Once I read the reference further, I realized that PostScript would be the general case that I really wanted.
So searching for "textmate postscript" I came across the PostScript.tmbundle which gave me nice syntax highlighting. I was looking mainly for indentation help, partly to decode everything going on with a PostScript file which had almost all whitespace removed.
Finding that the PS language is oriented towards dictionaries with key and value pairs, really helped me understand the structure.
Then after I found http://macromates.com/svn/Bundles/trunk/Bundles/Postscript.tmbundle/ I could use the Get Bundle to actually install the existing PostScript.tmbundle.
That contains a language grammar and comment, but the scopes all seem to match so hopefully an indent capability might not be too hard to create.
Select the whole text, and use Text -> Indent Selection. Hopefully this will do the trick.
Darryl
Haris Skiadas Department of Mathematics and Computer Science Hanover College