summaryrefslogtreecommitdiff
path: root/lfrecord.py
diff options
context:
space:
mode:
Diffstat (limited to 'lfrecord.py')
-rw-r--r--lfrecord.py863
1 files changed, 863 insertions, 0 deletions
diff --git a/lfrecord.py b/lfrecord.py
new file mode 100644
index 0000000..b869033
--- /dev/null
+++ b/lfrecord.py
@@ -0,0 +1,863 @@
1# ExiFilm -- Add film exposure metadata to EXIF tags of digital images
2# Copyright (C) 2009 James E. Blair <corvus@gnu.org>
3#
4# This program is free software: you can redistribute it and/or modify
5# it under the terms of the GNU General Public License as published by
6# the Free Software Foundation, either version 3 of the License, or
7# (at your option) any later version.
8#
9# This program is distributed in the hope that it will be useful,
10# but WITHOUT ANY WARRANTY; without even the implied warranty of
11# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12# GNU General Public License for more details.
13#
14# You should have received a copy of the GNU General Public License
15# along with this program. If not, see <http://www.gnu.org/licenses/>.
16
17program = """%%!PS-Adobe-3.0
18%%%%Pages: %(pages)s
19%%%%BoundingBox: 0 0 612 792
20%%%%EndComments
21
22%% User servicable:
23
24/in { 72 mul } def
25
26/cellheight 12.75 def
27%%/plantop 9.75 in def %% 8.5 - .5 in at top
28%%/planleft 7 32 div in def
29/plantop 10.25 in def %% 8.5 - .5 in at top
30/planleft .75 in def
31/planwidth 3 in 15 16 div in add def
32
33%% 3 15/16 in wide
34%% 5 in high
35
36/bigfont {/Times-Roman 14 selectfont} def
37/normalfont {/Times-Roman 12 selectfont} def
38/smallfont {/Times-Roman 10 selectfont} def
39
40/baselineskip 12 def
411 setlinewidth
42
43%% Less so:
44
45/planheight 21 cellheight mul def
46/condtop plantop planheight sub def
47/condleft planleft def
48/condheight 11 cellheight mul def
49
50/cell {/cury curx cury wd cellht box def} def
51/cell1 {curx cury wd1 cellht box pop} def
52/cell2cr {/cury curx wd1 add cury wd2 cellht box def} def
53/cell3cr {/cury curx wd1 add wd2 add cury wd3 cellht box def} def
54/cell2 {curx wd1 add cury wd2 cellht box pop} def
55/cell3 {curx wd1 add wd2 add cury wd3 cellht box pop} def
56/triangle {newpath curx cury moveto 6 0 cellht 2 div sub rlineto
57 -6 0 cellht 2 div sub rlineto closepath fill} def
58
59
60/toppic
61{
620 18 translate
630.8 -0.8 scale
640 0 0 setrgbcolor
65[] 0 setdash
661 setlinewidth
670 setlinejoin
680 setlinecap
69gsave [1 0 0 1 0 0] concat
700 0 0 setrgbcolor
71[] 0 setdash
720.625 setlinewidth
731 setlinejoin
741 setlinecap
75newpath
7617.465566 7.6270604 moveto
7717.34201 7.4607341 17.023642 7.1667431 16.801411 7.0511098 curveto
7816.503644 6.896187 16.307292 6.8516095 16.026569 6.7055509 curveto
7915.791517 6.5832505 15.419851 6.5327667 15.14103 6.5327667 curveto
8014.851109 6.5327667 14.510791 6.4751688 14.200137 6.4751688 curveto
8113.906717 6.4751688 13.544314 6.6414571 13.314598 6.8207372 curveto
8213.068846 7.0125432 12.874548 7.2361726 12.595099 7.4542762 curveto
8312.344743 7.6496678 12.125565 7.8753705 11.930944 8.1454035 curveto
8411.751845 8.3938944 11.61173 8.7253772 11.543518 9.0093151 curveto
8511.483134 9.2606497 11.432821 9.6008921 11.432821 9.9308246 curveto
8611.432821 10.284991 11.481859 10.646709 11.543518 10.96752 curveto
8711.606347 11.294419 11.689348 11.459357 11.764903 11.773844 curveto
8811.826229 12.029125 12.085382 12.337715 12.207673 12.464971 curveto
8912.411225 12.676797 12.681981 12.913342 12.927172 13.040921 curveto
9013.208038 13.187056 13.356056 13.321654 13.591326 13.444078 curveto
9113.894704 13.60193 14.210656 13.770986 14.532219 13.904833 curveto
9214.799874 14.016243 15.064115 14.020019 15.362414 14.020019 curveto
9315.668037 14.020019 15.886968 14.041942 16.1926 13.962421 curveto
9416.488636 13.885412 16.686938 13.733028 16.912108 13.674451 curveto
9517.175607 13.605906 17.382184 13.372271 17.576263 13.271294 curveto
9617.802565 13.15354 17.966257 13.038239 18.12972 12.868137 curveto
9718.33059 12.659107 18.448373 12.636072 18.517146 12.349785 curveto
9818.58201 12.07978 18.683187 12.005006 18.683187 11.658657 curveto
9918.683187 11.370687 18.683187 11.082707 18.683187 10.794746 curveto
10018.683187 10.482732 18.689036 10.243133 18.627843 9.9884225 curveto
10118.56315 9.7191599 18.57249 9.4050915 18.57249 9.1245109 curveto
10218.57249 8.8389752 18.46301 8.6086787 18.351105 8.3757857 curveto
10318.246685 8.158462 18.001799 8.0698776 17.852991 7.9150309 curveto
10417.675889 7.730729 17.748724 7.7007222 17.465566 7.6270604 curveto
105closepath
106stroke
1070 0 0 setrgbcolor
108[] 0 setdash
1090.625 setlinewidth
1101 setlinejoin
1111 setlinecap
112newpath
11318.908969 9.1187484 moveto
11419.132586 9.2148318 19.670178 9.5204546 19.889559 9.6723899 curveto
11520.225854 9.9053021 20.525329 9.9224118 20.835946 10.076851 curveto
11621.210027 10.262847 21.490107 10.364636 21.849811 10.465301 curveto
11722.38606 10.615383 21.920523 10.684453 21.563764 10.76915 curveto
11821.276372 10.837386 20.927903 10.920113 20.619207 10.993399 curveto
11920.270784 11.076118 19.970536 11.147404 19.607192 11.233666 curveto
12019.449759 11.271042 19.292336 11.308417 19.134913 11.345791 curveto
121stroke
1220 0 0 setrgbcolor
123[] 0 setdash
1240.625 setlinewidth
1251 setlinejoin
1261 setlinecap
127newpath
12812.479003 7.3178906 moveto
12912.297483 7.2051594 10.437915 6.743884 10.199405 6.6961819 curveto
1309.9461844 6.6455378 8.2389814 6.412102 8.4897064 6.4371367 curveto
1318.9210134 6.4802021 7.6023054 6.3853275 7.3499064 6.3853275 curveto
1327.1865764 6.3853275 6.6748094 6.3424179 6.2101074 6.3853275 curveto
1335.9802984 6.4065477 4.6730454 6.5580544 4.3967904 6.6961819 curveto
1344.1597714 6.8146914 3.9322444 6.8766459 3.6714644 7.0070363 curveto
1353.3812444 7.1521462 3.1878204 7.2920552 2.9461374 7.4733178 curveto
1362.7386724 7.6289163 2.4671594 7.8455027 2.2726194 7.9914084 curveto
1372.0299164 8.1734353 1.8916084 8.3206101 1.7027194 8.5094989 curveto
1381.5052674 8.706951 1.4151344 8.8256235 1.2882464 9.0793985 curveto
1391.1595274 9.3368386 1.0339524 9.4843697 0.92558337 9.7011073 curveto
1400.78229837 9.9876779 0.64040737 10.116486 0.56292037 10.426434 curveto
1410.50396737 10.662246 0.51591437 10.873501 0.45930237 11.099952 curveto
1420.39136637 11.371693 0.56233537 11.565062 0.66653837 11.77347 curveto
1430.76972037 11.979834 1.0569594 12.231766 1.1846294 12.395178 curveto
1441.4171204 12.692756 1.6462124 12.974507 1.9099554 13.172314 curveto
1452.2042814 13.393059 2.9527384 13.952751 3.2569914 14.104877 curveto
1464.1361764 14.565305 4.7738594 14.88324 5.7438264 14.985631 curveto
1476.1202154 15.079729 7.3525084 15.363749 8.8005604 15.192867 curveto
1489.8815834 15.065298 10.824802 14.750645 11.494631 14.260304 curveto
14912.29744 13.766723 12.403624 13.534597 12.789858 13.120505 curveto
150stroke
151grestore
152} def
153
154/sidepic
155{
1560 18 translate
1570.8 -0.8 scale
1580 0 0 setrgbcolor
159[] 0 setdash
1601 setlinewidth
1610 setlinejoin
1620 setlinecap
163gsave [1 0 0 1 0 0] concat
1640 0 0 setrgbcolor
165[] 0 setdash
1660.625 setlinewidth
1671 setlinejoin
1681 setlinecap
169newpath
17017.41745 3.3235764 moveto
17117.28754 3.1486964 16.9528 2.8395864 16.71914 2.7180064 curveto
17216.40606 2.5551164 16.19961 2.5082464 15.90445 2.3546764 curveto
17315.65731 2.2260864 15.26653 2.1730064 14.97337 2.1730064 curveto
17414.66854 2.1730064 14.31072 2.1124464 13.98409 2.1124464 curveto
17513.67558 2.1124464 13.29454 2.2872864 13.05301 2.4757864 curveto
17612.79462 2.6774564 12.59033 2.9125864 12.296511 3.1419064 curveto
17712.033281 3.3473464 11.802831 3.5846564 11.598201 3.8685764 curveto
17811.409891 4.1298464 11.262571 4.4783764 11.190851 4.7769164 curveto
17911.127361 5.0411764 11.074461 5.3989164 11.074461 5.7458164 curveto
18011.074461 6.1181964 11.126021 6.4985164 11.190851 6.8358264 curveto
18111.256911 7.1795364 11.344181 7.3529564 11.423621 7.6836164 curveto
18211.488101 7.9520264 11.760581 8.2764864 11.889161 8.4102864 curveto
18312.103181 8.6330064 12.387861 8.8817164 12.64566 9.0158564 curveto
18412.94097 9.1695064 13.0966 9.3110264 13.34397 9.4397464 curveto
18513.66295 9.6057164 13.99515 9.7834664 14.33325 9.9241964 curveto
18614.61467 10.041336 14.8925 10.045306 15.20614 10.045306 curveto
18715.52748 10.045306 15.75767 10.068356 16.07902 9.9847464 curveto
18816.39028 9.9037764 16.59878 9.7435564 16.83553 9.6819664 curveto
18917.11258 9.6098964 17.32978 9.3642464 17.53384 9.2580764 curveto
19017.77178 9.1342664 17.94389 9.0130364 18.11576 8.8341864 curveto
19118.32696 8.6144064 18.4508 8.5901864 18.52311 8.2891764 curveto
19218.59131 8.0052864 18.69769 7.9266664 18.69769 7.5625064 curveto
19318.69769 7.2597264 18.69769 6.9569364 18.69769 6.6541664 curveto
19418.69769 6.3261064 18.70384 6.0741864 18.6395 5.8063764 curveto
19518.57148 5.5232664 18.5813 5.1930464 18.5813 4.8980364 curveto
19618.5813 4.5978164 18.46619 4.3556764 18.34853 4.1108064 curveto
19718.23874 3.8823064 17.98126 3.7891664 17.8248 3.6263564 curveto
19817.63859 3.4325764 17.71517 3.4010264 17.41745 3.3235764 curveto
199closepath
200stroke
2010 0 0 setrgbcolor
202[] 0 setdash
2030.625 setlinewidth
2041 setlinejoin
2051 setlinecap
206newpath
20718.94656 5.9379964 moveto
20819.1584 6.0815564 19.65288 6.5037464 19.84927 6.7041364 curveto
20920.15032 7.0113264 20.45615 7.0883864 20.74625 7.3094564 curveto
21021.09562 7.5756964 21.36463 7.7363464 21.716081 7.9116264 curveto
21122.240021 8.1729464 21.745631 8.1519364 21.36046 8.1686364 curveto
21221.05018 8.1820964 20.67396 8.1984064 20.34068 8.2128564 curveto
21319.96451 8.2291664 19.64035 8.2432264 19.24807 8.2602364 curveto
21419.0781 8.2676064 18.90814 8.2749764 18.73818 8.2823464 curveto
215stroke
2160 0 0 setrgbcolor
217[] 0 setdash
2180.625 setlinewidth
2191 setlinejoin
2201 setlinecap
221newpath
22211.058081 6.3609964 moveto
22310.898991 6.3609964 10.297991 6.3609964 9.9236506 6.3609964 curveto
2249.6528706 6.3609964 9.2296906 6.4606964 9.0019306 6.5275864 curveto
2258.6792106 6.6223764 8.3901106 6.6031664 8.0802106 6.6941864 curveto
2267.7549906 6.7896964 7.3425006 6.8692064 7.0875806 6.9440764 curveto
2276.7203606 7.0519264 6.3784006 7.1731864 6.0240506 7.2772664 curveto
2285.6876206 7.3760764 5.4495006 7.5314764 5.1732306 7.6937564 curveto
2294.8089906 7.9077164 4.5570206 8.1390264 4.1806106 8.3601364 curveto
2303.8315206 8.5651864 3.5054206 9.0700664 3.2588806 9.3597064 curveto
2312.9162706 9.7622164 2.6772606 10.143226 2.4789706 10.609166 curveto
2322.2757806 11.086586 2.1067606 11.567026 1.9117506 12.025216 curveto
2331.7229306 12.468886 1.5183906 12.957456 1.4154406 13.441276 curveto
2341.3145406 13.915446 1.0273606 14.353136 0.84822058 14.774036 curveto
2350.65579058 15.226186 0.63552058 15.643266 0.63552058 15.773606 curveto
236stroke
2370 0 0 setrgbcolor
238[] 0 setdash
2390.625 setlinewidth
2401 setlinejoin
2411 setlinecap
242newpath
24314.33933 10.302876 moveto
24414.20693 10.595156 14.14423 11.072806 13.90194 11.429396 curveto
24513.70442 11.720106 13.37015 12.016406 13.17297 12.234056 curveto
24612.88897 12.547546 12.59356 12.873636 12.298201 13.199656 curveto
24712.020021 13.506716 11.823431 13.804186 11.496341 14.165246 curveto
24811.169801 14.525686 10.912571 14.749106 10.548671 15.050376 curveto
24910.232431 15.312176 9.7936806 15.426826 9.4552106 15.613636 curveto
2509.1243106 15.796266 8.5739906 15.756236 8.2159606 15.855036 curveto
2517.8258106 15.962696 7.3481706 15.832996 6.9767106 15.935496 curveto
2526.5954506 16.040716 6.0587306 15.935496 5.6645506 15.935496 curveto
2535.2171706 15.935496 4.8659706 16.015966 4.4253006 16.015966 curveto
2544.0136906 16.015966 3.5635006 15.935496 3.1131506 15.935496 curveto
2552.7207406 15.935496 2.2370206 15.733586 2.0196906 15.613636 curveto
2561.7663706 15.473826 1.1338906 15.325916 1.0720306 15.291776 curveto
257stroke
2580 0 0 setrgbcolor
259[] 0 setdash
2600.63630593 setlinewidth
2611 setlinejoin
2621 setlinecap
263newpath
2649.9264619 15.524615 moveto
2659.601864 15.336485 9.9988871 16.363201 9.9988871 16.783897 curveto
2669.9988871 17.343824 9.8991612 17.884929 9.9988871 18.462927 curveto
26710.104136 19.072974 9.9702746 19.353219 10.288574 19.722199 curveto
26810.538501 20.011916 10.948726 20.272725 11.157634 20.393812 curveto
26911.29979 20.476203 11.505777 20.474522 11.519735 20.477757 curveto
270stroke
2710 0 0 setrgbcolor
272[] 0 setdash
2730.625 setlinewidth
2741 setlinejoin
2751 setlinecap
276newpath
27710.213238 19.68757 moveto
27810.382008 19.78072 9.6081369 20.54456 9.4113669 20.65317 curveto
2799.2846369 20.72311 9.1736069 20.82462 9.0468769 20.89457 curveto
280stroke
2810 0 0 setrgbcolor
282[] 0 setdash
2830.625 setlinewidth
2841 setlinejoin
2851 setlinecap
286newpath
2876.5393206 16.015966 moveto
2886.2133206 16.195896 6.5393206 16.820626 6.5393206 17.222956 curveto
2896.5393206 17.627916 6.5393206 17.996046 6.5393206 18.429956 curveto
2906.5393206 18.885926 6.5393206 19.341896 6.5393206 19.797876 curveto
2916.5393206 19.821846 7.2722806 20.242636 7.3411906 20.280676 curveto
2927.3483106 20.418036 7.4383906 20.334316 7.4869906 20.361136 curveto
293stroke
2940 0 0 setrgbcolor
295[] 0 setdash
2960.625 setlinewidth
2971 setlinejoin
2981 setlinecap
299newpath
3006.5393206 19.797876 moveto
3016.8774206 19.984476 6.0047406 20.387956 5.7374506 20.683006 curveto
3025.6645606 20.763466 5.5916606 20.843936 5.5187606 20.924396 curveto
303stroke
304gsave
3050 0 0 setrgbcolor
306newpath
30716.59914 4.9921064 moveto
30816.75393 5.5208564 16.53852 5.6023764 16.16176 5.3944364 curveto
30915.78595 5.1870264 16.27681 4.8497864 16.59914 4.9921064 curveto
310closepath
311fill
312grestore
3130 0 0 setrgbcolor
314[] 0 setdash
3150.625 setlinewidth
3161 setlinejoin
3171 setlinecap
318newpath
31916.59914 4.9921064 moveto
32016.75393 5.5208564 16.53852 5.6023764 16.16176 5.3944364 curveto
32115.78595 5.1870264 16.27681 4.8497864 16.59914 4.9921064 curveto
322closepath
323stroke
324grestore
325} def
326
327/cameraview
328 {
329 /crtilt exch def %%or swing
330 /crrise exch def %%or shift
331
332 /cftilt exch def %%or swing
333 /cfrise exch def %%or shift
334
335 30 10 translate
336 -4 0 moveto 28 0 rlineto stroke
337
338 /ftopx -2.5 cftilt mul def
339 /ftopy 5 cfrise mul 5 add def
340 /fbotx 2.5 cftilt mul def
341 /fboty 5 cfrise mul -5 add def
342
343 /rtopx 20 -2.5 crtilt mul add def
344 /rtopy 5 crrise mul 5 add def
345 /rbotx 20 2.5 crtilt mul add def
346 /rboty 5 crrise mul -5 add def
347
348 ftopx ftopy moveto
349 fbotx fboty lineto
350 rbotx rboty lineto
351 rtopx rtopy lineto
352 ftopx ftopy lineto
353 stroke
354
355 } def
356
357/greybox
358 {
359 /height exch def
360 /width exch def
361 /top exch def
362 /left exch def
363
364 /bottom top height sub def
365
366 .8 .8 .8 setrgbcolor
367 left bottom width height rectfill
368 0 0 0 setrgbcolor
369 left bottom width height rectstroke
370 bottom
371 } def
372
373/blackbox
374 {
375 /height exch def
376 /width exch def
377 /top exch def
378 /left exch def
379
380 /bottom top height sub def
381
382 0 0 0 setrgbcolor
383 left bottom width height rectfill
384 left bottom width height rectstroke
385 bottom
386 } def
387
388/box
389 {
390 /height exch def
391 /width exch def
392 /top exch def
393 /left exch def
394
395 /bottom top height sub def
396
397 0 0 0 setrgbcolor
398 left bottom width height rectstroke
399 bottom
400 } def
401
402/writingline
403 {
404 /height exch def
405 /width exch def
406 /top exch def
407 /left exch def
408
409 /bottom top height sub def
410
411 .125 setlinewidth
412 left bottom moveto width 0 rlineto stroke
413 1 setlinewidth
414 bottom
415 } def
416
417
418/centertext
419 {
420 /s exch def
421 /x2 exch def
422 /x1 exch def
423 /y exch def
424
425 x2 x1 sub 2 div x1 add %% midpoint
426 s stringwidth pop 2 div %% half the string width
427 sub %% move left to start
428
429 y baselineskip sub moveto s show
430 y baselineskip sub
431 } def
432
433/righttext
434 {
435 /s exch def
436 /x2 exch def
437 /x1 exch def
438 /y exch def
439
440 x2
441 s stringwidth pop
442 sub 1 sub
443
444 y baselineskip sub moveto s show
445 y baselineskip sub
446 } def
447
448/lefttext
449 {
450 /s exch def
451 /x2 exch def
452 /x1 exch def
453 /y exch def
454
455 x1 1 add
456
457 y baselineskip sub moveto s show
458 y baselineskip sub
459 } def
460
461
462/picid
463 {
464 /cury exch def
465 /curx exch def
466 /wd 42 def
467 /headht 1 cellheight mul def
468 /cellht 2 cellheight mul def
469
470 curx cury wd headht greybox
471
472 cury 2 add
473 curx curx wd add (ID) centertext
474 pop
475
476 /cury exch def %% add height change from box
477
478 cell
479
480 bigfont
481 cury 20 add curx curx wd add idtext centertext pop
482 smallfont
483
484 xpos wd add
485 } def
486
487/aperture
488 {
489 /cury exch def
490 /curx exch def
491 /wd 68 def
492 /headht 1 cellheight mul def
493 /cellht 2 cellheight mul def
494
495 curx cury wd headht greybox
496
497 cury 2 add
498 curx curx wd add (Aperture (f/x)) centertext
499 pop
500
501 /cury exch def %% add height change from box
502
503 cell
504
505 bigfont
506 cury 20 add curx curx wd add aperturetext centertext pop
507 smallfont
508
509 xpos wd add
510 } def
511
512/shutter
513 {
514 /cury exch def
515 /curx exch def
516 /wd 68 def
517 /headht 1 cellheight mul def
518 /cellht 2 cellheight mul def
519
520 curx cury wd headht greybox
521
522 cury 2 add
523 curx curx wd add (Shutter (sec)) centertext
524 pop
525
526 /cury exch def %% add height change from box
527
528 cell
529
530 bigfont
531 cury 20 add curx curx wd add shuttertext centertext pop
532 smallfont
533
534 xpos wd add
535 } def
536
537/geometry
538 {
539 /rrise exch def
540 /rtilt exch def
541 /rswing exch def
542 /rshift exch def
543
544 /frise exch def
545 /ftilt exch def
546 /fswing exch def
547 /fshift exch def
548
549 /cury exch def
550 /curx exch def
551 /wd 74 def
552 /headht 1 cellheight mul def
553 /cellht 2.5 cellheight mul def
554
555 curx cury wd headht greybox
556
557 cury 2 add
558 curx curx wd add (Geometry) centertext
559 pop
560
561 /cury exch def %% add height change from box
562
563 cell
564
565 gsave
566 curx 3 add cury 6 add translate toppic
567 grestore
568 gsave
569 curx 3 add cury 6 add translate
570 fshift fswing rshift rswing cameraview
571 grestore
572
573 cell
574
575 gsave
576 curx 3 add cury 6 add translate sidepic
577 grestore
578 gsave
579 curx 3 add cury 6 add translate
580 frise ftilt rrise rtilt cameraview
581 grestore
582
583 xpos wd add
584 } def
585
586/film
587 {
588 /cury exch def
589 /curx exch def
590 /wd 52 def
591 /headht 1 cellheight mul def
592 /cellht 2 cellheight mul def
593
594 curx cury wd headht greybox
595
596 cury 2 add
597 curx curx wd add (Film) centertext
598 pop
599
600 /cury exch def %% add height change from box
601
602 cell
603
604 bigfont
605 cury 20 add curx curx wd add filmtext centertext pop
606 smallfont
607
608 xpos wd add
609 } def
610
611/carrier
612 {
613 /cury exch def
614 /curx exch def
615 /wd 42 def
616 /headht 1 cellheight mul def
617 /cellht 2 cellheight mul def
618
619 curx cury wd headht greybox
620
621 cury 2 add
622 curx curx wd add (Carrier) centertext
623 pop
624
625 /cury exch def %% add height change from box
626
627 cell
628
629 bigfont
630 cury 20 add curx curx wd add carriertext centertext pop
631 smallfont
632
633 xpos wd add
634 } def
635
636/lens
637 {
638 /cury exch def
639 /curx exch def
640 /wd 42 def
641 /headht 1 cellheight mul def
642 /cellht 2 cellheight mul def
643
644 curx cury wd headht greybox
645
646 cury 2 add
647 curx curx wd add (Lens) centertext
648 pop
649
650 /cury exch def %% add height change from box
651
652 cell
653
654 bigfont
655 cury 20 add curx curx wd add lenstext centertext pop
656 smallfont
657
658 xpos wd add
659 } def
660
661/process
662 {
663 /cury exch def
664 /curx exch def
665 /wd 42 def
666 /headht 1 cellheight mul def
667 /cellht 2 cellheight mul def
668
669 curx cury wd headht greybox
670
671 cury 2 add
672 curx curx wd add (Process) centertext
673 pop
674
675 /cury exch def %% add height change from box
676
677 cell
678
679 bigfont
680 cury 20 add curx curx wd add processtext centertext pop
681 smallfont
682
683 xpos wd add
684 } def
685
686/date
687 {
688 /cury exch def
689 /curx exch def
690
691 /wd 252 108 sub def
692 /cellht 1.5 cellheight mul def
693
694 curx cury wd 2 cellht mul box pop
695
696 /cury curx cury wd cellht writingline def
697 /cury curx cury wd cellht writingline def
698
699 /cury cury 2 cellht mul add def
700 /curx curx wd add def
701
702 /wd 108 def
703 /headht 1 cellheight mul def
704 /cellht 2 cellheight mul def
705
706 curx cury wd headht greybox
707
708 cury 2 add
709 curx curx wd add (Date) centertext
710 pop
711
712 /cury exch def %% add height change from box
713
714 cell
715
716 %% draw the writing lines
717
718 xpos
719 } def
720
721/notes
722 {
723 /cury exch def
724 /curx exch def
725
726 /wd 252 def
727 %%/headht 1 cellheight mul def
728 /cellht 1.5 cellheight mul def
729 /boxht 4.5 in 6 cellheight mul sub def %% 5in - header so far
730
731 %%curx cury wd headht greybox
732
733 %%cury 2 add
734 %%curx curx wd add (Process) centertext
735 %%pop
736
737 %%/cury exch def %% add height change from box
738
739 curx cury wd boxht box pop
740
741 %%/cury curx 10 add cury wd 20 sub cellht writingline def
742
743 curx cury %% save for returning to print text
744 /cury curx cury wd cellht writingline def
745 /cury curx cury wd cellht writingline def
746 /cury curx cury wd cellht writingline def
747 /cury curx cury wd cellht writingline def
748 /cury curx cury wd cellht writingline def
749 /cury curx cury wd cellht writingline def
750 /cury curx cury wd cellht writingline def
751 /cury curx cury wd cellht writingline def
752 /cury curx cury wd cellht writingline def
753 /cury curx cury wd cellht writingline def
754 /cury curx cury wd cellht writingline def
755 /cury curx cury wd cellht writingline def
756
757 moveto %% saved starting point
758 normalfont
759 notelines
760 {
761 0 0 cellht sub rmoveto
762 currentpoint
763 2 2 rmoveto
764 3 -1 roll show
765 moveto
766 } forall
767 smallfont
768
769 xpos
770 } def
771
772/record
773 {
774 /notelines exch def
775
776 /rrise exch def
777 /rtilt exch def
778 /rswing exch def
779 /rshift exch def
780
781 /frise exch def
782 /ftilt exch def
783 /fswing exch def
784 /fshift exch def
785
786 /shuttertext exch def
787 /aperturetext exch def
788 /lenstext exch def
789
790 /processtext exch def
791 /carriertext exch def
792 /filmtext exch def
793 /idtext exch def
794
795 /rtop exch def
796 /rleft exch def
797
798 /xpos rleft def
799 /ypos rtop def
800 smallfont
801 /xpos xpos ypos picid def
802 /xpos xpos ypos film def
803 /xpos xpos ypos carrier def
804 /xpos xpos ypos process def
805 /xpos xpos ypos
806 frise ftilt fswing fshift
807 rrise rtilt rswing rshift
808 geometry def
809
810 /ypos ypos 3 cellheight mul sub def
811 /xpos rleft def
812
813 /xpos xpos ypos lens def
814 /xpos xpos ypos aperture def
815 /xpos xpos ypos shutter def
816
817 /ypos ypos 3 cellheight mul sub def
818 /xpos rleft def
819
820 %%/xpos xpos ypos date def
821 %%/ypos ypos 3 cellheight mul sub def
822 %%/xpos rleft def
823
824 /xpos xpos ypos notes def
825 }
826def
827
828%(code)s
829
830/crop
831{
832 gsave
833 .2 setlinewidth
834 .7 .7 .7 setrgbcolor
835
836 /bottom plantop 8.5 72 mul sub 36 add def
837
838 planleft 4.5 sub plantop 36 add moveto
839 gsave
840 0 -8 rmoveto 0 16 rlineto stroke
841 grestore
842 -8 0 rmoveto 16 0 rlineto stroke
843
844 planright 4.5 add plantop 36 add moveto
845 gsave
846 0 -8 rmoveto 0 16 rlineto stroke
847 grestore
848 -8 0 rmoveto 16 0 rlineto stroke
849
850
851 planleft 4.5 sub bottom moveto
852 0 -8 rmoveto 0 16 rlineto stroke
853
854 planright 4.5 add bottom moveto
855 0 -8 rmoveto 0 16 rlineto stroke
856
857 grestore
858} def
859
860%%crop
861
862%%%%EOF
863"""