module fromtex

Inheritance diagram of lecture_citation.fromtex

Short summary

module lecture_citation.fromtex

Extracts old quote from tex files.

source on GitHub

Classes

class

truncated documentation

FormatException

Raised when not able to interpret a line.

Functions

function

truncated documentation

enumerate_quotes

Enumerates quote from a filename or a stream

Documentation

Extracts old quote from tex files.

source on GitHub

exception lecture_citation.fromtex.FormatException[source]

Bases : Exception

Raised when not able to interpret a line.

source on GitHub

lecture_citation.fromtex.enumerate_quotes(filename, encoding='utf-8', empty_name='Inconnu')[source]

Enumerates quote from a filename or a stream

Paramètres
  • filename – filename or stream

  • encoding – applicable only if filename

  • empty_name – replces an empty author name

Renvoie

enumerate on quote

A quote is defined a dictionary.

source on GitHub