mirror of
https://github.com/docling-project/docling-core.git
synced 2026-11-18 20:27:00 +00:00
* chore(doclang): switch to suppressing namespace and version by default Signed-off-by: Panos Vagenas <pva@zurich.ibm.com> * chore(doclang): align with DocLang 0.4 - Align DocLang serialization/deserialization with the doclang 0.4 schema (`<label value>`, `<layer value>`, `<href uri>`, `<src uri>`, element-head property order). - Auto-wrap orphan key/value markup in `<field_item>` / `<field_region>` when the document tree is missing those containers. - Add optional `doclang-validation` extra and `verify_doclang()` so golden tests also pass the reference `doclang` validator. - Refresh `.dclg.xml` fixtures and add coverage for hyperlinks, field-region wrapping, and known incompat output under `test/data/doc/incompat/`. - Pin emitted DocLang version to 0.4 and defer `<layer>`-related expectations until doclang 0.5. Signed-off-by: Panos Vagenas <pva@zurich.ibm.com> * chore(doclang): [WIP] add basic virtual `<text>` support Signed-off-by: Panos Vagenas <pva@zurich.ibm.com> * chore(doclang): [WIP] add virtual `<text>` support Signed-off-by: Panos Vagenas <pva@zurich.ibm.com> * chore(doclang): extend virtual `<text>` support, unify el. head parsing Signed-off-by: Panos Vagenas <pva@zurich.ibm.com> * chore(doclang): align code/picture labels to DocLang, add LabelMode Signed-off-by: Panos Vagenas <pva@zurich.ibm.com> * chore(doclang): emit bare `<value>` for read-only field values Signed-off-by: Panos Vagenas <pva@zurich.ibm.com> * chore(doclang): [WIP] align with DocLang v0.5 - Bump doclang validation to 0.5 and enable <layer> emission. - Align open-tag shapes with the recommended vocabulary: bare <heading>/<field_heading> at level 1, bare <list> for unordered lists. - Add field_heading deserializer support and remove deferred layer xfails. Signed-off-by: Panos Vagenas <pva@zurich.ibm.com> * chore(doclang): add `<rtl>`/`<corn>`/`<xcel>` coverage - Emit <rtl> for RTL script text via get_text_direction() - Emit <corn> for row/column header intersection cells - Fix OTSL span tokens so <xcel> only appears at interior continuations - Add rtl/corn/xcel golden tests; defer multi-prov threading test to P2 Signed-off-by: Panos Vagenas <pva@zurich.ibm.com> * chore(doclang): [WIP] drop legacy vocabulary - Remove non-spec tokens (`section`, `watermark`, `time_break`, `facets`, `meta`, `uri`) and `GROUP@type` / `TABLE@class` from vocabulary - Reject `class` on `<table>` at deserialize time; resolve label from `<table>` vs `<index>` only - Drop legacy `class="data"` / `class="index"` table parsing paths and update deserializer tests accordingly - Tighten `WRAP_WHEN_NEEDED` comment to include embedded newlines Signed-off-by: Panos Vagenas <pva@zurich.ibm.com> --------- Signed-off-by: Panos Vagenas <pva@zurich.ibm.com>
76 lines
1.5 KiB
XML
Vendored
76 lines
1.5 KiB
XML
Vendored
<doclang>
|
|
<heading>Title</heading>
|
|
<text>Some intro</text>
|
|
<heading level="2">Foo</heading>
|
|
<text>Foo stuff</text>
|
|
<heading level="3">Bar</heading>
|
|
<text>Bar stuff</text>
|
|
<text>More stuff</text>
|
|
<heading level="2">
|
|
Rich heading
|
|
<italic>without</italic>
|
|
other children besides the inline
|
|
</heading>
|
|
<text>Section content as sibling of the heading.</text>
|
|
<heading level="3">Subheading</heading>
|
|
<text>Subsection content.</text>
|
|
<heading level="2">
|
|
Rich heading
|
|
<italic>with</italic>
|
|
other children besides the inline
|
|
</heading>
|
|
<text>Section content as child of the heading.</text>
|
|
<text>Section content as sibling of the heading.</text>
|
|
<heading level="2">Heading</heading>
|
|
<text>Bar</text>
|
|
<list>
|
|
<ldiv/>
|
|
List item
|
|
<ldiv/>
|
|
<text>List item</text>
|
|
<list>
|
|
<ldiv/>
|
|
List item
|
|
<ldiv/>
|
|
List item
|
|
</list>
|
|
</list>
|
|
<heading level="3">Heading</heading>
|
|
<table>
|
|
<fcel/>
|
|
cell 0,0
|
|
<fcel/>
|
|
cell 0,1
|
|
<nl/>
|
|
<fcel/>
|
|
cell 1,0
|
|
<fcel/>
|
|
<text>
|
|
<italic>
|
|
<content>text in italic </content>
|
|
</italic>
|
|
<bold>text in bold</bold>
|
|
</text>
|
|
<nl/>
|
|
<fcel/>
|
|
cell 2,0
|
|
<fcel/>
|
|
cell 2,1
|
|
<nl/>
|
|
<fcel/>
|
|
cell 3,0
|
|
<fcel/>
|
|
cell 3,1
|
|
<nl/>
|
|
</table>
|
|
<heading level="2">Heading</heading>
|
|
<field_region>
|
|
<text>Some text</text>
|
|
<field_item>
|
|
<text>Some text</text>
|
|
<key>Key</key>
|
|
<value>Value</value>
|
|
</field_item>
|
|
</field_region>
|
|
</doclang>
|