News for hackers. Stuff that matters.
Re:Symbolset - symbol font using clever opentype ligature hack by duopixel on Thursday June 21, 2012 @09:11PM (#4144960)
Perhaps it should also include a non-ligature way of displaying icons. In current accessibility practices, when you place a description after its image you are supposed to include an empty alt attribute.

So say you have social icons...

  ◈ Facebook

  ◈ Twitter
You are supposed to write

  <img alt="" /> Facebook

  <img alt="" /> Twitter
As to cue screen readers to not read out loud filename or the alt attribute.

In this case Symbolset works as the alt property of images, so you would do something like...

  <span class="icon">Facebook</span> Facebook

  <span class="icon">Twitter</span> Twitter
Which wouldn't be right.
Re:Symbolset - symbol font using clever opentype ligature hack by tylermenezes on Thursday June 21, 2012 @09:29PM (#4145009)

    .icon {
        speak: none;
    }
Re:Symbolset - symbol font using clever opentype ligature hack by ejdyksen on Thursday June 21, 2012 @10:06PM (#4145080)
Last I checked, aural stylesheets aren't broadly supported.

You'd be much better off using ARIA (which has pretty broad support from browser vendors and assistive technology vendors):

  <span class="icon" aria-hidden="true">Facebook</span> Facebook
  <span class="icon" aria-hidden="true">Twitter</span> Twitter
This keeps assistive technologies from rendering the text (not just screen readers, but Braille displays, etc).

http://www.w3.org/TR/wai-aria/

Re:Symbolset - symbol font using clever opentype ligature hack by bill-nordwall on Friday June 22, 2012 @01:32AM (#4145555)
Support for aria-hidden is still pretty spotty: http://www.456bereastreet.com/archive/201205/hiding_visible_...
Re:Symbolset - symbol font using clever opentype ligature hack by duopixel on Thursday June 21, 2012 @09:31PM (#4145015)
Ah, nice, didn't know about speak: none;
Re:Symbolset - symbol font using clever opentype ligature hack by lloeki on Friday June 22, 2012 @08:24AM (#4146447)
Looks nice having CSS supporting non-visual presentation. Sounds like a job for @media queries too, so I looked up on the w3c website [0] and there are a bunch of non-visual targets along 'print' and 'screen', like 'aural' and 'braille'.

[0] http://www.w3.org/TR/css3-mediaqueries/

Re:Symbolset - symbol font using clever opentype ligature hack by biftek on Thursday June 21, 2012 @11:28PM (#4145237)
You can also just use Unicode values. See the icons on the blog page.

So something like "&#x0123;" or "\0123" will also work.

Re:Symbolset - symbol font using clever opentype ligature hack by PawelDecowski on Friday June 22, 2012 @05:30AM (#4146075)

    <img alt="" /> Facebook
You’re not supposed to use the <img> element for presentation (which icons are).

Instead, you should use CSS:

    <li class="facebook">Facebook</li>

    .facebook {
        background-image: (...)
        padding-left: (...)
    }
<img> element should be used for graphics that are part of the content: photos, illustrations, etc.