<p></p>
<blockquote>
<p dir="auto">Maplibre doesn't support some scripts (e.g. Burmese, Lao, and other Brahmic scripts), so it can't display the local name.</p>
</blockquote>
<p dir="auto">That's not <em>exactly</em> accurate. The issue is that MapLibre doesn't support ligatures and combining characters correctly, and instead displays them anywhere from slightly to terribly wrongly. However, OSM-Carto also renders some of these scripts wrongly as the examples below will show (and should probably be documented if they're not already).  Whether the "wrong" rendering makes the label unreadable or just slightly off will depend heavily on the script involved, and in my experience, it's the worst in Right-to-Left scripts.</p>
<p dir="auto">This is what MapLibre displays for the United States label, in Lao:</p>
<p dir="auto"><a href="https://zelonewolf.github.io/openstreetmap-americana/#map=4/33.24/-96.49&language=lo" rel="nofollow"><gh:secured-asset-reference resource_type="UserAsset" resource_id="241390666"></gh:secured-asset-reference></a><a target="_blank" rel="noopener noreferrer" href="https://github.com/openstreetmap/openstreetmap-website/assets/3254090/acb7d487-fa56-4d1a-a5c8-b36d45a39850"><img src="https://github.com/openstreetmap/openstreetmap-website/assets/3254090/acb7d487-fa56-4d1a-a5c8-b36d45a39850" alt="image" style="max-width: 100%;"></a></p>
<p dir="auto">However, it is supposed to look like this:<br>
<a href="https://lo.wikipedia.org/wiki/%E0%BA%AA%E0%BA%B0%E0%BA%AB%E0%BA%B0%E0%BA%A5%E0%BA%B1%E0%BA%94" rel="nofollow"><gh:secured-asset-reference resource_type="UserAsset" resource_id="241390877"></gh:secured-asset-reference></a><a target="_blank" rel="noopener noreferrer" href="https://github.com/openstreetmap/openstreetmap-website/assets/3254090/2a9db9d0-9085-4b41-a9d2-24631dbfd180"><img src="https://github.com/openstreetmap/openstreetmap-website/assets/3254090/2a9db9d0-9085-4b41-a9d2-24631dbfd180" alt="image" style="max-width: 100%;"></a></p>
<p dir="auto">The issue is that the squiggly line above the second-to-last character is supposed to be directly over it, not off to one side.  This issue is pervasive across all ligature/combiner scripts. While a Lao reader might still understand the script above, it would definitely look wrong, and this problem in other scripts results in mangled text that's absolutely unreadable to native speakers.</p>
<p dir="auto">This is something which has <em>always</em> been broken in mapbox-gl and is a high priority for maplibre-gl to get right, and it's documented in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1550516825" data-permission-text="Title is private" data-url="https://github.com/maplibre/maplibre/issues/193" data-hovercard-type="issue" data-hovercard-url="/maplibre/maplibre/issues/193/hovercard" href="https://github.com/maplibre/maplibre/issues/193">maplibre/maplibre#193</a>.</p>
<p dir="auto">Examples of rendering the Lao capital of Vientiane, which should appear in local script as:</p>
<h3 dir="auto">ວຽງຈັນ</h3>
<p dir="auto">Google Maps:<br>
<a href="https://www.google.com/maps/@17.9637196,102.6238214,13z?entry=ttu" rel="nofollow"><gh:secured-asset-reference resource_type="UserAsset" resource_id="241391138"></gh:secured-asset-reference></a><a target="_blank" rel="noopener noreferrer" href="https://github.com/openstreetmap/openstreetmap-website/assets/3254090/9cfbfbc1-1352-4ea5-9c43-caf9ff728d29"><img src="https://github.com/openstreetmap/openstreetmap-website/assets/3254090/9cfbfbc1-1352-4ea5-9c43-caf9ff728d29" alt="image" style="max-width: 100%;"></a></p>
<p dir="auto">OSM Americana (based on MapLibre):<br>
<a href="https://zelonewolf.github.io/openstreetmap-americana/#map=10.92/17.9901/102.6201" rel="nofollow"><gh:secured-asset-reference resource_type="UserAsset" resource_id="241391171"></gh:secured-asset-reference></a><a target="_blank" rel="noopener noreferrer" href="https://github.com/openstreetmap/openstreetmap-website/assets/3254090/8f28a3f4-0281-41f2-8564-b4a52c840510"><img src="https://github.com/openstreetmap/openstreetmap-website/assets/3254090/8f28a3f4-0281-41f2-8564-b4a52c840510" alt="image" style="max-width: 100%;"></a></p>
<p dir="auto">OSM Carto:<br>
<a target="_blank" rel="noopener noreferrer" href="https://user-images.githubusercontent.com/3254090/241391191-f3490849-fa6f-4121-9974-406209978370.png"><img src="https://user-images.githubusercontent.com/3254090/241391191-f3490849-fa6f-4121-9974-406209978370.png" alt="image" style="max-width: 100%;"></a></p>
<p dir="auto">However, looking at these examples, it seems that osm-carto isn't actually any different from what MapLibre is producing.</p>
<p dir="auto">Let's take a look at Kathmandu, Nepal, which is supposed to appear as:</p>
<h3 dir="auto">काठमाडौँ</h3>
<p dir="auto">Google Maps:<br>
<a href="https://www.google.com/maps/@27.7089543,85.2849333,13z?entry=ttu" rel="nofollow"><gh:secured-asset-reference resource_type="UserAsset" resource_id="241391604"></gh:secured-asset-reference></a><a target="_blank" rel="noopener noreferrer" href="https://github.com/openstreetmap/openstreetmap-website/assets/3254090/db470c56-9ce8-4c9e-8c95-e0718ea8c3c9"><img src="https://github.com/openstreetmap/openstreetmap-website/assets/3254090/db470c56-9ce8-4c9e-8c95-e0718ea8c3c9" alt="image" style="max-width: 100%;"></a></p>
<p dir="auto">OSM Americana<br>
<a href="https://zelonewolf.github.io/openstreetmap-americana/#map=11/27.6802/85.3489&language=en" rel="nofollow"><gh:secured-asset-reference resource_type="UserAsset" resource_id="241391653"></gh:secured-asset-reference></a><a target="_blank" rel="noopener noreferrer" href="https://github.com/openstreetmap/openstreetmap-website/assets/3254090/cb658c6f-0866-4ac1-8b2e-cd57f3a7905f"><img src="https://github.com/openstreetmap/openstreetmap-website/assets/3254090/cb658c6f-0866-4ac1-8b2e-cd57f3a7905f" alt="image" style="max-width: 100%;"></a></p>
<p dir="auto">OSM Carto:<br>
[<a href="https://www.openstreetmap.org/#map=12/27.6858/85.2797" rel="nofollow"><gh:secured-asset-reference resource_type="UserAsset" resource_id="241391566"></gh:secured-asset-reference></a><a target="_blank" rel="noopener noreferrer" href="https://github.com/openstreetmap/openstreetmap-website/assets/3254090/d45bb75f-4162-4718-8447-efe0019c871d"><img src="https://github.com/openstreetmap/openstreetmap-website/assets/3254090/d45bb75f-4162-4718-8447-efe0019c871d" alt="image" style="max-width: 100%;"></a>](<a href="https://www.openstreetmap.org/#map=11/17.9902/102.6817" rel="nofollow">https://www.openstreetmap.org/#map=11/17.9902/102.6817</a>)</p>
<p dir="auto">Mandalay, Burma, perhaps?</p>
<p dir="auto">Should be:</p>
<h3 dir="auto">မန္တလေး</h3>
<p dir="auto">Google Maps:<br>
<a href="https://www.google.com/maps/@21.9579896,96.0893805,13z?entry=ttu" rel="nofollow"><gh:secured-asset-reference resource_type="UserAsset" resource_id="241391982"></gh:secured-asset-reference></a><a target="_blank" rel="noopener noreferrer" href="https://github.com/openstreetmap/openstreetmap-website/assets/3254090/63aa3b66-2439-4281-baeb-01ca0bf2a190"><img src="https://github.com/openstreetmap/openstreetmap-website/assets/3254090/63aa3b66-2439-4281-baeb-01ca0bf2a190" alt="image" style="max-width: 100%;"></a></p>
<p dir="auto">OSM Americana:<br>
<a href="https://zelonewolf.github.io/openstreetmap-americana/#map=11/21.9869/96.12&language=en" rel="nofollow"><gh:secured-asset-reference resource_type="UserAsset" resource_id="241392127"></gh:secured-asset-reference></a><a target="_blank" rel="noopener noreferrer" href="https://github.com/openstreetmap/openstreetmap-website/assets/3254090/6122cc3f-7484-48d5-a8c7-9d91d2ca90ec"><img src="https://github.com/openstreetmap/openstreetmap-website/assets/3254090/6122cc3f-7484-48d5-a8c7-9d91d2ca90ec" alt="image" style="max-width: 100%;"></a></p>
<p dir="auto">OSM Carto:<br>
<a href="https://www.openstreetmap.org/#map=11/21.9816/95.9621" rel="nofollow"><gh:secured-asset-reference resource_type="UserAsset" resource_id="241392089"></gh:secured-asset-reference></a><a target="_blank" rel="noopener noreferrer" href="https://github.com/openstreetmap/openstreetmap-website/assets/3254090/fd055e5b-1019-4695-88cf-801e177d4bea"><img src="https://github.com/openstreetmap/openstreetmap-website/assets/3254090/fd055e5b-1019-4695-88cf-801e177d4bea" alt="image" style="max-width: 100%;"></a></p>
<p dir="auto">Burmese is where we really start to see the problem, with that infinity-sign looking diacritic that's supposed to be under the second character coming in rather mangled. However, OSM-Carto also gets it slightly wrong by jamming the ligature up into the character when there's supposed to be space between them.</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/4042#issuecomment-1565402246">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAK2OLKCUKGJVHTF4AP7C4DXIH3DVANCNFSM6AAAAAAYLUCIYI">unsubscribe</a>.<br />You are receiving this because you are subscribed to this thread.<img src="https://github.com/notifications/beacon/AAK2OLOEIIUMFNVLST6OOZTXIH3DVA5CNFSM6AAAAAAYLUCIYKWGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTS5JYSIM.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/4042/c1565402246</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/4042#issuecomment-1565402246",
"url": "https://github.com/openstreetmap/openstreetmap-website/pull/4042#issuecomment-1565402246",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>