Glitchy town labels in Oklahoma

If you see tofu spreading across the map of Oklahoma, please do not be alarmed. In some cases, an apparent text rendering bug in Mapnik is causing some styles like OSM Carto and Tracestrack Topo to produce missing character placeholders until the label reaches the maximum possible length. Unluckily, this bug affects the town of Hominy (𐒹𐓘́͘𐓨𐓘͘𐓵𐓣͘ in Osage), causing its label to stretch across most of northeastern Oklahoma.

As seen in these screenshots, not every Osage label is affected by this bug. It seems to affect only a particular sequence of characters.

Known affected maps include:

Most maps are unaffected, subject to font availability:

Maps that only show labels in English are also unaffected. Other kinds of data consumers like geocoders and routers rely on the operating system to render text, so they are also unaffected. Beyond Oklahoma, there are some text rendering issues in South and Southeast Asia that may be related, but this is unclear until we know the root cause.

In the last couple weeks since this bug arose, I’ve reverted multiple attempts to remove the Osage name from the name=* tag. (The most recent revert was just an hour ago, so some maps will need time to catch up.) This is a good reminder that you should not tag for the renderer. Never remove valid information from the map purely due to presentational concerns like fonts. This withholds or loses relevant information, disadvantaging data consumers that are already behaving correctly and impairing our efforts to clean up coverage of indigenous names in the U.S.

I understand that the tofu is annoying to anyone trying to read other parts of the map many miles away. If you’re as bothered about the bug as I am, please help us find more examples of runaway tofu on the map, so we can get a better sense of the magnitude of the problem. And if you’re able, please help the developers of OSM Carto and Mapnik diagnose the underlying bug.

Thank you for your patience!


  1. This link will get your IP address blocked for this particular URL. Copy the link and manually navigate to it instead. ↩︎

12 Likes

Can I get a short ELI5 why this is not happening here: OpenStreetMap Retina Tiles Demo (osm-carto fork). Is that because the letters in that Osage name are not shown/rendered combined the way they should be combined (this here is maybe easier to decipher: OpenStreetMap Larger Text Example )? So this is incorrect (but without the bug) as it does not use the correct Osage script?

Edit: i should just have looked at the unaffected map rendering examples like Shortbread or Americana as those show the same than the osm-fork linked above. So are those examples wrong in not correctly displaying the Osage script? (Even while I once live on the KS/OK border, I’m still not familiar with Osage script) - so the problem is likely with Mapnik and Noto Sans Osage Regular not working together? Do we have a real working rendering with Noto Sans Osage Regular somewhere?

The problem that I’m calling attention to is that some Mapnik-based maps are not only showing tofu but also repeating it uncontrollably.

For reference, here’s how macOS’s native Core Text rendering engine presents 𐒹𐓘́͘𐓨𐓘͘𐓵𐓣͘ in Noto Sans Osage. As you can see, it’s just six letters with some combining diacritics:

If you don’t have that or an equivalent font installed, you’d instead see a row of boxes (“tofu”) or the hexadecimal codes from Apple’s Last Resort font, but still just six base characters. Earlier, I listed some layers like Humanitarian as being “unaffected” despite showing six tofu. That isn’t totally unexpected for a writing system that’s only 20 years old, in a Unicode block that’s only 10 years old.

MapLibre powers both OSM Americana and the Shortbread layer. On a recent version of macOS, which comes with Noto Sans Osage, MapLibre’s rendition is not quite accurate. It can only horizontally offset the combining nasal dot diacritic but cannot yet use the dedicated combined glyphs that the font provides for 𐓘͘ and 𐓣͘ (as seen in the screenshot to the left). As far as I know, this is only a minor typographical issue for Osage, though it affects South and Southeast Asian writing systems much more severely. I’ve prototyped a fix for the broader issue (the screenshot to the right):

In general, Mapnik does a fine job with complex writing systems, so I want to stress that this is not a criticism of Mapnik or OSM Carto overall. I think the relatively good support for text rendering is what makes the runaway tofu such a problem in Oklahoma: users aren’t accustomed to seeing OSM Carto behave so strangely, so they incorrectly assume that there’s a defect in the data. So far, five different mappers have made this mistake with Hominy, so I hope we can finally get to the bottom of it.

As far as we know, the latest release of Mapnik gets confused by the combining diacritics on this Osage name. Unlike the Osage letters it modifies, the nasal dot comes from a part of Unicode that Western fonts have supported for a long time. (It’s the same dot that appears in Lithuanian or traditionally in Irish.) When a mapper originally added this Osage name in 2023, they chose to use the nasal dot. Later on, when I added Osage names for other places in the Osage Nation, such as Pawhuska (𐓄𐓘𐓢𐓶𐓮𐓤𐓘), I didn’t see the nasal dot on signs for those places. I may have gotten lucky, or maybe the orthography has changed sometime over the past decade.

Fortunately, @ramseraph1 verified that the latest development version of Mapnik has fixed the bug. Once the fix gets released and the operations team upgrades to that release, 𐒹𐓘́͘𐓨𐓘͘𐓵𐓣͘ should return to being a small town with a short name.

7 Likes

Wow, I just saw the tofu while looking for something in Pawnee County, OK, and my initial thought was it was vandalism. Then I searched OSM for “Hominy”, found this object and your note, which brought me here.

2 Likes

Reminds me of this similar issue with Irish’s “dotted b” (ḃ) and “dotted d” (ḋ):

and when I wrote about it back in:

where I covered quite a few other “weird” cases, like:

So many fonts completely bug out when doing “unexpected” accent combinations, like the:

