RE: [docbook-apps] svg, pdf, png, and jpg callouts 1-99

From
David Cramer (Tech Pubs) <>
Date
2007-05-31T16:30:01+00:00
ID
Thread
RE: [docbook-apps] svg, pdf, png, and jpg callouts 1-99
I figured out the reason the svg images weren't working and 
fixed them. Apparently XEP doesn't support opacity="0" in 
svgs.

 

David

  

  
  From: David Cramer (Tech Pubs) 
  
Sent: Thursday, May 31, 2007 10:56 AM
To: 
  
Subject: [docbook-apps] svg, pdf, 
  png, and jpg callouts 1-99

  

  
I found myself 
  wanting more than 10 callouts and wanting them too look crisp in pdf, so I 
  made some svg callouts (and used Batik to convert them to other formats for 
  use in html). I'm actually using the pdf version of the callouts in my output 
  because XEP wasn't rendering the svgs for me. It renders other svgs fine, but 
  I don't have time right now to mess with it. However, it occurs to me that a 
  better solution would be to have the DocBook xsls write the svg directly into 
  the fo. In fact, to make these, I just made one svg with a circle and a 
  character in the middle, then looped 99 times using sed to number the 
  callouts. Be aware tho that I manually tweaked #1 and #4 just slightly to make 
  them appear more centered and legible. 

  
 

  
In any case, if 
  someone wants to use them as is or work with this some more, e.g. futz with 
  the sizing to get it just right...mine are a little bigger than the current 
  callouts or incorporate them into the DocBook xsls so they put the svg 
  directly into the fo, feel free: http://www.thingbag.net/docbook/callouts.zip

  
 

  
Btw., if you ever 
  manage to use all 99 callouts in a programlisting, I'd love to see it 
  :-)

  
 

  
David