logo       

RE: text - rtl examples: msg#00204

Subject: RE: text - rtl examples
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@xxxxxxxxx]
> 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@xxxxxxxxx]
> >>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@xxxxxxxxxxxxxx
> >>For additional commands, e-mail: batik-users-help@xxxxxxxxxxxxxx
> >>
> >>
> >
> >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: batik-users-unsubscribe@xxxxxxxxxxxxxx
> > For additional commands, e-mail: batik-users-help@xxxxxxxxxxxxxx
> >
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: batik-users-unsubscribe@xxxxxxxxxxxxxx
> For additional commands, e-mail: batik-users-help@xxxxxxxxxxxxxx
>
>

Attachment: t_2a_LS.png
Description: PNG image

---------------------------------------------------------------------
To unsubscribe, e-mail: batik-users-unsubscribe@xxxxxxxxxxxxxx
For additional commands, e-mail: batik-users-help@xxxxxxxxxxxxxx
<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
science.linguis...    culture.sf.lite...    video.mplayer.c...    yellowdog.gener...    ietf.rfc822/199...    emacs.help/2002...    redhat.release....    kernel.speakup/...    java.openejb.de...    debian.devel.gt...    xfree86.newbie/...    bug-tracking.ma...    pam/2003-05/msg...    games.devel.ope...    user-groups.lin...    music.pancham/2...    network.mq.deve...    web.html.genera...    arklinux.bugs/2...    linux.ecasound/...    qnx.openqnx.dev...    org.user-groups...    file-systems.sf...    trustix.contrib...   
Home | blog view | USPTO Patent Archive | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe