You are viewing a plain text version of this content. The canonical link for it is here.
Posted to batik-users@xmlgraphics.apache.org by Sunil Puri <su...@hotmail.com> on 2003/10/22 22:01:50 UTC

KEY_FORCE_TRANSPARENT_WHITE for transparency

Hi,

t.addTranscodingHint(PNGTranscoder.KEY_BACKGROUND_COLOR, Color.white);
t.addTranscodingHint(PNGTranscoder.KEY_FORCE_TRANSPARENT_WHITE, 
Boolean.TRUE);

I have tried using these two statements to make a Transparent PNG image from 
SVG, but it doesn't seem to work even if you change the values from TRUE to 
FALSE or use some other color.

I will appreciate if anyone could help me to produce Transparent image.



Sunil Puri

_________________________________________________________________
Fretting that your Hotmail account may expire because you forgot to sign in 
enough? Get Hotmail Extra Storage today!   
http://join.msn.com/?PAGE=features/es


---------------------------------------------------------------------
To unsubscribe, e-mail: batik-users-unsubscribe@xml.apache.org
For additional commands, e-mail: batik-users-help@xml.apache.org


Re: KEY_FORCE_TRANSPARENT_WHITE for transparency

Posted by Thomas DeWeese <Th...@Kodak.com>.
Sunil Puri wrote:


> t.addTranscodingHint(PNGTranscoder.KEY_BACKGROUND_COLOR, Color.white);
> t.addTranscodingHint(PNGTranscoder.KEY_FORCE_TRANSPARENT_WHITE, 
> Boolean.TRUE);
> 
> I have tried using these two statements to make a Transparent PNG image 
> from SVG, but it doesn't seem to work even if you change the values from 
> TRUE to FALSE or use some other color.
> 
> I will appreciate if anyone could help me to produce Transparent image.

   The Default behavior is to produce a transparent image.  If you aren't
seeing this, check if the SVG content draws something that fills the whole
viewport.

By specifying a background color you are telling it to make the background
opaque white.  The transparent white hint indicates that it should use a
'hack' to make the background 'white' for viewers that don't support transparency,
but still preserve transparency for viewers that do (at the cost of some
'whitening' of semi-transparent parts).




---------------------------------------------------------------------
To unsubscribe, e-mail: batik-users-unsubscribe@xml.apache.org
For additional commands, e-mail: batik-users-help@xml.apache.org


Re: Convertion problem

Posted by Thomas DeWeese <Th...@Kodak.com>.
rajesh@elansoft.com wrote:

> When i try to convert my svg file in to jpeg  i am getting the error.
> I am not able to convert into jpg, Here i am giving that error.

    The Null Pointer Exception should be fixed in CVS (you can get one of
the nightly CVS builds off Apache if you want).  The NPE in this case
is happening while it is trying to build a complete error message, I
can't tell what the 'root' error is from this stack trace.

    If test.svg is small you could send it to the list or just download
CVS Batik build it and see what it says.

> D:\batik-1.5>java -jar batik-rasterizer.jar test.svg -m image/jpeg
> 
> About to transcode 1 SVG file(s)
> 
> Converting *.svg to *.jpg
> ...java.lang.NullPointerException
>         at org.apache.batik.bridge.DocumentLoader.getLineNumber(Unknown
> Source)
>         at org.apache.batik.bridge.GVTBuilder.build(Unknown Source)
>         at
> org.apache.batik.transcoder.SVGAbstractTranscoder.transcode(Unknown
> Source)
>         at
> org.apache.batik.transcoder.image.ImageTranscoder.transcode(Unknown
> Source)
>         at
> org.apache.batik.transcoder.XMLAbstractTranscoder.transcode(Unknown
> Source)
>         at org.apache.batik.apps.rasterizer.SVGConverter.transcode(Unknown
> Source)
>         at org.apache.batik.apps.rasterizer.SVGConverter.execute(Unknown
> Source)
>         at org.apache.batik.apps.rasterizer.Main.execute(Unknown Source)
>         at org.apache.batik.apps.rasterizer.Main.main(Unknown Source)
> ... error (SVGConverter.error.while.rasterizing.file)
> 
> 
> Why i am getting this error. Any help you can provide is appreciated
> 
> Regards,
> RajeshB
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: batik-users-unsubscribe@xml.apache.org
> For additional commands, e-mail: batik-users-help@xml.apache.org
> 
> 




---------------------------------------------------------------------
To unsubscribe, e-mail: batik-users-unsubscribe@xml.apache.org
For additional commands, e-mail: batik-users-help@xml.apache.org


Re: Convertion problem

Posted by Thomas DeWeese <Th...@Kodak.com>.
rajesh@elansoft.com wrote:

> Hi Thomas,
> 
> Thanks for your responce. I am using batik-1.5 still iam getting the same
> NPE. I am attaching test.svg file. Could u help me in rectifying this
> problem, if possible give me where i am going worng.

   With current CVS I get:

org.apache.batik.bridge.BridgeException: file:/D:/batik/xml-batik/../test/NPE.svg:497
A security exception occured while processing the URI:
"http://rajesh:8080/ibisph-view/images/"
specified on the element <image>

   The defualt security model doesn't allow you to reference content from
sources other than the one the file came from. I think the script security
options may allow you to override this (better use relative URLs and
keep them in an expected directory tree).

