[x3d-public] Filenames with quotes, spaces good for testing, but drives Linux people crazy!

Don Brutzman brutzman at nps.edu
Sat May 28 16:55:10 PDT 2016


Hmmmm, interesting issue.  Thank you for bringing it up John.

I added the following naming guidance to the X3D Scene Authoring Hints:

"Avoid use of space characters, 'apostrophes' and "quotation marks" in file names since they can cause lots of problems for tools and search,especially when going from one operating system to another."

	http://www.web3d.org/x3d/content/examples/X3dSceneAuthoringHints.html#NamingConventions

Interestingly, each of the examples you list below are autogenerated images that are produced from Viewpoint descriptions in scenes.  The apostrophes ' and plus signs + come from the description text itself.

Examples:

	<Viewpoint description="Special characters + ' ' " in prose"/>
or
	<Viewpoint description='Special characters + " ' " in prose'/>

Any other suggestions on this?

As it turns out, that rule could be applied when generating the viewpoint images.

Looks like the relevant code is in Xj3D classes SceneThumbnailRecorder.java and CaptureViewpointsAction.java

... am now stripping ' and " before creating file names, images are now being saved correctly in preferred file names.

... am now working through the archive regeneration, and taking old images with apostrophes out of version control.

Updates will probably run overnight.  You can delete the offenders below without loss of content.

Again thanks for recommending this improvement.


On 5/28/2016 3:19 PM, John Carlson wrote:
> Please keep files with “, ‘ and space to a minimum (none).  It drives people using `find` on Linux and Mac and Unix crazy.
>
>
>
> Here’s some files with ‘.  Note that I believe these particular ones are *generated* and not used in examples.  I believe these file names were chosen from Viewpoint names.  I don’t know if this can be changed.
>
>
> However there are some with space too.  And space is replaced in the above filenames, so it seems like ‘ could be replaced too.  In the x3d resources examples.
>
>
> Yes, it requires 11 more characters typing each time I want to work around this.  I realize emacs is the solution.
>
> find examples/ -print0 | xargs -0 …
>
> is the solution.  I added -print0 and -0
>
> Save my wrists!
>
> John
>
>
>
> examples//Basic/Geospatial/_viewpoints/CaliforniaCampuses.x3d._VP_King's_Cross,_London,_United_Kingdom.png
>
> examples//Basic/Geospatial/_viewpoints/HelloEarthOpenAerialMap.x3d._VP_King's_Cross,_London,_United_Kingdom.png
>
> examples//Basic/Geospatial/_viewpoints/HelloEarthOpenStreetMap.x3d._VP_King's_Cross,_London,_United_Kingdom.png
>
> examples//Basic/Geospatial/_viewpoints/OpenStreetMapX3dEarthDemo.x3d._VP_King's_Cross,_London,_United_Kingdom.png
>
> examples//Basic/Geospatial/_viewpoints/SriCampus.x3d._VP_Martin's_Office_+1000m.png
>
> examples//ConformanceNist/SpecialGroups/LOD/_viewpoints/test-center.x3d._VP_user's_avatar_position.png
>
> examples//Vrml2.0Sourcebook/Chapter20-Lighting/_viewpoints/Figure20.13bDirectionalLightNoon.x3d._VP_12_o'clock_high_without_a_shadow....png
>
> examples//X3dForWebAuthors/Chapter03-Grouping/_viewpoints/Inline.x3d._VP_Bird's_Eye_View.png
>
> examples//X3dForWebAuthors/Chapter03-Grouping/_viewpoints/InlineKelpForest.x3d._VP_Bird's_Eye_View.png
>
> examples//X3dForWebAuthors/Chapter04-ViewingNavigation/_viewpoints/Anchor.x3d._VP_Bird's_Eye_View.png
>
> examples//X3dForWebAuthors/Chapter04-ViewingNavigation/_viewpoints/Viewpoint.x3d._VP_Bird's_Eye_View.png
>
> examples//X3dForWebAuthors/Chapter11-LightingEnvironmentalEffects/_viewpoints/Background-KelpForestMain.x3d._VP_Bird's_Eye_View.png
>
> examples//X3dForWebAuthors/Chapter11-LightingEnvironmentalEffects/_viewpoints/BackgroundKelpForestMain.x3d._VP_Bird's_Eye_View.png
>
> examples//X3dForWebAuthors/Chapter11-LightingEnvironmentalEffects/_viewpoints/Fog-KelpForestMain.x3d._VP_Bird's_Eye_View.png
>
> examples//X3dForWebAuthors/Chapter11-LightingEnvironmentalEffects/_viewpoints/TextureBackground-KelpForestMain.x3d._VP_Bird's_Eye_View.png
>
> examples//X3dForWebAuthors/Chapter12-EnvironmentSensorSound/_viewpoints/Collision-KelpForestMain.x3d._VP_Bird's_Eye_View.png
>
> examples//X3dForWebAuthors/Chapter12-EnvironmentSensorSound/_viewpoints/LoadSensor-KelpForestMain.x3d._VP_Bird's_Eye_View.png
>
> examples//X3dForWebAuthors/Chapter12-EnvironmentSensorSound/_viewpoints/LoadSensor-KelpForestMain_timeOut.x3d._VP_Bird's_Eye_View.png
>
> examples//X3dForWebAuthors/Chapter12-EnvironmentSensorSound/_viewpoints/ProximitySensor-KelpForestMain.x3d._VP_Bird's_Eye_View.png
>
> examples//X3dForWebAuthors/Chapter12-EnvironmentSensorSound/_viewpoints/ProximitySensor.x3d._VP_Bird's_Eye_View.png
>
> examples//X3dForWebAuthors/Chapter12-EnvironmentSensorSound/_viewpoints/VisibilitySensor-KelpForestMain.x3d._VP_Bird's_Eye_View.png
>
> examples//X3dForWebAuthors/Chapter14-Prototypes/_viewpoints/HudKelpForest.x3d._VP_Bird's_Eye_View.png
>
> examples//X3dForWebAuthors/KelpForestExhibit/_viewpoints/KelpForestMain.x3d._VP_Bird's_Eye_View.png
>
> examples//X3dForWebAuthors/KelpForestExhibit/_viewpoints/KelpForestNoNancy.x3d._VP_Bird's_Eye_View.png


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