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

Add 3.21.10.2.1.2.3 genealogy

parent cb32eff4
......@@ -330,4 +330,13 @@ declare
%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)
};
(: 3.21.10.2.1.2.3 GENEALOGY :)
declare
%test:name("Genealogy")
%test:args("<zone xmlns=""http://www.tei-c.org/ns/1.0"" points=""2.8,6.7 3.0,6.6 4.7,4.8""><figure xmlns=""http://www.tei-c.org/ns/1.0""><figDesc xmlns=""http://www.tei-c.org/ns/1.0""><ref target=""http://vocab.getty.edu/aat/300027016"">Stammbaumverbindungslinie</ref></figDesc></figure></zone>")
%test:assertEquals("<seg xmlns=""http://www.tei-c.org/ns/1.0"" points=""2.8,6.7 3.0,6.6 4.7,4.8""><figure xmlns=""http://www.tei-c.org/ns/1.0""><figDesc xmlns=""http://www.tei-c.org/ns/1.0""><ref target=""http://vocab.getty.edu/aat/300027016"">Stammbaumverbindungslinie</ref></figDesc></figure></seg>")
function teisimple-test:analyze-genealogy($node as element(*)) {
fontane-simple:transform($node)
};
\ No newline at end of file
......@@ -203,14 +203,24 @@ declare function fontane-simple:transform($nodes as node()*) as node()* {
return
if(matches($node/@style, "border-style:solid")
and not(matches($node/@style, "border-radius"))
and not($node/@rend = "border-style:house"))
then
and not($node/@rend = "border-style:house")) then
element tei:div {
attribute type {"frame"},
fontane-simple:transform($node/node())
}
else
else if($node/@points) then
element tei:seg {
$node/@*,
fontane-simple:transform($node/node())
}
else
fontane-simple:transform($node/node())
case element(tei:figure) return
$node
case element(tei:figDesc) return
$node
case element(tei:ref) return
$node
default return
fontane-simple:transform($node/node())
};
......
......@@ -860,7 +860,7 @@
<tei:handShift script="clean"/>
......@@ -928,7 +928,7 @@
<tei:seg style="text-decoration:underline">Wittenber</tei:seg>g
.
......
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