Anonymous avatar Anonymous committed 2a4b944

Add support for italics in the XSLT, Changes, etc.

Comments (0)

Files changed (3)

perl/modules/XML-Grammar-Fiction/Changes

         - they cancelled each other most of the time except for in this 
         case.
 
+    * ::Screenplay - add support for Screenplay-Text's <i> tags which get
+    translated into Screenplay-XML's <italics> tags.
+
 0.1.3       Fri Dec 17 19:38:45 IST 2010
         - Moved some unused source files to the rejects directory.
         - Convert to the new XML-Grammar-Fiction-Builder which uses

perl/modules/XML-Grammar-Fiction/extradata/screenplay-xml-to-html.xslt

     </strong>
 </xsl:template>
 
+<xsl:template match="sp:italics">
+    <em class="italics">
+        <xsl:apply-templates />
+    </em>
+</xsl:template>
+
 <xsl:template match="sp:inlinedesc">
     <span class="inlinedesc">[<xsl:apply-templates />]</span>
 </xsl:template>

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

 
 =item 2. XML-like tags.
 
-Supported tags are C<< <b> >> for bold tags, C<< <a href="..."> >> for
-hyperlinks, and an empty C<< <br /> >> tag for line-breaks.
+Supported tags are C<< <b> >> for bold text, C<< <i> >> for italics,
+C<< <a href="..."> >> for hyperlinks, and an empty C<< <br /> >> tag for line-breaks.
 
 =item 3. Entities
 
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.