[SVGMobile12] White space handling in 10 August 2006 Candidate Recommendation of SVG Tiny 1.2

Hi,

I think the description at Section 10.10
(http://www.w3.org/TR/SVGMobile12/text.html#WhiteSpace) on white space
handling in SVG Tiny 1.2 - 20060810 needs a review. A few observations:

 

1.    Is xml:space an "inheritable attribute"?

2.    When xml:space="default", the sentence "Then, it will strip off all
leading and trailing space characters." imposes that leading and trailing
space characters will not be present in white space handled text.
Consequently, unless xml:space="preserve" is used, it becomes practically
impossible to markup text with tspan such as in the example 10_03.svg below
because every space separating marked-up words would get stripped.
Obviously, the example does not handle white space according to the
guidelines of SVG Tiny 1.2 - 20060810.

3.    Perhaps the description should be made with the sentence "Then, it
will strip off all leading and trailing space characters." removed as
follows:
xml:space = "default" | "preserve"
An inheritable attribute which can have one of two values:
default 
The initial value for xml:space. When xml:space="default", the
<http://www.w3.org/TR/SVGMobile12/intro.html#TermSVGUserAgent> SVG user
agent will do the following using a copy of the original character data
content. First, it will remove all newline characters. Then it will convert
all tab characters into space characters. Then, it will strip off all
leading and trailing space characters. Then, all contiguous space characters
will be consolidated. 

 

 

Reference:

 

xml:space = "default" | "preserve" 

An inheritable attribute which can have one of two values: 

default 

The initial value for xml:space. When xml:space="default", the
<http://www.w3.org/TR/SVGMobile12/intro.html#TermSVGUserAgent> SVG user
agent will do the following using a copy of the original character data
content. First, it will remove all newline characters. Then it will convert
all tab characters into space characters. Then, it will strip off all
leading and trailing space characters. Then, all contiguous space characters
will be consolidated.

 

Example:

 

http://www.w3.org/TR/SVGMobile12/examples/10_03.svg

 

<?xml version="1.0"?>

<svg width="10cm" height="3cm" viewBox="0 0 1000 300"

     xmlns="http://www.w3.org/2000/svg" version="1.2" baseProfile="tiny">

  <desc>Example tspan01 - using tspan to change visual attributes</desc>

  <g font-family="Verdana" font-size="45" >

    <text x="200" y="150" fill="blue" >

      You are

        <tspan font-weight="bold" fill="red" >not</tspan>

      a banana.

    </text>

  </g>

  <!-- Show outline of canvas using 'rect' element -->

  <rect x="1" y="1" width="998" height="298"

        fill="none" stroke="blue" stroke-width="2" />

</svg>

 

Rendering of 10_03.svg

 

 

Mathew K J
Samsung India Software Operations Pvt. Ltd.



 

 

Received on Tuesday, 20 March 2007 07:25:34 UTC