Re: Using lookup to extract glyphs

2008-11-30 Thread Han-Wen Nienhuys
The correct way to do this, which incidentally lily uses, is to use binary search over the glyphs, until you've found the closest one. On Sat, Nov 29, 2008 at 6:19 PM, Mats Bengtsson <[EMAIL PROTECTED]> wrote: > Quoting Neil Puttock <[EMAIL PROTECTED]>: > >> 2008/11/28 Mats Bengtsson <[EMAIL PROTE

Re: Using lookup to extract glyphs

2008-11-29 Thread Mats Bengtsson
Quoting Neil Puttock <[EMAIL PROTECTED]>: 2008/11/28 Mats Bengtsson <[EMAIL PROTECTED]>: Mats Bengtsson wrote: Now that I've looked a bit more careful, I see that the total height of braceN is given by 10.5*(1+1/150)^N so in other words, if the desired height is H, you can get the number of

Re: Using \lookup to extract glyphs

2008-11-29 Thread Neil Puttock
2008/11/28 Mats Bengtsson <[EMAIL PROTECTED]>: > > > Mats Bengtsson wrote: > > Now that I've looked a bit more careful, I see that the total height of > braceN is given by > 10.5*(1+1/150)^N > so in other words, if the desired height is H, you can get the number of the > corresponding > brace glyph

Re: Using \lookup to extract glyphs

2008-11-28 Thread Mats Bengtsson
Mats Bengtsson wrote: It would be nice if the argument was the desired height measured in points (or perhaps in staff spaces) instead of the current numerical argument where you need a lot of trial and error. If it was in points, then you could easily relate it to the height of one staff, whi

Re: Using \lookup to extract glyphs

2008-11-28 Thread Mats Bengtsson
It would be nice if the argument was the desired height measured in points (or perhaps in staff spaces) instead of the current numerical argument where you need a lot of trial and error. If it was in points, then you could easily relate it to the height of one staff, which is 20pt by default.

Re: Using \lookup to extract glyphs

2008-11-28 Thread Trevor Daniels
]>; "Lily-Devel List" Sent: Friday, November 28, 2008 12:06 AM Subject: Re: Using \lookup to extract glyphs 2008/11/27 Trevor Daniels <[EMAIL PROTECTED]>: Valentin Villenave wrote Thursday, November 27, 2008 8:41 AM ... either two commands with the size as an argu

Re: Using \lookup to extract glyphs

2008-11-27 Thread Neil Puttock
2008/11/27 Trevor Daniels <[EMAIL PROTECTED]>: > > Valentin Villenave wrote Thursday, November 27, 2008 8:41 AM >> ... either two commands with the size as an argument, >> >> \left-brace #20 >> \right-brace #40 > > This is my preference. The functions would need to check > the size for validity,

Re: Using \lookup to extract glyphs

2008-11-27 Thread Werner LEMBERG
[This is a rather long email with a lot of technical details, covering much more than just \lookup. I spent almost two days with writing due to the necessary research in the lilypond sources since I'm not very acquainted with those tricky details. If you are interested in lilypond's font han

Re: Using lookup to extract glyphs

2008-11-27 Thread Mats Bengtsson
Quoting Trevor Daniels <[EMAIL PROTECTED]>: Valentin Villenave wrote Thursday, November 27, 2008 8:41 AM 2008/11/27 Neil Puttock <[EMAIL PROTECTED]>: How about \left-brace and (rotated) \right-brace? This would make it much simpler to embed them within text that has font-name overrides.

Re: Using \lookup to extract glyphs

2008-11-27 Thread Trevor Daniels
Valentin Villenave wrote Thursday, November 27, 2008 8:41 AM 2008/11/27 Neil Puttock <[EMAIL PROTECTED]>: How about \left-brace and (rotated) \right-brace? This would make it much simpler to embed them within text that has font-name overrides. Great idea! I agree. ... either two comma

Re: Using \lookup to extract glyphs

2008-11-27 Thread Valentin Villenave
2008/11/27 Neil Puttock <[EMAIL PROTECTED]>: > How about \left-brace and (rotated) \right-brace? This would make it > much simpler to embed them within text that has font-name overrides. Great idea! ... either two commands with the size as an argument, \left-brace #20 \right-brace #40 either

Re: Using \lookup to extract glyphs

2008-11-26 Thread Neil Puttock
I2008/11/25 Trevor Daniels <[EMAIL PROTECTED]>: > AFAICS the only fonts immediately available to \lookup which are not more > easily accessible via \musicglyph are the myriad of braces of different > sizes. The Internal Reference suggests that font-encoding may be set to > fetaMusic, fetaNumber, T

Using \lookup to extract glyphs

2008-11-25 Thread Trevor Daniels
AFAICS the only fonts immediately available to \lookup which are not more easily accessible via \musicglyph are the myriad of braces of different sizes. The Internal Reference suggests that font-encoding may be set to fetaMusic, fetaNumber, TeX-text, TeX-math, fetaBraces, fetaDynamic, but the