Commit 369661dd authored by mrodzis's avatar mrodzis 🌎
Browse files

Add flag for image beviour (cf. print#69)

parent 9c6772bb
......@@ -625,6 +625,7 @@ declare function fontaneSimple:transform($nodes as node()*, $uri as xs:string) a
default return
attribute type {"end-line"}
}
else if(matches($node/descendant::tei:ref, "Absatzlinie")
(: in case of double paragraph lines the single lines are
encoded with "oberer" resp. "unterer Teil", but we only
......@@ -638,13 +639,29 @@ declare function fontaneSimple:transform($nodes as node()*, $uri as xs:string) a
else
attribute type {"short-paragraph-line"}
}
else if($node/ancestor::tei:zone[@type = "illustration"]) then
(element {QName("http://www.tei-c.org/ns/1.0", $node/name())}{
$node/@*,
attribute href {tbleapi:get-url($uri, $node/@xml:id, "png")},
fontaneSimple:transform($node/node(), $uri)
})
let $display :=
if($node/ancestor::tei:zone[@type = "illustration"]/tei:milestone[@unit = "illustration"][. << $node]) then
"block"
else
"inline"
let $img-url := tbleapi:get-url($uri, $node/@xml:id, "png")
let $img-url :=
if($display = "inline") then
replace($img-url, ",1000", ",500")
else
$img-url
return
element {QName("http://www.tei-c.org/ns/1.0", $node/name())}{
$node/@*,
attribute position {$display},
attribute href {$img-url},
fontaneSimple:transform($node/node(), $uri)
}
else
()
else
fontaneSimple:copy-element($node, $uri)
......
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