[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: [PATCH book] Use of <quote> over "

From: Garret Wilson <garret_at_globalmentor.com>
Date: 2003-03-17 22:51:17 CET

Larry Shatzer wrote:
> Also, a spot where ' was used instead of ", there is no <singlequote> is there?

I believe the main difference between ' and " (as used for quotations)
is stylistic only. In the US, we use " with nested ' as in, "Larry said,
'Have you heard from Karl?'" In the UK they use the opposite, as in,
'Larry said, "Have you heard from Karl?"' There is no semantic
difference between the two, so if <quote> is used for both, a smart user
agent could automatically generate the correct characters, based upon
the locale.

Upon further research, I found out that XHTML is heading towards using
<quote> instead of <q>. (See
http://www.w3.org/TR/xhtml2/mod-text.html#sec_8.15. ). When using the
XHTML <quote> element, you do *not* leave out the actual quote
characters. This means you can't create locale-independent content using
<quote>, and I'm not sure why this was changed, but it seems quotes
characters should be left in for XHTML <quote>. (After re-reading your
e-mail, I realize you may not be using XHTML---you may be using DocBook,
which unlike XHTML specifies that actual quote characters should not be
included.)

Lastly, for displaying parts of programming code with quotes (such as
getAnswer("2+2"), the <quote> element should not be used. Quotes in a
program code do not indicate quotations---computer programming languages
simply decided to use the ASCII character " as a delimiter for strings.
One would not want to read getAnswer(«2+2») in France.

Hope that helps.

Garret

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Mon Mar 17 22:52:20 2003

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.