ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* typescripts
@ 2010-11-10 18:57 Herbert Voss
  2010-11-10 20:28 ` typescripts Mojca Miklavec
  0 siblings, 1 reply; 29+ messages in thread
From: Herbert Voss @ 2010-11-10 18:57 UTC (permalink / raw)
  To: mailing list for ConTeXt users

I played with typescripts and have a problem.

I can use the beramono font in this way:

\definefont [Bera] [fvmr8a at 9.5pt]

\starttext
\Bera
\input knuth
\stoptext

but how would I insert it into a typescript of libertine,
where the mono font should used from bera?
This did not work:

...
\starttypescript[libertine]
    \definetypeface[libertine][rm][serif][libertine][default]
    \definetypeface[libertine][ss][sans] [libertine][default]
    \definetypeface[libertine][tt][mono] [file:fvmr8a.pfb]
[default][rscale=0.85]
    \definetypeface[libertine][mm][math] [modern]   [default]
\stoptypescript
...

Herbert
___________________________________________________________________________________
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  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 29+ messages in thread

* Re: typescripts
  2010-11-10 18:57 typescripts Herbert Voss
@ 2010-11-10 20:28 ` Mojca Miklavec
  2010-11-10 21:14   ` typescripts Herbert Voss
  2010-11-11  5:20   ` typescripts Wolfgang Schuster
  0 siblings, 2 replies; 29+ messages in thread
From: Mojca Miklavec @ 2010-11-10 20:28 UTC (permalink / raw)
  To: mailing list for ConTeXt users

2010/11/10 Herbert Voss <Herbert.Voss@fu-berlin.de>:
>
> I can use the beramono font in this way:
>
> \definefont [Bera] [fvmr8a at 9.5pt]
>
> \starttext
> \Bera
> \input knuth
> \stoptext
>
> but how would I insert it into a typescript of libertine,
> where the mono font should used from bera?

You need something like this:

\starttypescript [mono] [bera] [name]
    \definefontsynonym [Mono] [file:fvmr8a.pfb]
\stoptypescript

\starttypescript[libertine]
   \definetypeface[libertine][rm][serif][libertine][default]
   \definetypeface[libertine][ss][sans] [libertine][default]
   \definetypeface[libertine][tt][mono] [bera]     [default][rscale=0.85]
   \definetypeface[libertine][mm][math] [modern]   [default]
\stoptypescript

Instead of the one definition above you can also define the following
if you want to access the font by name "Bera":

\starttypescript [mono] [bera]
    \definefontsynonym [Bera] [file:fvmr8a.pfb]
\stoptypescript

\starttypescript [mono] [bera] [name]
    \definefontsynonym [Mono] [Bera]
\stoptypescript


Mojca
___________________________________________________________________________________
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  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 29+ messages in thread

* Re: typescripts
  2010-11-10 20:28 ` typescripts Mojca Miklavec
@ 2010-11-10 21:14   ` Herbert Voss
  2010-11-11  5:20   ` typescripts Wolfgang Schuster
  1 sibling, 0 replies; 29+ messages in thread
From: Herbert Voss @ 2010-11-10 21:14 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Am 10.11.2010 21:28, schrieb Mojca Miklavec:

> You need something like this:
> 
> \starttypescript [mono] [bera] [name]
>     \definefontsynonym [Mono] [file:fvmr8a.pfb]
> \stoptypescript

thanks! It worked only in this way:

\starttypescript [mono] [bera] [name]
    \definefontsynonym [Mono] [fvmr8a]
\stoptypescript

Herbert
___________________________________________________________________________________
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  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 29+ messages in thread

* Re: typescripts
  2010-11-10 20:28 ` typescripts Mojca Miklavec
  2010-11-10 21:14   ` typescripts Herbert Voss
@ 2010-11-11  5:20   ` Wolfgang Schuster
  2010-11-11  9:48     ` [***SPAM***] typescripts Arthur Reutenauer
  2010-11-11 11:03     ` typescripts Mojca Miklavec
  1 sibling, 2 replies; 29+ messages in thread
From: Wolfgang Schuster @ 2010-11-11  5:20 UTC (permalink / raw)
  To: mailing list for ConTeXt users


Am 10.11.2010 um 21:28 schrieb Mojca Miklavec:

> You need something like this:
> 
> \starttypescript [mono] [bera] [name]
>    \definefontsynonym [Mono] [file:fvmr8a.pfb]

\definefontsynonym [Mono] [file:fvmr8a.afm]

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  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 29+ messages in thread

* [***SPAM***] Re:  typescripts
  2010-11-11  5:20   ` typescripts Wolfgang Schuster
@ 2010-11-11  9:48     ` Arthur Reutenauer
  2010-11-11 11:03     ` typescripts Mojca Miklavec
  1 sibling, 0 replies; 29+ messages in thread
From: Arthur Reutenauer @ 2010-11-11  9:48 UTC (permalink / raw)
  To: mailing list for ConTeXt users

>>   \definefontsynonym [Mono] [file:fvmr8a.pfb]
> 
> \definefontsynonym [Mono] [file:fvmr8a.afm]

  For the same reason as Hans mentions in reply to Herbert, I guess.

    Arthur

___________________________________________________________________________________
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  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 29+ messages in thread

* Re: typescripts
  2010-11-11  5:20   ` typescripts Wolfgang Schuster
  2010-11-11  9:48     ` [***SPAM***] typescripts Arthur Reutenauer
@ 2010-11-11 11:03     ` Mojca Miklavec
  2010-11-11 11:27       ` typescripts Hans Hagen
  1 sibling, 1 reply; 29+ messages in thread
From: Mojca Miklavec @ 2010-11-11 11:03 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Thu, Nov 11, 2010 at 06:20, Wolfgang Schuster wrote:
>
> Am 10.11.2010 um 21:28 schrieb Mojca Miklavec:
>
>> You need something like this:
>>
>> \starttypescript [mono] [bera] [name]
>>    \definefontsynonym [Mono] [file:fvmr8a.pfb]
>
> \definefontsynonym [Mono] [file:fvmr8a.afm]

The "file:*.pfb" didn't sound right to me either, but I misinterpreted
from not-precise-enough reading that pfb worked. Thanks for correcting
me.

Mojca
___________________________________________________________________________________
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  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 29+ messages in thread

* Re: typescripts
  2010-11-11 11:03     ` typescripts Mojca Miklavec
