eh, make ’em volatile, this is not time-critical code anyway
[alioth/magicpoint.git] / sample / sample-jp.mgp
1 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2 %%
3 %% You will need the relevant fonts installed.
4 %%
5 %deffont "thick" xfont "helvetica-bold-r", tfont "thick.ttf", tmfont "goth.ttf"
6 %deffont "standard" xfont "helvetica-medium-r", tfont "standard.ttf", tmfont "kochi-mincho.ttf"
7 %deffont "typewriter" xfont "courier-medium-r", tfont "typewriter.ttf", tmfont "goth.ttf"
8 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
9 %%
10 %% Default settings per each line numbers.
11 %%
12 %default 1 area 90 90, leftfill, size 2, fore "gray20", back "white", font "standard", hgap 0
13 %default 2 size 5, hgap 20, vgap 10, prefix " ", ccolor "black"
14 %default 3 size 2, hgap 10, bar "gray70", vgap 10
15 %default 4 size 4, hgap 10, fore "gray20", vgap 30, prefix " ", font "standard"
16 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
17 %%
18 %% Default settings that are applied to TAB-indented lines.
19 %%
20 %tab 1 size 4, vgap 40, prefix "  ", icon box "green" 50
21 %tab 2 size 3.5, vgap 40, prefix "      ", icon arc "yellow" 50
22 %tab 3 size 3, vgap 40, prefix "            ", icon delta3 "white" 40
23 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
24 %page
25 %nodefault
26 %size 6.5, font "standard", back "white", ccolor "black"
27
28
29
30
31
32 %center, fore "Blue", font "standard", hgap 60, size 6.5
33 MAGIC POINT
34 %bar "skyblue" 6 15 70
35 %font "standard", hgap 0, size 4.5
36
37
38
39 %fore "darkblue"
40 \e$B@>ED2B;K\e(B Yoshifumi Nishida
41 %size 4
42 nishida@csl.sony.co.jp
43
44 %size 3.5, fore "black", hgap 20
45 SPC \e$B%-!<$r2!$7$F2<$5$$\e(B
46 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
47 %page
48 %bgrad 0 0 256 0 0 "white" "blue"
49
50 \e$B;H$$J}\e(B
51
52
53         \e$B#1%Z!<%8?J$`\e(B
54                 \e$B:8%\%?%s\e(B
55                 SPC
56         \e$B#1%Z!<%8La$k\e(B
57                 \e$B1&%\%?%s\e(B
58                 DEL
59         MagicPoint \e$B$r=*N;$9$k\e(B
60                 q
61
62 %size 4.5, fore "yellow"
63     \e$B$=$l$G$OFCD'$r$_$F$$$-$^$7$g$&\e(B
64 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
65 %page
66 %bgrad 0 0 256 0 0 "white" "blue"
67
68 \e$B%&%$%s%I%&\e(B
69
70
71         \e$BDL>o$OA42hLL$r;H$$$^$9\e(B
72         \e$B2hLL$NBg$-$5$r<+F0H=Dj$7$FI=<($G$-$^$9\e(B
73
74 %size 5, fore "yellow", font "typewriter"
75          mgp -o -g 400x300 sample-jp.mgp
76
77 %font "standard", fore "gray20", size 5
78         \e$B$NMM$KBg$-$5$N;XDj$b$G$-$^$9\e(B
79 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
80 %page
81 %bgrad 0 0 256 0 0 "white" "blue"
82
83 \e$BI=<(0LCV@)8f\e(B
84
85
86 %area 40 80 5 20
87         \e$BI=<($N0LCV$r@)8f$G$-$^$9\e(B
88
89 %fore "red"
90 %center
91 \e$B%;%s%?%j%s%0\e(B
92
93 %left
94 \e$B:84s$;\e(B
95
96 %right
97 \e$B1&4s$;\e(B
98 %area 40 80 50 20, leftfill, fore "black"
99         \e$BI=<(HO0O$r;XDj$9$k$3$H$G!"\e(B2\e$B%+%i%`$K$9$k$3$H$b$G$-$^$9\e(B
100 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
101 %PAGE
102 %bgrad 0 0 256 0 0 "white" "blue"
103
104 \e$BJ8;z$NBg$-$5$H?'\e(B
105
106
107         \e$B$5$^$6$^$JBg$-$5$NJ8;z$rI=<($G$-$^$9\e(B
108
109 %SIZE 5
110 %CENTER
111 %SIZE 10,FORE "orange"
112 \e$BK\F|$O@2E7$J$j\e(B
113 %SIZE 7,FORE "gray"
114 \e$BK\F|$O@2E7$J$j\e(B
115 %SIZE 5,FORE "blue"
116 \e$BK\F|$O@2E7$J$j\e(B
117 %SIZE 4,FORE "yellow"
118 \e$BK\F|$O@2E7$J$j\e(B
119 %SIZE 3,FORE "green"
120 \e$BK\F|$O@2E7$J$j\e(B
121 %SIZE 2,FORE "red"
122 \e$BK\F|$O@2E7$J$j\e(B
123 %SIZE 1,FORE "pink"
124 \e$BK\F|$O@2E7$J$j\e(B
125 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
126 %page
127 %bgrad 0 0 256 90 0 "red" "white"
128
129 \e$B%U%)%s%H\e(B
130
131
132         \e$B$5$^$6$^$J%U%)%s%H$,;XDj$G$-$^$9\e(B
133
134 %size 6, fore "blue", center
135 %font "standard"
136 \e$B$3$l$OL@D+\e(B
137 %font "thick"
138 \e$B$3$l$O%4%7%C%/\e(B
139 %size 6
140 %font "standard"
141 This is Standard
142 %font "thick"
143 This is Thick
144 %font "typewriter"
145 This is Typewriter
146 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
147 %page
148 %bgrad 0 0 256 90 0 "red" "white"
149
150 \e$B9TFb$G$NB0@-JQ99\e(B
151
152
153         \e$B9T$NESCf$G$bB0@-$rJQ$($i$l$^$9\e(B
154
155 %size 6, fore "blue", center
156 \e$B;d$NL>A0$O\e(B
157 %cont, fore "green", font "thick", size 8
158 \e$B@>ED\e(B
159 %cont, fore "red", font "typewriter", size 4
160 \e$B$G$9\e(B
161 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
162 %page
163
164 \e$B9T$N@^$j6J$2\e(B
165
166
167         \e$B$3$s$J$U$&$K$H$F$bD9$$9T$b$-$A$s$H@^$j6J$2$FI=<($7$F$$$^$9!#%=!<%9%3!<%ICf$G$O$3$3$O\e(B1\e$B9T$H$7$F=q$+$l$F$$$^$9\e(B
168                 \e$B$3$3$,<!$N9T$G$9!#CJ$,?<$/$F$b$[$iBg>fIW!#\e(B\
169 UNIX\e$B$H$$$&$/$i$$$G!"%=!<%9$N9T$O%P%C%/%9%i%C%7%e$GO"7k$G$-$^$9\e(B
170
171         A quick brown fox jumps over the lazy dog.  A quick brown fox jumps over the lazy dog.
172                 \e$B9TKv6XB'\e(B(\e$B!V!#!W$H$+$r9TF,$K$@$5$J$$\e(B)\e$B$7$F$^$9!#%&%$%s%I%&$NI}$r$+$($F$_$F$M\e(B
173                 \e$B1Q8l$OC18lC10L$G2~9T$7$^$9\e(B
174 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
175 %PAGE
176
177 \e$B2hA|\e(B
178
179
180         \e$B%$%a!<%8!&%U%!%$%k$rI=<($G$-$^$9\e(B
181
182 %CENTER
183 %IMAGE "cloud.jpg"
184
185 \e$B$3$l$OAp4"@i>=$5$s$N:nIJ$G$9\e(B
186 \e$B$"$j$,$H$&\e(B
187
188 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
189 %PAGE
190
191 \e$BBP1~$7$F$$$k2hA|\e(B
192
193
194         (\e$BB?J,\e(B)\e$BI=<(2DG=$J%$%a!<%8!&%U%)!<%^%C%H$O0J2<$NDL$j$G$9\e(B
195 %CENTER,SIZE 3,FORE "red", xfont "times-medium-r", tfont "times.ttf"
196
197   FBM Image
198   Sun Rasterfile
199   CMU WM Raster
200   Portable Bit Map (PBM, PGM, PPM)
201   Faces Project
202   Utah RLE Image
203   JFIF-style JPEG Image
204   X Window Dump
205   McIDAS areafile
206   G3 FAX Image
207   PC Paintbrush Image
208   GEM Bit Image
209   MacPaint Image
210   X Pixmap, Bitmap
211 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
212 %PAGE
213
214 \e$B2hA|$N3HBg$H=L>.\e(B
215
216
217         \e$B2#$r\e(B1.5\e$BG\!"=D$r\e(B1/3\e$B$7$?>l9g\e(B
218
219 %center, image "cloud.jpg" 0 150 33 1
220
221
222 %leftfill
223         \e$B2#$r2hLL$NI}$N\e(B50%\e$B!"=D$r2hLL$NI}$N\e(B30%\e$B$K$7$?>l9g\e(B
224
225 %center, image "cloud.jpg" 0 50 30 0
226 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
227 %PAGE
228
229 \e$B2hA|$N8:?'\e(B
230
231
232         256\e$B?'"*\e(B16\e$B?'"*\e(B4\e$B?'"*\e(B2\e$B?'$K8:?'$7$?>l9g\e(B
233
234
235 %left, image "cloud.jpg" 256 40 40 1, cont
236 %image "cloud.jpg" 16 40 40 1, cont
237 %image "cloud.jpg" 4 40 40 1, cont
238 %image "cloud.jpg" 2 40 40 1, cont
239 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
240 %PAGE
241
242 \e$B$3$s$J$3$H$b\e(B...
243
244
245
246 %CENTER
247 %SHRINK
248 %FORE "red", size 5
249 \e$BK\F|$O@2E7$J$j\e(B
250
251 %rcutin, FORE "blue"
252 \e$BK\F|$O@2E7$J$j\e(B
253
254 %lcutin, fore "green"
255 \e$BK\F|$O@2E7$J$j\e(B
256 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
257 %PAGE
258
259 \e$B0l9T$:$DI=<(\e(B
260
261
262         SPC \e$B$r\e(B 2 \e$B2s2!$7$F2<$5$$\e(B
263
264 %size 5, center, fore "red"
265    \e$BK\F|$O@2E7$J$j\e(B
266 %pause, fore "blue"
267    \e$BK\F|$O@2E7$J$j\e(B
268 %pause, fore "green"
269    \e$BK\F|$O@2E7$J$j\e(B
270 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
271 %PAGE
272
273 \e$B%"%K%a!<%7%g%s\e(B
274
275
276         SPC \e$B$r2!$7$F2<$5$$\e(B
277
278 %center, fore "white"
279 %mark, image "mgp-old1.jpg"
280
281 %pause, again, mark, image "mgp-old2.jpg"
282
283 %again, mark, image "mgp-old3.jpg"
284
285 %again, mark, image "mgp-old2.jpg"
286
287 %again, mark, image "mgp-old1.jpg"
288 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
289 %PAGE
290
291 \e$B%3%^%s%I$N=PNO\e(B
292
293
294         \e$B;R%W%m%;%9$N7k2L$rI=<($G$-$^$9\e(B
295
296                 % ls -l /kernel /bsd
297 %size 3, prefix "     "
298 %filter "ls -l /kernel /bsd"
299 %endfilter
300
301                 % echo this is test | rev
302 %filter "rev"
303 this is test
304 %endfilter
305 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
306 %PAGE
307
308 \e$B%5%V%W%m%;%9$N5/F0\e(B
309
310
311 %system "xeyes -geometry %50x15+25+80"
312         xanim\e$B$r8F$s$G%W%l%<%s$KF02h$rE=$m$&\e(B!
313                 \e$B#19T$NL?Na$OF1;~$K#1%W%m%;%9$7$+5/F0$7$^$;$s\e(B
314                 (\e$B$=$N%Z!<%8$r:FEYI=<($7$F$b0B?4$G$9\e(B)
315                 \e$B%W%l%<%s2hLL$KBP$9$kAjBPCM$G\e(Bgeometry\e$B$r;XDj$G$-$^$9\e(B
316
317                 \e$B%Z!<%8$r0\$k$H\e(Bxeyes\e$B$O;`$K$^$9\e(B
318                 (\e$B;&$5$J$$@_Dj$b$G$-$^$9\e(B)
319
320 %leftfill, size 3
321 MagicPoint \e$B$r\e(B "-g" \e$B%*%W%7%g%sIU$-$G5/F0$7$F$$$k>l9g$O!"<!$N%Z!<%8$K$$$/$?$a$K%/%j%C%/$7$F2<$5$$!#\e(BSPC \e$B$,8z$+$J$$>l9g$,$"$j$^$9\e(B
322 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
323 %PAGE
324
325 \e$B%5%V%W%m%;%9$ND%$j$D$1\e(B
326
327
328         \e$B%5%V%W%m%;%9$r%&%$%s%I%&$KD%$j$D$1$i$l$^$9\e(B
329
330 %xsystem "xeyes -geometry %50x10+25+60"
331
332
333         \e$B%;%s%?%j%s%0$b0l1~$G$-$^$9\e(B
334
335 %center
336 %xsystem "xclock -geometry %30x30+25+60 -update 1 -bg white -fg blue -hands green"
337 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
338 %%% %PAGE
339 %%%
340 %%% \e$B%3%^%s%I$N=PNO\e(B - \e$B$"$o$;$o$6\e(B
341 %%%
342 %%%     \e$BF0E*$K%0%i%U$r@8@.$7$^$9\e(B
343 %%%
344 %%% %filter "gnuplot"
345 %%% set output "/tmp/hoge.pbm"
346 %%% set term pbm
347 %%% plot sin(x)
348 %%% %endfilter
349 %%% %system "xv -geometry %50x50+25+40 /tmp/hoge.pbm"
350 %%%
351 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
352 %PAGE
353 %bgrad 0 0 256 0 0 "skyblue" "white"
354
355 \e$B$=$NB>$N5!G=\e(B
356
357
358         \e$B2hA|$r\e(B tab \e$B%3%^%s%I$K;XDj$G$-$^$9\e(B
359         \e$B2U>r=q$-MQ%"%$%3%s\e(B(
360 %cont
361 %icon box "green" 50
362 %icon arc "green" 50
363 %icon delta1 "green" 50
364 %icon delta2 "green" 50
365 %icon delta3 "green" 50
366 %icon delta4 "green" 50
367 %icon dia "green" 50
368 )\e$B$,IA$1$^$9\e(B
369         \e$BB0@-$,:.$6$C$?%F%-%9%H$b@5$7$/%;%s%?%j%s%0$G$-$^$9\e(B
370
371 %center, size 5
372 \e$B;d$NL>A0$O\e(B
373 %cont, fore "green", font "thick", size 10
374 \e$B@>ED\e(B
375 %cont, fore "red", font "typewriter", size 4
376 \e$B$G$9\e(B
377 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
378 %PAGE
379 %bgrad 0 0 256 0 0 "skyblue" "white"
380 %pcache 1 1 0 0
381
382 \e$B@hFI$_5!G=\e(B
383
384
385         \e$B#1%Z!<%8@h$NFbMF$r%-%c%C%7%e$7$^$9\e(B
386         \e$B#2$D$N;XDjJ}K!$,$"$j$^$9\e(B
387 %fore "red"
388                 -F
389 %cont, fore "gray20"
390  option \e$B$r;H$&\e(B
391                 "
392 %cont, fore "red"
393 pcache
394 %cont, fore "gray20"
395\e$B%3%^%s%I$r;H$&\e(B
396
397         \e$B%-%c%C%7%e5!G=$K$h$jIA2h=hM}$,9bB.$K$J$j$^$9\e(B
398                 SPC\e$B%-!<$r2!$7$F2<$5$$\e(B
399 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
400 %PAGE
401 %bgrad 0 0 256 0 0 "skyblue" "white"
402 %pcache 1 1 1 30
403
404 \e$B@hFI$_5!G=$NFC<l8z2L\e(B
405
406
407         \e$B@hFI$_5!G=$K$OFC<l5!G=$,;XDj$G$-$^$9\e(B
408         SPC\e$B$r2!$9$HFC<l8z2L$NNc$r3Z$7$a$^$9\e(B
409 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
410 %PAGE
411 %bgrad 0 0 256 0 0 "skyblue" "white"
412 %pcache 0
413
414 \e$B$*$7$^$$\e(B
415
416
417     \e$B%"%C%W%G!<%H$J$I$N>pJs$O\e(B
418 %font "typewriter"
419        http://member.wide.ad.jp/wg/mgp/
420 %font "standard"
421     \e$B$K7G<($5$l$^$9$N$G8fMw$/$@$5$$\e(B
422
423     \e$B%3%a%s%H$,$"$l$P\e(B
424 %font "typewriter"
425         mgp-users-jp@Mew.org
426 %font "standard"
427     \e$B$^$GAw$C$F2<$5$$\e(B