[x3d-public] Agenda for X3D WG Open Meeting Wednesday 10th May 2017

Joe D Williams joedwil at earthlink.net
Fri May 19 13:05:34 PDT 2017


----- Original Message ----- 
From: "Michalis Kamburelis" <michalis.kambi at gmail.com>
To: "Don Brutzman" <brutzman at nps.edu>
Cc: "X3D Graphics public mailing list" <x3d-public at web3d.org>
Sent: Wednesday, May 10, 2017 9:24 AM
Subject: Re: [x3d-public] Agenda for X3D WG Open Meeting Wednesday 
10th May 2017


> 2017-05-10 18:16 GMT+02:00 Don Brutzman <brutzman at nps.edu>:
>> So far so good.  Am suggesting we completely sidestep mixed cases 
>> to avoid
>> confusion.
>>
>> a. Suggested resolution: X3D XML encoding allow MFString attribute 
>> which
>> contains no quotation marks  to be treated as an SFString value.
>>
>> EXAMPLE
>>
>>    <Text string='Hello world'/>
>>
>> is equivalent to
>>
>>    <Text string='"Hello world"'/>
>>
>> b. Suggested addition (perhaps same as Michalis option 1) is that 
>> such
>> single SFString values within an MFString are allowed to include \"
>> characters.
>>
>> EXAMPLE (already provided in X3D XML encoding specification)
>>
>>     <Text string='"He said, \"Immel did it!\""' />
>>
>> is equivalent to
>>
>>     <Text string='He said, \"Immel did it!\"' />
>>
>> or
>>     <Text string='He said, \"Immel did it!\"' />
>>
>
> This is equivalent to my 2nd proposal. Note that in
>
>  <Text string=' "He said, \"Immel did it!\"" ' />
>
> the backslash is *not* visible. It is only used to escape the
> double-quote. This is sensible, otherwise there's no way we could
> specify visible double-quote inside as MFString part in X3D XML. The
> "Text" node would not be able to display double-quotes.
>
> In case of
>
>  <Text string='He said, \"Immel did it!\"' />
>
> we know that
>
>  \"
>
> is allowed is known (it is), the question is "what does it mean":
>
>  visible backslash + visible double quote
>
> or
>
>  visible double quote


HI, the answer is of course the second,
He said, "Immel did it!"
 only the visible quote.

>> Yes, I agree. X3D XML needs to be aware of backslashes. Only in 
>> case
of MFString, but not in case of SFString.

a quoted part of an MF gets exactly the same treatment as an SF so 
escapes are allowed as in your example when there is only an SF.

<Text string='"He said, \"Immel did it!\" "He didn\'t want to do 
it:)"' />

He said, "Immel did it!"
He didn't want to do it:)

>
> Michalis


Thanks and Best
Joe

>
>>
>
>>
>> On 5/10/2017 9:06 AM, Michalis Kamburelis wrote:
>>>
>>> If we change the X3D XML specification to say that
>>>    <Text string="foo" />
>>> means that Text.string (MFString) has a single value, and is thus 
>>> equal to
>>>    <Text string= ' "foo" ' />
>>>
>>> (extra spaces added only for readability above)
>>>
>>> ... then we need to be careful about backslashes. What happens 
>>> here:
>>>
>>>    <Text string='f\"oo' />
>>>
>>> 1. Is the backslash here visible? (As it would be, if Text.string
>>> would be SFString)?
>>>
>>> 2. Or not visible? (As it would be, if backslash is used for 
>>> escaping,
>>> as in MFString)?
>>>
>>> Probably 1. is better, but it's important in any case to say this
>>> explicitly in the specification, also show this case as an 
>>> example.
>>>
>>> Michalis
>>>
>>> 2017-05-10 17:46 GMT+02:00 Michalis Kamburelis 
>>> <michalis.kambi at gmail.com>:
>>>>
>>>> As for "What exactly character do we mean, when we say >>single 
>>>> quote<<"
>>>> :
>>>>
>>>> What does the XML standard do?
>>>>
>>>> XML specification https://www.w3.org/TR/REC-xml/ talks abuot
>>>> single-quotes and double-quotes, and adds a lot of examples 
>>>> confirming
>>>> that they are the same thing as familiar ASCII characters ' and 
>>>> ".
>>>>
>>>> XML specification says "apostrophe" only once, saying that
>>>>
>>>>    """"
>>>>    the apostrophe or single-quote character (') may be 
>>>> represented as "
>>>> ' "
>>>>    """"
>>>>
>>>> ... so it essentially says that "apostrophe" and "single-quote
>>>> character" are the same thing.
>>>>
>>>> Michalis
>>>>
>>>> 2017-05-10 17:17 GMT+02:00 Don Brutzman <brutzman at nps.edu>:
>>>>>
>>>>> Another reference: Mantis issue 0705.  pdf attached, link 
>>>>> follows.
>>>>>
>>>>> 0705: 5.15 SFString and MFString - Escaping backslashes
>>>>> http://www.web3d.org/member-only/mantis/view.php?id=705
>>>>>
>>>>> all the best, Don
>>>>> --
>>>>> Don Brutzman  Naval Postgraduate School, Code USW/Br
>>>>> brutzman at nps.edu
>>>>> Watkins 270,  MOVES Institute, Monterey CA 93943-5000 USA
>>>>> +1.831.656.2149
>>>>> X3D graphics, virtual worlds, navy robotics
>>>>> http://faculty.nps.edu/brutzman
>>>>>
>>>>> _______________________________________________
>>>>> x3d-public mailing list
>>>>> x3d-public at web3d.org
>>>>> http://web3d.org/mailman/listinfo/x3d-public_web3d.org
>>>>>
>>
>>
>> all the best, Don
>> --
>> Don Brutzman  Naval Postgraduate School, Code USW/Br 
>> brutzman at nps.edu
>> Watkins 270,  MOVES Institute, Monterey CA 93943-5000 USA 
>> +1.831.656.2149
>> X3D graphics, virtual worlds, navy robotics 
>> http://faculty.nps.edu/brutzman
>
> _______________________________________________
> x3d-public mailing list
> x3d-public at web3d.org
> http://web3d.org/mailman/listinfo/x3d-public_web3d.org 




More information about the x3d-public mailing list