* Re: astronomy symbols
@ 2009-08-16 20:37 Wolfgang Werners-Lucchini
2009-08-17 14:41 ` Wolfgang Schuster
0 siblings, 1 reply; 11+ messages in thread
From: Wolfgang Werners-Lucchini @ 2009-08-16 20:37 UTC (permalink / raw)
To: ntg-context
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
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
archive : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: astronomy symbols
2009-08-16 20:37 astronomy symbols Wolfgang Werners-Lucchini
@ 2009-08-17 14:41 ` Wolfgang Schuster
2009-08-17 15:05 ` Aditya Mahajan
0 siblings, 1 reply; 11+ messages in thread
From: Wolfgang Schuster @ 2009-08-17 14:41 UTC (permalink / raw)
To: mailing list for ConTeXt users; +Cc: Hans Hagen, Taco Hoekwater
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
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
archive : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: astronomy symbols
2009-08-17 14:41 ` Wolfgang Schuster
@ 2009-08-17 15:05 ` Aditya Mahajan
2009-08-17 15:19 ` Wolfgang Schuster
0 siblings, 1 reply; 11+ messages in thread
From: Aditya Mahajan @ 2009-08-17 15:05 UTC (permalink / raw)
To: mailing list for ConTeXt users
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
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
archive : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 11+ messages in thread
[parent not found: <mailman.1181.1250520088.3069.ntg-context@ntg.nl>]
* astronomy symbols
@ 2009-08-15 10:59 Wolfgang Werners-Lucchini
2009-08-15 14:08 ` Wolfgang Schuster
0 siblings, 1 reply; 11+ messages in thread
From: Wolfgang Werners-Lucchini @ 2009-08-15 10:59 UTC (permalink / raw)
To: ntg-context
Hallo,
I can not produce astronomy symbols.
I use:
LuaTeX, Version beta-0.40.6-2009070100 (Web2C 2009)
ConTeXt ver: 2009.06.14 21:01 MKIV fmt: 2009.7.16 int:
english/english
Here a testfile:
----------------------------------
\usesymbols[was]
\setupsymbolset [wasy astronomy]
\def\Sat{\symbol[saturn]}
\starttext
\Sat
\stoptext
----------------------------------
The testfile works ok with MK II
Wolfgang
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
archive : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: astronomy symbols
2009-08-15 10:59 Wolfgang Werners-Lucchini
@ 2009-08-15 14:08 ` Wolfgang Schuster
2009-08-15 14:20 ` Aditya Mahajan
0 siblings, 1 reply; 11+ messages in thread
From: Wolfgang Schuster @ 2009-08-15 14:08 UTC (permalink / raw)
To: mailing list for ConTeXt users
Am 15.08.2009 um 12:59 schrieb Wolfgang Werners-Lucchini:
> Hallo,
>
> 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
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
archive : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 11+ messages in thread
end of thread, other threads:[~2009-08-18 3:42 UTC | newest]
Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-08-16 20:37 astronomy symbols Wolfgang Werners-Lucchini
2009-08-17 14:41 ` Wolfgang Schuster
2009-08-17 15:05 ` Aditya Mahajan
2009-08-17 15:19 ` Wolfgang Schuster
2009-08-17 15:38 ` luigi scarso
[not found] <mailman.1181.1250520088.3069.ntg-context@ntg.nl>
2009-08-17 22:57 ` Wolfgang Werners-Lucchini
2009-08-18 3:42 ` Wolfgang Schuster
-- strict thread matches above, loose matches on Subject: below --
2009-08-15 10:59 Wolfgang Werners-Lucchini
2009-08-15 14:08 ` Wolfgang Schuster
2009-08-15 14:20 ` Aditya Mahajan
2009-08-15 14:41 ` luigi scarso
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).