Commit 65f65e50 authored by MRodz's avatar MRodz Committed by mrodzis
Browse files

Add 3.21.20 vertical marks

parent 50be11b0
......@@ -526,4 +526,20 @@ declare
function teisimple-test:analyze-underline($node as element(*)) {
fontane-simple:transform($node)
};
\ No newline at end of file
};
(: 3.21.20 VERTICAL MARKS :)
declare
%test:name("Vertical marks")
%test:args("<zone xmlns=""http://www.tei-c.org/ns/1.0"" type=""highlighted"" style=""border-left-style:solid""><line xmlns=""http://www.tei-c.org/ns/1.0"" style=""margin-left:1.9cm"">Aber alles mehr</line></zone>")
%test:assertEquals("<hi xmlns=""http://www.tei-c.org/ns/1.0"" type=""vertical-mark"">Aber alles mehr</hi>")
%test:args("<zone xmlns=""http://www.tei-c.org/ns/1.0"" type=""highlighted"" style=""border-left-style:double""><zone xmlns=""http://www.tei-c.org/ns/1.0"" type=""highlighted"" style=""border-left-style:double""><line xmlns=""http://www.tei-c.org/ns/1.0"" style=""margin-left:0.2cm""><hi xmlns=""http://www.tei-c.org/ns/1.0"" xml:id=""B11_49v_a"" next=""#B11_41v_b"">Ein<seg xmlns=""http://www.tei-c.org/ns/1.0"" style=""text-decoration:underline"">e koloſſa</seg>le</hi></line></zone></zone>")
%test:assertEquals("<hi xmlns=""http://www.tei-c.org/ns/1.0"" type=""vertical-mark""><hi xmlns=""http://www.tei-c.org/ns/1.0"">Eine koloſſale</hi></hi>")
function teisimple-test:analyze-vertical-marks($node as element(*)) {
fontane-simple:transform($node)
};
......@@ -303,6 +303,14 @@ declare function fontane-simple:transform($nodes as node()*) as node()* {
$node/@xml:id,
fontane-simple:transform($node/node())
}
else if($node/@type = "highlighted") then
if($node/child::tei:zone[@type = "highlighted"]) then
fontane-simple:transform($node/node())
else
element tei:hi {
attribute type {"vertical-mark"},
fontane-simple:transform($node/node())
}
else if(not($node/@xml:id)) then
fontane-simple:transform($node/node())
else if($node/@xml:id and fontane-simple:is-transposed($node)) then
......
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