Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
fontane-notizbuecher
SADE
Commits
369661dd
Commit
369661dd
authored
Jan 10, 2019
by
mrodzis
🌿
Browse files
Add flag for image beviour (cf. print#69)
parent
9c6772bb
Changes
1
Hide whitespace changes
Inline
Side-by-side
modules/fontane/teisimpleprint/tei2teisimple.xqm
View file @
369661dd
...
...
@@ -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)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment