indic_transliteration.sanscript.schemes

class indic_transliteration.sanscript.schemes.Scheme(data=None, synonym_map=None, is_roman=True, name=None)[source]

Represents all of the data associated with a given scheme. In addition to storing whether or not a scheme is roman, Scheme partitions a scheme’s characters into important functional groups.

Scheme is just a subclass of dict.

Parameters:
  • data – a dict of initial values. Note that the particular characters present here are also assumed to be the _preferred_ transliterations when transliterating to this scheme.
  • synonym_map – A map from keys appearing in data to lists of symbols with equal meaning. For example: M -> [‘.n’, .’m’] in ITRANS. This synonym_map is not used in transliterating to this scheme.
  • is_romanTrue if the scheme is a romanization and False otherwise.
fix_lazy_anusvaara(data_in)[source]