eh, make ’em volatile, this is not time-critical code anyway
[alioth/magicpoint.git] / sample / sample-jp-xft.mgp
1 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2 %%
3 %% You will need the relevant fonts installed.
4 %%
5 %deffont "thick" xfont "helvetica-bold-r", xfont "Kochi Gothic" "jisx0208.1983"
6 %deffont "standard" xfont "helvetica-medium-r", xfont "Kochi Gothic" "jisx0208.1983"
7 %deffont "typewriter" xfont "courier-medium-r", xfont "Kochi Gothic" "jisx0208.1983"
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"
196   FBM Image
197   Sun Rasterfile
198   CMU WM Raster
199   Portable Bit Map (PBM, PGM, PPM)
200   Faces Project
201   Utah RLE Image
202   JFIF-style JPEG Image
203   X Window Dump
204   McIDAS areafile
205   G3 FAX Image
206   PC Paintbrush Image
207   GEM Bit Image
208   MacPaint Image
209   X Pixmap, Bitmap
210 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
211 %PAGE
212
213 \e$B2hA|$N3HBg$H=L>.\e(B
214
215
216         \e$B2#$r\e(B1.5\e$BG\!"=D$r\e(B1/3\e$B$7$?>l9g\e(B
217
218 %center, image "cloud.jpg" 0 150 33 1
219
220
221 %leftfill
222         \e$B2#$r2hLL$NI}$N\e(B50%\e$B!"=D$r2hLL$NI}$N\e(B30%\e$B$K$7$?>l9g\e(B
223
224 %center, image "cloud.jpg" 0 50 30 0
225 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
226 %PAGE
227
228 \e$B2hA|$N8:?'\e(B
229
230
231         256\e$B?'"*\e(B16\e$B?'"*\e(B4\e$B?'"*\e(B2\e$B?'$K8:?'$7$?>l9g\e(B
232
233
234 %left, image "cloud.jpg" 256 40 40 1, cont
235 %image "cloud.jpg" 16 40 40 1, cont
236 %image "cloud.jpg" 4 40 40 1, cont
237 %image "cloud.jpg" 2 40 40 1, cont
238 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
239 %PAGE
240
241 \e$B$3$s$J$3$H$b\e(B...
242
243
244
245 %CENTER
246 %SHRINK
247 %FORE "red", size 5
248 \e$BK\F|$O@2E7$J$j\e(B
249
250 %rcutin, FORE "blue"
251 \e$BK\F|$O@2E7$J$j\e(B
252
253 %lcutin, fore "green"
254 \e$BK\F|$O@2E7$J$j\e(B
255 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
256 %PAGE
257
258 \e$B0l9T$:$DI=<(\e(B
259
260
261         SPC \e$B$r\e(B 2 \e$B2s2!$7$F2<$5$$\e(B
262
263 %size 5, center, fore "red"
264    \e$BK\F|$O@2E7$J$j\e(B
265 %pause, fore "blue"
266    \e$BK\F|$O@2E7$J$j\e(B
267 %pause, fore "green"
268    \e$BK\F|$O@2E7$J$j\e(B
269 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
270 %PAGE
271
272 \e$B%"%K%a!<%7%g%s\e(B
273
274
275         SPC \e$B$r2!$7$F2<$5$$\e(B
276
277 %center, fore "white"
278 %mark, image "mgp-old1.jpg"
279
280 %pause, again, mark, image "mgp-old2.jpg"
281
282 %again, mark, image "mgp-old3.jpg"
283
284 %again, mark, image "mgp-old2.jpg"
285
286 %again, mark, image "mgp-old1.jpg"
287 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
288 %PAGE
289
290 \e$B%3%^%s%I$N=PNO\e(B
291
292
293         \e$B;R%W%m%;%9$N7k2L$rI=<($G$-$^$9\e(B
294
295                 % ls -l /kernel /bsd
296 %size 3, prefix "     "
297 %filter "ls -l /kernel /bsd"
298 %endfilter
299
300                 % echo this is test | rev
301 %filter "rev"
302 this is test
303 %endfilter
304 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
305 %PAGE
306
307 \e$B%5%V%W%m%;%9$N5/F0\e(B
308
309
310 %system "xeyes -geometry %50x15+25+80"
311         xanim\e$B$r8F$s$G%W%l%<%s$KF02h$rE=$m$&\e(B!
312                 \e$B#19T$NL?Na$OF1;~$K#1%W%m%;%9$7$+5/F0$7$^$;$s\e(B
313                 (\e$B$=$N%Z!<%8$r:FEYI=<($7$F$b0B?4$G$9\e(B)
314                 \e$B%W%l%<%s2hLL$KBP$9$kAjBPCM$G\e(Bgeometry\e$B$r;XDj$G$-$^$9\e(B
315
316                 \e$B%Z!<%8$r0\$k$H\e(Bxeyes\e$B$O;`$K$^$9\e(B
317                 (\e$B;&$5$J$$@_Dj$b$G$-$^$9\e(B)
318
319 %leftfill, size 3
320 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
321 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
322 %PAGE
323
324 \e$B%5%V%W%m%;%9$ND%$j$D$1\e(B
325
326
327         \e$B%5%V%W%m%;%9$r%&%$%s%I%&$KD%$j$D$1$i$l$^$9\e(B
328
329 %xsystem "xeyes -geometry %50x10+25+60"
330
331
332         \e$B%;%s%?%j%s%0$b0l1~$G$-$^$9\e(B
333
334 %center
335 %xsystem "xclock -geometry %30x30+25+60 -update 1 -bg white -fg blue -hands green"
336 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
337 %%% %PAGE
338 %%%
339 %%% \e$B%3%^%s%I$N=PNO\e(B - \e$B$"$o$;$o$6\e(B
340 %%%
341 %%%     \e$BF0E*$K%0%i%U$r@8@.$7$^$9\e(B
342 %%%
343 %%% %filter "gnuplot"
344 %%% set output "/tmp/hoge.pbm"
345 %%% set term pbm
346 %%% plot sin(x)
347 %%% %endfilter
348 %%% %system "xv -geometry %50x50+25+40 /tmp/hoge.pbm"
349 %%%
350 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
351 %PAGE
352 %bgrad 0 0 256 0 0 "skyblue" "white"
353
354 \e$B$=$NB>$N5!G=\e(B
355
356
357         \e$B2hA|$r\e(B tab \e$B%3%^%s%I$K;XDj$G$-$^$9\e(B
358         \e$B2U>r=q$-MQ%"%$%3%s\e(B(
359 %cont
360 %icon box "green" 50
361 %icon arc "green" 50
362 %icon delta1 "green" 50
363 %icon delta2 "green" 50
364 %icon delta3 "green" 50
365 %icon delta4 "green" 50
366 %icon dia "green" 50
367 )\e$B$,IA$1$^$9\e(B
368         \e$BB0@-$,:.$6$C$?%F%-%9%H$b@5$7$/%;%s%?%j%s%0$G$-$^$9\e(B
369
370 %center, size 5
371 \e$B;d$NL>A0$O\e(B
372 %cont, fore "green", font "thick", size 10
373 \e$B@>ED\e(B
374 %cont, fore "red", font "typewriter", size 4
375 \e$B$G$9\e(B
376 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
377 %PAGE
378 %bgrad 0 0 256 0 0 "skyblue" "white"
379 %pcache 1 1 0 0
380
381 \e$B@hFI$_5!G=\e(B
382
383
384         \e$B#1%Z!<%8@h$NFbMF$r%-%c%C%7%e$7$^$9\e(B
385         \e$B#2$D$N;XDjJ}K!$,$"$j$^$9\e(B
386 %fore "red"
387                 -F
388 %cont, fore "gray20"
389  option \e$B$r;H$&\e(B
390                 "
391 %cont, fore "red"
392 pcache
393 %cont, fore "gray20"
394\e$B%3%^%s%I$r;H$&\e(B
395
396         \e$B%-%c%C%7%e5!G=$K$h$jIA2h=hM}$,9bB.$K$J$j$^$9\e(B
397                 SPC\e$B%-!<$r2!$7$F2<$5$$\e(B
398 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
399 %PAGE
400 %bgrad 0 0 256 0 0 "skyblue" "white"
401 %pcache 1 1 1 30
402
403 \e$B@hFI$_5!G=$NFC<l8z2L\e(B
404
405
406         \e$B@hFI$_5!G=$K$OFC<l5!G=$,;XDj$G$-$^$9\e(B
407         SPC\e$B$r2!$9$HFC<l8z2L$NNc$r3Z$7$a$^$9\e(B
408 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
409 %PAGE
410 %bgrad 0 0 256 0 0 "skyblue" "white"
411 %pcache 0
412
413 \e$B$*$7$^$$\e(B
414
415
416     \e$B%"%C%W%G!<%H$J$I$N>pJs$O\e(B
417 %font "typewriter"
418        http://member.wide.ad.jp/wg/mgp/
419 %font "standard"
420     \e$B$K7G<($5$l$^$9$N$G8fMw$/$@$5$$\e(B
421
422     \e$B%3%a%s%H$,$"$l$P\e(B
423 %font "typewriter"
424         mgp-users-jp@Mew.org
425 %font "standard"
426     \e$B$^$GAw$C$F2<$5$$\e(B