Cosimo Lupo c42c4162c2
add otConverter for namedtuples and use it for Variable{Scalar,Position,Distance}
in COLRv1 all scalar values have associated varIdx to support variations. I want to load them as
immutable namedtuples, and also I want to dump them as simple XML tags with 'value' and 'varIdx'
attributes, instead of normal otTables (i.e. with nested Value and VarIdx sub-elements) as
that would make them too verbose in the XML dump.
So I made a custom _NamedTupleConverter, as a base class for VariableScalar, etc.; sub-classes
must provide a tupleClass and a list of converterClasses for each namedtuple field.

The ExtendMode enum has also a custom converter to dump it as string in the XML, and load it
as IntEnum.

fixup
2020-03-06 18:35:32 +00:00
..
2019-08-09 12:20:13 +01:00
2019-08-09 12:20:13 +01:00
2019-08-09 12:20:13 +01:00
2019-08-09 12:20:13 +01:00
2019-08-09 12:20:13 +01:00
2019-08-09 12:20:13 +01:00
2019-08-09 12:20:13 +01:00
2019-08-09 12:20:13 +01:00
2019-08-09 12:20:13 +01:00
2019-08-09 12:20:13 +01:00
2019-08-09 12:20:13 +01:00
2019-08-09 12:20:13 +01:00
2019-08-09 12:20:13 +01:00
2019-08-09 12:20:13 +01:00
2019-08-09 12:20:13 +01:00
2019-08-09 12:20:13 +01:00
2019-08-09 12:20:13 +01:00
2019-08-09 12:20:13 +01:00
2019-08-09 12:20:13 +01:00
2019-08-09 12:20:13 +01:00
2019-08-09 12:20:13 +01:00
2019-08-09 12:20:13 +01:00
2019-08-09 12:20:13 +01:00
2019-08-09 12:20:13 +01:00
2019-08-09 12:20:13 +01:00
2019-08-09 12:20:13 +01:00
2019-08-09 12:20:13 +01:00
2019-08-09 12:20:13 +01:00
2019-08-09 12:20:13 +01:00
2019-08-09 12:20:13 +01:00
2019-08-09 12:20:13 +01:00
2019-08-09 12:20:13 +01:00
2019-08-09 12:20:13 +01:00
2019-08-09 12:20:13 +01:00
2019-08-09 12:20:13 +01:00
2019-02-28 11:00:29 -08:00
2019-08-09 12:20:13 +01:00
2019-08-09 12:20:13 +01:00
2019-08-09 12:20:13 +01:00
2019-08-09 12:20:13 +01:00
2019-08-09 12:20:13 +01:00
2019-08-09 12:20:13 +01:00
2019-08-09 12:20:13 +01:00
2019-08-09 12:20:13 +01:00
2019-08-09 12:20:13 +01:00
2019-08-09 12:20:13 +01:00
2019-08-09 12:20:13 +01:00
2019-08-09 12:20:13 +01:00
2019-08-09 12:20:13 +01:00
2019-08-09 12:20:13 +01:00
2019-08-09 12:20:13 +01:00
2019-08-09 12:20:13 +01:00
2019-08-09 12:20:13 +01:00
2019-08-09 12:20:13 +01:00
2019-08-09 12:20:13 +01:00
2019-08-09 12:20:13 +01:00
2019-08-09 12:20:13 +01:00
2019-08-09 12:20:13 +01:00
2019-08-09 12:20:13 +01:00
2019-08-09 12:20:13 +01:00
2019-08-09 12:20:13 +01:00
2019-08-09 12:20:13 +01:00