Best way to mark up quoted dialogue?
Home / Web Technology / Best way to mark up quoted dialogue?
| Ben Millard and Evesham's Technical Support wrote: |
| Technical Support:
"Are you absolutely sure it is plugged in, Mr Millard?" Me: "Yes, I am absolutely sure." Support: "Can you check the plug for me again, please?" Me: "OK...right, I've checked both ends and it's definitely plugged in." Support: "Sorry, I don't understand...?" Me: "It is connected at both ends." Support: "I'm sorry, what are you saying?" Me: "One end of the cable is plugged into the wall. The other end is plugged into the computer. It is definitely plugged in." |
At the moment, after talking with Zcorpan, I'm going with this:
| Code: |
| <div class="dialogue">
<p><cite>Support:</cite> “Are you absolutely sure it is plugged in, Mr Millard?” <p><cite>Me:</cite> “Yes, I am absolutely sure.” <p><cite>Support:</cite> “Can you check the plug for me again, please?” <p><cite>Me:</cite> “OK...right, I’ve checked both ends and it’s definitely plugged in.” <p><cite>Support:</cite> “Sorry, I don’t understand...?” <p><cite>Me:</cite> It is connected at both ends. <p><cite>Support:</cite> “I’m sorry, what are you saying?” <p><cite>Me:</cite> “One end of the cable is plugged into the wall. The other end is plugged into the computer. It is definitely plugged in.” </div> |
_________________
My CV type thing and my Life of Ben (Blog). Nigel Peck's Accessify Forum Requirements.
http://www.w3.org/...
"Another application of DL, for example, is for marking up dialogues, with each DT naming a speaker, and each DD containing his or her words."
| W3C wrote: |
| As <CITE>Harry S. Truman</CITE> said,
<Q lang="en-us">The buck stops here.</Q> |
It doesn't say "the quote must appear in the source code after the citation" or anything, so I don't think you necessarily need the <q>. The two elements aren't obviously linked together; it seems more about how the name is being used.
_________________
My CV type thing and my Life of Ben (Blog). Nigel Peck's Accessify Forum Requirements.
which has elements for speaker, speech and structures within the speech - lines, paragraphs, quotations etc. Probably overkill for this but it's about as semantic as you can get for describing the structure of a dialogue:
| Code: |
| <!-- in the front matter ... -->
<castList> <!-- ... --> <castItem> <role id="m2">Menaechmus</role> </castItem> <castItem> <role id="pen">Peniculus</role> </castItem> <!-- ... --> </castList> <!-- ... --> <!-- in the text ... --> <sp who="m2"> <speaker>Menaechmus</speaker> <l>Responde, adulescens, quaeso, quid nomen tibist?</l> </sp> <sp who="pen"> <speaker>Peniculus</speaker> <l>Etiam derides, quasi nomen non noveris?</l> </sp> <sp who="m2"> <speaker>Menaechmus</speaker> <l>Non edepol ego te, quot sciam, umquam ante hunc diem</l> <l>Vidi neque novi; ...</l> </sp> |
_________________
Jim O'Donnell
work: Royal Observatory Greenwich
play: eatyourgreens
| Cerbera wrote: | ||
In the definition for <cite>, if you scroll down a bit it gives this example:
|
I'd say using cite for dialogue is inappropriate. This example seems to be a quote in isolation which is OK. Personally, I'd use <dl>. It may have semantic arguments against it but, as I think I've said before, the example uses given by the W3C suggest to me that the name 'definition list' is perhaps artificially limiting the scope of usefulness i.e. it's not just for definitions.
Cheers
Kevin
| Cerbera wrote: |
| I can't think of a sensible way of doing it, unless it's OK to use <dl>? |
I have this problem myself; <dl> doesn't feel right, but it's probably the best, if slightly mis-matched, tool for the job. But it's not ideal.
To be honest, different times I try different things to see how they come out but I think <dl> is my preferred option...
_________________
Jack Pickard The Pickards Information Services| Blog | Twit
_________________
};-) http://www.xhtmlcoder.com/
WVYFC chose the Yorkshire Air Ambulance as the main charity to fund raise for in 2006
| Mikea wrote: |
| How would a screenreader read a <dl> compared to <p> |
Very slowly and painfully, announcing every term and definition, I think.
Here's the advice I got about screenreaders and <dl>, which tipped me in favour of not using them:
| Quote: |
| Definition lists are a nuisance when used with a screenreader because
it adds redundant "noise" by announcing the type of list and sometimes whether it's the term or the description - most users I know complain bitterly about them when they encounter them. Kind of a "too much information" thing. |
_________________
Jim O'Donnell
work: Royal Observatory Greenwich
play: eatyourgreens
| eatyourgreens wrote: | ||
Very slowly and painfully, announcing every term and definition, I think. Here's the advice I got about screenreaders and <dl>, which tipped me in favour of not using them: |
So it's one of those situations where you have to decide whether to deal with the faults of the user agent or do what the spec says. I love how this game is always so clear cut
FWIW, I think <dl> is inappropriate for dialogue too (dispite HTML4 suggesting it). A dialogue isn't really a list, and <dl> is unordered to boot.
_________________
Simon Pieters
| zcorpan wrote: |
| http://listserver.dreamhost.com/pipermail/whatwg-whatwg.org/2006-October/007348.html
FWIW, I think <dl> is inappropriate for dialogue too (dispite HTML4 suggesting it). A dialogue isn't really a list, and <dl> is unordered to boot. |
So much for Web Standards then
All times are GMT
You cannot post new topics in this forumYou 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


