gloss_render: Render a gloss

gloss_renderR Documentation

Render a gloss

Description

These functions are output-specific and can be used to check the specific output of certain calls, but are not meant to be used in an R Markdown file. Instead, use as_gloss() or gloss_df().

Usage

gloss_pdf(gloss)

gloss_html(gloss, numbering = TRUE)

gloss_tooltip(gloss, numbering = TRUE)

gloss_leipzig(gloss, numbering = TRUE)

gloss_word(gloss, numbering = TRUE)

Arguments

gloss

Object of class gloss_data

numbering

Whether the gloss should be numbered (in HTML and Word).

Value

Object of class gloss.

Functions

  • gloss_pdf(): Render in PDF

  • gloss_html(): Render in HTML

  • gloss_tooltip(): Tooltip rendering for HTML

  • gloss_leipzig(): Leipzig.js engine

  • gloss_word(): Render in Word

Examples

ex_sp <- "Un ejemplo en espaƱol"
ex_gloss <- "DET.M.SG example in Spanish"
ex_trans <- "An example in Spanish"
my_gloss <- new_gloss_data(list(ex_sp, ex_gloss), translation = ex_trans, label="ex1")
gloss_pdf(my_gloss)

gloss_html(my_gloss)

glossr documentation built on May 29, 2024, 11:53 a.m.