Commit 731de601 authored by MRodz's avatar MRodz Committed by mrodzis
Browse files

Add 3.18 languages

parent 1bd1ec07
......@@ -196,8 +196,10 @@ declare function fontaneSimple:transform($nodes as node()*) as node()* {
and simpleHelpers:has-valid-text($node)) then
simpleHelpers:make-seg-with-rendition($node)
else if($node/@type = "initials" or $node/@type = "monogram"
or $node/@type = "multiphrase")
else if($node/@type = "initials"
or $node/@type = "monogram"
or $node/@type = "multiphrase"
or $node/@xml:lang)
then
simpleHelpers:copy-element($node)
......
......@@ -444,6 +444,17 @@ declare
fontaneSimple:transform($node)
};
(: 3.18 languages :)
declare
%test:name("Languages")
%test:args("<line xmlns=""http://www.tei-c.org/ns/1.0""><seg xmlns=""http://www.tei-c.org/ns/1.0"" xml:lang=""la-Latn""><handShift xmlns=""http://www.tei-c.org/ns/1.0"" new=""#Fontane""/>ac delecta Romae sede</seg></line>")
%test:assertEquals("<seg xmlns=""http://www.tei-c.org/ns/1.0"" xml:lang=""la-Latn""><handShift xmlns=""http://www.tei-c.org/ns/1.0"" new=""#Fontane""/>ac delecta Romae sede</seg>")
function teisimple-test:analyze-languages($node as element(*)) {
fontaneSimple:transform($node)
};
(: 3.21.9 TOPOGRPHY OF THE PAGE :)
declare
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment