|
From: | Jeremiah Benham |
Subject: | Re: [Denemo-devel] New Binaries? |
Date: | Tue, 16 Jun 2015 09:21:17 -0500 |
On Mon, 2015-06-15 at 09:16 -0500, Jeremiah Benham wrote:
>
> In the "panel" on the right those are palette button labels,
> you can
> edit them (right click) and you will see that they are using
> the pango
> markup language - something like <span font-description=
> \"denemo\" ....)
>
>
> When I did right clicked and chose edit label, I saw what was supposed
> to be the font but it looked like a box with numbers on it [0123]. I
> erased this and tried to copy paste the font into the dialog box but I
> saw [0123] in the fonts place after pasting.
>
>
> I'm not sure where else this formula is used - look in the
> Notes/Rests->Change Duration, both the labels *and* the
> tooltips will be
> using the glyphs by one means or another I think.
> Which of these (if any) are working?
>
>
> I see the flat and sharp symbols seems to work. I can try a gtk2 build
> later tonight.
Ah, I see that I was remembering wrongly that the font was being
specified using pango markup. Pango markup *is* being used, for example
to make the label of the palette button that has two sharps and two
flats - the label is this:
♯<span rise="10000">♯</span>♭<span rise="10000">♭</span>
where the positioning is being done using markup, but the characters
themselves are just embedded. This button label actually displays
properly (because I guess sharp and flat are in the miscellaneous
symbols block, not the musical symbols block. Sharp is unicode U+266F).
Another example is the first button in the general palette, the one at
the top of the display. That is a treble clef sign in a large size, its
label is this
<span font='16'> 𝄞 </span>
That one displays as D834 in your screenshot. I can only guess that on
the Mac these embedded characters are being expected in a different
format (UTF-16 instead of UTF-8 ?).
Looking in the source of this label, the file actions/palettes.xml I see
label="<span font='16'> 𝄞 </span>"
which means that 0x1D11E is the character code being inserted, this is
what is called the unicode codepoint (I think what would be written U
+1D11E). I don't know what else might work in that position. Looking up
this unicode value I see that its UTF-16 representation is
D8 34 DD 1E
which hints to me that the (gtk routines for) the mac is just seeing the
D834 bit - which would explain why your screenshots seem to show this
same code on several buttons - they are all in the musical instruments
block, which is perhaps what the D834 refers to (the bass clef, for
example, is D8 34 DD 22 in UTF-16).
I'm not sure what the way through all this is, perhaps asking someone in
the gtk mac world about the representation of characters - or, if gtk2
works, then something in the upgrade documentation for gtk3 might help.
Richard
>
[Prev in Thread] | Current Thread | [Next in Thread] |