summaryrefslogtreecommitdiff
path: root/tex/context/base/font-heb.tex
blob: 2982b3dfc49f232e1dea5f51964ba24e617f45bd (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
% NOT YET ADAPTED TO THE NEW FONT MACROS 

\input font-arb.tex

\writestatus{loading}{Context Font Macros / Hebrew (ArabTeX) support}

%D This module is build on top of \ARABTEX\ and arabic 
%D support. I dedicate this module to my father Hein Hagen, 
%D who did not live long enough to become a user. His huge  
%D library contains math, science, history, english literature, 
%D philisophy and theology books, but his most favoured ones 
%D were those traditional hebrew printings. I must admit 
%D that some of those make clear that traditonal typesetting 
%D can still beat \TEX. Those nested multicolumn documents with 
%D complicated can give even the experienced macro writer a 
%D rather persistent headache.

\unprotect 

%D A few fonts.

\unexpanded\def\sethebrewfont#1% strange font dimensions / scale
  {\scratchdimen=10\bodyfontsize
   \font\hebfont=\truefontname{Hebrew#1} at \currentfontscale\scratchdimen
   \fontdimen5\hebfont=.8\fontdimen2\hebfont 
   \fontdimen6\hebfont=3\fontdimen5\hebfont
   \hebfont}

\let \setheb \sethebrew

\unexpanded\def\pheb  {\sethebrewfont\s!Regular}
\unexpanded\def\phebbf{\sethebrewfont\s!Bold}

\startloadingARABTEX

\input hebtex.sty 
\input apatch.sty 
\input hepatch.sty

\stoploadingARABTEX

%D The main definition is: 

\definefontsynonym [HebrewRegular] [hclassic]
\definefontsynonym [HebrewBold]    [hcaption]

\defineARABTEXalternative
  [hebrew]
  [\c!binnen=\sethebrew,
   \c!letter=\sethebrewfont{\fontstylesuffix}]

\protect \endinput