summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/latexconfig/lualatex-reset-codes.tex
blob: cbee05cba09be2513d67c8409d28a7ceca8acb13 (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
% $Id $
% Manuel Pégourié-Gonnard, originally written 2010. WTFPL v2.

% To be loaded after latex.ltx and before luatex-unicode-letters.tex.

% latex.ltx (ltfinal.dtx) sets lccodes, uccodes, sfcodes and catcodes for
% characters in the "00-"ff range.
%
% In the "80-"ff range, lccodes, uccodes & sfcodes are based on T1, and need
% to be reset before the correct, Unicode-based, codes are set. Also, the
% catcodes are set to 12 (other).
%
\begingroup
\makeatletter
\count@=128
\loop \ifnum\count@<256
  \global\uccode\count@=0
  \global\lccode\count@=0
  \global\sfcode\count@=1000
  \global\catcode\count@=12
  \advance\count@\@ne
\repeat
\endgroup

% A few codes in the ASCII range are set by latex.ltx:
%
% \lccode`\^^[=`\^^[ % oe in OT1
% \lccode`\- =`\-    % default hyphen char
% \lccode 127=127    % alternate hyphen char
% \lccode 23 =23     % textcompwordmark in T1
%
% They don't look too problematic, so we don't reset them now, but this may
% change later if problems are found.