Learn R Programming

multicastR (version 1.3.0)

mc_eaf_to_tex: Format object language texts and translations for TeX (WIP)

Description

mc_eaf_to_tex reads Multi-CAST EAF files and transforms the contents of the utterance_id, utterance, and utterance_translation tiers into a file with LaTeX markup that can be rendered as a multi-column parallel text by the TeX package paracol. Regular users of multicastR will likely find no use for this function; it's sole purpose is to facilitate the creation of the 'Translated texts' supplementary materials included with Multi-CAST.

Usage

mc_eaf_to_tex(readfrom = getwd(), recursive = FALSE,
  writeto = getwd())

Arguments

readfrom

Directory from which to read EAF files. Defaults to the current working directory.

recursive

Logical. If TRUE, the function recurses into subdirectories.

writeto

A directory to which to write output. Defaults to getwd.

Value

Nothing.

Examples

Run this code
# NOT RUN {
  # read all EAF files in the current working directory,
  # then write TeX files to the same location
  mc_eaf_to_tex()
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab