Toon-o-Matic run Tue Jul 15 23:41:49 PDT 2008

interpret_script.pl runs:

Script specification

panel
jesus says hello

Interpretation follows:
panel
Panel - (parameters currently ignored)

jesus says hello
Speech implies presence: speaker is "jesus".
Speaker says: "hello"

Resulting XML definition:

<cartoon rowformat="1" width="700" panel-h="150" character-base-url="http://www.vivtek.com/toonbots/characters/">
<panel>
<character name="jesus"/>
<dialog who="jesus">hello</dialog>
</panel>
</cartoon>

instantiate.pl runs, but doesn't really do anything yet.

build_panel_make.pl runs.
Scene default:

<scene id="default" panels="1">
<frame tag="default-1" id="1" panels="1">
<character name="jesus" tag="default-1"/>
</frame>
</scene>

Panel Makefile is as follows:

# Panel Makefile generated Tue Jul 15 23:41:49 PDT 2008 by Toon-o-Matic t2
# Contains no serviceable parts.  Batteries not included.
# Void in NH, VT, and U.S. Minor Outlying Islands.

all:  panel-1.svg

panel-1.svg: character-jesus-default-1-1.svg dialog-1-1.svg
	perl build_panel_g.pl panel-1.xml 1 1 > panel-1-g.svg
	perl merge_svg.pl "panel 1" panel-1-g.svg character-jesus-default-1-1.svg dialog-1-1.svg > panel-1.svg

placement-panel-1.xml: draw-character-jesus-default-1.xml
	perl place_characters.pl "panel 1" 698 150 draw-character-jesus-default-1.xml > placement-panel-1.xml

dialog-1-1.info: dialog-1-1.xml  character-jesus-default-1-1.svg
	perl render_text.pl dialog-1-1.xml dialog-1-1.png
	identify -format '<graphic size="%b" height="%h" width="%w" geometry="%g" file="%f"/>' dialog-1-1.png > dialog-1-1.info

dialog-1-1.svg: dialog-1-1.info
	perl draw_caption.pl dialog-1-1.xml dialog-1-1.info 698 150 0 dialog-1-1.png > dialog-1-1.svg

draw-character-jesus-default-1.xml: character-jesus-default-1.xml
	perl build_character.pl this 698 150 character-jesus-default-1.xml > draw-character-jesus-default-1.xml

character-jesus-default-1-1.svg: draw-character-jesus-default-1.xml placement-panel-1.xml
	perl draw.pl draw-character-jesus-default-1.xml 698 150 placement-panel-1.xml > character-jesus-default-1-1.svg


build_character.pl runs on character-jesus-default-1.xml:
<character name="jesus" tag="default-1"/>
Retrieving character definition for jesus; URL is http://www.vivtek.com/toonbots/characters/jesus.xml
Retrieval fails, unfortunately. We'll go with the default character.
Final character definition:
<rect rel-w="75" show-box="yes" rel-h="50"/>

Built character:

<character name="jesus" tag="default-1" rel-h="50" rel-w="75" show-box="yes" height="75" width="56.25"/>

place_characters.pl places characters for panel 1:

<placement>
<character name="jesus" x="320.875" y="52.5"/>
</placement>

draw.pl runs on draw-character-jesus-default-1.xml:

SVG built:

<g x="320.875" y="52.5" w="56.25" h="75">
<rect x="320.875" y="52.5" width="56.25" height="75" style="stroke:black; stroke-width:1; fill:none"/>
</g>

render_text.pl renders "dialog-1-1.xml":

<dialog who="jesus" ref-who="character-jesus-default-1-1.svg">hello</dialog>

draw_caption.pl runs:

Graphics info:

<graphic width="53" file="dialog-1-1.png" geometry="2500x320+21+5" height="22" size="4232"/>

<g>
<polyline style="stroke:black; stroke-width:1; fill:white" points="377.125,26.5 450.125,26.5 450.125,52.5 423.625,52.5 382.125,90 403.625,52.5 377.125,52.5 377.125,26.5"/>
<image x="10" y="2" width="53" height="22" xlink:href="dialog-1-1.png" transform="translate(377.125,26.5)"/>
</g>

build_panel_g.pl runs, producing:

<g transform="translate(1,1)"/>

merge_svg.pl runs to produce panel 1:

<g transform="translate(1,1)"><g w="56.25" y="52.5" h="75" x="320.875">
<rect width="56.25" y="52.5" style="stroke:black; stroke-width:1; fill:none" x="320.875" height="75"/>
</g>
<g>
<polyline points="377.125,26.5 450.125,26.5 450.125,52.5 423.625,52.5 382.125,90 403.625,52.5 377.125,52.5 377.125,26.5" style="stroke:black; stroke-width:1; fill:white"/>
<image width="53" y="2" transform="translate(377.125,26.5)" xlink:href="dialog-1-1.png" x="10" height="22"/>
</g>
</g>

draw_panels.pl runs:

<svg height="152" width="702">
<rect height="152" width="700" style="fill: white"/>
<polyline transform="" style="fill:none; stroke:black; stroke-width:1" arrow="" points="1,1 699,1 699,151 1,151 1,1"/>
</svg>

merge_svg.pl runs to produce the final cartoon:

<svg width="702" height="152">
<rect width="700" style="fill: white" height="152"/>
<polyline transform="" points="1,1 699,1 699,151 1,151 1,1" style="fill:none; stroke:black; stroke-width:1" arrow=""/>
<g transform="translate(1,1)"/>
<g transform="translate(1,1)"><g y="52.5" w="56.25" h="75" x="320.875">
<rect y="52.5" width="56.25" style="stroke:black; stroke-width:1; fill:none" x="320.875" height="75"/>
</g>
<g>
<polyline style="stroke:black; stroke-width:1; fill:white" points="377.125,26.5 450.125,26.5 450.125,52.5 423.625,52.5 382.125,90 403.625,52.5 377.125,52.5 377.125,26.5"/>
<image y="2" width="53" transform="translate(377.125,26.5)" xlink:href="dialog-1-1.png" x="10" height="22"/>
</g>
</g>
</svg>

The final result (drumroll please!)






Copyright © 1996-2009 Vivtek. All Rights Reserved. Read the disclaimer.
Read our privacy statement, too, if you are concerned.
Problems? Try webmaster@vivtek.com or our answer page.