[x3d-public] X3DJSAIL: need agreement on SFString \\\\ an d\\

Don Brutzman brutzman at nps.edu
Sun May 28 14:16:10 PDT 2017


I am hoping that handling of backslashes is consistent now in the latest build... style differences are OK, but syntax results should be correct and consistent.

On 5/25/2017 5:18 AM, John Carlson wrote:
> Okay, here’s a place where Don and I conflict in our coding style and an agreement should be reached.
> 
> My style:
> 
>          .addMeta(new metaObject().setName("description").setContent("a script test with embedded \\n between single quotes, a double backslash \\\\ a backslash \\ and a closing quote \"")))
> 
> Don’s style
> 
>      .addMeta(new metaObject().setName("description").setContent("a script test with embedded \\n between single quotes, a double backslash \\\\\\\\ a backslash \\\\ and a closing quote \"")))
> 
> I like my style better.  What do you think?
> 
> John
> 
> Sent from Mail <https://go.microsoft.com/fwlink/?LinkId=550986> for Windows 10
> 
> *From: *John Carlson <mailto:yottzumm at gmail.com>
> *Sent: *Thursday, May 25, 2017 4:36 AM
> *To: *Don Brutzman <mailto:brutzman at nps.edu>
> *Cc: *X3D Graphics public mailing list <mailto:x3d-public at web3d.org>
> *Subject: *RE: X3DJSAIL: Interesting exception, butitcouldbemyfault.Re:CommentsBlock.
> 
> Sound terrific.  Then I can test my output against your output to verify our code produces the same thing.
> 
> That would be an excellent test of my serializers and your X3dToJava.xslt.
> 
> On another note, I am giving up maintenance of my X3dToES5.xslt  It’s 16 times bigger than my serializer, and I can’t keep up with the changes to X3dToJava.xslt.
> 
> I donate it to the Web3d consortium.   It’s really your code anyway.
> 
> Here’s the latest copy that’s out of date:
> 
> https://coderextreme.net/X3DJSONLD/src/main/lib/stylesheets/X3dToES5.xslt
> 
> The “import” X3Dautoclass.js file is here:
> 
> https://coderextreme.net/X3DJSONLD/src/main/nashorn/X3Dautoclass.js
> 
> The program which generates X3Dautoclass.js from the object model, classes.py, is attached.
> 
> If you can find a better way to support multiple languages in the same stylesheet, I am willing to maintain the JavaScript portion of that.  That would be ideal.
> 
> If you want to put it in the legacy folder, that’s OK by me.
> 
> John
> 


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



More information about the x3d-public mailing list