type-gyr.tex / last modification: 2008-10-13 17:17
%D \module
%D   [       file=type-gyr,
%D        version=2006.06.28,
%D          title=\CONTEXT\ Typescript Macros,
%D       subtitle=TeXGyre Collection,
%D         author=Hans Hagen,
%D           date=\currentdate,
%D      copyright=PRAGMA]
%C
%C This module is part of the \CONTEXT\ macro||package and is
%C therefore copyrighted by \PRAGMA. See mreadme.pdf for
%C details.

% \beginNEWTEX already-otf-gyre
%     \endinput
% \endNEWTEX

%D These definitions will eventually replace the ones in \type {type-one}!

% \usetypescriptfile[type-gyr]
% \definetypeface[pagella][rm][serif][pagella][default][encoding=t5]
% \setupbodyfont[pagella]
% \starttext
% \startlines
% hello world 123
% {hello \Var[sc] world 123}
% {\it hello \Var[sc]world \Var[reset] 123}
% {\bf hello \Var[osf] {\Var[reset] world} 123}
% {\bi hello world \Var[osf]123}
% {\sc hello \Var[sc] world \Var[reset] 123}
% \stoplines
% \showfont[SerifItalicCaps]
% \stoptext

% Beware, because tetex demanded a different map file naming scheme, we ship
% alternatively named files as well, just to make sure that older installations
% still work (where users may load their own instances). In due time we will
% follow that scheme (well, in due time we will drop map files anyway).

\starttypescriptcollection[gyre]

%D First we define the new ones. Watch how we use the systematic name composition.

\definetypescriptprefix [n:pagella] [TeXGyrePagella]
\definetypescriptprefix [n:termes]  [TeXGyreTermes]
\definetypescriptprefix [n:heros]   [TeXGyreHeros]
\definetypescriptprefix [n:bonum]   [TeXGyreBonum]
\definetypescriptprefix [n:schola]  [TeXGyreSchola]
\definetypescriptprefix [n:adventor][TeXGyreAdventor]
\definetypescriptprefix [n:cursor]  [TeXGyreCursor]

\definetypescriptprefix [f:pagella] [pl]
\definetypescriptprefix [f:termes]  [tm]
\definetypescriptprefix [f:heros]   [hv]
\definetypescriptprefix [f:bonum]   [bk]
\definetypescriptprefix [f:schola]  [cs]
\definetypescriptprefix [f:adventor][ag]
\definetypescriptprefix [f:cursor]  [cr]

\starttypescript [serif,sans,mono] [pagella,termes,heros,bonum,schola,adventor,cursor] [ec,texnansi,cs,el,qx,rm,t5,t2a,t2b,t2c,l7x]
    \definefontsynonym [\typescriptprefix{n:\typescripttwo}-Regular]        [\typescriptthree-q\typescriptprefix{f:\typescripttwo}r]     [encoding=\typescriptthree]
    \definefontsynonym [\typescriptprefix{n:\typescripttwo}-Italic]         [\typescriptthree-q\typescriptprefix{f:\typescripttwo}ri]    [encoding=\typescriptthree]
    \definefontsynonym [\typescriptprefix{n:\typescripttwo}-Bold]           [\typescriptthree-q\typescriptprefix{f:\typescripttwo}b]     [encoding=\typescriptthree]
    \definefontsynonym [\typescriptprefix{n:\typescripttwo}-BoldItalic]     [\typescriptthree-q\typescriptprefix{f:\typescripttwo}bi]    [encoding=\typescriptthree]

    \definefontsynonym [\typescriptprefix{n:\typescripttwo}-Caps]           [\typescriptthree-q\typescriptprefix{f:\typescripttwo}r-sc]  [encoding=\typescriptthree]
    \definefontsynonym [\typescriptprefix{n:\typescripttwo}-ItalicCaps]     [\typescriptthree-q\typescriptprefix{f:\typescripttwo}ri-sc] [encoding=\typescriptthree]
    \definefontsynonym [\typescriptprefix{n:\typescripttwo}-BoldCaps]       [\typescriptthree-q\typescriptprefix{f:\typescripttwo}b-sc]  [encoding=\typescriptthree]
    \definefontsynonym [\typescriptprefix{n:\typescripttwo}-BoldItalicCaps] [\typescriptthree-q\typescriptprefix{f:\typescripttwo}bi-sc] [encoding=\typescriptthree]

    \definefontsynonym [\typescriptprefix{n:\typescripttwo}-Slanted]        [\typescriptprefix{n:\typescripttwo}-Italic]
    \definefontsynonym [\typescriptprefix{n:\typescripttwo}-BoldSlanted]    [\typescriptprefix{n:\typescripttwo}-BoldItalic]

    \loadmapfile[q\typescriptprefix{f:\typescripttwo}-\typescriptthree.map]
