mirror of
https://github.com/docling-project/docling-core.git
synced 2026-11-18 20:27:00 +00:00
* feat(doclang): align with DocLang v0.6 picture model Signed-off-by: Panos Vagenas <pva@zurich.ibm.com> * feat(doclang): enhance picture metadata handling with custom fields - Introduced support for custom metadata fields in the picture model, including summary, description, and SMILES. - Updated serializer and deserializer to handle new custom vocabulary tags. - Added tests for round-trip serialization and deserialization of picture metadata, ensuring correct handling of custom fields. Signed-off-by: Panos Vagenas <pva@zurich.ibm.com> * feat(doclang): deserialize field regions and add round-trip fixtures - Parse `<field_region>`, `<field_item>`, `<key>`, `<value>`, `<hint>`, and checkbox markup into `FieldRegionItem` / field text items, including inline key/value bodies - Add `test_field_region_doclang_roundtrip` and `test_kv_annot_doclang_roundtrip` with materialized `input.json`, `deserialized.json`, and `reserialized.dclg.xml` goldens under `test/data/doc/field_region_kv*/` and `test/data/doc/kv/*/` - Assert lossless XML round-trip where supported today (`_KV_ANNOT_XML_LOSSLESS`); partial cases remain golden-locked pending list `<group>` and in-region `<heading>` handling Signed-off-by: Panos Vagenas <pva@zurich.ibm.com> --------- Signed-off-by: Panos Vagenas <pva@zurich.ibm.com>