Python LMF library
 All Classes Namespaces Files Functions Variables
Functions | Variables
pylmflib.pylmflib.config.tex Namespace Reference

Functions

def lmf_to_tex
 Function giving order in which information must be written in LaTeX and mapping between LMF representation and LaTeX (output) More...
 

Variables

tuple partOfSpeech_tex
 Mapping between LMF part of speech LexicalEntry attribute value and LaTeX layout (output) More...
 
tuple paradigmLabel_tex
 Mapping between LMF paradigmLabel Paradigm attribute value and LaTeX layout (output) More...
 

Function Documentation

def pylmflib.pylmflib.config.tex.lmf_to_tex (   lexical_entry,
  font = None,
  partOfSpeech_mapping = partOfSpeech_tex,
  languages = [VERNACULAR,
  ENGLISH,
  NATIONAL,
  REGIONAL 
)

Function giving order in which information must be written in LaTeX and mapping between LMF representation and LaTeX (output)

Function to convert LMF lexical entry information to be written into LaTeX commands.

Parameters
lexical_entryThe Lexical Entry LMF instance to display.
fontA Python dictionary describing fonts to use for different languages.
partOfSpeech_mappingA Python dictionary giving abbreviations for LMF part of speech values.
languagesA list of languages to consider for LaTeX layout (all by default).
Returns
A string representing the lexical entry in LaTeX format.

Definition at line 62 of file tex.py.

Variable Documentation

tuple pylmflib.pylmflib.config.tex.paradigmLabel_tex
Initial value:
1 = dict({
2 })

Mapping between LMF paradigmLabel Paradigm attribute value and LaTeX layout (output)

Definition at line 58 of file tex.py.

tuple pylmflib.pylmflib.config.tex.partOfSpeech_tex

Mapping between LMF part of speech LexicalEntry attribute value and LaTeX layout (output)

Definition at line 11 of file tex.py.