From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/51037 Path: news.gmane.org!not-for-mail From: luigi scarso Newsgroups: gmane.comp.tex.context Subject: Re: Where to store typescripts ? Date: Thu, 4 Jun 2009 17:33:38 +0200 Message-ID: References: <51b0095d0906040134p543c8be2ld0b9f6cc05d31944@mail.gmail.com> <51b0095d0906040211w7e7ecf10rd02d2c52f2646240@mail.gmail.com> <51b0095d0906040700w3ec10cdcocabd0bf9703db5e0@mail.gmail.com> <51b0095d0906040744o29f50c02q8fdffbfc43bf0952@mail.gmail.com> <51b0095d0906040828l4b8f8c99qcf450f4d4a03976c@mail.gmail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1452705575==" X-Trace: ger.gmane.org 1244129712 9052 80.91.229.12 (4 Jun 2009 15:35:12 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 4 Jun 2009 15:35:12 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Thu Jun 04 17:35:09 2009 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by lo.gmane.org with esmtp (Exim 4.50) id 1MCExd-0004Ct-LL for gctc-ntg-context-518@m.gmane.org; Thu, 04 Jun 2009 17:34:33 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id E81B51FC16; Thu, 4 Jun 2009 17:34:32 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 18888-03; Thu, 4 Jun 2009 17:33:50 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 12ED71FBAA; Thu, 4 Jun 2009 17:33:50 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 398351FBAA for ; Thu, 4 Jun 2009 17:33:48 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 18890-03-3 for ; Thu, 4 Jun 2009 17:33:40 +0200 (CEST) Original-Received: from filter3-ams.mf.surf.net (filter3-ams.mf.surf.net [192.87.102.71]) by ronja.ntg.nl (Postfix) with ESMTP id 08B6F1FBA8 for ; Thu, 4 Jun 2009 17:33:40 +0200 (CEST) Original-Received: from mail-fx0-f224.google.com (mail-fx0-f224.google.com [209.85.220.224]) by filter3-ams.mf.surf.net (8.13.8/8.13.8/Debian-3) with ESMTP id n54CEA6B007988 for ; Thu, 4 Jun 2009 14:14:11 +0200 Original-Received: by fxm24 with SMTP id 24so900833fxm.2 for ; Thu, 04 Jun 2009 08:33:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type; bh=xCIhvj5ZUIL3pUDpTNOfi7B4q9yjLaC3Ohxr2VFZEh0=; b=LdMwyDseqNz1/KJbSQ93qwQaHlmqEcbHbKCs+V1RbxaBnPM81iwtqtY0G0AytlcAow EEgaWnak0cVXfhZR+OO3tdAhr+G4ZHLW/7sI3lgO3VEHKgpxrV+I/XugzMtyL1cfQK/l pqHkfEup9oCWJCrd6XTE/0xzcPJUUW8Z4r5Yg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=QPAfyMf2/50X8SkhALf8WO0IQ5XiaMfqIXCZV25S0yUNDXbNs+kk3uzFFCQBTKhytP 9nliVPUeRUBjjFbanEAHneLJDVU4auAZbFIUvuqEyrjIRT4OzjGURGlauOQ+63M+CJHy RrJhpht7MMdZpF8FrgajxXWolrO1170YmRam4= Original-Received: by 10.216.0.81 with SMTP id 59mr818622wea.77.1244129618323; Thu, 04 Jun 2009 08:33:38 -0700 (PDT) In-Reply-To: <51b0095d0906040828l4b8f8c99qcf450f4d4a03976c@mail.gmail.com> X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=209.85.220.224; country=US; region=CA; city=Mountain View; postalcode=94043; latitude=37.4192; longitude=-122.0574; metrocode=807; areacode=650; http://maps.google.com/maps?q=37.4192,-122.0574&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 237590351 - fca37eceed25 - 20090604 X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.71 X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.11 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:51037 Archived-At: --===============1452705575== Content-Type: multipart/alternative; boundary=0016367fa168f46940046b877f88 --0016367fa168f46940046b877f88 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On Thu, Jun 4, 2009 at 5:28 PM, Nicolas Girard wrote: > 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 --0016367fa168f46940046b877f88 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable

