Named HTML Entities in RSS

A problem with feeds not working in Sage alerted me to how character references should be used in RSS feeds.

Despite validating with feedvalidator.org and the W3C feed validator, the Firefox XML parser failed on this one feed, as did Sage. Firefox found an undefined entity in the RSS – … – a horizontal ellipsis. I wasn’t sure why that’d break the RSS, so I went digging a little…

Naughty names

RSS doesn’t include an XML schema, which means that a named entity such as … is unlikely to mean anything to a feed reader. … is fine in an XHTML document because it generally has a doctype and a schema.

So if you use data from a content management system to generate RSS, you need to ensure that all named entities are converted into numeric character references. Edit: And as Robert Wellock points out in the comments below, it’s advisable to stick to using numeric character references when using XHTML anyway.

Numeric character references

As far as I know, numeric character references are generally better supported than named entities. I tend to use numeric character references anyway when I code, as I’m sad and have a bunch of the numbers committed to memory after years of usage – that’s a scary thought!

Having said that, I do have Dave Child’s HTML Character Entities Cheat Sheet stuck up in my office footnote 1, with a few I’ve added myself, including:

  • horizontal ellipsis (…)
  • en dash and em dash (– and —)
  • left and right double quote (“ and ”)
  • left and right single quote (‘ and ’)

Of course, the real geeks among us will look things up in the full list of character references in the HTML 4 schema!

Other Resources

More useful info at:

Footnotes

  1. Dave, I can’t really afford anything for you off Amazon at the moment, but I certainly owe you a drink or two by now! Back to footnote 1 source

Some Views on Contemporary Web Accessibility

Jeff Croft seems to have caused quite a stir on his blog: Has accessibility been taken too far? It’s even brought me out of my unintentional hiatus.

We’re all human and live in the real world. Sometimes I think we forget, distracted by a passion. Others forget that we forget, distracted by a passion. Here I discuss/ramble on about my point of view.

Warning: Potential over-use of the word “reasonable” or variants thereof.

To Jeff Croft

In part, this post replies to Has accessibility been taken too far? but comments aren’t necessarily aimed at you, so please don’t take anything to heart. I think I understand where you’re coming from, but perhaps the expection you feel is self-imposed. We’d all like to live in an ideal world, but we don’t.

I’m a freelancer, so I can’t say I really run into the world of content-driven, “maintained” websites (newspapers, etc.) regularly, although my role does shift with each project, something that keeps me interested and happy in my work.

I agree with your comment that accessibility is a “continuum”. I’ve been taught that disability is a spectrum and that people have individual and varied access needs and I maintain that point of view. It follows then that accessibility is also a spectrum.

Practical Accessibility

Accessibility is about not putting up unnecessary barriers for our audiences. That covers personal and technological barriers, right? Often, I think people consider accessibility the wrong way around. “How can I stop this barrier from causing a problem” rather than not causing a barrier in the first place. I’m not saying everyone’s like that or that it’s always practical to avoid causing a barrier in the first place, but I do think that the way we approach accessibility strongly affects how we feel about it and can cause animosity for the subject. And it can sometimes seem like small things Web designers could all be doing that can make a big impact are being avoided for little reason.

As a Web professional footnote 1, I do what I am able to do within imposed constraints, and I can do little more – sounds reasonable to me. The important thing to me is that I know what I do makes some difference. In my mind, Web accessibility has never been forced – ignore the legal (non-)issue for now. Web accessibility has certainly never been black and white. I try to build accessible sites because I know I can and think I should. I may not always achieve it, but at least I try.

Before we start any project, we find out what’s important to that project considering the constraints imposed on it. For some projects, accessibility means we simply code how we’ve learnt to code. For me, that’s well-structured, semantic markup with separate presentation and behavioural layers. And yes, checking boxes to a certain extent. Other projects we are free to think a little more about what we are doing, allowing us to add extras. But I don’t see anyone forcing us to provide alternatives to video content to pass a Priority 3 WCAG checkpoint if the time or money just isn’t there – but only to consider it if the resources are there.

One site I maintain has a small number of video clips that I have attempted to transcribe and describe. They aren’t very long clips, so adding this little extra was reasonably quick. I may not have done the best job in the world doing it, but I followed some tips and at least it’s something. A site with a greater amount of multimedia content should consider the accessibility of their content. If the required resources to make the content more accessible are not there, they can’t really do it. I’d like to see YouTube try accessifying their content! Reasonable? No. They have no real control over their user-base and I cannot see them imposing compulsary audio descriptions on their users! The point is, I guess, that the time and money should be there and factored in. In the business world though, it’s probably just not important enough, which is certainly a shame, but that’s the way it is, at least until a viable solution is developed.

