Commit 89150731 authored by Michelle Rodzis's avatar Michelle Rodzis Committed by mrodzis
Browse files

Add 3.20 attachments

parent 900698be
......@@ -161,9 +161,7 @@ declare function fontaneSimple:transform($nodes as node()*) as node()* {
()
case element(tei:line) return
if(count($node/*) = 1 and $node/child::tei:fw) then
()
else if($node/@type = "heading") then
if($node/@type = "heading") then
fontaneSimple:make-head($node)
else if(simpleHelpers:has-valid-style($node)
......@@ -233,11 +231,16 @@ declare function fontaneSimple:transform($nodes as node()*) as node()* {
fontaneSimple:enhance-handshift($node)
case element(tei:stamp) return
()
if($node/ancestor::tei:surface[matches(@n, "Beilage")]) then
fontaneSimple:copy-element($node)
else
()
case element(tei:seg) return
if(count($node/*) = 1 and
($node/tei:stamp or $node/tei:metamark[@function = "caret"]))
(($node/tei:stamp
and not($node/ancestor::tei:surface[matches(@n, "Beilage")]))
or $node/tei:metamark[@function = "caret"]))
then
()
......@@ -327,13 +330,29 @@ declare function fontaneSimple:transform($nodes as node()*) as node()* {
if(matches($node/@n, "cover")) then
(fontaneSimple:make-pb-with-type($node/@n),
fontaneSimple:transform($node/node()))
else if(matches($node/@n, "Beilage")) then
element tei:div {
$node/@*,
fontaneSimple:transform($node/node())
}
else if($node/@type = "pocket") then
(fontaneSimple:make-pb($node),
element tei:div {
$node/(@* except (@n, @ulx, @uly, @lry, @lrx)),
fontaneSimple:transform($node/node())
})
else if(simpleHelpers:is-page($node)
and $node/@type = "clipping") then
(fontaneSimple:make-pb($node),
(if(not($node/@subtype = "Kalenderblatt"
or $node/@subtype = "Zeitungsausschnitt_Fragment")) then
fontaneSimple:transform($node/node())
element tei:div {
$node/(@* except (@n, @ulx, @uly, @lry, @lrx)),
fontaneSimple:transform($node/node())
}
else
()))
......@@ -495,6 +514,12 @@ declare function fontaneSimple:transform($nodes as node()*) as node()* {
$node/(@* except (@rendition, @style)),
fontaneSimple:transform($node/node())
}
else if($node/@type = "additional") then
element tei:ab {
$node/(@* except (@ulx, @uly, @lry, @lrx)),
fontaneSimple:transform($node/node())
}
else if(simpleHelpers:has-valid-style($node)
or matches($node/@rendition, "black_letter")
......
......@@ -410,4 +410,4 @@ as element(tei:milestone) {
else
()
}
};
\ No newline at end of file
};
......@@ -78,10 +78,10 @@ declare
%test:assertEquals("<pb xmlns=""http://www.tei-c.org/ns/1.0"" n=""Ir""/>")
%test:args("<surface xmlns=""http://www.tei-c.org/ns/1.0"" n=""30var"" facs=""http://textgridrep.org/textgrid:167nm"" type=""clipping"" subtype=""Zeitungsausschnitt"" attachment=""formerly_partially_glued""><line xmlns=""http://www.tei-c.org/ns/1.0""><handShift xmlns=""http://www.tei-c.org/ns/1.0"" new=""#Fontane""/>Test</line></surface>")
%test:assertEquals("<pb xmlns=""http://www.tei-c.org/ns/1.0"" n=""30var""/>", "<milestone xmlns=""http://www.tei-c.org/ns/1.0"" unit=""line""/>", "<handShift xmlns=""http://www.tei-c.org/ns/1.0"" new=""#Fontane"" script="""" medium=""""/>", "Test")
%test:assertEquals("<pb xmlns=""http://www.tei-c.org/ns/1.0"" n=""30var""/>", "<div xmlns=""http://www.tei-c.org/ns/1.0"" facs=""http://textgridrep.org/textgrid:167nm"" type=""clipping"" subtype=""Zeitungsausschnitt"" attachment=""formerly_partially_glued""><milestone xmlns=""http://www.tei-c.org/ns/1.0"" unit=""line""/><handShift xmlns=""http://www.tei-c.org/ns/1.0"" new=""#Fontane"" script="""" medium=""""/>Test</div>")
%test:args("<surface xmlns=""http://www.tei-c.org/ns/1.0"" n=""30var"" facs=""http://textgridrep.org/textgrid:167nm"" type=""pocket"" subtype=""angeklebte_cremefarbige_Tasche_von_Fontane_angefertigt_-_Angeklebtes_Blatt"" attachment=""formerly_partially_glued""><line xmlns=""http://www.tei-c.org/ns/1.0"">Test</line></surface>")
%test:assertEquals("<pb xmlns=""http://www.tei-c.org/ns/1.0"" n=""30var""/>", "<milestone xmlns=""http://www.tei-c.org/ns/1.0"" unit=""line""/>", "Test")
%test:assertEquals("<pb xmlns=""http://www.tei-c.org/ns/1.0"" n=""30var""/>", "<div xmlns=""http://www.tei-c.org/ns/1.0"" facs=""http://textgridrep.org/textgrid:167nm"" type=""pocket"" subtype=""angeklebte_cremefarbige_Tasche_von_Fontane_angefertigt_-_Angeklebtes_Blatt"" attachment=""formerly_partially_glued""><milestone xmlns=""http://www.tei-c.org/ns/1.0"" unit=""line""/>Test</div>")
%test:args("<surface xmlns=""http://www.tei-c.org/ns/1.0"" facs=""http://textgridrep.org/textgrid:169hc"" type=""label"" subtype=""Oblate"" ulx=""6.2"" uly=""3.7"" lrx=""7.6"" lry=""5.4""/>")
%test:assertEmpty
......@@ -304,7 +304,7 @@ declare
%test:assertEquals("<milestone xmlns=""http://www.tei-c.org/ns/1.0"" unit=""line""/>", "<pb xmlns=""http://www.tei-c.org/ns/1.0"" n=""1r""/>", "<handShift xmlns=""http://www.tei-c.org/ns/1.0"" new=""#Fontane"" script="""" medium=""""/>", "Test")
%test:args("<zone xmlns=""http://www.tei-c.org/ns/1.0""><surface xmlns=""http://www.tei-c.org/ns/1.0"" n=""52r"" facs=""http://textgridrep.org/textgrid:164j2""><graphic xmlns=""http://www.tei-c.org/ns/1.0"" n=""C07_053"" url=""http://textgridrep.org/textgrid:164j2"" mimeType=""image/jpeg""/><zone><handShift xmlns=""http://www.tei-c.org/ns/1.0"" new=""#Archivar2""/><line xmlns=""http://www.tei-c.org/ns/1.0""><fw xmlns=""http://www.tei-c.org/ns/1.0"" type=""pageNum"">[<handShift xmlns=""http://www.tei-c.org/ns/1.0"" new=""#Archivar1""/>49<handShift new=""#Archivar2"" xmlns=""http://www.tei-c.org/ns/1.0""/>]</fw></line><line xmlns=""http://www.tei-c.org/ns/1.0""><fw xmlns=""http://www.tei-c.org/ns/1.0"" type=""pageNum"">52</fw></line><handShift xmlns=""http://www.tei-c.org/ns/1.0"" new=""#Fontane""/></zone></surface><surface xmlns=""http://www.tei-c.org/ns/1.0"" n=""52v"" facs=""http://textgridrep.org/textgrid:164js""><graphic xmlns=""http://www.tei-c.org/ns/1.0"" n=""C07_054"" url=""http://textgridrep.org/textgrid:164js"" mimeType=""image/jpeg""/></surface><surface xmlns=""http://www.tei-c.org/ns/1.0"" n=""53r"" facs=""http://textgridrep.org/textgrid:164js"" type=""fragment"" attachment=""cut""><graphic xmlns=""http://www.tei-c.org/ns/1.0"" n=""C07_054"" url=""http://textgridrep.org/textgrid:164js"" mimeType=""image/jpeg""/><zone xmlns=""http://www.tei-c.org/ns/1.0""><handShift xmlns=""http://www.tei-c.org/ns/1.0"" new=""#Archivar2""/><line xmlns=""http://www.tei-c.org/ns/1.0""><fw xmlns=""http://www.tei-c.org/ns/1.0"" type=""pageNum"">53</fw></line><handShift xmlns=""http://www.tei-c.org/ns/1.0"" new=""#Fontane""/></zone></surface></zone>")
%test:assertEquals("<pb xmlns=""http://www.tei-c.org/ns/1.0"" n=""52r""/>", "<handShift xmlns=""http://www.tei-c.org/ns/1.0"" new=""#Archivar2"" script="""" medium=""""/>", "<handShift xmlns=""http://www.tei-c.org/ns/1.0"" new=""#Fontane"" script="""" medium=""""/>", "<pb xmlns=""http://www.tei-c.org/ns/1.0"" n=""52v""/>", "<pb xmlns=""http://www.tei-c.org/ns/1.0"" n=""53r""/>", "<handShift xmlns=""http://www.tei-c.org/ns/1.0"" new=""#Archivar2"" script="""" medium=""""/>", "<handShift xmlns=""http://www.tei-c.org/ns/1.0"" new=""#Fontane"" script="""" medium=""""/>")
%test:assertEquals("<pb xmlns=""http://www.tei-c.org/ns/1.0"" n=""52r""/>", "<handShift xmlns=""http://www.tei-c.org/ns/1.0"" new=""#Archivar2"" script="""" medium=""""/>", "<milestone xmlns=""http://www.tei-c.org/ns/1.0"" unit=""line""/>", "<milestone xmlns=""http://www.tei-c.org/ns/1.0"" unit=""line""/>", "<handShift xmlns=""http://www.tei-c.org/ns/1.0"" new=""#Fontane"" script="""" medium=""""/>", "<pb xmlns=""http://www.tei-c.org/ns/1.0"" n=""52v""/>", "<pb xmlns=""http://www.tei-c.org/ns/1.0"" n=""53r""/>", "<handShift xmlns=""http://www.tei-c.org/ns/1.0"" new=""#Archivar2"" script="""" medium=""""/>", "<milestone xmlns=""http://www.tei-c.org/ns/1.0"" unit=""line""/>", "<handShift xmlns=""http://www.tei-c.org/ns/1.0"" new=""#Fontane"" script="""" medium=""""/>")
function teisimple-test:analyze-pages($node as element(*)) {
fontaneSimple:transform($node)
};
......@@ -368,7 +368,7 @@ declare
declare
%test:name("Pagination with lines")
%test:args("<line xmlns=""http://www.tei-c.org/ns/1.0""><fw xmlns=""http://www.tei-c.org/ns/1.0"" type=""pageNum"">5</fw></line>")
%test:assertEmpty
%test:assertEquals("<milestone xmlns=""http://www.tei-c.org/ns/1.0"" unit=""line""/>")
function teisimple-test:analyze-pag-lines($node as element(*)) {
fontaneSimple:transform($node)
};
......@@ -376,7 +376,7 @@ declare
declare
%test:name("Pagination with handschift before")
%test:args("<zone xmlns=""http://www.tei-c.org/ns/1.0""><handShift xmlns=""http://www.tei-c.org/ns/1.0"" new=""#Archivar1""/><line xmlns=""http://www.tei-c.org/ns/1.0""><fw xmlns=""http://www.tei-c.org/ns/1.0"" type=""pageNum"">5</fw></line></zone>")
%test:assertEquals("<handShift xmlns=""http://www.tei-c.org/ns/1.0"" new=""#Archivar1"" script="""" medium=""""/>")
%test:assertEquals("<handShift xmlns=""http://www.tei-c.org/ns/1.0"" new=""#Archivar1"" script="""" medium=""""/>", "<milestone xmlns=""http://www.tei-c.org/ns/1.0"" unit=""line""/>")
function teisimple-test:analyze-pag-hs($node as element(*)) {
fontaneSimple:transform($node)
};
......@@ -418,11 +418,11 @@ declare
declare
%test:name("Empty pages")
%test:args("<surface xmlns=""http://www.tei-c.org/ns/1.0"" n=""26r"" type=""fragment"" attachment=""torn""><zone xmlns=""http://www.tei-c.org/ns/1.0""><handShift xmlns=""http://www.tei-c.org/ns/1.0"" new=""#Archivar1""/><line xmlns=""http://www.tei-c.org/ns/1.0"" style=""margin-left:0.5cm""><fw xmlns=""http://www.tei-c.org/ns/1.0"" type=""pageNum"">26</fw></line><handShift xmlns=""http://www.tei-c.org/ns/1.0"" style=""margin-left:0.5cm"" new=""#Fontane""/></zone></surface>")
%test:assertEquals("<pb xmlns=""http://www.tei-c.org/ns/1.0"" n=""26r""/>", "<handShift xmlns=""http://www.tei-c.org/ns/1.0"" new=""#Archivar1"" script="""" medium=""""/>", "<handShift xmlns=""http://www.tei-c.org/ns/1.0"" style=""margin-left:0.5cm"" new=""#Fontane"" script="""" medium=""""/>")
%test:assertEquals("<pb xmlns=""http://www.tei-c.org/ns/1.0"" n=""26r""/>", "<handShift xmlns=""http://www.tei-c.org/ns/1.0"" new=""#Archivar1"" script="""" medium=""""/>", "<milestone xmlns=""http://www.tei-c.org/ns/1.0"" unit=""line""/>", "<handShift xmlns=""http://www.tei-c.org/ns/1.0"" style=""margin-left:0.5cm"" new=""#Fontane"" script="""" medium=""""/>")
(: adapt when further pages are implemented :)
%test:args("<line xmlns=""http://www.tei-c.org/ns/1.0""><surface xmlns=""http://www.tei-c.org/ns/1.0"" n=""26r"" type=""fragment"" attachment=""torn""><zone xmlns=""http://www.tei-c.org/ns/1.0""><handShift xmlns=""http://www.tei-c.org/ns/1.0"" new=""#Archivar1""/><line xmlns=""http://www.tei-c.org/ns/1.0"" style=""margin-left:0.5cm""><fw xmlns=""http://www.tei-c.org/ns/1.0"" type=""pageNum"">26</fw></line><handShift new=""#Fontane""/><line>Gewöhnliches Briefpapier.</line></zone></surface></line>")
%test:assertEquals("<milestone xmlns=""http://www.tei-c.org/ns/1.0"" unit=""line""/>", "<pb xmlns=""http://www.tei-c.org/ns/1.0"" n=""26r""/>", "<handShift xmlns=""http://www.tei-c.org/ns/1.0"" new=""#Archivar1"" script="""" medium=""""/>", "<handShift xmlns=""http://www.tei-c.org/ns/1.0"" new=""#Fontane"" script="""" medium=""""/>", "<milestone xmlns=""http://www.tei-c.org/ns/1.0"" unit=""line""/>", "Gewöhnliches Briefpapier.")
%test:assertEquals("<milestone xmlns=""http://www.tei-c.org/ns/1.0"" unit=""line""/>", "<pb xmlns=""http://www.tei-c.org/ns/1.0"" n=""26r""/>", "<handShift xmlns=""http://www.tei-c.org/ns/1.0"" new=""#Archivar1"" script="""" medium=""""/>", "<milestone xmlns=""http://www.tei-c.org/ns/1.0"" unit=""line""/>", "<handShift xmlns=""http://www.tei-c.org/ns/1.0"" new=""#Fontane"" script="""" medium=""""/>", "<milestone xmlns=""http://www.tei-c.org/ns/1.0"" unit=""line""/>", "Gewöhnliches Briefpapier.")
function teisimple-test:analyze-page-fragment($node as element(*)) {
fontaneSimple:transform($node)
};
......@@ -431,11 +431,11 @@ declare
declare
%test:name("Empty pages")
%test:args("<surface xmlns=""http://www.tei-c.org/ns/1.0"" n=""30r""><zone xmlns=""http://www.tei-c.org/ns/1.0""><handShift xmlns=""http://www.tei-c.org/ns/1.0"" new=""#Archivar2""/><line xmlns=""http://www.tei-c.org/ns/1.0"" style=""margin-left:5.7cm""><fw xmlns=""http://www.tei-c.org/ns/1.0"" type=""pageNum"">[<handShift xmlns=""http://www.tei-c.org/ns/1.0"" new=""#Archivar1""/>26<handShift xmlns=""http://www.tei-c.org/ns/1.0"" new=""#Archivar2""/>]</fw></line><line xmlns=""http://www.tei-c.org/ns/1.0"" style=""margin-left:6.2cm""><fw xmlns=""http://www.tei-c.org/ns/1.0"" type=""pageNum"">30</fw></line></zone></surface>")
%test:assertEquals("<pb xmlns=""http://www.tei-c.org/ns/1.0"" n=""30r""/>", "<handShift xmlns=""http://www.tei-c.org/ns/1.0"" new=""#Archivar2"" script="""" medium=""""/>")
%test:assertEquals("<pb xmlns=""http://www.tei-c.org/ns/1.0"" n=""30r""/>", "<handShift xmlns=""http://www.tei-c.org/ns/1.0"" new=""#Archivar2"" script="""" medium=""""/>", "<milestone xmlns=""http://www.tei-c.org/ns/1.0"" unit=""line""/>", "<milestone xmlns=""http://www.tei-c.org/ns/1.0"" unit=""line""/>")
(: adapt when further pages are implemented :)
%test:args("<line xmlns=""http://www.tei-c.org/ns/1.0""><surface xmlns=""http://www.tei-c.org/ns/1.0"" n=""26r"" type=""fragment"" attachment=""torn""><zone xmlns=""http://www.tei-c.org/ns/1.0""><handShift xmlns=""http://www.tei-c.org/ns/1.0"" new=""#Archivar1""/><line xmlns=""http://www.tei-c.org/ns/1.0"" style=""margin-left:0.5cm""><fw xmlns=""http://www.tei-c.org/ns/1.0"" type=""pageNum"">26</fw></line><handShift new=""#Fontane""/><line>Gewöhnliches Briefpapier.</line></zone></surface></line>")
%test:assertEquals("<milestone xmlns=""http://www.tei-c.org/ns/1.0"" unit=""line""/>", "<pb xmlns=""http://www.tei-c.org/ns/1.0"" n=""26r""/>", "<handShift xmlns=""http://www.tei-c.org/ns/1.0"" new=""#Archivar1"" script="""" medium=""""/>", "<handShift xmlns=""http://www.tei-c.org/ns/1.0"" new=""#Fontane"" script="""" medium=""""/>", "<milestone xmlns=""http://www.tei-c.org/ns/1.0"" unit=""line""/>", "Gewöhnliches Briefpapier.")
%test:assertEquals("<milestone xmlns=""http://www.tei-c.org/ns/1.0"" unit=""line""/>", "<pb xmlns=""http://www.tei-c.org/ns/1.0"" n=""26r""/>", "<handShift xmlns=""http://www.tei-c.org/ns/1.0"" new=""#Archivar1"" script="""" medium=""""/>", "<milestone xmlns=""http://www.tei-c.org/ns/1.0"" unit=""line""/>", "<handShift xmlns=""http://www.tei-c.org/ns/1.0"" new=""#Fontane"" script="""" medium=""""/>", "<milestone xmlns=""http://www.tei-c.org/ns/1.0"" unit=""line""/>", "Gewöhnliches Briefpapier.")
function teisimple-test:analyze-empty-pages($node as element(*)) {
fontaneSimple:transform($node)
};
......@@ -552,6 +552,31 @@ declare
};
(: 3.20 Attachments :)
declare
%test:name("Attachmens")
%test:args("<surface xmlns=""http://www.tei-c.org/ns/1.0"" n=""Beilage_Ir"" facs=""http://textgridrep.org/textgrid:169ft"" type=""additional"" subtype=""Briefumschlag"" attachment=""loose""><graphic xmlns=""http://www.tei-c.org/ns/1.0"" n=""A11_082"" url=""http://textgridrep.org/textgrid:169ft"" mimeType=""image/jpeg""/><zone xmlns=""http://www.tei-c.org/ns/1.0""><line xmlns=""http://www.tei-c.org/ns/1.0""><seg xmlns=""http://www.tei-c.org/ns/1.0""><stamp xmlns=""http://www.tei-c.org/ns/1.0"">Aus Russland.</stamp></seg></line><line xmlns=""http://www.tei-c.org/ns/1.0"">An den Doctor</line></zone></surface>")
%test:assertEquals("<div xmlns=""http://www.tei-c.org/ns/1.0"" n=""Beilage_Ir"" facs=""http://textgridrep.org/textgrid:169ft"" type=""additional"" subtype=""Briefumschlag"" attachment=""loose""><milestone xmlns=""http://www.tei-c.org/ns/1.0"" unit=""line""/><stamp xmlns=""http://www.tei-c.org/ns/1.0"">Aus Russland.</stamp><milestone unit=""line"" xmlns=""http://www.tei-c.org/ns/1.0""/>An den Doctor</div>")
%test:args("<surface xmlns=""http://www.tei-c.org/ns/1.0"" n=""front_endpaper_IIr"" facs=""http://textgridrep.org/textgrid:166bw""><graphic xmlns=""http://www.tei-c.org/ns/1.0"" n=""A03_002"" url=""http://textgridrep.org/textgrid:166bw"" mimeType=""image/jpeg""/><zone xmlns=""http://www.tei-c.org/ns/1.0""><handShift xmlns=""http://www.tei-c.org/ns/1.0"" new=""#Archivar2""/><line xmlns=""http://www.tei-c.org/ns/1.0""><fw xmlns=""http://www.tei-c.org/ns/1.0"" type=""pageNum"">II</fw></line><handShift xmlns=""http://www.tei-c.org/ns/1.0"" new=""#Fontane""/></zone></surface>")
%test:assertEquals("<pb xmlns=""http://www.tei-c.org/ns/1.0"" n=""front_endpaper_IIr""/>", "<handShift xmlns=""http://www.tei-c.org/ns/1.0"" new=""#Archivar2"" script="""" medium=""""/>", "<milestone xmlns=""http://www.tei-c.org/ns/1.0"" unit=""line""/>", "<handShift xmlns=""http://www.tei-c.org/ns/1.0"" new=""#Fontane"" script="""" medium=""""/>")
%test:args("<surface xmlns=""http://www.tei-c.org/ns/1.0"" n=""Vr"" facs=""http://textgridrep.org/textgrid:18xgz"" type=""pocket"" subtype=""angeklebte_blaue_Tasche_von_Fontane_angefertigt_-_Angeklebtes_Blatt"" attachment=""partially_glued"" ulx=""0.0"" uly=""0.0"" lrx=""5.6"" lry=""13.9""><graphic xmlns=""http://www.tei-c.org/ns/1.0"" n=""C09_106"" url=""http://textgridrep.org/textgrid:18xgz"" mimeType=""image/jpeg""/><zone xmlns=""http://www.tei-c.org/ns/1.0"" ><handShift xmlns=""http://www.tei-c.org/ns/1.0"" new=""#Archivar2""/><line xmlns=""http://www.tei-c.org/ns/1.0""><fw xmlns=""http://www.tei-c.org/ns/1.0"" type=""pageNum"">V</fw></line><handShift xmlns=""http://www.tei-c.org/ns/1.0"" new=""#Fontane""/></zone><zone xmlns=""http://www.tei-c.org/ns/1.0"" type=""additional"" subtype=""getrocknete_Veilchen"" rend=""attachment:pocket""/><surface xmlns=""http://www.tei-c.org/ns/1.0"" n=""IVr"" facs=""http://textgridrep.org/textgrid:18xgz"" type=""clipping"" subtype=""von_Emilie_Fontane_beschriftetes_Blatt"" attachment=""glued"" ulx=""2.5"" uly=""1.9"" lrx=""3.8"" lry=""12.0""><graphic xmlns=""http://www.tei-c.org/ns/1.0"" n=""C09_106"" url=""http://textgridrep.org/textgrid:18xgz"" mimeType=""image/jpeg""/><zone xmlns=""http://www.tei-c.org/ns/1.0""><handShift xmlns=""http://www.tei-c.org/ns/1.0"" new=""#Archivar2""/><line xmlns=""http://www.tei-c.org/ns/1.0""><fw xmlns=""http://www.tei-c.org/ns/1.0"" type=""pageNum"">IV</fw></line><handShift xmlns=""http://www.tei-c.org/ns/1.0"" new=""#Fontane""/></zone><zone xmlns=""http://www.tei-c.org/ns/1.0"" rotate=""90"" ulx=""1.1"" uly=""0.7"" lrx=""13.1"" lry=""2.1""><handShift xmlns=""http://www.tei-c.org/ns/1.0"" medium=""black_ink""/><line xmlns=""http://www.tei-c.org/ns/1.0"">Ein frohes Wiederſehen</line><line xmlns=""http://www.tei-c.org/ns/1.0"">wünſchten die deut⸗</line><line xmlns=""http://www.tei-c.org/ns/1.0"">ſchen Veilchen.</line><handShift xmlns=""http://www.tei-c.org/ns/1.0"" medium=""pencil""/></zone></surface></surface>")
%test:assertEquals("<pb xmlns=""http://www.tei-c.org/ns/1.0"" n=""Vr""/>", "<div xmlns=""http://www.tei-c.org/ns/1.0"" facs=""http://textgridrep.org/textgrid:18xgz"" type=""pocket"" subtype=""angeklebte_blaue_Tasche_von_Fontane_angefertigt_-_Angeklebtes_Blatt"" attachment=""partially_glued""><handShift xmlns=""http://www.tei-c.org/ns/1.0"" script="""" medium="""" new=""#Archivar2""/><milestone xmlns=""http://www.tei-c.org/ns/1.0"" unit=""line""/><handShift xmlns=""http://www.tei-c.org/ns/1.0"" script="""" medium="""" new=""#Fontane""/><ab xmlns=""http://www.tei-c.org/ns/1.0"" type=""additional"" subtype=""getrocknete_Veilchen"" rend=""attachment:pocket""/><pb xmlns=""http://www.tei-c.org/ns/1.0"" n=""IVr""/><div facs=""http://textgridrep.org/textgrid:18xgz"" type=""clipping"" subtype=""von_Emilie_Fontane_beschriftetes_Blatt"" attachment=""glued""><handShift xmlns=""http://www.tei-c.org/ns/1.0"" script="""" medium="""" new=""#Archivar2""/><milestone xmlns=""http://www.tei-c.org/ns/1.0"" unit=""line""/><handShift script="""" medium="""" xmlns=""http://www.tei-c.org/ns/1.0"" new=""#Fontane""/><handShift script="""" xmlns=""http://www.tei-c.org/ns/1.0"" medium=""black_ink"" new=""#Fontane""/><milestone unit=""line"" xmlns=""http://www.tei-c.org/ns/1.0""/>Ein frohes Wiedersehen<milestone xmlns=""http://www.tei-c.org/ns/1.0"" unit=""line""/>wünschten die deut<milestone xmlns=""http://www.tei-c.org/ns/1.0"" unit=""line""/>schen Veilchen.<handShift xmlns=""http://www.tei-c.org/ns/1.0"" medium=""pencil"" new=""#Fontane"" script=""""/></div></div>")
%test:args("<zone xmlns=""http://www.tei-c.org/ns/1.0"" facs=""D07_003 D07_004"" type=""additional"" subtype=""getrocknetes_Blatt"" rend=""attachment:pocket""/>")
%test:assertEquals("<ab xmlns=""http://www.tei-c.org/ns/1.0"" facs=""D07_003 D07_004"" type=""additional"" subtype=""getrocknetes_Blatt"" rend=""attachment:pocket""/>")
%test:args("<surface xmlns=""http://www.tei-c.org/ns/1.0"" n=""IIv"" facs=""http://textgridrep.org/textgrid:197d3"" type=""clipping"" subtype=""Theaterzettel"" attachment=""partially_glued"" ulx=""0.2"" uly=""0.0"" lrx=""15.6"" lry=""21.4""><graphic xmlns=""http://www.tei-c.org/ns/1.0"" n=""D08_074"" url=""http://textgridrep.org/textgrid:197d3"" mimeType=""image/jpeg"" xml:id=""a11""/> <!-- 19.4.1871 --><zone xmlns=""http://www.tei-c.org/ns/1.0"" rendition=""#roman""><handShift xmlns=""http://www.tei-c.org/ns/1.0"" new=""#Druck_z""/><zone xmlns=""http://www.tei-c.org/ns/1.0"" ulx=""3.8"" uly=""1.0"" lry=""1.4""><line xmlns=""http://www.tei-c.org/ns/1.0"">Text</line></zone></zone></surface>")
%test:assertEquals("<pb xmlns=""http://www.tei-c.org/ns/1.0"" n=""IIv""/>", "<div xmlns=""http://www.tei-c.org/ns/1.0"" facs=""http://textgridrep.org/textgrid:197d3"" type=""clipping"" subtype=""Theaterzettel"" attachment=""partially_glued""><seg xmlns=""http://www.tei-c.org/ns/1.0"" rendition=""roman"" unit=""zone""><handShift xmlns=""http://www.tei-c.org/ns/1.0"" new=""#Druck_z"" script="""" medium=""""/><milestone xmlns=""http://www.tei-c.org/ns/1.0"" unit=""line""/>Text</seg></div>")
function teisimple-test:analyze-attachments($node as element(*)) {
fontaneSimple:transform($node)
};
(: 3.21.9 TOPOGRPHY OF THE PAGE :)
declare
......
This source diff could not be displayed because it is too large. You can view the blob instead.
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment