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
38bbb00a
Commit
38bbb00a
authored
Sep 05, 2018
by
MRodz
Committed by
mrodzis
Feb 05, 2019
Browse files
Add 3.7.13 sketches as entities
parent
60cb4b01
Changes
2
Hide whitespace changes
Inline
Side-by-side
modules/fontane/teisimpleprint/tei2teisimple.xqm
View file @
38bbb00a
...
...
@@ -591,7 +591,7 @@ declare function fontaneSimple:transform($nodes as node()*) as node()* {
else
attribute type {"short-paragraph-line"}
}
else if($node/
parent
::tei:zone[@type = "illustration"]) then
else if($node/
ancestor
::tei:zone[@type = "illustration"]) then
element {QName("http://www.tei-c.org/ns/1.0", $node/name())}{
$node/@*,
fontaneSimple:transform($nodes/node())
...
...
modules/fontane/teisimpleprint/tests/teisimple-test.xql
View file @
38bbb00a
...
...
@@ -129,7 +129,11 @@ declare
%test:assertEmpty
%test:args("<line xmlns=""http://www.tei-c.org/ns/1.0""><zone xmlns=""http://www.tei-c.org/ns/1.0"" type=""illustration""><milestone xmlns=""http://www.tei-c.org/ns/1.0"" unit=""illustration""/><zone xmlns=""http://www.tei-c.org/ns/1.0"" type=""illustration"" ulx=""0.8"" uly=""0.0"" lrx=""5.9"" lry=""7.6""><figure xml:id=""a4"" xmlns=""http://www.tei-c.org/ns/1.0""><figDesc xmlns=""http://www.tei-c.org/ns/1.0"" copyOf=""#C08_16r_a""/></figure></zone><zone xmlns=""http://www.tei-c.org/ns/1.0"" type=""illustration"" ulx=""6.9"" uly=""1.1"" lrx=""8.5"" lry=""3.8""><figure xmlns=""http://www.tei-c.org/ns/1.0"" xml:id=""a5""><figDesc xmlns=""http://www.tei-c.org/ns/1.0"" xml:id=""C08_16r_a""><ref xmlns=""http://www.tei-c.org/ns/1.0"" target=""http://vocab.getty.edu/aat/300015566"">Umgebungsplan</ref> Venedig mit Markusplatz, San Giorgio Maggiore und La Giudecca</figDesc></figure></zone></zone></line>")
%test:assertEquals("<milestone xmlns=""http://www.tei-c.org/ns/1.0"" unit=""line""/>", "<ab xmlns=""http://www.tei-c.org/ns/1.0"" type=""composed-sketch""><ab rendition=""margin-left:0.8cm; margin-top:0.0cm"" xmlns=""http://www.tei-c.org/ns/1.0"" type=""sketch""><figure xmlns=""http://www.tei-c.org/ns/1.0"" xml:id=""a4""><figDesc xmlns=""http://www.tei-c.org/ns/1.0"" copyOf=""#C08_16r_a""/></figure></ab><ab xmlns=""http://www.tei-c.org/ns/1.0"" type=""sketch"" rendition=""margin-left:6.9cm; margin-top:1.1cm""><figure xmlns=""http://www.tei-c.org/ns/1.0"" xml:id=""a5""><figDesc xmlns=""http://www.tei-c.org/ns/1.0"" xml:id=""C08_16r_a""><ref xmlns=""http://www.tei-c.org/ns/1.0"" target=""http://vocab.getty.edu/aat/300015566"">Umgebungsplan</ref> Venedig mit Markusplatz, San Giorgio Maggiore und La Giudecca</figDesc></figure></ab></ab>")
%test:assertEquals("<milestone xmlns=""http://www.tei-c.org/ns/1.0"" unit=""line""/>", "<ab xmlns=""http://www.tei-c.org/ns/1.0"" type=""composed-sketch""><ab rendition=""margin-left:0.8cm; margin-top:0.0cm"" xmlns=""http://www.tei-c.org/ns/1.0"" type=""sketch""><figure xmlns=""http://www.tei-c.org/ns/1.0"" xml:id=""a4""><figDesc xmlns=""http://www.tei-c.org/ns/1.0"" copyOf=""#C08_16r_a""/></figure></ab><ab xmlns=""http://www.tei-c.org/ns/1.0"" type=""sketch"" rendition=""margin-left:6.9cm; margin-top:1.1cm""><figure xmlns=""http://www.tei-c.org/ns/1.0"" xml:id=""a5""><figDesc xmlns=""http://www.tei-c.org/ns/1.0"" xml:id=""C08_16r_a""><ref xmlns=""http://www.tei-c.org/ns/1.0"" target=""http://vocab.getty.edu/aat/300015566"">Umgebungsplan</ref> Venedig mit Markusplatz, San Giorgio Maggiore und La Giudecca</figDesc></figure></ab></ab>")
%test:args("<line xmlns=""http://www.tei-c.org/ns/1.0""><zone xmlns=""http://www.tei-c.org/ns/1.0"" type=""illustration"" ulx=""9.6"" uly=""11.8"" lrx=""10.2"" lry=""13.2""><seg xmlns=""http://www.tei-c.org/ns/1.0""><rs xmlns=""http://www.tei-c.org/ns/1.0"" type=""direct"" ref=""plc:Gentzrode_Schloss""><figure xmlns=""http://www.tei-c.org/ns/1.0"" xml:id=""a18""><figDesc xmlns=""http://www.tei-c.org/ns/1.0""><ref xmlns=""http://www.tei-c.org/ns/1.0"" target=""http://vocab.getty.edu/aat/300034065"">Gebäudeaufriss</ref>; Gentzrode, Speicher mit Wohnturm (Seitenfront)</figDesc></figure></rs></seg></zone></line>")
%test:assertEquals("<milestone xmlns=""http://www.tei-c.org/ns/1.0"" unit=""line""/>", "<ab xmlns=""http://www.tei-c.org/ns/1.0"" type=""sketch""><rs xmlns=""http://www.tei-c.org/ns/1.0"" type=""direct"" ref=""plc:Gentzrode_Schloss""><figure xmlns=""http://www.tei-c.org/ns/1.0"" xml:id=""a18""><figDesc xmlns=""http://www.tei-c.org/ns/1.0""><ref xmlns=""http://www.tei-c.org/ns/1.0"" target=""http://vocab.getty.edu/aat/300034065"">Gebäudeaufriss</ref>; Gentzrode, Speicher mit Wohnturm (Seitenfront)</figDesc></figure></rs></ab>")
function teisimple-test:analyze-sketches($node as element(*)) {
fontaneSimple:transform($node)
...
...
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