ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Nicolas Girard <nicolas.girard@nerim.net>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Where to store typescripts ?
Date: Thu, 4 Jun 2009 17:28:16 +0200	[thread overview]
Message-ID: <51b0095d0906040828l4b8f8c99qcf450f4d4a03976c@mail.gmail.com> (raw)
In-Reply-To: <fe8d59da0906040754n50032907u9e289facabe13ac6@mail.gmail.com>

2009/6/4 luigi scarso <luigi.scarso@gmail.com>:
>
>
>
> On Thu, Jun 4, 2009 at 4:44 PM, Nicolas Girard <nicolas.girard@nerim.net>
> 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
___________________________________________________________________________________
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
___________________________________________________________________________________


  reply	other threads:[~2009-06-04 15:28 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-06-04  8:34 Nicolas Girard
2009-06-04  8:38 ` luigi scarso
2009-06-04  9:05   ` Hans Hagen
2009-06-04  9:11   ` Nicolas Girard
2009-06-04  9:21     ` luigi scarso
2009-06-04 14:00       ` Nicolas Girard
2009-06-04 14:06         ` luigi scarso
2009-06-04 14:07         ` Wolfgang Schuster
2009-06-04 14:21           ` luigi scarso
2009-06-04 14:11         ` Peter Rolf
2009-06-04 14:44         ` Nicolas Girard
2009-06-04 14:54           ` luigi scarso
2009-06-04 15:28             ` Nicolas Girard [this message]
2009-06-04 15:33               ` luigi scarso
2009-06-04 17:18                 ` Nicolas Girard
2009-06-04 15:55               ` Wolfgang Schuster
2009-06-08 22:35             ` Mojca Miklavec
2009-06-09  9:47               ` Nicolas Girard
2009-06-04 17:17           ` Wolfgang Schuster
2009-06-04 17:29             ` Nicolas Girard

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=51b0095d0906040828l4b8f8c99qcf450f4d4a03976c@mail.gmail.com \
    --to=nicolas.girard@nerim.net \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).