humdrum-tools / verovio-humdrum-viewer

Verovio Humdrum Viewer
http://verovio.humdrum.org
36 stars 9 forks source link

UTF-8 RDF markers #860

Open craigsapp opened 8 months ago

craigsapp commented 8 months ago

Allow UTF-8 RDF markers.

craigsapp commented 8 months ago

Commit https://github.com/rism-digital/verovio/commit/eaf9dfbfb1373e0d74ec030efd49df980c2aa9e3 changes most char RDF markers into string which allows UTF-8 characters and in theory multi-character UTF-7 RDF markers (latter not tested yet, and will not work for all RDF markers yet anyway).

Example:

Screenshot 2023-10-19 at 20 14 27

View in VHV

**kern
*M4/4
=
4c🟢
4dΩ
4e🟤
8f#👓🍌L🙃
8g🐷J
4a🟣L🙂
4b🟧J
4cc🟢ll
=
*-
!!!RDF**kern: 🟢 = marked note, color=limegreen
!!!RDF**kern: 🟣 = marked note, color=purple
!!!RDF**kern: 🟤 = marked note, color=brown
!!!RDF**kern: 🟧 = marked note, color=orange
!!!RDF**kern: 🍌 = marked note, color=goldenrod
!!!RDF**kern: 🐷 = marked note, color=hotpink
!!!RDF**kern: Ω  = marked note, color=red
!!!RDF**kern: l  = terminal long 
!!!RDF**kern: 👓 = editorial accidental, bracket
!!!RDF**kern: 🙂 = above
!!!RDF**kern: 🙃 = below