Overview

This article introduces an example of representing IIIF polygon annotations in TEI/XML.

Method

In TEI/XML, you can represent polygon annotations using the zone tag and the points attribute.

https://www.tei-c.org/release/doc/tei-p5-doc/en/html/ref-teidata.point.html

Example

For verification purposes, I added a TEI/XML export feature to the annotation tool introduced in the following article.

Specifically, the following download option was added.

An example of the TEI/XML obtained as a download result is shown below. Rectangles are described using ulx, uly, lrx, lry, while polygon information is described using points.

<<<<???T/xxxETmmmIElll<<<I--xt/t/f/>vmmmetetafeooliexecarddnH<it<xs<<cseesef/H>b/tis/s/sill=aifeob>mususio"dliadoirurumnhhhee<<<ldy<dlf<<<rf<<<ri=rrtrDt/p/s/ee>p/yeagzzfagzzfl"eet>eituposDr>p>crooacrooae1ffpstibuuoe>>seannceannc>.==:cl<tl<br<usSapeeepeee0""/>et/lip/lcp/rcomsh>sh>"hh/Sitec>pie>pc>meaiuuaiuuttwttiSa>cD>eeAmcllmcllettwmlTtttPaeIDsexxexxnppwteilmiutsnet=Au==Au==c::.>>tetobicfse"sr""sr""o/tl>>nlo>ocxh=l54=l29d/eeSinr>tt"=37"=19iwwitcSmth"18h"93nww-matahpth4"th7"gwwcttmtestt"tt"=...>itir:ptuptu"ttoo>oe/spulspulueernn./:sly:slytiigd/:y=/:y=f--/Ial/="//="-ccnnb.d/"3d/"38..sfonld10ld37"oo/oud.l97.l00?rr1rtln.8"n.41>gg.m.dn3dn4"/0atgld"lld"rr"tho.lr.llee>ie.g.lxg.lrllojogr=ogrxeensp.ox".ox=aaoj.=1j.="ssuapj"2pj"2eerp/p52/p28//cia/56a/74xxe/pa0"pa39mmiip9ip1"lli/i"l/i"//ii/ri/lttfiilyiilree/iir=iiryii3fiy"fiy=//4/f=3/f="cc33/"73/"4uu743234330ss634113459tt8738"7375oo6679673"mm/86"a86"//m68n68assa/6aa/6anccnc/n=c/nahhiaRa"aRa=eefn0=n0="mmev0"v0"aasa0Ca0//ts0s0rr./0/0eej1030lls"1"""3"aao>/>/xxnfppfp"nn"uoouogg>liilip//lnnlnott/tt/tieefssfsniiu==u=t__l""l"saal54l2=ll/37/2"ll018009../4,/99rrd,3d,3nne27e3,ggf03f04""a82a40u7u59ttl4l6yyt57t2pp.48.19eej1,j99==p23p83""g,0g,,aa"18"33pp957pps81s50lla42a12iim2mcce57e22aaA5,A78tts13s24ii=00=99oo",8",,nnh2h33//t01t57xxt82t70mmp72p52lls7s"":5,:22/43/78ss/17/34ccd23d29hhl,2l,,ee.2.34mmn14n00aad97d69ttl08l26yy.,.ppg53g29eeo37o29nn.13.03ssj42j9,==p,"p,4""/2//30hha0>a09ttp8p46tti7i5"pp//"::i5i/i3i/i1irpf4feu/,/lr323al404x.383no777gc6"6.l8/8oc6>6r.//gRRr00ng00s00d00ss00td00rl13u/""cs//tc>>uhreem/a1t.r0o"n?">?>

Below is an example displayed in Oxygen XML Editor.

Below is a display example of the IIIF annotation, showing that the same rectangles can be represented.

Summary

I hope this serves as a useful reference for integrating IIIF and TEI.