-
Notifications
You must be signed in to change notification settings - Fork 4
Per-element-type encoding #120
Copy link
Copy link
Open
Labels
DecodingRelated to the importing of EBML dataRelated to the importing of EBML dataSchemaRelated to the EBML schemataRelated to the EBML schemataenhancementNew feature or requestNew feature or requestutilitiesRelating to tools (e.g. util.py)Relating to tools (e.g. util.py)
Metadata
Metadata
Assignees
Labels
DecodingRelated to the importing of EBML dataRelated to the importing of EBML dataSchemaRelated to the EBML schemataRelated to the EBML schemataenhancementNew feature or requestNew feature or requestutilitiesRelating to tools (e.g. util.py)Relating to tools (e.g. util.py)
When exporting to XML, there are various cases in which it would be useful to specify how individual element values get converted to text, similar to the BinaryElement encoding added in PR #99. Specifically, there are cases in which certain IntegerElements would be more easily read (by humans) if displayed in hex.
There are a couple of things that could be done (not mutually exclusive):
ebml2xml()that allows a dictionary of element names and encoding functions. Simple, but would take some effort to rework the command-line utilities.