> 
> 
> Thank you,
> rajesh
> 
> 
> 
> 
>>Hi,
>>
>>When i try to convert my svg file in to jpeg  i am getting the error.
>>I am not able to convert into jpg, Here i am giving that error.
>>
>>D:\batik-1.5>java -jar batik-rasterizer.jar test.svg -m image/jpeg
>>
>>About to transcode 1 SVG file(s)
>>
>>Converting *.svg to *.jpg
>>...java.lang.NullPointerException
>>        at org.apache.batik.bridge.DocumentLoader.getLineNumber(Unknown
>>Source)
>>        at org.apache.batik.bridge.GVTBuilder.build(Unknown Source)
>>        at
>>org.apache.batik.transcoder.SVGAbstractTranscoder.transcode(Unknown
>>Source)
>>        at
>>org.apache.batik.transcoder.image.ImageTranscoder.transcode(Unknown
>>Source)
>>        at
>>org.apache.batik.transcoder.XMLAbstractTranscoder.transcode(Unknown
>>Source)
>>        at org.apache.batik.apps.rasterizer.SVGConverter.transcode(Unknown
>>Source)
>>        at org.apache.batik.apps.rasterizer.SVGConverter.execute(Unknown
>>Source)
>>        at org.apache.batik.apps.rasterizer.Main.execute(Unknown Source)
>>        at org.apache.batik.apps.rasterizer.Main.main(Unknown Source)
>>... error (SVGConverter.error.while.rasterizing.file)
>>
>>
>>Why i am getting this error. Any help you can provide is appreciated
>>
>>Regards,
>>RajeshB
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: batik-users-unsubscribe@xml.apache.org
>>For additional commands, e-mail: batik-users-help@xml.apache.org
>>
>>
>>
>>
>>------------------------------------------------------------------------
>>
>><?xml version="1.0" encoding="iso-8859-1"?>
>><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 20000303 Stylable//EN"   "http://www.w3.org/TR/2000/03/WD-SVG-20000303/DTD/svg-20000303-stylable.dtd">
>><svg width="560.0" height="350.0" >
>><script>
>><![CDATA[
>>
>>function BrowserClass()
>>{
>>var b = navigator.appName;
>>if(b=="Netscape") this.b = "ns";
>>else if (b=="Microsoft Internet Explorer") this.b = "ie";
>>else this.b = b;
>>this.version = navigator.appVersion;
>>this.v = parseInt(this.version);
>>this.ns = (this.b=="ns" && this.v>=4);
>>this.ns4 = (this.b=="ns" && this.v==4);
>>this.ns5 = (this.b=="ns" && this.v==5);
>>this.ie = (this.b=="ie" && this.v>=4);
>>this.ie4 = (this.version.indexOf('MSIE 4')>0);
>>this.ie5 = (this.version.indexOf('MSIE 5')>0);
>>this.ie6 = (this.version.indexOf('MSIE 6')>0);
>>this.min = (this.ns||this.ie);
>>}
>>var myBrowser = new BrowserClass();
>>]]></script>
>><script>
>><![CDATA[
>>
>>function ToolTip()
>>{
>>this.ToolTipShow=ToolTipShow;
>>this.ToolTipHide=ToolTipHide;
>>}
>>function ToolTipShow(DispString, evt)
>>{
>>if(DispString == "")
>>{
>>return;
>>}
>>var spaces = true;
>>for(var i = 0; i < DispString.length; i++)
>>{
>>if(DispString.charAt(i) != ' ' && DispString.charAt(i) != '\n')
>>{
>>spaces = false;
>>}
>>}
>>if(spaces)
>>{
>>return;
>>}
>>var svgDoc = evt.getTarget().getOwnerDocument();
>>var svgRoot = svgDoc.getDocumentElement();
>>var svgobjgroup = svgDoc.getElementById("ToolTipGroup");
>>var svgobjrect = svgDoc.getElementById("TtRect");
>>var svgobjtext = svgDoc.getElementById("TtText");
>>if(svgobjgroup==null)
>>{
>>svgobjgroup= svgDoc.createElement("g");
>>svgobjgroup.setAttribute("id", "ToolTipGroup");
>>}
>>if(svgobjrect==null)
>>{
>>svgobjrect= svgDoc.createElement("rect");
>>svgobjrect.setAttribute("id", "TtRect");
>>}
>>if(svgobjtext==null)
>>{
>>svgobjtext= svgDoc.createElement("text");
>>svgobjtext.setAttribute("id", "TtText");
>>}
>>else
>>{
>>svgobjgroup.removeChild(svgobjtext);
>>svgobjtext= svgDoc.createElement("text");
>>svgobjtext.setAttribute("id", "TtText");
>>}
>>var viewbox=svgRoot.getAttribute("viewBox");
>>if(this.StartX == this.EndX && this.StartY == this.EndY)
>>{
>>this.EndX=svgRoot.getAttribute("width");
>>this.EndY=svgRoot.getAttribute("height");
>>}
>>if(viewbox!=null)
>>{
>>if(viewbox.length!=0)
>>{
>>var x1index=viewbox.indexOf(" ");
>>var x1=viewbox.substring(0,x1index);
>>viewbox=viewbox.substring(x1index+1,viewbox.length);
>>var y1index=viewbox.indexOf(" ");
>>var y1=viewbox.substring(0,y1index);
>>viewbox=viewbox.substring(y1index+1,viewbox.length);
>>var x2index=viewbox.indexOf(" ");
>>var x2=viewbox.substring(0,x2index);
>>viewbox=viewbox.substring(x2index+1,viewbox.length);
>>var y2=viewbox;
>>this.RatioX=(x2-x1)/(this.EndX-this.StartX);
>>this.RatioY=(y2-y1)/(this.EndY-this.StartY);
>>this.EndX=x2;
>>this.EndY=y2;
>>}
>>}
>>
>>var childs = svgobjtext.getChildNodes();
>>for (var i=0; i<childs.getLength(); i++)
>>{
>>svgobjtext.removeChild(childs.item(i));
>>}
>>var svgstylerect = svgobjrect.getStyle();
>>var svgstyletext = svgobjtext.getStyle();
>>svgobjtext.setAttribute ("x", 0);
>>svgobjtext.setAttribute ("y", this.FontBase);
>>svgstyletext.setProperty("fill",this.FontColor);
>>svgstyletext.setProperty("font-family",this.FontType);
>>svgstyletext.setProperty("font-size",this.FontSize);
>>var ToolTipWidth=0;
>>var dataArr = DispString.split("\n");
>>for(var i=0; i < dataArr.length; i++)
>>{
>>var data = svgDoc.createTextNode(dataArr[i]);
>>var svgobjtspan = svgDoc.createElement("tspan");
>>svgobjtspan.setAttribute("x", 0);
>>if(i>0)
>>{
>>svgobjtspan.setAttribute("dy", this.FontBase);
>>}
>>svgobjtspan.appendChild(data);
>>svgobjtext.appendChild(svgobjtspan);
>>tempToolTipWidth=svgobjtspan.getComputedTextLength()+6;
>>if(tempToolTipWidth > ToolTipWidth)
>>{
>>ToolTipWidth = tempToolTipWidth;
>>}
>>}
>>svgobjtext.appendChild(data);
>>svgobjrect.setAttribute ("x", 0);
>>svgobjrect.setAttribute ("y", 0);
>>svgobjrect.setAttribute ("width", (ToolTipWidth));
>>if(dataArr.length > 1)
>>{
>>this.RectHeight = ((this.FontBase * dataArr.length) + (this.FontSize * 0.3));
>>}
>>else
>>{
>>this.RectHeight=this.FontSize * 2;
>>}
>>svgobjrect.setAttribute ("height", this.RectHeight);
>>svgstylerect.setProperty("fill",this.BackGroundColor);
>>svgstylerect.setProperty("fill-opacity",1.0);
>>svgstylerect.setProperty("stroke",this.BorderColor);
>>svgstylerect.setProperty("stroke-width",0.5);
>>svgobjgroup.setAttribute("visibility", "visible");
>>var XValue=(evt.getClientX())*this.RatioX;
>>var YValue=(evt.getClientY())*this.RatioY;
>>var Gap=5;
>>var TempX=XValue+Gap;
>>var TempY=YValue-(this.RectHeight)-Gap;
>>var Fringe1=(TempX+ToolTipWidth)-(this.EndX);
>>var Fringe2=(TempY)-(this.StartY);
>>if(Fringe1>0)
>>{
>>TempX=XValue-ToolTipWidth-Gap;
>>}
>>if(Fringe2<0)
>>{
>>TempY=YValue+Gap;
>>}
>>XValue=TempX;
>>YValue=TempY;
>>if(XValue < 0)
>>{
>>XValue = 3;
>>}
>>if(YValue < 0)
>>{
>>YValue = (evt.getClientY())*this.RatioY + 5;
>>}
>>svgobjrect.setAttribute("transform", "translate(" + (XValue) + " " + (YValue) + ")");
>>svgobjtext.setAttribute("transform", "translate(" + (XValue+3) + " " + (YValue) + ")");
>>svgobjgroup.appendChild(svgobjrect);
>>svgobjgroup.appendChild(svgobjtext);
>>svgRoot.appendChild(svgobjgroup);
>>return true;
>>}
>>function ToolTipHide(evt)
>>{
>>var svgDoc = evt.getTarget().getOwnerDocument();
>>var svgRoot = svgDoc.getDocumentElement();
>>var svgobjgroup = svgDoc.getElementById("ToolTipGroup");
>>if(svgobjgroup!=null)
>>{
>>svgobjgroup.setAttribute ("visibility", "hidden");
>>}
>>var svgobjtext = svgDoc.getElementById("TtText");
>>if(svgobjtext!=null)
>>{
>>var childs = svgobjtext.getChildNodes();
>>for (var i=0; i<childs.getLength(); i++)
>>{
>>svgobjtext.removeChild(childs.item(i));
>>}
>>}
>>return true;
>>}
>>function Opacity()
>>{
>>this.ChangeOpacity=ChangeOpacity;
>>this.ChangeOpacityBar=ChangeOpacityBar;
>>this.ChangeColor=ChangeColor;
>>this.ChangeOpacityAll=ChangeOpacityAll;
>>this.popUp=popUp;
>>this.popUp_Above=popUp_Above;
>>this.changeOpacityOfChildren=changeOpacityOfChildren;
>>this.showURL=showURL;
>>}
>>function ChangeOpacity(id,NewOpacity,evt)
>>{
>>var svgDoc = evt.getTarget().getOwnerDocument();
>>var svgobject=svgDoc.getElementById(id);
>>var svgstyle = svgobject.getStyle();
>>svgstyle.setProperty('fill-opacity',NewOpacity);
>>return true;
>>}
>>function ChangeOpacityBar(id,total,NewOpacity,evt)
>>{
>>var svgDoc = evt.getTarget().getOwnerDocument();
>>for(i=0;i<total;i++)
>>{
>>var element = id+i;
>>var svgobject=svgDoc.getElementById(element);
>>var svgstyle = svgobject.getStyle();
>>svgstyle.setProperty('fill-opacity',NewOpacity);
>>svgstyle.setProperty('stroke-opacity',NewOpacity);
>>}
>>return true;
>>}
>>function ChangeColor(id,Color,evt)
>>{
>>var svgDoc = evt.getTarget().getOwnerDocument();
>>var svgobject=svgDoc.getElementById(id);
>>var svgstyle = svgobject.getStyle();
>>svgstyle.setProperty('fill',Color);
>>return true;
>>}
>>function ChangeOpacityAll(id,delim,NewOpacity,evt)
>>{
>>return true;
>>}
>>function popUp(ChildId,evt)
>>{
>>var svgDoc = evt.getTarget().getOwnerDocument();
>>var Child=svgDoc.getElementById(ChildId);
>>var Parent=Child.getParentNode();
>>Parent.removeChild(Child);
>>Parent.appendChild(Child);
>>return true;
>>}
>>function popUp_Above(ChildId,evt)
>>{
>>var svgDoc = evt.getTarget().getOwnerDocument();
>>var Child=svgDoc.getElementById(ChildId);
>>var Parent=Child.getParentNode();
>>var Child=Parent;
>>var Parent=Child.getParentNode();
>>Parent.removeChild(Child);
>>Parent.appendChild(Child);
>>return true;
>>}
>>function changeOpacityOfChildren(parentId,opacity,evt)
>>{
>>var doc  = evt.getTarget().getOwnerDocument();
>>var parent = doc.getElementById(parentId);
>>if(parent != null)
>>{
>>var numberOfChildren = parent.getChildNodes().getLength();
>>var child = parent.getFirstChild();
>>var count  = 1;
>>while(count <= numberOfChildren)
>>{
>>if(child.getNodeName() != "#text")
>>{
>>var style = child.getStyle();
>>if(style != null)
>>{
>>style.setProperty('fill-opacity',opacity);
>>}
>>}
>>child = child.getNextSibling();
>>count++;
>>}
>>}
>>return true;
>>}
>>function showURL(url,evt)
>>{
>>if(this.windowProps == "")
>>{
>>if(myBrowser.ns)
>>{
>>var str = "screenx="+this.windowLeft+", screeny="+this.windowTop+",width="+this.windowWidth+",height="+this.windowHeight+""; 
>>window.open(url, this.windowName, str);
>>}
>>else
>>{
>>var str = "left="+this.windowLeft+", top="+this.windowTop+",width="+this.windowWidth+",height="+this.windowHeight+""; 
>>window.open(url, this.windowName, str);
>>}
>>}
>>else
>>{
>>window.open(url, this.windowName, this.windowProps);
>>}
>>return true;
>>}
>>function CrossBars()
>>{
>>this.CrossBarsMove=CrossBarsMove;
>>this.CrossBarsClick=CrossBarsClick;
>>
>>}
>>function CrossBarsMove(evt)
>>{
>>if(this.appear == 'hidden')
>>{
>>return true;
>>}
>>var svgDoc = evt.getTarget().getOwnerDocument();
>>var svgRoot = svgDoc.getDocumentElement();
>>var svgobjhline1 = svgDoc.getElementById("HBar1");
>>var svgobjvline1 = svgDoc.getElementById("VBar1");
>>var svgobjhline2 = svgDoc.getElementById("HBar2");
>>var svgobjvline2 = svgDoc.getElementById("VBar2");
>>if(svgobjhline1==null && svgobjvline1==null && svgobjhline2==null && svgobjvline2==null)
>>{
>>return true; 
>>}
>>var viewbox=svgRoot.getAttribute("viewBox");
>>this.RatioX=1;
>>this.RatioY=1;
>>if(viewbox!=null)
>>{
>>if(viewbox.length!=0)
>>{
>>var x1index=viewbox.indexOf(" ");
>>var x1=viewbox.substring(0,x1index);
>>viewbox=viewbox.substring(x1index+1,viewbox.length);
>>var y1index=viewbox.indexOf(" ");
>>var y1=viewbox.substring(0,y1index);
>>viewbox=viewbox.substring(y1index+1,viewbox.length);
>>var x2index=viewbox.indexOf(" ");
>>var x2=viewbox.substring(0,x2index);
>>viewbox=viewbox.substring(x2index+1,viewbox.length);
>>var y2=viewbox;
>>this.RatioX=(x2-x1)/(this.EndX-this.StartX);
>>this.RatioY=(y2-y1)/(this.EndY-this.StartY);
>>}
>>}
>>var XPos=(evt.getClientX())*this.RatioX;
>>var YPos=(evt.getClientY())*this.RatioY;
>>if(XPos < this.StartX || XPos > this.EndX || YPos < this.StartY || YPos > this.EndY)
>>{
>>return true;	
>>}
>>svgobjhline1.setAttribute("x1", this.StartX);
>>svgobjhline1.setAttribute("y1", YPos); 
>>svgobjhline1.setAttribute("x2", XPos-this.CrossBarGap);
>>svgobjhline1.setAttribute("y2", YPos);
>>svgobjhline2.setAttribute("x1", XPos+this.CrossBarGap);
>>svgobjhline2.setAttribute("y1", YPos);
>>svgobjhline2.setAttribute("x2", this.EndX);
>>svgobjhline2.setAttribute("y2", YPos);
>>svgobjvline1.setAttribute("x1", XPos);
>>svgobjvline1.setAttribute("y1", this.StartY);
>>svgobjvline1.setAttribute("x2", XPos);
>>svgobjvline1.setAttribute("y2", YPos-this.CrossBarGap);
>>svgobjvline2.setAttribute("x1", XPos);
>>svgobjvline2.setAttribute("y1", YPos+this.CrossBarGap);
>>svgobjvline2.setAttribute("x2", XPos);
>>svgobjvline2.setAttribute("y2", this.EndY);
>>return true;
>>}
>>function CrossBarsClick(evt)
>>{
>>var svgDoc = evt.getTarget().getOwnerDocument();
>>var svgRoot = svgDoc.getDocumentElement();
>>var svgobjhline1 = svgDoc.getElementById("HBar1");
>>var svgobjvline1 = svgDoc.getElementById("VBar1");
>>var svgobjhline2 = svgDoc.getElementById("HBar2");
>>var svgobjvline2 = svgDoc.getElementById("VBar2");
>>if(svgobjhline1==null && svgobjvline1==null && svgobjhline2==null && svgobjvline2==null)
>>{
>>svgobjhline1= svgDoc.createElement("line");
>>svgobjvline1= svgDoc.createElement("line");
>>svgobjhline2= svgDoc.createElement("line");
>>svgobjvline2= svgDoc.createElement("line");
>>svgobjhline1.setAttribute("id","HBar1");
>>svgobjvline1.setAttribute("id","VBar1");
>>svgobjhline2.setAttribute("id","HBar2");
>>svgobjvline2.setAttribute("id","VBar2");
>>svgobjhline1.addEventListener("mousemove", this.CrossBarsMove, false);
>>svgobjvline1.addEventListener("mousemove", this.CrossBarsMove, false);
>>svgobjhline2.addEventListener("mousemove", this.CrossBarsMove, false);
>>svgobjvline2.addEventListener("mousemove", this.CrossBarsMove, false);
>>svgobjhline1.addEventListener("click", this.CrossBarsClick, false);
>>svgobjvline1.addEventListener("click", this.CrossBarsClick, false);
>>svgobjhline2.addEventListener("click", this.CrossBarsClick, false);
>>svgobjvline2.addEventListener("click", this.CrossBarsClick, false);
>>svgRoot.appendChild(svgobjhline1);
>>svgRoot.appendChild(svgobjvline1);
>>svgRoot.appendChild(svgobjhline2);
>>svgRoot.appendChild(svgobjvline2);
>>}
>>var viewbox=svgRoot.getAttribute("viewBox");
>>if(viewbox!=null)
>>{
>>if(viewbox.length!=0)
>>{
>>var x1index=viewbox.indexOf(" ");
>>var x1=viewbox.substring(0,x1index);
>>viewbox=viewbox.substring(x1index+1,viewbox.length);
>>var y1index=viewbox.indexOf(" ");
>>var y1=viewbox.substring(0,y1index);
>>viewbox=viewbox.substring(y1index+1,viewbox.length);
>>var x2index=viewbox.indexOf(" ");
>>var x2=viewbox.substring(0,x2index);
>>viewbox=viewbox.substring(x2index+1,viewbox.length);
>>var y2=viewbox;
>>this.RatioX=(x2-x1)/(this.EndX-this.StartX);
>>this.RatioY=(y2-y1)/(this.EndY-this.StartY);
>>}
>>}
>>var XPos=(evt.getClientX())*this.RatioX;
>>var YPos=(evt.getClientY())*this.RatioY;
>>if(XPos < this.StartX || XPos > this.EndX || YPos < this.StartY || YPos > this.EndY)
>>{
>>return true;
>>}
>>svgobjhline1.setAttribute ("x1", this.StartX);
>>svgobjhline1.setAttribute ("y1", YPos);
>>svgobjhline1.setAttribute ("x2", XPos-this.CrossBarGap);
>>svgobjhline1.setAttribute ("y2", YPos);
>>svgobjhline2.setAttribute ("x1", XPos+this.CrossBarGap);
>>svgobjhline2.setAttribute ("y1", YPos);
>>svgobjhline2.setAttribute ("x2", this.EndX);
>>svgobjhline2.setAttribute ("y2", YPos);
>>svgobjvline1.setAttribute ("x1", XPos);
>>svgobjvline1.setAttribute ("y1", this.StartY);
>>svgobjvline1.setAttribute ("x2", XPos);
>>svgobjvline1.setAttribute ("y2", YPos-this.CrossBarGap);
>>svgobjvline2.setAttribute ("x1", XPos);
>>svgobjvline2.setAttribute ("y1", YPos+this.CrossBarGap);
>>svgobjvline2.setAttribute ("x2", XPos);
>>svgobjvline2.setAttribute ("y2", this.EndY);
>>var svgstylehline1 = svgobjhline1.getStyle();
>>var svgstylevline1 = svgobjvline1.getStyle();
>>var svgstylehline2 = svgobjhline2.getStyle();
>>var svgstylevline2 = svgobjvline2.getStyle();
>>svgstylevline1.setProperty("fill",this.BarsColor);
>>svgstylevline1.setProperty("stroke",this.BarsColor);
>>svgstylevline1.setProperty("stroke-width",0.3);
>>svgstylehline1.setProperty("fill",this.BarsColor);
>>svgstylehline1.setProperty("stroke",this.BarsColor);
>>svgstylehline1.setProperty("stroke-width",0.3);
>>svgstylevline2.setProperty("fill",this.BarsColor);
>>svgstylevline2.setProperty("stroke",this.BarsColor);
>>svgstylevline2.setProperty("stroke-width",0.3);
>>svgstylehline2.setProperty("fill",this.BarsColor);
>>svgstylehline2.setProperty("stroke",this.BarsColor);
>>svgstylehline2.setProperty("stroke-width",0.3);
>>if(this.appear=='hidden')
>>{
>>this.appear='visible';
>>var parent = svgobjhline1.getParentNode();
>>parent.removeChild(svgobjhline1);
>>parent.removeChild(svgobjhline2);
>>parent.removeChild(svgobjvline1);
>>parent.removeChild(svgobjvline2);
>>parent.appendChild(svgobjhline1);
>>parent.appendChild(svgobjhline2);
>>parent.appendChild(svgobjvline1);
>>parent.appendChild(svgobjvline2);
>>}
>>else
>>{
>>this.appear='hidden';
>>}
>>svgstylehline1.setProperty ('visibility', this.appear);
>>svgstylevline1.setProperty ('visibility', this.appear);
>>svgstylehline2.setProperty ('visibility', this.appear);
>>svgstylevline2.setProperty ('visibility', this.appear);
>>return true;
>>}
>>]]></script>
>><svg id="GBC2866884" x="0" y="0"  width="560.0" height="350.0" onclick="GBC2866884CrossBarsOBJ.CrossBarsClick(evt);" onmouseover="GBC2866884CrossBarsOBJ.CrossBarsMove(evt);" onmousemove="GBC2866884CrossBarsOBJ.CrossBarsMove(evt);" >
>><rect style="fill:#EEEEEE;fill-opacity:0.5;stroke:black;stroke-width:0.5;stroke-opacity:0.5" x="0" y="0" width="559.5" height="349.5" />
>><image x="0.5" y="0.5" width="558.5" height="348.5" xlink:href="http://rajesh:8080/ibisph-view/images/" />
>><rect x="7.5" y="2.5" width="544.5" height="29.0" style="fill:white;fill-opacity:0.0;stroke:gray;stroke-width:0.0;stroke-opacity:0.0"/>
>><g onload="wrapText(evt,9.0,6.1,550.5,29.0,'Percentage of Women With Live Births Who Reported Their Most Recent Pregnancy Was Unintended by Age Group, Utah, 1999','arial',12.0,'#336699','bold','normal','middle',false,'null')" />
>><rect style="fill:none;fill-opacity:1.0;" x="25.5" y="31.5" width="526.5" height="292.5" />
>><desc> Writing SVG Axis </desc>
>>
>><line x1="58.5" y1="289.75" x2="541.0" y2="289.75" style="fill:black;stroke:black;stroke-width:0.5" />
>><line x1="58.5" y1="41.5" x2="58.5" y2="289.75" style="fill:black;stroke:black;stroke-width:0.5" />
>><line x1="58.5" y1="290.25" x2="541.0" y2="290.25" style="fill:black;stroke:black;stroke-width:1.0" />
>><g transform=" translate(92.96428571428572 312.95) rotate(15.0)" >
>><text  style="font-weight:normal;font-style:normal;text-anchor:start;font-family:arial;font-size:10.0;fill:black;stroke:black;stroke-width:0.2">
>>17 or Under
>></text>
>></g>
>><g transform=" translate(161.89285714285717 312.95) rotate(15.0)" >
>><text  style="font-weight:normal;font-style:normal;text-anchor:start;font-family:arial;font-size:10.0;fill:black;stroke:black;stroke-width:0.2">
>>18-19
>></text>
>></g>
>><g transform=" translate(230.8214285714286 312.95) rotate(15.0)" >
>><text  style="font-weight:normal;font-style:normal;text-anchor:start;font-family:arial;font-size:10.0;fill:black;stroke:black;stroke-width:0.2">
>>20-24
>></text>
>></g>
>><g transform=" translate(299.75000000000006 312.95) rotate(15.0)" >
>><text  style="font-weight:normal;font-style:normal;text-anchor:start;font-family:arial;font-size:10.0;fill:black;stroke:black;stroke-width:0.2">
>>25-29
>></text>
>></g>
>><g transform=" translate(368.6785714285715 312.95) rotate(15.0)" >
>><text  style="font-weight:normal;font-style:normal;text-anchor:start;font-family:arial;font-size:10.0;fill:black;stroke:black;stroke-width:0.2">
>>30-34
>></text>
>></g>
>><g transform=" translate(437.60714285714295 312.95) rotate(15.0)" >
>><text  style="font-weight:normal;font-style:normal;text-anchor:start;font-family:arial;font-size:10.0;fill:black;stroke:black;stroke-width:0.2">
>>35-39
>></text>
>></g>
>><g transform=" translate(506.5357142857144 312.95) rotate(15.0)" >
>><text  style="font-weight:normal;font-style:normal;text-anchor:start;font-family:arial;font-size:10.0;fill:black;stroke:black;stroke-width:0.2">
>>40+
>></text>
>></g>
>><line x1="58.0" y1="41.5" x2="58.0" y2="289.75" style="fill:black;stroke:black;stroke-width:1.0" />
>><g transform=" translate(48.3 294.75) rotate(0)" >
>><text  style="font-weight:normal;font-style:normal;text-anchor:end;font-family:arial;font-size:10.0;fill:black;stroke:black;stroke-width:0.2">
>>0
>></text>
>></g>
>><g transform=" translate(48.3 267.1666666666667) rotate(0)" >
>><text  style="font-weight:normal;font-style:normal;text-anchor:end;font-family:arial;font-size:10.0;fill:black;stroke:black;stroke-width:0.2">
>>10
>></text>
>></g>
>><g transform=" translate(48.3 239.58333333333334) rotate(0)" >
>><text  style="font-weight:normal;font-style:normal;text-anchor:end;font-family:arial;font-size:10.0;fill:black;stroke:black;stroke-width:0.2">
>>20
>></text>
>></g>
>><g transform=" translate(48.3 212.0) rotate(0)" >
>><text  style="font-weight:normal;font-style:normal;text-anchor:end;font-family:arial;font-size:10.0;fill:black;stroke:black;stroke-width:0.2">
>>30
>></text>
>></g>
>><g transform=" translate(48.3 184.41666666666666) rotate(0)" >
>><text  style="font-weight:normal;font-style:normal;text-anchor:end;font-family:arial;font-size:10.0;fill:black;stroke:black;stroke-width:0.2">
>>40
>></text>
>></g>
>><g transform=" translate(48.3 156.83333333333331) rotate(0)" >
>><text  style="font-weight:normal;font-style:normal;text-anchor:end;font-family:arial;font-size:10.0;fill:black;stroke:black;stroke-width:0.2">
>>50
>></text>
>></g>
>><g transform=" translate(48.3 129.25) rotate(0)" >
>><text  style="font-weight:normal;font-style:normal;text-anchor:end;font-family:arial;font-size:10.0;fill:black;stroke:black;stroke-width:0.2">
>>60
>></text>
>></g>
>><g transform=" translate(48.3 101.66666666666666) rotate(0)" >
>><text  style="font-weight:normal;font-style:normal;text-anchor:end;font-family:arial;font-size:10.0;fill:black;stroke:black;stroke-width:0.2">
>>70
>></text>
>></g>
>><g transform=" translate(48.3 74.08333333333333) rotate(0)" >
>><text  style="font-weight:normal;font-style:normal;text-anchor:end;font-family:arial;font-size:10.0;fill:black;stroke:black;stroke-width:0.2">
>>80
>></text>
>></g>
>><g transform=" translate(48.3 46.5) rotate(0)" >
>><text  style="font-weight:normal;font-style:normal;text-anchor:end;font-family:arial;font-size:10.0;fill:black;stroke:black;stroke-width:0.2">
>>90
>></text>
>></g>
>><path  d=" M 58.5 289.75 L 58.5 289.75 L 541.0 289.75 L 541.0 289.75 z" style="fill:rgb(220,220,220);fill-opacity:1.0;" />
>><path  d=" M 58.5 289.75 L 58.5 289.75 L 58.5 41.5 L 58.5 41.5 z" style="fill:rgb(120,120,120);fill-opacity:1.0;" />
>>
>><rect style=" fill:#FFFFFF;fill-opacity:1.0;" x="58.5" y="41.5" width="482.5" height="248.25" />
>><rect style="fill:#FFFFFF;fill-opacity:1.0;" x="58.5" y="41.5" width="482.5" height="248.25" />
>><image x="58.5" y="41.5" width="482.5" height="248.25" xlink:href="http://rajesh:8080/ibisph-view/images/" />
>><path d="M 58.5 289.75 L 58.5 296.75 " style="stroke-width:1.0;stroke:#000000;fill:#000000;fill-opacity:1.0;stroke-opacity:1.0;stroke-linecap:round;stroke-dasharray:0.0 0.0 0.0 0.0" />
>><path d="M 127.42857142857143 289.75 L 127.42857142857143 296.75 " style="stroke-width:1.0;stroke:#000000;fill:#000000;fill-opacity:1.0;stroke-opacity:1.0;stroke-linecap:round;stroke-dasharray:0.0 0.0 0.0 0.0" />
>><path d="M 196.35714285714286 289.75 L 196.35714285714286 296.75 " style="stroke-width:1.0;stroke:#000000;fill:#000000;fill-opacity:1.0;stroke-opacity:1.0;stroke-linecap:round;stroke-dasharray:0.0 0.0 0.0 0.0" />
>><path d="M 265.2857142857143 289.75 L 265.2857142857143 296.75 " style="stroke-width:1.0;stroke:#000000;fill:#000000;fill-opacity:1.0;stroke-opacity:1.0;stroke-linecap:round;stroke-dasharray:0.0 0.0 0.0 0.0" />
>><path d="M 334.2142857142857 289.75 L 334.2142857142857 296.75 " style="stroke-width:1.0;stroke:#000000;fill:#000000;fill-opacity:1.0;stroke-opacity:1.0;stroke-linecap:round;stroke-dasharray:0.0 0.0 0.0 0.0" />
>><path d="M 403.14285714285717 289.75 L 403.14285714285717 296.75 " style="stroke-width:1.0;stroke:#000000;fill:#000000;fill-opacity:1.0;stroke-opacity:1.0;stroke-linecap:round;stroke-dasharray:0.0 0.0 0.0 0.0" />
>><path d="M 472.07142857142856 289.75 L 472.07142857142856 296.75 " style="stroke-width:1.0;stroke:#000000;fill:#000000;fill-opacity:1.0;stroke-opacity:1.0;stroke-linecap:round;stroke-dasharray:0.0 0.0 0.0 0.0" />
>><path d="M 541.0 289.75 L 541.0 296.75 " style="stroke-width:1.0;stroke:#000000;fill:#000000;fill-opacity:1.0;stroke-opacity:1.0;stroke-linecap:round;stroke-dasharray:0.0 0.0 0.0 0.0" />
>><path d="M 58.5 289.75 L 51.5 289.75 " style="stroke-width:1.0;stroke:#000000;fill:#000000;fill-opacity:1.0;stroke-opacity:1.0;stroke-linecap:round;stroke-dasharray:0.0 0.0 0.0 0.0" />
>><path d="M 58.5 262.1666666666667 L 51.5 262.1666666666667 " style="stroke-width:1.0;stroke:#000000;fill:#000000;fill-opacity:1.0;stroke-opacity:1.0;stroke-linecap:round;stroke-dasharray:0.0 0.0 0.0 0.0" />
>><path d="M 58.5 234.58333333333334 L 51.5 234.58333333333334 " style="stroke-width:1.0;stroke:#000000;fill:#000000;fill-opacity:1.0;stroke-opacity:1.0;stroke-linecap:round;stroke-dasharray:0.0 0.0 0.0 0.0" />
>><path d="M 58.5 207.0 L 51.5 207.0 " style="stroke-width:1.0;stroke:#000000;fill:#000000;fill-opacity:1.0;stroke-opacity:1.0;stroke-linecap:round;stroke-dasharray:0.0 0.0 0.0 0.0" />
>><path d="M 58.5 179.41666666666669 L 51.5 179.41666666666669 " style="stroke-width:1.0;stroke:#000000;fill:#000000;fill-opacity:1.0;stroke-opacity:1.0;stroke-linecap:round;stroke-dasharray:0.0 0.0 0.0 0.0" />
>><path d="M 58.5 151.83333333333334 L 51.5 151.83333333333334 " style="stroke-width:1.0;stroke:#000000;fill:#000000;fill-opacity:1.0;stroke-opacity:1.0;stroke-linecap:round;stroke-dasharray:0.0 0.0 0.0 0.0" />
>><path d="M 58.5 124.25 L 51.5 124.25 " style="stroke-width:1.0;stroke:#000000;fill:#000000;fill-opacity:1.0;stroke-opacity:1.0;stroke-linecap:round;stroke-dasharray:0.0 0.0 0.0 0.0" />
>><path d="M 58.5 96.66666666666669 L 51.5 96.66666666666669 " style="stroke-width:1.0;stroke:#000000;fill:#000000;fill-opacity:1.0;stroke-opacity:1.0;stroke-linecap:round;stroke-dasharray:0.0 0.0 0.0 0.0" />
>><path d="M 58.5 69.08333333333334 L 51.5 69.08333333333334 " style="stroke-width:1.0;stroke:#000000;fill:#000000;fill-opacity:1.0;stroke-opacity:1.0;stroke-linecap:round;stroke-dasharray:0.0 0.0 0.0 0.0" />
>><path d="M 58.5 41.5 L 51.5 41.5 " style="stroke-width:1.0;stroke:#000000;fill:#000000;fill-opacity:1.0;stroke-opacity:1.0;stroke-linecap:round;stroke-dasharray:0.0 0.0 0.0 0.0" />
>><rect x ='58.5' y ='324.0' width ='482.5' height ='18.0' style='fill:white;fill-opacity:0.0;' />
>><g onload="wrapText(evt,58.5,324.0,541.0,342.0,'Age Group','arial',12.0,'#336699','bold','normal','middle',false,'null')" />
>><rect x ='7.5' y ='41.5' width ='18.0' height ='248.25' style='fill:white;fill-opacity:0.0;' />
>><g id='axishead3838683yheader' transform='translate(7.5,289.75) rotate(270)' onload="wrapText(evt,0,0,248.25,18.0,'Percentage of Women With Live Births','arial',12.0,'#336699','bold','normal','middle',false,'axishead3838683yheader')">
>></g>
>><script>
>><![CDATA[
>>function wrapText(evt,startx,starty,endx,endy,OrginalString,FontName,FontSize,FontColor,FontWeight,FontStyle,Anchor,hypen,gid)
>>{
>>	if(OrginalString.length == 0)
>>		return;
>>	var svgDoc = evt.getTarget().getOwnerDocument();
>>	var svgRoot = svgDoc.getDocumentElement();
>>	OrginalString = OrginalString+' ';
>>	var strarray=OrginalString.split(' ');
>>	var x1=startx;
>>	var y1=starty;
>>	y1=y1+FontSize
>>	var x2=endx;
>>	var y2=endy;
>>	var wrapperWidth=x2-x1-3;
>>	var wrapperHeight=y2-y1;
>>	var num=0;
>>	var createTextNode = new Boolean(true);
>>	var svgObjText;
>>	var svgStyleText;
>>	var objTxtNode;
>>	if(Anchor == 'end')
>>	{
>>		wrapperX = endx;
>>	}
>>	else if(Anchor == 'middle')
>>	{
>>		wrapperX = startx+(endx-startx)/2;
>>	}
>>	else
>>	{
>>		wrapperX = x1;
>>	}
>>	if(hypen)
>>	{
>>		wrapperX = x1;
>>	}
>>	wrapperY = y1;
>>	var svgDummyText = svgDoc.createElement('text');
>>	var svgDummyTextStyle = svgDummyText.getStyle();
>>	svgDummyTextStyle.setProperty('fill',FontColor);
>>	svgDummyTextStyle.setProperty('font-family',FontName);
>>	svgDummyTextStyle.setProperty('font-size',FontSize);
>>	svgDummyTextStyle.setProperty('font-weight',FontWeight);
>>	svgDummyTextStyle.setProperty('font-style',FontStyle);
>>	var objDmyTxtNode=svgDoc.createTextNode('-');
>>	svgDummyText.appendChild(objDmyTxtNode);
>>	var hyphenLength = svgDummyText.getComputedTextLength();
>>	svgDummyText.removeChild(objDmyTxtNode);
>>	var wordLeftOut='';
>>	var charsAppended = new Boolean(false);
>>	var wrapgroup='';
>>	if(gid=='null')
>>		wrapgroup = svgDoc.createElement('g');
>>	else
>>		wrapgroup=svgDoc.getElementById(gid)
>>	for(num=0;num<strarray.length;num++)
>>	{
>>		if(createTextNode == true)
>>		{
>>			svgObjText= svgDoc.createElement('text');
>>			svgObjText.setAttribute('id', 'text'+num);
>>			svgObjText.setAttribute('x',wrapperX);
>>			svgObjText.setAttribute('y',wrapperY);
>>			svgStyleText = svgObjText.getStyle();
>>			svgStyleText.setProperty('fill',FontColor);
>>			svgStyleText.setProperty('font-family',FontName);
>>			svgStyleText.setProperty('font-size',FontSize);
>>			svgStyleText.setProperty('font-weight',FontWeight);
>>			svgStyleText.setProperty('font-style',FontStyle);
>>			svgStyleText.setProperty('text-anchor',Anchor);
>>			objTxtNode=svgDoc.createTextNode(wordLeftOut+' ');
>>			wordLeftOut='';
>>			svgObjText.appendChild(objTxtNode);
>>			createTextNode=false;
>>		}
>>		objTxtNode=svgDoc.createTextNode(strarray[num]+' ');
>>		svgObjText.appendChild(objTxtNode);
>>		if(svgObjText.getComputedTextLength() >= wrapperWidth)
>>		{
>>			svgObjText.removeChild(objTxtNode);
>>			spcLeft = wrapperWidth - svgObjText.getComputedTextLength();
>>			if(hypen)
>>			{
>>				spcLeft -= hyphenLength;
>>				if(strarray[num].length >= 3)
>>				{
>>					for(ctr=0; ctr<strarray[num].length;ctr++)
>>					{
>>						objDmyTxtNode=svgDoc.createTextNode(strarray[num].substr(ctr, 1));
>>						svgDummyText.appendChild(objDmyTxtNode);
>>						spcReqd = svgDummyText.getComputedTextLength();
>>						svgDummyText.removeChild(objDmyTxtNode);
>>						if(spcReqd >= spcLeft)
>>						{
>>							if(charsAppended == true)
>>							{
>>								objTxtNode=svgDoc.createTextNode('-');
>>								svgObjText.appendChild(objTxtNode);
>>								wordLeftOut=strarray[num].substr(ctr);
>>								charsAppended=false;
>>							}
>>							break;
>>						}
>>						else
>>						{
>>							objTxtNode=svgDoc.createTextNode(strarray[num].substr(ctr, 1));
>>							svgObjText.appendChild(objTxtNode);
>>							charsAppended = true;
>>							spcLeft -= spcReqd;
>>						}
>>					}
>>				}
>>				if(wordLeftOut.length == 0)
>>					num--;
>>			}
>>			else
>>				num--;
>>			createTextNode=true;
>>			wrapperY += FontSize;
>>			wrapgroup.appendChild(svgObjText);
>>		}
>>	}
>>	wrapgroup.appendChild(svgObjText);
>>	svgRoot.appendChild(wrapgroup);
>>}
>>]]></script>
>>
>>
>>
>><script>
>><![CDATA[
>>function GBC2866884showCI(evt,i)
>>{
>>	var svgDoc = evt.getTarget().getOwnerDocument()
>>		for(var j=0; j<7; j++) 
>>		{
>>			obj = svgDoc.getElementById('GBC2866884CI'+j+i); 
>>			if(obj != null)
>>			{
>>				var style = obj.getStyle();
>>				style.setProperty('visibility','visible');
>>			}
>>		}
>>}
>>function GBC2866884hideCI(evt,i)
>>{
>>	var svgDoc = evt.getTarget().getOwnerDocument()
>>	for(var j=0; j<7; j++) 
>>	{
>>		obj = svgDoc.getElementById('GBC2866884CI'+j+i); 
>>		if(obj != null)
>>		{
>>			var style = obj.getStyle();
>>			style.setProperty('visibility','hidden');
>>		}
>>	}
>>}
>>]]></script>
>><script>
>><![CDATA[
>>
>>var GBC2866884ToolTipOBJ=new ToolTip();
>>	GBC2866884ToolTipOBJ.FontType='arial';
>>	GBC2866884ToolTipOBJ.FontSize=12.0;
>>	GBC2866884ToolTipOBJ.FontColor='white';
>>	GBC2866884ToolTipOBJ.FontBase=16.0;
>>
>>	GBC2866884ToolTipOBJ.BackGroundColor='#336699';
>>	GBC2866884ToolTipOBJ.BorderColor='black';
>>	GBC2866884ToolTipOBJ.RectHeight=24.0;
>>
>>	GBC2866884ToolTipOBJ.RatioX=1;
>>	GBC2866884ToolTipOBJ.RatioY=1;
>>
>>	GBC2866884ToolTipOBJ.StartX=0.0;
>>	GBC2866884ToolTipOBJ.StartY=0.0;
>>	GBC2866884ToolTipOBJ.EndX=560.0;
>>	GBC2866884ToolTipOBJ.EndY=350.0;
>>
>>]]></script>
>><script>
>><![CDATA[
>>
>>var GBC2866884OpacityOBJ=new Opacity();
>>GBC2866884OpacityOBJ.where = 1;
>>GBC2866884OpacityOBJ.windowName = 'mywindow';
>>GBC2866884OpacityOBJ.windowLeft = 50;
>>GBC2866884OpacityOBJ.windowTop = 50;
>>GBC2866884OpacityOBJ.windowWidth = 200;
>>GBC2866884OpacityOBJ.windowHeight = 200;
>>GBC2866884OpacityOBJ.windowProps = '';
>>]]></script>
>><script>
>><![CDATA[
>>
>>var GBC2866884CrossBarsOBJ=new CrossBars();
>>GBC2866884CrossBarsOBJ.BarsColor='black';
>>GBC2866884CrossBarsOBJ.RatioX=1;
>>GBC2866884CrossBarsOBJ.RatioY=1;
>>GBC2866884CrossBarsOBJ.StartX=58.5;
>>GBC2866884CrossBarsOBJ.StartY=41.5;
>>GBC2866884CrossBarsOBJ.EndX=541.0;
>>GBC2866884CrossBarsOBJ.EndY=289.75;
>>GBC2866884CrossBarsOBJ.CrossBarGap=3;
>>GBC2866884CrossBarsOBJ.appear='hidden';
>>]]></script>
>><script>
>><![CDATA[
>>
>>function GBC2866884displayTable(id,NewOpacity,evt)
>>{
>>	var svgDoc = evt.getTarget().getOwnerDocument()
>>	var svgobject=svgDoc.getElementById(id)
>>	var svgstyle = svgobject.getStyle()
>>	svgstyle.getPropertyValue('visibility')
>>	if(NewOpacity==1)
>>	svgstyle.setProperty('visibility','hidden')
>>	else
>>	svgstyle.setProperty('visibility','visible')
>>}
>>]]></script>
>><g onmouseover='GBC2866884showCI(evt,0)' onmouseout='GBC2866884hideCI(evt,0)' >
>></g>
>><g onmouseover='GBC2866884showCI(evt,0)' onmouseout='GBC2866884hideCI(evt,0)' >
>></g>
>><g onmouseover='GBC2866884showCI(evt,0)' onmouseout='GBC2866884hideCI(evt,0)' >
>></g>
>><g onmouseover='GBC2866884showCI(evt,0)' onmouseout='GBC2866884hideCI(evt,0)' >
>></g>
>><g onmouseover='GBC2866884showCI(evt,0)' onmouseout='GBC2866884hideCI(evt,0)' >
>></g>
>><g onmouseover='GBC2866884showCI(evt,0)' onmouseout='GBC2866884hideCI(evt,0)' >
>></g>
>><g onmouseover='GBC2866884showCI(evt,0)' onmouseout='GBC2866884hideCI(evt,0)' >
>></g>
>><g onmouseover='GBC2866884showCI(evt,0)' onmouseout='GBC2866884hideCI(evt,0)' >
>><g id="GBC286688400" style="fill:rgb(106,1,109);fill-opacity:1.0;" onmouseover="GBC2866884ToolTipOBJ.ToolTipShow('17 or Under: 86.2, Lower Limit: 75.7, Upper Limit: 96.7',evt);;" onmouseout="GBC2866884ToolTipOBJ.ToolTipHide(evt);;" >
>><rect x="60.22321428571429" y="51.981666666666655" width="65.48214285714286" height="237.76833333333335" />
>><path style="fill:#540057;" d="M 60.22321428571429 51.981666666666655 L 60.22321428571429 51.981666666666655 L 125.70535714285715 51.981666666666655 L 125.70535714285715 51.981666666666655 z" />
>><path style="fill:#540057;" d="M 125.70535714285715 51.981666666666655 L 125.70535714285715 51.981666666666655 L 125.70535714285715 289.75 L 125.70535714285715 289.75 z" />
>><g id='GBC2866884CI00' style='fill:black;stroke:black;stroke-opacity:1;visibility:hidden'>
>><line x1='92.96428571428572' y1='51.981666666666655' x2='92.96428571428572' y2='23.01916666666665'  />
>><line x1='92.96428571428572' y1='51.981666666666655' x2='92.96428571428572' y2='80.94416666666666'  />
>></g>
>></g>
>></g>
>><g onmouseover='GBC2866884showCI(evt,0)' onmouseout='GBC2866884hideCI(evt,0)' >
>><g id="GBC286688401" style="fill:rgb(106,1,109);fill-opacity:1.0;" onmouseover="GBC2866884ToolTipOBJ.ToolTipShow('18-19: 81.1, Lower Limit: 70, Upper Limit: 92.2',evt);;" onmouseout="GBC2866884ToolTipOBJ.ToolTipHide(evt);;" >
>><rect x="129.15178571428572" y="66.04916666666668" width="65.48214285714286" height="223.70083333333332" />
>><path style="fill:#540057;" d="M 129.15178571428572 66.04916666666668 L 129.15178571428572 66.04916666666668 L 194.63392857142858 66.04916666666668 L 194.63392857142858 66.04916666666668 z" />
>><path style="fill:#540057;" d="M 194.63392857142858 66.04916666666668 L 194.63392857142858 66.04916666666668 L 194.63392857142858 289.75 L 194.63392857142858 289.75 z" />
>><g id='GBC2866884CI10' style='fill:black;stroke:black;stroke-opacity:1;visibility:hidden'>
>><line x1='161.89285714285717' y1='66.04916666666668' x2='161.89285714285717' y2='35.43166666666664'  />
>><line x1='161.89285714285717' y1='66.04916666666668' x2='161.89285714285717' y2='96.66666666666666'  />
>></g>
>></g>
>></g>
>><g onmouseover='GBC2866884showCI(evt,0)' onmouseout='GBC2866884hideCI(evt,0)' >
>><g id="GBC286688402" style="fill:rgb(106,1,109);fill-opacity:1.0;" onmouseover="GBC2866884ToolTipOBJ.ToolTipShow('20-24: 32, Lower Limit: 26.3, Upper Limit: 37.7',evt);;" onmouseout="GBC2866884ToolTipOBJ.ToolTipHide(evt);;" >
>><rect x="198.08035714285717" y="201.48333333333335" width="65.48214285714286" height="88.26666666666665" />
>><path style="fill:#540057;" d="M 198.08035714285717 201.48333333333335 L 198.08035714285717 201.48333333333335 L 263.5625 201.48333333333335 L 263.5625 201.48333333333335 z" />
>><path style="fill:#540057;" d="M 263.5625 201.48333333333335 L 263.5625 201.48333333333335 L 263.5625 289.75 L 263.5625 289.75 z" />
>><g id='GBC2866884CI20' style='fill:black;stroke:black;stroke-opacity:1;visibility:hidden'>
>><line x1='230.82142857142858' y1='201.48333333333335' x2='230.82142857142858' y2='185.76083333333332'  />
>><line x1='230.82142857142858' y1='201.48333333333335' x2='230.82142857142858' y2='217.20583333333332'  />
>></g>
>></g>
>></g>
>><g onmouseover='GBC2866884showCI(evt,0)' onmouseout='GBC2866884hideCI(evt,0)' >
>><g id="GBC286688403" style="fill:rgb(106,1,109);fill-opacity:1.0;" onmouseover="GBC2866884ToolTipOBJ.ToolTipShow('25-29: 29.1, Lower Limit: 23.9, Upper Limit: 34.3',evt);;" onmouseout="GBC2866884ToolTipOBJ.ToolTipHide(evt);;" >
>><rect x="267.00892857142856" y="209.4825" width="65.48214285714286" height="80.26750000000001" />
>><path style="fill:#540057;" d="M 267.00892857142856 209.4825 L 267.00892857142856 209.4825 L 332.49107142857144 209.4825 L 332.49107142857144 209.4825 z" />
>><path style="fill:#540057;" d="M 332.49107142857144 209.4825 L 332.49107142857144 209.4825 L 332.49107142857144 289.75 L 332.49107142857144 289.75 z" />
>><g id='GBC2866884CI30' style='fill:black;stroke:black;stroke-opacity:1;visibility:hidden'>
>><line x1='299.75' y1='209.4825' x2='299.75' y2='195.13916666666668'  />
>><line x1='299.75' y1='209.4825' x2='299.75' y2='223.82583333333332'  />
>></g>
>></g>
>></g>
>><g onmouseover='GBC2866884showCI(evt,0)' onmouseout='GBC2866884hideCI(evt,0)' >
>><g id="GBC286688404" style="fill:rgb(106,1,109);fill-opacity:1.0;" onmouseover="GBC2866884ToolTipOBJ.ToolTipShow('30-34: 28, Lower Limit: 21.2, Upper Limit: 34.8',evt);;" onmouseout="GBC2866884ToolTipOBJ.ToolTipHide(evt);;" >
>><rect x="335.9375" y="212.51666666666665" width="65.48214285714286" height="77.23333333333335" />
>><path style="fill:#540057;" d="M 335.9375 212.51666666666665 L 335.9375 212.51666666666665 L 401.4196428571429 212.51666666666665 L 401.4196428571429 212.51666666666665 z" />
>><path style="fill:#540057;" d="M 401.4196428571429 212.51666666666665 L 401.4196428571429 212.51666666666665 L 401.4196428571429 289.75 L 401.4196428571429 289.75 z" />
>><g id='GBC2866884CI40' style='fill:black;stroke:black;stroke-opacity:1;visibility:hidden'>
>><line x1='368.67857142857144' y1='212.51666666666665' x2='368.67857142857144' y2='193.76'  />
>><line x1='368.67857142857144' y1='212.51666666666665' x2='368.67857142857144' y2='231.27333333333334'  />
>></g>
>></g>
>></g>
>><g onmouseover='GBC2866884showCI(evt,0)' onmouseout='GBC2866884hideCI(evt,0)' >
>><g id="GBC286688405" style="fill:rgb(106,1,109);fill-opacity:1.0;" onmouseover="GBC2866884ToolTipOBJ.ToolTipShow('35-39: 20.7, Lower Limit: 11.8, Upper Limit: 29.6',evt);;" onmouseout="GBC2866884ToolTipOBJ.ToolTipHide(evt);;" >
>><rect x="404.86607142857144" y="232.6525" width="65.48214285714286" height="57.0975" />
>><path style="fill:#540057;" d="M 404.86607142857144 232.6525 L 404.86607142857144 232.6525 L 470.34821428571433 232.6525 L 470.34821428571433 232.6525 z" />
>><path style="fill:#540057;" d="M 470.34821428571433 232.6525 L 470.34821428571433 232.6525 L 470.34821428571433 289.75 L 470.34821428571433 289.75 z" />
>><g id='GBC2866884CI50' style='fill:black;stroke:black;stroke-opacity:1;visibility:hidden'>
>><line x1='437.6071428571429' y1='232.6525' x2='437.6071428571429' y2='208.10333333333332'  />
>><line x1='437.6071428571429' y1='232.6525' x2='437.6071428571429' y2='257.20166666666665'  />
>></g>
>></g>
>></g>
>><g onmouseover='GBC2866884showCI(evt,0)' onmouseout='GBC2866884hideCI(evt,0)' >
>><g id="GBC286688406" style="fill:rgb(106,1,109);fill-opacity:1.0;" onmouseover="GBC2866884ToolTipOBJ.ToolTipShow('40+: 9.3, Lower Limit: -1.1, Upper Limit: 19.7',evt);;" onmouseout="GBC2866884ToolTipOBJ.ToolTipHide(evt);;" >
>><rect x="473.79464285714283" y="264.09749999999997" width="65.48214285714286" height="25.652500000000032" />
>><path style="fill:#540057;" d="M 473.79464285714283 264.09749999999997 L 473.79464285714283 264.09749999999997 L 539.2767857142857 264.09749999999997 L 539.2767857142857 264.09749999999997 z" />
>><path style="fill:#540057;" d="M 539.2767857142857 264.09749999999997 L 539.2767857142857 264.09749999999997 L 539.2767857142857 289.75 L 539.2767857142857 289.75 z" />
>><g id='GBC2866884CI60' style='fill:black;stroke:black;stroke-opacity:1;visibility:hidden'>
>><line x1='506.5357142857143' y1='264.09749999999997' x2='506.5357142857143' y2='235.41083333333333'  />
>><line x1='506.5357142857143' y1='264.09749999999997' x2='506.5357142857143' y2='292.7841666666667'  />
>></g>
>></g>
>></g>
>></svg>
>></svg>
>>
>>
>>------------------------------------------------------------------------
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: batik-users-unsubscribe@xml.apache.org
>>For additional commands, e-mail: batik-users-help@xml.apache.org




