Commits

Anonymous committed 56f0c09

Add an example to XML-Grammar-Screenplay.

  • Participants
  • Parent commits 06050eb

Comments (0)

Files changed (2)

perl/modules/XML-Grammar-Fiction/Changes

     now indicates that the following tag is a style tag.
     * lib/XML/Grammar/Fiction.pm - add a comprehensive example to the POD
     itself.
+    * Consolidated the lib/XML/Grammar/Fiction.pm 's todo into the C<TODO>
+    file.
+    * lib/XML/Grammar/Screenplay.pm - add an example in the code.
 
 0.7.0       Wed May 25 12:47:13 IDT 2011
     * Add support for the lang="..." attribute of <body> in Fiction-Text which

perl/modules/XML-Grammar-Fiction/lib/XML/Grammar/Screenplay.pm

 
 =head2 EXAMPLES
 
-Examples can be found in the C<t/data> directory, and here:
+=head3 Comprehensive Example
+
+    <s id="top">
+
+    <s id="david_and_goliath">
+
+    [David and <a href="http://en.wikipedia.org/wiki/Goliath">Goliath</a> are 
+    standing by each other.]
+
+    David: I will kill you.
+
+    Goliath: no way, you little idiot!
+
+    David: yes way!
+
+    ++++: In the name of <a href="http://real-allah.tld/">Allah, the 
+    <b>merciful</b>, real merciful</a>, I will show you
+    the [sarcastically] power of my sling. 
+
+    ++: I shall sling you and bing you till infinity.
+
+    [David takes his sling.]
+
+    Goliath: I'm still <a href="http://wait.tld/">waiting</a>.
+
+    David: so you are.
+
+    [David puts a stone in his sling and shoots Goliath. He hits.]
+
+    David: as is written in the wikipedia [See <a href="http://wiki.tld/">the
+    Wiki site</a> for more information], you are now dead, having been shot with
+    my sling.
+
+    </s>
+
+    </s>
+
+=head3 More Examples
+
+Other examples can be found in the C<t/data> directory, and here:
 
 =over 4