summaryrefslogtreecommitdiff
path: root/tex/context/base/type-imp-husayni.mkiv
blob: b81996c33799eeead0e6cf4e021921909502cb19 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
%D \module
%D   [       file=type-imp-husayni,
%D        version=2008.08.08, % or whatever ... onwards
%D          title=\CONTEXT\ Typescript Macros,
%D       subtitle=Husayni,
%D         author=Idris Samawi Hamid \& Hans Hagen,
%D           date=\currentdate,
%D      copyright={PRAGMA ADE \& \CONTEXT\ Development Team}]
%C
%C This module is part of the \CONTEXT\ macro||package and is
%C therefore copyrighted by \PRAGMA. See mreadme.pdf for
%C details.

%D For a detailed list of features and names, see husayni.lfg. In fact, the following
%D sets will go there.

\definefontfeature
  [husayni-default]
  [analyze=yes,
   mode=node,
   language=dflt,
   script=arab,
   ccmp=yes,         % adds identity dots to unicode letters; includes dynamic dot placement
   init=yes,         % contextual analysis
   medi=yes,         % contextual analysis
   fina=yes,         % contextual analysis
   rlig=yes,         % indispensable
   calt=yes,         % ayah+numerals
   salt=yes,         % includes manual justification with Tatwiil
   anum=yes,         % replace latin numerals with arabic-script ones
   ss01=yes,         % Allah, Muhammad,
   ss03=yes,         % level-1 stack over Jiim, initial entry only
   ss10=yes,         % basic dipped Miim, initial-entry B_S-stack over Miim
   ss12=yes,         % XBM_im initial-medial entry B_S-stack over Miim,
   ss15=yes,         % full stacked Laam-on-Miim
   ss16=yes,         % initial entry, stacked Ayn-on-Miim
   ss19=yes,         % LM_im
   ss24=yes,         % BR_i_mf, BN_i_mf
   ss25=yes,         % basic LH_im % might merge with ss24
   ss26=yes,         % full Yaa.final special strings: BY_if, BY_mf, LY_mf
   ss27=yes,         % basic thin Miim.final
   ss31=yes,         % basic Raa.final strings: JR and SR
   ss34=yes,         % AyR style % also available in jsnn
   ss35=yes,         % full Kaaf contexts
   ss36=yes,         % full Laam contexts
   ss37=yes,         % Miim-Miim contexts
   ss38=yes,         % basic dipped Haa, B_SH_mm
   ss41=yes,         % high and low Baa strings
   ss42=yes,         % diagonal entry
   ss43=yes,         % initial alternates
   ss60=yes,         %
   js16=yes,         % aesthetic medial Faa/Qaaf
   kern=yes,         % includes kerning of dot-base pairs, and final pairs in continuous strings
   curs=yes,         % we don't curs final pairs, padj for that
   mark=yes,         % vowels
   mkmk=yes,         % stacked vowels
   tlig=yes,
   goodies=husayni,
   colorscheme=default]

\definefontfeature
  [husayni-alternative] % was husayni-default2
  [analyze=yes,
   mode=node,
   language=dflt,
   script=arab,
   ccmp=yes,         % adds identity dots to unicode letters; includes dynamic dot placement
   init=yes,         % contextual analysis
   medi=yes,         % contextual analysis
   fina=yes,         % contextual analysis
   rlig=yes,         % indispensable
   calt=yes,         % ayah+numerals
   salt=yes,         % includes manual justification with Tatwiil
   anum=yes,         % replace latin numerals with arabic-script ones
   ss01=yes,         % Allah, Muhammad,
   ss03=yes,         % level-1 stack over Jiim, initial entry only
   ss10=yes,         % basic dipped Miim, initial-entry B_S-stack over Miim
   ss12=yes,         % XBM_im initial-medial entry B_S-stack over Miim,
   ss15=yes,         % full stacked Laam-on-Miim
   ss16=yes,         % initial entry, stacked Ayn-on-Miim
   ss19=yes,         % LM_im
   ss24=yes,         % BR_i_mf, BN_i_mf
   ss25=yes,         % basic LH_im % might merge with ss24
   ss26=yes,         % full Yaa.final special strings: BY_if, BY_mf, LY_mf
   ss27=yes,         % basic thin Miim.final
   ss31=yes,         % basic Raa.final strings: JR and SR
   ss34=yes,         % AyR style % also available in jsnn
   ss35=yes,         % full Kaaf contexts
   ss36=yes,         % full Laam contexts
   ss37=yes,         % Miim-Miim contexts
   ss38=yes,         % basic dipped Haa, B_SH_mm
   ss41=yes,         % high and low Baa strings
   ss42=yes,         % diagonal entry
   ss43=yes,         % initial alternates
   ss60=yes,         %
   js16=yes,         % aesthetic medial Faa/Qaaf
   kern=yes,         % includes kerning of dot-base pairs, and final pairs in continuous strings
   curs=yes,         % we don't curs final pairs, padj for that
   mark=yes,         % vowels
   mkmk=yes,         % stacked vowels
   tlig=yes]