@ 2010-11-11 11:27       ` Hans Hagen
  2010-11-11 14:15         ` typescripts Mojca Miklavec
  0 siblings, 1 reply; 29+ messages in thread
From: Hans Hagen @ 2010-11-11 11:27 UTC (permalink / raw)
  To: mailing list for ConTeXt users; +Cc: Mojca Miklavec

On 11-11-2010 12:03, Mojca Miklavec wrote:
> On Thu, Nov 11, 2010 at 06:20, Wolfgang Schuster wrote:
>>
>> Am 10.11.2010 um 21:28 schrieb Mojca Miklavec:
>>
>>> You need something like this:
>>>
>>> \starttypescript [mono] [bera] [name]
>>>     \definefontsynonym [Mono] [file:fvmr8a.pfb]
>>
>> \definefontsynonym [Mono] [file:fvmr8a.afm]
>
> The "file:*.pfb" didn't sound right to me either, but I misinterpreted
> from not-precise-enough reading that pfb worked. Thanks for correcting
> me.

i can support that suffix too if needed

-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
     tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
                                              | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
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  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 29+ messages in thread

* Re: typescripts
  2010-11-11 11:27       ` typescripts Hans Hagen
@ 2010-11-11 14:15         ` Mojca Miklavec
  0 siblings, 0 replies; 29+ messages in thread
From: Mojca Miklavec @ 2010-11-11 14:15 UTC (permalink / raw)
  To: Hans Hagen; +Cc: mailing list for ConTeXt users

>> The "file:*.pfb" didn't sound right to me either, but I misinterpreted
>> from not-precise-enough reading that pfb worked. Thanks for correcting
>> me.
>
> i can support that suffix too if needed

You have to find both afm and pfb with the same name. So maybe it does
make sense to also allow pfb. (pfb might be the more intuitive of the
two.)

Mojca
___________________________________________________________________________________
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  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 29+ messages in thread

* Re: typescripts
       [not found]         ` <4CDD8246.2020206@wxs.nl>
@ 2010-11-12 20:39           ` Herbert Voss
  0 siblings, 0 replies; 29+ messages in thread
From: Herbert Voss @ 2010-11-12 20:39 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Am 12.11.2010 19:07, schrieb Hans Hagen:
> On 12-11-2010 7:00, Herbert Voss wrote:

>> that one is no problem, it is the sans serif font. I have problems
>> with the Libertine Regular, eg.
>> -rw-r--r--  1 voss users 434528 15. Jun 23:42 LinLibertine_Re-4.7.5.otf
> 
> this one gets included too:
> 
> <c:/data/develop/tex-context/tex/texmf-fonts/fonts/data/libertine/LinLibertine_Re-4.7.5.otf>
> 
> 
> what does your log say?

the problem was the lower case letter of serif in
    \setups[font:fallback:serif]
This was the reason why the serif font (libertine) wasn't used.
With  \setups[font:fallback:Serif]  it is ok.


\starttypescriptcollection[mylibertine]

\starttypescript[serif][libertine]
    \definefontsynonym[Serif]           [name:linlibertineo]
 [features=default]
    \definefontsynonym[SerifItalic]     [name:Linux Libertine O Italic]
     [features=default]
    \definefontsynonym[SerifBold]       [name:Linux Libertine O Bold]
     [features=default]
    \definefontsynonym[SerifBoldItalic] [name:Linux Libertine O Bold
Italic] [features=default]
    \definefontsynonym[SerifSlanted]    [name:Linux Libertine Slanted O]
    [features=default]
    \definefontsynonym[SerifSlantedBold][name:Linux Libertine Slanted O
Bold][features=default]
    \definefontsynonym[SerifCaps]       [name:Linux Libertine O
Capitals]    [features=smallcaps]
\stoptypescript

\starttypescript[sans][biolinum][name]
    \setups[font:fallback:Serif]
...


Herbert
___________________________________________________________________________________
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  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 29+ messages in thread

* Re: typescripts
  2010-11-12 17:41   ` typescripts Herbert Voss
@ 2010-11-12 17:46     ` Hans Hagen
       [not found]       ` <4CDD80A7.7040803@FU-Berlin.DE>
  0 siblings, 1 reply; 29+ messages in thread
From: Hans Hagen @ 2010-11-12 17:46 UTC (permalink / raw)
  To: mailing list for ConTeXt users; +Cc: Herbert Voss

On 12-11-2010 6:41, Herbert Voss wrote:
> Am 12.11.2010 17:57, schrieb Hans Hagen:
>> On 12-11-2010 3:32, Herbert Voss wrote:
>>> I am still playing with typescripts...
>>> In this example I get sans serif and mono
>>> but for the roman libertine I get the lm mono. What
>>> is wrong?
>>
>> i see
>>
>> define fonts>  forced type afm of fvmr8a not found
>>
>> so what is the real name of that font?
>
>     rawname="BeraSansMono-Roman",
>
> But that was not my problem. The libertine regular wasn't found

works ok here, the included font is:

c:/data/develop/tex-context/tex/texmf-fonts/fonts/data/libertine/LinBiolinum_Re-0.6.4.otf




-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
     tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
                                              | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
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  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 29+ messages in thread

* Re: typescripts
  2010-11-12 16:57 ` typescripts Hans Hagen
@ 2010-11-12 17:41   ` Herbert Voss
  2010-11-12 17:46     ` typescripts Hans Hagen
  0 siblings, 1 reply; 29+ messages in thread
