Commit 6b7cd392 authored by mrodzis's avatar mrodzis 🌎
Browse files

Fix bug in font size retrieval (cf. print#34)

parent 9ead5228
......@@ -197,8 +197,12 @@ as xs:boolean {
: :)
declare function simpleHelpers:get-font-size($node as node()) as xs:string {
(: example for style: "font-size:large; letter-spacing:0.2cm; text-decoration:underline" :)
let $tmp := substring-after($node/descendant-or-self::tei:seg[matches(@style, "font-size")]/@style, "font-size:")
return substring-before($tmp, ";")
let $tmp := substring-after($node/descendant-or-self::tei:seg[matches(@style, "font-size") and not(ancestor::tei:add[@place = "above"])]/@style, "font-size:")
return
if(matches($tmp, ";")) then
substring-before($tmp, ";")
else
$tmp
};
......
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