[html5] r6685 - [e] (0) Add an example of the script of a conversation in interactive fiction. F [...]

whatwg at whatwg.org whatwg at whatwg.org
Fri Oct 14 14:35:07 PDT 2011


Author: ianh
Date: 2011-10-14 14:35:06 -0700 (Fri, 14 Oct 2011)
New Revision: 6685

Modified:
   complete.html
   index
   source
Log:
[e] (0) Add an example of the script of a conversation in interactive fiction.
Fixing http://www.w3.org/Bugs/Public/show_bug.cgi?id=14353

Modified: complete.html
===================================================================
--- complete.html	2011-10-14 19:06:06 UTC (rev 6684)
+++ complete.html	2011-10-14 21:35:06 UTC (rev 6685)
@@ -56615,7 +56615,63 @@
 
   </div>
 
+  <div class=example>
 
+   <p>HTML does not have a good way to mark up graphs, so descriptions
+   of interactive conversations from games are more difficult to mark
+   up. This example shows one possible convention using
+   <code><a href=#the-dl-element>dl</a></code> elements to list the possible responses at each
+   point in the conversation. Another option to consider is describing
+   the conversation in the form of a DOT file, and outputting the
+   result as an SVG image to place in the document. <a href=#refsDOT>[DOT]</a></p>
+
+   <pre><p> Next, you meet a fisherman. You can say one of several greetings:
+<dl>
+ <dt> "Hello there!"
+ <dd>
+  <p> He responds with "Hello, how may I help you?"; you can respond with:
+  <dl>
+   <dt> "I would like to buy a fish."
+   <dd> <p> He sells you a fish and the conversation finishes.
+   <dt> "Can I borrow your boat?"
+   <dd>
+    <p> He is surprised and asks "What are you offering in return?".
+    <dl>
+     <dt> "Five gold." (if you have enough)
+     <dt> "Ten gold." (if you have enough)
+     <dt> "Fifteen gold." (if you have enough)
+     <dd> <p> He lends you his boat. The conversation ends.
+     <dt> "A fish." (if you have one)
+     <dt> "A newspaper." (if you have one)
+     <dt> "A pebble." (if you have one)
+     <dd> <p> "No thanks", he replies. Your conversation options        
+     at this point are the same as they were after asking to borrow
+     his boat, minus any options you've suggested before.
+    </dl>
+   </dd>
+  </dl>
+ </dd>
+ <dt> "Vote for me in the next election!"
+ <dd> <p> He turns away. The conversation finishes.
+ <dt> "Sir, are you aware that your fish are running away?"
+ <dd>
+  <p> He looks at you skeptically and says "Fish cannot run, sir".
+  <dl>
+   <dt> "You got me!"
+   <dd> <p> The fisherman sighs and the conversation ends.
+   <dt> "Only kidding."
+   <dd> <p> "Good one!" he retorts. Your conversation options at this
+   point are the same as those following "Hello there!" above.
+   <dt> "Oh, then what are they doing?"
+   <dd> <p> He looks at his fish, giving you an opportunity to steal
+   his boat, which you do. The conversation ends.
+  </dl>
+ </dd>
+</ul></pre>
+
+  </div>
+
+
   <h4 id=footnotes><span class=secno>4.13.5 </span>Footnotes</h4>
 
   <p>HTML does not have a dedicated mechanism for marking up
@@ -101351,6 +101407,9 @@
    <dt id=refsDOMRANGE>[DOMRANGE]</dt>
    <dd><cite><a href=http://html5.org/specs/dom-range.html>DOM Range</a></cite>, A. Gregor, Ms2ger. html5.org.</dd>
 
+   <dt id=refsDOT>[DOT]</dt>
+   <dd>(Non-normative) <cite><a href=http://www.graphviz.org/content/dot-language>The DOT Language</a></cite>. Graphviz.</dd>
+
    <dt id=refsE163>[E163]</dt>
    <dd><cite>Recommendation E.163 — Numbering Plan for The International
    Telephone Service</cite>, CCITT Blue Book, Fascicle II.2, pp. 128-134, November

Modified: index
===================================================================
--- index	2011-10-14 19:06:06 UTC (rev 6684)
+++ index	2011-10-14 21:35:06 UTC (rev 6685)
@@ -56615,7 +56615,63 @@
 
   </div>
 
+  <div class=example>
 
