gloss_example: Gloss an example

Description Usage Arguments Value Author(s) Examples

View source: R/gloss_example.R

Description

Creates an interlinear glossed example for linguistics.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
gloss_example(
  transliteration,
  glosses,
  free_translation = "",
  comment = "",
  annotation = NULL,
  line_length = 70,
  italic_transliteration = TRUE,
  drop_transliteration = FALSE,
  intext = FALSE,
  write_to_db = TRUE
)

Arguments

transliteration

character vector of the length one for the transliteration line.

glosses

character vector of the length one for the glosses line.

free_translation

character vector of the length one for the free translation line.

comment

character vector of the length one for the comment line (under the free translation line).

annotation

character vector of the length one for the annotation line (above translation).

line_length

integer vector of the length one that denotes maximum number of characters per one line.

italic_transliteration

logical variable that denotes, whether user wants to italicize your example.

drop_transliteration

logical variable that denotes, whether user wants to have an example without transliteration.

intext

logical variable that denotes, whether example should be considered as part of the text (TRUE) or as a standalone paragraph (FALSE)

write_to_db

logical variable that denotes, whether example should be added to the example database.

Value

html/latex output(s) with glossed examples.

Author(s)

George Moroz <agricolamz@gmail.com>

Examples

1
2
3
4
5
6
7
8
9
gloss_example("bur-e-**ri** c'in-ne-s:u",
              "fly-NPST-**INF** know-HAB-NEG",
              "I cannot fly. (Zilo Andi, East Caucasian)",
              comment = "(lit. do not know how to)")

gloss_example("bur-e-**ri** c'in-ne-s:u",
              "fly-NPST-**INF** know-HAB-NEG",
              "I cannot fly.",
              intext = TRUE)

agricolamz/lingglosses documentation built on Jan. 14, 2022, 9:41 p.m.