symb-imp-cow.mkiv /size: 5738 b    last modification: 2020-07-01 14:35
1%D \module
2%D   [       file=symb-cow,
3%D        version=2006.06.23,
4%D          title=\CONTEXT\ Symbol Libraries,
5%D       subtitle=Cow Symbols,
6%D         author=Hans Hagen,
7%D           date=\currentdate,
8%D      copyright={PRAGMA ADE \& \CONTEXT\ Development Team}]
9%C
10%C This module is part of the \CONTEXT\ macro||package and is
11%C therefore copyrighted by \PRAGMA. See mreadme.pdf for
12%C details.
13
14\definefontsynonym [Cows]            [koeielett]
15\definefontsynonym [CowsContour]     [koeielett-contour]
16\definefontsynonym [CowsLogo]        [koeielogos]
17\definefontsynonym [CowsLogoContour] [koeielogos-contour]
18
19\definecolor [lsky]     [r=.6,g=.6,b=1]
20\definecolor [dsky]     [r=.1,g=.1,b=1]
21\definecolor [lground]  [r=.3,g=.9,b=.3]
22\definecolor [dground]  [r=0,g=.5,b=0]
23\definecolor [cspots]   [r=.33,g=.1,b=0]
24
25\definecolor [tlsky]    [t=.5,a=1,r=.6,g=.6,b=1]
26\definecolor [tdsky]    [t=.5,a=1,r=.1,g=.1,b=1]
27\definecolor [tlground] [t=.5,a=1,r=.3,g=.9,b=.3]
28\definecolor [tdground] [t=.5,a=1,r=0,g=.5,b=0]
29\definecolor [tcspots]  [t=.5,a=1,r=.33,g=.1,b=0]
30
31\definepalet
32  [cow]
33  [normal=lground,
34   contour=dground,
35   sky=lsky]
36
37\def\CowNormal#1%
38  {\dontleavehmode\hbox{\color[cow:normal]{\getnamedglyphdirect{Cows}{#1}}}}
39
40\def\ScaledCowNormal#1#2%
41  {\dontleavehmode\hbox{\color[cow:normal]{\definedfont[Cows sa #1]#2}}}
42
43\def\ScaledCowOverlay#1#2%
44  {\dontleavehmode\hbox
45     {\color[cow:contour]{\hsmash{\definedfont[CowsContour sa #1]#2}}%
46      \color[cow:normal]         {\definedfont[Cows        sa #1]#2}}}
47
48\def\CowOverlay#1%
49  {\dontleavehmode\hbox
50     {\color[cow:contour]{\hsmash{\getnamedglyphdirect{CowsContour}{#1}}}%
51      \color[cow:normal]         {\getnamedglyphdirect{Cows}       {#1}}}}
52
53\def\CowContour#1%
54  {\dontleavehmode\hbox
55     {\color[cow:contour]{\hsmash{\getnamedglyphdirect{CowsLogoContour}{#1}}}%
56      \color[cow:normal]         {\getnamedglyphdirect{CowsLogo}       {#1}}}}
57
58\def\CowLogo       {\getnamedglyphdirect{CowsLogo}}        % #1
59\def\CowContourLogo{\getnamedglyphdirect{CowsLogoContour}} % #1
60
61\chardef\CowPragmaNormal= 1
62\chardef\CowPragmaShaded=20
63
64\startsymbolset[cownormal]
65
66    \definesymbol[CowPragmaADE]        [\CowLogo{P_r_a_g_m_a_A_d_e}]
67    \definesymbol[CowPragma]           [\CowLogo{p_r_a_g_m_a_a_d_e}]
68    \definesymbol[CowConTeXt]          [\CowLogo{c_o_n_t_e_x_t}]
69    \definesymbol[CowConTeXtComplete]  [\CowLogo{contextlogo}]
70    \definesymbol[CowConTeXtShadow]    [\CowLogo{contextlogo.shadow}]
71    \definesymbol[CowConTeXtContour]   [\CowLogo{contextlogo.contour}]
72    \definesymbol[CowConTeXtOutline]   [\CowLogo{contextlogo.skeleton}]
73    \definesymbol[CowConTeXtDots]      [\CowLogo{contextlogo.dots}]
74    \definesymbol[CowMP]               [\CowLogo{M_P}]
75    \definesymbol[CowMPComplete]       [\CowLogo{mplogo}]
76    \definesymbol[CowTeX]              [\CowLogo{T_e_X}]
77    \definesymbol[CowTeXComplete]      [\CowLogo{texlogo.alt}]
78    \definesymbol[CowBoo]              [\CowLogo{boo}]
79    \definesymbol[CowCow]              [\CowLogo{cow}]
80    \definesymbol[CowExampleComplete]  [\CowLogo{E_x_a_m_p_l_e}]
81    \definesymbol[CowFoxetComplete]    [\CowLogo{F_o_X_e_t}]
82    \definesymbol[CowMetafun]          [\CowLogo{m_e_t_a_f_u_n}]
83    \definesymbol[CowMetafunComplete]  [\CowLogo{metafunlogo}]
84    \definesymbol[CowTEXComplete]      [\CowLogo{texlogo}]
85    \definesymbol[CowWikiComplete]     [\CowLogo{wikilogo}]
86    \definesymbol[CowPragmaADEComplete][\CowLogo{PragmaADElogo}]
87    \definesymbol[CowPragmaComplete]   [\CowLogo{pragmaadelogo}]
88    \definesymbol[CowExample]          [\CowLogo{examplelogo}]
89    \definesymbol[CowFoxet]            [\CowLogo{foxetlogo}]
90    \definesymbol[CowTEX]              [\CowLogo{T_E_X}]
91    \definesymbol[CowWiki]             [\CowLogo{W_i_k_i}]
92    \definesymbol[CowCowTeXtComplete]  [\CowLogo{cowtextlogo}]
93    \definesymbol[CowCowTeXt]          [\CowLogo{C_o_w_t_e_x_t}]
94
95\stopsymbolset
96
97\startsymbolset[cowcontour]
98
99    \definesymbol[CowPragmaADE]        [\CowLogo{P_r_a_g_m_a_A_d_e}]
100    \definesymbol[CowPragma]           [\CowLogo{p_r_a_g_m_a_a_d_e}]
101    \definesymbol[CowConTeXt]          [\CowLogo{c_o_n_t_e_x_t}]
102    \definesymbol[CowConTeXtComplete]  [\CowLogo{contextlogo}]
103    \definesymbol[CowConTeXtShadow]    [\CowLogo{contextlogo.shadow}]
104    \definesymbol[CowConTeXtContour]   [\CowLogo{contextlogo.contour}]
105    \definesymbol[CowConTeXtOutline]   [\CowLogo{contextlogo.skeleton}]
106    \definesymbol[CowConTeXtDots]      [\CowLogo{contextlogo.dots}]
107    \definesymbol[CowMP]               [\CowLogo{M_P}]
108    \definesymbol[CowMPComplete]       [\CowLogo{mplogo}]
109    \definesymbol[CowTeX]              [\CowLogo{T_e_X}]
110    \definesymbol[CowTeXComplete]      [\CowLogo{texlogo.alt}]
111    \definesymbol[CowBoo]              [\CowLogo{boo}]
112    \definesymbol[CowCow]              [\CowLogo{cow}]
113    \definesymbol[CowExampleComplete]  [\CowLogo{E_x_a_m_p_l_e}]
114    \definesymbol[CowFoxetComplete]    [\CowLogo{F_o_X_e_t}]
115    \definesymbol[CowMetafun]          [\CowLogo{m_e_t_a_f_u_n}]
116    \definesymbol[CowMetafunComplete]  [\CowLogo{metafunlogo}]
117    \definesymbol[CowTEXComplete]      [\CowLogo{texlogo}]
118    \definesymbol[CowWikiComplete]     [\CowLogo{wikilogo}]
119    \definesymbol[CowPragmaADEComplete][\CowLogo{PragmaADElogo}]
120    \definesymbol[CowPragmaComplete]   [\CowLogo{pragmaadelogo}]
121    \definesymbol[CowExample]          [\CowLogo{examplelogo}]
122    \definesymbol[CowFoxet]            [\CowLogo{foxetlogo}]
123    \definesymbol[CowTEX]              [\CowLogo{T_E_X}]
124    \definesymbol[CowWiki]             [\CowLogo{W_i_k_i}]
125    \definesymbol[CowCowTeXtComplete]  [\CowLogo{cowtextlogo}]
126    \definesymbol[CowCowTeXt]          [\CowLogo{C_o_w_t_e_x_t}]
127
128\stopsymbolset
129
130\endinput
131