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
cb32eff4
Commit
cb32eff4
authored
Jun 20, 2018
by
MRodz
Committed by
mrodzis
Feb 05, 2019
Browse files
Add 3.21.10.2.1.2.2. boundary markers and lines
parent
e1dacb72
Changes
2
Hide whitespace changes
Inline
Side-by-side
modules/fontane/teisimple-test.xql
View file @
cb32eff4
...
...
@@ -318,4 +318,16 @@ declare
%test:assertEquals("des Feindes an und")
function teisimple-test:analyze-boundary($node as element(*)) {
fontane-simple:transform($node)
};
declare
%test:name("Boundary lines")
%test:args("<metamark xmlns=""http://www.tei-c.org/ns/1.0"" function=""integrate"" rend=""bracket_left"" corresp=""#D02_43v_2"" target=""#D02_43v_4""/>")
%test:assertEquals("<ab xmlns=""http://www.tei-c.org/ns/1.0"" function=""integrate"" rend=""bracket_left"" corresp=""#D02_43v_2"" target=""#D02_43v_4""/>")
%test:args("<metamark xmlns=""http://www.tei-c.org/ns/1.0"" function=""integrate"" rend=""bracket_right"" corresp=""#D02_43v_2"" target=""#D02_43v_4""/>")
%test:assertEquals("<ab xmlns=""http://www.tei-c.org/ns/1.0"" function=""integrate"" rend=""bracket_right"" corresp=""#D02_43v_2"" target=""#D02_43v_4""/>")
%test:args("<metamark xmlns=""http://www.tei-c.org/ns/1.0"" function=""authorial_note"" rend=""bracket_right"" corresp=""#D02_43v_2"" target=""#D02_43v_4""/>")
%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)
};
\ No newline at end of file
modules/fontane/transform2teisimple.xqm
View file @
cb32eff4
...
...
@@ -191,6 +191,14 @@ declare function fontane-simple:transform($nodes as node()*) as node()* {
element tei:gap {
$node/@*
}
case element(tei:metamark) return
if($node/@function = "integrate"
or $node/@function = "authorial_note") then
element tei:ab {
$node/@*
}
else
()
case element(tei:zone)
return
if(matches($node/@style, "border-style:solid")
...
...
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