1 / 36

ENG L501 text encoding workshop 16 September 2010

ENG L501 text encoding workshop 16 September 2010. Looking back….

indiya
Download Presentation

ENG L501 text encoding workshop 16 September 2010

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. ENG L501text encoding workshop16 September 2010

  2. Looking back… • It is important to remember the introduction of the World Wide Web in the mid-1990s in evaluating the statements of computing humanists, for prior to the Web's arrival, while a great deal was written on the uses of and audiences for electronic text, almost no one foresaw such a powerful tool for the wide distribution of electronic texts, or that wide distribution for a general reading public would become the most successful use made of electronic texts (Willett).

  3. Looking back, cont’d • Knowing the chronology of the genesis of the Internet, the 1987 initial meeting of the TEI and the creation of the Poughkeepsie Principles indicates a sharp vision by the first individuals and institutions who participated in the development of encoding guidelines.

  4. Still looking back… • Main types of e-text projects: • Concordance and Text Retrieval Programs • Literary Analysis • Linguistic Analysis • Stylometry and Attribution Studies • Textual Critical and Electronic Editions • Dictionaries and Lexical Databases

  5. For consideration… • … scholars developed a vision of the importance of electronic texts for the humanities, and developed the standards by which they are created (Willett). • Willett asks: What is Electronic Text? • an electronic transcription of a literary text • an encoded text • Sometimes there is an apparent divide between the ideas behind the creation of text and its use

  6. Text Encoding Overview: Introduction to TEI • Motivations for text encoding • Principles governing text encoding • Advantages of text encoding • Challenges with text encoding • Introduction to the Text Encoding Initiative (TEI)

  7. Motivations for Text Encoding • Store information • Access • Preservation • Share information • Searching/Browsing • Interoperability & Portability: Harvesting/Repurposing • Analyze information • Linguistic analysis • Concordances • Visualize information • Interactive timelines • Map-based interfaces

  8. Principles Governing Text Encoding • Representing the text (a.k.a. descriptive or document-centric markup) • Structural • Text divisions (chapters, sections, etc.), paragraphs, lists, tables, line groups, lines, etc. • Semantic • Metadata for the electronic and for the source document • References to people, places, events, organizations, etc. within the text (phrase-level) • Stylistic • Typographic features like bold, italics, small case, indentations, etc.

  9. TEI in Action: Indiana Magazine of History • Indiana Magazine of History • Swinburne Project

  10. Advantages of Text Encoding • Re-use and flexibility: build once, use many • Presentation and output of text controlled by style sheets (e.g., generate different views of the same text and different formats: PDF, HTML, etc.) • The document and the markup can serve as an object of analysis and increased discoverability

  11. Challenges with Text Encoding • Presentation is variable (difficult to predict); structure, however, is constant • Text encoding is not necessarily simple data entry/capture; interpretation and/or research are often at play • Text encoding is not neutral or objective (thus the need for specific encoding guidelines to govern encoding projects) • Text encoding is a strategic representation of the text (made more complicated by level of faithfulness to the source text) • Often, there’s more than one way to encode a particular aspect of the text

  12. Introduction to the Text Encoding Initiative (TEI) • Technically: a standards organization for humanities text encoding • Organizationally: an international membership consortium • Socially: a community of people and projects • For our purposes: a set of guidelines and XML specifications

  13. Quickie Introduction to XML • XML, or eXtensible Markup Language, is a meta language for creating markup languages suited for different tasks, domains, and disciplines. • An XML markup language consists of "tags" used to define the structure and other features of a text. • XHTML: • <p>(paragraph of text)</p> • <imgsrc="buffy.jpg"> • <a href="http://www.indiana.edu"> • TEI: • <sp who="#rosamond"> (speech) • <lg> (line group, stanza) • <p>(paragraph of text)</p>

  14. XML Key Terms • elements are the basic, named structural units of an XML document (nouns of encoding) • <title>The Odyssey</title> • attributes are name/value pairs (name="value") associated with elements (adjectives of encoding) • <creator type="author">Homer</creator> • An element may have multiple attributes • DTDs and Schema DTDs (Document Type Definitions) and Schema define the rules that govern a particular type of XML document. They declare elements and attributes and the allowable content for those elements and attributes (grammar rules)

  15. XML: Anatomy of an Element

  16. XML Representation: Boxes

  17. XML Representation: Tree

  18. XML Representation: Markup

  19. XML: Well-formed A well-formed document follows the basic rules of XML. These rules include: • Open and close all tags • Empty-element tags end with /> (e.g. <pb />) • There is a single root element • Elements may not overlap • Attribute values are quoted • < and & are only used to start tags and entity references • Only the five predefined entity references are used: &amp; &lt; &gt; &apos; &quot; • Plus more…

  20. XML: Validity A valid document is both well-formed and conforms to the rules of a DTD or Schema which adds further constraints on available elements and attributes and the allowable content of those elements and attributes. • lexicon or available vocabulary: elements & attributes • grammar for how the lexicon is used: rules for nesting, sequencing, etc. • e.g., a paragraph can be inside a chapter, but a chapter cannot be inside a paragraph • e.g., a chapter must begin with a heading followed by at least one paragraph

  21. Introduction to the TEI Guidelines and Tag Set • TEI Guidelines: Quick Overview • TEI P5 Guidelines • TEI Basic Components • Basic Markup: Prose • Basic Markup: Verse • Basic Markup: Drama • Basic Markup: Letters

  22. TEI Guidelines: Quick Overview • Text Encoding Initiative (TEI) / Guidelines for Electronic Text Encoding and Interchange (TEI) • The TEI Guidelines "are addressed to anyone who works with any text in electronic form. They provide means of representing those features of a text which need to be identified explicitly in order to facilitate processing of the text by computer programs” (Sperberg-McQueen). • TEI provides elements, attributes, and other mechanisms for encoding prose, poetry, drama, dictionaries, critical apparatus, linguistic corpora, and other scholarly and non-scholarly texts. • Can be applied strictly or loosely • Can adapt to local conditions • Designed as a set of modules/mechanisms that can be selected as needed

  23. TEI P5 Guidelines • P5 Guidelines:http://www.tei-c.org/release/doc/tei-p5-doc/en/html/index.html • Prose documentation with examples • P5 Tag/Element Set:http://www.tei-c.org/release/doc/tei-p5-doc/en/html/REF-ELEMENTS.html • “Data dictionary” view of the tag set with examples and relevant links to prose documentation

  24. TEI P5: Basic Components • <TEI>: The root element of a TEI document • <teiHeader>: The metadata header for a TEI document. Includes bibliographic, technical, administrative, and other metadata about the digital file and the analog source, if one exists. • <text>: The text itself, e.g., the title page and chapters of a novel, the acts and scenes of a drama, the books or cantos of a long poem. The <text> element is further subdivided into: • <front>: Front matter, e.g, the title page(s), table of contents, potentially a preface or dedication. • <body>: The main body of a document, excluding front and back matter. • <back>: Back matter, e.g., indices, appendices.

  25. TEI P5: Basic Markup: Prose • <div>: (division) is used for basic structural divisions of a text, e.g, volumes, chapters, sections, cantos, tables of contents, indices, appendices, etc. The @type attribute may be used to designate the type of the division. • <div type="chapter">…</div> • <div type="section">…</div> • <div type=”contents">…</div> • <div type="canto">…</div> • <head>: (heading) contains any type of heading, for example the title of a section, or the heading of a list, figure, table, etc. • <p>: (paragraph) • <pb>: (page break) marks the boundary between one page of a text and the next

  26. TEI P5: Basic Markup: Prose Chapter 1: The Manor House    Charles hadn’t visited the manor house since Easter,1955, and now he remembered why. “Hullo”, he called out as he walked up the drive, and then, as if to himself, “To be or not to be?, to walk or not to walk...oh, hang it all!” His meditation on Hamlet was interrupted as he collided with a peacock. “Sacré bleu!” he exclaimed with irritation, his sang-froid completely deserting him. It was going to be a long week. His catalog of irritations included:   1. The weather   2. The peacocks   3. His meager grasp of French

  27. TEI P5: Basic Markup: Prose

  28. TEI P5: Basic Markup: Verse/Poetry • <lg>: (line group) contains a group of verse lines functioning as a formal unit, e.g. a stanza, refrain, verse paragraph, etc. The @type and @subtype attributes may be used to classify the type of line group • <l>: (line) contains a line of verse

  29. TEI P5: Basic Markup: Poetry/Verse HEART-ECHOES FROM OLD SHELBY. "HEABT-ECHOES FROM OLD SHELBY!” Down the swiftly flying yearsComes a gentle retrospectionThat it fills mine eyes with tears, Bearing with it sainted mem'riesOf the days departed long,Thrilling all the halls of beingLike the cadence of a song! "HEART-ECHOES FROM OLD SHELBY!”Olden visions bring to me,And the dear forms rise in raptureThat I've longed so much to see,When the burdens that I've carriedHave produced a deadened spot, And the tears of disappointmentHave o'erflooded, blistering hot!

  30. TEI P5: Basic Markup: Poetry/Verse

  31. TEI P5: Basic Markup: Drama • <sp>: (speech) contains individual speech in a performance text, or a passage presented as such in a prose or verse text. • <speaker>: contains a specialized form of heading or label, giving the name of one or more speakers in a dramatic text or fragment. • <stage>: (stage direction) contains any kind of stage direction within a dramatic text or fragment.

  32. TEI P5: Basic Markup: Drama Scene 1 Enter Fay Fay: I say, Dinah, has anyone seen my gloves? Enter Dinah Dinah: No, miss, perhaps the parakeet has got them again? Exit Fay and Dinah

  33. TEI P5: Basic Markup: Drama

  34. TEI P5: Basic Markup: Letters • <opener>: groups together dateline, byline, salutation, and similar phrases appearing as a preliminary group at the start of a division, especially of a letter. • <closer>: groups together dateline, byline, salutation, and similar phrases appearing as a final group at the end of a division, especially of a letter. • <dateline>: contains a brief description of the place, date, time, etc. of production of a letter, prefixed or suffixed to it as a kind of heading or trailer. • <salute>: (salutation) contains a salutation or greeting in the closing of a letter, preface, etc. • <signed>: (signature) contains the closing salutation

  35. TEI P5: Basic Markup: Letters

  36. Hands-on Exercises: Basic Genres • https://wiki.dlib.indiana.edu/confluence/display/vwwp/Brief+Genre+Exercises • Open “genre examples” in a new tab or window in your browser • Launch Oxygen • Steps are in the wiki, but you can follow me, too. • Complete exercises one at a time: Prose, Verse, Drama and Letters • Save file:USB Flash Drive or Oncourse Drop Box

More Related