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
0b840d22
Commit
0b840d22
authored
Jul 23, 2018
by
Michelle Rodzis
Committed by
mrodzis
Feb 05, 2019
Browse files
Add first draft for 3.15 interrupted texts
parent
4eeff167
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
modules/fontane/teisimpleprint/tei2teisimple.xqm
View file @
0b840d22
...
...
@@ -529,8 +529,14 @@ declare function fontaneSimple:transform($nodes as node()*) as node()* {
else if(not($node/@xml:id)) then
fontaneSimple:transform($node/node())
else if($node/@xml:id and simpleHelpers:is-transposed($node)) then
()
else if($node/@xml:id) then
element tei:seg {
$node/@xml:id,
$node/@prev,
$node/@next,
$node/@corresp,
fontaneSimple:transform($node/node())
}
else
fontaneSimple:transform($node/node())
...
...
modules/fontane/teisimpleprint/tests/teisimple-test.xql
View file @
0b840d22
...
...
@@ -527,6 +527,18 @@ declare
};
(: 3.15 Interrupted texts :)
declare
%test:name("Interrupted texts")
%test:args("<zone xmlns=""http://www.tei-c.org/ns/1.0"" xml:id=""D02_42v_3"" prev=""#D02_42r_3"" next=""#D02_43r_1""><line xmlns=""http://www.tei-c.org/ns/1.0"" style=""margin-left:0.8cm"">eigentlich alle häßlich; die</line></zone>")
%test:assertEquals("<seg xmlns=""http://www.tei-c.org/ns/1.0"" xml:id=""D02_42v_3"" prev=""#D02_42r_3"" next=""#D02_43r_1""><milestone xmlns=""http://www.tei-c.org/ns/1.0"" unit=""line""/>eigentlich alle häßlich; die</seg>")
function teisimple-test:analyze-interrupted($node as element(*)) {
fontaneSimple:transform($node)
};
(: 3.16 Links :)
declare
%test:name("Links")
...
...
@@ -787,7 +799,7 @@ declare
%test:assertEmpty
%test:args("<zone xmlns=""http://www.tei-c.org/ns/1.0"" type=""multiphrase"" subtype=""extensive"" xml:id=""D04_10r_2"" next=""#D04_10v_a"" corresp=""#D04_10r_c""><zone style=""border-left-style:solid""><line xmlns=""http://www.tei-c.org/ns/1.0""><handShift xmlns=""http://www.tei-c.org/ns/1.0"" new=""#Fontane""/>mit einem ſlaviſch⸗ſtubs-</line></zone></zone>")
%test:assertEquals("<milestone xmlns=""http://www.tei-c.org/ns/1.0"" unit=""line""/>
", "
<handShift xmlns=""http://www.tei-c.org/ns/1.0"" new=""#Fontane"" script="""" medium=""""/>
", "
mit einem slavisch⸗stubs")
%test:assertEquals("<
seg xmlns=""http://www.tei-c.org/ns/1.0"" xml:id=""D04_10r_2"" next=""#D04_10v_a"" corresp=""#D04_10r_c""><
milestone xmlns=""http://www.tei-c.org/ns/1.0"" unit=""line""/><handShift xmlns=""http://www.tei-c.org/ns/1.0"" new=""#Fontane"" script="""" medium=""""/>mit einem slavisch⸗stubs
</seg>
")
function teisimple-test:analyze-multiphrase($node as element(*)) {
fontaneSimple:transform($node)
};
...
...
resources/xml/tei-simple-pre.xml
View file @
0b840d22
This diff is collapsed.
Click to expand it.
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