summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/arabtex/utf8.sty
blob: 604cda0bbfa929f7500e5e42c3a656240e89b5a3 (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
%%%%%%%%%%%%%%%%%%%%%%%%%%% utf8.sty %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% utf8.sty
% Scanner for UTF-8 Code 
% to install it, include it as a LaTeX package or style option "utf8"
% with Plain TeX, say "\input utf8.sty"
% to activate it, say "\setcode {utf8}" 
% 13.06.2000
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% (c) Klaus Lagally
%     Institut fuer Informatik
%     Universitaet Stuttgart
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\ifx \utfatcode \undefined \else \expandafter \endinput
\fi % load only once

\chardef \utfatcode = \catcode`\@  \catcode`\@ = 11

\UsePackage {utfcode}

\a@ident {utf8.sty} {3.10 UTF-8 input encoding } {13.06.2000}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\gdef \set@utfc {% select the UTF-8 scanner
\global\let \a@scan \utfc@scan   
\global\def \sc@beg {\utf@beg }%
\global\def \sc@word {\utf@word }%
\global\a@digits = {0123456789}%
\global\a@first = {Ö×ØÙÚÛ}%
\catcode `  11
\a@message {input encoding set to UTF-8 conventions}}

\xpa \def \xpa \sc@table \xpa {\sc@table % add the UTF-8 encoding
utf-8\set@utfc   utf8\set@utfc	}

\a@message {scanner for code UTF-8 installed.}

\catcode `\@ = \utfatcode
\endinput
%%%%%%%%%%%%%%%%%%%%%%%% EOF %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%