Skip to content

Commit

Permalink
process tei:cb within wega-util:txtFromTEI()
Browse files Browse the repository at this point in the history
  • Loading branch information
peterstadler committed Dec 17, 2020
1 parent 5683299 commit fe3530f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions modules/wega-util.xqm
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,9 @@ declare function wega-util:txtFromTEI($nodes as node()*) as xs:string* {
case element(tei:pb) return
if($node[@type='inWord' or @break='no']) then ()
else ' '
case element(tei:cb) return
if($node[@type='inWord' or @break='no']) then ()
else ' '
case element(tei:q) return
if((count($node/ancestor::tei:q | $node/ancestor::tei:quote) mod 2) = 0) then str:enquote($node/child::node() ! wega-util:txtFromTEI(.), config:guess-language(()))
else str:enquote-single($node/child::node() ! wega-util:txtFromTEI(.), config:guess-language(()))
Expand Down

0 comments on commit fe3530f

Please sign in to comment.