[NTG-context] Using latex font-packages

2005-08-09 Thread Kai Militzer

Hello list,

I am trying to use latex fonts (to be more precize: the allrunes font) 
downloaded from the ctan-ftp-Server and installed correctly in my 
texmf-tree, in context, but I now realise that it does not work as easy 
as I expected (i.e. just using the latex-commands).


If anyone could help me or point me in the right direction how to do it, 
I would be very thankful, as I have a deadline at the end of the week at 
which it has to work ;)


Best regards

Kai
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Using latex font-packages

2005-08-09 Thread Kai Militzer

Hello Hans,

thanks for the fast answer!

I am trying to use latex fonts (to be more precize: the allrunes 
font) downloaded from the 



what files do those fonts come with:

tfm vf afm pfb enc map


I have 16 different .tfm files. But also a lot of .mf files.


forget about the latex macros, they are not needed


OK, but how do I get context to use these fonts? I coulnd't find any 
descent documentation regarding this.


Regards

Kai
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Using latex font-packages

2005-08-09 Thread Kai Militzer

Hello Hans,

Hans Hagen wrote:

I am trying to use latex fonts (to be more precize: the allrunes 
font) downloaded from the 





what files do those fonts come with:

tfm vf afm pfb enc map




I have 16 different .tfm files. But also a lot of .mf files.


forget about the latex macros, they are not needed




OK, but how do I get context to use these fonts? I coulnd't find any 
descent documentation regarding this.



i can only locate pfb files and a map file; it looks like one is 
supposed to generate the tfm's with metafont (maybe you can ask the 
author to put the tfm's in the zip as well) and i'm not going to 
clobber my ststem with bitmaps


it comes down to:

\loadmapfile[allrunes.map]

\showfont[frucls]
\showfont[frucln]
\showfont[fruclr]
\showfont[fruclt]
\showfont[fruclm]
\showfont[fruclq]

this should give you something (given that the tfm files are present)
if that works, you can do:
\definefont[somerunes][frucls sa 1]

\somerunes abcdef
or, depending on how the fonts are organized you can set up a system
(see type-* files)


I'm slowly getting there, only two more problems to solve ;) The first 
thing is, that to use some of the characters in the fontset I have to 
use \th to display them, but I have no idea how to accomplish that in 
context as everytime I use \somerunes \th, or \somerunes{\th} ... I get 
an error message. If i double mascerade it like \\th i get the symbols 
for the characters t and h. I am sure there is a way to get this working.


The next thing, which I guess is to search more on the font-subsystem of 
context, is the fact that I only get my characters displayed when 
viewing the .dvi-file with xdvi. When executing texexec --pdf or using 
dvipdf (or dvips) I get nothing, or the charaters in the standard 
latin-typeset (i.e. ASCII).


I am sorry if I bother you all with this simple stuff that can surely be 
solved by reading some documentation, but I pretty new to the hole 
tex-thing and the mass of documentation is overwhelming and sometimes 
prety cryptical. ;)


Best regards

Kai
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Using latex font-packages

2005-08-09 Thread Kai Militzer

Hello Hans,

I'm slowly getting there, only two more problems to solve ;) The 
first thing is, that to use some of the characters in the fontset I 
have to use \th to display them, but I have no idea how to accomplish 
that in context as everytime I use \somerunes \th, or \somerunes{\th} 
... I get an error message. If i double mascerade it like \\th i get 
the symbols for the characters t and h. I am sure there is a way to 
get this working.


The next thing, which I guess is to search more on the font-subsystem 
of context, is the fact that I only get my characters displayed when 
viewing the .dvi-file with xdvi. When executing texexec --pdf or 
using dvipdf (or dvips) I get nothing, or the charaters in the 
standard latin-typeset (i.e. ASCII).


I solved the second problem. I copied the map and type1 fonts into the 
directories mentioned in the readme to the font (which where 
latex-specific). After looking at the texexec output and some try and 
error, I finaly got all working. So if I now do a texexec --pdf I get a 
pdf-file with the font included.



how does your code look?


That is my code for testing (nothing more in there, the following is the 
whole document)


\setuppapersize[a4][a4]
\starttext
\startbodymatter
\loadmapfile[allrunes.map]
\definefont[somerunes][frumbr sa 1]
\somerunes{\\th}  % This is where the problem lies. I need to get the 
\th working to produce a rune

\stopbodymatter
\stoptext


can you send me a zip with the tfm files?


I guess you don't need it any more, as the font-inclusion is working 
now. If you still need it drop me a line.


Regards
Kai
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Using latex font-packages

2005-08-09 Thread Kai Militzer

Hello!

Thanks for all who helped me, but I finaly solved the problem. I define 
glyphs for the characters I want like that


\definesymbol [thorn] [\getglyph{frumbr}{\char254}]

and then simply use \symbol[thorn] in the text ...

Looking back I have to say that it's done pretty quick, if one know how 
to do it. ;)


If I get a moment of spare time the next days I will add an entry to the 
wiki for the ones coming after me and having the same problem. ;)


Regards
Kai
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context