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-10-08 13:40:05 +01:00
2019-08-09 12:20:13 +01:00
2019-08-09 12:20:13 +01:00
2020-01-06 11:30:30 +01:00
2019-08-09 12:20:13 +01:00
2019-08-29 23:21:22 -04:00
2019-08-09 12:20:13 +01:00
2019-08-09 12:20:13 +01:00
2019-10-08 13:40:05 +01:00
2019-08-09 12:20:13 +01:00
2019-08-09 12:20:13 +01:00
2020-02-13 18:07:57 +00:00
2019-08-29 23:21:22 -04:00
2019-10-11 22:36:33 +01:00
2020-02-12 12:53:09 +00:00
2020-01-31 23:39:47 +02:00
2019-08-29 23:21:22 -04:00
2019-08-09 12:20:13 +01:00
2019-08-09 12:20:13 +01:00
2019-08-29 23:21:22 -04: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-10-11 17:39:56 +01:00
2019-08-09 12:20:13 +01:00
2019-08-29 23:21:22 -04: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-10-11 22:36:33 +01:00
2020-01-31 23:39:47 +02: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
2020-03-02 13:10:47 +00:00
2020-02-17 17:03:37 +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
2020-01-31 17:30:12 +00:00
2019-10-08 13:40:07 +01:00
2019-08-09 12:20:13 +01:00
2019-10-08 13:40:07 +01:00
2019-08-29 23:21:22 -04:00
2019-08-09 12:20:13 +01:00
2019-08-09 12:20:13 +01:00
2019-08-29 23:21:22 -04: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-29 23:21:22 -04: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
2020-02-04 17:14:12 +00:00
2020-03-06 18:35:32 +00:00
2020-03-06 18:35:32 +00:00
2020-03-06 18:35:32 +00:00
2019-10-08 13:40:07 +01:00
2019-10-08 13:40:07 +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-29 23:21:22 -04: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
2002-05-13 16:21:51 +00:00
2019-08-29 23:21:22 -04:00
2019-10-08 13:40:04 +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