---------------------------------------------------------------------
To unsubscribe, e-mail: batik-users-unsubscribe@xml.apache.org
For additional commands, e-mail: batik-users-help@xml.apache.org


Re: Convertion problem

Posted by ra...@elansoft.com.
Hi Thomas,

Thanks for your responce. I am using batik-1.5 still iam getting the same
NPE. I am attaching test.svg file. Could u help me in rectifying this
problem, if possible give me where i am going worng.


Thank you,
rajesh



> Hi,
>
> When i try to convert my svg file in to jpeg  i am getting the error.
> I am not able to convert into jpg, Here i am giving that error.
>
> D:\batik-1.5>java -jar batik-rasterizer.jar test.svg -m image/jpeg
>
> About to transcode 1 SVG file(s)
>
> Converting *.svg to *.jpg
> ...java.lang.NullPointerException
>         at org.apache.batik.bridge.DocumentLoader.getLineNumber(Unknown
> Source)
>         at org.apache.batik.bridge.GVTBuilder.build(Unknown Source)
>         at
> org.apache.batik.transcoder.SVGAbstractTranscoder.transcode(Unknown
> Source)
>         at
> org.apache.batik.transcoder.image.ImageTranscoder.transcode(Unknown
> Source)
>         at
> org.apache.batik.transcoder.XMLAbstractTranscoder.transcode(Unknown
> Source)
>         at org.apache.batik.apps.rasterizer.SVGConverter.transcode(Unknown
> Source)
>         at org.apache.batik.apps.rasterizer.SVGConverter.execute(Unknown
> Source)
>         at org.apache.batik.apps.rasterizer.Main.execute(Unknown Source)
>         at org.apache.batik.apps.rasterizer.Main.main(Unknown Source)
> ... error (SVGConverter.error.while.rasterizing.file)
>
>
> Why i am getting this error. Any help you can provide is appreciated
>
> Regards,
> RajeshB
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: batik-users-unsubscribe@xml.apache.org
> For additional commands, e-mail: batik-users-help@xml.apache.org
>
>

Convertion problem

Posted by ra...@elansoft.com.
Hi,

When i try to convert my svg file in to jpeg  i am getting the error.
I am not able to convert into jpg, Here i am giving that error.

D:\batik-1.5>java -jar batik-rasterizer.jar test.svg -m image/jpeg

About to transcode 1 SVG file(s)

Converting *.svg to *.jpg
...java.lang.NullPointerException
        at org.apache.batik.bridge.DocumentLoader.getLineNumber(Unknown
Source)
        at org.apache.batik.bridge.GVTBuilder.build(Unknown Source)
        at
org.apache.batik.transcoder.SVGAbstractTranscoder.transcode(Unknown
Source)
        at
org.apache.batik.transcoder.image.ImageTranscoder.transcode(Unknown
Source)
        at
org.apache.batik.transcoder.XMLAbstractTranscoder.transcode(Unknown
Source)
        at org.apache.batik.apps.rasterizer.SVGConverter.transcode(Unknown
Source)
        at org.apache.batik.apps.rasterizer.SVGConverter.execute(Unknown
Source)
        at org.apache.batik.apps.rasterizer.Main.execute(Unknown Source)
        at org.apache.batik.apps.rasterizer.Main.main(Unknown Source)
... error (SVGConverter.error.while.rasterizing.file)