\stoptypescript

\starttypescript [serif] [pagella,termes,bonum,schola] [name]
    \definefontsynonym [Serif]                [\typescriptprefix{n:\typescripttwo}-Regular]
    \definefontsynonym [SerifItalic]          [\typescriptprefix{n:\typescripttwo}-Italic]
    \definefontsynonym [SerifBold]            [\typescriptprefix{n:\typescripttwo}-Bold]
    \definefontsynonym [SerifBoldItalic]      [\typescriptprefix{n:\typescripttwo}-BoldItalic]
    \definefontsynonym [SerifCaps]            [\typescriptprefix{n:\typescripttwo}-Caps]
    \definefontsynonym [SerifSlanted]         [\typescriptprefix{n:\typescripttwo}-Slanted]
    \definefontsynonym [SerifBoldSlanted]     [\typescriptprefix{n:\typescripttwo}-BoldSlanted]

    \definefontvariant [Serif][osf][Caps]
    \definefontvariant [Serif][sc] [Caps]

    \definefontsynonym [SerifRegular]         [\typescriptprefix{n:\typescripttwo}-Regular]
    \definefontsynonym [SerifRegularCaps]     [\typescriptprefix{n:\typescripttwo}-Caps]
    \definefontsynonym [SerifItalicCaps]      [\typescriptprefix{n:\typescripttwo}-ItalicCaps]
    \definefontsynonym [SerifBoldCaps]        [\typescriptprefix{n:\typescripttwo}-BoldCaps]
    \definefontsynonym [SerifBoldItalicCaps]  [\typescriptprefix{n:\typescripttwo}-BoldItalicCaps]
    \definefontsynonym [SerifCapsCaps]        [\typescriptprefix{n:\typescripttwo}-Caps]
    \definefontsynonym [SerifSlantedCaps]     [\typescriptprefix{n:\typescripttwo}-ItalicCaps]
    \definefontsynonym [SerifBoldSlantedCaps] [\typescriptprefix{n:\typescripttwo}-BoldItalicCaps]
\stoptypescript

\starttypescript [sans] [heros,adventor] [name]
    \definefontsynonym [Sans]                [\typescriptprefix{n:\typescripttwo}-Regular]
    \definefontsynonym [SansItalic]          [\typescriptprefix{n:\typescripttwo}-Italic]
    \definefontsynonym [SansBold]            [\typescriptprefix{n:\typescripttwo}-Bold]
    \definefontsynonym [SansBoldItalic]      [\typescriptprefix{n:\typescripttwo}-BoldItalic]
    \definefontsynonym [SansCaps]            [\typescriptprefix{n:\typescripttwo}-Caps]
    \definefontsynonym [SansSlanted]         [\typescriptprefix{n:\typescripttwo}-Slanted]
    \definefontsynonym [SansBoldSlanted]     [\typescriptprefix{n:\typescripttwo}-BoldSlanted]

    \definefontvariant [Sans][osf][Caps]
    \definefontvariant [Sans][sc] [Caps]

    \definefontsynonym [SansRegular]         [\typescriptprefix{n:\typescripttwo}-Regular]
    \definefontsynonym [SansRegularCaps]     [\typescriptprefix{n:\typescripttwo}-Caps]
    \definefontsynonym [SansItalicCaps]      [\typescriptprefix{n:\typescripttwo}-ItalicCaps]
    \definefontsynonym [SansBoldCaps]        [\typescriptprefix{n:\typescripttwo}-BoldCaps]
    \definefontsynonym [SansBoldItalicCaps]  [\typescriptprefix{n:\typescripttwo}-BoldItalicCaps]
    \definefontsynonym [SansCapsCaps]        [\typescriptprefix{n:\typescripttwo}-Caps]
    \definefontsynonym [SansSlantedCaps]     [\typescriptprefix{n:\typescripttwo}-ItalicCaps]
    \definefontsynonym [SansBoldSlantedCaps] [\typescriptprefix{n:\typescripttwo}-BoldItalicCaps]
