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

Add first draft for 3.15 interrupted texts

parent 4eeff167
......@@ -529,8 +529,14 @@ declare function fontaneSimple:transform($nodes as node()*) as node()* {
else if(not($node/@xml:id)) then
fontaneSimple:transform($node/node())
else if($node/@xml:id and simpleHelpers:is-transposed($node)) then
()
else if($node/@xml:id) then
element tei:seg {
$node/@xml:id,
$node/@prev,
$node/@next,
$node/@corresp,
fontaneSimple:transform($node/node())
}
else
fontaneSimple:transform($node/node())
......
......@@ -527,6 +527,18 @@ declare
};
(: 3.15 Interrupted texts :)
declare
%test:name("Interrupted texts")
%test:args("<zone xmlns=""http://www.tei-c.org/ns/1.0"" xml:id=""D02_42v_3"" prev=""#D02_42r_3"" next=""#D02_43r_1""><line xmlns=""http://www.tei-c.org/ns/1.0"" style=""margin-left:0.8cm"">eigentlich alle häßlich; die</line></zone>")
%test:assertEquals("<seg xmlns=""http://www.tei-c.org/ns/1.0"" xml:id=""D02_42v_3"" prev=""#D02_42r_3"" next=""#D02_43r_1""><milestone xmlns=""http://www.tei-c.org/ns/1.0"" unit=""line""/>eigentlich alle häßlich; die</seg>")
function teisimple-test:analyze-interrupted($node as element(*)) {
fontaneSimple:transform($node)
};
(: 3.16 Links :)
declare
%test:name("Links")
......@@ -787,7 +799,7 @@ declare
%test:assertEmpty
%test:args("<zone xmlns=""http://www.tei-c.org/ns/1.0"" type=""multiphrase"" subtype=""extensive"" xml:id=""D04_10r_2"" next=""#D04_10v_a"" corresp=""#D04_10r_c""><zone style=""border-left-style:solid""><line xmlns=""http://www.tei-c.org/ns/1.0""><handShift xmlns=""http://www.tei-c.org/ns/1.0"" new=""#Fontane""/>mit einem ſlaviſch⸗ſtubs-</line></zone></zone>")
%test:assertEquals("<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=""""/>", "mit einem slavisch⸗stubs")
%test:assertEquals("<seg xmlns=""http://www.tei-c.org/ns/1.0"" xml:id=""D04_10r_2"" next=""#D04_10v_a"" corresp=""#D04_10r_c""><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=""""/>mit einem slavisch⸗stubs</seg>")
function teisimple-test:analyze-multiphrase($node as element(*)) {
fontaneSimple:transform($node)
};
......
This diff is collapsed.
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