pyexlatex.texgen.replacements package

Submodules

pyexlatex.texgen.replacements.file module

pyexlatex.texgen.replacements.file.general_latex_replacements(string)[source]

pyexlatex.texgen.replacements.filename module

pyexlatex.texgen.replacements.filename.latex_filename_replacements(string)[source]

pyexlatex.texgen.replacements.replacer module

class pyexlatex.texgen.replacements.replacer.Replacer(replacement_dict, escape_next_character_characters=None, escape_until_same_next_character_characters=None)[source]

Bases: object

__init__(replacement_dict, escape_next_character_characters=None, escape_until_same_next_character_characters=None)[source]
Args:

replacement_dict: dict where keys are strings to be replaced, and values are replacements escape_next_character_characters: list of one character strings for which after that character,

the next character should not be replaced

escape_until_same_next_character_characters: list of one character strings for which after that

character, until this same character is seen again, characters should not be replaced

property first_letters: List[str]
Return type

List[str]

replace(string)[source]
Return type

str

property unique_full_first_letter_replacements: Dict[str, str]
Return type

Dict[str, str]