Skip to content

Commit 37a6cfe

Browse files
Merge pull request #1245 from cfr42/forest-ext
Forest ext/prooftrees
2 parents 52d6377 + 60bc8a5 commit 37a6cfe

4 files changed

Lines changed: 121 additions & 4 deletions

File tree

_data/tagging-status.yml

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5561,15 +5561,28 @@
55615561

55625562
- name: forest
55635563
type: package
5564-
status: currently-incompatible
5564+
status: partially-compatible
55655565
included-in: [arxiv01, ol0.1]
55665566
priority: 6
5567+
comments: "Tagging requires third-party library ext.tagging."
55675568
issues: [1087]
55685569
package-repository: "https://github.com/sasozivanovic/forest"
55695570
external-issues: ["https://github.com/sasozivanovic/forest/issues/15"]
55705571
tests: true
55715572
tasks: needs more tests
5572-
updated: 2025-12-04
5573+
updated: 2026-02-26
5574+
5575+
- name: ext.tagging
5576+
ctan-pkg: forest-ext
5577+
type: library
5578+
status: compatible
5579+
included-in:
5580+
priority: 9
5581+
issues: [1007, 1171]
5582+
comments: "Tags forest trees via Alt added on surrounding Figure."
5583+
package-repository: "https://codeberg.org/cfr/prooftrees"
5584+
tests: true
5585+
updated: 2026-02-26
55735586

55745587
- name: forloop
55755588
type: package
@@ -10785,8 +10798,9 @@
1078510798
closed-issues: [1117]
1078610799
tests: true
1078710800
comments: "Depends on forest-ext. Note tableaux are syntactic not semantic.
10788-
Tagging via TeX syntax added to Alt on surrounding Figure."
10789-
updated: 2026-01-19
10801+
Tagging generated from content added to Alt on surrounding Figure."
10802+
package-repository: "https://codeberg.org/cfr/prooftrees"
10803+
updated: 2026-02-26
1079010804

1079110805
- name: protecteddef
1079210806
type: package
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
<PDF>
2+
<StructTreeRoot>
3+
<Document xmlns="http://iso.org/pdf2/ssn"
4+
id="ID.02"
5+
>
6+
<text-unit xmlns="https://www.latex-project.org/ns/dflt"
7+
id="ID.05"
8+
rolemaps-to="Part"
9+
>
10+
<text xmlns="https://www.latex-project.org/ns/dflt"
11+
id="ID.06"
12+
xmlns:Layout="http://iso.org/pdf/ssn/Layout"
13+
Layout:TextAlign="Justify"
14+
rolemaps-to="P"
15+
>
16+
<Figure xmlns="http://iso.org/pdf2/ssn"
17+
id="ID.07"
18+
alt="VP 2 children : DP: child John; V prime V: child sent; DP: child Mary; DP 2 children : D: child a; NP: child letter; "
19+
xmlns:Layout="http://iso.org/pdf/ssn/Layout"
20+
Layout:BBox="{ 133.76837, 667.19801, 281.64244, 808.52953 }"
21+
>
22+
<?MarkedContent page="1" ?>
23+
<?MarkedContent page="1" ?>
24+
<?MarkedContent page="1" ?>
25+
<?MarkedContent page="1" ?>
26+
<?MarkedContent page="1" ?>
27+
<?MarkedContent page="1" ?>
28+
<?MarkedContent page="1" ?>
29+
<?MarkedContent page="1" ?>
30+
<?MarkedContent page="1" ?>
31+
<?MarkedContent page="1" ?>
32+
<?MarkedContent page="1" ?>
33+
<?MarkedContent page="1" ?>
34+
<?MarkedContent page="1" ?>
35+
<?MarkedContent page="1" ?>
36+
</Figure>
37+
</text>
38+
</text-unit>
39+
</Document>
40+
</StructTreeRoot>
41+
</PDF>
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
<PDF>
2+
<StructTreeRoot>
3+
<Document xmlns="http://iso.org/pdf2/ssn"
4+
id="ID.02"
5+
>
6+
<text-unit xmlns="https://www.latex-project.org/ns/dflt"
7+
id="ID.05"
8+
rolemaps-to="Part"
9+
>
10+
<text xmlns="https://www.latex-project.org/ns/dflt"
11+
id="ID.06"
12+
xmlns:Layout="http://iso.org/pdf/ssn/Layout"
13+
Layout:TextAlign="Justify"
14+
rolemaps-to="P"
15+
>
16+
<?MarkedContent page="1" ?>
17+
<Figure xmlns="http://iso.org/pdf2/ssn"
18+
id="ID.07"
19+
alt="VP 2 children : DP: child John; V prime V: child sent; DP: child Mary; DP 2 children : D: child a; NP: child letter; "
20+
xmlns:Layout="http://iso.org/pdf/ssn/Layout"
21+
Layout:BBox="{ 133.76837, 667.19801, 281.59102, 808.51804 }"
22+
>
23+
<?MarkedContent page="1" ?>VPDPJohnV’VsentDPMaryDPDaNPletter
24+
</Figure>
25+
<?MarkedContent page="1" ?>
26+
</text>
27+
</text-unit>
28+
</Document>
29+
</StructTreeRoot>
30+
</PDF>
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
\DocumentMetadata{
2+
tagging=on,
3+
lang=en-GB,
4+
pdfversion=2.0,
5+
pdfstandard=ua-2,
6+
uncompress,
7+
}
8+
\tagpdfsetup{
9+
math/mathml/structelem,
10+
}
11+
\documentclass{article}
12+
\ifcsname directlua\endcsname
13+
\relax
14+
\else
15+
\usepackage[T1]{fontenc}
16+
\fi
17+
\usepackage[ext.tagging,linguistics]{forest}
18+
\title{ext.tagging (forest-ext) 01}
19+
\begin{document}
20+
\begin{forest}
21+
% This is example is from Jasper Habicht.
22+
[VP
23+
[DP[John]]
24+
[V', alt text=V prime,
25+
[V[sent]]
26+
[DP[Mary]]
27+
[DP[D[a]][NP[letter]]]
28+
]
29+
]
30+
\end{forest}
31+
\end{document}
32+

0 commit comments

Comments
 (0)