Re: CORRECTION: Escaped characters except '\A' in generated content?

Andrew n. marshall writes:
 > > -----Original Message-----
 > > From: Andrew n marshall
 > > Sent: Sunday, May 03, 1998 11:31 AM
 > > To: W3C Style List
 > > Subject: Escaped characters except '\A' in generated content?
 >  . . .
 > > Are there any other similarly escaped characters, especially something like
 > '\\' to allow '\A' as literal escaped content.
 > 
 > 
 > That should end "...as literal content.".


Yes, although \A is somewhat special, as it is a control code
that has been given a meaning in CSS. All other escapes are just
visible letters.

See chapter 4:

"\x" (where x is not a hex digit) can be used to escape any
character. Thus C\&A is the identifier C&A, even though "&" cannot
normally occur in an identifier.

This includes "\\", which therefore stands for a single "\". For
example, the string "C:\\" is printed as "C:\"

"\hhh " (where hhh stands for up to 6 hex digits) is the character
with Unicode number hhh. Thus C\26 A is another way to write the
identifier C&A.

Following the above rule "\A" stands for the linefeed character, but
that is a control code and normally not visible. Instead, CSS2 says
that this control code forces a newline when it occurs in generated
content.

The final escape is "\" followed by a newline. When this occurs inside
a string, both the "\" and the newline are removed from the string.


Bert
-- 
  Bert Bos                                ( W 3 C ) http://www.w3.org/
  http://www.w3.org/people/bos/                              W3C/INRIA
  bert@w3.org                             2004 Rt des Lucioles / BP 93
  +33 (0)4 92 38 76 92            06902 Sophia Antipolis Cedex, France

Received on Monday, 4 May 1998 17:04:40 UTC