Skip to content

Commit

Permalink
add tests for issue #10
Browse files Browse the repository at this point in the history
  • Loading branch information
brambg committed Sep 27, 2023
1 parent 91f3170 commit 9ac725e
Show file tree
Hide file tree
Showing 4 changed files with 212 additions and 4 deletions.
8 changes: 5 additions & 3 deletions data/example.xml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@
</TextRegion>
<TextRegion orientation="0.0" id="r2" custom="readingOrder {index:1;}">
<Coords points="3334,251 3334,3722 5172,3722 5172,251"/>
<TextLine id="r2l1" custom="readingOrder {index:0;}">
<TextLine id="r2l1"
custom="readingOrder {index:0;} textStyle {offset:13; length:1;superscript:true;} textStyle {offset:20; length:1;superscript:true;}">
<Coords points="5018,312 5046,315 5074,316 5102,315 5130,314 5158,316 5158,255 5130,253 5102,254 5074,255 5046,254 5018,251"/>
<Baseline points="5018,292 5046,295 5074,296 5102,295 5130,294 5158,296"/>
<TextEquiv>
Expand Down Expand Up @@ -126,7 +127,7 @@
<Unicode>Amstm. versonden sullen werden</Unicode>
</TextEquiv>
</TextLine>
<TextLine id="r2l13" custom="readingOrder {index:12;}">
<TextLine id="r2l13" custom="readingOrder {index:12;} place {offset:5; length:6;}">
<Coords points="3978,1498 4033,1498 4089,1498 4144,1496 4200,1496 4255,1496 4311,1494 4366,1494 4422,1492 4477,1491 4533,1490 4588,1488 4644,1488 4699,1486 4755,1484 4810,1484 4866,1484 4921,1482 4977,1482 5032,1482 5088,1482 5088,1421 5032,1421 4977,1421 4921,1421 4866,1423 4810,1423 4755,1423 4699,1425 4644,1427 4588,1427 4533,1429 4477,1430 4422,1431 4366,1433 4311,1433 4255,1435 4200,1435 4144,1435 4089,1437 4033,1437 3978,1437"/>
<Baseline
points="3978,1478 4033,1478 4089,1478 4144,1476 4200,1476 4255,1476 4311,1474 4366,1474 4422,1472 4477,1471 4533,1470 4588,1468 4644,1468 4699,1466 4755,1464 4810,1464 4866,1464 4921,1462 4977,1462 5032,1462 5088,1462"/>
Expand Down Expand Up @@ -166,7 +167,8 @@
<Unicode>in presentie vande ondergess.</Unicode>
</TextEquiv>
</TextLine>
<TextLine id="r2l18" custom="readingOrder {index:17;} textStyle {offset:18; length:1;superscript:true;}">
<TextLine id="r2l18"
custom="readingOrder {index:17;} textStyle {offset:18; length:1;superscript:true;} date {offset:17; length:12;}">
<Coords points="3976,1988 4028,1985 4081,1984 4134,1982 4186,1982 4239,1982 4292,1980 4344,1980 4397,1980 4450,1980 4503,1980 4555,1980 4608,1980 4661,1980 4713,1978 4766,1978 4819,1976 4871,1974 4924,1972 4977,1968 5030,1964 5030,1903 4977,1907 4924,1911 4871,1913 4819,1915 4766,1917 4713,1917 4661,1919 4608,1919 4555,1919 4503,1919 4450,1919 4397,1919 4344,1919 4292,1919 4239,1921 4186,1921 4134,1921 4081,1923 4028,1924 3976,1927"/>
<Baseline
points="3976,1968 4028,1965 4081,1964 4134,1962 4186,1962 4239,1962 4292,1960 4344,1960 4397,1960 4450,1960 4503,1960 4555,1960 4608,1960 4661,1960 4713,1958 4766,1958 4819,1956 4871,1954 4924,1952 4977,1948 5030,1944"/>
Expand Down
Loading

0 comments on commit 9ac725e

Please sign in to comment.