If a project requires that the site support older browsers with limited features, we do it. If text on a site doesn’t resize in IE6 with default settings, we shouldn’t be punishing a userbase because of limitations or complex settings in a browser. It doesn’t mean that you cannot use pixel units at all (elastic versus fixed-width layout), but if you have the time to ensure resizing the text doesn’t break things too badly, then great. Setting relative font-sizes that work isn’t difficult and a design doesn’t have to be pixel-perfect when the text is resized. Ignore simple enhancements if you wish, but just be careful sometimes – there’s not always an alternative solution that works well.

Frustration

We all know it – accessibility is frustrating. We’d all like to live in that ideal world where accessibility is a given, but we don’t. It’s frustrating that the Web has so much potential but seemingly mainstream Web design is only just waking up to that.

It’s frustrating that, with all the things that good Web designers and developers do, our efforts are still not as useful as they could be because of adolescent accessibility in other areas, most recognisably of which in our industry is software and operating systems.

I think there’s pressure in the Web industry (at least in the blog-reading world) to include the latest techniques or tools in our sites, accessible or otherwise. Techniques are to be used where appropriate and tools are just that – tools, not requirements. I’d love to implement a zoom layout, and I’ve been meaning to since @media 2005. I just don’t have the time – heck, my blog posts haven’t been published in over two months because I just haven’t had the time to get beyond the half-written drafts I have sat on my hard drive – a personal constraint. I try not to let myself be affected by “professional” pressure in my work. I get on with it, I make a living and I try my utmost to make my work accessible to whatever extent is practical.

Perhaps we need to learn to give ourselves and our peers a break from time to time. Accessibility shouldn’t feel like a burden and we shouldn’t feel like giving up on accessibility. It’s a worthwhile and achievable goal.

Passion

I don’t like the word “zealot” and the implied excessiveness or irrationality. The word “passionate” seems more reasonable. OK, some people may have a few screws loose (I couldn’t even name names if I wanted to) but heck, we’re all human. Over the last few years, accessibility has become a passion for me. I just try to be objective about it. Or perhaps I’m just too nice to get overly vocal about it.

Innovation

A discussion seems to raise its head from time to time when people hit a stumbling block and say accessibility stifles design, or stifles innovation. It cropped up a couple of years ago:

As you’ll gather from my comments on the Accessify Forum discussion, I don’t agree. Accessibility poses a challenge to the creative; designers, developers, engineers… I’ve seen a lot of great work and research come about from thinking about accessibility and using it as a baseline for innovation.

People might also be interested to read an article supporting accessible innovation published last year on Digital Web: Innovative Design Inspired by Accessibility.

The Electronic Curb-Cut Effect makes another interesting read, showing how products inspired by accessibility throughout history have become successful in the mainstream.

Footnotes

  1. I’m not a designer, more a developer, but I would perhaps say I’m both, but not all the time – you get the picture. Perhaps not being of any one of these works to my advantage though as far as accessibility is concerned. Back to footnote 1 source

Cats in York

Some of you already know about the little Cats in York website we set up, others won’t, so here’s a quick intro.

Mad Cat People

Well, I wouldn’t say I’m mad about cats, but we got fascinated by the cat statuettes around York during the summer when we spotted one of them on a walk. We had recently decided that we were going to be moving away from York, so we thought we’d try to find as many as we could. A few of the photos from our cat hunt ended up on Flickr, but we knew there were more of them.

We couldn’t find much about these critters online, and chatting to the York Reference Library, we found there was interest in them, but there was no collection of information on them. We decided to do a little research and build a website. End result: Cats in York.

Lime Light

We’ve had quite a bit of interest since the site launched mid-December. We’ve had several e-mails about the cats, a couple of mentions in the York Evening Press this month, and even a query about being featured on TV. We don’t actually know if we were on it or not, but if anyone saw the cats featured on Derek Acorah’s Ghost Towns live on LivingTV this weekend, please let me know!

Update, 2 Feb 2006

We found out this afternoon that Tom Adams, the architect responsible for many of the cat statuettes featured on the Cats in York website, passed away at the weekend.

Tom was a lovely man, and we were fortunate enough to have gotten to know him a little in recent months. He will be missed. Please do take a look at our tribute to Tom Adams over on the Cats in York website.

Textpattern E-mail Encoding Plugin