\definefontfeature
  [husayni-tt]
  [analyze=yes,
   mode=node,
   language=dflt,
   script=arab,
   ccmp=yes,
   init=yes,
   medi=yes,
   fina=yes,
   rlig=yes,
   fchr=yes,
   kern=yes,
   curs=yes,
   mark=yes,
   mkmk=yes]

\definefontfeature
  [husayni-mono]
  [analyze=yes,
   mode=node,
   language=dflt,
   script=arab,
   ccmp=no,
   init=yes,
   medi=yes,
   fina=yes,
   isol=yes,
   mset=yes]

\definedelimitedtext
  [ornatequote]
  [left={‏\char"FD3F\penalty10000},
   right={‏\char"FD3E\penalty10000}]

\definedelimitedtext
  [arparenthesis]
  [left={‏\char"0028},
   right={‏\char"0029}]

\definedelimitedtext
  [arquotation]
  [left={‏\symbol[rightquotation]},
   right={‏\symbol[leftquotation]},
   leftmargin=standard]

\definedelimitedtext
  [arquote]
  [left={‏\symbol[rightquote]},
   right={‏\symbol[leftquote]},
   leftmargin=standard]

\definebodyfontenvironment
  [husayni-default]
  [default]
  [interlinespace=4.4ex]

\definefontfallback
  [husayni-latin]
  [file:lmroman12-regular*default]
  [basiclatin,latin-1supplement,latinextended-A,latinextendedadditional]
  [force=no,
   rscale=.7]

\definefontfallback
   [husayni-mono]
   [file:cour*husayni-mono]
   [arabic,arabicpresentationformsa,arabicpresentationformsb,arabicsupplement,0x200C,0x200D,0x200E,0x200F]
 % [force=no]

\definebodyfontenvironment[20.7pt]
\definebodyfontenvironment[24.8pt]
\definebodyfontenvironment[29.8pt]
\definebodyfontenvironment[35.8pt]

\starttypescriptcollection[husayni]

    \starttypescript [naskh] [husayni] [name]
        \definefontsynonym [Arabic-Light]       [name:husayni] [goodies=husayni,features=husayni-default]
        \definefontsynonym [Arabic-Bold]        [name:husayni] [goodies=husayni,features=husayni-default]
        \definefontsynonym [Arabic-Italic]      [name:husayni] [goodies=husayni,features=husayni-default]
        \definefontsynonym [Arabic-Bold-Italic] [name:husayni] [goodies=husayni,features=husayni-default]

        \definefontsynonym [Serif]           [Arabic-Light]
        \definefontsynonym [SerifItalic]     [Arabic-Italic]
        \definefontsynonym [SerifBold]       [Arabic-Bold]
        \definefontsynonym [SerifBoldItalic] [Arabic-Bold-Italic]
    \stoptypescript

    \starttypescript [husayni-default]
        \definetypeface [husayni-default] [rm] [naskh] [husayni]  [default] [fallbacks=husayni-latin]
        \definetypeface [husayni-default] [tt] [mono]  [modern]   [default] [fallbacks=husayni-latin]
        \definetypeface [husayni-default] [mm] [math]  [xitsbidi] [default]
    \stoptypescript

\stoptypescriptcollection