cmt.converter

cmt.converter.v0

class cmt.converter.v0.Converter

Bases: cmt.a_converter.AConverter

static convert_to(source, target)

Convert to the other map format of same version.

Return type

Union[CMap, ECMap]

static downgrade(source)

Downgrade to the format version below.

Return type

None

static upgrade(source)

Upgrade to the format version above.

Return type

Union[CMap, ECMap]

cmt.converter.v1

class cmt.converter.v1.Converter

Bases: cmt.a_converter.AConverter

static convert_to(source, target)

Convert to the other map format of same version.

Return type

Union[CMap, ECMap]

static downgrade(source)

Downgrade to the format version below.

Return type

Union[CMap, ECMap]

static upgrade(source)

Upgrade to the format version above.

Return type

Union[Forwardref, Forwardref]