Skip to content

Commit

Permalink
Re-enabled f:overw rendering.
Browse files Browse the repository at this point in the history
Fixes faustedition/faust-xml#648 when f:overw is re-introduced into the sources.
  • Loading branch information
thvitt committed Oct 8, 2018
1 parent 4439b53 commit d097fc3
Showing 1 changed file with 19 additions and 1 deletion.
20 changes: 19 additions & 1 deletion svg_rendering/page/js-gen/transcript-configuration-faust.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ if (window.Faust === undefined) {
// should overlapping stuff be rendered on top of each other?
// overlay : "overlay",
overlay: "none",
stripWhitespace: ['overw'], // FIXME should be mod[@rend='overwrite']
stripWhitespace: ['overw'],
// distance from top of one line to top of the following line
lineSpacingValue: "20",
lineSpacingUnit: "pt",
Expand Down Expand Up @@ -339,6 +339,24 @@ if (window.Faust === undefined) {
}
},

'over': {
text: function (annotation, textVC) {
textVC.classes.push('over');
}
},

'overw': {
vc: function () {
return new FaustTranscript.InlineViewComponent();
}
},

'under': {
text: function (annotation, textVC, layoutState) {
textVC.classes.push('under');
}
},

'line': {
vc: function (node, text, layoutState) {

Expand Down

0 comments on commit d097fc3

Please sign in to comment.