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
abf6d9a0
Commit
abf6d9a0
authored
Jun 20, 2018
by
MRodz
Committed by
mrodzis
Feb 05, 2019
Browse files
Add 3.21.10.2.1.2.3 genealogy
parent
cb32eff4
Changes
3
Hide whitespace changes
Inline
Side-by-side
modules/fontane/teisimple-test.xql
View file @
abf6d9a0
...
...
@@ -330,4 +330,13 @@ declare
%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)
};
(: 3.21.10.2.1.2.3 GENEALOGY :)
declare
%test:name("Genealogy")
%test:args("<zone xmlns=""http://www.tei-c.org/ns/1.0"" points=""2.8,6.7 3.0,6.6 4.7,4.8""><figure xmlns=""http://www.tei-c.org/ns/1.0""><figDesc xmlns=""http://www.tei-c.org/ns/1.0""><ref target=""http://vocab.getty.edu/aat/300027016"">Stammbaumverbindungslinie</ref></figDesc></figure></zone>")
%test:assertEquals("<seg xmlns=""http://www.tei-c.org/ns/1.0"" points=""2.8,6.7 3.0,6.6 4.7,4.8""><figure xmlns=""http://www.tei-c.org/ns/1.0""><figDesc xmlns=""http://www.tei-c.org/ns/1.0""><ref target=""http://vocab.getty.edu/aat/300027016"">Stammbaumverbindungslinie</ref></figDesc></figure></seg>")
function teisimple-test:analyze-genealogy($node as element(*)) {
fontane-simple:transform($node)
};
\ No newline at end of file
modules/fontane/transform2teisimple.xqm
View file @
abf6d9a0
...
...
@@ -203,14 +203,24 @@ declare function fontane-simple:transform($nodes as node()*) as node()* {
return
if(matches($node/@style, "border-style:solid")
and not(matches($node/@style, "border-radius"))
and not($node/@rend = "border-style:house"))
then
and not($node/@rend = "border-style:house")) then
element tei:div {
attribute type {"frame"},
fontane-simple:transform($node/node())
}
else
else if($node/@points) then
element tei:seg {
$node/@*,
fontane-simple:transform($node/node())
}
else
fontane-simple:transform($node/node())
case element(tei:figure) return
$node
case element(tei:figDesc) return
$node
case element(tei:ref) return
$node
default return
fontane-simple:transform($node/node())
};
...
...
resources/xml/tei-simple.xml
View file @
abf6d9a0
...
...
@@ -860,7 +860,7 @@
<tei:handShift
script=
"clean"
/>
╒
...
...
@@ -928,7 +928,7 @@
<tei:seg
style=
"text-decoration:underline"
>
Wittenber
</tei:seg>
g
.
╒
...
...
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