So to see this “combining dot” combined with some really new/rare Unicode characters exploding the renderer, heh, I’m not surprised!


Side Note #1: For those of you interested in more of this kind of stuff, also see my posts back in:

(And in many cases: “Above” is fine. “Below” is fine. “Above AND Below” = explodes!!!)


Side Note #2: If you found that fascinating, you may also be interested in this absolutely fantastic talk:

That covers “mojibake”, which is when complete gibberish (or “blank”/“missing” squares) show up on the other end because of bad encoding.

So when you get this “missing character” � appearing, or:

  • — = — = EM DASH
  • ’ = ’ = RIGHT SINGLE QUOTE
  • “ = “ = LEFT DOUBLE QUOTE
  • ” = †= RIGHT DOUBLE QUOTE

You know you have a potential mess on your hands!

1 Like

I should head over and try a big dish of mojibake. It sounds tasty! :joy:

3 Likes

Possibly dumb question, but what guidance do we have pointing us towards having multiple translations of a name being included in the name=* field? Why can’t I just add the Russian translation of Tulsa to it’s top-level name field, for instance? I couldn’t find any when I was looking, but could have been looking in the wrong spot.

From the first paragraph of the wiki article on names: “the primary name of the feature in the real world”. If you can somehow find evidence that the most-commonly-used name for that city is “Талса”, then go ahead and make the change.

1 Like

The main documentation we have are the “Names” and “Multilingual names” pages on the wiki, supplemented by a U.S.-specific page. The general principle is that name=* only contains the common name(s) in the local or official language(s). Russian isn’t a major language in Tulsa with any official standing, but you can put the Russian name in name:ru=* and it’ll show up in some renderers.

Indigenous languages are a tricky subject in the U.S. In some places, indigenous languages can be relevant even without many native speakers. Hominy is located in the Osage Nation with a major tribal government presence there, so it has a dual name=* in the reservation’s official language. Parts of Tulsa also lie within reservations, but listing the Muscogee, Osage, and Cherokee names alongside English would be more surprising – even when renderers can handle it.

1 Like

Right, primary name. That entire article only documents single-named instances as far as I can tell. The obtuse Tulsa reference was just to illustrate that many cities have many translations documented.

The link @Minh_Nguyen posted also contradicts multiple listings:

name=* should be set to the most prominent signposted name or most common name, regardless of language

Yes, that is the usual case. Hominy is an exception. You can find other exceptions all over the world. If you want to argue against that, maybe you could open a separate topic about it that isn’t specific to this one rendering bug. By the way, if you want a map only in English, there’s a map for that too.

2 Likes

Have you been to the town in question? I don’t recall any such signage or anything ‘on the ground’.

I’m not saying we should have a map only in English - I’m trying to figure out how it got to its current state.

I don’t get why Tagging for the renderer - OpenStreetMap Wiki is repeatedly cited when people try to remove the Osage name but when asked why it’s added, the justification is that it’s an exception… and nothing documents the exception. I’m all for having it, if we can document that somewhere better/more formal than a forum thread: Slash-separated Native American names .

Well, Hominy doesn’t put “orthography” on their city limit sign. I can only imagine how that would go over with ODOT, given their ongoing feud with the tribes over the English inscriptions on reservation signs and the Osage Nation’s pending lawsuit. But meanwhile, in town, street name signs and even some stop signs are written in Osage. That’s pretty exceptional in this country.

Signs aren’t the only criteria for the name of a populated place. They’re often useful for resolving disputes, but the official language can have some bearing on it too. Why else would the U.S. naming conventions documentation devote space to enumerating the official languages of various states? Oklahoma’s official language is English and the Osage Nation’s is Osage.

Looking through the revision history, Hominy’s Osage name was first added a couple years ago along with the Osage name of a couple other places in the Osage Nation. This is pretty common on reservations. Every mapper who recently removed the name specifically cited the tofu in OSM Carto as the reason they did it. If that isn’t tagging for the renderer, then I don’t know what is. As a result, those removals are documented as an example of what not to do.

We haven’t formally documented the multilingual names yet because of a dispute over delimiters. To oversimplify the discussion, U.S. mappers want to use a machine-readable semicolon to separate the names, while European mappers are afraid it would impugn the slashes and dashes they’re using over there (for the renderer).

Thanks for clearing that up. =

Just one concern left - in digging into why the name as it is now only shows up here and on Wikipedia, I determined that the translation is approximating the English sounds into Osage. I believe it should be:

𐓏𐒰𐓈𐒰𐓓𐓂𐒷 [wah-DAH-zhoh-eh] (unspec. var.𐓏𐒰𐓈𐒰𐓓𐓎𐓏𐒷)

noun

1) hominy

2) hominy (any kind, cracked or not)

per https://www.osageculture.com/language/dictionary/osage-english

Hominy, OK is not named after the food, it is named after an Osage chief in the 1800s, per Hominy | Encyclopedia . So here the English is approximating the Osage, not the other way around. Probably a good reminder for non-speakers to tread very carefully when translating names in OSM.

7 Likes

The Standard tile server (based on OSM Carto) got upgraded to Mapnik 4.3.1 this week, so as the tiles get refreshed, the runaway tofu will steadily go away. Tracestrack has also upgraded their tile server for Tracestrack Topo. This leaves Wikimedia Maps still showing lots of tofu.

It couldn’t come soon enough. Yet another retagging for the renderer slipped in just before the upgrade, but it got reverted fairly quickly. I’ll keep the note=* tags around in case anyone happens to be viewing a map that was rendered by an older Mapnik version.

5 Likes