<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/css" href="../stylesheets/yaps-tei.css"?>
<?oxygen RNGSchema="../schema/yaps.rnc" type="compact"?>
<?oxygen SCHSchema="../schema/yaps.sch"?>
<TEI xmlns="http://www.wwp.brown.edu/ns/yaps/1.0" xmlns:xi="http://www.w3.org/2001/XInclude">
  <teiHeader>
    <fileDesc>
      <titleStmt>
        <title>Encoding Rendition</title>
        <author>Julia Flanders</author>
      </titleStmt>
      <xi:include href="./boilerplate_publicationStmt.xml">
        <xi:fallback>
          <publicationStmt status="restricted">
            <note type="auto">WARNING: XInclude processing failed &#x2014; this file should not be copied or
            used (and is invalid) as a result.</note>
          </publicationStmt>
        </xi:fallback>
      </xi:include>
      <sourceDesc>
        <p>This is the source.</p>
      </sourceDesc>
    </fileDesc>
    <revisionDesc>
      <change when="2006-03-13" who="#SB">automatically converted from presentation.odd conforming to
      yaps.odd conforming using p2y.xslt and p2y.perl</change>
    </revisionDesc>
  </teiHeader>
  <text>
    <presentation>
      <section><head>Renditional markup</head>
	<slide>
	  
	  <p>Distinguish (again) between: <list>
	      <item>representation of the source (markup)</item>
	      <item>presentation of the output (stylesheet)</item>
	    </list></p>
	</slide>
      </section><section><head>TEI markup for rendition</head>
	<slide>
	  
	  <p>All packed into the <att>rend</att> attribute</p>
	  <p>Simple approach: one fact at a time</p>
	  <list rend="unordered">
	    <item>
	      <tag>name rend="italic"</tag>
	    </item>
	    <item>
	      <tag>p rend="indent"</tag>
	    </item>
	    <item>
	      <tag>text rend="blackletter"</tag>
	    </item>
	  </list>
	</slide>
      </section><section><head>Problems</head>
	<slide>
	  
	  <list rend="unordered">
	    <item>Inheritance: how is information inherited from parent elements?</item>
	    <item>Values tend to proliferate uselessly: <att>rend</att><val>italicbold</val> vs.
	      <att>rend</att><val>bolditalic</val></item>
	    <item>Sometimes this approach is just too simple</item>
	  </list>
	</slide>
      </section><section><head>Fancy renditional markup</head>
	<slide>
	  
	  <p>Complex solution: pack it all in</p>
	  <p>Let <att>rend</att> contain structured information:</p>
	  <eg><![CDATA[<head rend="case(upper)slant(italic)align(center)">]]></eg>
	  <eg><![CDATA[<head rend="font-style:italic; text-align:center;">]]></eg>
	</slide>
      </section><section><head>Sample values</head>
	<slide>
	  
	  <list>
	    <item> case (upper, lower, mixed) </item>
	    <item> slant (italic, upright) </item>
	    <item> weight (bold, normal) </item>
	    <item> align (left, right, center) </item>
	    <item> indent (a number…) </item>
	    <item> pre (a string…) </item>
	    <item> post (a string…) </item>
	  </list>
	</slide>
      </section><section><head>Extended example</head><slide>
	  <eg><![CDATA[<note rend="slant(italic) align(left) indent(1)
            first-indent(2) pre(*) place(foot)
            break(yes) face(roman)">]]></eg></slide></section>
    </presentation>
  </text>
</TEI>
