<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2900.2912" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>I can address item #4. The DocBook
documentation says that an svg element should appear inside an imageobject
element:</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2><A
href="http://docbook.org/tdg/en/html/imageobject.html">http://docbook.org/tdg/en/html/imageobject.html</A></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Did you see someplace where it said it should be
inside an imagedata element?</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Regarding validity, the svg element must be in the
svg namespace, so it does not violate DocBook's validity. To validate a
document with multiple namespaces, you need a multiple namespace
validator.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV>Bob Stayton<BR>Sagehill Enterprises<BR>DocBook Consulting<BR><A
href="mailto:bobs@sagehill.net">bobs@sagehill.net</A></DIV>
<DIV> </DIV>
<DIV> </DIV>
<BLOCKQUOTE dir=ltr
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
<DIV
style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B>
<A title=mats.sigge@gmail.com href="mailto:mats.sigge@gmail.com">Mats
Sigge</A> </DIV>
<DIV style="FONT: 10pt arial"><B>To:</B> <A title=xep-support@renderx.com
href="mailto:xep-support@renderx.com">xep-support@renderx.com</A> </DIV>
<DIV style="FONT: 10pt arial"><B>Sent:</B> Thursday, August 02, 2007 2:05
AM</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> [xep-support] SVG
questions/problems</DIV>
<DIV><BR></DIV>
<DIV>
<DIV>Hi! We are using RenderX to render DocBook with embedded SVG into PDF. We
have some problems with the SVG rendering:</DIV>
<OL>
<LI>We believe that the same font is used in the document text as in the SVG
images. However, some Unicode symbols will not display in the SVG images,
for example the infinity sign. (They display nicely in Firefox in the same
SVG.)
<LI>Links do not work in SVG. (The same links will work in Firefox if the
SVG is embedded in an XHTML document.)
<LI>How do we center text vertically? We have tried a number of different
approaches but cannot get it to work. (As with the others, it works in
Firefox.)
<LI>This might be a DocBook stylesheet problem, but according to the
definition, SVG should be surrounded by the <imagedata> tag (in turn
surrounded by <imageobject>. When we do that, the image will not show.
However, if we remove the <imagedata tag> and place the SVG
directly below the imageobject tag, the SVG will render (although the XML is
not valid).
<LI>A minor problem, but ligatures are not used in text inside SVG, but it
is used in the same text outside SVG.</LI></OL>
<DIV>Anyone have any hints about what may be wrong? Below is a DocBook
document with embedded SVG which reproduces all these problems.</DIV>
<DIV> </DIV>
<DIV>Regards,</DIV>
<DIV> </DIV>
<DIV>/ Mats S</DIV><?xml version="1.0"
encoding="iso-8859-1"?><BR><article xmlns:svg="<A
href="http://www.w3.org/2000/svg">http://www.w3.org/2000/svg</A>" xmlns:xl="<A
href="http://www.w3.org/1999/xlink">
http://www.w3.org/1999/xlink</A>"<BR> xmlns="<A
href="http://docbook.org/ns/docbook">http://docbook.org/ns/docbook</A>"<BR>
version="5.0"<BR> xml:lang="en"><BR>
<info> <BR>
<title>Test</title><BR>
</info><BR> <section
xml:id="section-one"><BR>
<title>Section
One</title><BR>
<mediaobject><BR>
<imageobject>
<BR>
<svg:svg width="650" height="720"
version="1.1"><BR> <svg:style
type="text/css"> text
{ <BR>
font-family:serif; dominant-baseline:middle; text-anchor:middle; }
<BR>
text.occurs { font-stretch:normal;
dominant-baseline:hanging;<BR>
text-anchor:end; } rect, line, polygon { stroke:black; }
</svg:style><BR>
<svg:rect width="100%" height="100%" style="fill:rgb(235,235,235);"/>
<BR>
<svg:g
transform="translate(320,360)"><BR>
<svg:rect width="350" height="30" x="-175" y="-15" style="fill:none;"/>
<BR>
<svg:text x="0" y="0"> This is centered horizontally but not vertically
</svg:text><BR>
<svg:a
xl:href="#section-two"><BR>
<svg:text x="0" y="50"> This will not render as a link
</svg:text><BR>
</svg:a><BR>
<svg:text x="0" y="100"> This is the infinity symbol: &#x221e;
</svg:text>
<BR>
<svg:text x="0" y="150"> These are not ligatures: fi fl
</svg:text><BR>
</svg:g><BR>
</svg:svg><BR>
</imageobject> <BR>
</mediaobject><BR>
<para><BR>
<link xl:href="#section-two">This will render as a
link</link><BR>
</para><BR>
<para><BR>
This is the infinity symbol: &#x221e;
<BR>
</para><BR>
<para><BR>
These are ligatures: fi fl<BR>
</para><BR> </section><BR>
<section
xml:id="section-two"><BR>
<title>Section Two</title>
<BR>
<mediaobject><BR>
<imageobject><BR>
<imagedata><BR>
<svg:svg width="650" height="720"
version="1.1"><BR>
<svg:g transform="translate(320,360)">
<BR>
<svg:text x="0" y="0"> This will not render at all
</svg:text><BR>
</svg:g><BR>
</svg:svg><BR>
</imagedata>
<BR>
</imageobject><BR>
</mediaobject><BR>
</section><BR></article></DIV></BLOCKQUOTE></BODY></HTML>