X3D Model Documentation: TextExamples.x3d

  1  <?xml version="1.0" encoding="UTF-8"?>
  2 
<!DOCTYPE X3D PUBLIC "ISO//Web3D//DTD X3D 3.0//EN" "https://www.web3d.org/specifications/x3d-3.0.dtd">
  3  <X3D profile='Immersive' version='3.0 xmlns:xsd='http://www.w3.org/2001/XMLSchema-instance' xsd:noNamespaceSchemaLocation='https://www.web3d.org/specifications/x3d-3.0.xsd'>
  4       <head>
  5            <meta name='titlecontent='TextExamples.x3d'/>
  6            <meta name='descriptioncontent='Show different escape-character text examples for embedded quotation marks.'/>
  7            <meta name='creatorcontent='Don Brutzman'/>
  8            <meta name='createdcontent='7 April 2001'/>
  9            <meta name='modifiedcontent='20 October 2019'/>
 10            <meta name=' warning content=' Note that X3D Canonicalization (C14N) will scrub alternate XML character representations, be careful to check original encoding into version control. '/>
 11            <meta name=' warning content=' Usually this source document needs to be inspected and edited using a plain-text editor in order to see the differences in these XML-equivalent text representations. '/>
 12            <meta name='identifiercontent='https://www.web3d.org/x3d/content/examples/Basic/development/TextExamples.x3d'/>
 13            <meta name='generatorcontent='X3D-Edit 3.3, https://savage.nps.edu/X3D-Edit'/>
 14            <meta name='licensecontent='../license.html'/>
 15       </head>
<!--

<!-- -->

<!-- to top Index for DEF nodes: LightBlueAppearance, testFontStyle
-->
 16       <Scene>
 17            <WorldInfo title='TextExamples.x3d'/>
 18            <Transform translation='0 2 0'>
 19                 <Shape>
 20                      <Text string='"Compare special character escaping"'>
 21 
                         <!-- FontStyle testFontStyle is a DEF node that has 2 USE nodes: USE_1, USE_2 -->
                         <FontStyle DEF='testFontStylejustify='"MIDDLE" "MIDDLE"size='0.8'/>
 22                      </Text>
 23 
                    <!-- Appearance LightBlueAppearance is a DEF node that has 2 USE nodes: USE_1, USE_2 -->
                    <Appearance DEF='LightBlueAppearance'>
 24                           <Material diffuseColor='0.1 0.7 0.7'/>
 25                      </Appearance>
 26                 </Shape>
 27            </Transform>
 28            <Transform translation='-3 0 0'>
 29                 <Shape>
 30                      <Text string='"I don't think so" "" "he said \"Hi\""'>
 31                           <FontStyle USE='testFontStyle'/>
 32                      </Text>
 33                      <Appearance USE='LightBlueAppearance'/>
 34                 </Shape>
 35            </Transform>
 36            <Transform translation='3 0 0'>
 37                 <Shape>
 38                      <Text string='"I don't think so" "" "he said \"Hi\""'>
 39                           <FontStyle USE='testFontStyle'/>
 40                      </Text>
 41                      <Appearance USE='LightBlueAppearance'/>
 42                 </Shape>
 43            </Transform>
 44       </Scene>
 45  </X3D>
<!--

<!-- -->

<!-- to top Index for DEF nodes: LightBlueAppearance, testFontStyle
-->
X3D Tooltips element index: Appearance, FontStyle, head, Material, meta, Scene, Shape, Text, Transform, WorldInfo, X3D, accessType and type, XML data types, field types

-->
<!-- Online at
https://www.web3d.org/x3d/content/examples/Basic/development/TextExamplesIndex.html -->
<!-- Version control at
https://sourceforge.net/p/x3d/code/HEAD/tree/www.web3d.org/x3d/content/examples/Basic/development/TextExamples.x3d -->

<!-- Color legend: X3D terminology <X3dNode DEF='idName' field='value'/> matches XML terminology <XmlElement DEF='idName' attribute='value'/>
(Light-blue background: event-based behavior node or statement) (Grey background inside box: inserted documentation) (Magenta background: X3D Extensibility)
-->

to top <!-- For additional help information about X3D scenes, please see X3D Tooltips, X3D Resources, and X3D Scene Authoring Hints. -->