Commit 1bd1ec07 authored by MRodz's avatar MRodz Committed by mrodzis
Browse files

Add first draft for 3.22.22 printed illustrations

parent 23feff2a
......@@ -319,7 +319,8 @@ declare function fontaneSimple:transform($nodes as node()*) as node()* {
fontaneSimple:transform($node/node())
}
else if($node/@type = "illustration") then
else if($node/@type = "illustration"
or $node/@type = "printed_illustration") then
if(not($node//tei:figure/parent::tei:del)) then
element {QName("http://www.tei-c.org/ns/1.0", "ab")}{
(if($node/child::tei:zone[@type = "illustration"]) then
......@@ -338,7 +339,8 @@ declare function fontaneSimple:transform($nodes as node()*) as node()* {
else
()
else if($node/parent::tei:zone/@type = "illustration") then
else if($node/parent::tei:zone/@type = "illustration"
or $node/parent::tei:zone/@type = "printed_illustration") then
element {QName("http://www.tei-c.org/ns/1.0", "seg")}{
attribute type {"caption"},
attribute rendition {"margin-left:" || $node/@ulx || "cm; "
......
......@@ -1027,6 +1027,16 @@ declare
fontaneSimple:transform($node)
};
(:(: 3.22.22 Printed illustrations :):)
(:declare:)
(: %test:name("Print: red letters"):)
(: %test:args("<zone xmlns=""http://www.tei-c.org/ns/1.0"" type=""printed_illustration""><milestone xmlns=""http://www.tei-c.org/ns/1.0"" unit=""illustration""/><figure xmlns=""http://www.tei-c.org/ns/1.0""><figDesc xmlns=""http://www.tei-c.org/ns/1.0""><ref xmlns=""http://www.tei-c.org/ns/1.0"" target=""http://vocab.getty.edu/aat/300100181"">Gebäudeansicht</ref>; Hotel Grosse/Zähringer Hof in Karlsruhe.</figDesc></figure><zone xmlns=""http://www.tei-c.org/ns/1.0""><line xmlns=""http://www.tei-c.org/ns/1.0""><handShift xmlns=""http://www.tei-c.org/ns/1.0"" new=""#Fontane""/>Hotel Grosse.</line></zone></zone>") :)
(: %test:assertEquals(""):)
(: :)
(: function teisimple-test:analyze-print-illustration($node as element(*)) {:)
(: fontaneSimple:transform($node):)
(:};:)
(: SECTIONS :)
......
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