\stoptypescript

%D Here we overload the older (URW) fonts.

% TeXGyrePagella
%
% qplr  TeXGyrePagella-Regular
% qplri TeXGyrePagella-Italic
% qplb  TeXGyrePagella-Bold
% qplbi TeXGyrePagella-BoldItalic

\starttypescript [serif] [palatino] [ec,texnansi,cs,el,qx,rm,t5,t2a,t2b,t2c,l7x]
    \definefontsynonym [Palatino]             [\typescriptthree-qplr]    [encoding=\typescriptthree]
    \definefontsynonym [Palatino-Italic]      [\typescriptthree-qplri]   [encoding=\typescriptthree]
    \definefontsynonym [Palatino-Bold]        [\typescriptthree-qplb]    [encoding=\typescriptthree]
    \definefontsynonym [Palatino-BoldItalic]  [\typescriptthree-qplbi]   [encoding=\typescriptthree]
    \definefontsynonym [Palatino-Caps]        [\typescriptthree-qplr-sc] [encoding=\typescriptthree]

    \definefontsynonym [Palatino-Slanted]     [Palatino-Italic]
    \definefontsynonym [Palatino-BoldSlanted] [Palatino-BoldItalic]

    \loadmapfile[qpl-\typescriptthree.map]
    \unloadmapfile[\typescriptthree-urw-palatino.map]
\stoptypescript

% TeXGyreTermes
%
% qtmr  TeXGyreTermes-Regular
% qtmri TeXGyreTermes-Italic
% qtmb  TeXGyreTermes-Bold
% qtmbi TeXGyreTermes-BoldItalic

\starttypescript [serif] [times] [ec,texnansi,cs,el,qx,rm,t5,t2a,t2b,t2c,l7x]
    \definefontsynonym [Times-Roman]       [\typescriptthree-qtmr]    [encoding=\typescriptthree]
    \definefontsynonym [Times-Italic]      [\typescriptthree-qtmri]   [encoding=\typescriptthree]
    \definefontsynonym [Times-Bold]        [\typescriptthree-qtmb]    [encoding=\typescriptthree]
    \definefontsynonym [Times-BoldItalic]  [\typescriptthree-qtmbi]   [encoding=\typescriptthree]
    \definefontsynonym [Times-Caps]        [\typescriptthree-qtmr-sc] [encoding=\typescriptthree]

    \definefontsynonym [Times-Slanted]     [Times-Italic]
    \definefontsynonym [Times-BoldSlanted] [Times-BoldItalic]

    \loadmapfile[qtm-\typescriptthree.map]
    \unloadmapfile[\typescriptthree-urw-times.map]
\stoptypescript

% TeXGyreHeros
%
% qtmr  TeXGyreHeros-Regular
% qtmri TeXGyreHeros-Italic
% qtmb  TeXGyreHeros-Bold
% qtmbi TeXGyreHeros-BoldItalic

\starttypescript [sans] [heros,helvetica] [ec,texnansi,cs,el,qx,rm,t5,t2a,t2b,t2c,l7x]
    \definefontsynonym [Helvetica]             [\typescriptthree-qhvr]    [encoding=\typescriptthree]
    \definefontsynonym [Helvetica-Oblique]     [\typescriptthree-qhvri]   [encoding=\typescriptthree]
    \definefontsynonym [Helvetica-Bold]        [\typescriptthree-qhvb]    [encoding=\typescriptthree]
    \definefontsynonym [Helvetica-BoldOblique] [\typescriptthree-qhvbi]   [encoding=\typescriptthree]
    \definefontsynonym [Helvetica-Caps]        [\typescriptthree-qhvr-sc] [encoding=\typescriptthree]

    \loadmapfile[qhv-\typescriptthree.map]
    \unloadmapfile[\typescriptthree-urw-helvetica.map]