From: Herbert Voss @ 2010-11-12 17:41 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Am 12.11.2010 17:57, schrieb Hans Hagen:
> On 12-11-2010 3:32, Herbert Voss wrote:
>> I am still playing with typescripts...
>> In this example I get sans serif and mono
>> but for the roman libertine I get the lm mono. What
>> is wrong?
> 
> i see
> 
> define fonts    > forced type afm of fvmr8a not found
> 
> so what is the real name of that font?

   rawname="BeraSansMono-Roman",

But that was not my problem. The libertine regular wasn't found

Herbert
___________________________________________________________________________________
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  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 29+ messages in thread

* Re: typescripts
  2010-11-12 14:32 typescripts Herbert Voss
  2010-11-12 16:29 ` typescripts Herbert Voss
@ 2010-11-12 16:57 ` Hans Hagen
  2010-11-12 17:41   ` typescripts Herbert Voss
  1 sibling, 1 reply; 29+ messages in thread
From: Hans Hagen @ 2010-11-12 16:57 UTC (permalink / raw)
  To: mailing list for ConTeXt users; +Cc: Herbert Voss

On 12-11-2010 3:32, Herbert Voss wrote:
> I am still playing with typescripts...
> In this example I get sans serif and mono
> but for the roman libertine I get the lm mono. What
> is wrong?

i see

define fonts    > forced type afm of fvmr8a not found

so what is the real name of that font?

Hans

-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
     tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
                                              | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
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  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 29+ messages in thread

* Re: typescripts
  2010-11-12 16:29 ` typescripts Herbert Voss
@ 2010-11-12 16:54   ` Hans Hagen
  0 siblings, 0 replies; 29+ messages in thread
From: Hans Hagen @ 2010-11-12 16:54 UTC (permalink / raw)
  To: mailing list for ConTeXt users; +Cc: Herbert Voss

On 12-11-2010 5:29, Herbert Voss wrote:
> Am 12.11.2010 15:32, schrieb Herbert Voss:
>> I am still playing with typescripts...
>> In this example I get sans serif and mono
>> but for the roman libertine I get the lm mono. What
>> is wrong?
>
> ok. I got it ...
> When I change edit a typescript, do I have to run one
> of the configuration scripts or is read every time when
> I run a document?

typescript are loaded at runtime

Hans

-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
     tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
                                              | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
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  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 29+ messages in thread

* Re: typescripts
  2010-11-12 14:32 typescripts Herbert Voss
@ 2010-11-12 16:29 ` Herbert Voss
  2010-11-12 16:54   ` typescripts Hans Hagen
  2010-11-12 16:57 ` typescripts Hans Hagen
  1 sibling, 1 reply; 29+ messages in thread
From: Herbert Voss @ 2010-11-12 16:29 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Am 12.11.2010 15:32, schrieb Herbert Voss:
> I am still playing with typescripts...
> In this example I get sans serif and mono
> but for the roman libertine I get the lm mono. What
> is wrong?

ok. I got it ...
When I change edit a typescript, do I have to run one
of the configuration scripts or is read every time when
I run a document?

Herbert
___________________________________________________________________________________
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  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 29+ messages in thread

* typescripts
@ 2010-11-12 14:32 Herbert Voss
  2010-11-12 16:29 ` typescripts Herbert Voss
  2010-11-12 16:57 ` typescripts Hans Hagen
  0 siblings, 2 replies; 29+ messages in thread
From: Herbert Voss @ 2010-11-12 14:32 UTC (permalink / raw)
  To: mailing list for ConTeXt users

I am still playing with typescripts...
In this example I get sans serif and mono
but for the roman libertine I get the lm mono. What
is wrong?

Herbert


name                                 type              emb sub uni object ID
------------------------------------ ----------------- --- --- --- ---------
QNOYJG+LMMonoProp10-Regular          Type 1            yes yes no      18  0
IGFPZR+LinBiolinumO                  CID Type 0C       yes yes yes     19  0
JNFQZG+BeraSansMono-Roman            CID Type 0C       yes yes yes     20  0




\setuppagenumbering[location={}]
\starttypescriptcollection[mylibertine]

\starttypescript[serif][libertine][name]
    \definefontsynonym [Serif]           [name:linlibertineo]
[features=default]
    \definefontsynonym [SerifItalic]     [name:linlibertineoi]
[features=default]
    \definefontsynonym [SerifBold]       [name:linlibertineob]
[features=default]
    \definefontsynonym [SerifBoldItalic]
[name:linlibertineobi][features=default]
    \definefontsynonym [SerifSlanted]    [name:linlibertineoi]
[features=default]
    \definefontsynonym
[SerifSlantedBold][name:linlibertineobi][features=default]
%    \definefontsynonym [SerifCaps]       [name:linlibertineoc]
[features=SmallCaps]
\stoptypescript

\starttypescript[sans][biolinum][name]
    \definefontsynonym [Sans]           [name:linbiolinumo]
[features=default]
    \definefontsynonym [SansItalic]     [name:linbiolinumoi]
[features=default]
    \definefontsynonym [SansBold]       [name:linbiolinumob]
[features=default]
    \definefontsynonym [SansSlanted]    [name:linbiolinumosl]
[features=default]
\stoptypescript
\starttypescript[mono][bera][name]
    \definefontsynonym [Mono] [file:fvmr8a.afm]
\stoptypescript

\starttypescript[mylibertine]
   \definetypeface[mylibertine][rm][serif][libertine][default]
   \definetypeface[mylibertine][ss][sans] [biolinum] [default]
   \definetypeface[mylibertine][tt][mono] [bera]     [default][rscale=0.85]
   \definetypeface[mylibertine][mm][math] [modern]   [default]
\stoptypescript
\stoptypescriptcollection

\starttext
\setupbodyfont[mylibertine,12pt,rm]
foo bar baz

\ss
foo bar baz

\tt
foo bar baz

%\showbodyfont
\stoptext
___________________________________________________________________________________
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  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 29+ messages in thread