+   <p>HTML does not have a good way to mark up graphs, so descriptions
+   of interactive conversations from games are more difficult to mark
+   up. This example shows one possible convention using
+   <code><a href=#the-dl-element>dl</a></code> elements to list the possible responses at each
+   point in the conversation. Another option to consider is describing
+   the conversation in the form of a DOT file, and outputting the
+   result as an SVG image to place in the document. <a href=#refsDOT>[DOT]</a></p>
+
+   <pre><p> Next, you meet a fisherman. You can say one of several greetings:
+<dl>
+ <dt> "Hello there!"
+ <dd>
+  <p> He responds with "Hello, how may I help you?"; you can respond with:
+  <dl>
+   <dt> "I would like to buy a fish."
+   <dd> <p> He sells you a fish and the conversation finishes.
+   <dt> "Can I borrow your boat?"
+   <dd>
+    <p> He is surprised and asks "What are you offering in return?".
+    <dl>
+     <dt> "Five gold." (if you have enough)
+     <dt> "Ten gold." (if you have enough)
+     <dt> "Fifteen gold." (if you have enough)
+     <dd> <p> He lends you his boat. The conversation ends.
+     <dt> "A fish." (if you have one)
+     <dt> "A newspaper." (if you have one)
+     <dt> "A pebble." (if you have one)
+     <dd> <p> "No thanks", he replies. Your conversation options        
+     at this point are the same as they were after asking to borrow
+     his boat, minus any options you've suggested before.
+    </dl>
+   </dd>
+  </dl>
+ </dd>
+ <dt> "Vote for me in the next election!"
+ <dd> <p> He turns away. The conversation finishes.
+ <dt> "Sir, are you aware that your fish are running away?"
+ <dd>
+  <p> He looks at you skeptically and says "Fish cannot run, sir".
+  <dl>
+   <dt> "You got me!"
+   <dd> <p> The fisherman sighs and the conversation ends.
+   <dt> "Only kidding."
+   <dd> <p> "Good one!" he retorts. Your conversation options at this
+   point are the same as those following "Hello there!" above.
+   <dt> "Oh, then what are they doing?"
+   <dd> <p> He looks at his fish, giving you an opportunity to steal
+   his boat, which you do. The conversation ends.
+  </dl>
+ </dd>
+</ul></pre>
+
+  </div>
+
+
   <h4 id=footnotes><span class=secno>4.13.5 </span>Footnotes</h4>
 
   <p>HTML does not have a dedicated mechanism for marking up
@@ -101351,6 +101407,9 @@
    <dt id=refsDOMRANGE>[DOMRANGE]</dt>
    <dd><cite><a href=http://html5.org/specs/dom-range.html>DOM Range</a></cite>, A. Gregor, Ms2ger. html5.org.</dd>
 
+   <dt id=refsDOT>[DOT]</dt>
+   <dd>(Non-normative) <cite><a href=http://www.graphviz.org/content/dot-language>The DOT Language</a></cite>. Graphviz.</dd>
+
    <dt id=refsE163>[E163]</dt>
    <dd><cite>Recommendation E.163 — Numbering Plan for The International
    Telephone Service</cite>, CCITT Blue Book, Fascicle II.2, pp. 128-134, November

Modified: source
===================================================================
--- source	2011-10-14 19:06:06 UTC (rev 6684)
+++ source	2011-10-14 21:35:06 UTC (rev 6685)
@@ -63798,7 +63798,64 @@
 
   </div>
 
+  <div class="example">
 
+   <p>HTML does not have a good way to mark up graphs, so descriptions
+   of interactive conversations from games are more difficult to mark
+   up. This example shows one possible convention using
+   <code>dl</code> elements to list the possible responses at each
+   point in the conversation. Another option to consider is describing
+   the conversation in the form of a DOT file, and outputting the
+   result as an SVG image to place in the document. <a
+   href="#refsDOT">[DOT]</a></p>
+
+   <pre><p> Next, you meet a fisherman. You can say one of several greetings:
+<dl>
+ <dt> "Hello there!"
+ <dd>
+  <p> He responds with "Hello, how may I help you?"; you can respond with:
+  <dl>
+   <dt> "I would like to buy a fish."
+   <dd> <p> He sells you a fish and the conversation finishes.
+   <dt> "Can I borrow your boat?"
+   <dd>
+    <p> He is surprised and asks "What are you offering in return?".
+    <dl>
+     <dt> "Five gold." (if you have enough)
+     <dt> "Ten gold." (if you have enough)
+     <dt> "Fifteen gold." (if you have enough)
+     <dd> <p> He lends you his boat. The conversation ends.
+     <dt> "A fish." (if you have one)
+     <dt> "A newspaper." (if you have one)
+     <dt> "A pebble." (if you have one)
+     <dd> <p> "No thanks", he replies. Your conversation options        
+     at this point are the same as they were after asking to borrow
+     his boat, minus any options you've suggested before.
+    </dl>
+   </dd>
+  </dl>
+ </dd>
+ <dt> "Vote for me in the next election!"
+ <dd> <p> He turns away. The conversation finishes.
+ <dt> "Sir, are you aware that your fish are running away?"
+ <dd>
+  <p> He looks at you skeptically and says "Fish cannot run, sir".
+  <dl>
+   <dt> "You got me!"
+   <dd> <p> The fisherman sighs and the conversation ends.
+   <dt> "Only kidding."
+   <dd> <p> "Good one!" he retorts. Your conversation options at this
+   point are the same as those following "Hello there!" above.
+   <dt> "Oh, then what are they doing?"
+   <dd> <p> He looks at his fish, giving you an opportunity to steal
+   his boat, which you do. The conversation ends.
+  </dl>
+ </dd>
+</ul></pre>
+
+  </div>
+
+
   <h4 id="footnotes">Footnotes</h4>
 
   <p>HTML does not have a dedicated mechanism for marking up
@@ -115474,6 +115531,9 @@
    <dt id="refsDOMRANGE">[DOMRANGE]</dt>
    <dd><cite><a href="http://html5.org/specs/dom-range.html">DOM Range</a></cite>, A. Gregor, Ms2ger. html5.org.</dd>
 
+   <dt id="refsDOT">[DOT]</dt>
+   <dd>(Non-normative) <cite><a href="http://www.graphviz.org/content/dot-language">The DOT Language</a></cite>. Graphviz.</dd>
+
    <dt id="refsE163">[E163]</dt>
    <dd><cite>Recommendation E.163 — Numbering Plan for The International
    Telephone Service</cite>, CCITT Blue Book, Fascicle II.2, pp. 128-134, November




More information about the Commit-Watchers mailing list