[x3d-public] interesting sample

Michalis Kamburelis michalis.kambi at gmail.com
Wed Apr 26 07:20:19 PDT 2017


 2017-04-26 10:32 GMT+02:00 Don Brutzman <brutzman at nps.edu>:
> On 4/25/2017 11:44 AM, Michalis Kamburelis wrote:
>>
>> 2017-04-25 10:03 GMT+02:00  <yottzumm at gmail.com>:
>>>
>>> Here’s an interesting sample from X3D resources examples  that many
>>> viewers
>>> don’t handle—they don’t list the whole MFString.
>>>
>>
>> view3dscene handles it. Also displays a warning, pointing to the problem:
>>
>>    view3dscene: VRML/X3D warning: Error when reading MFString field
>> "string" value. Possibly missing double quotes (treating as a single
>> string): Error at line 1 column 134: Expected string, got "is"
>> [...]
>
> please advise exactly where you are finding the error, presumably scene
>
> http://X3dGraphics.com/examples/X3dForWebAuthors/Chapter02GeometryPrimitives/TextSpecialCharacters.x3d
>

No, my comments applied to the other scene attached in John's original
mail: the textchar.x3d . I don't know where it's available online, I'm
attaching it below (the unmodified version, and the fixed version) to
make it easier.

The textchar.x3d looks like a processed version of the
TextSpecialCharacters.x3d, but broken: some of the double-quotes
(expressed as ") are not preceded with backslashes there, and
this breaks MFString parsing.

Sorry, I completely forgot to mention in my mail to which file my
comments apply... The TextSpecialCharacters.x3d is correct (both the
version attached by John, and the (newer) version in SVN you linked).

I also see that the explanation of problems in my original email was
incomplete: I should have mentioned the need for backslashes. The lack
of backslashes in textchar.x3d is what makes it incorrect. Luckily, my
proposed specification changes (in thread "[x3d-public] MFString
quoting [was: interesting sample]") fixes this, I mentioned there the
backslashes clearly.

Best regards,
Michalis
-------------- next part --------------
A non-text attachment was scrubbed...
Name: textchar.x3d
Type: application/vnd.hzn-3d-crossword
Size: 2652 bytes
Desc: not available
URL: <http://web3d.org/pipermail/x3d-public_web3d.org/attachments/20170426/cd836207/attachment-0002.x3d>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: textchar_fixed.x3d
Type: application/vnd.hzn-3d-crossword
Size: 2663 bytes
Desc: not available
URL: <http://web3d.org/pipermail/x3d-public_web3d.org/attachments/20170426/cd836207/attachment-0003.x3d>


More information about the x3d-public mailing list