The semantic representation of literary texts from the oral tradition raises specific problems which may not be handled in a straightforward way. The definition of a markup using the XML-TEI standard is a viable option in order to deal with their peculiar features. This course will explore the basic principles of the TEI (Text Encoding Initiative) infrastructure, and then look at concrete cases