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

Add 3.21.10.2.1.2.2. boundary markers and lines

parent e1dacb72
......@@ -318,4 +318,16 @@ declare
%test:assertEquals("des Feindes an und")
function teisimple-test:analyze-boundary($node as element(*)) {
fontane-simple:transform($node)
};
declare
%test:name("Boundary lines")
%test:args("<metamark xmlns=""http://www.tei-c.org/ns/1.0"" function=""integrate"" rend=""bracket_left"" corresp=""#D02_43v_2"" target=""#D02_43v_4""/>")
%test:assertEquals("<ab xmlns=""http://www.tei-c.org/ns/1.0"" function=""integrate"" rend=""bracket_left"" corresp=""#D02_43v_2"" target=""#D02_43v_4""/>")
%test:args("<metamark xmlns=""http://www.tei-c.org/ns/1.0"" function=""integrate"" rend=""bracket_right"" corresp=""#D02_43v_2"" target=""#D02_43v_4""/>")
%test:assertEquals("<ab xmlns=""http://www.tei-c.org/ns/1.0"" function=""integrate"" rend=""bracket_right"" corresp=""#D02_43v_2"" target=""#D02_43v_4""/>")
%test:args("<metamark xmlns=""http://www.tei-c.org/ns/1.0"" function=""authorial_note"" rend=""bracket_right"" corresp=""#D02_43v_2"" target=""#D02_43v_4""/>")
%test:assertEquals("<ab xmlns=""http://www.tei-c.org/ns/1.0"" function=""authorial_note"" rend=""bracket_right"" corresp=""#D02_43v_2"" target=""#D02_43v_4""/>")
function teisimple-test:analyze-boundary($node as element(*)) {
fontane-simple:transform($node)
};
\ No newline at end of file
......@@ -191,6 +191,14 @@ declare function fontane-simple:transform($nodes as node()*) as node()* {
element tei:gap {
$node/@*
}
case element(tei:metamark) return
if($node/@function = "integrate"
or $node/@function = "authorial_note") then
element tei:ab {
$node/@*
}
else
()
case element(tei:zone)
return
if(matches($node/@style, "border-style:solid")
......
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