Log in

Accessify Forum - Accessibility Discussion

Latest Tweets

W3C Releases Unicorn, an All-in-One Validator http://ow.ly/18jtbB #accessibility #a11y #axs - Gary

3 days ago, RT: @mpaciello RT @w3c

@msmousette You’re welcome, Liz! – @dotjay

22/07/2010

@Elin012 Sorry for delay. The study has now ended. They were after native English-speaking, 18+, not visually or cognitively disabled.

22/07/2010

From @msmousette: “Many thanks to everyone who helped [with the web study] - they had a great response.” –@dotjay

22/07/2010

Native-English speakers: Able to help with a 15 min. accessibility web study? http://www.accessifyfo...@dotjay

21/07/2010

Read more...

Currently Online

No registered users are online.

Semantic poetry

  • Reply to topic
  • Post new topic

Home / Site Building & Testing / Semantic poetry

Reply with quote Probably more a question of semantics than accessibility, but I've been pondering how best to mark up some poetry.

I was thinking to use p to mark up each verse, with lines separated within the verse by br.

eg:
Code:
<p>I walked about as though I were a solitary cumulus<br />
that would go up mountains and down valley sides<br />
when blah de blah something or other that scans<br />
and tum-te-tum te something else that fills the line appropriately</p>


Or is there a better way of doing it than that?
_________________
Jack Pickard The Pickards Information Services| Blog | Twit
Reply with quote It's what I'd do. But then I have never seen the objection to the odd judiciously used <br> when breaks are required in a <p> purely for presentational reasons.
Reply with quote One reason is you can't be sure of the text size the user is using. So the placement of your line break may not end up as judicious as you wanted. Smile

JackP, that seems perfect to me if it has been written by the author(s) of the page. If it is quoted from some other source, wrapping the whole thing in <blockquote> would be good.
_________________
My CV type thing and my Life of Ben (Blog). Nigel Peck's Accessify Forum Requirements.
Reply with quote Use <br> for lines where there is no natural break and use <p> for lines where there is.
_________________
Mike Abbott
Accessible to everyone
Reply with quote Depending on the type of poem, and how important spacing is, you could also consider using <pre>. The HTML 4.01 specs actually cite a verse of Shelley as an example of the use of the <pre> element.

I don't think that there is any single "correct" way to code poetry in X/HTML. <p> plus <br />, <pre>, or <blockquote> each make sense in specific contexts, and with specific kinds of poems. And none of them is really an ideal method.

If you are interested in researching other techniques, I would recommend taking a look at the rather elaborate Text Encoding Initiative (TEI). Here is a link to a section that discusses the coding of verse: TEI P5 - 5. Verse. To make practical use of this method, however, you would have to encode the poem into XML using the TEI dtd, and then invoke an XML translator to turn it into X/HTML when serving the page to site visitors...

Phil.
Reply with quote
pkiff wrote:
[...] and then invoke an XML translator to turn it into X/HTML when serving the page to site visitors...
Thus losing any advantage to using it, afaict. You might as well store your content in the format you deliver it?
_________________
My CV type thing and my Life of Ben (Blog). Nigel Peck's Accessify Forum Requirements.
Reply with quote
Cerbera wrote:
pkiff wrote:
[...] and then invoke an XML translator to turn it into X/HTML when serving the page to site visitors...
Thus losing any advantage to using it, afaict. You might as well store your content in the format you deliver it?
Mmmm....well, usually yes, quite so. Though I didn't mention the TEI with that in mind exactly. I mentioned it partly as a means of demonstrating that X/HTML is not really a very good medium for rendering poetry: when you take a look at the TEI codes, you start to realize that there are all kinds of elements in different kinds of poems that cannot easily be coded using the standard X/HTML elements. Using <pre> or using <p> plus <br /> will clearly miss some of the subtleties of poetic text, no matter how carefully the codes are applied.

As for the possible reasons for coding a text using the TEI standard and then formatting it as something else. Well, theoretically, it would be possible to have a site that dynamically produced X/HTML versions of poems based on user settings or choices, and some of those choices could conceivably be oriented towards assistive technology. For example, (and here we are in the land of pipe-dreams), one could theoretically find methods of visually displaying rhyme schemes of a poem that had been coded in TEI. Or methods of textually encoding visual spacing in ways that could be understood by a screen reader user. And since the TEI is an established coding scheme, there is a possibility that someone at a university library somewhere may be working on a translation engine or XSLT code that would do most of the work and require only minimum tweaking from someone familiar with the assistive technology that might be used to access such texts. It would also be possible, potentially, that some poems have already been converted into TEI code....

But mostly I just mentioned the TEI as a coding reference that may be of interest to anyone who is thinking about the possibilities and limitations of coding poetry.

Later: I almost forgot, if the original poster wants to stick with fairly straightforward X/HTML+CSS, then here is an idea to consider:
2.3.4 Indent or center verse quotations - The Elements of Typographic Style Applied to the Web

Phil.
Reply with quote
Cerbera wrote:
pkiff wrote:
[...] and then invoke an XML translator to turn it into X/HTML when serving the page to site visitors...
Thus losing any advantage to using it, afaict. You might as well store your content in the format you deliver it?


Digital preservation - your archived digital file should (ideally) contain as much information as possible to reproduce the artifact that it's copying. An analogy might be digital scans of our Victorian and Georgian prints. Those are stored as hi-res tiffs, but compressed to jpeg for delivery over the web.

We have one site which delivers TEI documents as HTML:
http://www.nmm.ac.uk/...

Mind you, all modern browsers can handle XML. Try this XML page as a test. So if you have an archive of TEI documents, you could always experiment with delivering TEI straight to the browser, using CSS to control the look. I'm not sure how well that would work in reality, or how assistive technology would handle the page.

Edit: On second thoughts, bad example. He's using XSL, not CSS, to style the page, so it's transformed to XHTML by the browser.
_________________
Jim O'Donnell
work: Royal Observatory Greenwich
play: eatyourgreens

  • Reply to topic
  • Post new topic

Display posts from previous:   

All times are GMT

Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum