<p></p>
<blockquote>
<p dir="auto">I was wondering about usernames, but they are displayed in a lot of places, and often in contexts where I'd be quite worried about the layout effects of them leaping to the far side of the page.</p>
</blockquote>
<p dir="auto">Hopefully they won't jump around much, due to the <a href="https://github.com/openstreetmap/openstreetmap-website/issues/3432" data-hovercard-type="issue" data-hovercard-url="/openstreetmap/openstreetmap-website/issues/3432/hovercard">text-align issue</a> if nothing else! But I think there aren't many cases were usernames are on their own with much freedom to roam around.</p>
<blockquote>
<p dir="auto">Usernames are also often interpolated in longer strings - doe we just wrap them in a span with dir=auto within the wider string? Mark the whole wider string as auto?</p>
</blockquote>
<p dir="auto">I think just the username. If we mark the wider string as dir=auto and the username comes first, then it'll rearrange the remainder of the text too if the wider string contains punctuation.</p>
<p dir="auto">Contrived example:<br>
<code>username commented yesterday! - block</code> could become <code>block! - username commented yesterday</code> if that username was in arabic, since the dir=auto would see the first character as arabic, and layout the wider string in three chunks RTL (<code>username commented yesterday </code> first, then <code>! - </code>, then <code>block</code>). If just the username is dir=auto, then it won't scramble the rest of wider string.</p>
<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />Reply to this email directly, <a href="https://github.com/openstreetmap/openstreetmap-website/pull/3429#issuecomment-1017607466">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAK2OLMFSHKT6356A4RMQNDUXAQ3XANCNFSM5MKYBKWA">unsubscribe</a>.<br />Triage notifications on the go with GitHub Mobile for <a href="https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675">iOS</a> or <a href="https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub">Android</a>.
<br />You are receiving this because you are subscribed to this thread.<img src="https://github.com/notifications/beacon/AAK2OLJQ7E5RI4X5TKOK42LUXAQ3XA5CNFSM5MKYBKWKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOHSTXKKQ.gif" height="1" width="1" alt="" /><span style="color: transparent; font-size: 0; display: none; visibility: hidden; overflow: hidden; opacity: 0; width: 0; height: 0; max-width: 0; max-height: 0; mso-hide: all">Message ID: <span><openstreetmap/openstreetmap-website/pull/3429/c1017607466</span><span>@</span><span>github</span><span>.</span><span>com></span></span></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/openstreetmap/openstreetmap-website/pull/3429#issuecomment-1017607466",
"url": "https://github.com/openstreetmap/openstreetmap-website/pull/3429#issuecomment-1017607466",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>