Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conversion of text.character.musictext character style #155

Open
th-we opened this issue Jun 16, 2020 · 1 comment
Open

Conversion of text.character.musictext character style #155

th-we opened this issue Jun 16, 2020 · 1 comment

Comments

@th-we
Copy link
Member

th-we commented Jun 16, 2020

When I have a text item with the following content, how should that be converted?

Allegro \ctext.character.musictext\q.\f_\=120

"q." signifies a dotted quarter. The guidelines suggest to use <rend> with the font name. But this:

rend = libmei.Rend();
libmei.AddAttribute(rend, 'fontname', score.MusicTextFontName);
libmei.SetText(rend, 'q.');

...is not really satisfactory for a consuming application. However, this output:

<tempo>Allegro <rend fontname="Opus Text Std">&#xE1D5;&#xE1E7;</rend>=120</tempo>

...is weird as well because those SMuFL codepoints do not exist in that font. My favourite solution would be something font agnostic like this:

<tempo>Allegro <symbol 
    glyph.name="noteQuarterUp" glyph.num="#xE1D5" glyph.auth="smufl"
/><symbol 
    glyph.name="augmentationDot" glyph.num="#xE1E7" glyph.auth="smufl"
/>=120</tempo>

Agree/disagree?

@annplaksin
Copy link
Member

Agree 👍
(to font agnostic solution)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants