Commit b1350c96 authored by MRodz's avatar MRodz Committed by mrodzis
Browse files

Add 3.6 Glue and page fragments

parent 677984b3
......@@ -46,8 +46,22 @@ declare
fontane-simple:transform($node)
};
(: 3.6 Glue and page fragments :)
declare
%test:name("Glue and page fragments")
%test:args("<mod xmlns=""http://www.tei-c.org/ns/1.0"" rend=""glue_trace""/>")
%test:assertEmpty
%test:args("<surface xmlns=""http://www.tei-c.org/ns/1.0"" n=""28rar"" facs=""http://textgridrep.org/textgrid:18zt9"" type=""clipping"" subtype=""Zeitungsausschnitt_Fragment"" attachment=""glued"" ulx=""2.9"" uly=""1.9"" lrx=""8.9"" lry=""4.1""><graphic xmlns=""http://www.tei-c.org/ns/1.0"" n=""D05_038"" url=""http://textgridrep.org/textgrid:18zt9"" mimeType=""image/jpeg""/></surface>")
%test:assertEquals("<pb xmlns=""http://www.tei-c.org/ns/1.0"" n=""28rar""/>")
function teisimple-test:analyze-glue-page-fragments($node as element(*)) {
fontane-simple:transform($node)
};
(: 3.8.1: Line counting :)
(: 3.8.1 Line counting :)
declare
%test:name("Line counting")
%test:args("<zone xmlns=""http://www.tei-c.org/ns/1.0"" type=""label"" rotate=""357"" ulx=""1.5"" uly=""4.7"" lrx=""8.4"" lry=""9.2""><handShift xmlns=""http://www.tei-c.org/ns/1.0"" new=""#fremde_Hand3""/><line xmlns=""http://www.tei-c.org/ns/1.0"" style=""margin-left:0.4cm"">✓<handShift xmlns=""http://www.tei-c.org/ns/1.0"" new=""#Fontane""/> 1873.</line></zone>")
......
......@@ -229,7 +229,8 @@ declare function fontane-simple:transform($nodes as node()*) as node()* {
else if(matches($node/@n, "[0-9IVXMCD]{1,7}[rv]{1}")
and $node/@type = "clipping") then
(local:make-pb($node),
(if(not($node/@subtype = "Kalenderblatt")) then
(if(not($node/@subtype = "Kalenderblatt"
or $node/@subtype = "Zeitungsausschnitt_Fragment")) then
element tei:div{
$node/((@* except @facs) except @n),
fontane-simple:transform($node/node())
......
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