Why i am getting this error. Any help you can provide is appreciated

Regards,
RajeshB

---------------------------------------------------------------------
To unsubscribe, e-mail: batik-users-unsubscribe@xml.apache.org
For additional commands, e-mail: batik-users-help@xml.apache.org


Re: text-anchor:end not working - WAS text - rtl examples

Posted by Thomas DeWeese <Th...@Kodak.com>.
Chris Faulkner wrote:

> Hello
> 
> I remembered why I got into trying to get RTL to work in the first place. It
> is because "text-anchor:end;" doesn't work for text on a <textPath>. Has
> anyone else found this and are there  any workarounds ?

This is easy, you forgot to say startOffset="100%" for the textPath elements.
Without that the anchor point of the text is the start of the
path so all of the text is off the start of the path.

> Some sample SVG is given below - it basically has three lines with text
> oriented along the lines. YOu can do text along a line with a text-anchor of
> start but not end. middle is OK as long as you have a startOffset of 50%. I
> have tried putting the style attribute for this in text, tspan and textPath
> elements but to no avail.
> 
> Help would be very welcome.
> 
> 
> Thanks
> 
> Chris
> 
> 
> <?xml version="1.0" standalone="no"?>
> 
> <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 20010904//EN"
> 	"http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd">
> <svg width="500" height="500" preserveAspectRatio="xMidYMid meet"
> 	xmlns="http://www.w3.org/2000/svg" zoomAndPan="magnify"
> 	viewBox="0 0 200.0 200.0">
> 
> <path id="t_316" d="M0,0L90,90" style="stroke:black;"/>
> <text style="text-anchor:start;font-size:6;font-family:Verdana;">
> <textPath xlink:href="#t_316">
> <tspan>Top left heading to middle</tspan></textPath>
> </text>
> 
> <path id="t_311" d="M50,100L100,100L150,100" style="stroke:black;"/>
> <text>
> <textPath xlink:href="#t_311" startOffset="50%">
> <tspan style="text-anchor:middle;font-size:6;font-family:Verdana;">aligned
> to middle of line</tspan></textPath>
> </text>
> 
> <path id="t_317" d="M110,110L200,200" style="stroke:black;"/>
> <text style="text-anchor:end;font-size:6;font-family:Verdana;">
> <textPath xlink:href="#t_317">
> <tspan text-anchor="end">Middle to bottom right oriented at
> end</tspan></textPath>
> </text>
> 
> <path id="t_318" d="M100,200L200,200" style="stroke:black;"/>
> <text>
> <textPath xlink:href="#t_318" >
> <tspan style="text-anchor:end;font-size:6;font-family:Verdana;">Horizontal
> oriented at end</tspan></textPath>
> </text>
> 
> </svg>
> 
> 
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: batik-users-unsubscribe@xml.apache.org
> For additional commands, e-mail: batik-users-help@xml.apache.org
> 
> 




---------------------------------------------------------------------
To unsubscribe, e-mail: batik-users-unsubscribe@xml.apache.org
For additional commands, e-mail: batik-users-help@xml.apache.org


text-anchor:end not working - WAS text - rtl examples

Posted by Chris Faulkner <ch...@oramap.com>.
Hello

I remembered why I got into trying to get RTL to work in the first place. It
is because "text-anchor:end;" doesn't work for text on a <textPath>. Has
anyone else found this and are there  any workarounds ?

Some sample SVG is given below - it basically has three lines with text
oriented along the lines. YOu can do text along a line with a text-anchor of
start but not end. middle is OK as long as you have a startOffset of 50%. I
have tried putting the style attribute for this in text, tspan and textPath
elements but to no avail.

Help would be very welcome.


Thanks

Chris


<?xml version="1.0" standalone="no"?>

<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 20010904//EN"
	"http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd">
<svg width="500" height="500" preserveAspectRatio="xMidYMid meet"
	xmlns="http://www.w3.org/2000/svg" zoomAndPan="magnify"
	viewBox="0 0 200.0 200.0">

<path id="t_316" d="M0,0L90,90" style="stroke:black;"/>
<text style="text-anchor:start;font-size:6;font-family:Verdana;">
<textPath xlink:href="#t_316">
<tspan>Top left heading to middle</tspan></textPath>
</text>

<path id="t_311" d="M50,100L100,100L150,100" style="stroke:black;"/>
<text>
<textPath xlink:href="#t_311" startOffset="50%">
<tspan style="text-anchor:middle;font-size:6;font-family:Verdana;">aligned
to middle of line</tspan></textPath>
</text>

<path id="t_317" d="M110,110L200,200" style="stroke:black;"/>
<text style="text-anchor:end;font-size:6;font-family:Verdana;">
<textPath xlink:href="#t_317">
<tspan text-anchor="end">Middle to bottom right oriented at
end</tspan></textPath>
</text>

<path id="t_318" d="M100,200L200,200" style="stroke:black;"/>
<text>
<textPath xlink:href="#t_318" >
<tspan style="text-anchor:end;font-size:6;font-family:Verdana;">Horizontal
oriented at end</tspan></textPath>
</text>

</svg>





---------------------------------------------------------------------
To unsubscribe, e-mail: batik-users-unsubscribe@xml.apache.org
For additional commands, e-mail: batik-users-help@xml.apache.org


Re: text - rtl examples

Posted by Thomas DeWeese <Th...@Kodak.com>.
rajesh@elansoft.com wrote:

> I am using j2sdk1.4.1_04, batik-1.5. that file displaying in the batik
> browser. I think we have to use jdk1.3.1 or later versions. See the
> attached file.

    I've done some checking and I am 99% certain this is a bug in the
1.4.1 JDK, and the work around in Batik would be extremely nasty.

    However I can suggest some content workarounds.
Basically the 1.4 Bidi code doesn't like it when you set the BIDI_EMBEDING
property for the first character in a 'paragraph' contrary to what it
considers the default BIDI direction for that character.

    To work around this you can ensure that the first character in the
text element has no BIDI attributes (probably by making it a space in
a tspan with xml:space="preserve"), you can then use x/y etc to arrange
for the rest of the text to appear where you want and how you want:

   <text><tspan xml:space="preserve"> </tspan><textPath xlink:href="#t_32"
       ><tspan unicode-bidi="bidi-override" direction="rtl"
         >mxet</tspan></textPath></text>

    I am still looking at a possible workaround but it would fairly
significantly negatively impact the performance of the normal case so I
am extremely reluctant to do so.

