Commit f212085b authored by MRodz's avatar MRodz Committed by mrodzis
Browse files

Add 3.22.4.1 prints that imitate handwriting

parent 1618dd3c
......@@ -527,6 +527,7 @@ declare function fontaneSimple:transform($nodes as node()*) as node()* {
else if(simpleHelpers:has-valid-style($node)
or matches($node/@rendition, "black_letter")
or matches($node/@rendition, "script")
or matches($node/@rendition, "roman")) then
fontaneSimple:make-seg-with-rendition($node)
......
......@@ -1048,6 +1048,9 @@ declare
(: 3.22.1 print typography :)
declare
%test:name("print typography")
%test:args("<zone xmlns=""http://www.tei-c.org/ns/1.0"" rendition=""#script""><line xmlns=""http://www.tei-c.org/ns/1.0""><handShift xmlns=""http://www.tei-c.org/ns/1.0"" new=""#Fontane""/>Ober⸗Tribunals⸗Rath</line></zone>")
%test:assertEquals("<seg xmlns=""http://www.tei-c.org/ns/1.0"" rendition=""script"" unit=""zone""><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=""""/>Ober⸗Tribunals⸗Rath</seg>")
%test:args("<line xmlns=""http://www.tei-c.org/ns/1.0"" rendition=""#black_letter""><handShift xmlns=""http://www.tei-c.org/ns/1.0"" new=""#Fontane""/>Dampf - Schiffahrt</line>")
%test:assertEquals("<seg xmlns=""http://www.tei-c.org/ns/1.0"" unit=""line"" rendition=""black_letter""><handShift xmlns=""http://www.tei-c.org/ns/1.0"" new=""#Fontane"" script="""" medium=""""/>Dampf - Schiffahrt</seg>")
......
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