Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
postscript [2020/02/21 16:22] christian [PostScript programming introduction] |
postscript [2020/02/23 15:53] (current) christian [Get the code] |
||
---|---|---|---|
Line 9: | Line 9: | ||
===== Get the code ===== | ===== Get the code ===== | ||
- | Load the package | + | Load the packages **[Values]** and **[PostScript]** from the [[storeaccess|Cincom Public Store]] into your [[http:// |
- | Tests are in package **[PostScript Testing]**. | + | Tests are in package **[PostScript Testing]**. The package can be used stand-alone without PDFtalk. It only depends on the **[Values]** package. |
- | The bundle | + | The package is now part of the **{PDFtalk}** |
===== Use it ===== | ===== Use it ===== | ||
Line 46: | Line 46: | ||
Ultimately I want to extract text from PDFs for which I need CMaps. | Ultimately I want to extract text from PDFs for which I need CMaps. | ||
- | Also, I like PostScript. I used it quite a bit to write UIs with Display PostScript on a Sun Solaris | + | Also, I like PostScript. I used it quite a bit to write UIs with Display PostScript on a Sun NeWS(([[https:// |
===== PostScript programming introduction ===== | ===== PostScript programming introduction ===== | ||
Line 81: | Line 81: | ||
* **system dict** " | * **system dict** " | ||
- | New definitions are put into the topmost dictionary of the stack. This allows programs to override system definitions. The NeWS(([[https:// | + | New definitions are put into the topmost dictionary of the stack. This allows programs to override system definitions. The NeWS system |
The dictionaries can be named with an interesting trick: the dictionary itself is stored under a key which is interpreted as its name. The system dict for example is constructed like: | The dictionaries can be named with an interesting trick: the dictionary itself is stored under a key which is interpreted as its name. The system dict for example is constructed like: | ||
Line 93: | Line 93: | ||
This creates a recursive structure which is not handled well by the standard Smalltalk dictionary, hence '' | This creates a recursive structure which is not handled well by the standard Smalltalk dictionary, hence '' | ||
- | ==== Gemstone ==== | + | |
- | + | | |
- | Interestingly, | + | |
(more will be written on demand...) | (more will be written on demand...) |