On Thu, Jun 4, 2009 at 5:28 PM, Nicolas = Girard <ni= colas.girard@nerim.net> wrote:
2009/6/4 luigi scarso <luigi.scarso@gmail.com>:
>
>
>
> On Thu, Jun 4, 2009 at 4:44 PM= , Nicolas Girard <nicolas.gi= rard@nerim.net>
> wrote:
>>
>> Wow. Now, I'm lost -- and i still can't make it work anywa= y.
>> Could you explain right from the start ?
>>
>> Let's assume (as it is the case on my system) that the Delicio= us fonts
>> are properly installed *and* the font database knows about it.
>> Let's assume context =3D 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 e= ven
>> 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/typescrip= ts/src/7050bb6918bb/type-exljbris.mkiv
>> file, should I load it using
>> =C2=A0\usetypescriptfile[type-exljbris]
>> or
>> =C2=A0\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 f= irst
>> copy them, either in
>> =C2=A0 =C2=A0tex/texmf-fonts/tex/context/user
>> or in
>> =C2=A0 =C2=A0tex/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 eve= n
>> outputting any error message ?
>> How to change this behaviour ?
>> How to disable font substitution ?
>>
>>
>> Hopefully you forgive me for asking so many questions. Beware, ans= wers
>> will be recorded and published in the wiki ;-)
>> Cheers,
>> Nicolas
>>
>> __________________________________________________________________= _________________
>> If your question is of interest to others as well, please add an e= ntry to
>> the Wiki!
>>
>> maillist : ntg-context@ntg.n= l /
>> http://www.ntg.nl/mailman/listinfo/ntg-context
>> webpage =C2=A0: http://www.pragma-ade.nl / http://tex.aanhet.net
>> archive =C2=A0: https://foundry.supelec.fr/projects/contextrev/=
>> wiki =C2=A0 =C2=A0 : 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]
> =C2=A0\setups[font:fallback:serif]
> =C2=A0\definefontsynonym [Serif]=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0 [CharisSIL-Regular]
> =C2=A0\definefontsynonym [SerifItalic]=C2=A0=C2=A0=C2=A0=C2=A0 [Charis= SIL-Italic]
> =C2=A0\definefontsynonym [SerifBold]=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0 [CharisSIL-Bold]
> =C2=A0\definefontsynonym [SerifBoldItalic] [CharisSIL-BoldItalic]
> \stoptypescript
>
> \starttypescript [serif] [catalog]
> =C2=A0\definefontsynonym [CharisSIL-Regular]
> [file:CharisSILR][features=3Ddefault]
> =C2=A0\definefontsynonym [CharisSIL-Italic]
> [file:CharisSILI][features=3Ddefault]
> =C2=A0\definefontsynonym [CharisSIL-Bold]
> [file:CharisSILB][features=3Ddefault]
> =C2=A0\definefontsynonym [CharisSIL-BoldItalic]
> [file:CharisSILBI][features=3Ddefault]
> \stoptypescript
>
> \starttypescript [sans] [catalog]
> =C2=A0\setups[font:fallback:sans]
> =C2=A0\definefontsynonym [Sans]=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0 [Delicious-Regular]
> =C2=A0\definefontsynonym [SansItalic]=C2=A0=C2=A0=C2=A0=C2=A0 [Delicio= us-Italic]
> =C2=A0\definefontsynonym [SansBold]=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0 [Delicious-Bold]
> =C2=A0\definefontsynonym [SansBoldItalic] [Delicious-BoldItalic]
> =C2=A0\definefontsynonym [SansCaps]=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0 [Delicious-Caps]
> \stoptypescript
>
> \starttypescript [sans] [catalog]
> =C2=A0\definefontsynonym [Delicious-Regular]=C2=A0=C2=A0=C2=A0 [name:D= elicious-Roman]
> [features=3Ddefault]
> =C2=A0\definefontsynonym [Delicious-Italic]=C2=A0=C2=A0=C2=A0=C2=A0 [n= ame:Delicious-Italic]
> [features=3Ddefault]
> =C2=A0\definefontsynonym [Delicious-Bold]=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0 [name:Delicious-Bold]
> [features=3Ddefault]
> =C2=A0\definefontsynonym [Delicious-BoldItalic] [name:Delicious-BoldIt= alic]
> [features=3Ddefault]
> =C2=A0\definefontsynonym [Delicious-Caps]=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0 [name:Delicious-SmallCaps]
> [features=3Ddefault]
> \stoptypescript
>
> \starttypescript [catalog]
> =C2=A0\definetypeface [catalog] [rm] [serif] [catalog] [default]
> =C2=A0\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=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 type=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 emb sub uni ob= ject ID
> ------------------------------------ ----------------- --- --- --- ---= ------
> HMORXY+CharisSIL=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 CID True= Type=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 yes yes yes=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0 4=C2=A0 0
> EVRTHR+Delicious-Roman=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 CID Type 0C=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0 yes yes yes=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 5=C2=A0 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 =C2=A0: http://www.pragma-ade.nl / http://tex.aanhet.net
> archive =C2=A0: https://foundry.supelec.fr/projects/contextrev/=
> wiki =C2=A0 =C2=A0 : http://contextgarden.net
> ______________________________________________________________________= _____________
>
>

Luigi,
thanks very much for your efforts.

Apparently,
=C2=A0\usetypescriptfile[catalog]
=C2=A0\usetypescript[catalog]
doesn't work, whereas
=C2=A0\usetypefile[catalog]
=C2=A0\usetypescript[catalog]
does.
so does it work now for you ?


Is there any reason for this ?
sure...ther= e is always a reason for things...but I don't remember :)
Try to look into the source .

--
luigi

--0016367fa168f46940046b877f88-- --===============1452705575== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ___________________________________________________________________________________ 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 ___________________________________________________________________________________ --===============1452705575==--