Skip to content

Commit

Permalink
Fixed a small bug that was causing two alleluias not to work when mak…
Browse files Browse the repository at this point in the history
…ing a PDF via gregorio
  • Loading branch information
Benjamin Bloomfield committed Jul 22, 2018
1 parent 3c98f3b commit ef442e2
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion propers.js
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,7 @@ $(function(){
.replace(/<v>\$\\guillemotright\$<\/v>/g,'»')
.replace(/(aba|[a-b]c[a-b]|[a-c]d[a-c]|[a-d]e[a-d]|[a-e]f[a-e]|[a-f]g[a-f]|[a-g]h[a-g]|[a-h]i[a-h]|[a-i]j[a-i]|[a-j]k[a-j]|[a-k]l[a-k]|[a-l]m[a-l])\.*__(?!_)/g,'$&_')
.replace(/ae/g,'æ').replace(/oe/g,'œ').replace(/aé/g,'ǽ').replace(/A[Ee]/g,'Æ').replace(/O[Ee]/g,'Œ')
.replace(/<i>\((.*?)\)<\/i>/, '{}_^$1^_') // these parenthetical italicised notes are rubrics, found in 635 and 1236.gabc
.replace(/<i>\((.*?)\)<\/i>/, '<i>$1</i>') // these parenthetical italicised notes are rubrics, found in 635 and 1236.gabc
.replace(/!\//g,'/') // some gregobase chants are encoded this way for some reason
.replace(/(\w)(\s+)([^()|a-z*]+(<\/?\w+>)*\([^)]*\))/gi,'$1$3$2') // change things like "et :(gabc)" to "et:(gabc) "
.replace(/(\s[^()\w*]+) +(\w+[^\(\s]*\()/g,'$1$2') // change things like "« hoc" to "«hoc"
Expand Down
2 changes: 0 additions & 2 deletions todo
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
Include in PDF list of Graduals do not have ordinals.
PDF of first Alleluia on Ember Saturday of Pentecost doesn't work because of the ^.
Get rid of autosize, at least in certain circumstances, to save time when resizing
Get rid of forced relayout caused by checking element.width() from within layoutChant. I think checking document.width should be better (I can't use window.innerWidth because of the case when laying out chant for printing...)

Expand Down

0 comments on commit ef442e2

Please sign in to comment.