<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=utf-8"><meta name=Generator content="Microsoft Word 15 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:#954F72;
        text-decoration:underline;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style></head><body lang=EN-US link=blue vlink="#954F72"><div class=WordSection1><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Sent from <a href="https://go.microsoft.com/fwlink/?LinkId=550986">Mail</a> for Windows 10</p><p class=MsoNormal><o:p> </o:p></p><div style='mso-element:para-border-div;border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0in 0in 0in'><p class=MsoNormal style='border:none;padding:0in'><b>From: </b><a href="mailto:brutzman@nps.edu">Don Brutzman</a><br><b>Sent: </b>Thursday, January 26, 2017 2:03 PM<br><b>To: </b><a href="mailto:yottzumm@gmail.com">yottzumm@gmail.com</a><br><b>Cc: </b><a href="mailto:roy.walmsley@ntlworld.com">Roy Walmsley</a>; <a href="mailto:x3d-public@web3d.org">X3D Graphics public mailing list</a><br><b>Subject: </b>Re: X3DJSAIL errors when compiling Java generated from X3D resourcesJSON examples. Needs work</p></div><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><span style='color:red'>you ... are ... awesome ... man !!!  8)<o:p></o:p></span></p><p class=MsoNormal><span style='color:#70AD47'><o:p> </o:p></span></p><p class=MsoNormal><span style='color:#70AD47'>You are awesome too!<o:p></o:p></span></p><p class=MsoNormal><span style='color:red'><o:p> </o:p></span></p><p class=MsoNormal><span style='color:red'>Looks like you are using your X3DJSONLD library to parse and convert the .json examples.<o:p></o:p></span></p><p class=MsoNormal><span style='color:red'><o:p> </o:p></span></p><p class=MsoNormal><span style='color:red'>Looking at javaerrors.txt, not critical but it might be helpful if you could intersperse each error report with directory path / filename.<o:p></o:p></span></p><p class=MsoNormal><span style='color:red'><o:p> </o:p></span></p><p class=MsoNormal><span style='color:#70AD47'>That should be done, at least in the latest zip.  It’s my file path.  Yours may be different, adding an extension (I convert to python, x3d, and java).<o:p></o:p></span></p><p class=MsoNormal><span style='color:red'><o:p> </o:p></span></p><p class=MsoNormal><span style='color:red'>Seems like we have another level of validation occurring...<o:p></o:p></span></p><p class=MsoNormal><span style='color:red'><o:p> </o:p></span></p><p class=MsoNormal><span style='color:red'>You might want to output <meta name='warning'/> or <meta name='error'/> elements since they document known errors in scenes.  not all schematron errors are so documented...  when further errors are found in the X3D models (converted .json or source-XML .x3d), we can then fix or document those.<o:p></o:p></span></p><p class=MsoNormal><span style='color:red'><o:p> </o:p></span></p><p class=MsoNormal><span style='color:#70AD47'>Yes, I should do that.  Right now, I’m outputting JSON and then promptly overwriting it, so I don’t really have a copy.  However, it should show up in the diff prior to the overwrite once I put it in, and we have better diifs (see email about floats with and without .0 ).<o:p></o:p></span></p><p class=MsoNormal><span style='color:#70AD47'><o:p> </o:p></span></p><p class=MsoNormal><span style='color:red'>Wondering, are DEF ids such as field0_0_8_0_2_4_8 just a pseudorandom unique value or do they reflect document tree structure somehow?<o:p></o:p></span></p><p class=MsoNormal><span style='color:red'><br></span><span style='color:#70AD47'>Those are variables, I think.   They are increments of the child nodes (x2 I guess).  I am not sure why they aren’t incremented by one.  They do reflect document tree (see java code in tar).<o:p></o:p></span></p><p class=MsoNormal><span style='color:red'><o:p> </o:p></span></p><p class=MsoNormal><span style='color:red'>not sure what JSON input syntax should be for<o:p></o:p></span></p><p class=MsoNormal><span style='color:red'>> FontStyle justify newValue="[MIDDLE, MIDDLE]" has illegal value, must use a valid enumeration string.<o:p></o:p></span></p><p class=MsoNormal><span style='color:red'><o:p> </o:p></span></p><p class=MsoNormal><span style='color:red'>... but Java output syntax would look something like<o:p></o:p></span></p><p class=MsoNormal><span style='color:red'><o:p> </o:p></span></p><p class=MsoNormal><span style='color:red'>myFontStyle.setFamily (FontStyleObject.FAMILY_SERIF)<o:p></o:p></span></p><p class=MsoNormal><span style='color:red'>                   .setJustify(FontStyleObject.JUSTIFY_MIDDLE_MIDDLE)<o:p></o:p></span></p><p class=MsoNormal><span style='color:red'>                   .setTopToBottom(FontStyleObject.TOPTOBOTTOM_DEFAULT_VALUE);<o:p></o:p></span></p><p class=MsoNormal><span style='color:red'><o:p> </o:p></span></p><p class=MsoNormal><span style='color:red'>or<o:p></o:p></span></p><p class=MsoNormal><span style='color:red'><o:p> </o:p></span></p><p class=MsoNormal><span style='color:red'>myFontStyle.setFamily ("SERIF")<o:p></o:p></span></p><p class=MsoNormal><span style='color:red'>                   .setJustify(new String[] {"\"MIDDLE\",\"MIDDLE\""})<o:p></o:p></span></p><p class=MsoNormal><span style='color:red'>                   .setTopToBottom(true);<o:p></o:p></span></p><p class=MsoNormal><span style='color:red'><o:p> </o:p></span></p><p class=MsoNormal><span style='color:#70AD47'>I am not sure why you are creating a string array out of one element.  I think this is more correct, but you can have it your way if you like:<o:p></o:p></span></p><p class=MsoNormal><span style='color:#70AD47'><o:p> </o:p></span></p><p class=MsoNormal><span style='color:#70AD47'>./www_web3d_org/x3d/content/examples/X3dForWebAuthors/Chapter14_Prototypes/WhereAmIExample.java:              FontStyle0_2_15_0_0.setJustify(new String[] {"MIDDLE","MIDDLE"});<o:p></o:p></span></p><p class=MsoNormal><span style='color:#70AD47'><o:p> </o:p></span></p><p class=MsoNormal><span style='color:#70AD47'>Maybe support both the array (my way) and a X3D MFString (a single String).<o:p></o:p></span></p><p class=MsoNormal><span style='color:#70AD47'><o:p> </o:p></span></p><p class=MsoNormal><span style='color:#70AD47'>John<o:p></o:p></span></p><p class=MsoNormal><span style='color:red'><o:p> </o:p></span></p><p class=MsoNormal><span style='color:red'>On 1/26/2017 12:36 AM, yottzumm@gmail.com wrote:<o:p></o:p></span></p><p class=MsoNormal><span style='color:red'>> Zip containing good Java archive (one file???), bad Java archive, and list of compilation and runtime errors:<o:p></o:p></span></p><p class=MsoNormal><span style='color:red'>><o:p> </o:p></span></p><p class=MsoNormal><span style='color:red'>> http://coderextreme.net/JavaCompile.zip<o:p></o:p></span></p><p class=MsoNormal><span style='color:red'>><o:p> </o:p></span></p><p class=MsoNormal><span style='color:red'>> Still using the old imperative style.  Accepting updates to https://github.com/coderextreme/X3DJSONLD/blob/master/JavaSerializer.js to move to new declarative style.<o:p></o:p></span></p><p class=MsoNormal><span style='color:red'>><o:p> </o:p></span></p><p class=MsoNormal><span style='color:red'>> I’ll probably get to it once my carpal tunnel calms down again.<o:p></o:p></span></p><p class=MsoNormal><span style='color:red'>><o:p> </o:p></span></p><p class=MsoNormal><span style='color:red'>> Thanks,<o:p></o:p></span></p><p class=MsoNormal><span style='color:red'>><o:p> </o:p></span></p><p class=MsoNormal><span style='color:red'>> John<o:p></o:p></span></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>all the best, Don</p><p class=MsoNormal>-- </p><p class=MsoNormal>Don Brutzman  Naval Postgraduate School, Code USW/Br       brutzman@nps.edu</p><p class=MsoNormal>Watkins 270,  MOVES Institute, Monterey CA 93943-5000 USA   +1.831.656.2149</p><p class=MsoNormal>X3D graphics, virtual worlds, navy robotics http://faculty.nps.edu/brutzman</p><p class=MsoNormal><o:p> </o:p></p></div></body></html>