Discussion:
BUG in SVG Viewer when displaying hebrew/western text
(too old to reply)
m***@aol.com
2006-12-31 04:20:33 UTC
Permalink
I am having trouble displaying Hebrew text and western text in the same document.

The Hebrew text behaves in an unpredictable manner placing text at the root location of a group instead of at the correct relative text position. Only the first character is placed at the correct position.

I have attached an example. Does anyone know how to prevent this?

<svg width="100%" height="100%" version="1.1" xmlns="http://www.w3.org/2000/svg">
<g id='root_latin'>

<tspan x='400' dy='0.0em'>Test 4 - The label info at required order</tspan>

</g>
<g id='root_hebrew3'>

<tspan opacity='0' style="pointer-events:none">.</tspan>
<tspan direction='rtl' unicode-bidi='bidi-override'>&#1500;&#1513;&#1493;&#1503; &#1492;&#1511;&#1493;&#1491;&#1513;</tspan>


<tspan opacity='0' style="pointer-events:none">.</tspan>
<tspan direction='rtl' unicode-bidi='bidi-override'>&#1500;&#1513;&#1493;&#1503; &#1492;&#1511;&#1493;&#1491;&#1513;</tspan>



<tspan direction='rtl' unicode-bidi='bidi-override'>&#1512;&#1488;&#1497;&#1497;&#1514;&#1501; &#1513;&#1500; &#1492;&#1497;&#1500;&#1491;&#1497;&#1501;</tspan>
<tspan id="fn28" style="pointer-events:none;baseline-shift:super;font-size:8;fill:darkcyan;">
</tspan>

</tspan>
<tspan>
</tspan>

</g>
</svg>
K***@adobeforums.com
2007-01-15 14:33:37 UTC
Permalink
there is no 'text' element in your example before 'tspan', may be this is a problem, make valid svg
Loading...