Files
docling-core/test/data/doc/01030000000083.dt
Maxim LysakandMaksym Lysak a055e1a9f0 fix: DocTags import location fix for tables, pictures, captions (#227)
* Fix for the table with captions bboxes

Signed-off-by: Maksym Lysak <mly@zurich.ibm.com>

* cleaned up

Signed-off-by: Maksym Lysak <mly@zurich.ibm.com>

* Correcting caption bbox logic for pictures

Signed-off-by: Maksym Lysak <mly@zurich.ibm.com>

* Added test, small fix with adding caption to the picture when image not available

Signed-off-by: Maksym Lysak <mly@zurich.ibm.com>

* test cases (pictures + png)

Signed-off-by: Maksym Lysak <mly@zurich.ibm.com>

* fixed comment

Signed-off-by: Maksym Lysak <mly@zurich.ibm.com>

* Corrected caption spans for tables and pictures, added check of captions in the tests

Signed-off-by: Maksym Lysak <mly@zurich.ibm.com>

---------

Signed-off-by: Maksym Lysak <mly@zurich.ibm.com>
Co-authored-by: Maksym Lysak <mly@zurich.ibm.com>
2025-04-02 09:52:54 +02:00

8 lines
2.0 KiB
Plaintext
Vendored

<doctag><otsl><loc_83><loc_85><loc_417><loc_204><ched>Category<ched>Number of clauses in Union laws<ched>In percent<ched>Number of clauses in State laws<ched>In percent<nl><fcel>Commercial<fcel>529<fcel>10.1%<fcel>817<fcel>3.9%<nl><fcel>Environment, Health and Safety<fcel>834<fcel>15.9%<fcel>345<fcel>1.7%<nl><fcel>Finance & Taxation<fcel>41<fcel>0.8%<fcel>888<fcel>4.2%<nl><fcel>General<fcel>75<fcel>1.4%<fcel>360<fcel>1.7%<nl><fcel>Industry Specific<fcel>2979<fcel>56.9%<fcel>1200<fcel>5.7%<nl><fcel>Labour<fcel>534<fcel>10.2%<fcel>17285<fcel>82.7%<nl><fcel>Secretarial<fcel>247<fcel>4.7%<fcel>0<fcel>0.0%<nl><caption><loc_82><loc_58><loc_333><loc_76>TABLE 35: UNION-STATE BREAKDOWN OF IMPRISONMENT CLAUSES BY CATEGORIES</caption></otsl>
<otsl><loc_83><loc_244><loc_417><loc_304><ched>Compliances<ched>Small<ched>Medium<ched>Large<nl><fcel>Total Applicable Compliances<fcel>669<fcel>3,109<fcel>5,796<nl><fcel>Compliances with imprisonment<fcel>461<fcel>2,172<fcel>4,085<nl><fcel>Percentage of imprisonment clauses<fcel>69%<fcel>70%<fcel>70%<nl><caption><loc_83><loc_215><loc_399><loc_233>TABLE 36: THREE CASE STUDIES ON MANUFACTURING COMPLIANCES*</caption></otsl>
<text><loc_83><loc_308><loc_420><loc_324>* These are real data from three companies operating in the automotive components business</text>
<otsl><loc_83><loc_363><loc_417><loc_437><ecel><ched>Small<ched>Medium<ched>Large<nl><fcel>Less than 3 months<fcel>25<fcel>82<fcel>185<nl><fcel>3 months to less than 1 year<fcel>187<fcel>699<fcel>1,220<nl><fcel>1 year to less than 3 years<fcel>178<fcel>1,070<fcel>1,964<nl><fcel>3 years to less than 5 years<fcel>59<fcel>245<fcel>505<nl><fcel>5 years to 10 years<fcel>12<fcel>76<fcel>211<nl><caption><loc_83><loc_334><loc_411><loc_353>TABLE 37: BREAKDOWN OF IMPRISONMENT CLAUSES IN MANUFACTURING CASE STUDIES*</caption></otsl>
<text><loc_83><loc_438><loc_137><loc_446>* In Table 36</text>
<page_footer><loc_243><loc_473><loc_258><loc_486>85</page_footer>
<page_header><loc_365><loc_20><loc_417><loc_28>Appendices</page_header>
</doctag>