mirror of
https://github.com/docling-project/docling-core.git
synced 2026-11-18 20:27:00 +00:00
* chore(doclang): align w doclang 0.8 Signed-off-by: Daniel Nguyen <danielnguyenh07@gmail.com> * feat(doclang): support multiple captions and skip track for DocLang 0.8 DocLang 0.8 allows several captions in an element head. The serializer now writes all captions of a floating item there, instead of the first one in the head and the others as <text> next to it in a <group>. The deserializer reads all head captions, and still reads <text> siblings as captions, so that earlier output keeps loading. <track> is not supported yet: the deserializer skips it with a warning, instead of dropping its cues and leaking its chapter texts. The module docstrings state the support as partial. doclang 0.8 selects the schema by the declared version and warns when there is none. The test helpers validate documents without a version against _DOCLANG_VERSION. The data lint gets a dclx.version check that warns on a missing version, and fails validation on a declared version without schema rather than falling back to the latest one. Signed-off-by: Panos Vagenas <pva@zurich.ibm.com> --------- Signed-off-by: Daniel Nguyen <danielnguyenh07@gmail.com> Signed-off-by: Panos Vagenas <pva@zurich.ibm.com> Co-authored-by: Panos Vagenas <pva@zurich.ibm.com>