Re: [NTG-context] astronomy symbols
Hallo Wolfgang,
I can not produce astronomy symbols.
% Unicode Fonts: http://users.teilar.gr/~g1951d/ % % the font for the symbols is hardcoded but as we have in mkiv fonts % with more symbols a command to change the font would make sense
\definefontsynonym [UnicodeSymbols] [name:unicodesymbols]
\def\UnicodeSymbol#1{\getglyph{UnicodeSymbols}{\utfchar{#1}}}
\startsymbolset [miscellaneoussymbols]
\definesymbol[blacktelephone][\UnicodeSymbol{"260E}] \definesymbol[whitetelephone][\UnicodeSymbol{"260F}]
\definesymbol[mercury] [\UnicodeSymbol{"263F}] \definesymbol[earth] [\UnicodeSymbol{"2641}] \definesymbol[jupiter] [\UnicodeSymbol{"2643}] \definesymbol[saturn] [\UnicodeSymbol{"2644}] \definesymbol[uranus] [\UnicodeSymbol{"2645}] \definesymbol[neptune] [\UnicodeSymbol{"2646}] \definesymbol[pluto] [\UnicodeSymbol{"2647}]
\stopsymbolset
Wolfgang
It is good to know, that there is an alternative. I will try it! But what is wrong with my code? Why does it not work? Wolfgang
Am 16.08.2009 um 22:37 schrieb Wolfgang Werners-Lucchini:
But what is wrong with my code? Why does it not work?
Take a look at the log file when the font is read. load afm | reading /Users/wolf/context/tex/texmf/fonts/afm/public/wasy/ wasy10.afm load afm | unifying /Users/wolf/context/tex/texmf/fonts/afm/public/ wasy/wasy10.afm afm glyph | assigning private slot U+F0000 for unknown glyph name AC afm glyph | assigning private slot U+F0001 for unknown glyph name kreuz ... afm glyph | assigning private slot U+F0016 for unknown glyph name saturn ... ConTeXt tries to load the 'saturn' symbol as char89 but LuaTeX stores it at positon F0016. \starttext {\definedfont[file:wasy10]\char"F0016} \stoptext @Hans/Taco: Is this expected for symbol fonts and how should take care of this. Wolfgang
On Mon, 17 Aug 2009, Wolfgang Schuster wrote:
Am 16.08.2009 um 22:37 schrieb Wolfgang Werners-Lucchini:
But what is wrong with my code? Why does it not work?
Take a look at the log file when the font is read.
load afm | reading /Users/wolf/context/tex/texmf/fonts/afm/public/wasy/wasy10.afm load afm | unifying /Users/wolf/context/tex/texmf/fonts/afm/public/wasy/wasy10.afm afm glyph | assigning private slot U+F0000 for unknown glyph name AC afm glyph | assigning private slot U+F0001 for unknown glyph name kreuz ... afm glyph | assigning private slot U+F0016 for unknown glyph name saturn ...
ConTeXt tries to load the 'saturn' symbol as char89 but LuaTeX stores it at positon F0016.
\starttext {\definedfont[file:wasy10]\char"F0016} \stoptext
@Hans/Taco: Is this expected for symbol fonts and how should take care of this.
Maybe we can use the same trick that is used in math fonts (force tfm font) \usesymbols[was] \setupsymbolset [wasy astronomy] \definefontsynonym [WaldiSymbol] [wasy10.tfm] \definefontsynonym [WaldiSymbolBold] [wasyb10.tfm] \def\Sat{\symbol[saturn]} \starttext \Sat \stoptext So, symb-was can be changed accordingly. Aditya
Am 17.08.2009 um 17:05 schrieb Aditya Mahajan:
@Hans/Taco: Is this expected for symbol fonts and how should take care of this.
Maybe we can use the same trick that is used in math fonts (force tfm font)
It's a solution for the available symbols what do you want to do when you want to use a private symbol font where you don't have tfm files (type1, TT ... only)? Wolfgang
On Mon, Aug 17, 2009 at 5:19 PM, Wolfgang Schuster
Am 17.08.2009 um 17:05 schrieb Aditya Mahajan:
@Hans/Taco: Is this expected for symbol fonts and how should take care of this.
Maybe we can use the same trick that is used in math fonts (force tfm font)
It's a solution for the available symbols what do you want to do when you want to use a private symbol font where you don't have tfm files (type1, TT ... only)?
Wolfgang
What about this ToUnicode Mapping File Tutorial, Adobe Technical Note #5411, 2001-04-12, http://partners.adobe.com/asn/developer/pdfs/tn/5411.ToUnicode.pdf -- luigi
participants (4)
-
Aditya Mahajan
-
luigi scarso
-
Wolfgang Schuster
-
Wolfgang Werners-Lucchini