OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

docbook-apps message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: Fwd: [xep-support] FW: RTL direction attribute in SVG background image





-------- Forwarded Message --------
Subject: [xep-support] FW: RTL direction attribute in SVG background image
Date: Fri, 9 Dec 2016 09:49:29 +1100
From: Darren Munt <darrenm@ardex.com.au>
Reply-To: RenderX Community Support List <xep-support@renderx.com>
To: xep-support@renderx.com <xep-support@renderx.com>


May have sent this to the wrong support address….

 

From: Darren Munt
Sent: Thursday, 8 December 2016 5:31 PM
To: 'support@renderx.com' <support@renderx.com>
Subject: RTL direction attribute in SVG background image

 

Trying to use an SVG background image to an fo:block. The SVG contains Arabic text, which is RTL. I have set the direction attribute on the SVG element to “RTL” but it does not appear to be honoured. The output text is back to front.

 

The SVG looks like this:

 

<svg width="16cm" height="2cm" xmlns="http://www.w3.org/2000/svg" xmlns:svg="http://www.w3.org/2000/svg" direction="rtl">

  <text fill="#000000" x="8cm" y="1cm" font-size="1.5cm" font-family="Arabic Typesetting" text-anchor="middle"> انسحاب</text>

</svg>

 

I have it in a separate file at present and I’m importing it as follows:

 

<fo:block keep-together.within-page="always" space-after="0.0cm" font-size="0.5cm" background-image="url('nonrunnerbanner-ar.svg')" border-bottom-width="0.02cm" border-bottom-color="#a59266" border-bottom-style="solid">

 

</fo:block>

 

In the English version of this document, I am using an embedded base64 version of the SVG. I want to do the same here but I can’t get it writing right to left.

 

Is there a way to get this text RTL, or do I need to resort to using an image instead?

 

_______________________________________________
(*) To unsubscribe, please visit http://lists.renderx.com/mailman/options/xep-support
(*) By using the Service, you expressly agree to these Terms of Service http://w
ww.renderx.com/terms-of-service.html


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]