summaryrefslogtreecommitdiff
path: root/macros/xetex/plain/do-it-yourself-tex/RIGHT-to-LEFT-TEXTS/unicode_hebrew.mac
blob: 5f9f9ae6264af5ac3326dbb59e9209d9d3a2d22c (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
% [unicode_hebrew.mac]
% 2018.09.12 split off from [my_hebrew_fonts.mac]
% title conforms to [unicode_latin.mac]
% this conflicts with drop_letter

% 2018.12.16 something wrong  all \rbr match with \lbr in line above
%           but not  first FB31\rbr
 %%%%%%%%%%%%%%%%%%%%%%%% DEFINITIONS %%%%%%%%%%%%%%%%%%%%%

 %%%%%%%%%%%%%   AVOID DOTS %%%%%%%%%%%%%%
%\def\.b{\char"FB31}  % DAGESH  th   |||| DOT WITH ONE LETTER WORKS
%\def\.bb{\char"FB31}   % DAGESH  th  |||| DOT WITH TWO LETTERS DOES NOT WORK
%\def\.tt{\char"FB38}  % DAGESH  it does not like .t


%                      CONSONANTS  WITHOUT DAGESH (on basic list: unicode 0059 --- 05FF)
%  SIMPLE START WITH 0, COMBINED (dagesh) WITH F
%  On each page the vertical order in a column is ABJED, just copy from set 
%     above and change last number (SAME FOR BOTH)
%  
%%%%%%%%%%%%%% ALEPH + AYIN %%%%%%%%%
\def\'{\char"05D0}     % ALEPF  YES IT ACCEPTS \'
\def\`{\char"05E2}     % AYIN, YES IT ACCEPTS \`

%%%%%%%%%%%%%%  TET + TAV %%%%%%%%%
% I changed to d for consistency with shin, ts
% I use d for SOFFIT  \s + \sd
\def\t{\char"05D8}  % tet     it does not like .t
\def\td{\char"FB38}  % tet with  DAGESH 

\def\T{\char"FB4A}   % tav   USE CAP T

%%%%%%%%%%%%%%  SAMECH + SAV %%%%%%%%%
\def\s{\char"05E1}    % samech     it does not like .s
\def\sd{\char"FB41}  % samech with DAGESH


\def\S{\char"05EA}    % SAV

%%%%%%%%%%%%%%  SIN = SI + SHIN = SH %%%%%%%%%
\def\si{\char"FB2B}
\def\sid{\char"FB2D}

\def\sh{\char"FB2A}
\def\shd{\char"FB2C}

\def\splain{\char"05E9}   % the sin/shin form without a dot

%%%%%%%%%%%%%% TSADE = \ts %%%%%%%%%
\def\ts{\char"05E6}
\def\tsd{\char"FB46}   % dagish
\def\tss{\char"05E5}   % tsade sofit
% change font  from \hackboldAAAAAA


%%%%%%%%%%%%% NON-PROBLEM LETTERS %%%%%%%%%%%%
% 05D/E*(basic) / FB3/4*(dagesh) come inוְאָמַרְתָּ אֲלֵהֶם pairs
% I double for dagesh \g + \gg
% I add s for soffit \khs

\def\b{\char"FB31}   % DAGESH
\def\v{\char"05D1}
\def\g{\char"05D2}
\def\gd{\char"FB32}  % DAGESH
\def\d{\char"05D3}
\def\dd{\char"FB33}  % DAGESH
\def\h{\char"05D4}
\def\hd{\char"FB34}  % DAGESH at end to endicate masculine possesive
\def\w{\char"05D5}
\def\wd{\char"FB35}  % DAGESH, sometimes need \ww when have \ww\o\
\def\z{\char"05D6}
\def\zd{\char"FB36}  % DAGESH
\def\ch{\char"05D7} % apparently no chet with dagesh
%   TET = \t above

\def\y{\char"05D9}   % yod
\def\yd{\char"FB39}  % yod  DAGESH
\def\ydee{\char"FB39\char"05B4}  % yod-dagesj+ee  THIS ONE GIVES GOOD RESULTS
%                       \def\yee{\char"FB1D} % yod + ee in one 
%                       glyph   HEERIQ TOO HIGH
\def\k{\char"FB3B}     % Kaf
\def\kh{\char"05DB}   % KHaf   they have khaf soffit before khaf!drop_hebrew.mac
\def\khs{\char"05DA}  % khaf SOFIT, no dagesh -?? does this exists
%\khs\e gives   khaf SOFIT with sheva  %  No symbol for khaf soffit with sheva

\def\l{\char"05DC}   % lamed
\def\ld{\char"FB3C}  % DAGESH
\def\m{\char"05DE}    % mem
\def\md{\char"FB3E}  % DAGESH
\def\ms{\char"05DD}   % SOFFIT
\def\n{\char"05E0} 

\def\nd{\char"FB40}  % DAGESH
\def\ns{\char"05DF}  % SOFFIT 

\def\f{\char"05E4}   %  fe
\def\p{\char"FB44}  %  pe
\def\fs{\char"05E3}  % fe SOFIT
%   \fs\e gives   fe SOFIT with sheva  %  No symbol for fe soffit with sheva

% TSADE ABOVE

\def\q{\char"05E7}    %  QOF  conflict with \q = quad so I elimanted
\def\qd{\char"FB47}   % QOF with dageshdrop_hebrew.mac

\def\r{\char"05E8}  %      it does not like .t
% \def\rd{\char"FB48}  %  with  DAGESH   does not exist says weinberg
% I found this, but not in any of my fonts
%\def\pinwheelstar{\char"1F7C3}

%  SIN + SHIN ABOVE

%                       VOWELS      % (on basic list: unicode 0059
%
\def\e{\char"05B0}      % SHEVA XX DID NOT ACCEPT   \def\:
\def\ee{\char"05B4}       %hEEriq% CONSONANT+VOWEL COMBINATIONS
\def\eh{\char"05B6}
\def\ei{\char"05B5}      % tzerEI
\def\a{\char"05B7}
\def\A{\char"05B8}
\def\o{\char"05B9}       % they not 05C2 (sin dot); 05B9 =eh?
\def\O{\char"FB4B}        % plene hOlom
\def\u{\char"05BB}
\def\U{\char"FB35}        % plene   identical with \ww (sometimes need)


                             % special characters
% 2018.12.16 SOMETHING WRONG  ALL \RBR MATCH WITH \LBR IN LINE ABOVE
%           BUT NOT  FIRST FB31\RBR                             
%
\def\qere{\char"05AF}
\def\maqaf{\char"05BE}  % to split lines
\def\sofpasuk{\char"05C3}  % in case missing 9lev 19:1) or for me
%
%                                    I fixed                          ok with \TH
\def\vt{\kern -3pt\RL{\lower 2.5pt\hbox{\Th\rmseventeen\char"02DD}}} %  \kern -0.1pt
%\def\vt{\th\RL{\th\lower 2.5pt\hbox{\rmseventeen\char"02DD}\th}} % 


%\vt = verb type combining accent for % writing  pe"nun etc
      %      "030B  under spacing    XX seems to close up
% testing \bsl vt {\it = Verb Type} for \heb{\p\vt\ns}
% This is 030B:\TH {\rmsixteen\char"030B},\TH {\rmfifteen\char"030B} combining 
% diacritics   [seems to close up]
% This is 02DD:\TH {\rmsixteen\char"02DD}, \TH {\rmsixteen\char"02DD} double accents