This is the mail archive of the
docbook-apps@lists.oasis-open.org
mailing list .
Re: [docbook-apps] A stupid idea
- From: "Bob Stayton" <bobs at sagehill dot net>
- To: "Jacques" <jacques at foucry dot net>, "docbook-apps" <docbook-apps at lists dot oasis-open dot org>
- Date: Sun, 5 Dec 2004 09:08:33 -0800
- Subject: Re: [docbook-apps] A stupid idea
- References: <r02010400-1036-342992B6464511D9B26A000A95C2BD80@[192.168.1.6]>
OK, now I understand. I think you just need to tell the processor to use
the .svg extension rather than the .png extension. You can do that with the
'callout.graphics.extension' parameter as described in:
http://www.sagehill.net/docbookxsl/Icons.html#CalloutIcons
Now that we have svg callout icons, I will make that the default for FO
output in the next release.
Bob Stayton
Sagehill Enterprises
DocBook Consulting
bobs@sagehill.net
----- Original Message -----
From: "Jacques" <jacques@foucry.net>
To: "docbook-apps" <docbook-apps@lists.oasis-open.org>
Sent: Saturday, December 04, 2004 2:38 PM
Subject: Re: [docbook-apps] A stupid idea
Le vendredi 3 décembre 2004, Bob Stayton disait :
>I'm not clear what the problem is, though. If you have the SVG
>generator,
>you can generate SVG icon files for however many callout numbers you
>need.
>The bitmap numbers would only be used for HTML output. What exactly
>were
>you expecting, and what did you get that did not meet those
>expectations?
I have the SVG generator script (from the Alexander's script previously
talk here). I can generate the png file but I found (may be because I am
a Mac user) that the result in a PDF file is not "beautiful".
I try to put the svg script inside my xml book file and the result
(always in a pdf file) is very better than with the bitmap files.
So I would like to call (for example) 1.svg instead of 1.png when a
callout icon is required in my file.
For now the result is not good. I have no errors, but the callout icons
are not in the final pdf document.
May be the good solution is to custom callouts.xsl.
I hope It's more clear. :-)
My svg script is :
<?xml version="1.0"?>
<svg width="9" height="9" viewBox="0 0 16 16">
<g transform="translate(0,0)"
style="font-family:serif;font-size:10;font-weight:bold">
<circle cx="8" cy="8" r="7"
style="stroke:rgb(0,0,0);fill:black;stroke-width:1"/>
<g style="stroke:none;fill:white">
<text id="number" text-anchor="middle" x="8"
y="11.5">1</text>
</g>
</g>
</svg>
--
Jacques
--
S'il n'y pas de solution, c'est qu'il n'y a pas de problème