Coder Social home page Coder Social logo

twostraws / accessibleauthorlabel Goto Github PK

View Code? Open in Web Editor NEW

This project forked from christianselig/accessibleauthorlabel

1.0 2.0 0.0 558 KB

Takes those cursed usernames you see on social networks and lets them be accessible to screen readers.

License: MIT License

Swift 100.00%

accessibleauthorlabel's Introduction

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?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.