>>Thanks for sticking with me on this, Thomas.  That's a nuisance for me - I
>>can't go back to 1.3.1 for lots of reasons, but I could go for a later
>>version of 1.4. Does anyone else have any experience of this - does it
>>work
>>with other flavours of 1.4 ?
>>
>>Cheers
>>
>>Chris
>>
>>
>>>-----Original Message-----
>>>From: Thomas DeWeese [mailto:Thomas.DeWeese@Kodak.com]
>>>Sent: 23 October 2003 14:33
>>>To: Batik Users
>>>Subject: Re: text - rtl examples
>>>
>>>
>>>Chris Faulkner wrote:
>>>
>>>
>>>>Thanks for giving me the example. I added a white rectangle to
>>>
>>>it so that I
>>>
>>>>could read the text ! The text remains "txet" (the adobe plugin
>>>
>>>gives "extt"
>>>
>>>>!) when viewed but it should be "text". I rasterise with "java -jar
>>>>batik-rasteriser.jar <file>" and create the png. I am on batik
>>>
>>>1.5 with JDK
>>>
>>>>1.4.1_02  - my image is attached.
>>>
>>>   Hmm, I was using 1.3.1 and it works with that.  It does not work with
>>>JDK 1.4.1 - We have seen some similar problems in the past because they
>>>'upgraded' the bidi engine in 1.4 in the past when we have had problems
>>>we were doing 'bad things' - however in this case I think we are doing
>>>the 'right thing'.  If you are interested in looking into this we
>>>set all the BIDI attributes on the text in
>>>xml-batik/sources/org/apache/batik/bridge/SVGTextElementBridge.java:1439
>>>
>>>    I don't know if I'll have time to look at this in more depth
>>>right now.
>>>
>>>><?xml version="1.0" standalone="no"?>
>>>><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 20010904//EN"
>>>>   "http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd">
>>>><svg width="100" height="100" viewBox="498355 252780 50 50"
>>>>      xmlns="http://www.w3.org/2000/svg"
>>>>      xmlns:xlink="http://www.w3.org/1999/xlink">
>>>>
>>>><rect x="498355" y="252780" width="50" height="50" fill="white"/>
>>>><path id="t_32" d="M498376,252804 L498399,252818 L498627,253000"
>>>>  fill="none" stroke="white"/>
>>>><text>
>>>><textPath xlink:href="#t_32">
>>>><tspan unicode-bidi="bidi-override" direction="rtl">txet</tspan>
>>>></textPath>
>>>></text>
>>>></svg>
>>>>
>>>>Chris
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>>-----Original Message-----
>>>>>From: Thomas DeWeese [mailto:Thomas.DeWeese@Kodak.com]
>>>>>Sent: 23 October 2003 13:37
>>>>>To: Batik Users
>>>>>Subject: Re: text - rtl examples
>>>>>
>>>>>
>>>>>Hi Chris,
>>>>>
>>>>>   Works for me:
>>>>>
>>>>><?xml version="1.0" standalone="no"?>
>>>>><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 20010904//EN"
>>>>>  "http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd">
>>>>><svg width="100" height="100" viewBox="498355 252780 50 50"
>>>>>     xmlns="http://www.w3.org/2000/svg"
>>>>>     xmlns:xlink="http://www.w3.org/1999/xlink">
>>>>><path id="t_32" d="M498376,252804 L498399,252818 L498627,253000"
>>>>> fill="none" stroke="red"/>
>>>>><text>
>>>>><textPath xlink:href="#t_32">
>>>>><tspan unicode-bidi="bidi-override"
>>>>>direction="rtl">txet</tspan></textPath>
>>>>></text>
>>>>></svg>
>>>>>
>>>>>
>>>>>Chris Faulkner wrote:
>>>>>
>>>>>
>>>>>
>>>>>>Hi
>>>>>>
>>>>>>I now have this but it still fails.
>>>>>>
>>>>>><path id="t_32" d="M498376,252804L498399,252818L498627,253000"
>>>>>>class="invis"/>
>>>>>><text>
>>>>>><textPath xlink:href="#t_32">
>>>>>><tspan unicode-bidi="bidi-override"
>>>>>
>>>>>direction="rtl">txet</tspan></textPath>
>>>>>
>>>>>></text>
>>>>>>
>>>>>>
>>>>>>Any ideas ?
>>>>>>
>>>>>>Thanks
>>>>>>
>>>>>>
>>>>>>Chris
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>>-----Original Message-----
>>>>>>>From: Thomas DeWeese [mailto:Thomas.DeWeese@Kodak.com]
>>>>>>>Sent: 23 October 2003 12:28
>>>>>>>To: Batik Users
>>>>>>>Subject: Re: text - rtl examples
>>>>>>>
>>>>>>>
>>>>>>>Chris Faulkner wrote:
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>>Hello
>>>>>>>>
>>>>>>>>I am trying to get rtl-oriented text to work. I have batik
>>>
>>>1.5 - in the
>>>
>>>>>>>>readme it says that rtl text should work. Is there anything
>>>>>>>
>>>>>>>wrong with my
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>>example below ?
>>>>>>>
>>>>>>>  You need to add set the "unicode-bidi" property to
>>>
>>>"bidi-override".
>>>
>>>>>>>
>>>>>>>
>>>>>>>><path id="t_32" d="M498376,252804L498399,252818L498627,253000"
>>>>>>>>class="invis"/>
>>>>>>>><text>
>>>>>>>><textPath xlink:href="#t_32">
>>>>>>>><tspan direction="rtl">My Text</tspan></textPath>
>>>>>>>></text>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>---------------------------------------------------------------------
>>>>>>>To unsubscribe, e-mail: batik-users-unsubscribe@xml.apache.org
>>>>>>>For additional commands, e-mail: batik-users-help@xml.apache.org
>>>>>>>
>>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>---------------------------------------------------------------------
>>>>>>To unsubscribe, e-mail: batik-users-unsubscribe@xml.apache.org
>>>>>>For additional commands, e-mail: batik-users-help@xml.apache.org
>>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>---------------------------------------------------------------------
>>>>>To unsubscribe, e-mail: batik-users-unsubscribe@xml.apache.org
>>>>>For additional commands, e-mail: batik-users-help@xml.apache.org
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>
>>>------------------------------------------------------------------------
>>>
>>>>>
>>>>>------------------------------------------------------------------------
>>>>>
>>>>>---------------------------------------------------------------------
>>>>>To unsubscribe, e-mail: batik-users-unsubscribe@xml.apache.org
>>>>>For additional commands, e-mail: batik-users-help@xml.apache.org
>>>
>>>
>>>
>>>---------------------------------------------------------------------
>>>To unsubscribe, e-mail: batik-users-unsubscribe@xml.apache.org
>>>For additional commands, e-mail: batik-users-help@xml.apache.org
>>>
>>>
>>
>>
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: batik-users-unsubscribe@xml.apache.org
>>For additional commands, e-mail: batik-users-help@xml.apache.org
>>
>>
>>
>>
>> ------------------------------------------------------------------------
>>
>>
>>------------------------------------------------------------------------
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: batik-users-unsubscribe@xml.apache.org
>>For additional commands, e-mail: batik-users-help@xml.apache.org




---------------------------------------------------------------------
To unsubscribe, e-mail: batik-users-unsubscribe@xml.apache.org
For additional commands, e-mail: batik-users-help@xml.apache.org


RE: text - rtl examples

Posted by ra...@elansoft.com.
I am using j2sdk1.4.1_04, batik-1.5. that file displaying in the batik
browser. I think we have to use jdk1.3.1 or later versions. See the
attached file.

Rajesh

> Thanks for sticking with me on this, Thomas.  That's a nuisance for me - I
> can't go back to 1.3.1 for lots of reasons, but I could go for a later
> version of 1.4. Does anyone else have any experience of this - does it
> work
> with other flavours of 1.4 ?
>
> Cheers
>
> Chris
>
>> -----Original Message-----
>> From: Thomas DeWeese [mailto:Thomas.DeWeese@Kodak.com]
>> Sent: 23 October 2003 14:33
>> To: Batik Users
>> Subject: Re: text - rtl examples
>>
>>
>> Chris Faulkner wrote:
>>
>> > Thanks for giving me the example. I added a white rectangle to
>> it so that I
>> > could read the text ! The text remains "txet" (the adobe plugin
>> gives "extt"
>> > !) when viewed but it should be "text". I rasterise with "java -jar
>> > batik-rasteriser.jar <file>" and create the png. I am on batik
>> 1.5 with JDK
>> > 1.4.1_02  - my image is attached.
>>
>>    Hmm, I was using 1.3.1 and it works with that.  It does not work with
>> JDK 1.4.1 - We have seen some similar problems in the past because they
>> 'upgraded' the bidi engine in 1.4 in the past when we have had problems
>> we were doing 'bad things' - however in this case I think we are doing
>> the 'right thing'.  If you are interested in looking into this we
>> set all the BIDI attributes on the text in
>> xml-batik/sources/org/apache/batik/bridge/SVGTextElementBridge.java:1439
>>
>>     I don't know if I'll have time to look at this in more depth
>> right now.
>> >
>> > <?xml version="1.0" standalone="no"?>
>> > <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 20010904//EN"
>> >    "http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd">
>> > <svg width="100" height="100" viewBox="498355 252780 50 50"
>> >       xmlns="http://www.w3.org/2000/svg"
>> >       xmlns:xlink="http://www.w3.org/1999/xlink">
>> >
>> > <rect x="498355" y="252780" width="50" height="50" fill="white"/>
>> > <path id="t_32" d="M498376,252804 L498399,252818 L498627,253000"
>> >   fill="none" stroke="white"/>
>> > <text>
>> > <textPath xlink:href="#t_32">
>> > <tspan unicode-bidi="bidi-override" direction="rtl">txet</tspan>
>> > </textPath>
>> > </text>
>> > </svg>
>> >
>> > Chris
>> >
>> >
>> >
>> >
>> >
>> >>-----Original Message-----
>> >>From: Thomas DeWeese [mailto:Thomas.DeWeese@Kodak.com]
>> >>Sent: 23 October 2003 13:37
>> >>To: Batik Users
>> >>Subject: Re: text - rtl examples
>> >>
>> >>
>> >>Hi Chris,
>> >>
>> >>    Works for me:
>> >>
>> >><?xml version="1.0" standalone="no"?>
>> >><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 20010904//EN"
>> >>   "http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd">
>> >><svg width="100" height="100" viewBox="498355 252780 50 50"
>> >>      xmlns="http://www.w3.org/2000/svg"
>> >>      xmlns:xlink="http://www.w3.org/1999/xlink">
>> >><path id="t_32" d="M498376,252804 L498399,252818 L498627,253000"
>> >>  fill="none" stroke="red"/>
>> >><text>
>> >><textPath xlink:href="#t_32">
>> >><tspan unicode-bidi="bidi-override"
>> >>direction="rtl">txet</tspan></textPath>
>> >></text>
>> >></svg>
>> >>
>> >>
>> >>Chris Faulkner wrote:
>> >>
>> >>
>> >>>Hi
>> >>>
>> >>>I now have this but it still fails.
>> >>>
>> >>><path id="t_32" d="M498376,252804L498399,252818L498627,253000"
>> >>>class="invis"/>
>> >>><text>
>> >>><textPath xlink:href="#t_32">
>> >>><tspan unicode-bidi="bidi-override"
>> >>
>> >>direction="rtl">txet</tspan></textPath>
>> >>
>> >>></text>
>> >>>
>> >>>
>> >>>Any ideas ?
>> >>>
>> >>>Thanks
>> >>>
>> >>>
>> >>>Chris
>> >>>
>> >>>
>> >>>
>> >>>>-----Original Message-----
>> >>>>From: Thomas DeWeese [mailto:Thomas.DeWeese@Kodak.com]
>> >>>>Sent: 23 October 2003 12:28
>> >>>>To: Batik Users
>> >>>>Subject: Re: text - rtl examples
>> >>>>
>> >>>>
>> >>>>Chris Faulkner wrote:
>> >>>>
>> >>>>
>> >>>>
>> >>>>>Hello
>> >>>>>
>> >>>>>I am trying to get rtl-oriented text to work. I have batik
>> 1.5 - in the
>> >>>>>readme it says that rtl text should work. Is there anything
>> >>>>
>> >>>>wrong with my
>> >>>>
>> >>>>
>> >>>>>example below ?
>> >>>>
>> >>>>   You need to add set the "unicode-bidi" property to
>> "bidi-override".
>> >>>>
>> >>>>
>> >>>>
>> >>>>><path id="t_32" d="M498376,252804L498399,252818L498627,253000"
>> >>>>>class="invis"/>
>> >>>>><text>
>> >>>>><textPath xlink:href="#t_32">
>> >>>>><tspan direction="rtl">My Text</tspan></textPath>
>> >>>>></text>
>> >>>>
>> >>>>
>> >>>>
>> >>>>
>> >>>>---------------------------------------------------------------------
>> >>>>To unsubscribe, e-mail: batik-users-unsubscribe@xml.apache.org
>> >>>>For additional commands, e-mail: batik-users-help@xml.apache.org
>> >>>>
>> >>>>
>> >>>
>> >>>
>> >>>
>> >>>
>> >>>---------------------------------------------------------------------
>> >>>To unsubscribe, e-mail: batik-users-unsubscribe@xml.apache.org
>> >>>For additional commands, e-mail: batik-users-help@xml.apache.org
>> >>>
>> >>
>> >>
>> >>
>> >>
>> >>---------------------------------------------------------------------
>> >>To unsubscribe, e-mail: batik-users-unsubscribe@xml.apache.org
>> >>For additional commands, e-mail: batik-users-help@xml.apache.org
>> >>
>> >>
>> >>
>> >>
>> >>
>> ------------------------------------------------------------------------
>> >>
>> >>
>> >>------------------------------------------------------------------------
>> >>
>> >>---------------------------------------------------------------------
>> >>To unsubscribe, e-mail: batik-users-unsubscribe@xml.apache.org
>> >>For additional commands, e-mail: batik-users-help@xml.apache.org
>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: batik-users-unsubscribe@xml.apache.org
>> For additional commands, e-mail: batik-users-help@xml.apache.org
>>
>>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: batik-users-unsubscribe@xml.apache.org
> For additional commands, e-mail: batik-users-help@xml.apache.org
>
>

Re: text - rtl examples

Posted by Thomas DeWeese <Th...@Kodak.com>.
Chris Faulkner wrote:

> Thanks for sticking with me on this, Thomas.  That's a nuisance for me - I
> can't go back to 1.3.1 for lots of reasons, but I could go for a later
> version of 1.4. Does anyone else have any experience of this - does it work
> with other flavours of 1.4 ?

    Can you file a bugzilla with this?
    Please make sure to make the sample SVG files attachments, don't just
paste it in to the comment area.

    Thanks.

