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
ffda7db8
Commit
ffda7db8
authored
Oct 25, 2019
by
Mathias Goebel
Browse files
refine expression
parent
fcbd4244
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
modules/fontane/transform.xqm
View file @
ffda7db8
...
...
@@ -639,7 +639,7 @@ as element(xhtml:span) {
attribute class {
'mod',
$node/@type,
if($node/@rend) then "mod" || replace($node/@rend, ";", "") => rep
a
lce(":", "_") => replace(" ", " mod") else (),
if($node/@rend) then "mod" || replace($node/@rend, ";", "") => repl
a
ce(":", "_") => replace(" ", " mod") else (),
if(local:modTest($node)) then 'addSesquipedalian' else ()
},
if($node/@style and not($node/@seq)) then $node/@style else (),
...
...
@@ -1392,8 +1392,8 @@ as item()* {
for $mod in $allModBefore
return
("modSeq" || string($mod/@seq), transfo:segStyle($mod))
let $styleToken :=
tokenize
($styleSource)
let $style := if(
index-of
($styleToken
,
"solid"
)[2]
) then (distinct-values($styleToken)[.
!=
"solid"], "double") else $styleToken
let $styleToken :=
string-join
($styleSource
, " ") => tokenize(
)
let $style := if(
count
($styleToken
[. eq
"solid"
]) gt 1
) then (distinct-values($styleToken)[.
ne
"solid"], "double") else $styleToken
return
$style
let $handShiftNewRef := $n/preceding::tei:handShift[@new][1]/substring-after(@new, '#')
...
...
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