Encoding Exercises
- Brief Genre Samples: Prose, Verse, Drama and Letters (PDF document)
Getting Started with the Sample Exercises
Getting Started with the Sample Exercises
- Launch Oxygen editor (see Oxygen User Manual or the DLP's Tips to Using Oxygen for help with the editor)
- Select "File" from the menu bar
- Select "New" for new file
- When the dialog box appears, select "from templates"
- Scroll down and select TEI P5 All
- Now you have a basic TEI template to work with using the P5 All schema
- Encode each sample genre in a separate XML file (repeat steps 1-5 for the next sample)
- Copy and paste text from PDF document (easier than transcribing!)
Skip encoding the TEI Header as part of this exercise
Encoding Genres: Review
We will review the encoding exercise together as a class on 9/23/2010
- Example Encoding of Genres, a Subset (if you get stuck, but resist the temptation of looking before you give it a try)
Validate
This project uses a schema, which makes sure the XML document is well-structured. Your Oxygen editor automatically knows this information. The Oxygen editor will show you a green box towards the top-right of the editor if the file is valid or a red box if the file is invalid. As you are encoding, validate often to catch errors before they escalate
To validate and XML/TEI file already open in the Oxygen editor:
- Select the "validate document" icon (red checkmark)
- Or in the menus, select "Document" => "Validate" => "Validate Document"
If the file is valid, you will see:
- Green box towards the top-right of the editor
- Green box on the bottom of the editor that reads: "Document is valid"
If the file is invalid, you will see:
- Red box towards the top-right of the editor
- Red box on the bottom of the editor that reads: "Validation-failed. Errors: #"
- Error messages in a bottom pane
- Click on each error message to position the cursor near the error (often the error is somewhere before the cursor, often a line or more of code above)
- If the error message is cut off, right-click on the error message and select "Show message"
Once you fix the errors, re-validate the document.
Wrapping up with the Sample Exercises
- Contact Angela or Michelle via email if you need any help completing the encoding the days following class.
- Reference Example Encoding of Genres to compare your markup with that in the example file
- Save your work by either copying XML files to a USB flash drive or uploading to your Oncourse Drop Box (in folder labeled: Genre Encoding Exercises, 9/16)