[xep-support] About Docbook V5b8 and SVG

Jacques Foucry jacques at foucry.net
Mon Oct 9 12:08:08 PDT 2006


Hello,

I just try today to use DocBook V5b8 with a SVG.
Inside my SVG statement, I made a definition (in fact I found it) to  
make a drop shadow.

With FOP the drop shadow is make but the quality is not really good.
With XEP, the quality is ok but the drop is not present.

Is it a bug in may SVG or in XEP ?

Here's the svg file :

<?xml version="1.0" encoding="UTF-8"?>
<article xmlns="http://docbook.org/ns/docbook" version="5.0">
     <title>Example svg-svg</title>
     <mediaobject>
         <imageobject>
             <svg xmlns:svg="http://www.w3.org/2000/svg"  
xmlns="http://www.w3.org/2000/svg"
                 version="1.0" width="125" height="125" id="svg2">
                 <defs id="defs7480">
                     <filter id="DropShadow">
                         <feGaussianBlur id="feGaussianBlur7483"  
result="MyBlur" stdDeviation="10"
                             in="SourceAlpha"/>
                         <feOffset id="feOffset7485"  
result="FinalBlur" dy="3" dx="10" in="MyBlur"/>
                         <feMerge id="feMerge7487">
                             <feMergeNode id="feMergeNode7489"  
in="FinalBlur"/>
                             <feMergeNode id="feMergeNode7491"  
in="SourceGraphic"/>
                         </feMerge>
                     </filter>
                 </defs>
                 <defs id="defs4"/>
                 <g transform="matrix 
(0.750001,0,0,0.750001,1.125006,38.21546)" id="layer1">
                     <g transform="matrix 
(0.34401,0,0,0.34401,-5.337953,-197.9924)" id="g7528">
                         <path
                             d="M 382 639.86218 A 157.5 154.5 0 1 1   
67,639.86218 A 157.5 154.5 0 1 1  382 639.86218 z"
                             transform="matrix 
(1.303763,0,0,1.325842,-61.19472,-188.9941)"
                             style="fill:#d1232a;fill-opacity:1;fill- 
rule:evenodd;stroke:#d1232a;stroke-opacity:1;filter:url(#DropShadow)"
                             id="path2937"/>
                         <g
                             transform="matrix 
(0.840261,-0.542183,0.542183,0.840261,-326.5471,232.6187)"
                             id="g7521">
                             <text x="226.78418" y="616.42853"  
transform="matrix(0.999992,-3.947088e-3,3.947088e-3,0.999992,0,0)"  
style="font-size:63.99989319px;font-style:normal;font- 
variant:normal;font-weight:normal;font-stretch:normal;text- 
align:center;line-height:100%;writing-mode:lr-tb;text- 
anchor:middle;fill:white;fill-opacity:1;stroke:none;stroke-width: 
1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;font- 
family:sans" id="text4709" xml:space="preserve"><tspan x="235.65916"  
y="616.42853" id="tspan5600">Mac OS X </tspan><tspan x="226.78418"  
y="680.42841" id="tspan6493">Server</tspan></text>
                             <text x="146.92786" y="773.67017"  
transform="matrix(0.999936,-1.135536e-2,1.135536e-2,0.999936,0,0)"  
style="font-size:76.00010681px;font-style:normal;font- 
variant:normal;font-weight:bold;font-stretch:normal;text- 
align:start;line-height:100%;writing-mode:lr-tb;text- 
anchor:start;fill:white;fill-opacity:1;stroke:none;stroke-width: 
1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;font- 
family:sans" id="text6495" xml:space="preserve"><tspan x="146.92786"  
y="773.67017" id="tspan6497">10.4</tspan></text>
                         </g>
                     </g>
                 </g>
             </svg>
         </imageobject>
     </mediaobject>
</article>

Thanks for you help.

-- 
Jacques
-------------------
(*) To unsubscribe, send a message with words 'unsubscribe xep-support'
in the body of the message to majordomo at renderx.com from the address
you are subscribed from.
(*) By using the Service, you expressly agree to these Terms of Service http://www.renderx.com/terms-of-service.html



More information about the Xep-support mailing list