aboutsummaryrefslogtreecommitdiffstats
path: root/mayor-orig/print/module-naplo/xetex/mayor-xetex.ini
blob: f5a72f32b987e80937ee391633def3c05c77f05d (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
% $Id: xetex.ini 26376 2012-05-14 18:25:55Z karl $
% Public domain.  Originally by Jonathan Kew.

%% Disable the \font\preloaded=... entries from plain.tex
%% as xetex is primarily intended for use with other fonts
\catcode`\{=1 \catcode`\}=2 \catcode`\#=6 \catcode`\^=7 \catcode`\@=11

\scrollmode

\input unicode-letters

\let\s@vef@nt=\font
\let\preloaded=2
\def\font{\futurelet\next\d@ntpreload}
\def\d@ntpreload{\ifx\next\preloaded
   \let\next\sk@pf@nt
   \begingroup \catcode`\%=12 \catcode13=12
 \else
   \let\next\s@vef@nt
 \fi \next}
\lccode1=13
\lowercase{\def\sk@pf@nt\preloaded=#1^^A{\endgroup}}

\input etex.src

% restore the \font command and undefine other stuff
\catcode`\@=11
\let\font=\s@vef@nt
\let\d@ntpreload=\und@fined
\let\sk@pf@nt=\und@fined
\let\s@vef@nt=\und@fined

%
% Allocator for \XeTeXintercharclass values, from Enrico Gregorio 
%
\newcount\xe@alloc@intercharclass % allocates intercharclass
\xe@alloc@intercharclass=\thr@@ % from 4 (1,2 and 3 are used by CJK, AFAIK)
\def\xe@alloc@#1#2#3#4#5{\global\advance#1\@ne
 \xe@ch@ck#1#4#2% make sure there's still room
 \allocationnumber#1%
 \global#3#5\allocationnumber
 \wlog{\string#5=\string#2\the\allocationnumber}}
\def\xe@ch@ck#1#2#3{%
 \ifnum#1<#2\else
  \errmessage{No room for a new #3}%
 \fi}
\def\newXeTeXintercharclass{%
 \xe@alloc@\xe@alloc@intercharclass\XeTeXintercharclass\chardef\@cclv} %at most 254

\catcode`\@=12

\XeTeXuseglyphmetrics=1
\XeTeXdashbreakstate=1

\errorstopmode

% START MaYoR
% ============================================================= %
%              %%%%%%%%%%%%% MaYoR %%%%%%%%%%%%%%               %
% ============================================================= %

\message{MaYoR}

\input rotate
\newbox\rotbox
\newbox\rotboxA
\newbox\rotboxB
\newbox\mezonev
\newbox\doboz
\nopagenumbers

% átkerültek a font definíciók a generatePDF függvénybe!!
%\font\kicsi=ecrm0500
%\font\nagy=ecbx1200
%\font\vastag=ecsx0800
%\font\nagyss=ecsx1200
%\font\normal=ecss0800
%\font\dolt=ecsi0800

% osztályozóban volt
\parindent=0pt

% ======================================================================= %
% Makrók
% ======================================================================= %
\def\doboz#1#2#3{\vbox to #2{\hsize=#1{\vfill\noindent #3 \vfill}}}
% ============================================================= %
\def\kozepen#1#2#3{\vbox to #2{\hsize=#1\vfill\noindent\hfil #3\hfil\vfill}}
% ============================================================= %
\def\tetejen#1#2#3{\vbox to #2{\hsize=#1\noindent\hfil #3\hfil\vfill}}
% ============================================================= %
\def\dupla#1{\vbox to 68pt{%
\hbox to 68.8pt{\vbox to 30pt{\hsize=68.8pt\vfil\noindent\hfil#1\hfil\vfil}}%
\hrule\hbox{%
\vbox to 36pt{\hsize=34pt\vfil\noindent\hfil1\hfil\vfil}%
\vrule width0.8pt depth3pt height39.2pt%
\vbox to 36pt{\hsize=34pt\vfil\noindent\hfil2\hfil\vfil}%
}}}
% ============================================================= %
\def\tripla#1{\vbox to 68pt{%
\hbox to 103.6pt{\vbox to 30pt{\hsize=103.6pt\vfil\noindent\hfil#1\hfil\vfil}}%
\hrule\hbox{%
\vbox to 36pt{\hsize=34pt\vfil\noindent\hfil1\hfil\vfil}%
\vrule width0.8pt depth3pt height39.2pt%
\vbox to 36pt{\hsize=34pt\vfil\noindent\hfil2\hfil\vfil}%
\vrule width0.8pt depth3pt height39.2pt%
\vbox to 36pt{\hsize=34pt\vfil\noindent\hfil3\hfil\vfil}%
}}}
% ============================================================= %
\newdimen\vonalszelesseg\vonalszelesseg=0.8pt%
\newdimen\szelesseg\szelesseg=34pt%
\newcount\szam%
\newcount\vonalszam%
\def\ennes#1#2{\szam=1%
\vonalszam=#2%
\advance\vonalszam by -1%
\multiply\vonalszelesseg by \vonalszam%
\multiply\szelesseg by #2%
\advance\szelesseg by \vonalszelesseg%
\vbox to 68pt{%
\hbox to \szelesseg{\vbox to 30pt{\hsize=\szelesseg\vfil\noindent\hfil#1\hfil\vfil}}%
\hrule\hbox{%
\loop
\vbox to 36pt{\hsize=34pt\vfil\noindent\hfil\the\szam\hfil\vfil}%
\advance\szam by 1%
\vrule width0.8pt depth3pt height39.2pt%
\ifnum\szam<#2\break%
\repeat
\vbox to 36pt{\hsize=34pt\vfil\noindent\hfil#2\hfil\vfil}%
}}}
% ============================================================= %
\def\emmes#1#2#3{\szam=#3%
\vonalszam=#2%
\advance\vonalszam by -1%
\multiply\vonalszelesseg by \vonalszam%
\advance\vonalszam by #3%
\multiply\szelesseg by #2%
\advance\szelesseg by \vonalszelesseg%
\vbox to 68pt{%
\hbox to \szelesseg{\vbox to 30pt{\hsize=\szelesseg\vfil\noindent\hfil#1\hfil\vfil}}%
\hrule\hbox{%
\loop
\vbox to 36pt{\hsize=34pt\vfil\noindent\hfil\the\szam\hfil\vfil}%
\advance\szam by 1%
\vrule width0.8pt depth3pt height39.2pt%
\ifnum\szam<\vonalszam\break%
\repeat
\vbox to 36pt{\hsize=34pt\vfil\noindent\hfil\the\vonalszam\hfil\vfil}%
}}}
% ============================================================= %
\def\oraszam#1{%
\hbox to 34pt{\hfill{%
\vbox{\halign{%
\vrule width0.8pt height21.2pt##&\vbox to 21.2pt{\vfil\hbox to 21.2pt{\hfil##\hfil}\vfil}\cr%
\noalign{\hrule height0.8pt}%
&#1\cr%
}}}}}
% ============================================================= %
\def\tanitasi{\setbox\mezonev=\kozepen{75pt}{20pt}{\doboz{69pt}{19pt}{\hfil A tanítási nap\hfil}}\lower3.5pt\vbox{\rotl\mezonev}}%
% ============================================================= %
\def\megjegyzes#1#2{\setbox\mezonev=\kozepen{90pt}{20pt}{\doboz{89pt}{19pt}{\hfil \centerline{#1} \centerline{#2}\hfil}}\lower3.5pt\vbox{\rotl\mezonev}}%
% ============================================================= %
\def\datum#1#2#3{%
\setbox\mezonev=\hbox{\vbox to 22pt{\hrule height2pt\hsize=105pt\vfil\noindent\hfil#3\hfil\vfil}\vrule width2pt}%
\lower3pt\vbox to 166pt{%
\vss\hbox{\vbox to 168pt{\vfil%
\hbox to 22pt{\hss\vrule height63pt width2pt\vbox to 63.2pt{\hsize=31pt%
\hrule width31.5pt height2pt\vfil\noindent\centerline{#1}\vfil%
\hrule width31.5pt height0.8pt\noindent\vfil\centerline{#2}\vfil%
\hrule width31.5pt height2pt}}%
\hbox{\vbox to 104pt{\vss\rotl\mezonev}}%
}}}}
% ============================================================= %
%5.1cm=145pt  343=1.4 136.6 = 4.8 1.3 = 37pt 41.25 = 1.45 6 = 170.7
% ============================================================= %
\def\tananyag#1#2{\setbox\mezonev=\kozepen{140pt}{34pt}{\doboz{133pt}{33pt}{\raggedright#1}}\lower3pt\vbox{\rotl\mezonev\oraszam{#2}}}
\def\mayor{%
\font\mayorfnt=cmsl8%
\font\Mayorfnt=cmsl12
{\mayorfnt\lower0.5ex\hbox{\lower-0.5ex\hbox{Ma}\kern-0.3em\lower0.25ex\hbox{\Mayorfnt Y}\kern-0.2em\hbox{o}\lower0ex\hbox{R}}}}
% ============================================================= %
% \def\kozepenK#1#2#3{\vrule\vbox to #2{\hsize=#1\hrule\vfill\noindent\hfil #3\hfil\vfill\hrule}\vrule}
% \def\kozepen#1#2#3{\vbox to #2{\hsize=#1\vfill\noindent\centerline{#3}\vfill}}
%%%%\normal

% END MaYoR

\dump
\endinput