* typescripts
@ 2010-03-18 20:42 Michael Saunders
  0 siblings, 0 replies; 29+ messages in thread
From: Michael Saunders @ 2010-03-18 20:42 UTC (permalink / raw)
  To: ntg-context

I'm trying to follow the examples and getting surprising results:

\definefontfeature[default][mode=node,language=dflt,script=latn,kern=yes,liga=yes,tlig=yes,trep=yes]

\definefontfeature[body][default][onum=yes,pnum=yes,protrusion=quality,expansion=quality]
\definefontfeature[smallcaps][body][smcp=yes, onum=yes]
%I understood this to mean that "body" would inherit "default" and
"smallcaps" would inherit "body".

\starttypescript [sans] [gillLT]
   \definefontsynonym[Gill-Light][name:gillsansmtprolight][features=body]
   \definefontsynonym[Gill-Light-Italic][name:gillsansmtprolightitalic][features=body]
\stoptypescript

\starttypescript [sans] [gillLT]
   \definefontsynonym[Sans][Gill-Light][features=body]
   \definefontsynonym[SansItalic][Gill-Light-Italic][features=body]
\stoptypescript

\starttypescript [gill]
   \definetypeface [gillLT] [ss] [sans] [gillLT] [default]
[features=body,script=latn,script=grek]
\stoptypescript

\setupalign[hanging,hz]
\setupbodyfont[gillLT,12pt]

\ss


1:    1234567890 fi fl ffi ffl    \addff{smallcaps} test smallcaps
2:    \addff{body} 1234567890 fi fl ffi ffl    \addff{smallcaps} test smallcaps

In both 1 & 2, ligatures and small caps fail (though the glyphs are in
the font).
In 1, oldstyle fails.
___________________________________________________________________________________
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  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 29+ messages in thread

* Re: typescripts
  2010-03-18  1:32 typescripts Michael Saunders
  2010-03-18  9:53 ` typescripts Wolfgang Schuster
@ 2010-03-18 10:04 ` Wolfgang Schuster
  1 sibling, 0 replies; 29+ messages in thread
From: Wolfgang Schuster @ 2010-03-18 10:04 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Am 18.03.10 02:32, schrieb Michael Saunders:
>> Do you need condensed and regular width together in the running text
>> or do you want one in the text and the other in the header?
>>      
> The different widths of my sans is one thing I hadn't counted on using
> much (I spend more time in serif) but, since I have the fonts, I
> thought it would be nice to be able to use them.  More than the
> specific uses I've mentioned above, I'm used to the freedom of being
> able to use what I have when the need arises.
>    
The easiest way is to use different typeface for regular width and
condensed, e.g.

\definetypeface[myfont][...]

and

\definetypeface[myfontcd]

You can then switch between both with \myfont and \myfontcd.

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  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 29+ messages in thread

* Re: typescripts
  2010-03-18  1:32 typescripts Michael Saunders
@ 2010-03-18  9:53 ` Wolfgang Schuster
  2010-03-18 10:04 ` typescripts Wolfgang Schuster
  1 sibling, 0 replies; 29+ messages in thread
