Where to store typescripts ?
![](https://secure.gravatar.com/avatar/0b6975dccb4a3905720e778b54d0b402.jpg?s=120&d=mm&r=g)
Hi, Where should typescript files be stored ? Is it possible to store them in user space, eg in a subdirectory of Luatex cache (when using luatex) ? Thanks in advance! Nicolas
![](https://secure.gravatar.com/avatar/49e63acb01f2ca80efce7eed08310ce8.jpg?s=120&d=mm&r=g)
luigi scarso wrote:
On Thu, Jun 4, 2009 at 10:34 AM, Nicolas Girard
wrote: Hi,
Where should typescript files be stored ?
If you have minimals(-beta) try minimals/tex/texmf-context/tex/context/user
personal ones? minimals/tex/texmf-fonts/tex/context/user minimals/tex/texmf-project/tex/context/user ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
![](https://secure.gravatar.com/avatar/0b6975dccb4a3905720e778b54d0b402.jpg?s=120&d=mm&r=g)
2009/6/4 luigi scarso
On Thu, Jun 4, 2009 at 10:34 AM, Nicolas Girard
wrote: Hi,
Where should typescript files be stored ?
If you have minimals(-beta) try minimals/tex/texmf-context/tex/context/user
Hi Luigi, thanks for your answer. I'm using the latest mkiv installed over texlive 2008. It is a system directory ; is it the only one ? Anyway I couldn't get my typescript file to work. Here's what I did: (assume TF is http://bitbucket.org/wolfs/typescripts/src/7050bb6918bb/type-exljbris.mkiv ) 1. put the contents of TF in a test document along with \usetypescript[delicious] The document compiled fine and the Delicious fonts were properly included. 2. copied TF in tex/context/user/ as adviced 3. ran mktexlsr, just in case 4. In the test document, removed the contents of TF and replaced it with \usetypescriptfile[type-exljibris] The compilation ran smoothly, I should say too smoothly, because I couldn't find any font-related error message, neither in the output, nor in the log file. And however, ConTeXt used lmodern fonts instead of the Delicious fonts. Cheers, Nicolas
![](https://secure.gravatar.com/avatar/386a116d129cdc597f2bb6210bbaff7a.jpg?s=120&d=mm&r=g)
On Thu, Jun 4, 2009 at 11:11 AM, Nicolas Girard
2009/6/4 luigi scarso
: On Thu, Jun 4, 2009 at 10:34 AM, Nicolas Girard <
nicolas.girard@nerim.net>
wrote:
Hi,
Where should typescript files be stored ?
If you have minimals(-beta) try minimals/tex/texmf-context/tex/context/user
Hi Luigi, thanks for your answer. I'm using the latest mkiv installed over texlive 2008. It is a system directory ; is it the only one ?
Anyway I couldn't get my typescript file to work. Here's what I did:
(assume TF is http://bitbucket.org/wolfs/typescripts/src/7050bb6918bb/type-exljbris.mkiv )
1. put the contents of TF in a test document along with \usetypescript[delicious] The document compiled fine and the Delicious fonts were properly included.
2. copied TF in tex/context/user/ as adviced 3. ran mktexlsr, just in case
hmm try context --generate x Wolfgang maybe is better to add some instructions on usage at the end ... -- luigi
![](https://secure.gravatar.com/avatar/386a116d129cdc597f2bb6210bbaff7a.jpg?s=120&d=mm&r=g)
On Thu, Jun 4, 2009 at 4:00 PM, Nicolas Girard
2009/6/4 luigi scarso
: hmm try context --generate
Tried that, and it didn't work.
Nicolas
___________________________________________________________________________________ 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
___________________________________________________________________________________
Did you put something like \usetypefile[delicious] or \usetypefile[exljbris]http://bitbucket.org/wolfs/typescripts/src/7050bb6918bb/type-exljbris.mkiv before \usetypescript ? -- luigi
![](https://secure.gravatar.com/avatar/386a116d129cdc597f2bb6210bbaff7a.jpg?s=120&d=mm&r=g)
On Thu, Jun 4, 2009 at 4:07 PM, Wolfgang Schuster < schuster.wolfgang@googlemail.com> wrote:
Am 04.06.2009 um 16:00 schrieb Nicolas Girard:
2009/6/4 luigi scarso
: hmm try context --generate
Tried that, and it didn't work.
Dou you have also type-exljbris.tex?
why don't put an example of use at the end of the typescript ? -- luigi
![](https://secure.gravatar.com/avatar/44ca9eda7aaa681c0e3b3e90125c56b0.jpg?s=120&d=mm&r=g)
Nicolas Girard schrieb:
2009/6/4 luigi scarso
: hmm try context --generate
Tried that, and it didn't work.
you can try mtxrun --script fonts --reload Best wishes, Peter
Nicolas ___________________________________________________________________________________ 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 ___________________________________________________________________________________
![](https://secure.gravatar.com/avatar/0b6975dccb4a3905720e778b54d0b402.jpg?s=120&d=mm&r=g)
Wow. Now, I'm lost -- and i still can't make it work anyway. Could you explain right from the start ? Let's assume (as it is the case on my system) that the Delicious fonts are properly installed *and* the font database knows about it. Let's assume context = LuaTeX mkiv Now, 1. if I want to create a typescript file supporting some XX fonts, do I need to name the file type-XX.some_extension, or is it only a convention and the file could also be named XX.some_extension or even whatever.some_extension ? 2. what should be the extension for mkiv ? .mkiv ? .tex ? Are both allowed ? 3. Assuming I properly install such http://bitbucket.org/wolfs/typescripts/src/7050bb6918bb/type-exljbris.mkiv file, should I load it using \usetypescriptfile[type-exljbris] or \usetypescriptfile[exljbris] ? 4. What is the relationship between type-exljbris.mkiv and type-exljbris.tex ? Is type-exljbris.tex necessary when using mkiv ? 5. In order to install one or several typescript files, I should first copy them, either in tex/texmf-fonts/tex/context/user or in tex/texmf-project/tex/context/user right ? But then, what is it necessary to run ? - context --generate ? - mtxrun --script fonts --reload ? - both ? 6. How comes ConTeXt can silently substitute my fonts, without even outputting any error message ? How to change this behaviour ? How to disable font substitution ? Hopefully you forgive me for asking so many questions. Beware, answers will be recorded and published in the wiki ;-) Cheers, Nicolas
![](https://secure.gravatar.com/avatar/386a116d129cdc597f2bb6210bbaff7a.jpg?s=120&d=mm&r=g)
On Thu, Jun 4, 2009 at 4:44 PM, Nicolas Girard
Wow. Now, I'm lost -- and i still can't make it work anyway. Could you explain right from the start ?
Let's assume (as it is the case on my system) that the Delicious fonts are properly installed *and* the font database knows about it. Let's assume context = LuaTeX mkiv
Now,
1. if I want to create a typescript file supporting some XX fonts, do I need to name the file type-XX.some_extension, or is it only a convention and the file could also be named XX.some_extension or even whatever.some_extension ?
2. what should be the extension for mkiv ? .mkiv ? .tex ? Are both allowed ?
3. Assuming I properly install such http://bitbucket.org/wolfs/typescripts/src/7050bb6918bb/type-exljbris.mkiv file, should I load it using \usetypescriptfile[type-exljbris] or \usetypescriptfile[exljbris] ?
4. What is the relationship between type-exljbris.mkiv and type-exljbris.tex ? Is type-exljbris.tex necessary when using mkiv ? 5. In order to install one or several typescript files, I should first copy them, either in tex/texmf-fonts/tex/context/user or in tex/texmf-project/tex/context/user right ? But then, what is it necessary to run ? - context --generate ? - mtxrun --script fonts --reload ? - both ?
6. How comes ConTeXt can silently substitute my fonts, without even outputting any error message ? How to change this behaviour ? How to disable font substitution ?
Hopefully you forgive me for asking so many questions. Beware, answers will be recorded and published in the wiki ;-) Cheers, Nicolas
___________________________________________________________________________________ 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
___________________________________________________________________________________
Here my example I have minimals/tex/texmf-context/tex/context/user/type-catalog.tex and eventually context --generate %%type-catalog.tex %%%%%%%%% \starttypescript [serif] [catalog] \setups[font:fallback:serif] \definefontsynonym [Serif] [CharisSIL-Regular] \definefontsynonym [SerifItalic] [CharisSIL-Italic] \definefontsynonym [SerifBold] [CharisSIL-Bold] \definefontsynonym [SerifBoldItalic] [CharisSIL-BoldItalic] \stoptypescript \starttypescript [serif] [catalog] \definefontsynonym [CharisSIL-Regular] [file:CharisSILR][features=default] \definefontsynonym [CharisSIL-Italic] [file:CharisSILI][features=default] \definefontsynonym [CharisSIL-Bold] [file:CharisSILB][features=default] \definefontsynonym [CharisSIL-BoldItalic] [file:CharisSILBI][features=default] \stoptypescript \starttypescript [sans] [catalog] \setups[font:fallback:sans] \definefontsynonym [Sans] [Delicious-Regular] \definefontsynonym [SansItalic] [Delicious-Italic] \definefontsynonym [SansBold] [Delicious-Bold] \definefontsynonym [SansBoldItalic] [Delicious-BoldItalic] \definefontsynonym [SansCaps] [Delicious-Caps] \stoptypescript \starttypescript [sans] [catalog] \definefontsynonym [Delicious-Regular] [name:Delicious-Roman] [features=default] \definefontsynonym [Delicious-Italic] [name:Delicious-Italic] [features=default] \definefontsynonym [Delicious-Bold] [name:Delicious-Bold] [features=default] \definefontsynonym [Delicious-BoldItalic] [name:Delicious-BoldItalic] [features=default] \definefontsynonym [Delicious-Caps] [name:Delicious-SmallCaps] [features=default] \stoptypescript \starttypescript [catalog] \definetypeface [catalog] [rm] [serif] [catalog] [default] \definetypeface [catalog] [ss] [sans] [catalog] [default] \stoptypescript %%%%%%%%%%%%%%%%% %%%test.tex%%%%%%%%%%% \usetypefile[catalog] \usetypescript[catalog] \setupbodyfont[catalog,8pt,serif] \starttext \rm \input tufte \ss \input tufte \stoptext %%%%%%%%%%%%%% $> context test.tex $>pdffonts test.pdf name type emb sub uni object ID ------------------------------------ ----------------- --- --- --- --------- HMORXY+CharisSIL CID TrueType yes yes yes 4 0 EVRTHR+Delicious-Roman CID Type 0C yes yes yes 5 0 -- luigi
![](https://secure.gravatar.com/avatar/0b6975dccb4a3905720e778b54d0b402.jpg?s=120&d=mm&r=g)
2009/6/4 luigi scarso
On Thu, Jun 4, 2009 at 4:44 PM, Nicolas Girard
wrote: Wow. Now, I'm lost -- and i still can't make it work anyway. Could you explain right from the start ?
Let's assume (as it is the case on my system) that the Delicious fonts are properly installed *and* the font database knows about it. Let's assume context = LuaTeX mkiv
Now,
1. if I want to create a typescript file supporting some XX fonts, do I need to name the file type-XX.some_extension, or is it only a convention and the file could also be named XX.some_extension or even whatever.some_extension ?
2. what should be the extension for mkiv ? .mkiv ? .tex ? Are both allowed ?
3. Assuming I properly install such http://bitbucket.org/wolfs/typescripts/src/7050bb6918bb/type-exljbris.mkiv file, should I load it using \usetypescriptfile[type-exljbris] or \usetypescriptfile[exljbris] ?
4. What is the relationship between type-exljbris.mkiv and type-exljbris.tex ? Is type-exljbris.tex necessary when using mkiv ? 5. In order to install one or several typescript files, I should first copy them, either in tex/texmf-fonts/tex/context/user or in tex/texmf-project/tex/context/user right ? But then, what is it necessary to run ? - context --generate ? - mtxrun --script fonts --reload ? - both ?
6. How comes ConTeXt can silently substitute my fonts, without even outputting any error message ? How to change this behaviour ? How to disable font substitution ?
Hopefully you forgive me for asking so many questions. Beware, answers will be recorded and published in the wiki ;-) Cheers, Nicolas
___________________________________________________________________________________ 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
___________________________________________________________________________________
Here my example I have minimals/tex/texmf-context/tex/context/user/type-catalog.tex
and eventually context --generate
%%type-catalog.tex %%%%%%%%% \starttypescript [serif] [catalog] \setups[font:fallback:serif] \definefontsynonym [Serif] [CharisSIL-Regular] \definefontsynonym [SerifItalic] [CharisSIL-Italic] \definefontsynonym [SerifBold] [CharisSIL-Bold] \definefontsynonym [SerifBoldItalic] [CharisSIL-BoldItalic] \stoptypescript
\starttypescript [serif] [catalog] \definefontsynonym [CharisSIL-Regular] [file:CharisSILR][features=default] \definefontsynonym [CharisSIL-Italic] [file:CharisSILI][features=default] \definefontsynonym [CharisSIL-Bold] [file:CharisSILB][features=default] \definefontsynonym [CharisSIL-BoldItalic] [file:CharisSILBI][features=default] \stoptypescript
\starttypescript [sans] [catalog] \setups[font:fallback:sans] \definefontsynonym [Sans] [Delicious-Regular] \definefontsynonym [SansItalic] [Delicious-Italic] \definefontsynonym [SansBold] [Delicious-Bold] \definefontsynonym [SansBoldItalic] [Delicious-BoldItalic] \definefontsynonym [SansCaps] [Delicious-Caps] \stoptypescript
\starttypescript [sans] [catalog] \definefontsynonym [Delicious-Regular] [name:Delicious-Roman] [features=default] \definefontsynonym [Delicious-Italic] [name:Delicious-Italic] [features=default] \definefontsynonym [Delicious-Bold] [name:Delicious-Bold] [features=default] \definefontsynonym [Delicious-BoldItalic] [name:Delicious-BoldItalic] [features=default] \definefontsynonym [Delicious-Caps] [name:Delicious-SmallCaps] [features=default] \stoptypescript
\starttypescript [catalog] \definetypeface [catalog] [rm] [serif] [catalog] [default] \definetypeface [catalog] [ss] [sans] [catalog] [default] \stoptypescript %%%%%%%%%%%%%%%%%
%%%test.tex%%%%%%%%%%% \usetypefile[catalog] \usetypescript[catalog] \setupbodyfont[catalog,8pt,serif] \starttext \rm \input tufte \ss \input tufte \stoptext %%%%%%%%%%%%%%
$> context test.tex $>pdffonts test.pdf
name type emb sub uni object ID ------------------------------------ ----------------- --- --- --- --------- HMORXY+CharisSIL CID TrueType yes yes yes 4 0 EVRTHR+Delicious-Roman CID Type 0C yes yes yes 5 0
-- luigi
___________________________________________________________________________________ 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 ___________________________________________________________________________________
Luigi, thanks very much for your efforts. Apparently, \usetypescriptfile[catalog] \usetypescript[catalog] doesn't work, whereas \usetypefile[catalog] \usetypescript[catalog] does. Is there any reason for this ? Cheers, nicolas
![](https://secure.gravatar.com/avatar/386a116d129cdc597f2bb6210bbaff7a.jpg?s=120&d=mm&r=g)
On Thu, Jun 4, 2009 at 5:28 PM, Nicolas Girard
2009/6/4 luigi scarso
: On Thu, Jun 4, 2009 at 4:44 PM, Nicolas Girard
wrote:
Wow. Now, I'm lost -- and i still can't make it work anyway. Could you explain right from the start ?
Let's assume (as it is the case on my system) that the Delicious fonts are properly installed *and* the font database knows about it. Let's assume context = LuaTeX mkiv
Now,
1. if I want to create a typescript file supporting some XX fonts, do I need to name the file type-XX.some_extension, or is it only a convention and the file could also be named XX.some_extension or even whatever.some_extension ?
2. what should be the extension for mkiv ? .mkiv ? .tex ? Are both
allowed
?
3. Assuming I properly install such
http://bitbucket.org/wolfs/typescripts/src/7050bb6918bb/type-exljbris.mkiv
file, should I load it using \usetypescriptfile[type-exljbris] or \usetypescriptfile[exljbris] ?
4. What is the relationship between type-exljbris.mkiv and type-exljbris.tex ? Is type-exljbris.tex necessary when using mkiv ? 5. In order to install one or several typescript files, I should first copy them, either in tex/texmf-fonts/tex/context/user or in tex/texmf-project/tex/context/user right ? But then, what is it necessary to run ? - context --generate ? - mtxrun --script fonts --reload ? - both ?
6. How comes ConTeXt can silently substitute my fonts, without even outputting any error message ? How to change this behaviour ? How to disable font substitution ?
Hopefully you forgive me for asking so many questions. Beware, answers will be recorded and published in the wiki ;-) Cheers, Nicolas
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
Here my example I have minimals/tex/texmf-context/tex/context/user/type-catalog.tex
and eventually context --generate
%%type-catalog.tex %%%%%%%%% \starttypescript [serif] [catalog] \setups[font:fallback:serif] \definefontsynonym [Serif] [CharisSIL-Regular] \definefontsynonym [SerifItalic] [CharisSIL-Italic] \definefontsynonym [SerifBold] [CharisSIL-Bold] \definefontsynonym [SerifBoldItalic] [CharisSIL-BoldItalic] \stoptypescript
\starttypescript [serif] [catalog] \definefontsynonym [CharisSIL-Regular] [file:CharisSILR][features=default] \definefontsynonym [CharisSIL-Italic] [file:CharisSILI][features=default] \definefontsynonym [CharisSIL-Bold] [file:CharisSILB][features=default] \definefontsynonym [CharisSIL-BoldItalic] [file:CharisSILBI][features=default] \stoptypescript
\starttypescript [sans] [catalog] \setups[font:fallback:sans] \definefontsynonym [Sans] [Delicious-Regular] \definefontsynonym [SansItalic] [Delicious-Italic] \definefontsynonym [SansBold] [Delicious-Bold] \definefontsynonym [SansBoldItalic] [Delicious-BoldItalic] \definefontsynonym [SansCaps] [Delicious-Caps] \stoptypescript
\starttypescript [sans] [catalog] \definefontsynonym [Delicious-Regular] [name:Delicious-Roman] [features=default] \definefontsynonym [Delicious-Italic] [name:Delicious-Italic] [features=default] \definefontsynonym [Delicious-Bold] [name:Delicious-Bold] [features=default] \definefontsynonym [Delicious-BoldItalic] [name:Delicious-BoldItalic] [features=default] \definefontsynonym [Delicious-Caps] [name:Delicious-SmallCaps] [features=default] \stoptypescript
\starttypescript [catalog] \definetypeface [catalog] [rm] [serif] [catalog] [default] \definetypeface [catalog] [ss] [sans] [catalog] [default] \stoptypescript %%%%%%%%%%%%%%%%%
%%%test.tex%%%%%%%%%%% \usetypefile[catalog] \usetypescript[catalog] \setupbodyfont[catalog,8pt,serif] \starttext \rm \input tufte \ss \input tufte \stoptext %%%%%%%%%%%%%%
$> context test.tex $>pdffonts test.pdf
name type emb sub uni object
ID
------------------------------------ ----------------- --- --- ---
HMORXY+CharisSIL CID TrueType yes yes yes 4 0 EVRTHR+Delicious-Roman CID Type 0C yes yes yes 5 0
-- luigi
___________________________________________________________________________________
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
___________________________________________________________________________________
Luigi, thanks very much for your efforts.
Apparently, \usetypescriptfile[catalog] \usetypescript[catalog] doesn't work, whereas \usetypefile[catalog] \usetypescript[catalog] does.
so does it work now for you ?
Is there any reason for this ?
sure...there is always a reason for things...but I don't remember :) Try to look into the source . -- luigi
![](https://secure.gravatar.com/avatar/0b6975dccb4a3905720e778b54d0b402.jpg?s=120&d=mm&r=g)
2009/6/4 luigi scarso
so does it work now for you ?
Yes it does. Thanks everybody for your assistance. I've summarized what I understood from this thread here: http://wiki.contextgarden.net/Fonts_in_LuaTex#The_standard_way:_Typescripts Please have a look & correct my mistakes. Cheers, Nicolas
![](https://secure.gravatar.com/avatar/93131e1e6e2204bd13501390d768dbdc.jpg?s=120&d=mm&r=g)
Am 04.06.2009 um 17:28 schrieb Nicolas Girard:
Apparently, \usetypescriptfile[catalog] \usetypescript[catalog] doesn't work, whereas \usetypefile[catalog] \usetypescript[catalog] does.
Is there any reason for this ?
The convention for typescript files is to save them as type-
![](https://secure.gravatar.com/avatar/6114858d84b0f40cf715f12237ab67a1.jpg?s=120&d=mm&r=g)
On Thu, Jun 4, 2009 at 16:54, luigi scarso wrote:
I have minimals/tex/texmf-context/tex/context/user/type-catalog.tex
This is a bad place - there's a high risk that it will be removed or overwritten. Use texmf-local or texmf-project or texmf-fonts or ~/texmf or whatever else ... but better not texmf or texmf-context. In TeX Live ~/texmf should work. Mojca
![](https://secure.gravatar.com/avatar/0b6975dccb4a3905720e778b54d0b402.jpg?s=120&d=mm&r=g)
2009/6/9 Mojca Miklavec
On Thu, Jun 4, 2009 at 16:54, luigi scarso wrote:
I have minimals/tex/texmf-context/tex/context/user/type-catalog.tex
This is a bad place - there's a high risk that it will be removed or overwritten. Use texmf-local or texmf-project or texmf-fonts or ~/texmf or whatever else ... but better not texmf or texmf-context.
In TeX Live ~/texmf should work.
I Mojca, could you please update the wiki ( http://wiki.contextgarden.net/Fonts_in_LuaTex#Installing_typescripts ) with these informations, or elaborate a little bit more ? I'm unsure about the precise directories you're advising (eg, texmf-fonts -> minimals/tex/texmf-fonts/tex/context/user/ ? ) Thanks in advance, Nicolas
![](https://secure.gravatar.com/avatar/93131e1e6e2204bd13501390d768dbdc.jpg?s=120&d=mm&r=g)
Am 04.06.2009 um 16:44 schrieb Nicolas Girard:
Wow. Now, I'm lost -- and i still can't make it work anyway. Could you explain right from the start ?
Let's assume (as it is the case on my system) that the Delicious fonts are properly installed *and* the font database knows about it. Let's assume context = LuaTeX mkiv
Now,
1. if I want to create a typescript file supporting some XX fonts, do I need to name the file type-XX.some_extension, or is it only a convention and the file could also be named XX.some_extension or even whatever.some_extension ?
You can use <whatever>.tex for the name of the file but the convention is to name it type-<whatever>.tex.
2. what should be the extension for mkiv ? .mkiv ? .tex ? Are both allowed ?
You could write extra files to follow the different naming conventions for XeTeX and LuaTeX and name the files type-<whatever>.mkii/mkiv and load it in the type-<...>.tex file with \loadmarkfile{type-<...>}.
3. Assuming I properly install such http://bitbucket.org/wolfs/typescripts/src/7050bb6918bb/type-exljbris.mkiv file, should I load it using \usetypescriptfile[type-exljbris] or \usetypescriptfile[exljbris] ?
You load in your document type-exljbris.tex, the mkii/mkiv files are loaded from type-exljbris.tex dependend what engine you use and never by yourself.
4. What is the relationship between type-exljbris.mkiv and type-exljbris.tex ? Is type-exljbris.tex necessary when using mkiv ?
See above.
5. In order to install one or several typescript files, I should first copy them, either in tex/texmf-fonts/tex/context/user or in tex/texmf-project/tex/context/user right ?
Yes but I can create a package with all files you can the load from the modules section or with the minimals updater.
But then, what is it necessary to run ? - context --generate ? - mtxrun --script fonts --reload ? - both ?
When you saved the typescript files (tex + mkii/mkiv) in the above folder call 'context --generate' to let ConTeXt know there are new files available. The second command 'mtxrun --script fonts --reload' is used to let ConTeXt look for new fonts but this normally happen by default when you request a new font which is unknown to ConTeXt. The only case (I know at the moment) when you need the command is when you have install a new font which has the same name as a old one but a different file extension, did not happen very often a few fonts are available in TT and OT format.
6. How comes ConTeXt can silently substitute my fonts, without even outputting any error message ? How to change this behaviour ? How to disable font substitution ?
This happens only when the font you requested is not available or you try to load not existing typescripts. Wolfgang
![](https://secure.gravatar.com/avatar/0b6975dccb4a3905720e778b54d0b402.jpg?s=120&d=mm&r=g)
2009/6/4 Wolfgang Schuster
Thanks Wolfgang ! I think pretty much everything you said should now be in http://wiki.contextgarden.net/Fonts_in_LuaTex , except for font substitution, which I find quite annoying. Anyway... Cheers, Nicolas
participants (6)
-
Hans Hagen
-
luigi scarso
-
Mojca Miklavec
-
Nicolas Girard
-
Peter Rolf
-
Wolfgang Schuster