\stoptypescript

% TeXGyreCursor
%
% qcrr  TeXGyreCursor-Regular
% qcrri TeXGyreCursor-Italic
% qcrb  TeXGyreCursor-Bold
% qcrbi TeXGyreCursor-BoldItalic

\starttypescript [mono] [cursor,courier] [ec,texnansi,cs,el,qx,rm,t5,t2a,t2b,t2c,l7x]
    \definefontsynonym [Courier]             [\typescriptthree-qcrr]  [encoding=\typescriptthree]
    \definefontsynonym [Courier-Bold]        [\typescriptthree-qcrri] [encoding=\typescriptthree]
    \definefontsynonym [Courier-Oblique]     [\typescriptthree-qcrb]  [encoding=\typescriptthree]
    \definefontsynonym [Courier-BoldOblique] [\typescriptthree-qcrbi] [encoding=\typescriptthree]
    \fakecontrolspace

    \loadmapfile[qcr-\typescriptthree.map]
    \unloadmapfile[\typescriptthree-urw-courier.map]
\stoptypescript

% TeXGyreBonum
%
% qtmr  TeXGyreBonum-Regular
% qtmri TeXGyreBonum-Italic
% qtmb  TeXGyreBonum-Bold
% qtmbi TeXGyreBonum-BoldItalic

\starttypescript [serif] [bookman] [ec,texnansi,cs,el,qx,rm,t5,t2a,t2b,t2c,l7x]
    \definefontsynonym [Bookman-Light]           [\typescriptthree-qbkr]    [encoding=\typescriptthree]
    \definefontsynonym [Bookman-LightItalic]     [\typescriptthree-qbkri]   [encoding=\typescriptthree]
    \definefontsynonym [Bookman-DemiBold]        [\typescriptthree-qbkb]    [encoding=\typescriptthree]
    \definefontsynonym [Bookman-DemiBoldItalic]  [\typescriptthree-qbkbi]   [encoding=\typescriptthree]
    \definefontsynonym [Bookman-Light-Caps]      [\typescriptthree-qbkr-sc] [encoding=\typescriptthree]

    \definefontsynonym [Bookman-LightSlanted]    [Bookman-LightItalic]
    \definefontsynonym [Bookman-DemiBoldSlanted] [Bookman-DemiBoldItalic]

    \loadmapfile[qbk-\typescriptthree.map]
    \unloadmapfile[\typescriptthree-urw-bookman.map]
\stoptypescript

% TeXGyreScola
%
% qcsr  TeXGyreSchola-Regular
% qcsri TeXGyreSchola-Italic
% qcsb  TeXGyreSchola-Bold
% qcsbi TeXGyreSchola-BoldItalic

\starttypescript [serif] [schoolbook] [ec,texnansi,cs,el,qx,rm,t5,t2a,t2b,t2c,l7x]
    \definefontsynonym [Schoolbook-Roman]      [\typescriptthree-qcsr]    [encoding=\typescriptthree]
    \definefontsynonym [Schoolbook-Italic]     [\typescriptthree-qcsri]   [encoding=\typescriptthree]
    \definefontsynonym [Schoolbook-Bold]       [\typescriptthree-qcsb]    [encoding=\typescriptthree]
    \definefontsynonym [Schoolbook-BoldItalic] [\typescriptthree-qcsbi]   [encoding=\typescriptthree]
    \definefontsynonym [Schoolbook-Roman-Caps] [\typescriptthree-qcsr-sc] [encoding=\typescriptthree]

    \definefontsynonym [Schoolbook-Slanted]     [Schoolbook-Italic]
    \definefontsynonym [Schoolbook-BoldSlanted] [Schoolbook-BoldItalic]

    \loadmapfile[qcs-\typescriptthree.map]
    \unloadmapfile[\typescriptthree-urw-ncntrsbk.map]
\stoptypescript

% TeXGyreAdventor
%
% qagr  TeXGyreAdventor-Regular
% qagri TeXGyreAdventor-Italic
% qagb  TeXGyreAdventor-Bold
% qagbi TeXGyreAdventor-BoldItalic

% not previously defined

\stoptypescriptcollection