m***@aol.com
2006-12-31 04:20:33 UTC
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'>לשון הקודש</tspan>
<tspan opacity='0' style="pointer-events:none">.</tspan>
<tspan direction='rtl' unicode-bidi='bidi-override'>לשון הקודש</tspan>
<tspan direction='rtl' unicode-bidi='bidi-override'>ראייתם של הילדים</tspan>
<tspan id="fn28" style="pointer-events:none;baseline-shift:super;font-size:8;fill:darkcyan;">
</tspan>
</tspan>
<tspan>
</tspan>
</g>
</svg>
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'>לשון הקודש</tspan>
<tspan opacity='0' style="pointer-events:none">.</tspan>
<tspan direction='rtl' unicode-bidi='bidi-override'>לשון הקודש</tspan>
<tspan direction='rtl' unicode-bidi='bidi-override'>ראייתם של הילדים</tspan>
<tspan id="fn28" style="pointer-events:none;baseline-shift:super;font-size:8;fill:darkcyan;">
</tspan>
</tspan>
<tspan>
</tspan>
</g>
</svg>