After being told by my host that I’m not allowed to use a third party (or my own) script for a form-based contact page, I’ve had to remove contact forms from a few of my sites. I need an interim solution, so I’ve added contact e-mail addresses to the sites. Of course, this is probably a good idea anyway, instead of relying on contact forms.

Anyway, I’ve been encoding e-mail addresses using a mixed-mode obfuscation technique similar to Enigma’s Email Obfuscator. As a couple of my sites run on Textpattern, I decided to write a plugin that will encode e-mail addresses to help hide them from harvesters.

dtj_obfuscated_email

This plugin will allow you to encode an e-mail address via a Textpattern tag using a few different modes.

Go check out the dtj_obfuscated_email plugin page for more info and accept my apologies for the ugly-looking page. It’s a bit like the rest of my site at the moment – in limbo while I finish my new design.

I hope someone finds this plugin useful. Please let me know if you have any feedback.

Updates

09.11.2006

In case anyone is interested, I have published the PHP code I used for the dtj_obfuscated_email plugin. Please let me know if you have any suggestions for improvements.

Renewable energy: wind farms

I’ve been wanting to post something about this for quite a while. It’s a subject that seems rife with debate right now, and one that I think needs to be taken seriously, but I’m wary of striking up a debate that I just have no time for any more, having spent hours in the past searching Google for information and news.

Jo and I have a keen interest in wind turbines and other forms of renewable energy. While we lived in York, we kept up-to-date with a proposal for a wind farm near Selby in Yorkshire. Having met with complaints, particularly concerned with the welfare of local birdlife (claims downplayed by the RSPB), the wind farm now appears to be going ahead into planning stages.

Having just moved down to Devon, we’ve found that the area has much the same battle going on with wind farms. Jo’s written a bit on her blog on what she thinks about wind power and wind farms.

One proposed wind farm at Hinkley, near Bridgewater in Somerset, recently had planning permission refused. There were two cases against the proposed wind farm. Primarily, a report found that there may be a small risk of a blade breaking and hitting the nuclear power station that currently sits near the proposed site. The risk is tiny and the developer even said that they would agree to not build the three turbines nearest the power station that were considered a risk. Secondly, there was concern for a population of bats living in the area. Claims that the feeding routes of the bats would be disturbed were found to be unsubstantiated. The local council brought forward the date of the public consultation for this wind farm by one day. Permission was refused. Er, why?!

Another wind farm in the area is proposed for Batsworthy Cross, the highest point between Dartmoor and Exmoor. Great! It would be a good point for a farm.

At the EcoTech Centre in Swaffham, they have a turbine that you can go up in and see the view from their viewing platform. I wanted to go during the Wind Weekend over the August Bank Holiday, but we couldn’t make it. I think such a viewing platform would be a fantastic addition to the area, for example, at a good viewpoint such as Batsworthy Cross. Some seem to think wind turbines are ugly and will ruin the countryside and affect local tourism. I actually find wind turbines elegant and have been stunned by wind farms I have seen. One in particular I remember passing on the way back to York from a holiday in the Lake District via the moors. I wish I could remember whereabouts it was. If anything, I think a viewing platform would attract tourists to a wind farm rather than repelling them! We’ve been told there isn’t going to be one of these at Batsworthy though – a shame, but it’s not as if you don’t get good views from there anyway.

Some anti-wind groups seem to think that wind farms are not good enough at producing electricity. Firstly, I’d point out that there are other sources of renewable energy, so it’s not as if there aren’t other sources to help generate the power we need. It may not be as promising as other renewable energy technologies, but wind power is the most mature at the moment. So, what’s wrong with erecting wind farms, supporting them and the research into other forms of renewable energy? And what’s the alternative at the moment? Oh yeah – nuclear power plants. I would much rather see graceful wind turbines than the ugly power plants that scar the landscape. If you are anti-wind, are you saying that you would rather have one of these giant power plants in your back yard?

I resent the comment made by a speaker from the Realistic Energy Forum at a conference at the end of 2004, who said: “The younger people are, the less they know” when asked by a member of the audience whether it was mainly the older generation that opposed wind farms. I might be wrong, but it seems to me that the younger generation might be the only ones with their heads screwed on, while all the council officials side with the (mostly minority) complaints of the uninformed. Also, it is the younger generations who will have to deal with the consequences of not doing enough now to lessen or stop global warming.

So, my closing thoughts on this one? Well, anyone who lives near a wind farm and can’t stand them, I’ll buy your house from you and install some solar panels on the roof.

Elsewhere