W3C home > Mailing lists > Public > www-svg@w3.org > February 2001

Re: SVGLength::convertToSpecifiedUnits

From: Jon Ferraiolo <jferraio@Adobe.COM>
Date: Wed, 07 Feb 2001 14:50:43 -0800
Message-Id: <4.2.2.20010207144918.01cc0220@mailsj.corp.adobe.com>
To: bbrodie@savagesoftware.com (Blaine Brodie)
Cc: www-svg@w3.org
Your initial opinion is the intended one. Thus, "5mm" would be converted 
into ".5cm".

I'll see what I can do about updating the wording in the specification to 
be less ambiguous.

Jon Ferraiolo
SVG Editor
jferraio@adobe.com



At 01:38 PM 2/7/01 -0800, Blaine Brodie wrote:
>Some clarification please.  The SVGLength::convertToSpecifiedUnits()
>method is described as follows:
>
>"Preserve the same value, but convert to the specified unitType. Object
>attributes unitType, valueAsSpecified and valueAsString
>might be modified as a result of this method."
>
>My inital interpretation of this was that the method is intended to
>convert from one unit type to another so that, for example, 5 mm would be
>converted to 0.5 cm.  However, on a second reading, the phrase "preserve
>the same value" make me wonder if the intention is simply to change the
>unit type and to leave the value unchanged so that, in the previous
>example, 5mm would be converted to 5cm.
>
>Which of these two interpretations is the intended one?
>
>----
>Steven Dickson,                        Phone:  +1 (604) 684 7793 x102
>Software Devoper,                   Fax: +1 (604) 684 0298
>Savage Software,                    sdickson@savagesoftware.com
>Vancouver, BC, CANADA
Received on Wednesday, 7 February 2001 19:43:25 GMT

This archive was generated by hypermail 2.3.1 : Friday, 8 March 2013 15:54:20 GMT