Well wht I would like to know is,-I want to display some .svg image on my canvas inside an applet. This applet is there in the users local machine rit when he access my applet. So I like to know how can I use the Dom parser to draw the svg image in my canvas when its in the local users die. should I send the Dom parser along with the applet inside the jar file.
I would send multiple jar files (an applet can reference multiple jar files). There are issues with Batik in Applets (actually the issues are mostly with the libraries Batik uses), I suggest searching the archives for the issues and solutions.
Can you list me which is the exact dom parser which I shld use for diaplaying my svg in my canvas. And which jar files shlould be there to draw the svg image .
The dependency graph should answer this question.
thanks
-----Original Message-----
From: Thomas DeWeese [mailto:[EMAIL PROTECTED] Sent: Friday, October 24, 2003 4:13 PM
To: Batik Users
Subject: Re: text - rtl examples
Ashiq Hussain Khan wrote:
I am first time going to use batik to display .svg files in my applet. Can any one tell me how and which are the jar files required for deploying my applet.
Hi Ashiq,
The 'Install' page on the Batik Web site shows the jar file dependency graph.
1.where should the xml parser will reside when I am displaying the svg
vector image in my applet.
I guess I don't understand the question, if you are sending SVG to the client then it needs to be on the client (Our DOM is not serializable).
2.what all are required to display my svg file in my applet.
This depends a bit on what is in the svg file (JavaScript or not etc)
-----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Friday, October 24, 2003 12:23 PM To: Batik Users Subject: RE: text - rtl examples
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:[EMAIL PROTECTED] 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:1
439
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:[EMAIL PROTECTED] 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:[EMAIL PROTECTED] 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
-------------------------------------------------------------------- -
To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------- --
--------------------------------------------------------------------- -
--
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
**************************Disclaimer********************************** **
Information contained in this E-MAIL being proprietary to Wipro Limited is
'privileged' and 'confidential' and intended for use only by the
individual
or entity to which it is addressed. You are notified that any use,
copying
or dissemination of the information contained in the E-MAIL in any
manner
whatsoever is strictly prohibited.
********************************************************************** *****
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
**************************Disclaimer************************************
Information contained in this E-MAIL being proprietary to Wipro Limited is 'privileged' and 'confidential' and intended for use only by the individual
or entity to which it is addressed. You are notified that any use, copying or dissemination of the information contained in the E-MAIL in any manner whatsoever is strictly prohibited.
***************************************************************************
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]