Electronic Text Creation: Two-Day Workshop on the TEI

Setting up your very own TEI encoding system that's free and has a friendly interface

Last updated October 21, 2003 10:34 AM CDT

This may look complicated, but it's really not so bad. The price of using free software is that you have to get your hands a little dirty, but it's quite rewarding when you get it to work! If you have questions or problems, please email Kevin.

You may want to print these instructions to make your life easier, but you'll need this page for the links to download.

  1. Connect to the Internet.
  2. Setup a JVM for your computer platform:
  3. Next you need to download and install jEdit:
  4. Close any extra windows that are open on your desktop (except these directions).
  5. Open the jEdit program for the first time. The first time you run the program, it opens the help window so you can read about the program. Read as much as you desire and close the window. In the future when you open jEdit, the Tip of the Day. This will appear every time you start the program unless you disable it by unchecking the checkbox.
  6. In the main jEdit window, go to Plugins -> Plugin Manager... Click Install Plugins. Check the following plugins (category names given before the colon):
  7. Click Install. When the plugin download process finishes, click OK. Then click Close.
  8. Exit jEdit.
  9. Download and extract our zip file of things you'll need for working in TEI:
  10. You may now disconnect from the Internet and close any extra windows that are open.
  11. Open the jEdit program.
  12. Go to File -> Open... and open catalog.tei:
  13. Go to File -> Open... and open hellotei.xml:
  14. Go to Search -> Find... In Search for, type &DTDpath; (including the ampersand and semicolon and the same capitalization), and then choose the appropriate one of the following:
  15. Choose the radio button for searching in All buffers. Remove *.xml from the Filter. Click Replace All and then Close. Go to File -> Save All.... Click Yes. Then go to File -> Close All.
  16. Go to Utilities -> Global Options... (still inside jEdit).
    1. In the left-hand pane, choose jEdit -> Docking. In the right-hand pane, scroll down to Structure Browser, and to the right of it choose right from the drop-down box. Do the same for XML Insert, just below Structure Browser. Mac OS X users may want to choose left for both of these instead of right so they don't interfere with your Mac OS docks.
    2. In the left-hand pane, choose jEdit -> Editing. In the right-hand pane, next to Change settings for mode (not Default edit mode), open the drop-down box. Scroll down to xsl. Uncheck Use default settings. Set Indent width to 2. Do the same for the xml mode (next to Change settings for mode just below xsl).
    3. In the left-hand pane, choose jEdit -> Loading & Saving. In the right-hand pane, next to Default character encoding, choose UTF8.
    4. In the left-hand pane, choose Plugins -> Buffer Tabs. Check Enable Buffer Tabs by default.
    5. In the left-hand pane, choose Plugins -> Sidekick. In the right-hand pane, check Parse on keystroke.
    6. In the left-hand pane, choose Plugins -> XML (you have to double-click this) -> Catalogs. In the right-hand pane, click the +. Find catalog.tei in the p4 folder (/Program Files/jEdit 4.1/tei/p4/ in Windows and /usr/local/sgml/tei/p4/ in Mac OS X) and click Open.
    7. Click OK to save these changes to the global settings.
  17. Click once on the buttons Structure Browser and XML Insert allong the right-hand side of the text editing area.
  18. Exit jEdit and open the jEdit program again.
  19. Open hellotei.xml (our test file). If no text in the file is underlined, you've done it! This is a sample TEI-conformant file that you can use as a template for other files.

Back to Introduction to TEI: Information for Participants


Kevin Hawkins

October 21, 2003 10:34 AM CDT