﻿<?xml version="1.0" encoding="UTF-8"?>

<!DOCTYPE DHQarticle [
<!ENTITY mdash "&#8212;">
]>
<?oxygen RNGSchema="../DHQ-schemas/DHQauthor.rng" type="xml"?>
<!--<?oxygen SCHSchema="../DHQ-schemas/DHQauthor-ready.sch"?>-->
<?xml-stylesheet type="text/xsl" href="DHQarticle-proof-html.xsl"?>
<DHQarticle xmlns="http://digitalhumanities.org/DHQ/namespace"
  xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
  xmlns:ns="http://digitalhumanities.org/DHQ/namespace"
  xmlns:cc="http://web.resource.org/cc/">
  <DHQheader>
    <title>DHQ Tag Menagerie (Monkey House)</title>
    <author>
      <name>Wendell <family>Piez</family></name>
    </author>
    <author>
      <name>Julia <family>Flanders</family></name>
    </author>
    <author><name>friends</name></author>
    <!--<publicationStmt>
      <idno type="DHQarticle-id">001</idno>
      <idno type="volume">1</idno>
      <idno type="issue">1</idno>
      <issueTitle>Summer 2008</issueTitle>
      <articleType>article</articleType>
      <date when="2008-07">July 2008</date>
      <availability>
        <cc:License rdf:about="http://creativecommons.org/licenses/by-nc-nd/2.5/"/>
      </availability>
    </publicationStmt>-->
    <langUsage>
      <language id="en" role="primary"/>
    </langUsage>
    <history>
      <revisionDesc>
        <change who="wap" when="2007-01-11">Forked DHQ Tag Zoo - this is now "Monkey House" (the
            pathological examples)</change>
        <change who="jf" when="2006-09-06">Modified document for content and clarity</change>
        <change when="2005-10-10" who="wap">The header model now being stitched in, some metadata is added,
            including this revisionDesc.</change>
      </revisionDesc>
    </history>
    <abstract>
      <p>This tag zoo is intended to demonstrate the use of the various tags in
        the DHQ authoring markup language.</p>
      <p>An abstract is conceived of as a full block of markup, with structured
        paragraphs.</p>
      <p>Lists and other complex structures may even appear in abstracts, such
        as <list type="unordered">
          <item>examples, figures, and quotes (or should we prohibit figures?)</item>
          <item>lines and line groups</item>
          <item>you never know...</item>
        </list> In practice we may want to guard how abstracts map into other
        formats (e.g. RSS).</p>
      <p>In any case abstracts are not a single block, but may contain
        paragraphs.</p>
    </abstract>
    <teaser>In contrast to abstracts, teasers are just inline, quick indicators,
      having inline content like <emph>emphasis</emph>.</teaser>
  </DHQheader>
  <text>
    <head>DHQ Tag Menagerie</head>
    <epigraph>
      <quote rend="block">
        <p>There's nothing like a good epigraph.</p>
      </quote>
      <ref>Anonymous</ref>
    </epigraph>
    <p>This tag menagerie describes, and enacts, the tags available in the DHQ
      authoring schema. To see how any of the features in this document are
      encoded, just take a look at the source. The formatting, of course, is
      controlled by a stylesheet. If you're familiar with the TEI, you'll find
      the DHQ schema very familiar. It sticks close to vanilla TEI in many ways,
      but introduces some modifications to simplify authoring and to provide
      some added flexibility.</p>
    <p>Heads are allowed but not required for each division of the text. Other
      things (like figures, tables, and bibliographic entries) have labels
      rather than heads; a head is something that might get listed in a table of
      contents for the article.</p>
    <p>A DHQ document can consist of just paragraphs, but if it has any sections
      in it they should be encoded with <code>&lt;div&gt;</code>.</p>
    <div id="div1">
      <head>Basic block-level features</head>
      <p>DHQ markup allows block quotes, which may contain prose or verse.
        Here's one with a line group: <quote rend="block">
          <lg>
            <l>From perfect grief there need not be</l>
            <l>Wisdom, or even memory;</l>
            <l>One thing then learnt remains to me: —</l>
            <l>The woodspurge has a cup of three</l>
          </lg>
        </quote></p>
      <p>And here's another with some prose: <quote rend="block">The block quote
          can contain either paragraphs or ordinary text with inline markup
          (discussed in the next section).</quote></p>
      <p>Along with your usual run of paragraphs, such as this one, it's also
        possible to write in verse (in addition to quoting it).</p>
      <lg>
        <l>What's worse</l>
        <l>Is verse</l>
      </lg>
      <p>Paragraphs can also include things that are explicitly marked as
        examples, such as: <example>
          <label>An example</label>
          <p>Examples appear in many shapes and sizes, being another recursive
            structure (and hence, source for much fun and many confusions).</p>
        </example> ...but then going on to conclude with the end of the
        paragraph.</p>
      <p>You can include simple tables in your markup, consisting of rows and
        cells, with a label at the top and a caption to follow:</p>
      <table>
        <label>German Immigration to the US since 1820</label>
        <row>
          <cell role="label">Decade</cell>
          <cell role="label">Total Immigration</cell>
          <cell role="label">German</cell>
          <cell role="label">% of Total</cell>
        </row>
        <row>
          <cell>1820-29</cell>
          <cell>128,502</cell>
          <cell>5,753</cell>
          <cell>4.5</cell>
        </row>
        <row>
          <cell>1830-39</cell>
          <cell>538,381</cell>
          <cell>124,726</cell>
          <cell>23.2</cell>
        </row>
        <row>
          <cell>1840-49</cell>
          <cell>1,427,337</cell>
          <cell>385,434</cell>
          <cell>27.0</cell>
        </row>
        <row>
          <cell>1850-59</cell>
          <cell>2,814,554</cell>
          <cell>976,072</cell>
          <cell>34.7</cell>
        </row>
        <row>
          <cell>1860-69</cell>
          <cell>2,081,261</cell>
          <cell>723,734</cell>
          <cell>34.8</cell>
        </row>
        <row>
          <cell>1870-79</cell>
          <cell>2,742,137</cell>
          <cell>751,769</cell>
          <cell>27.4</cell>
        </row>
        <row>
          <cell>1880-89</cell>
          <cell>5,248,568</cell>
          <cell>1,445,181</cell>
          <cell>27.5</cell>
        </row>
        <row>
          <cell>1890-99</cell>
          <cell>3,694,294</cell>
          <cell>579,072</cell>
          <cell>15.7</cell>
        </row>
        <row>
          <cell>1900-09</cell>
          <cell>8,202,388</cell>
          <cell>328,722</cell>
          <cell>4.0</cell>
        </row>
        <row>
          <cell>1910-19</cell>
          <cell>6,347,380</cell>
          <cell>174,227</cell>
          <cell>2.7</cell>
        </row>
        <row>
          <cell>1920-29</cell>
          <cell>4,295,510</cell>
          <cell>386,634</cell>
          <cell>9.0</cell>
        </row>
        <row>
          <cell>1930-39</cell>
          <cell>699,375</cell>
          <cell>119,107</cell>
          <cell>17.0</cell>
        </row>
        <row>
          <cell>1940-49</cell>
          <cell>856,608</cell>
          <cell>117,506</cell>
          <cell>14.0</cell>
        </row>
        <row>
          <cell>1950-59</cell>
          <cell>2,499,268</cell>
          <cell>576,905</cell>
          <cell>23.1</cell>
        </row>
        <row>
          <cell>1960-69</cell>
          <cell>3,213,749</cell>
          <cell>209,616</cell>
          <cell>6.5</cell>
        </row>
        <row>
          <cell>1971-80</cell>
          <cell>4,493,000</cell>
          <cell>66,000</cell>
          <cell>1.5</cell>
        </row>
        <row>
          <cell>1981-88</cell>
          <cell>4,711,000</cell>
          <cell>55,800</cell>
          <cell>1.2</cell>
        </row>
        <row>
          <cell role="label">Totals</cell>
          <cell>49,753,412</cell>
          <cell>7,028,258</cell>
          <cell>14.1</cell>
        </row>
        <caption>
          <p>Source: <bibl id="USCensus"><label>US Census
                Historical</label><author>U. S. Bureau of the Census</author>,
                <title>Historical Statistics of the United States: Colonial
                Times to 1970</title>. Washington DC, 1975; p 15</bibl>;
                <bibl><label>US Census Statistical Abstract</label>
              <author>U. S. Bureau of the Census</author>. <title>Statistical
                Abstract of the United States</title>.. Washington DC, 1990; p
              10</bibl>.</p>
        </caption>
      </table>
    </div>
    <div id="div2">
      <head>Lists</head>
      <p>Lists can go anywhere, and come in many flavors. They can be simple and
        unadorned, like this one, which lists the kinds of lists you can have:
          <list type="simple">
          <item>bullet lists</item>
          <item>numbered lists</item>
          <item>plain "unordered" lists</item>
          <item>glossaries</item>
          <item>etc. etc.</item>
        </list></p>
      <p>Bulleted (<called>unordered</called> lists are also an option: <list
          type="unordered">
          <item>bullet lists</item>
          <item>numbered lists</item>
          <item>plain lists</item>
          <item>glossaries</item>
          <item>etc. etc.</item>
        </list></p>
      <p>A glossary list, which should be encoded with a label inside each item:
          <list type="gloss">
          <item>
            <label>Ectoplasm</label>
            <p>An unknown substance which emanates from the bodies of mediums,
              correlating to supernatural phenomena.</p>
          </item>
          <item>
            <label>EMF Detector</label>
            <p>Instrument that measures electrical management fields
              (<emph>sic</emph>).</p>
          </item>
          <item>
            <label>Psychic Cold</label>
            <p>The cold sensation received when a spirit is present, usually
              having defined boundaries.</p>
          </item>
        </list></p>
      <p>And finally, a numbered (<called>ordered</called> list; the numbers are
        generated by the stylesheet: <list type="ordered">
          <item>First thing</item>
          <item>Second thing</item>
          <item>Third thing</item>
        </list></p>
    </div>
    <div>
      <head>Phrase-level markup</head>
      <p>DHQ thinks it's useful to mark interesting features in the content of
        articles, as well as the overall structure, and we include a number of
        tags for that purpose. Paragraphs (and similar things like block quotes,
        verse, abstracts, etc.) may include inline quotations from other sources
          (<quote rend="inline">to be or not to be?</quote>) text which is in
        quotes to draw attention to it (this <called>documentation</called>
        scarcely deserves the name). Then there are cited quotes, provided
        with references, such as <cit><quote rend="inline">to be or not
        to be</quote><bibl><label>Piez 2008</label>Wendell Piez 2008</bibl></cit>.
        They might also have special terminology
          (<term>terms</term>), or terms from some other <foreign>lingua
        franca</foreign>, unfairly called <called>foreign</called>. They have
          <code>code||pseudo-code</code> and <emph>emphasized text</emph> (by
        which we mean <emph>stressed</emph>). We also suggest that you mark up
        significant names like <name>Roberto Busa</name>, as well as titles of
        articles, journals, and books (<title rend="quotes">What is Text
        Really?</title>, <title>Digital Humanities Quarterly</title>, <title>The
          Blackwells Companion to Digital Humanities</title>).</p>
      <p>Paragraphs can also include examples of code or encoding, such as this
        bit of stylesheet:
        <eg xml:space="preserve">&lt;xsl:template match="q:eg"&gt;
  &lt;pre class="eg"&gt;
    &lt;xsl:apply-templates/&gt;
  &lt;/pre&gt;
&lt;/xsl:template&gt;</eg>If
        you want to include examples of XML markup, enclose them in a CDATA
        marked section (as in the example just given).</p>
      <p>Finally, there's an all-purpose <gi>hi</gi> tag, capable of providing
        various sorts of inline rendering, alone or together, such as <hi rend="bold">bold</hi>,
        <hi rend="italic">italic</hi>, <hi rend="bold italic">bold italic</hi>,
        <hi rend="quotes">quotes</hi>, <hi rend="bold quotes">bold quotes</hi>
        <hi rend="superscript">superscript</hi>, <hi rend="italic superscript">italic
        superscript</hi>, <hi rend="bold monospace underline">bold
          monospace underline</hi>, and even <hi rend="bold monospace underline strikethrough">bold
          monospace underline strikethrough x</hi>. Whew!</p>
        
    </div>
    <div>
      <head>Figures, notes and cross-references</head>
      <p>You can include as many figures as you like. They're encoded in several
        parts (view the source of this document to see how the following example
        is encoded). The essential bits are the pointer to the graphic itself,
        and the figure description (which is provided for accessibility
        reasons). You can also include a label at the top and a descriptive
        caption at the bottom.</p>
      <p>While figures can appear anywhere in the text (like this one), they may
        also be relegated to a special section in the back matter (for more
        convenient conversion from some formats into DHQauthor). Any given
        figure should appear only once, however; if you place any figures at the
        end, you may refer to them in the text but you need not duplicate them
        there. <figure id="fig01">
          <label>Screen shot from Cybergeography</label>
          <graphic url="cybergeography.gif" type="image/gif"/>
          <figDesc>A screen shot showing a multidimensional display of an
            information universe.</figDesc>
          <caption>This screen shot was taken on September 5, 2007, and
          shows...</caption>
        </figure></p>
      <p>References to works cited should take the form of a
          <code>&lt;ptr&gt;</code> element whose target attribute points
        to one of the works in your bibliography. The appropriate citation will
        be generated automatically, along with its punctuation <ptr loc="xii"
          target="#anonymous1995"/> and any internal location (coded with a
          <att>loc</att> attribute) you may have assigned it. Additionally,
        anomalously-formatted references can be coded simply by creating a
        hyperlink with a <tag>ref</tag>: (<ref target="#anonymous1995">Anon.,
          1995</ref>). The bibliography for your article will go at the end. You
        can also insert references to external sites (such as the <ref
          target="http://www.w3.org">World Wide Web Consortium</ref>), either
        as web-style links (like that one) or as simple <gi>ptr</gi> elements whose
        link content will be generated, such as <ptr target="http://www.w3.org"/>). Finally, you can cross-referenceto
          <ref target="#div1">other sections</ref> in the text.</p>
      <p>You can also include notes, such as this one<note>A note provides
          commentary and extra information and even references to citations
            <bibl id="dhq00">
            <label>DHQ 2006</label><author>DHQ committee</author>. <title
              rend="quotes">Citations and their misuses</title>. <title
              rend="italic">DHQ</title>
            <vol>0</vol>, <date>2006</date>.</bibl>. But any citation
          (<tag>bibl</tag>) elements used here will be displayed with the other
          citations in the back matter, just as usual.</note> if you like. Notes
        can be encoded inline, or at the end of the document (in a
        <tag>notes</tag> element), and simply referenced with a
          <tag>ptr</tag>.<ptr target="#note-tip"/>. (You can also refer to a
        note more than once using <tag>ptr</tag>.<ptr target="#note-tip"/>)</p>
    </div>
    <div>
      <head>Included texts</head>
      <p>Sometimes you need to be able to embed an entire text inside your own
        text--it might be a sample document, or an extended quotation that has
        internal subdivisions and can't easily be accommodated using the
          <code>&lt;quote&lt;</code> element. We provide a special
        element called <called>xtext</called> which can go within
          <code>&lt;div&gt;</code> or <code>&lt;text&gt;</code>.
        It has the same basic internal structure as
        <code>&lt;text&gt;</code>.</p>
      <xtext>
        <head>A sample xtext</head>
        <div>
          <head>The first division</head>
          <xtext>
            <head>Which contains another xtext.</head>
            <p>Stories inside stories; Scheherezade, eat your heart out. This
              nesting of xtexts is permitted by the schema, but expect to get
              warnings for it (you shouldn't do it without a good reason).</p>
          </xtext>
        </div>
      </xtext>
    </div>
  </text>
  <notes>
    <note id="note-tip">Notes can be placed here or inline. All notes, placed in
      either place, may be formatted either as footnotes or endnotes (determined
      by the production process).</note>
  </notes>
  <listBibl>
    <bibl id="anonymous1995"><label>Anonymous
        1995</label><author>Anonymous</author><title rend="quotes">Automatic
        Generation of Citation Formats</title>, <title>Journal of Dull But
        Essential Processes</title>, <vol>113:1</vol>, <date>1995</date>.</bibl>
  </listBibl>
  <appendix>
    <head>An Appendix</head>
    <letter>
      <opener>
        <dateline>Sep 23 2005</dateline>
        <salute>Dear Correspondent</salute>
      </opener>
      <p>Here's a letter, to be published as an appendix in an article. If you
        please.</p>
      <closer>
        <signed>Your servant, the Encoder</signed>
      </closer>
    </letter>
  </appendix>
</DHQarticle>