> 
> Cheers
> 
> Chris
> 
> 
>>-----Original Message-----
>>From: Thomas DeWeese [mailto:Thomas.DeWeese@Kodak.com]
>>Sent: 23 October 2003 14:33
>>To: Batik Users
>>Subject: Re: text - rtl examples
>>
>>
>>Chris Faulkner wrote:
>>
>>
>>>Thanks for giving me the example. I added a white rectangle to
>>
>>it so that I
>>
>>>could read the text ! The text remains "txet" (the adobe plugin
>>
>>gives "extt"
>>
>>>!) when viewed but it should be "text". I rasterise with "java -jar
>>>batik-rasteriser.jar <file>" and create the png. I am on batik
>>
>>1.5 with JDK
>>
>>>1.4.1_02  - my image is attached.
>>
>>   Hmm, I was using 1.3.1 and it works with that.  It does not work with
>>JDK 1.4.1 - We have seen some similar problems in the past because they
>>'upgraded' the bidi engine in 1.4 in the past when we have had problems
>>we were doing 'bad things' - however in this case I think we are doing
>>the 'right thing'.  If you are interested in looking into this we
>>set all the BIDI attributes on the text in
>>xml-batik/sources/org/apache/batik/bridge/SVGTextElementBridge.java:1439
>>
>>    I don't know if I'll have time to look at this in more depth
>>right now.
>>
>>><?xml version="1.0" standalone="no"?>
>>><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 20010904//EN"
>>>   "http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd">
>>><svg width="100" height="100" viewBox="498355 252780 50 50"
>>>      xmlns="http://www.w3.org/2000/svg"
>>>      xmlns:xlink="http://www.w3.org/1999/xlink">
>>>
>>><rect x="498355" y="252780" width="50" height="50" fill="white"/>
>>><path id="t_32" d="M498376,252804 L498399,252818 L498627,253000"
>>>  fill="none" stroke="white"/>
>>><text>
>>><textPath xlink:href="#t_32">
>>><tspan unicode-bidi="bidi-override" direction="rtl">txet</tspan>
>>></textPath>
>>></text>
>>></svg>
>>>
>>>Chris
>>>
>>>
>>>
>>>
>>>
>>>
>>>>-----Original Message-----
>>>>From: Thomas DeWeese [mailto:Thomas.DeWeese@Kodak.com]
>>>>Sent: 23 October 2003 13:37
>>>>To: Batik Users
>>>>Subject: Re: text - rtl examples
>>>>
>>>>
>>>>Hi Chris,
>>>>
>>>>   Works for me:
>>>>
>>>><?xml version="1.0" standalone="no"?>
>>>><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 20010904//EN"
>>>>  "http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd">
>>>><svg width="100" height="100" viewBox="498355 252780 50 50"
>>>>     xmlns="http://www.w3.org/2000/svg"
>>>>     xmlns:xlink="http://www.w3.org/1999/xlink">
>>>><path id="t_32" d="M498376,252804 L498399,252818 L498627,253000"
>>>> fill="none" stroke="red"/>
>>>><text>
>>>><textPath xlink:href="#t_32">
>>>><tspan unicode-bidi="bidi-override"
>>>>direction="rtl">txet</tspan></textPath>
>>>></text>
>>>></svg>
>>>>
>>>>
>>>>Chris Faulkner wrote:
>>>>
>>>>
>>>>
>>>>>Hi
>>>>>
>>>>>I now have this but it still fails.
>>>>>
>>>>><path id="t_32" d="M498376,252804L498399,252818L498627,253000"
>>>>>class="invis"/>
>>>>><text>
>>>>><textPath xlink:href="#t_32">
>>>>><tspan unicode-bidi="bidi-override"
>>>>
>>>>direction="rtl">txet</tspan></textPath>
>>>>
>>>>></text>
>>>>>
>>>>>
>>>>>Any ideas ?
>>>>>
>>>>>Thanks
>>>>>
>>>>>
>>>>>Chris
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>>-----Original Message-----
>>>>>>From: Thomas DeWeese [mailto:Thomas.DeWeese@Kodak.com]
>>>>>>Sent: 23 October 2003 12:28
>>>>>>To: Batik Users
>>>>>>Subject: Re: text - rtl examples
>>>>>>
>>>>>>
>>>>>>Chris Faulkner wrote:
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>>Hello
>>>>>>>
>>>>>>>I am trying to get rtl-oriented text to work. I have batik
>>
>>1.5 - in the
>>
>>>>>>>readme it says that rtl text should work. Is there anything
>>>>>>
>>>>>>wrong with my
>>>>>>
>>>>>>
>>>>>>
>>>>>>>example below ?
>>>>>>
>>>>>>  You need to add set the "unicode-bidi" property to "bidi-override".
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>><path id="t_32" d="M498376,252804L498399,252818L498627,253000"
>>>>>>>class="invis"/>
>>>>>>><text>
>>>>>>><textPath xlink:href="#t_32">
>>>>>>><tspan direction="rtl">My Text</tspan></textPath>
>>>>>>></text>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>---------------------------------------------------------------------
>>>>>>To unsubscribe, e-mail: batik-users-unsubscribe@xml.apache.org
>>>>>>For additional commands, e-mail: batik-users-help@xml.apache.org
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>---------------------------------------------------------------------
>>>>>To unsubscribe, e-mail: batik-users-unsubscribe@xml.apache.org
>>>>>For additional commands, e-mail: batik-users-help@xml.apache.org
>>>>>
>>>>
>>>>
>>>>
>>>>
>>>>---------------------------------------------------------------------
>>>>To unsubscribe, e-mail: batik-users-unsubscribe@xml.apache.org
>>>>For additional commands, e-mail: batik-users-help@xml.apache.org
>>>>
>>>>
>>>>
>>>>
>>>>
>>
>>------------------------------------------------------------------------
>>
>>>>
>>>>------------------------------------------------------------------------
>>>>
>>>>---------------------------------------------------------------------
>>>>To unsubscribe, e-mail: batik-users-unsubscribe@xml.apache.org
>>>>For additional commands, e-mail: batik-users-help@xml.apache.org
>>
>>
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: batik-users-unsubscribe@xml.apache.org
>>For additional commands, e-mail: batik-users-help@xml.apache.org
>>
>>
> 
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: batik-users-unsubscribe@xml.apache.org
> For additional commands, e-mail: batik-users-help@xml.apache.org
> 
> 




---------------------------------------------------------------------
To unsubscribe, e-mail: batik-users-unsubscribe@xml.apache.org
For additional commands, e-mail: batik-users-help@xml.apache.org


RE: text - rtl examples

Posted by Chris Faulkner <ch...@oramap.com>.
Thanks for sticking with me on this, Thomas.  That's a nuisance for me - I
can't go back to 1.3.1 for lots of reasons, but I could go for a later
version of 1.4. Does anyone else have any experience of this - does it work
with other flavours of 1.4 ?

Cheers

Chris

> -----Original Message-----
> From: Thomas DeWeese [mailto:Thomas.DeWeese@Kodak.com]
> Sent: 23 October 2003 14:33
> To: Batik Users
> Subject: Re: text - rtl examples
>
>
> Chris Faulkner wrote:
>
> > Thanks for giving me the example. I added a white rectangle to
> it so that I
> > could read the text ! The text remains "txet" (the adobe plugin
> gives "extt"
> > !) when viewed but it should be "text". I rasterise with "java -jar
> > batik-rasteriser.jar <file>" and create the png. I am on batik
> 1.5 with JDK
> > 1.4.1_02  - my image is attached.
>
>    Hmm, I was using 1.3.1 and it works with that.  It does not work with
> JDK 1.4.1 - We have seen some similar problems in the past because they
> 'upgraded' the bidi engine in 1.4 in the past when we have had problems
> we were doing 'bad things' - however in this case I think we are doing
> the 'right thing'.  If you are interested in looking into this we
> set all the BIDI attributes on the text in
> xml-batik/sources/org/apache/batik/bridge/SVGTextElementBridge.java:1439
>
>     I don't know if I'll have time to look at this in more depth
> right now.
> >
> > <?xml version="1.0" standalone="no"?>
> > <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 20010904//EN"
> >    "http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd">
> > <svg width="100" height="100" viewBox="498355 252780 50 50"
> >       xmlns="http://www.w3.org/2000/svg"
> >       xmlns:xlink="http://www.w3.org/1999/xlink">
> >
> > <rect x="498355" y="252780" width="50" height="50" fill="white"/>
> > <path id="t_32" d="M498376,252804 L498399,252818 L498627,253000"
> >   fill="none" stroke="white"/>
> > <text>
> > <textPath xlink:href="#t_32">
> > <tspan unicode-bidi="bidi-override" direction="rtl">txet</tspan>
> > </textPath>
> > </text>
> > </svg>
> >
> > Chris
> >
> >
> >
> >
> >
> >>-----Original Message-----
> >>From: Thomas DeWeese [mailto:Thomas.DeWeese@Kodak.com]
> >>Sent: 23 October 2003 13:37
> >>To: Batik Users
> >>Subject: Re: text - rtl examples
> >>
> >>
> >>Hi Chris,
> >>
> >>    Works for me:
> >>
> >><?xml version="1.0" standalone="no"?>
> >><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 20010904//EN"
> >>   "http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd">
> >><svg width="100" height="100" viewBox="498355 252780 50 50"
> >>      xmlns="http://www.w3.org/2000/svg"
> >>      xmlns:xlink="http://www.w3.org/1999/xlink">
> >><path id="t_32" d="M498376,252804 L498399,252818 L498627,253000"
> >>  fill="none" stroke="red"/>
> >><text>
> >><textPath xlink:href="#t_32">
> >><tspan unicode-bidi="bidi-override"
> >>direction="rtl">txet</tspan></textPath>
> >></text>
> >></svg>
> >>
> >>
> >>Chris Faulkner wrote:
> >>
> >>
> >>>Hi
> >>>
> >>>I now have this but it still fails.
> >>>
> >>><path id="t_32" d="M498376,252804L498399,252818L498627,253000"
> >>>class="invis"/>
> >>><text>
> >>><textPath xlink:href="#t_32">
> >>><tspan unicode-bidi="bidi-override"
> >>
> >>direction="rtl">txet</tspan></textPath>
> >>
> >>></text>
> >>>
> >>>
> >>>Any ideas ?
> >>>
> >>>Thanks
> >>>
> >>>
> >>>Chris
> >>>
> >>>
> >>>
> >>>>-----Original Message-----
> >>>>From: Thomas DeWeese [mailto:Thomas.DeWeese@Kodak.com]
> >>>>Sent: 23 October 2003 12:28
> >>>>To: Batik Users
> >>>>Subject: Re: text - rtl examples
> >>>>
> >>>>
> >>>>Chris Faulkner wrote:
> >>>>
> >>>>
> >>>>
> >>>>>Hello
> >>>>>
> >>>>>I am trying to get rtl-oriented text to work. I have batik
> 1.5 - in the
> >>>>>readme it says that rtl text should work. Is there anything
> >>>>
> >>>>wrong with my
> >>>>
> >>>>
> >>>>>example below ?
> >>>>
> >>>>   You need to add set the "unicode-bidi" property to "bidi-override".
> >>>>
> >>>>
> >>>>
> >>>>><path id="t_32" d="M498376,252804L498399,252818L498627,253000"
> >>>>>class="invis"/>
> >>>>><text>
> >>>>><textPath xlink:href="#t_32">
> >>>>><tspan direction="rtl">My Text</tspan></textPath>
> >>>>></text>
> >>>>
> >>>>
> >>>>
> >>>>
> >>>>---------------------------------------------------------------------
> >>>>To unsubscribe, e-mail: batik-users-unsubscribe@xml.apache.org
> >>>>For additional commands, e-mail: batik-users-help@xml.apache.org
> >>>>
> >>>>
> >>>
> >>>
> >>>
> >>>
> >>>---------------------------------------------------------------------
> >>>To unsubscribe, e-mail: batik-users-unsubscribe@xml.apache.org
> >>>For additional commands, e-mail: batik-users-help@xml.apache.org
> >>>
> >>
> >>
> >>
> >>
> >>---------------------------------------------------------------------
> >>To unsubscribe, e-mail: batik-users-unsubscribe@xml.apache.org
> >>For additional commands, e-mail: batik-users-help@xml.apache.org
> >>
> >>
> >>
> >>
> >>
> ------------------------------------------------------------------------
> >>
> >>
> >>------------------------------------------------------------------------
> >>
> >>---------------------------------------------------------------------
> >>To unsubscribe, e-mail: batik-users-unsubscribe@xml.apache.org
> >>For additional commands, e-mail: batik-users-help@xml.apache.org
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: batik-users-unsubscribe@xml.apache.org
> For additional commands, e-mail: batik-users-help@xml.apache.org
>
>



---------------------------------------------------------------------
To unsubscribe, e-mail: batik-users-unsubscribe@xml.apache.org
For additional commands, e-mail: batik-users-help@xml.apache.org


Re: text - rtl examples

Posted by Thomas DeWeese <Th...@Kodak.com>.
Chris Faulkner wrote:

> Thanks for giving me the example. I added a white rectangle to it so that I
> could read the text ! The text remains "txet" (the adobe plugin gives "extt"
> !) when viewed but it should be "text". I rasterise with "java -jar
> batik-rasteriser.jar <file>" and create the png. I am on batik 1.5 with JDK
> 1.4.1_02  - my image is attached.

   Hmm, I was using 1.3.1 and it works with that.  It does not work with
JDK 1.4.1 - We have seen some similar problems in the past because they
'upgraded' the bidi engine in 1.4 in the past when we have had problems
we were doing 'bad things' - however in this case I think we are doing
the 'right thing'.  If you are interested in looking into this we
set all the BIDI attributes on the text in
xml-batik/sources/org/apache/batik/bridge/SVGTextElementBridge.java:1439

    I don't know if I'll have time to look at this in more depth right now.
