Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
fontane-notizbuecher
SADE
Commits
1dbb67b4
Commit
1dbb67b4
authored
Nov 21, 2018
by
mrodzis
💪
Browse files
Add case for splitting headings
parent
9a640cfe
Changes
1
Show whitespace changes
Inline
Side-by-side
modules/fontane/teisimpleprint/tidysimple.xqm
View file @
1dbb67b4
...
...
@@ -365,6 +365,7 @@ declare function tidySimple:split-headings($nodes as node()*) as node()* {
$split-bottom
})
}
else
element {QName("http://www.tei-c.org/ns/1.0", $node/name())} {
$node/@*,
...
...
@@ -374,6 +375,21 @@ declare function tidySimple:split-headings($nodes as node()*) as node()* {
default return
element {QName("http://www.tei-c.org/ns/1.0", $node/name())} {
$node/@*,
if($node/tei:add[@type = "edited_text" and @subtype = "interlinear"]) then
let $add := $node/tei:add[@type = "edited_text" and @subtype = "interlinear"]
return
(element {QName("http://www.tei-c.org/ns/1.0", "seg")} {
attribute type {"upper-part"},
$add/node()
},
element {QName("http://www.tei-c.org/ns/1.0", "lb")} {
attribute type {"edited_text"}
},
element {QName("http://www.tei-c.org/ns/1.0", "seg")} {
attribute type {"lower-part"},
$add/following-sibling::node()
})
else
tidySimple:split-headings($node/node())
}
};
\ No newline at end of file
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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