Hi Paul,<div>This is very good. I had to convert the print 'xxxxx'.format() statements into the ' %d ' % (xxx) format to get it to run on my computer (not sure if that is a python version issue), but it is producing nice clear paginated output.</div>
<div><br></div><div>Thanks</div><div><br>Graham.<br><br><div class="gmail_quote">On 22 February 2012 03:38, Paul Norman <span dir="ltr"><<a href="mailto:penorman@mac.com">penorman@mac.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div lang="EN-US" link="blue" vlink="purple"><div><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">I’ve thrown something together in python. It uses mapnik for rendering the maps and cairo for page layout. It’s on github at </span><a href="https://github.com/pnorman/mapbook" target="_blank">https://github.com/pnorman/mapbook</a><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"> but it’s very much in a development stage. <u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">I intend to add <u></u><u></u></span></p><p><u></u><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><span>-<span style="font:7.0pt "Times New Roman""> </span></span></span><u></u><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Arrows at the edges, indicating what page to go if you want to look in that direction<u></u><u></u></span></p>
<p><u></u><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><span>-<span style="font:7.0pt "Times New Roman""> </span></span></span><u></u><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">An index page at the front<u></u><u></u></span></p>
<p><u></u><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><span>-<span style="font:7.0pt "Times New Roman""> </span></span></span><u></u><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">The ability to skip maps<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p><div style="border:none;border-left:solid blue 1.5pt;padding:0in 0in 0in 4.0pt">
<div><div style="border:none;border-top:solid #b5c4df 1.0pt;padding:3.0pt 0in 0in 0in"><p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">From:</span></b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> Graham Jones [mailto:<a href="mailto:grahamjones139@gmail.com" target="_blank">grahamjones139@gmail.com</a>] <br>
<b>Sent:</b> Sunday, February 19, 2012 2:50 AM<br><b>To:</b> Paul Norman<br><b>Cc:</b> Steve Bennett; <a href="mailto:talk@openstreetmap.org" target="_blank">talk@openstreetmap.org</a><br><b>Subject:</b> Re: RE: [OSM-talk] Printed map books<u></u><u></u></span></p>
</div></div><div><div class="h5"><p class="MsoNormal"><u></u> <u></u></p><p>My townguide python script does that - it uses a library to put the mapnik generated images onto pdf pages along with other text.<u></u><u></u></p>
<p>from my phone<u></u><u></u></p><blockquote style="margin-top:5.0pt;margin-bottom:5.0pt"><p class="MsoNormal" style="margin-bottom:12.0pt">On 19 Feb 2012 09:37, "Paul Norman" <<a href="mailto:penorman@mac.com" target="_blank">penorman@mac.com</a>> wrote:<u></u><u></u></p>
<div><div><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Pdfatlas appears to use a custom rendering language, and I’d rather avoid that. It also hasn’t been updated in 5 years.</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"> </span><u></u><u></u></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">What I’m considering writing is a set of python scripts that build the map with mapnik and then piece the pages together. Do you think inkscape is the easiest way to build the PDFs from the command line?</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"> </span><u></u><u></u></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"> </span><u></u><u></u></p>
<div style="border:none;border-left:solid blue 1.5pt;padding:0in 0in 0in 4.0pt"><div><div style="border:none;border-top:solid #b5c4df 1.0pt;padding:3.0pt 0in 0in 0in"><p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">From:</span></b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> Graham Jones [mailto:<a href="mailto:grahamjones139@gmail.com" target="_blank">grahamjones139@gmail.com</a>] <br>
<b>Sent:</b> Sunday, February 19, 2012 1:08 AM<br><b>To:</b> Steve Bennett<br><b>Cc:</b> Paul Norman; <a href="mailto:talk@openstreetmap.org" target="_blank">talk@openstreetmap.org</a><br><b>Subject:</b> Re: [OSM-talk] Printed map books</span><u></u><u></u></p>
</div></div><p><span style="color:#500050"><br><br> <br><br>Hi,<br><br>The two 'townguide' ones are mine, but the demonstration web service at townguide.webhop.n...</span><u></u><u></u></p></div></div></div></blockquote>
</div></div></div></div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br>Graham Jones<div>Hartlepool, UK.</div><br>
</div>