[Content]

Automated Glyphs

There are literally thousands of glyphs that aren’t used to full effect on the web. These can be punctuation, accents symbols and currency. Part of the reason they aren’t used as muchMDASHin my opinionMDASHis that their entities aren’t very well know or accessible.
This little abPHP script will automatically write out the first x amount of glyphs and their respective abHTML entities.

I imagine this will be a pretty useful tool to many, so it might be an idea to bookmark it on Delicious.

The script

<ul class="col">
  <?php
    for ($count=1; $count<=50; $count++){
      if ($count&1){
        echo "<li class=\"odd\">&#" .$count. "; = &amp;#" .$count. ";</li>\n";
      }
      else{
        echo "<li>&#" .$count. "; = &amp;#" .$count. ";</li>\n";
      }
    }
  ?>
</ul>

In action

Here is the script in action. You can also view associated abCSS.