<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet href="https://shkspr.mobi/blog/wp-content/themes/edent-wordpress-theme/rss-style.xsl" type="text/xsl"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	    xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	     xmlns:dc="http://purl.org/dc/elements/1.1/"
	   xmlns:atom="http://www.w3.org/2005/Atom"
	     xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	  xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>
<channel>
	<title>ltr &#8211; Terence Eden’s Blog</title>
	<atom:link href="https://shkspr.mobi/blog/tag/ltr/feed/" rel="self" type="application/rss+xml" />
	<link>https://shkspr.mobi/blog</link>
	<description>Regular nonsense about tech and its effects 🙃</description>
	<lastBuildDate>Sun, 19 Jan 2025 10:27:24 +0000</lastBuildDate>
	<language>en-GB</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.4</generator>

<image>
	<url>https://shkspr.mobi/blog/wp-content/uploads/2023/07/cropped-avatar-32x32.jpeg</url>
	<title>ltr &#8211; Terence Eden’s Blog</title>
	<link>https://shkspr.mobi/blog</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title><![CDATA[Usability of mixing LTR and RTL text?]]></title>
		<link>https://shkspr.mobi/blog/2013/01/usability-of-mixing-ltr-and-rtl-text/</link>
					<comments>https://shkspr.mobi/blog/2013/01/usability-of-mixing-ltr-and-rtl-text/#respond</comments>
				<dc:creator><![CDATA[@edent]]></dc:creator>
		<pubDate>Sat, 19 Jan 2013 10:18:44 +0000</pubDate>
				<category><![CDATA[usability]]></category>
		<category><![CDATA[bidirectional]]></category>
		<category><![CDATA[ltr]]></category>
		<category><![CDATA[rtl]]></category>
		<category><![CDATA[text]]></category>
		<category><![CDATA[unicode]]></category>
		<guid isPermaLink="false">http://shkspr.mobi/blog/?p=7417</guid>

					<description><![CDATA[Annoyingly, FourSquare has started be be a source of spam for me.  I get friend request from people who only like certain brands of stores, from recruitment consultants trying to work out who I&#039;m visiting, and from cultists who are desperate for me to visit Scientology centres.  I also get friend requests from people I&#039;ve never met, including from Ahmed al-Najjar (احمد النجار).  I&#039;ve never met Ahm…]]></description>
										<content:encoded><![CDATA[<p>Annoyingly, FourSquare has started be be a source of spam for me.  I get friend request from people who only like certain brands of stores, from recruitment consultants trying to work out who I'm visiting, and from cultists who are desperate for me to visit <a href="http://www.xenu.net/">Scientology centres</a>.</p>

<p>I also get friend requests from people I've never met, including from Ahmed al-Najjar (احمد النجار).  I've never met Ahmed and I've no wish to taint him as a spammer - I'm sure he's just misclicked in his friend request - but because Arabic is written right-to-left (RTL) it shows up some interesting design and usability imitations of FourSquare.</p>

<p>On the Android app, there's a curious problem.
<img src="https://shkspr.mobi/blog/wp-content/uploads/2013/01/LTR-RTL.png" alt="LTR RTL" width="600" height="565" class="aligncenter size-full wp-image-7419"></p>

<p>In layman's terms, I'm expecting to see "[name] [action]".  What the computer is seeing as its instruction is "Place [name] at the start - then place [action]" - in this case, the [name] is placed and, because it is RTL, the [action] is placed after it - which means on space to the left.</p>

<p>Incidentally, their website doesn't suffer from this problem:
<img src="https://shkspr.mobi/blog/wp-content/uploads/2013/01/FourSquare-RTL-Web.png" alt="FourSquare RTL Web" width="551" height="408" class="aligncenter size-full wp-image-7418"></p>

<p>In an average design environment, we may only encounter one text layout.  In the west, that's usually Left To Right (LTR).  If we're feeling exotic, we might internationalise all our assets and strings so that they support a fully RTL experience. (Of course, <a href="http://www.nngroup.com/articles/international-usability-details-differ/">internationalisation and localisation is slightly more complex than that</a>.)</p>

<p>So, the experience becomes:
"أحمد النجار يريد أن يكون صديقك."</p>

<p>That's fine, but what happens when we want to mix the scripts? Should we say
"أحمد النجار wants to be your friend."</p>

<p>Somehow that feels wrong.  It's the lexical equivalent of writing "nedE ecnereT wants to be your friend". Yuck!</p>

<p>Do we accept that - whether one can or cannot read the script - a block of foreign text is read as a separate unit?</p>

<p><a href="https://en.wikipedia.org/wiki/Bi-directional_text">Bidirectional text support</a> is present in most computers.  Even if it does lead to some complex problems.</p>

<p><a href="http://xkcd.com/1137/"><img src="https://imgs.xkcd.com/comics/rtl.png" width="238" height="363" class="aligncenter"></a> Combining the text into one layout is a <a href="http://www.unicode.org/reports/tr9/">solved problem</a> - but it doesn't address the usability of mixing and matching.  What is it that <strong>the user</strong> expects to happen?  I think we can agree that their must be consistency between all UIs - in this case Web and Mobile.</p>

<p>As I see it, there are five approaches</p>

<ol>
    <li>Keep original UI ordering - place the name where the user <em>expects</em> it to be.</li>
    <li>Take the ordering from the first element of the sentence.</li>
    <li>Whenever the text direction changes, start a new line.</li>
    <li>Translate the foreign text into the user's native language.</li>
    <li>Rotate or reverse the foreign text.</li>
</ol>

<p>The common consensus is the first option.  Take the overall direction of the text and place the reversed text in place.</p>

<p>However, of the above items, I think that starting a new line is the most satisfactory.</p>

<pre>أحمد
wants to be your friend.</pre>

<p>But, of course, that leads to</p>

<pre>أحمد
is now friends with
تيرينس
</pre>

<p>Both of which could lead to vertical layout problems, as well as introducing alignment confusion.</p>

<pre style="direction:rtl;">أحمد
<p style="direction:ltr;">is now friends with</p>
تيرينس</pre>

<p>Gah!</p>

<p>But then, adjacency also provides problems. The <a href="http:s//www.w3.org/TR/i18n-html-tech-bidi/">W3C maintain some excellent guidelines for mixing bidirectional text</a>.  In this adjacency example, can you quickly determine which item should be checked to select "English"?</p>

<div id="displaybox">
     <p style="direction:rtl;">لغتي: <input type="checkbox"> العربية <input type="checkbox">   English‏ <input type="checkbox"> Français <input type="checkbox"> فارسی <input type="checkbox"> اردو</p>
</div>

<p>( Incidentally, number 5 isn't as strange as it sounds. In languages which are written Top-To-Bottom sometimes foreign characters are inserted in place but rotated!)
<a title="By Article by Shizhao (《zh:河北文安今發生地震 北京有震感》, zh.wikinews.org) [CC-BY-2.5 (http://creativecommons.org/licenses/by/2.5)], via Wikimedia Commons" href="http://commons.wikimedia.org/wiki/File%3AHebei_Wen'an_jin_fasheng_dizhen_-_Beijing_you_zhengan.png"><img width="256" alt="Hebei Wen'an jin fasheng dizhen - Beijing you zhengan" src="//upload.wikimedia.org/wikipedia/commons/e/e4/Hebei_Wen%27an_jin_fasheng_dizhen_-_Beijing_you_zhengan.png"></a></p>

<h2 id="a-conclusion-of-sorts"><a href="https://shkspr.mobi/blog/2013/01/usability-of-mixing-ltr-and-rtl-text/#a-conclusion-of-sorts">A Conclusion - of sorts</a></h2>

<p>I think it's obvious that in this example, the FourSquare mobile app is wrong from my point of view.  As the user, I expect the starting element to be at the left.  From Ahmed's point-of-view, he as a user expects the starting element to be on the right.</p>

<p>Yet, for both of us, it's an unsatisfactory and inconsistent experience.</p>

<p><a href="http://www.iamcal.com/understanding-bidirectional-text/">Bidirectional support in Unicode</a> solves the layout problem.  Yet I'm not sure if it solves the <em>semantic</em> problem.  Indeed, I wonder if that can be solved at all.</p>
<img src="https://shkspr.mobi/blog/wp-content/themes/edent-wordpress-theme/info/okgo.php?ID=7417&HTTP_REFERER=RSS" alt="" width="1" height="1" loading="eager">]]></content:encoded>
					
					<wfw:commentRss>https://shkspr.mobi/blog/2013/01/usability-of-mixing-ltr-and-rtl-text/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
