| get_text_tei | R Documentation |
get_text_tei() requests a text for a play in 'TEI' format, given play
and corpus names. 'TEI' is an XML vocabulary, which makes it easy to extract
structural information \insertCitefischer2019programmablerdracor.
get_text_tei(play = NULL, corpus = NULL, ...)
play |
Character, name of a play (you can find all play names in
|
corpus |
Character, name of the corpus (you can find all corpus names in
|
... |
Additional arguments passed to |
TEI data parsed by
xml2::read_xml(). The document keeps the
TEI namespace, so XPath expressions need the d1: prefix, e.g.
xml2::xml_find_all(tei, "//d1:sp"). Run
xml2::xml_ns_strip(tei) if you prefer to use XPath without
prefixes.
get_text_df get_text_chr_spoken
tei_to_df
get_text_tei(play = "lessing-emilia-galotti", corpus = "ger")
# If you want a text in TEI without parsing by xml2::read_xml():
get_text_tei(play = "lessing-emilia-galotti", corpus = "ger", parse = FALSE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.