Commits

Anonymous committed c72b328

Add the Fiction-Text example for the XML-Grammar/Fiction page.

  • Participants
  • Parent commits 2e1d874

Comments (0)

Files changed (4)

 	TOW_Fountainhead_2
 
 FICTION_DOCS = \
+    fiction-text-example-for-X-G-Fiction-demo \
 	human-hacking-field-guide-hebrew-v2 \
 	The-Enemy-Hebrew-rev6 \
 	The-Enemy-Hebrew-v7 \
 $(T2_DEST)/open-source/interviews/sussman.html: $(SCREENPLAY_XML_RENDERED_HTML_DIR)/sussman-interview.html
 $(T2_DEST)/open-source/projects/XML-Grammar/Fiction/index.html: $(SCREENPLAY_XML_TXT_DIR)/humanity-excerpt-for-X-G-Screenplay-demo.txt
 $(T2_DEST)/open-source/projects/XML-Grammar/Fiction/index.html: $(SCREENPLAY_XML_RENDERED_HTML_DIR)/humanity-excerpt-for-X-G-Screenplay-demo.html
+$(T2_DEST)/open-source/projects/XML-Grammar/Fiction/index.html: $(FICTION_XML_TXT_DIR)/fiction-text-example-for-X-G-Fiction-demo.txt
+$(T2_DEST)/open-source/projects/XML-Grammar/Fiction/index.html: $(DOCBOOK5_RENDERED_DIR)/fiction-text-example-for-X-G-Fiction-demo.xhtml
 
 # Rebuild the embedded docbook4 pages in the $(T2_DEST) after they are 
 # modified.

lib/fiction-xml/txt/fiction-text-example-for-X-G-Fiction-demo.txt

+<body id="index">
+
+<title>David vs. Goliath - Part I</title>
+
+<s id="top">
+
+<title>The Top Section</title>
+
+<!-- David has Green hair here -->
+
+King <a href="http://en.wikipedia.org/wiki/David">David</a> and Goliath were standing by each other.
+
+David said unto Goliath: "I will shoot you. I <b>swear</b> I will"
+
+<s id="goliath">
+
+<title>Goliath's Response</title>
+
+<!-- Goliath has to reply to that. -->
+
+Goliath was not amused.
+
+He said to David: "Oh, really. <i>David</i>, the red-headed!".
+
+</s>
+
+</s>
+
+</body>
+

lib/sass/screenplay.sass

 /* .description
     font-style: italic
     color: brown
-  
-.screenplay
+
+=story_box_style
     border: 1pt solid black
     padding: 0.5em
     background-color: white
     border-radius: 0.5em
 
+.screenplay
+    +story_box_style
+
     .description
         border: 2pt solid orange
         border-radius: 0.3em
 
         p
             margin: 0
+
+.fiction_xml
+    +story_box_style
+
+    h3, h4, h5
+        text-decoration: none
+    h3
+        font-size: 120%
+    h4        
+        font-size: 110%
+    h5
+        font-size: 100%
+

t2/open-source/projects/XML-Grammar/Fiction/index.html.wml

 
 <h2 id="demos">Demos</h2>
 
+<h3 id="demo-fiction1">Fiction Demo 1</h3>
+
+<p>
+If we have this sample Fiction-Text document:
+</p>
+
+<shlomif_code_block>
+<shlomif_include_colorized_file filename="../lib/fiction-xml/txt/fiction-text-example-for-X-G-Fiction-demo.txt" />
+</shlomif_code_block>
+
+<p>
+Then after converting it to XML and then to XHTML we get this:
+</p>
+
+<div class="fiction_xml">
+#include "docbook/5/rendered/fiction-text-example-for-X-G-Fiction-demo.xhtml"
+</div>
+
 <h3 id="demo-screenplay1">Screenplay Demo 1</h3>
 
 <p>