<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Displaying bi-directional text starting with weak or neutral characters.]]></title><description><![CDATA[<p dir="auto">I have a text string which starts with a bracket as in the example below:</p>
<p dir="auto">(x) hello world</p>
<p dir="auto">This displays correctly in left to right languages, but not in right to left languages. The same string translated into Arabic displays incorrectly as follows:</p>
<p dir="auto">(x) مرحبا العالم</p>
<p dir="auto">whereas I would expect it to display:</p>
<p dir="auto">مرحبا العالم (x)</p>
<p dir="auto">I've been trying to find a way by using horizontal alignment and/or layout mirroring as specified here <a href="http://qt-project.org/doc/qt-5.1/qtquick/qtquick-positioning-righttoleft.html" target="_blank" rel="noopener noreferrer nofollow ugc">http://qt-project.org/doc/qt-5.1/qtquick/qtquick-positioning-righttoleft.html</a> to correctly display the string. I've also tried setting the layout direction at the application level but this doesn't work either.</p>
<p dir="auto">The only conclusion I can come to now is that special processing will be necessary on strings such as this to add the explicit right to left embedding marks (RLE).</p>
<p dir="auto">I've read somewhere that translators are expected to add such embedding levels but this isn't a robust solution considering some of our translated strings contain placeholders for text which is obviously unknown at translation time.</p>
<p dir="auto">Has anyone else come across this issue and if so, did you find a suitable solution?</p>
]]></description><link>https://forum.qt.io/topic/32529/displaying-bi-directional-text-starting-with-weak-or-neutral-characters</link><generator>RSS for Node</generator><lastBuildDate>Sat, 10 Oct 2026 20:26:34 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/32529.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 30 Sep 2013 08:04:45 GMT</pubDate><ttl>60</ttl></channel></rss>