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
b1350c96
Commit
b1350c96
authored
Jun 22, 2018
by
MRodz
Committed by
mrodzis
Feb 05, 2019
Browse files
Add 3.6 Glue and page fragments
parent
677984b3
Changes
2
Hide whitespace changes
Inline
Side-by-side
modules/fontane/teisimple-test.xql
View file @
b1350c96
...
...
@@ -46,8 +46,22 @@ declare
fontane-simple:transform($node)
};
(: 3.6 Glue and page fragments :)
declare
%test:name("Glue and page fragments")
%test:args("<mod xmlns=""http://www.tei-c.org/ns/1.0"" rend=""glue_trace""/>")
%test:assertEmpty
%test:args("<surface xmlns=""http://www.tei-c.org/ns/1.0"" n=""28rar"" facs=""http://textgridrep.org/textgrid:18zt9"" type=""clipping"" subtype=""Zeitungsausschnitt_Fragment"" attachment=""glued"" ulx=""2.9"" uly=""1.9"" lrx=""8.9"" lry=""4.1""><graphic xmlns=""http://www.tei-c.org/ns/1.0"" n=""D05_038"" url=""http://textgridrep.org/textgrid:18zt9"" mimeType=""image/jpeg""/></surface>")
%test:assertEquals("<pb xmlns=""http://www.tei-c.org/ns/1.0"" n=""28rar""/>")
function teisimple-test:analyze-glue-page-fragments($node as element(*)) {
fontane-simple:transform($node)
};
(: 3.8.1
:
Line counting :)
(: 3.8.1 Line counting :)
declare
%test:name("Line counting")
%test:args("<zone xmlns=""http://www.tei-c.org/ns/1.0"" type=""label"" rotate=""357"" ulx=""1.5"" uly=""4.7"" lrx=""8.4"" lry=""9.2""><handShift xmlns=""http://www.tei-c.org/ns/1.0"" new=""#fremde_Hand3""/><line xmlns=""http://www.tei-c.org/ns/1.0"" style=""margin-left:0.4cm"">✓<handShift xmlns=""http://www.tei-c.org/ns/1.0"" new=""#Fontane""/> 1873.</line></zone>")
...
...
modules/fontane/transform2teisimple.xqm
View file @
b1350c96
...
...
@@ -229,7 +229,8 @@ declare function fontane-simple:transform($nodes as node()*) as node()* {
else if(matches($node/@n, "[0-9IVXMCD]{1,7}[rv]{1}")
and $node/@type = "clipping") then
(local:make-pb($node),
(if(not($node/@subtype = "Kalenderblatt")) then
(if(not($node/@subtype = "Kalenderblatt"
or $node/@subtype = "Zeitungsausschnitt_Fragment")) then
element tei:div{
$node/((@* except @facs) except @n),
fontane-simple:transform($node/node())
...
...
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