From: Wolfgang Schuster @ 2010-03-18  9:53 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Am 18.03.10 02:32, schrieb Michael Saunders:
> Consider, for example, something like this:  a book on film with a header:
> "Fellini's Roma and 8 1/2".  I'm used to setting something like this
> in this way:
> Fellini's \it{Roma} and \it{\cvfrac{8}{1}{2}}
> (where \cvfrac{}{}{} is a macro that gives me a compound vulgar fraction).
> The header is itself in smallcaps, so what comes out is:
> Fellini's<small caps>
> Roma<italic small caps>
> and<small caps>
> 8<italic proportional lining>  (italic and lining (i.e., uppercase)
> because it's a title)
> 1/2<italic numerator><italic><italic denominator>
> all with minimal effort on the part of the writer.  It seems natural that way.
>    
\setupbodyfont[pagella]

\definefontfeature[smcp][smcp=yes]
\definefontfeature[frac][frac=yes]

\setuphead[chapter][textstyle=\addfs{frac}\addfs{smcp}]

\starttext

\chapter{Fellini’s {\it Roma} and 8 1/2}

\input knuth

\stoptext

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  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 29+ messages in thread

* typescripts
@ 2010-03-18  1:32 Michael Saunders
  2010-03-18  9:53 ` typescripts Wolfgang Schuster
  2010-03-18 10:04 ` typescripts Wolfgang Schuster
  0 siblings, 2 replies; 29+ messages in thread
From: Michael Saunders @ 2010-03-18  1:32 UTC (permalink / raw)
  To: ntg-context

Wolfgang Schuster:

> do you need all of your fonts at the same time in your document?

Most of the time, one serif and one sans.  I'd be happy to get these
installed.  Of course, High quality fonts often come in large sets.
The varying weights turn up most often in the variations between
different kinds of heads, occasionally in other things.  Variations in
optical size occur more frequently, besides in heads, in things like
quotations, footnotes, and captions.  Smallcaps (and sometimes,
all-caps environments) often turn up in headers.  It's nice to be able
to switch easily between roman/italic and other things within
environments like that---it's very nice if things like shape, weight
and so on can be switched independently.  It's also very nice if
optical design sizes switch automatically with the current size.

Consider, for example, something like this:  a book on film with a header:
"Fellini's Roma and 8 1/2".  I'm used to setting something like this
in this way:
Fellini's \it{Roma} and \it{\cvfrac{8}{1}{2}}
(where \cvfrac{}{}{} is a macro that gives me a compound vulgar fraction).
The header is itself in smallcaps, so what comes out is:
Fellini's <small caps>
Roma <italic small caps>
and <small caps>
8 <italic proportional lining> (italic and lining (i.e., uppercase)
because it's a title)
1/2 <italic numerator><italic><italic denominator>
all with minimal effort on the part of the writer.  It seems natural that way.

> Do you plan to switch between oldstyle and lining figures each sentence?

I've certainly done that before, with lining for quantities and
oldstyle for everything else (mostly chapter and page numbers).  Of
course, other sorts of numerals turn up a lot too---the numerator and
denominator variants for fractions, the superiors for footnotemarks
and ordinals, and occasionally inferiors as well.

> Do you need condensed and regular width together in the running text
> or do you want one in the text and the other in the header?

The different widths of my sans is one thing I hadn't counted on using
much (I spend more time in serif) but, since I have the fonts, I
thought it would be nice to be able to use them.  More than the
specific uses I've mentioned above, I'm used to the freedom of being
able to use what I have when the need arises.

> ConTeXt is not a DTP program and has a completely different concept.

I'm aware of that.  I've been using LaTeX for fifteen years now.  I
keep hearing about Context and the work with Luatex and I want to try
it out to see whether I can get higher quality.  Loading and switching
fonts is just the first hurdle.  If it's too difficult to do this in
Context, that's okay.  I realize that it's a work in progress and
these things may be improved someday.  I just want to get as much
working as I can right now so I can try out more things.  I have two
fonts to install.  I've been at it for two weeks.  I realize it might
take a few more weeks and a lot of work.  I know it's not as easy as
dropping them in a folder.  That's okay.  I'll keep at it.

> Before we can give you better answers think about what do want
> to achieve and where do you need a certain font feature and style,
> when you have a clear picture about this ty to describe it and we
> try to help you.
___________________________________________________________________________________
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  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 29+ messages in thread

* Re: typescripts
  2010-03-17 12:16 typescripts Michael Saunders
  2010-03-17 12:34 ` typescripts Wolfgang Schuster
@ 2010-03-18  0:04 ` Wolfgang Schuster
  1 sibling, 0 replies; 29+ messages in thread
From: Wolfgang Schuster @ 2010-03-18  0:04 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Hi Michael,

do you need all of your fonts at the same time in your document?

Do you plan to switch between oldstyle and lining figures each sentence?

Do you need condensed and regular width together in the running text
or do you want one in the text and the other in the header?

ConTeXt is not a DTP program and has a completely different concept.

Before we can give you better answers think about what do want
to achieve and where do you need a certain font feature and style,
when you have a clear picture about this ty to describe it and we
try to help you.

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  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 29+ messages in thread

* Re: typescripts
  2010-03-17 12:16 typescripts Michael Saunders
@ 2010-03-17 12:34 ` Wolfgang Schuster
  2010-03-18  0:04 ` typescripts Wolfgang Schuster
  1 sibling, 0 replies; 29+ messages in thread
From: Wolfgang Schuster @ 2010-03-17 12:34 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Am 17.03.10 13:16, schrieb Michael Saunders:
>> You can apply only *one* feature to \definefontfeatures.
>>      
> I've seen examples like this:
> [...]
> so I think you mean to say that I can apply only one feature to
> \definefontsynonym or to \definetypeface.
Yes.
> I tried this and it checks out.  Thanks---it's nice to see hz working.
> Protrusion is only on the right margin?
>    
Left and right but quotation marks do not appear so often on the left 
margin.
> (Also, I'm hoping that having a dozen different sets of font features won't
> require twelve times as many switches and feature names as this.  I think
> there is some easier method for switching---Hans mentioned \addff{}, but
> I can't find anything in the docs.  If that works, that would make two kinds
> of switches, one for some kinds of features and another for other kinds.)
>    
\addff, \subff etc. are rather new commands and therefore only documented
in the source, you're free to add them to the wiki.

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  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 29+ messages in thread

* typescripts
@ 2010-03-17 12:16 Michael Saunders
  2010-03-17 12:34 ` typescripts Wolfgang Schuster
  2010-03-18  0:04 ` typescripts Wolfgang Schuster
  0 siblings, 2 replies; 29+ messages in thread
From: Michael Saunders @ 2010-03-17 12:16 UTC (permalink / raw)
  To: ntg-context

Wolfgang Schuster:


> You can apply only *one* feature to \definefontfeatures.

I've seen examples like this:
\definefontfeature
 [fea]
 [mode=node,language=dflt,script=arab,
  init=yes,medi=yes,fina=yes,isol=yes,
  liga=yes,dlig=yes,rlig=yes,tlig=yes,
  calt=yes,trep=yes,mark=yes,mkmk=yes,
  kern=yes,curs=yes]
so I think you mean to say that I can apply only one feature to
\definefontsynonym or to \definetypeface.  I tried this and it
checks out.  Thanks---it's nice to see hz working.  Protrusion is
only on the right margin?

> > 2. As far as I can tell from trying to decode examples, there is some
> > hidden connection between the first arguments of the second typescript
> > block and the font switches.  So, for example, a secret connection
> > between SerifBoldItalic and \bi seems to connect Junicode-BoldItalic
> > to \bi.  Fine, but, in all the examples I've seen, there are no more
> > than two weights and no widths.  In some cases, I have five weights
> > (light, book, medium, semi-bold, bold).  How do I set up the
> > typescript for this and the switches in the text?  Must I learn more
> > pairs like (SerifBoldItalic, \bi)?

You need more typefaces. One for light, another one for condensed etc.



------------------------------

Mojca Miklavec:

>> Must I learn more pairs like (SerifBoldItalic, \bi)?

> Yes, but there are not many (tf, it, sl, bf, bi, bs, sc) and I assume
> that they are extensible. See also below.

> > You need more typefaces. One for light, another one for condensed etc.

> Maybe I'm wrong, but shouldn't it be possible (I didn't test) to
> modify font-unk.mkiv and add a few extra definitions to the following?
> (Maybe not modify font-unk itself, but just adding a couple of more
> definitons to the typescript.)
>
> \definebodyfont [default] [rm]
>  [tf=Serif sa 1,
>   bf=SerifBold sa 1,
>   it=SerifItalic sa 1,
>   sl=SerifSlanted sa 1,
>   bi=SerifBoldItalic sa 1,
>   bs=SerifBoldSlanted sa 1,
>   sc=SerifCaps sa 1]
>
> You could add your
>  in=SerifYourFontVariantName sa 1,
>  bd=SerifYourOtherFontVariantName sa 1,
>
> And then
>   \definefontsynonym[SerifYourFontVariantName][YourFontName]

> It's true that most people don't do that, but I see no reason for not
> extending the model for your particular needs.

Mojca


------------------------------

Wolfgang Schuster:

> The last time i did this you needed for MkIV also
>
> \definefontalternative[in]
> \definefontalternative[bd]
>
> but be carefull with the shortcuts, \in is already used (references).



Thank you both.  I want to begin experimenting with this, but there's
one thing that still confuses me.  If I have a font with say, forty different
combinations of weight/width/shape (5x4x2), I will need to come up with
forty different pairs like:
myNewFontSwitch=SerifMyFontVariantName sa 1,
a strain on the poetic imagination, but possible.
It would be nicer though, if I could change weight/width/shape independently
of each other (then I need have only 5+4+2 switches).  For example, when
I see something like:
\rm\tf roman \it italic \bf bold
resulting in:
<book roman> <book italic> <bold roman>,
it's surprising to see that \bf has turned off the italic---you don't
expect a switch
of the weight to have a hidden switch of the shape in it.  Could the typescript
be set up with fewer switches, so that:
\rm\tf roman \it italic \bf bold
would result in:
<book roman> <book italic> <bold italic>,
or, e.g.,
\rm\tf (regular book roman) \cd (condensed) \it (italic) \bf (bold)
would result in:
<regular book roman> <condensed book roman> <condensed book italic>
<condensed bold italic>?



(Also, I'm hoping that having a dozen different sets of font features won't
require twelve times as many switches and feature names as this.  I think
there is some easier method for switching---Hans mentioned \addff{}, but
I can't find anything in the docs.  If that works, that would make two kinds
of switches, one for some kinds of features and another for other kinds.)
___________________________________________________________________________________
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  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 29+ messages in thread

* Re: typescripts
  2010-03-17 11:33       ` typescripts Mojca Miklavec
@ 2010-03-17 12:12         ` Wolfgang Schuster
  0 siblings, 0 replies; 29+ messages in thread
From: Wolfgang Schuster @ 2010-03-17 12:12 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Am 17.03.10 12:33, schrieb Mojca Miklavec:
> I know, but it's up to Michael to choose the names for his scheme.
> It's not very wise to override existing comands anyway; and almost any
> two-letter could could be taken for language switching. (\sl should
> stand for Slovenian, though it has a lower priority than font
> switching.)
>    
You loose the language shortcut but you're still able to change hyphenation
patterns with \language[...], that's not possible with references.

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  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 29+ messages in thread

* Re: typescripts
  2010-03-17  9:11     ` typescripts Wolfgang Schuster
@ 2010-03-17 11:33       ` Mojca Miklavec
  2010-03-17 12:12         ` typescripts Wolfgang Schuster
  0 siblings, 1 reply; 29+ messages in thread
From: Mojca Miklavec @ 2010-03-17 11:33 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Wed, Mar 17, 2010 at 10:11, Wolfgang Schuster wrote:
> Am 17.03.10 10:04, schrieb Mojca Miklavec:
>>
>> Maybe I'm wrong, but shouldn't it be possible (I didn't test) to
>> modify font-unk.mkiv and add a few extra definitions to the following?
>> (Maybe not modify font-unk itself, but just adding a couple of more
>> definitons to the typescript.)
>>
>> \definebodyfont [default] [rm]
>>   [tf=Serif sa 1,
>>    bf=SerifBold sa 1,
>>    it=SerifItalic sa 1,
>>    sl=SerifSlanted sa 1,
>>    bi=SerifBoldItalic sa 1,
>>    bs=SerifBoldSlanted sa 1,
>>    sc=SerifCaps sa 1]
>>
>> You could add your
>>   in=SerifYourFontVariantName sa 1,
>>   bd=SerifYourOtherFontVariantName sa 1,
>>
>
> The last time i did this you needed for MkIV also
>
> \definefontalternative[in]
> \definefontalternative[bd]
>
> but be carefull with the shortcuts, \in is already used (references).

I know, but it's up to Michael to choose the names for his scheme.
It's not very wise to override existing comands anyway; and almost any
two-letter could could be taken for language switching. (\sl should
stand for Slovenian, though it has a lower priority than font
switching.)

If he decides not to use cross-references, it may even work (with zero
guarantee).

Mojca
___________________________________________________________________________________
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  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 29+ messages in thread

* Re: typescripts
  2010-03-17  9:04   ` typescripts Mojca Miklavec
@ 2010-03-17  9:11     ` Wolfgang Schuster
  2010-03-17 11:33       ` typescripts Mojca Miklavec
  0 siblings, 1 reply; 29+ messages in thread
From: Wolfgang Schuster @ 2010-03-17  9:11 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Am 17.03.10 10:04, schrieb Mojca Miklavec:
> Maybe I'm wrong, but shouldn't it be possible (I didn't test) to
> modify font-unk.mkiv and add a few extra definitions to the following?
> (Maybe not modify font-unk itself, but just adding a couple of more
> definitons to the typescript.)
>
> \definebodyfont [default] [rm]
>    [tf=Serif sa 1,
>     bf=SerifBold sa 1,
>     it=SerifItalic sa 1,
>     sl=SerifSlanted sa 1,
>     bi=SerifBoldItalic sa 1,
>     bs=SerifBoldSlanted sa 1,
>     sc=SerifCaps sa 1]
>
> You could add your
>    in=SerifYourFontVariantName sa 1,
>    bd=SerifYourOtherFontVariantName sa 1,
>    
The last time i did this you needed for MkIV also

\definefontalternative[in]
\definefontalternative[bd]

but be carefull with the shortcuts, \in is already used (references).
> And then
>     \definefontsynonym[SerifYourFontVariantName][YourFontName]
>
> It's true that most people don't do that, but I see no reason for not
> extending the model for your particular needs.
>    
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  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 29+ messages in thread

* Re: typescripts
  2010-03-17  8:20 ` typescripts Wolfgang Schuster
@ 2010-03-17  9:04   ` Mojca Miklavec
  2010-03-17  9:11     ` typescripts Wolfgang Schuster
  0 siblings, 1 reply; 29+ messages in thread
From: Mojca Miklavec @ 2010-03-17  9:04 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Wed, Mar 17, 2010 at 09:20, Wolfgang Schuster wrote:
> Am 17.03.10 02:26, schrieb Michael Saunders:
>
>> 2. As far as I can tell from trying to decode examples, there is some
>> hidden connection between the first arguments of the second typescript
>> block and the font switches.  So, for example, a secret connection
>> between SerifBoldItalic and \bi seems to connect Junicode-BoldItalic
>> to \bi.  Fine, but, in all the examples I've seen, there are no more
>> than two weights and no widths.  In some cases, I have five weights
>> (light, book, medium, semi-bold, bold).  How do I set up the
>> typescript for this and the switches in the text?  Must I learn more
>> pairs like (SerifBoldItalic, \bi)?

Yes, but there are not many (tf, it, sl, bf, bi, bs, sc) and I assume
that they are extensible. See also below.

> You need more typefaces. One for light, another one for condensed etc.
>
> styles:
>
> Serif       -> \rm
> Sans        -> \ss
> Mono        -> \tt
> Handwriting -> \hw
> Calligraphy -> \cg
>
> alternatives:
>
> --
> Italic      -> \tf
> Slanted     -> \sl
> Bold        -> \bf
> BoldItalic  -> \bi
> BoldSlanted -> \bs
> Caps        -> \sc
>
> combinations:
>
> SerifItalic -> \rm\it, \rmit
> SansSlanted -> \ss\sl, \sssl
> MonoBold    -> \tt\bf, \ttbf

Maybe I'm wrong, but shouldn't it be possible (I didn't test) to
modify font-unk.mkiv and add a few extra definitions to the following?
(Maybe not modify font-unk itself, but just adding a couple of more
definitons to the typescript.)

\definebodyfont [default] [rm]
  [tf=Serif sa 1,
   bf=SerifBold sa 1,
   it=SerifItalic sa 1,
   sl=SerifSlanted sa 1,
   bi=SerifBoldItalic sa 1,
   bs=SerifBoldSlanted sa 1,
   sc=SerifCaps sa 1]

You could add your
  in=SerifYourFontVariantName sa 1,
  bd=SerifYourOtherFontVariantName sa 1,

And then
   \definefontsynonym[SerifYourFontVariantName][YourFontName]

It's true that most people don't do that, but I see no reason for not
extending the model for your particular needs.

Mojca
___________________________________________________________________________________
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  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 29+ messages in thread

* Re: typescripts
  2010-03-17  1:26 typescripts Michael Saunders
@ 2010-03-17  8:20 ` Wolfgang Schuster
  2010-03-17  9:04   ` typescripts Mojca Miklavec
  0 siblings, 1 reply; 29+ messages in thread
From: Wolfgang Schuster @ 2010-03-17  8:20 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Am 17.03.10 02:26, schrieb Michael Saunders:
> I have been earnestly trying to understand how they work by attempting
> a slightly more complex one.
>
> So far, I have:
>
> [...]
>
> 1. tlig and trep aren't working, so evidently, features=default isn't
> getting through.  No hanging or hz is happening either---probably the
> same problem.
>    
You can apply only *one* feature to \definefontfeatures.
> 2. As far as I can tell from trying to decode examples, there is some
> hidden connection between the first arguments of the second typescript
> block and the font switches.  So, for example, a secret connection
> between SerifBoldItalic and \bi seems to connect Junicode-BoldItalic
> to \bi.  Fine, but, in all the examples I've seen, there are no more
> than two weights and no widths.  In some cases, I have five weights
> (light, book, medium, semi-bold, bold).  How do I set up the
> typescript for this and the switches in the text?  Must I learn more
> pairs like (SerifBoldItalic, \bi)?
>    
You need more typefaces. One for light, another one for condensed etc.

styles:

Serif       -> \rm
Sans        -> \ss
Mono        -> \tt
Handwriting -> \hw
Calligraphy -> \cg

alternatives:

-- 
Italic      -> \tf
Slanted     -> \sl
Bold        -> \bf
BoldItalic  -> \bi
BoldSlanted -> \bs
Caps        -> \sc

combinations:

SerifItalic -> \rm\it, \rmit
SansSlanted -> \ss\sl, \sssl
MonoBold    -> \tt\bf, \ttbf

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  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 29+ messages in thread

* typescripts
@ 2010-03-17  1:26 Michael Saunders
  2010-03-17  8:20 ` typescripts Wolfgang Schuster
  0 siblings, 1 reply; 29+ messages in thread
From: Michael Saunders @ 2010-03-17  1:26 UTC (permalink / raw)
  To: ntg-context

I have been earnestly trying to understand how they work by attempting
a slightly more complex one.

So far, I have:

-------------------------------------------------------
\definefontfeature[default][mode=node,language=dflt,script=latn,kern=yes,liga=yes,tlig=yes,trep=yes]
\definefontfeature[body][onum=yes,pnum=yes,protrusion=quality,expansion=quality]%turn
hz on
%plus some I hope to use later
\definefontfeature[tabular][sans=yes,tnum=yes,onum=yes]%turn hz off
\definefontfeature[allcaps][cpsp=yes,case=yes,lnum=yes]
\definefontfeature[smallcaps][smcp, onum=yes]
\definefontfeature[swashes][swsh=yes]
\definefontfeature[inferior][sinf=yes]
\definefontfeature[superior][sups, ordn=yes]
\definefontfeature[numerator][numr=yes]
\definefontfeature[denominator][dnom=yes]
\definefontfeature[prop-os][pnum=yes,onum=yes]
\definefontfeature[prop-lin][pnum=yes,lnum=yes]
\definefontfeature[tab-os][tnum=yes,onum=yes]
\definefontfeature[tab-lin][tnum=yes,lnum=yes]
\definefontfeature[ornaments][ornm=yes]
\definefontfeature[lgc][script=latn,script=grek,script=cyrl]

\starttypescript [serif] [junicode]
   \definefontsynonym[Junicode][name:junicode][features=default,features=body,features=lgc]
   \definefontsynonym[Junicode-Bold][name:junicodebold][features=default,features=body,features=lgc]
   \definefontsynonym[Junicode-Italic][name:junicodeitalic][features=default,features=body,features=lgc]
   \definefontsynonym[Junicode-BoldItalic][name:junicodebolditalic][features=default,features=body,features=lgc]
\stoptypescript

\starttypescript [serif] [junicode]
   \definefontsynonym[Serif][Junicode][features=default,features=body,features=lgc]
   \definefontsynonym[SerifBold][Junicode-Bold][features=default,features=body,features=lgc]
   \definefontsynonym[SerifItalic][Junicode-Italic][features=default,features=body,features=lgc]
   \definefontsynonym[SerifBoldItalic][Junicode-BoldItalic][features=default,features=body,features=lgc]
\stoptypescript

\starttypescript [junicode]
   \definetypeface [junicode] [rm] [serif] [junicode] [default]
[features=default,features=body,features=lgc,features=hanging,features=hz]
\stoptypescript

\setupalign[hanging,hz]
\setupbodyfont[junicode,12pt]
-------------------------------------------------------------------------

but,

1. tlig and trep aren't working, so evidently, features=default isn't
getting through.  No hanging or hz is happening either---probably the
same problem.

2. As far as I can tell from trying to decode examples, there is some
hidden connection between the first arguments of the second typescript
block and the font switches.  So, for example, a secret connection
between SerifBoldItalic and \bi seems to connect Junicode-BoldItalic
to \bi.  Fine, but, in all the examples I've seen, there are no more
than two weights and no widths.  In some cases, I have five weights
(light, book, medium, semi-bold, bold).  How do I set up the
typescript for this and the switches in the text?  Must I learn more
pairs like (SerifBoldItalic, \bi)?
___________________________________________________________________________________
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  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 29+ messages in thread

* typescripts
@ 2003-08-16 20:05 Henning Hraban Ramm
  0 siblings, 0 replies; 29+ messages in thread
From: Henning Hraban Ramm @ 2003-08-16 20:05 UTC (permalink / raw)


Hello together!

My typescripts are now online:
http://www.fiee.net/texnique/?menu=0-1-3&lang=en
or directly:
http://www.ramm.ch/fiee/texnique/material/typescripts.zip

The archive contains only typescript files, no AFMs, PFBs,
TFMs, VFs, MAPs or the like.
Put them in texmf(-var|-local|...)/tex/context/user
or in your project directory.

Install the fonts with texfont (or with my also contained
install-font.pl that calls texfont and does some other
nasty work, but it's not very sophisticated, and you must
edit the hardcoded TeXRoot yourself -- I know I should
use kpsewhich, but...).
All file names are supposed lowercase! (I had much
problems with uppercase font names.)

The archive contains typescripts for the huge (but not
so beautiful) font families of URW with their spread
from extra narrow to extra wide, and some other for
ITC, Adobe and Linotype fonts.

I tried to map all fonts to something reachable, e.g.
if a family contained no italics, I mapped the next
bolder font onto italics.

Enjoy!
Grüßlis vom Hraban!
-- 
http://www.fiee.net/texnique/

^ permalink raw reply	[flat|nested] 29+ messages in thread

end of thread, other threads:[~2010-11-12 20:39 UTC | newest]

Thread overview: 29+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-11-10 18:57 typescripts Herbert Voss
2010-11-10 20:28 ` typescripts Mojca Miklavec
2010-11-10 21:14   ` typescripts Herbert Voss
2010-11-11  5:20   ` typescripts Wolfgang Schuster
2010-11-11  9:48     ` [***SPAM***] typescripts Arthur Reutenauer
2010-11-11 11:03     ` typescripts Mojca Miklavec
2010-11-11 11:27       ` typescripts Hans Hagen
2010-11-11 14:15         ` typescripts Mojca Miklavec
  -- strict thread matches above, loose matches on Subject: below --
2010-11-12 14:32 typescripts Herbert Voss
2010-11-12 16:29 ` typescripts Herbert Voss
2010-11-12 16:54   ` typescripts Hans Hagen
2010-11-12 16:57 ` typescripts Hans Hagen
2010-11-12 17:41   ` typescripts Herbert Voss
2010-11-12 17:46     ` typescripts Hans Hagen
     [not found]       ` <4CDD80A7.7040803@FU-Berlin.DE>
     [not found]         ` <4CDD8246.2020206@wxs.nl>
2010-11-12 20:39           ` typescripts Herbert Voss
2010-03-18 20:42 typescripts Michael Saunders
2010-03-18  1:32 typescripts Michael Saunders
2010-03-18  9:53 ` typescripts Wolfgang Schuster
2010-03-18 10:04 ` typescripts Wolfgang Schuster
2010-03-17 12:16 typescripts Michael Saunders
2010-03-17 12:34 ` typescripts Wolfgang Schuster
2010-03-18  0:04 ` typescripts Wolfgang Schuster
2010-03-17  1:26 typescripts Michael Saunders
2010-03-17  8:20 ` typescripts Wolfgang Schuster
2010-03-17  9:04   ` typescripts Mojca Miklavec
2010-03-17  9:11     ` typescripts Wolfgang Schuster
2010-03-17 11:33       ` typescripts Mojca Miklavec
2010-03-17 12:12         ` typescripts Wolfgang Schuster
2003-08-16 20:05 typescripts Henning Hraban Ramm

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).