Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

[tutorial] started putting together one

  • Loading branch information...
commit 2d1d511d5369308a1cae3d251ab5305fcfe3464d 1 parent e24dabb
@masak authored
View
16 tutorial/make-pdf
@@ -0,0 +1,16 @@
+#!/usr/bin/perl -w
+use strict;
+
+my $inkscape_executable
+ = '/Applications/Inkscape.app/Contents/Resources/bin/inkscape';
+
+system
+ "$inkscape_executable --export-text-to-path "
+ . "--without-gui --file=src/page$_.svg "
+ . "--export-pdf=pdf/page$_.pdf"
+ for 1..2;
+
+system
+ 'gs -q -sPAPERSIZE=letter -dNOPAUSE -dBATCH -sDEVICE=pdfwrite'
+ . " -sOutputFile=win.pdf pdf/*.pdf";
+
View
1  tutorial/pdf/.gitignore
@@ -0,0 +1 @@
+*.pdf
View
5,652 tutorial/src/page1.svg
5,652 additions, 0 deletions not shown
View
250 tutorial/src/page2.svg
@@ -0,0 +1,250 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!-- Created with Inkscape (http://www.inkscape.org/) -->
+
+<svg
+ xmlns:dc="http://purl.org/dc/elements/1.1/"
+ xmlns:cc="http://creativecommons.org/ns#"
+ xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
+ xmlns:svg="http://www.w3.org/2000/svg"
+ xmlns="http://www.w3.org/2000/svg"
+ xmlns:xlink="http://www.w3.org/1999/xlink"
+ xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
+ xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
+ width="1024px"
+ height="768px"
+ id="svg2816"
+ version="1.1"
+ inkscape:version="0.47pre4 r22446"
+ sodipodi:docname="page2.svg">
+ <defs
+ id="defs2818">
+ <linearGradient
+ id="linearGradient12953">
+ <stop
+ style="stop-color:#fbf73d;stop-opacity:1;"
+ offset="0"
+ id="stop12955" />
+ <stop
+ style="stop-color:#f7fdad;stop-opacity:1;"
+ offset="1"
+ id="stop12957" />
+ </linearGradient>
+ <linearGradient
+ id="linearGradient12846">
+ <stop
+ style="stop-color:#ffffff;stop-opacity:1;"
+ offset="0"
+ id="stop12848" />
+ <stop
+ style="stop-color:#c0c0c0;stop-opacity:1;"
+ offset="1"
+ id="stop12850" />
+ </linearGradient>
+ <inkscape:perspective
+ sodipodi:type="inkscape:persp3d"
+ inkscape:vp_x="0 : 384 : 1"
+ inkscape:vp_y="0 : 1000 : 0"
+ inkscape:vp_z="1024 : 384 : 1"
+ inkscape:persp3d-origin="512 : 256 : 1"
+ id="perspective2824" />
+ <font
+ horiz-adv-x="2048"
+ id="EmbeddedFont_1">
+ <font-face
+ id="font-face6562"
+ descent="582"
+ ascent="1958"
+ units-per-em="2048"
+ font-family="Nimbus Sans L embedded" />
+ <missing-glyph
+ id="missing-glyph6564"
+ horiz-adv-x="2048">
+ <path
+ id="path6566"
+ d="M 0,2048 L 2047,2048 2047,1 0,1 0,2048 Z"
+ style="fill:none;stroke:black;stroke-width:33" />
+ </missing-glyph>
+ <glyph
+ id="glyph6568"
+ horiz-adv-x="1350"
+ unicode="M">
+ <path
+ id="path6570"
+ d="M 958,0 L 1378,1251 1378,0 1559,0 1559,1493 1294,1493 860,193 418,1493 154,1493 154,0 334,0 334,1251 758,0 958,0 Z" />
+ </glyph>
+ <glyph
+ id="glyph6572"
+ horiz-adv-x="1166"
+ unicode="T">
+ <path
+ id="path6574"
+ d="M 725,1325 L 1214,1325 1214,1493 43,1493 43,1325 535,1325 535,0 725,0 725,1325 Z" />
+ </glyph>
+ </font>
+ <inkscape:perspective
+ id="perspective10232"
+ inkscape:persp3d-origin="13970 : 7196.6667 : 1"
+ inkscape:vp_z="27940 : 10795 : 1"
+ inkscape:vp_y="0 : 1000 : 0"
+ inkscape:vp_x="0 : 10795 : 1"
+ sodipodi:type="inkscape:persp3d" />
+ <linearGradient
+ inkscape:collect="always"
+ xlink:href="#linearGradient12846"
+ id="linearGradient12852"
+ x1="512"
+ y1="-7.5739746"
+ x2="512"
+ y2="775.57397"
+ gradientUnits="userSpaceOnUse" />
+ <linearGradient
+ inkscape:collect="always"
+ xlink:href="#linearGradient12953"
+ id="linearGradient13007"
+ gradientUnits="userSpaceOnUse"
+ x1="863.43195"
+ y1="630.15387"
+ x2="863.43195"
+ y2="418.08286" />
+ </defs>
+ <sodipodi:namedview
+ id="base"
+ pagecolor="#ffffff"
+ bordercolor="#666666"
+ borderopacity="1.0"
+ inkscape:pageopacity="0.0"
+ inkscape:pageshadow="2"
+ inkscape:zoom="0.66015625"
+ inkscape:cx="512"
+ inkscape:cy="384"
+ inkscape:current-layer="layer1"
+ inkscape:document-units="px"
+ showgrid="false"
+ inkscape:window-width="904"
+ inkscape:window-height="755"
+ inkscape:window-x="165"
+ inkscape:window-y="138"
+ inkscape:window-maximized="0" />
+ <metadata
+ id="metadata2821">
+ <rdf:RDF>
+ <cc:Work
+ rdf:about="">
+ <dc:format>image/svg+xml</dc:format>
+ <dc:type
+ rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
+ <dc:title></dc:title>
+ </cc:Work>
+ </rdf:RDF>
+ </metadata>
+ <g
+ id="layer1"
+ inkscape:label="Layer 1"
+ inkscape:groupmode="layer">
+ <rect
+ id="rect12072"
+ width="1042.1775"
+ height="783.14795"
+ x="-9.0887451"
+ y="-7.5739746"
+ style="fill-opacity:1;fill:url(#linearGradient12852);stroke:none" />
+ <text
+ xml:space="preserve"
+ style="font-size:40px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;text-align:start;text-anchor:start;fill:#000000;fill-opacity:1;stroke:none;font-family:Geneva CY;-inkscape-font-specification:Bitstream Vera Sans"
+ x="207.52663"
+ y="180.26036"
+ id="text12919"><tspan
+ sodipodi:role="line"
+ id="tspan12921"
+ x="207.52663"
+ y="180.26036">neat, <tspan
+ style="font-style:italic;-inkscape-font-specification:Bitstream Vera Sans Oblique"
+ id="tspan12923">adjective, -er, -est</tspan></tspan></text>
+ <g
+ id="g12941"
+ transform="translate(128.81293,22.208176)">
+ <text
+ id="text12925"
+ y="263.57397"
+ x="169.6568"
+ style="font-size:36px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;text-align:start;text-anchor:start;fill:#000000;fill-opacity:1;stroke:none;font-family:Geneva CY;-inkscape-font-specification:Geneva CY"
+ xml:space="preserve"><tspan
+ y="263.57397"
+ x="169.6568"
+ id="tspan12927"
+ sodipodi:role="line">1. pleasingly orderly</tspan></text>
+ <text
+ id="text12929"
+ y="335.77911"
+ x="171.85406"
+ style="font-size:36px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;text-align:start;text-anchor:start;fill:#000000;fill-opacity:1;stroke:none;font-family:Geneva CY;-inkscape-font-specification:Geneva CY"
+ xml:space="preserve"><tspan
+ y="335.77911"
+ x="171.85406"
+ id="tspan12931"
+ sodipodi:role="line">2. of a simple design</tspan></text>
+ <text
+ id="text12933"
+ y="407.98422"
+ x="171.97711"
+ style="font-size:36px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;text-align:start;text-anchor:start;fill:#000000;fill-opacity:1;stroke:none;font-family:Geneva CY;-inkscape-font-specification:Geneva CY"
+ xml:space="preserve"><tspan
+ y="407.98422"
+ x="171.97711"
+ id="tspan12935"
+ sodipodi:role="line">3. cleverly effective</tspan></text>
+ <text
+ id="text12937"
+ y="480.18936"
+ x="173.06696"
+ style="font-size:36px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;text-align:start;text-anchor:start;fill:#000000;fill-opacity:1;stroke:none;font-family:Geneva CY;-inkscape-font-specification:Geneva CY"
+ xml:space="preserve"><tspan
+ y="480.18936"
+ x="173.06696"
+ id="tspan12939"
+ sodipodi:role="line">4. great; wonderful; fine</tspan></text>
+ </g>
+ <g
+ id="g12996"
+ transform="matrix(0.98334096,-0.18177063,0.18177063,0.98334096,-127.84507,248.99261)">
+ <g
+ id="g12970">
+ <path
+ style="fill:url(#linearGradient13007);fill-opacity:1;stroke:#12101e;stroke-opacity:1"
+ d="m 757.40625,418.09375 0,212.0625 181.4375,0 30.625,-30.625 0,-181.4375 -212.0625,0 z"
+ id="rect12951" />
+ <path
+ style="fill:none;stroke:#000000;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
+ d="m 939.24001,629.88705 0.11336,-30.34315 29.83716,0"
+ id="path12966"
+ sodipodi:nodetypes="ccc" />
+ </g>
+ <text
+ id="text12976"
+ y="479.12012"
+ x="774.88281"
+ style="font-size:20px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;text-align:start;text-anchor:start;fill:#000000;fill-opacity:1;stroke:none;font-family:Comic Sans MS;-inkscape-font-specification:Comic Sans MS"
+ xml:space="preserve"><tspan
+ id="tspan12982"
+ y="479.12012"
+ x="774.88281"
+ sodipodi:role="line">We contend that</tspan><tspan
+ id="tspan12988"
+ y="504.12012"
+ x="774.88281"
+ sodipodi:role="line">Web.pm is all of</tspan><tspan
+ id="tspan12990"
+ y="529.12012"
+ x="774.88281"
+ sodipodi:role="line">these things. This</tspan><tspan
+ id="tspan12992"
+ y="554.12012"
+ x="774.88281"
+ sodipodi:role="line">tutorial aims to</tspan><tspan
+ id="tspan12994"
+ y="579.12012"
+ x="774.88281"
+ sodipodi:role="line">show why, and how.</tspan></text>
+ </g>
+ </g>
+</svg>
View
BIN  tutorial/win.pdf
Binary file not shown
Please sign in to comment.
Something went wrong with that request. Please try again.