AccessibleAuthorLabel ?

Screenshot showing iOS simulator with typically inaccessible label characters and the Accessibility Inspector beside it showing their VoiceOver readings being understandable

Takes those cursed usernames you see on social networks and lets them be accessible to screen readers so everyone can partake in Twitter equally!

(This is a quick, less than one hour fun little project that I’m sure is flawed. In a perfect world folks would stop using those kind of characters so text would be easily accessible to all, but since people are stubborn this seemed like a fun way to try to try to bake it into screen readers themselves sort of.)

The project basically relies on a simple lookup table, generated from the Lingojam TwitterFonts website but reverses it to map them back to their “normal” counterparts. Many of the characters seldom have use outside of decorative text, so something like semantic markup designating it as an author label rather than a math formula could perhaps allow screen readers to do the heavy lifting for users. I’m sure my lookup table is currently missing entries, and some are hard to map, but hey, don’t let perfect be the enemy of good!

Inspired by a fun convo on Twitter

Usage

  1. Go to File > Add Packages in Xcode, then enter the URL http://github.com/christianselig/AccessibleAuthorLabel.
  2. Add import AccessibleAuthorLabel wherever you want to use accessible labels.
  3. Change instances of UILabel to AccessibleLabel as appropriate.
  4. Buy Apollo Ultra.
  5. Wait, what?

GitHub

View Github