Re: Emmentaler Glyph numbers

2012-08-14 Thread Urs Liska

Thank you for this, which also worked for me.
As I wanted to have it the 'fontspec' way, I tried from there and came 
up with


\newcommand*{\lilyGlyph}[2]{\fontspec[Scale=#1]{Emmentaler-11} 
\XeTeXglyph\XeTeXglyphindex"#2" }

and then (for exmple)
\newcommand*{\flatflat}{\raisebox{0.2ex}{\lilyGlyph{1.5}{"accidentals.flatflat"}}}

Leaving out the scaling and offsetting it looks even more straightforward:
\newcommand*{\lilyGlyph}[1]{\fontspec{Emmentaler-11} 
\XeTeXglyph\XeTeXglyphindex"#1" }

and then (for exmple)
\newcommand*{\flatflat}{\lilyGlyph{"accidentals.flatflat"}}


(That's just for the record. Might be somewhat OT, but I think the 
intended audience for this may well be LilyPond users...)


Best
Urs

Am 14.08.2012 22:12, schrieb Werner LEMBERG:

Thanks for this info (although I'd prefer not having to have it :-( )
Can you tell me how I can access a glyph by name from XeLaTeX /
fontspec then?

Looking into XeTeX-reference.pdf, this works for me (assuming that you
have emmentaler-20.otf installed where XeTeX can find it):

   The scripts.varsegno sign:
   \font\1 = "Emmentaler-20"
   \1
   \XeTeXglyph \the\XeTeXglyphindex "scripts.varsegno"

   \bye

BTW, this is XeTeX from TeXLive 2012.


   Werner

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user



___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Emmentaler Glyph numbers

2012-08-14 Thread Werner LEMBERG
> Thanks for this info (although I'd prefer not having to have it :-( )
> Can you tell me how I can access a glyph by name from XeLaTeX /
> fontspec then?

Looking into XeTeX-reference.pdf, this works for me (assuming that you
have emmentaler-20.otf installed where XeTeX can find it):

  The scripts.varsegno sign:
  \font\1 = "Emmentaler-20"
  \1
  \XeTeXglyph \the\XeTeXglyphindex "scripts.varsegno"

  \bye

BTW, this is XeTeX from TeXLive 2012.


  Werner

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Emmentaler Glyph numbers

2012-08-14 Thread Urs Liska

Am 14.08.2012 19:29, schrieb Werner LEMBERG:

So now I know the Emmentaler Glyphs are located from E100 throughout
E31C.

Don't rely on character code numbers!  As soon as a new glyph gets
added to the Emmentaler font, they can change.  The only reliable way
to access the glyphs is with glyph names.


 Werner

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user

Thanks for this info (although I'd prefer not having to have it :-( )
Can you tell me how I can access a glyph by name from XeLaTeX / fontspec 
then?


Thanks
Urs

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Emmentaler Glyph numbers

2012-08-14 Thread Werner LEMBERG

> So now I know the Emmentaler Glyphs are located from E100 throughout
> E31C.

Don't rely on character code numbers!  As soon as a new glyph gets
added to the Emmentaler font, they can change.  The only reliable way
to access the glyphs is with glyph names.


Werner

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Emmentaler Glyph numbers

2012-08-14 Thread Urs Liska
OK, I found my way myself. Sorry for the noise (which might prove not to 
be noise after all ...)


The "wrong" characters in my Ubuntu character map were obviously some 
default glyphs for the Unicode glyphs at this point.


After trying out the codes from 00 to FF and finding only a few single 
glyphs I gave up (fortunately) and installed FontForge.

So now I know the Emmentaler Glyphs are located from E100 throughout E31C.

I already started writing some commands for this and will turn this into 
a library to be developed on GitHub.
I will only be actively writing commands that I might use, so I'd be 
glad if others would participate to make it more complete.


When I have started this up, I'll post a link soon.

Best
Urs

Am 14.08.2012 12:25, schrieb Urs Liska:

Hi list,

sorry if this is 'findable' somewhere. But I have searched for so many 
new things recently that I may not be seeing the wood for the trees 
anymore ;-)


I need to insert single music glyphs in LaTeX text and would 
definitely prefer using the Emmentaler ones for this (not only, but 
also for consistency, as the other music in the document is LilyPond).
As I'm using XeLaTeX it is quite easy to install and access the 
Emmentaler otf fonts and write (for example)

\newcommand{\fingerOne}{{\fontspec{Emmentaler}\char"31} }
which gives the desired output.

My problem is that I don't seem to find a complete list of the Unicode 
codes of Emmentaler's glyphs that I can use for different commands. In 
the character Map of my Ubuntu's default Font Viewer I only see a few 
correct glyphs, mixed with many others that apparently are from other 
fonts (I assume the viewer is confused by Emmentaler's non-standard 
encoding).
On the list I found a solution using XeTeXglyph, but didn't succeed 
with it.


So:
Any hint for
- a complete list of Unicode codes for the Emmentaler fonts?
- a Ubuntu tool where I can lookup the numbers?
- any other working solution to include Emmentaler glyphs in a XeLaTeX 
document?


Thanks
Urs


___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user



___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Emmentaler Glyph numbers

2012-08-14 Thread Urs Liska

Hi list,

sorry if this is 'findable' somewhere. But I have searched for so many 
new things recently that I may not be seeing the wood for the trees 
anymore ;-)


I need to insert single music glyphs in LaTeX text and would definitely 
prefer using the Emmentaler ones for this (not only, but also for 
consistency, as the other music in the document is LilyPond).
As I'm using XeLaTeX it is quite easy to install and access the 
Emmentaler otf fonts and write (for example)

\newcommand{\fingerOne}{{\fontspec{Emmentaler}\char"31} }
which gives the desired output.

My problem is that I don't seem to find a complete list of the Unicode 
codes of Emmentaler's glyphs that I can use for different commands. In 
the character Map of my Ubuntu's default Font Viewer I only see a few 
correct glyphs, mixed with many others that apparently are from other 
fonts (I assume the viewer is confused by Emmentaler's non-standard 
encoding).

On the list I found a solution using XeTeXglyph, but didn't succeed with it.

So:
Any hint for
- a complete list of Unicode codes for the Emmentaler fonts?
- a Ubuntu tool where I can lookup the numbers?
- any other working solution to include Emmentaler glyphs in a XeLaTeX 
document?


Thanks
Urs


___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user