W3C home > Mailing lists > Public > www-style@w3.org > September 2001

Re: Typographical psuedo selectors

From: Tim Bannister <isoma@compsoc.man.ac.uk>
Date: Sun, 16 Sep 2001 00:28:19 +0100 (BST)
To: <www-style@w3.org>
Message-ID: <Pine.LNX.4.33.0109160024330.14969-100000@mrbusy.compsoc.man.ac.uk>
On Tue, 4 Sep 2001, Bert Bos wrote:

> John Anthony Lewis writes:
>
> > In printing, I believe it's common that, e.g., a
> > comma is italicized if the word before the comma is
> > italicized. Now, let's say I'm marking up a document
> > in XML, and I have a 'movie' element for marking
> > movies. I don't want to have '<movie>American
> > Beauty,</movie>' because the comma isn't part of the
> > movie's title. However, assuming I have a style
> > sheet that renders all movies in italic type, what
> > can I do to italicize the comma without introducing
> > extraneous markup?
>
> I don't know what the best solution would be, but here are some
> possibilities:
>
> 1) Use more mark-up, such as attributes:
>
>     ... the movie <movie title="American Beauty">American
>       Beauty,</movie> which...

...or even more markup, such as:
<sentence>the quick brown fox <clause type="aside">which had escaped the
hounds</clause> jumped over the lazy dog</sentence>

Italic text followed by (say) a roman exclamation mark looks wrong, to
me.
-- 
mailto:isoma@compsoc.man.ac.uk - +447980408788 - Tim Bannister
Received on Saturday, 15 September 2001 19:28:21 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 27 April 2009 13:54:10 GMT