lo<br><br>1. How to express in SVG a float layout similar to an IMG tag floating on the right of a text paragraph in HTML?<br>
<br>as far as i know there is none but can be doen with CSS which should work with SVG too<br><br>
2. Alternatively, how to combine separate HTML-to-PDF renderings of a 
front cover, spine, and back cover into a single PDF *page*?<br><br>you mean with something like PDFtk ? Why not generate a svg file directly at the right size containing front+spine+back ?<br>
<br>
3. In either case. how to scale the font size of the book title in SVG 
*or* HTML so that the title width matches the horizontal page available 
in the cover?<br>
<br>I guess SVG attribute transform with scale value can do this<br><br><a href="http://www.w3.org/TR/2011/REC-SVG11-20110816/coords.html#TransformAttribute">http://www.w3.org/TR/2011/REC-SVG11-20110816/coords.html#TransformAttribute</a><br>
<br>if you have any question regarding SVG please do mind asking me. I'm programming SVG since the early days of the language so i'm quite used to it even if i became lazy using Inkscape :)<br><br>cheers<br><br><br>

Actually, I wouldn't mind if someone else wanted to whip up something 
for this as it's only tangential even though required for the <a href="http://lulu.com/" target="_blank">lulu.com</a> integration.<br><br><br><div class="gmail_quote">2011/10/16 adam hyde <span dir="ltr"><<a href="mailto:adam@flossmanuals.net">adam@flossmanuals.net</a>></span><br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">i did find some time ago a javascript that enabled 90 degree rotation alignment of text...good for the spine...on a plane now so will check when i am at the doc sprint hotel<br>
<font color="#888888">
<br>
adam</font><div><div></div><div class="h5"><br>
<br>
On 14/10/11 17:29, Tuukka Hastrup wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
2011-10-14 05:34, adam kirjoitti:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
actually, why not just use html and convert to pdf?<br>
</blockquote>
<br>
Yeah, maybe that's ok for now although it doesn't give as much options<br>
as Inkscape for the artist.<br>
<br>
To get the required PDF with front, spine and back on one page from HTML<br>
format, we would need to figure out a way to combine the three separate<br>
PDF pages, *or* make the combined layout as well as the spine text 90<br>
degree rotation in CSS. Would anyone know how to do a HTML/CSS design<br>
like this right away?<br>
<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
On 10/14/2011 01:50 PM, Tuukka Hastrup wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<br>
I made some progress with help from Elisa on IRC.<br>
<br>
First, she sent this example of what kind of a result we're ideally<br>
targetting, although it could be much simpler at this point:<br>
<a href="http://tuukka.iki.fi/tmp/example-cover.png" target="_blank">http://tuukka.iki.fi/tmp/<u></u>example-cover.png</a><br>
<br>
Second, a new idea to alternatively use Scribus for this came up in the<br>
discussion, as Scribus is meant for page-making given text and image<br>
assets. Unfortunately, on the IRC channel #scribus, I heard that the<br>
efforts to make Scribus suitable for automatic rendering are still<br>
experimental. Thus, someone could explore e.g. running Scribus headless<br>
with Xvfb and scripting it with Scribus Scripter2 which was part of the<br>
GSOC this year:<br>
<a href="http://scripter2.jainbasil.net/" target="_blank">http://scripter2.jainbasil.<u></u>net/</a><br>
<a href="http://jainbasil.net/scripter2/" target="_blank">http://jainbasil.net/<u></u>scripter2/</a><br>
<br>
Third, on the IRC channel #inkscape, I learned about the current<br>
limitations of the SVG approach such as flowed text (automated<br>
text-layout) being Inkscape-only and Inkscape not supporting<br>
high-quality rendering of SVG images nested within an outer SVG image.<br>
It might be possible to convert the flowed text to non-flowed with<br>
Inkscape then use something like wkhtmltopdf to convert standard SVG to<br>
PDF. wkhtmltopdf crashes when I try to convert an SVG though. The link I<br>
got about nested SVG in Inkscape was this:<br>
<a href="http://article.gmane.org/gmane.comp.graphics.inkscape.user/14208" target="_blank">http://article.gmane.org/<u></u>gmane.comp.graphics.inkscape.<u></u>user/14208</a><br>
<br>
The three earlier issues still remain as well:<br>
<br>
2011-10-14 02:05, Tuukka Hastrup wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
I hit some "challenges" trying to render book covers automatically as<br>
needed for <a href="http://lulu.com" target="_blank">lulu.com</a> integration. At the moment, I can render a blank<br>
PDF<br>
of the right dimensions ;-) I'm wondering if anyone else has ideas on<br>
how to solve (or work around) these:<br>
<br>
1. How to express in SVG a float layout similar to an IMG tag floating<br>
on the right of a text paragraph in HTML?<br>
<br>
2. Alternatively, how to combine separate HTML-to-PDF renderings of a<br>
front cover, spine, and back cover into a single PDF *page*?<br>
<br>
3. In either case. how to scale the font size of the book title in SVG<br>
*or* HTML so that the title width matches the horizontal page available<br>
in the cover?<br>
<br>
Actually, I wouldn't mind if someone else wanted to whip up something<br>
for this as it's only tangential even though required for the <a href="http://lulu.com" target="_blank">lulu.com</a><br>
integration.<br>
<br>
<br>
Regards<br>
Tuukka<br>
<br>
P.S. Here's what I use for the blank test PDFs: wkhtmltopdf-i386<br>
--page-width 210 --page-height 297 --load-error-handling ignore<br>
/dev/zero a4.pdf<br>
<br>
______________________________<u></u>_________________<br>
Booki-dev mailing list<br>
<a href="mailto:Booki-dev@lists.flossmanuals.net" target="_blank">Booki-dev@lists.flossmanuals.<u></u>net</a><br>
<a href="http://lists.flossmanuals.net/listinfo.cgi/booki-dev-flossmanuals.net" target="_blank">http://lists.flossmanuals.net/<u></u>listinfo.cgi/booki-dev-<u></u>flossmanuals.net</a><br>
</blockquote>
______________________________<u></u>_________________<br>
Discuss mailing list<br>
<a href="mailto:Discuss@lists.flossmanuals.net" target="_blank">Discuss@lists.flossmanuals.net</a><br>
<a href="http://lists.flossmanuals.net/listinfo.cgi/discuss-flossmanuals.net" target="_blank">http://lists.flossmanuals.net/<u></u>listinfo.cgi/discuss-<u></u>flossmanuals.net</a><br>
</blockquote>
<br>
</blockquote>
<br>
______________________________<u></u>_________________<br>
Discuss mailing list<br>
<a href="mailto:Discuss@lists.flossmanuals.net" target="_blank">Discuss@lists.flossmanuals.net</a><br>
<a href="http://lists.flossmanuals.net/listinfo.cgi/discuss-flossmanuals.net" target="_blank">http://lists.flossmanuals.net/<u></u>listinfo.cgi/discuss-<u></u>flossmanuals.net</a><br>
</blockquote>
______________________________<u></u>_________________<br>
Discuss mailing list<br>
<a href="mailto:Discuss@lists.flossmanuals.net" target="_blank">Discuss@lists.flossmanuals.net</a><br>
<a href="http://lists.flossmanuals.net/listinfo.cgi/discuss-flossmanuals.net" target="_blank">http://lists.flossmanuals.net/<u></u>listinfo.cgi/discuss-<u></u>flossmanuals.net</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Cédric Gémy<br>-----------------------------------------------------------------<br>Formationlibre.org<br>FlossManualsFrancophone<br>Association Francophone des Graphistes Libres<br>
<br>