> 
> <?xml version="1.0" standalone="no"?>
> <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 20010904//EN"
>    "http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd">
> <svg width="100" height="100" viewBox="498355 252780 50 50"
>       xmlns="http://www.w3.org/2000/svg"
>       xmlns:xlink="http://www.w3.org/1999/xlink">
> 
> <rect x="498355" y="252780" width="50" height="50" fill="white"/>
> <path id="t_32" d="M498376,252804 L498399,252818 L498627,253000"
>   fill="none" stroke="white"/>
> <text>
> <textPath xlink:href="#t_32">
> <tspan unicode-bidi="bidi-override" direction="rtl">txet</tspan>
> </textPath>
> </text>
> </svg>
> 
> Chris
> 
> 
> 
> 
> 
>>-----Original Message-----
>>From: Thomas DeWeese [mailto:Thomas.DeWeese@Kodak.com]
>>Sent: 23 October 2003 13:37
>>To: Batik Users
>>Subject: Re: text - rtl examples
>>
>>
>>Hi Chris,
>>
>>    Works for me:
>>
>><?xml version="1.0" standalone="no"?>
>><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 20010904//EN"
>>   "http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd">
>><svg width="100" height="100" viewBox="498355 252780 50 50"
>>      xmlns="http://www.w3.org/2000/svg"
>>      xmlns:xlink="http://www.w3.org/1999/xlink">
>><path id="t_32" d="M498376,252804 L498399,252818 L498627,253000"
>>  fill="none" stroke="red"/>
>><text>
>><textPath xlink:href="#t_32">
>><tspan unicode-bidi="bidi-override"
>>direction="rtl">txet</tspan></textPath>
>></text>
>></svg>
>>
>>
>>Chris Faulkner wrote:
>>
>>
>>>Hi
>>>
>>>I now have this but it still fails.
>>>
>>><path id="t_32" d="M498376,252804L498399,252818L498627,253000"
>>>class="invis"/>
>>><text>
>>><textPath xlink:href="#t_32">
>>><tspan unicode-bidi="bidi-override"
>>
>>direction="rtl">txet</tspan></textPath>
>>
>>></text>
>>>
>>>
>>>Any ideas ?
>>>
>>>Thanks
>>>
>>>
>>>Chris
>>>
>>>
>>>
>>>>-----Original Message-----
>>>>From: Thomas DeWeese [mailto:Thomas.DeWeese@Kodak.com]
>>>>Sent: 23 October 2003 12:28
>>>>To: Batik Users
>>>>Subject: Re: text - rtl examples
>>>>
>>>>
>>>>Chris Faulkner wrote:
>>>>
>>>>
>>>>
>>>>>Hello
>>>>>
>>>>>I am trying to get rtl-oriented text to work. I have batik 1.5 - in the
>>>>>readme it says that rtl text should work. Is there anything
>>>>
>>>>wrong with my
>>>>
>>>>
>>>>>example below ?
>>>>
>>>>   You need to add set the "unicode-bidi" property to "bidi-override".
>>>>
>>>>
>>>>
>>>>><path id="t_32" d="M498376,252804L498399,252818L498627,253000"
>>>>>class="invis"/>
>>>>><text>
>>>>><textPath xlink:href="#t_32">
>>>>><tspan direction="rtl">My Text</tspan></textPath>
>>>>></text>
>>>>
>>>>
>>>>
>>>>
>>>>---------------------------------------------------------------------
>>>>To unsubscribe, e-mail: batik-users-unsubscribe@xml.apache.org
>>>>For additional commands, e-mail: batik-users-help@xml.apache.org
>>>>
>>>>
>>>
>>>
>>>
>>>
>>>---------------------------------------------------------------------
>>>To unsubscribe, e-mail: batik-users-unsubscribe@xml.apache.org
>>>For additional commands, e-mail: batik-users-help@xml.apache.org
>>>
>>
>>
>>
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: batik-users-unsubscribe@xml.apache.org
>>For additional commands, e-mail: batik-users-help@xml.apache.org
>>
>>
>>
>>
>> ------------------------------------------------------------------------
>>
>>
>>------------------------------------------------------------------------
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: batik-users-unsubscribe@xml.apache.org
>>For additional commands, e-mail: batik-users-help@xml.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: batik-users-unsubscribe@xml.apache.org
For additional commands, e-mail: batik-users-help@xml.apache.org


RE: text - rtl examples

Posted by Chris Faulkner <ch...@oramap.com>.
Thanks for giving me the example. I added a white rectangle to it so that I
could read the text ! The text remains "txet" (the adobe plugin gives "extt"
!) when viewed but it should be "text". I rasterise with "java -jar
batik-rasteriser.jar <file>" and create the png. I am on batik 1.5 with JDK
1.4.1_02  - my image is attached.


<?xml version="1.0" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 20010904//EN"
   "http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd">
<svg width="100" height="100" viewBox="498355 252780 50 50"
      xmlns="http://www.w3.org/2000/svg"
      xmlns:xlink="http://www.w3.org/1999/xlink">

<rect x="498355" y="252780" width="50" height="50" fill="white"/>
<path id="t_32" d="M498376,252804 L498399,252818 L498627,253000"
  fill="none" stroke="white"/>
<text>
<textPath xlink:href="#t_32">
<tspan unicode-bidi="bidi-override" direction="rtl">txet</tspan>
</textPath>
</text>
</svg>

Chris




> -----Original Message-----
> From: Thomas DeWeese [mailto:Thomas.DeWeese@Kodak.com]
> Sent: 23 October 2003 13:37
> To: Batik Users
> Subject: Re: text - rtl examples
>
>
> Hi Chris,
>
>     Works for me:
>
> <?xml version="1.0" standalone="no"?>
> <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 20010904//EN"
>    "http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd">
> <svg width="100" height="100" viewBox="498355 252780 50 50"
>       xmlns="http://www.w3.org/2000/svg"
>       xmlns:xlink="http://www.w3.org/1999/xlink">
> <path id="t_32" d="M498376,252804 L498399,252818 L498627,253000"
>   fill="none" stroke="red"/>
> <text>
> <textPath xlink:href="#t_32">
> <tspan unicode-bidi="bidi-override"
> direction="rtl">txet</tspan></textPath>
> </text>
> </svg>
>
>
> Chris Faulkner wrote:
>
> > Hi
> >
> > I now have this but it still fails.
> >
> > <path id="t_32" d="M498376,252804L498399,252818L498627,253000"
> > class="invis"/>
> > <text>
> > <textPath xlink:href="#t_32">
> > <tspan unicode-bidi="bidi-override"
> direction="rtl">txet</tspan></textPath>
> > </text>
> >
> >
> > Any ideas ?
> >
> > Thanks
> >
> >
> > Chris
> >
> >
> >>-----Original Message-----
> >>From: Thomas DeWeese [mailto:Thomas.DeWeese@Kodak.com]
> >>Sent: 23 October 2003 12:28
> >>To: Batik Users
> >>Subject: Re: text - rtl examples
> >>
> >>
> >>Chris Faulkner wrote:
> >>
> >>
> >>>Hello
> >>>
> >>>I am trying to get rtl-oriented text to work. I have batik 1.5 - in the
> >>>readme it says that rtl text should work. Is there anything
> >>
> >>wrong with my
> >>
> >>>example below ?
> >>
> >>    You need to add set the "unicode-bidi" property to "bidi-override".
> >>
> >>
> >>><path id="t_32" d="M498376,252804L498399,252818L498627,253000"
> >>>class="invis"/>
> >>><text>
> >>><textPath xlink:href="#t_32">
> >>><tspan direction="rtl">My Text</tspan></textPath>
> >>></text>
> >>
> >>
> >>
> >>
> >>---------------------------------------------------------------------
> >>To unsubscribe, e-mail: batik-users-unsubscribe@xml.apache.org
> >>For additional commands, e-mail: batik-users-help@xml.apache.org
> >>
> >>
> >
> >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: batik-users-unsubscribe@xml.apache.org
> > For additional commands, e-mail: batik-users-help@xml.apache.org
> >
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: batik-users-unsubscribe@xml.apache.org
> For additional commands, e-mail: batik-users-help@xml.apache.org
>
>

Re: text - rtl examples

Posted by Thomas DeWeese <Th...@Kodak.com>.
Hi Chris,

    Works for me:

<?xml version="1.0" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 20010904//EN"
   "http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd">
<svg width="100" height="100" viewBox="498355 252780 50 50"
      xmlns="http://www.w3.org/2000/svg"
      xmlns:xlink="http://www.w3.org/1999/xlink">
<path id="t_32" d="M498376,252804 L498399,252818 L498627,253000"
  fill="none" stroke="red"/>
<text>
<textPath xlink:href="#t_32">
<tspan unicode-bidi="bidi-override" direction="rtl">txet</tspan></textPath>
</text>
</svg>


Chris Faulkner wrote:

> Hi
> 
> I now have this but it still fails.
> 
> <path id="t_32" d="M498376,252804L498399,252818L498627,253000"
> class="invis"/>
> <text>
> <textPath xlink:href="#t_32">
> <tspan unicode-bidi="bidi-override" direction="rtl">txet</tspan></textPath>
> </text>
> 
> 
> Any ideas ?
> 
> Thanks
> 
> 
> Chris
> 
> 
>>-----Original Message-----
>>From: Thomas DeWeese [mailto:Thomas.DeWeese@Kodak.com]
>>Sent: 23 October 2003 12:28
>>To: Batik Users
>>Subject: Re: text - rtl examples
>>
>>
>>Chris Faulkner wrote:
>>
>>
>>>Hello
>>>
>>>I am trying to get rtl-oriented text to work. I have batik 1.5 - in the
>>>readme it says that rtl text should work. Is there anything
>>
>>wrong with my
>>
>>>example below ?
>>
>>    You need to add set the "unicode-bidi" property to "bidi-override".
>>
>>
>>><path id="t_32" d="M498376,252804L498399,252818L498627,253000"
>>>class="invis"/>
>>><text>
>>><textPath xlink:href="#t_32">
>>><tspan direction="rtl">My Text</tspan></textPath>
>>></text>
>>
>>
>>
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: batik-users-unsubscribe@xml.apache.org
>>For additional commands, e-mail: batik-users-help@xml.apache.org
>>
>>
> 
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: batik-users-unsubscribe@xml.apache.org
> For additional commands, e-mail: batik-users-help@xml.apache.org
> 




---------------------------------------------------------------------
To unsubscribe, e-mail: batik-users-unsubscribe@xml.apache.org
For additional commands, e-mail: batik-users-help@xml.apache.org


RE: text - rtl examples

Posted by Chris Faulkner <ch...@oramap.com>.
Hi

I now have this but it still fails.

<path id="t_32" d="M498376,252804L498399,252818L498627,253000"
class="invis"/>
<text>
<textPath xlink:href="#t_32">
<tspan unicode-bidi="bidi-override" direction="rtl">txet</tspan></textPath>
</text>


Any ideas ?

Thanks


Chris

> -----Original Message-----
> From: Thomas DeWeese [mailto:Thomas.DeWeese@Kodak.com]
> Sent: 23 October 2003 12:28
> To: Batik Users
> Subject: Re: text - rtl examples
>
>
> Chris Faulkner wrote:
>
> > Hello
> >
> > I am trying to get rtl-oriented text to work. I have batik 1.5 - in the
> > readme it says that rtl text should work. Is there anything
> wrong with my
> > example below ?
>
>     You need to add set the "unicode-bidi" property to "bidi-override".
>
> > <path id="t_32" d="M498376,252804L498399,252818L498627,253000"
> > class="invis"/>
> > <text>
> > <textPath xlink:href="#t_32">
> > <tspan direction="rtl">My Text</tspan></textPath>
> > </text>
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: batik-users-unsubscribe@xml.apache.org
> For additional commands, e-mail: batik-users-help@xml.apache.org
>
>



---------------------------------------------------------------------
To unsubscribe, e-mail: batik-users-unsubscribe@xml.apache.org
For additional commands, e-mail: batik-users-help@xml.apache.org


Re: text - rtl examples

Posted by Thomas DeWeese <Th...@Kodak.com>.
Chris Faulkner wrote:

> Hello
> 
> I am trying to get rtl-oriented text to work. I have batik 1.5 - in the
> readme it says that rtl text should work. Is there anything wrong with my
> example below ?

    You need to add set the "unicode-bidi" property to "bidi-override".

> <path id="t_32" d="M498376,252804L498399,252818L498627,253000"
> class="invis"/>
> <text>
> <textPath xlink:href="#t_32">
> <tspan direction="rtl">My Text</tspan></textPath>
> </text>




---------------------------------------------------------------------
To unsubscribe, e-mail: batik-users-unsubscribe@xml.apache.org
For additional commands, e-mail: batik-users-help@xml.apache.org


text - rtl examples

Posted by Chris Faulkner <ch...@oramap.com>.
Hello

I am trying to get rtl-oriented text to work. I have batik 1.5 - in the
readme it says that rtl text should work. Is there anything wrong with my
example below ?

<path id="t_32" d="M498376,252804L498399,252818L498627,253000"
class="invis"/>
<text>
<textPath xlink:href="#t_32">
<tspan direction="rtl">My Text</tspan></textPath>
</text>

Thanks


Chris



---------------------------------------------------------------------
To unsubscribe, e-mail: batik-users-unsubscribe@xml.apache.org
For additional commands, e-mail: batik-users-help@xml.apache.org


Re: KEY_FORCE_TRANSPARENT_WHITE for transparency

Posted by Matthew Good <ma...@virginia.edu>.
What are you using to view the PNG?  The PNGs produced by Batik are 
normally transparent without these hints, but if you're trying to view 
it in IE beware that IE's doesn't support transparent PNGs normally.  
There's a wierd hackish way to get it to work that you can find here: 
http://www.alistapart.com/articles/pngopacity/

-Matt

Sunil Puri wrote:

> Hi,
>
> t.addTranscodingHint(PNGTranscoder.KEY_BACKGROUND_COLOR, Color.white);
> t.addTranscodingHint(PNGTranscoder.KEY_FORCE_TRANSPARENT_WHITE, 
> Boolean.TRUE);
>
> I have tried using these two statements to make a Transparent PNG 
> image from SVG, but it doesn't seem to work even if you change the 
> values from TRUE to FALSE or use some other color.
>
> I will appreciate if anyone could help me to produce Transparent image.
>
>
>
> Sunil Puri
>
> _________________________________________________________________
> Fretting that your Hotmail account may expire because you forgot to 
> sign in enough? Get Hotmail Extra Storage today!   
> http://join.msn.com/?PAGE=features/es
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: batik-users-unsubscribe@xml.apache.org
> For additional commands, e-mail: batik-users-help@xml.apache.org
>



---------------------------------------------------------------------
To unsubscribe, e-mail: batik-users-unsubscribe@xml.apache.org
For additional commands, e-mail: batik-users-help@xml.apache.org