-
-
Notifications
You must be signed in to change notification settings - Fork 85
/
postscript.scroll
163 lines (143 loc) · 5.21 KB
/
postscript.scroll
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
import ../code/conceptPage.scroll
id postscript
name PostScript
appeared 1982
creators John Warnock and Chuck Geschke and Doug Brotz and Ed Taft and Bill Paxton
tags textMarkup
conceptDescription Postscript is a graphical page description language invented by ChuckGetsche and JohnWarnock (the President and CEO of Adobe). Its syntax looks a little bit like Forth, because it is derived from Forth; however, Postscript's internal implementation has nothing to do with Forth.
fileType text
documentation https://www.pdfa.org/norm-refs/PLRM.pdf
rosettaCode http://www.rosettacode.org/wiki/Category:PostScript
quineRelay PostScript
centralPackageRepositoryCount 0
ubuntuPackage ghostscript
country United States
originCommunity Adobe
helloWorldCollection PostScript
% Hello World in Postscript
%!PS
/Palatino-Roman findfont
100 scalefont
setfont
100 100 moveto
(Hello World!) show
showpage
pygmentsHighlighter PostScript
filename graphics.py
fileExtensions ps eps
rijuRepl https://riju.codes/postscript
example
(Hello, world!) =
leachim6 PostScript
filepath p/PostScript.ps
fileExtensions ps
example
% run> gs -q -sDEVICE=nullpage postscript.ps
(Hello World\n) print quit
lineCommentToken %
printToken print
hasComments true
hasPostfixNotation true
hasLineComments true
% A comment
hasPrintDebugging true
hasSemanticIndentation false
hasOctals true
% [0-9]+\#(\-|\+)?([0-9]+\.?|[0-9]*\.[0-9]+|[0-9]+\.[0-9]*)((e|E)[0-9]+)?(?=[()<>\[\]{}/%\s])
hasHexadecimals true
% <[0-9A-Fa-f]+>(?=[()<>\[\]{}/%\s])
hasFloats true
% (\-|\+)?([0-9]+\.?|[0-9]*\.[0-9]+|[0-9]+\.[0-9]*)((e|E)[0-9]+)?(?=[()<>\[\]{}/%\s])
hasIntegers true
% (\-|\+)?[0-9]+(?=[()<>\[\]{}/%\s])
hasMultiLineComments true
wikipedia https://en.wikipedia.org/wiki/PostScript
example
/mm {360 mul 127 div} def
0 0 moveto
0 40 mm lineto stroke
related ghostscript lisp pdf ascii tex forth reverse-polish-notation latex
summary PostScript (PS) is a page description language in the electronic publishing and desktop publishing business. It is a dynamically typed, concatenative programming language and was created at Adobe Systems by John Warnock, Charles Geschke, Doug Brotz, Ed Taft and Bill Paxton from 1982 to 1984.
pageId 24080
dailyPageViews 473
created 2001
backlinksCount 942
revisionCount 914
appeared 1982
hopl https://hopl.info/showlanguage.prx?exp=1010
tiobe PostScript
githubBigQuery PostScript
repos 4145
users 3932
linguistGrammarRepo https://github.com/textmate/postscript.tmbundle
firstCommit 2006
lastCommit 2011
committerCount 3
commitCount 10
sampleCount 2
example
%!PS-Adobe-3.0
%%Creator: Aaron Puchert
%%Title: The Sierpinski triangle
%%Pages: 1
%%PageOrder: Ascend
%%BeginProlog
% PAGE SETTINGS
/pageset {
28.3464566 28.3464566 scale % set cm = 1
0.5 0.5 translate
0 setlinewidth
} def
% sierpinski(n) draws a sierpinski triangle of order n
/sierpinski {
dup 0 gt {
[0.5 0 0 0.5 0 0] concat dup 1 sub sierpinski
[1 0 0 1 1 0] concat dup 1 sub sierpinski
[1 0 0 1 -1 1] concat dup 1 sub sierpinski
[2 0 0 2 0 -1] concat
} {
newpath
0 0 moveto
1 0 lineto
0 1 lineto
closepath
fill
} ifelse pop} def
%%EndProlog
%%BeginSetup
<< /PageSize [596 843] >> setpagedevice % A4
%%EndSetup
%%Page: Test 1
pageset
[20 0 10 300 sqrt 0 0] concat
9 sierpinski
showpage
%%EOF
isbndb 11
year|publisher|title|authors|isbn13
1991|Peachpit Press Publications|Inside PostScript|Frank Braswell|9780938151104
2004|Cambridge University Press|Mathematical Illustrations: A Manual of Geometry and PostScript|Casselman, Bill|9780521547888
1991|Addison-Wesley|Programming the Display Postscript System With Nextstep|Adobe Systems|9780201581355
2005|Cambridge University Press|Mathematical Illustrations: A Manual of Geometry and PostScript|Casselman, Bill|9780521839211
1990|Addison-wesley Longman, Incorporated|Display Postscript Programming|David A. Holzgang|9780201518146
1987|Sybex|Understanding Postscript Programming|David A Holzgang|9780895883964
1988|Sybex|Understanding Postscript Programming|David A Holzgang|9780895885661
2018|Springer|Postscript & Acrobat/pdf|Thomas Merz|9783642603846
1994|Van Nostrand Reinhold Computer|Postscript Typeface Library: Sans Serif Design, Outline & Ornaments|Tony Esposito and Jean Callan King|9780442014940
1993|Addison-wesley|Programming The Display Postscript System With X (apl)|Adobe Systems|9780201622034
1996|Springer|Postscript And Acrobat/pdf: Applications, Troubleshooting, And Cross-platform-publishing|Thomas Merz|9783540608547
githubLanguage PostScript
fileExtensions ps eps epsi pfa
trendingProjectsCount 0
type markup
aceMode text
tmScope source.postscript
aliases postscr
repos 8053
semanticScholar 1
year|title|doi|citations|influentialCitations|authors|paperId
2007|Teaching compiler construction and language design: making the case for unusual compiler projects with postscript as the target language|10.1145/1227310.1227460|13|0|Martin Ruckert|91505badeba72e85a565b340b743106994710b46
goodreads
title|year|author|goodreadsId|rating|ratings|reviews
PostScript Language Tutorial and Cookbook|1985|Adobe Systems Inc.|1604758|3.47|15|0
PostScript Language Reference Manual|1990|Adobe Creative Team|3440124|3.67|9|0