Debian Codegraph @

texmf-dist/omega/otp/antomega/uniutf2uni.otp

raw
1 %% This file is part of the ANTOMEGA project version 0.6
2 %% -----------------------------------------------------
3 %%
4 %% It may be distributed under the terms of the LaTeX Project Public
5 %% License, as described in lppl.txt in the base LaTeX distribution.
6 %% Either version 1.0 or, at your option, any later version.
7
8 %% Copyright (c) 1999 John Plaice and Yannis Haralambous
9 %% The information was provided by Martin Duerst.
10 %% Modifications 2003 by Alexej Kryukov
11 %% Please report errors to: A.M. Kryukov <[email protected]>
12
13 %% This file was taken from the original omega package and renamed
14 %% from inutf8.otp to uniutf2uni.otp to avoid name clashes
15 %% in case of independent developement.
16
17 %% Conversion to Unicode from UTF-8.
18
19 %% The only difference between this file and the original
20 %% inutf8.otp is different definition for conversion symbols not
21 %% defined in utf8. The new definition allows to mix utf-8 text
22 %% with Omega-styled Unicode representation (like ^^^^****).
23
24 input: 1;
25 output: 2;
26
27 expressions:
28
29 @"00-@"7F
30 => \1;
31 (@"C0-@"DF)(@"80-@"BF)
32 => #(((\1-@"C0)*@"40) + (\2-@"80));
33 (@"E0-@"EF)(@"80-@"BF)(@"80-@"BF)
34 => #(((\1-@"E0)*@"1000) + ((\2-@"80)*@"40) + (\3-@"80));
35
36 % All other symbols including Unicode characters.
37 . => \1;